CfnLayerVersionPropsMixin

class aws_cdk.mixins_preview.aws_sam.mixins.CfnLayerVersionPropsMixin(props, *, strategy=None)

Bases: Mixin

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesslayerversion.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-layerversion.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-layerversion-s3location.html

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

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-layerversion-s3location.html#cfn-serverless-layerversion-s3location-bucket

Type:

see

key

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-layerversion-s3location.html#cfn-serverless-layerversion-s3location-key

Type:

see

version

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-layerversion-s3location.html#cfn-serverless-layerversion-s3location-version

Type:

see