CfnApplicationVersionPropsMixin
- class aws_cdk.mixins_preview.aws_elasticbeanstalk.mixins.CfnApplicationVersionPropsMixin(props, *, strategy=None)
Bases:
MixinSpecify an AWS Elastic Beanstalk application version by using the AWS::ElasticBeanstalk::ApplicationVersion resource in an AWS CloudFormation template.
The AWS::ElasticBeanstalk::ApplicationVersion resource is an AWS Elastic Beanstalk resource type that specifies an application version, an iteration of deployable code, for an Elastic Beanstalk application. .. epigraph:
After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 location, an attempt to launch an environment from the application version will fail.
- See:
- CloudformationResource:
AWS::ElasticBeanstalk::ApplicationVersion
- 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_elasticbeanstalk import mixins as elasticbeanstalk_mixins cfn_application_version_props_mixin = elasticbeanstalk_mixins.CfnApplicationVersionPropsMixin(elasticbeanstalk_mixins.CfnApplicationVersionMixinProps( application_name="applicationName", description="description", source_bundle=elasticbeanstalk_mixins.CfnApplicationVersionPropsMixin.SourceBundleProperty( s3_bucket="s3Bucket", s3_key="s3Key" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ElasticBeanstalk::ApplicationVersion.- Parameters:
props (
Union[CfnApplicationVersionMixinProps,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 = ['applicationName', 'description', 'sourceBundle']
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
SourceBundleProperty
- class CfnApplicationVersionPropsMixin.SourceBundleProperty(*, s3_bucket=None, s3_key=None)
Bases:
objectUse the
SourceBundleproperty type to specify the Amazon S3 location of the source bundle for an AWS Elastic Beanstalk application version when defining an AWS::ElasticBeanstalk::ApplicationVersion resource in an AWS CloudFormation template.The
SourceBundleproperty is an embedded property of the AWS::ElasticBeanstalk::ApplicationVersion resource. It specifies the Amazon S3 location of the source bundle for an AWS Elastic Beanstalk application version.- Parameters:
s3_bucket (
Optional[str]) – The Amazon S3 bucket where the data is located.s3_key (
Optional[str]) – The Amazon S3 key where the data is located.
- 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_elasticbeanstalk import mixins as elasticbeanstalk_mixins source_bundle_property = elasticbeanstalk_mixins.CfnApplicationVersionPropsMixin.SourceBundleProperty( s3_bucket="s3Bucket", s3_key="s3Key" )
Attributes
- s3_bucket
The Amazon S3 bucket where the data is located.
- s3_key
The Amazon S3 key where the data is located.