interface LayerVersionOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.LayerVersionOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#LayerVersionOptions |
Java | software.amazon.awscdk.services.lambda.LayerVersionOptions |
Python | aws_cdk.aws_lambda.LayerVersionOptions |
TypeScript (source) | aws-cdk-lib » aws_lambda » LayerVersionOptions |
Non runtime options.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_lambda as lambda } from 'aws-cdk-lib';
const layerVersionOptions: lambda.LayerVersionOptions = {
description: 'description',
layerVersionName: 'layerVersionName',
license: 'license',
removalPolicy: cdk.RemovalPolicy.DESTROY,
};
Properties
| Name | Type | Description |
|---|---|---|
| description? | string | The description the this Lambda Layer. |
| layer | string | The name of the layer. |
| license? | string | The SPDX licence identifier or URL to the license file for this layer. |
| removal | Removal | Whether to retain this version of the layer when a new version is added or when the stack is deleted. |
description?
Type:
string
(optional, default: No description.)
The description the this Lambda Layer.
layerVersionName?
Type:
string
(optional, default: A name will be generated.)
The name of the layer.
license?
Type:
string
(optional, default: No license information will be recorded.)
The SPDX licence identifier or URL to the license file for this layer.
removalPolicy?
Type:
Removal
(optional, default: RemovalPolicy.DESTROY)
Whether to retain this version of the layer when a new version is added or when the stack is deleted.

.NET
Go
Java
Python
TypeScript (