AWS::Lambda::LayerVersionThe `AWS::Lambda::LayerVersion` resource creates a [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) from a ZIP archive.
import { CfnLayerVersion } from 'aws-cdk-lib/aws-lambda';Or use the module namespace:
import * as lambda from 'aws-cdk-lib/aws-lambda';
// lambda.CfnLayerVersionConfiguration passed to the constructor as CfnLayerVersionProps.
contentRequiredIResolvable | ContentPropertyThe function layer archive.
compatibleArchitecturesOptionalstring[]A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
compatibleRuntimesOptionalstring[]A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Used for filtering with [ListLayers](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayers.html) and [ListLayerVersions](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayerVersions.html) .
descriptionOptionalstringThe description of the version.
layerNameOptionalstringThe name or Amazon Resource Name (ARN) of the layer.
licenseInfoOptionalstringThe layer's software license. It can be any of the following:. - An [SPDX license identifier](https://docs.aws.amazon.com/https://spdx.org/licenses/) . For example, `MIT` . - The URL of a license hosted on the internet. For example, `https://opensource.org/licenses/MIT` . - The full text of the license.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about AWS Lambda on one page. HD quality, print-friendly.
Download Free Infographicaws-lambdaAWS::Lambda::LayerVersion