CfnStackPropsMixin

class aws_cdk.mixins_preview.aws_appstream.mixins.CfnStackPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::AppStream::Stack resource creates a stack to start streaming applications to Amazon AppStream 2.0 users. A stack consists of an associated fleet, user access policies, and storage configurations.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-stack.html

CloudformationResource:

AWS::AppStream::Stack

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_appstream import mixins as appstream_mixins

cfn_stack_props_mixin = appstream_mixins.CfnStackPropsMixin(appstream_mixins.CfnStackMixinProps(
    access_endpoints=[appstream_mixins.CfnStackPropsMixin.AccessEndpointProperty(
        endpoint_type="endpointType",
        vpce_id="vpceId"
    )],
    application_settings=appstream_mixins.CfnStackPropsMixin.ApplicationSettingsProperty(
        enabled=False,
        settings_group="settingsGroup"
    ),
    attributes_to_delete=["attributesToDelete"],
    delete_storage_connectors=False,
    description="description",
    display_name="displayName",
    embed_host_domains=["embedHostDomains"],
    feedback_url="feedbackUrl",
    name="name",
    redirect_url="redirectUrl",
    storage_connectors=[appstream_mixins.CfnStackPropsMixin.StorageConnectorProperty(
        connector_type="connectorType",
        domains=["domains"],
        resource_identifier="resourceIdentifier"
    )],
    streaming_experience_settings=appstream_mixins.CfnStackPropsMixin.StreamingExperienceSettingsProperty(
        preferred_protocol="preferredProtocol"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    user_settings=[appstream_mixins.CfnStackPropsMixin.UserSettingProperty(
        action="action",
        maximum_length=123,
        permission="permission"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::AppStream::Stack.

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

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

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['accessEndpoints', 'applicationSettings', 'attributesToDelete', 'deleteStorageConnectors', 'description', 'displayName', 'embedHostDomains', 'feedbackUrl', 'name', 'redirectUrl', 'storageConnectors', 'streamingExperienceSettings', 'tags', 'userSettings']

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental

AccessEndpointProperty

class CfnStackPropsMixin.AccessEndpointProperty(*, endpoint_type=None, vpce_id=None)

Bases: object

Describes an interface VPC endpoint (interface endpoint) that lets you create a private connection between the virtual private cloud (VPC) that you specify and WorkSpaces Applications.

When you specify an interface endpoint for a stack, users of the stack can connect to WorkSpaces Applications only through that endpoint. When you specify an interface endpoint for an image builder, administrators can connect to the image builder only through that endpoint.

Parameters:
  • endpoint_type (Optional[str]) – The type of interface endpoint.

  • vpce_id (Optional[str]) – The identifier (ID) of the VPC in which the interface endpoint is used.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-accessendpoint.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.mixins_preview.aws_appstream import mixins as appstream_mixins

access_endpoint_property = appstream_mixins.CfnStackPropsMixin.AccessEndpointProperty(
    endpoint_type="endpointType",
    vpce_id="vpceId"
)

Attributes

endpoint_type

The type of interface endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-accessendpoint.html#cfn-appstream-stack-accessendpoint-endpointtype

vpce_id

The identifier (ID) of the VPC in which the interface endpoint is used.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-accessendpoint.html#cfn-appstream-stack-accessendpoint-vpceid

ApplicationSettingsProperty

class CfnStackPropsMixin.ApplicationSettingsProperty(*, enabled=None, settings_group=None)

Bases: object

The persistent application settings for users of a stack.

Parameters:
  • enabled (Union[bool, IResolvable, None]) – Enables or disables persistent application settings for users during their streaming sessions.

  • settings_group (Optional[str]) – The path prefix for the S3 bucket where users’ persistent application settings are stored. You can allow the same persistent application settings to be used across multiple stacks by specifying the same settings group for each stack.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-applicationsettings.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.mixins_preview.aws_appstream import mixins as appstream_mixins

application_settings_property = appstream_mixins.CfnStackPropsMixin.ApplicationSettingsProperty(
    enabled=False,
    settings_group="settingsGroup"
)

Attributes

enabled

Enables or disables persistent application settings for users during their streaming sessions.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-applicationsettings.html#cfn-appstream-stack-applicationsettings-enabled

settings_group

The path prefix for the S3 bucket where users’ persistent application settings are stored.

You can allow the same persistent application settings to be used across multiple stacks by specifying the same settings group for each stack.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-applicationsettings.html#cfn-appstream-stack-applicationsettings-settingsgroup

StorageConnectorProperty

class CfnStackPropsMixin.StorageConnectorProperty(*, connector_type=None, domains=None, resource_identifier=None)

Bases: object

A connector that enables persistent storage for users.

Parameters:
  • connector_type (Optional[str]) – The type of storage connector.

  • domains (Optional[Sequence[str]]) – The names of the domains for the account.

  • resource_identifier (Optional[str]) – The ARN of the storage connector.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.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.mixins_preview.aws_appstream import mixins as appstream_mixins

storage_connector_property = appstream_mixins.CfnStackPropsMixin.StorageConnectorProperty(
    connector_type="connectorType",
    domains=["domains"],
    resource_identifier="resourceIdentifier"
)

Attributes

connector_type

The type of storage connector.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-connectortype

domains

The names of the domains for the account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-domains

resource_identifier

The ARN of the storage connector.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-resourceidentifier

StreamingExperienceSettingsProperty

class CfnStackPropsMixin.StreamingExperienceSettingsProperty(*, preferred_protocol=None)

Bases: object

The streaming protocol that you want your stack to prefer.

This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

Parameters:

preferred_protocol (Optional[str]) – The preferred protocol that you want to use while streaming your application.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-streamingexperiencesettings.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.mixins_preview.aws_appstream import mixins as appstream_mixins

streaming_experience_settings_property = appstream_mixins.CfnStackPropsMixin.StreamingExperienceSettingsProperty(
    preferred_protocol="preferredProtocol"
)

Attributes

preferred_protocol

The preferred protocol that you want to use while streaming your application.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-streamingexperiencesettings.html#cfn-appstream-stack-streamingexperiencesettings-preferredprotocol

UserSettingProperty

class CfnStackPropsMixin.UserSettingProperty(*, action=None, maximum_length=None, permission=None)

Bases: object

Specifies an action and whether the action is enabled or disabled for users during their streaming sessions.

Parameters:
  • action (Optional[str]) – The action that is enabled or disabled.

  • maximum_length (Union[int, float, None]) – Specifies the number of characters that can be copied by end users from the local device to the remote session, and to the local device from the remote session. This can be specified only for the CLIPBOARD_COPY_FROM_LOCAL_DEVICE and CLIPBOARD_COPY_TO_LOCAL_DEVICE actions. This defaults to 20,971,520 (20 MB) when unspecified and the permission is ENABLED . This can’t be specified when the permission is DISABLED . The value can be between 1 and 20,971,520 (20 MB).

  • permission (Optional[str]) – Indicates whether the action is enabled or disabled.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.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.mixins_preview.aws_appstream import mixins as appstream_mixins

user_setting_property = appstream_mixins.CfnStackPropsMixin.UserSettingProperty(
    action="action",
    maximum_length=123,
    permission="permission"
)

Attributes

action

The action that is enabled or disabled.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.html#cfn-appstream-stack-usersetting-action

maximum_length

Specifies the number of characters that can be copied by end users from the local device to the remote session, and to the local device from the remote session.

This can be specified only for the CLIPBOARD_COPY_FROM_LOCAL_DEVICE and CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

This defaults to 20,971,520 (20 MB) when unspecified and the permission is ENABLED . This can’t be specified when the permission is DISABLED .

The value can be between 1 and 20,971,520 (20 MB).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.html#cfn-appstream-stack-usersetting-maximumlength

permission

Indicates whether the action is enabled or disabled.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-usersetting.html#cfn-appstream-stack-usersetting-permission