interface LayerVersionAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.LayerVersionAttributes |
Java | software.amazon.awscdk.services.lambda.LayerVersionAttributes |
Python | aws_cdk.aws_lambda.LayerVersionAttributes |
TypeScript (source) | @aws-cdk/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 * as lambda from '@aws-cdk/aws-lambda';
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.