CfnWorkspacesPoolPropsMixin
- class aws_cdk.mixins_preview.aws_workspaces.mixins.CfnWorkspacesPoolPropsMixin(props, *, strategy=None)
Bases:
MixinDescribes a pool of WorkSpaces.
- See:
- CloudformationResource:
AWS::WorkSpaces::WorkspacesPool
- 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_workspaces import mixins as workspaces_mixins cfn_workspaces_pool_props_mixin = workspaces_mixins.CfnWorkspacesPoolPropsMixin(workspaces_mixins.CfnWorkspacesPoolMixinProps( application_settings=workspaces_mixins.CfnWorkspacesPoolPropsMixin.ApplicationSettingsProperty( settings_group="settingsGroup", status="status" ), bundle_id="bundleId", capacity=workspaces_mixins.CfnWorkspacesPoolPropsMixin.CapacityProperty( desired_user_sessions=123 ), description="description", directory_id="directoryId", pool_name="poolName", running_mode="runningMode", tags=[CfnTag( key="key", value="value" )], timeout_settings=workspaces_mixins.CfnWorkspacesPoolPropsMixin.TimeoutSettingsProperty( disconnect_timeout_in_seconds=123, idle_disconnect_timeout_in_seconds=123, max_user_duration_in_seconds=123 ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::WorkSpaces::WorkspacesPool.- Parameters:
props (
Union[CfnWorkspacesPoolMixinProps,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:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['applicationSettings', 'bundleId', 'capacity', 'description', 'directoryId', 'poolName', 'runningMode', 'tags', 'timeoutSettings']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ApplicationSettingsProperty
- class CfnWorkspacesPoolPropsMixin.ApplicationSettingsProperty(*, settings_group=None, status=None)
Bases:
objectThe persistent application settings for users in the pool.
- Parameters:
settings_group (
Optional[str]) – The path prefix for the S3 bucket where users’ persistent application settings are stored.status (
Optional[str]) – Enables or disables persistent application settings for users during their pool sessions.
- See:
- 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_workspaces import mixins as workspaces_mixins application_settings_property = workspaces_mixins.CfnWorkspacesPoolPropsMixin.ApplicationSettingsProperty( settings_group="settingsGroup", status="status" )
Attributes
- settings_group
The path prefix for the S3 bucket where users’ persistent application settings are stored.
- status
Enables or disables persistent application settings for users during their pool sessions.
CapacityProperty
- class CfnWorkspacesPoolPropsMixin.CapacityProperty(*, desired_user_sessions=None)
Bases:
objectDescribes the user capacity for the pool.
- Parameters:
desired_user_sessions (
Union[int,float,None]) – The desired number of user sessions for the WorkSpaces in the pool.- See:
- 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_workspaces import mixins as workspaces_mixins capacity_property = workspaces_mixins.CfnWorkspacesPoolPropsMixin.CapacityProperty( desired_user_sessions=123 )
Attributes
- desired_user_sessions
The desired number of user sessions for the WorkSpaces in the pool.
TimeoutSettingsProperty
- class CfnWorkspacesPoolPropsMixin.TimeoutSettingsProperty(*, disconnect_timeout_in_seconds=None, idle_disconnect_timeout_in_seconds=None, max_user_duration_in_seconds=None)
Bases:
objectDescribes the timeout settings for the pool.
- Parameters:
disconnect_timeout_in_seconds (
Union[int,float,None]) – Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.idle_disconnect_timeout_in_seconds (
Union[int,float,None]) – The amount of time in seconds a connection will stay active while idle.max_user_duration_in_seconds (
Union[int,float,None]) – Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.
- See:
- 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_workspaces import mixins as workspaces_mixins timeout_settings_property = workspaces_mixins.CfnWorkspacesPoolPropsMixin.TimeoutSettingsProperty( disconnect_timeout_in_seconds=123, idle_disconnect_timeout_in_seconds=123, max_user_duration_in_seconds=123 )
Attributes
- disconnect_timeout_in_seconds
Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect.
If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.
- idle_disconnect_timeout_in_seconds
The amount of time in seconds a connection will stay active while idle.
- max_user_duration_in_seconds
Specifies the maximum amount of time, in seconds, that a streaming session can remain active.
If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.