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
,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
- 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
- Return type
Optional
[List
[str
]]
-
content_uri
¶ AWS::Serverless::LayerVersion.ContentUri
.- Link
- Return type
Union
[str
,IResolvable
,S3LocationProperty
,None
]
-
description
¶ AWS::Serverless::LayerVersion.Description
.- Link
- Return type
Optional
[str
]
-
layer_name
¶ AWS::Serverless::LayerVersion.LayerName
.- Link
- Return type
Optional
[str
]
-
license_info
¶ AWS::Serverless::LayerVersion.LicenseInfo
.- Link
- Return type
Optional
[str
]
-
retention_policy
¶ AWS::Serverless::LayerVersion.RetentionPolicy
.- Link
- Return type
Optional
[str
]