CfnAppBlockPropsMixin
- class aws_cdk.mixins_preview.aws_appstream.mixins.CfnAppBlockPropsMixin(props, *, strategy=None)
Bases:
MixinThis resource creates an app block.
App blocks store details about the virtual hard disk that contains the files for the application in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. App blocks are only supported for Elastic fleets.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-appblock.html
- CloudformationResource:
AWS::AppStream::AppBlock
- 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_app_block_props_mixin = appstream_mixins.CfnAppBlockPropsMixin(appstream_mixins.CfnAppBlockMixinProps( description="description", display_name="displayName", name="name", packaging_type="packagingType", post_setup_script_details=appstream_mixins.CfnAppBlockPropsMixin.ScriptDetailsProperty( executable_parameters="executableParameters", executable_path="executablePath", script_s3_location=appstream_mixins.CfnAppBlockPropsMixin.S3LocationProperty( s3_bucket="s3Bucket", s3_key="s3Key" ), timeout_in_seconds=123 ), setup_script_details=appstream_mixins.CfnAppBlockPropsMixin.ScriptDetailsProperty( executable_parameters="executableParameters", executable_path="executablePath", script_s3_location=appstream_mixins.CfnAppBlockPropsMixin.S3LocationProperty( s3_bucket="s3Bucket", s3_key="s3Key" ), timeout_in_seconds=123 ), source_s3_location=appstream_mixins.CfnAppBlockPropsMixin.S3LocationProperty( s3_bucket="s3Bucket", s3_key="s3Key" ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppStream::AppBlock.- Parameters:
props (
Union[CfnAppBlockMixinProps,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 = ['description', 'displayName', 'name', 'packagingType', 'postSetupScriptDetails', 'setupScriptDetails', 'sourceS3Location', 'tags']
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
S3LocationProperty
- class CfnAppBlockPropsMixin.S3LocationProperty(*, s3_bucket=None, s3_key=None)
Bases:
objectThe S3 location of the app block.
- Parameters:
s3_bucket (
Optional[str]) – The S3 bucket of the app block.s3_key (
Optional[str]) – The S3 key of the S3 object of the virtual hard disk. This is required when it’s used bySetupScriptDetailsandPostSetupScriptDetails.
- 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_appstream import mixins as appstream_mixins s3_location_property = appstream_mixins.CfnAppBlockPropsMixin.S3LocationProperty( s3_bucket="s3Bucket", s3_key="s3Key" )
Attributes
- s3_bucket
The S3 bucket of the app block.
- s3_key
The S3 key of the S3 object of the virtual hard disk.
This is required when it’s used by
SetupScriptDetailsandPostSetupScriptDetails.
ScriptDetailsProperty
- class CfnAppBlockPropsMixin.ScriptDetailsProperty(*, executable_parameters=None, executable_path=None, script_s3_location=None, timeout_in_seconds=None)
Bases:
objectThe details of the script.
- Parameters:
executable_parameters (
Optional[str]) – The parameters used in the run path for the script.executable_path (
Optional[str]) – The run path for the script.script_s3_location (
Union[IResolvable,S3LocationProperty,Dict[str,Any],None]) – The S3 object location of the script.timeout_in_seconds (
Union[int,float,None]) – The run timeout, in seconds, for the script.
- 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_appstream import mixins as appstream_mixins script_details_property = appstream_mixins.CfnAppBlockPropsMixin.ScriptDetailsProperty( executable_parameters="executableParameters", executable_path="executablePath", script_s3_location=appstream_mixins.CfnAppBlockPropsMixin.S3LocationProperty( s3_bucket="s3Bucket", s3_key="s3Key" ), timeout_in_seconds=123 )
Attributes
- executable_parameters
The parameters used in the run path for the script.
- executable_path
The run path for the script.
- script_s3_location
The S3 object location of the script.
- timeout_in_seconds
The run timeout, in seconds, for the script.