interface CfnLayerVersionProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.CfnLayerVersionProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnLayerVersionProps |
![]() | software.amazon.awscdk.services.lambda.CfnLayerVersionProps |
![]() | aws_cdk.aws_lambda.CfnLayerVersionProps |
![]() | aws-cdk-lib » aws_lambda » CfnLayerVersionProps |
Properties for defining a CfnLayerVersion
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html
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
Name | Type | Description |
---|---|---|
content | IResolvable | Content | The function layer archive. |
compatible | string[] | A list of compatible instruction set architectures . |
compatible | string[] | A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions . |
description? | string | The description of the version. |
layer | string | The name or Amazon Resource Name (ARN) of the layer. |
license | string | The layer's software license. It can be any of the following:. |
content
Type:
IResolvable
|
Content
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.