LayerVersionAttributes
- class aws_cdk.aws_lambda.LayerVersionAttributes(*, layer_version_arn, compatible_runtimes=None)
Bases:
object
Properties necessary to import a LayerVersion.
- Parameters:
layer_version_arn (
str
) – The ARN of the LayerVersion.compatible_runtimes (
Optional
[Sequence
[Runtime
]]) – The list of compatible runtimes with this Layer.
- 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_lambda as lambda_ # runtime: lambda.Runtime layer_version_attributes = lambda.LayerVersionAttributes( layer_version_arn="layerVersionArn", # the properties below are optional compatible_runtimes=[runtime] )
Attributes
- compatible_runtimes
The list of compatible runtimes with this Layer.
- layer_version_arn
The ARN of the LayerVersion.