Defines a new Lambda Layer version.
import { LayerVersion } from 'aws-cdk-lib/aws-lambda';Or use the module namespace:
import * as lambda from 'aws-cdk-lib/aws-lambda';
// lambda.LayerVersionConfiguration passed to the constructor as LayerVersionProps.
codeRequiredCodeThe content of this Layer. Using `Code.fromInline` is not supported.
compatibleArchitecturesOptionalArchitecture[]The system architectures compatible with this layer.
Default: [Architecture.X86_64]
compatibleRuntimesOptionalRuntime[]The runtimes compatible with this Layer.
Default: - All runtimes are supported.
LayerVersionOptionsdescriptionOptionalinherited from LayerVersionOptionsstringThe description the this Lambda Layer.
Default: - No description.
layerVersionNameOptionalinherited from LayerVersionOptionsstringThe name of the layer.
Default: - A name will be generated.
licenseOptionalinherited from LayerVersionOptionsstringThe SPDX licence identifier or URL to the license file for this layer.
Default: - No license information will be recorded.
removalPolicyOptionalinherited from LayerVersionOptionsRemovalPolicyWhether to retain this version of the layer when a new version is added or when the stack is deleted.
Default: RemovalPolicy.DESTROY
Everything you need to know about AWS Lambda on one page. HD quality, print-friendly.
Download Free Infographicaws-lambda