LayerVersionOptions Struct
Non runtime options.
Example
ts
// 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
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#The description the this Lambda Layer.
Default: No description.
layerVersionNameoptionalstringlayer_version_nameoptionalstrlayerVersionNameoptionalStringLayerVersionNameoptionalstringLayerVersionNameoptional*string#The name of the layer.
Default: A name will be generated.
licenseoptionalstringlicenseoptionalstrlicenseoptionalStringLicenseoptionalstringLicenseoptional*string#The SPDX licence identifier or URL to the license file for this layer.
Default: No license information will be recorded.
removalPolicyoptionalRemovalPolicyremoval_policyoptionalRemovalPolicyremovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicy= RemovalPolicy.DESTROY#Whether to retain this version of the layer when a new version is added or when the stack is deleted.