CfnBrowserSettingsPropsMixin

class aws_cdk.cfn_property_mixins.aws_workspacesweb.CfnBrowserSettingsPropsMixin(props, *, strategy=None)

Bases: Mixin

This resource specifies browser settings that can be associated with a web portal.

Once associated with a web portal, browser settings control how the browser will behave once a user starts a streaming session for the web portal.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-browsersettings.html

CloudformationResource:

AWS::WorkSpacesWeb::BrowserSettings

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_workspacesweb as workspacesweb
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_browser_settings_props_mixin = workspacesweb.CfnBrowserSettingsPropsMixin(workspacesweb.CfnBrowserSettingsMixinProps(
    additional_encryption_context={
        "additional_encryption_context_key": "additionalEncryptionContext"
    },
    browser_policy="browserPolicy",
    customer_managed_key="customerManagedKey",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    web_content_filtering_policy=workspacesweb.CfnBrowserSettingsPropsMixin.WebContentFilteringPolicyProperty(
        allowed_urls=["allowedUrls"],
        blocked_categories=["blockedCategories"],
        blocked_urls=["blockedUrls"]
    )
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::WorkSpacesWeb::BrowserSettings.

Parameters:
  • props (Union[CfnBrowserSettingsMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['additionalEncryptionContext', 'browserPolicy', 'customerManagedKey', 'tags', 'webContentFilteringPolicy']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

WebContentFilteringPolicyProperty

class CfnBrowserSettingsPropsMixin.WebContentFilteringPolicyProperty(*, allowed_urls=None, blocked_categories=None, blocked_urls=None)

Bases: object

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.

Parameters:
  • allowed_urls (Optional[Sequence[str]]) – URLs and domains that are always accessible to end users.

  • blocked_categories (Optional[Sequence[str]]) – Categories of websites that are blocked on the end user’s browsers.

  • blocked_urls (Optional[Sequence[str]]) – URLs and domains that end users cannot access.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-browsersettings-webcontentfilteringpolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_workspacesweb as workspacesweb

web_content_filtering_policy_property = workspacesweb.CfnBrowserSettingsPropsMixin.WebContentFilteringPolicyProperty(
    allowed_urls=["allowedUrls"],
    blocked_categories=["blockedCategories"],
    blocked_urls=["blockedUrls"]
)

Attributes

allowed_urls

URLs and domains that are always accessible to end users.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-browsersettings-webcontentfilteringpolicy.html#cfn-workspacesweb-browsersettings-webcontentfilteringpolicy-allowedurls

blocked_categories

Categories of websites that are blocked on the end user’s browsers.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-browsersettings-webcontentfilteringpolicy.html#cfn-workspacesweb-browsersettings-webcontentfilteringpolicy-blockedcategories

blocked_urls

URLs and domains that end users cannot access.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-browsersettings-webcontentfilteringpolicy.html#cfn-workspacesweb-browsersettings-webcontentfilteringpolicy-blockedurls