Skip to content
v2.274.0

LayerVersionAttributes Struct ​

Properties necessary to import a LayerVersion.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';

declare const runtime: lambda.Runtime;
const layerVersionAttributes: lambda.LayerVersionAttributes = {
  layerVersionArn: 'layerVersionArn',

  // the properties below are optional
  compatibleRuntimes: [runtime],
};

Properties ​

compatibleRuntimesRuntime[]compatible_runtimestyping.List[Runtime]compatibleRuntimesList<Runtime>CompatibleRuntimesRuntime[]CompatibleRuntimes*[]Runtime#
The list of compatible runtimes with this Layer.
layerVersionArnstringlayer_version_arnstrlayerVersionArnStringLayerVersionArnstringLayerVersionArn*stringrequired#
The ARN of the LayerVersion.