CfnLayerVersionProps

class aws_cdk.aws_sam.CfnLayerVersionProps(*, compatible_runtimes=None, content_uri=None, description=None, layer_name=None, license_info=None, retention_policy=None)

Bases: object

Properties for defining a CfnLayerVersion.

Parameters:
  • compatible_runtimes (Optional[Sequence[str]]) – AWS::Serverless::LayerVersion.CompatibleRuntimes.

  • content_uri (Union[str, IResolvable, S3LocationProperty, Dict[str, Any], None]) – AWS::Serverless::LayerVersion.ContentUri.

  • description (Optional[str]) – AWS::Serverless::LayerVersion.Description.

  • layer_name (Optional[str]) – AWS::Serverless::LayerVersion.LayerName.

  • license_info (Optional[str]) – AWS::Serverless::LayerVersion.LicenseInfo.

  • retention_policy (Optional[str]) – AWS::Serverless::LayerVersion.RetentionPolicy.

Link:

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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sam as sam

cfn_layer_version_props = sam.CfnLayerVersionProps(
    compatible_runtimes=["compatibleRuntimes"],
    content_uri="contentUri",
    description="description",
    layer_name="layerName",
    license_info="licenseInfo",
    retention_policy="retentionPolicy"
)

Attributes

compatible_runtimes

AWS::Serverless::LayerVersion.CompatibleRuntimes.

Link:

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

content_uri

AWS::Serverless::LayerVersion.ContentUri.

Link:

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

description

AWS::Serverless::LayerVersion.Description.

Link:

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

layer_name

AWS::Serverless::LayerVersion.LayerName.

Link:

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

license_info

AWS::Serverless::LayerVersion.LicenseInfo.

Link:

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

retention_policy

AWS::Serverless::LayerVersion.RetentionPolicy.

Link:

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