aws-cdk-lib.aws_lambda.LayerVersionAttributes

interface LayerVersionAttributes

LanguageType name
.NETAmazon.CDK.AWS.Lambda.LayerVersionAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#LayerVersionAttributes
Javasoftware.amazon.awscdk.services.lambda.LayerVersionAttributes
Pythonaws_cdk.aws_lambda.LayerVersionAttributes
TypeScript (source)aws-cdk-lib » aws_lambda » LayerVersionAttributes

Properties necessary to import a LayerVersion.

Example

// 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

NameTypeDescription
layerVersionArnstringThe ARN of the LayerVersion.
compatibleRuntimes?Runtime[]The list of compatible runtimes with this Layer.

layerVersionArn

Type: string

The ARN of the LayerVersion.


compatibleRuntimes?

Type: Runtime[] (optional)

The list of compatible runtimes with this Layer.