interface LayerVersionAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.LayerVersionAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#LayerVersionAttributes |
Java | software.amazon.awscdk.services.lambda.LayerVersionAttributes |
Python | aws_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
Name | Type | Description |
---|---|---|
layer | string | The ARN of the LayerVersion. |
compatible | 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.