# CookieSynchronizationConfigurationProperty

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

- Source: Generated at build time
- Type last changed: v2.97.0 · 22 Sep 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `allowlist`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserSettings.CookieSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_workspacesweb.CfnUserSettings.CookieSpecificationProperty.html)[] (required) — The list of cookie specifications that are allowed to be synchronized to the remote browser.

- `blocklist`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserSettings.CookieSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_workspacesweb.CfnUserSettings.CookieSpecificationProperty.html)[] — The list of cookie specifications that are blocked from being synchronized to the remote browser.
