interface CfnLayerVersionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.SAM.CfnLayerVersionProps |
Java | software.amazon.awscdk.services.sam.CfnLayerVersionProps |
Python | aws_cdk.aws_sam.CfnLayerVersionProps |
TypeScript | @aws-cdk/aws-sam » 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 * as sam from '@aws-cdk/aws-sam';
const cfnLayerVersionProps: sam.CfnLayerVersionProps = {
compatibleRuntimes: ['compatibleRuntimes'],
contentUri: 'contentUri',
description: 'description',
layerName: 'layerName',
licenseInfo: 'licenseInfo',
retentionPolicy: 'retentionPolicy',
};
Properties
| Name | Type | Description |
|---|---|---|
| compatible | string[] | AWS::Serverless::LayerVersion.CompatibleRuntimes. |
| content | string | IResolvable | S3 | AWS::Serverless::LayerVersion.ContentUri. |
| description? | string | AWS::Serverless::LayerVersion.Description. |
| layer | string | AWS::Serverless::LayerVersion.LayerName. |
| license | string | AWS::Serverless::LayerVersion.LicenseInfo. |
| retention | string | AWS::Serverless::LayerVersion.RetentionPolicy. |
compatibleRuntimes?
Type:
string[]
(optional)
AWS::Serverless::LayerVersion.CompatibleRuntimes.
contentUri?
Type:
string | IResolvable | S3
(optional)
AWS::Serverless::LayerVersion.ContentUri.
description?
Type:
string
(optional)
AWS::Serverless::LayerVersion.Description.
layerName?
Type:
string
(optional)
AWS::Serverless::LayerVersion.LayerName.
licenseInfo?
Type:
string
(optional)
AWS::Serverless::LayerVersion.LicenseInfo.
retentionPolicy?
Type:
string
(optional)
AWS::Serverless::LayerVersion.RetentionPolicy.

.NET
Java
Python
TypeScript