aws-cdk-lib.aws_lambda.CfnLayerVersionProps

interface CfnLayerVersionProps

LanguageType name
.NETAmazon.CDK.AWS.Lambda.CfnLayerVersionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnLayerVersionProps
Javasoftware.amazon.awscdk.services.lambda.CfnLayerVersionProps
Pythonaws_cdk.aws_lambda.CfnLayerVersionProps
TypeScript aws-cdk-lib » aws_lambda » CfnLayerVersionProps

Properties for defining a CfnLayerVersion.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const cfnLayerVersionProps: lambda.CfnLayerVersionProps = {
  content: {
    s3Bucket: 's3Bucket',
    s3Key: 's3Key',

    // the properties below are optional
    s3ObjectVersion: 's3ObjectVersion',
  },

  // the properties below are optional
  compatibleArchitectures: ['compatibleArchitectures'],
  compatibleRuntimes: ['compatibleRuntimes'],
  description: 'description',
  layerName: 'layerName',
  licenseInfo: 'licenseInfo',
};

Properties

NameTypeDescription
contentIResolvable | ContentPropertyThe function layer archive.
compatibleArchitectures?string[]A list of compatible instruction set architectures .
compatibleRuntimes?string[]A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .
description?stringThe description of the version.
layerName?stringThe name or Amazon Resource Name (ARN) of the layer.
licenseInfo?stringThe layer's software license. It can be any of the following:.

content

Type: IResolvable | ContentProperty

The function layer archive.


compatibleArchitectures?

Type: string[] (optional)

A list of compatible instruction set architectures .


compatibleRuntimes?

Type: string[] (optional)

A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .


description?

Type: string (optional)

The description of the version.


layerName?

Type: string (optional)

The name or Amazon Resource Name (ARN) of the layer.


licenseInfo?

Type: string (optional)

The layer's software license. It can be any of the following:.

  • An SPDX license identifier . 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.