CfnLayerVersionPropsMixin
- class aws_cdk.mixins_preview.aws_sam.mixins.CfnLayerVersionPropsMixin(props, *, strategy=None)
Bases:
Mixin- See:
- CloudformationResource:
AWS::Serverless::LayerVersion
- 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_sam import mixins as sam_mixins cfn_layer_version_props_mixin = sam_mixins.CfnLayerVersionPropsMixin(sam_mixins.CfnLayerVersionMixinProps( compatible_runtimes=["compatibleRuntimes"], content_uri="contentUri", description="description", layer_name="layerName", license_info="licenseInfo", retention_policy="retentionPolicy" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Serverless::LayerVersion.- Parameters:
props (
Union[CfnLayerVersionMixinProps,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 = ['compatibleRuntimes', 'contentUri', 'description', 'layerName', 'licenseInfo', 'retentionPolicy']
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 CfnLayerVersionPropsMixin.S3LocationProperty(*, bucket=None, key=None, version=None)
Bases:
object- Parameters:
bucket (
Optional[str])key (
Optional[str])version (
Union[int,float,None])
- 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_sam import mixins as sam_mixins s3_location_property = sam_mixins.CfnLayerVersionPropsMixin.S3LocationProperty( bucket="bucket", key="key", version=123 )
Attributes
- bucket
-
- Type:
see
- key
-
- Type:
see