Skip to content
v2.277.0

CookieSynchronizationConfigurationProperty Struct ​

The configuration that specifies which cookies should be synchronized from the end user's local browser to the remote browser.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesweb as workspacesweb } from 'aws-cdk-lib';
const cookieSynchronizationConfigurationProperty: workspacesweb.CfnUserSettings.CookieSynchronizationConfigurationProperty = {
  allowlist: [{
    domain: 'domain',

    // the properties below are optional
    name: 'name',
    path: 'path',
  }],

  // the properties below are optional
  blocklist: [{
    domain: 'domain',

    // the properties below are optional
    name: 'name',
    path: 'path',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_workspacesweb as workspacesweb

cookie_synchronization_configuration_property = workspacesweb.CfnUserSettings.CookieSynchronizationConfigurationProperty(
    allowlist=[workspacesweb.CfnUserSettings.CookieSpecificationProperty(
        domain="domain",

        # the properties below are optional
        name="name",
        path="path"
    )],

    # the properties below are optional
    blocklist=[workspacesweb.CfnUserSettings.CookieSpecificationProperty(
        domain="domain",

        # the properties below are optional
        name="name",
        path="path"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.workspacesweb.*;

CookieSynchronizationConfigurationProperty cookieSynchronizationConfigurationProperty = CookieSynchronizationConfigurationProperty.builder()
        .allowlist(List.of(CookieSpecificationProperty.builder()
                .domain("domain")

                // the properties below are optional
                .name("name")
                .path("path")
                .build()))

        // the properties below are optional
        .blocklist(List.of(CookieSpecificationProperty.builder()
                .domain("domain")

                // the properties below are optional
                .name("name")
                .path("path")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WorkSpacesWeb;

var cookieSynchronizationConfigurationProperty = new CookieSynchronizationConfigurationProperty {
    Allowlist = new [] { new CookieSpecificationProperty {
        Domain = "domain",

        // the properties below are optional
        Name = "name",
        Path = "path"
    } },

    // the properties below are optional
    Blocklist = new [] { new CookieSpecificationProperty {
        Domain = "domain",

        // the properties below are optional
        Name = "name",
        Path = "path"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cookieSynchronizationConfigurationProperty := &CookieSynchronizationConfigurationProperty{
	Allowlist: []interface{}{
		&CookieSpecificationProperty{
			Domain: jsii.String("domain"),

			// the properties below are optional
			Name: jsii.String("name"),
			Path: jsii.String("path"),
		},
	},

	// the properties below are optional
	Blocklist: []interface{}{
		&CookieSpecificationProperty{
			Domain: jsii.String("domain"),

			// the properties below are optional
			Name: jsii.String("name"),
			Path: jsii.String("path"),
		},
	},
}

Properties ​

allowlistIResolvable | IResolvable | CfnUserSettings.CookieSpecificationProperty[]allowlisttyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CookieSpecificationProperty]]]allowlistIResolvableAllowlistIResolvableAllowlistinterface{} required #
The list of cookie specifications that are allowed to be synchronized to the remote browser.
blocklistoptionalIResolvable | IResolvable | CfnUserSettings.CookieSpecificationProperty[]blocklistoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CookieSpecificationProperty]]]blocklistoptionalIResolvableBlocklistoptionalIResolvableBlocklistoptionalinterface{} #
The list of cookie specifications that are blocked from being synchronized to the remote browser.