LayerVersionAttributes

class aws_cdk.aws_lambda.LayerVersionAttributes(*, compatible_runtimes=None, layer_version_arn)

Bases: object

Properties necessary to import a LayerVersion.

Parameters
  • compatible_runtimes (Optional[Sequence[Runtime]]) – The list of compatible runtimes with this Layer.

  • layer_version_arn (str) – The ARN of the LayerVersion.

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 is of type 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.

Return type

Optional[List[Runtime]]

layer_version_arn

The ARN of the LayerVersion.

Return type

str