CfnApplicationPropsMixin
- class aws_cdk.mixins_preview.aws_m2.mixins.CfnApplicationPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies a new application with given parameters. Requires an existing runtime environment and application definition file.
For information about application definitions, see the AWS Mainframe Modernization User Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-m2-application.html
- CloudformationResource:
AWS::M2::Application
- 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_m2 import mixins as m2_mixins cfn_application_props_mixin = m2_mixins.CfnApplicationPropsMixin(m2_mixins.CfnApplicationMixinProps( definition=m2_mixins.CfnApplicationPropsMixin.DefinitionProperty( content="content", s3_location="s3Location" ), description="description", engine_type="engineType", kms_key_id="kmsKeyId", name="name", role_arn="roleArn", tags={ "tags_key": "tags" } ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::M2::Application.- Parameters:
props (
Union[CfnApplicationMixinProps,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 = ['definition', 'description', 'engineType', 'kmsKeyId', 'name', 'roleArn', '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
DefinitionProperty
- class CfnApplicationPropsMixin.DefinitionProperty(*, content=None, s3_location=None)
Bases:
objectThe application definition for a particular application.
You can specify either inline JSON or an Amazon S3 bucket location.
- Parameters:
content (
Optional[str]) – The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.s3_location (
Optional[str]) – The S3 bucket that contains the application definition.
- 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_m2 import mixins as m2_mixins definition_property = m2_mixins.CfnApplicationPropsMixin.DefinitionProperty( content="content", s3_location="s3Location" )
Attributes
- content
The content of the application definition.
This is a JSON object that contains the resource configuration/definitions that identify an application.
- s3_location
The S3 bucket that contains the application definition.