CfnBrowserSettingsProps Struct
Properties for defining a CfnBrowserSettings.
| Source | |
|---|---|
| Type last changed |
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 cfnBrowserSettingsProps: workspacesweb.CfnBrowserSettingsProps = {
additionalEncryptionContext: {
additionalEncryptionContextKey: 'additionalEncryptionContext',
},
browserPolicy: 'browserPolicy',
customerManagedKey: 'customerManagedKey',
tags: [{
key: 'key',
value: 'value',
}],
webContentFilteringPolicy: {
allowedUrls: ['allowedUrls'],
blockedCategories: ['blockedCategories'],
blockedUrls: ['blockedUrls'],
},
};
python
from aws_cdk import CfnTag
# 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
cfn_browser_settings_props = workspacesweb.CfnBrowserSettingsProps(
additional_encryption_context={
"additional_encryption_context_key": "additionalEncryptionContext"
},
browser_policy="browserPolicy",
customer_managed_key="customerManagedKey",
tags=[CfnTag(
key="key",
value="value"
)],
web_content_filtering_policy=workspacesweb.CfnBrowserSettings.WebContentFilteringPolicyProperty(
allowed_urls=["allowedUrls"],
blocked_categories=["blockedCategories"],
blocked_urls=["blockedUrls"]
)
)
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.*;
CfnBrowserSettingsProps cfnBrowserSettingsProps = CfnBrowserSettingsProps.builder()
.additionalEncryptionContext(Map.of(
"additionalEncryptionContextKey", "additionalEncryptionContext"))
.browserPolicy("browserPolicy")
.customerManagedKey("customerManagedKey")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.webContentFilteringPolicy(WebContentFilteringPolicyProperty.builder()
.allowedUrls(List.of("allowedUrls"))
.blockedCategories(List.of("blockedCategories"))
.blockedUrls(List.of("blockedUrls"))
.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 cfnBrowserSettingsProps = new CfnBrowserSettingsProps {
AdditionalEncryptionContext = new Dictionary<string, string> {
{ "additionalEncryptionContextKey", "additionalEncryptionContext" }
},
BrowserPolicy = "browserPolicy",
CustomerManagedKey = "customerManagedKey",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
WebContentFilteringPolicy = new WebContentFilteringPolicyProperty {
AllowedUrls = new [] { "allowedUrls" },
BlockedCategories = new [] { "blockedCategories" },
BlockedUrls = new [] { "blockedUrls" }
}
};
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"
cfnBrowserSettingsProps := &CfnBrowserSettingsProps{
AdditionalEncryptionContext: map[string]*string{
"additionalEncryptionContextKey": jsii.String("additionalEncryptionContext"),
},
BrowserPolicy: jsii.String("browserPolicy"),
CustomerManagedKey: jsii.String("customerManagedKey"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
WebContentFilteringPolicy: &WebContentFilteringPolicyProperty{
AllowedUrls: []*string{
jsii.String("allowedUrls"),
},
BlockedCategories: []*string{
jsii.String("blockedCategories"),
},
BlockedUrls: []*string{
jsii.String("blockedUrls"),
},
},
}
Properties
additionalEncryptionContextoptionalIResolvable | { [key: string]: string }additional_encryption_contextoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]additionalEncryptionContextoptionalIResolvableAdditionalEncryptionContextoptionalIResolvableAdditionalEncryptionContextoptionalinterface{} #Additional encryption context of the browser settings.
browserPolicyoptionalstringbrowser_policyoptionalstrbrowserPolicyoptionalStringBrowserPolicyoptionalstringBrowserPolicyoptional*string #A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
customerManagedKeyoptionalstringcustomer_managed_keyoptionalstrcustomerManagedKeyoptionalStringCustomerManagedKeyoptionalstringCustomerManagedKeyoptional*string #The custom managed key of the browser settings.
Pattern : ^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags to add to the browser settings resource.
A tag is a key-value pair.
webContentFilteringPolicyoptionalIResolvable | CfnBrowserSettings.web_content_filtering_policyoptionaltyping.Union[IResolvable, WebContentFilteringPolicyProperty]webContentFilteringPolicyoptionalIResolvableWebContentFilteringPolicyoptionalIResolvableWebContentFilteringPolicyoptionalinterface{} #The policy that specifies which URLs end users are allowed to access or which URLs or domain categories they are restricted from accessing for enhanced security.