aws-cdk-lib.aws_lambda.LayerVersionOptions

interface LayerVersionOptions

LanguageType name
.NETAmazon.CDK.AWS.Lambda.LayerVersionOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#LayerVersionOptions
Javasoftware.amazon.awscdk.services.lambda.LayerVersionOptions
Pythonaws_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

NameTypeDescription
description?stringThe description the this Lambda Layer.
layerVersionName?stringThe name of the layer.
license?stringThe SPDX licence identifier or URL to the license file for this layer.
removalPolicy?RemovalPolicyWhether 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: RemovalPolicy (optional, default: RemovalPolicy.DESTROY)

Whether to retain this version of the layer when a new version is added or when the stack is deleted.