aws-cdk-lib.aws_sam.CfnLayerVersionProps

interface CfnLayerVersionProps

LanguageType name
.NETAmazon.CDK.AWS.SAM.CfnLayerVersionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssam#CfnLayerVersionProps
Javasoftware.amazon.awscdk.services.sam.CfnLayerVersionProps
Pythonaws_cdk.aws_sam.CfnLayerVersionProps
TypeScript aws-cdk-lib » 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 { aws_sam as sam } from 'aws-cdk-lib';
const cfnLayerVersionProps: sam.CfnLayerVersionProps = {
  compatibleRuntimes: ['compatibleRuntimes'],
  contentUri: 'contentUri',
  description: 'description',
  layerName: 'layerName',
  licenseInfo: 'licenseInfo',
  retentionPolicy: 'retentionPolicy',
};

Properties

NameTypeDescription
compatibleRuntimes?string[]AWS::Serverless::LayerVersion.CompatibleRuntimes.
contentUri?string | IResolvable | S3LocationPropertyAWS::Serverless::LayerVersion.ContentUri.
description?stringAWS::Serverless::LayerVersion.Description.
layerName?stringAWS::Serverless::LayerVersion.LayerName.
licenseInfo?stringAWS::Serverless::LayerVersion.LicenseInfo.
retentionPolicy?stringAWS::Serverless::LayerVersion.RetentionPolicy.

compatibleRuntimes?

Type: string[] (optional)

AWS::Serverless::LayerVersion.CompatibleRuntimes.


contentUri?

Type: string | IResolvable | S3LocationProperty (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.