CfnLayerVersionProps — AWS Cloud Development Kit 1.204.0 documentation (original) (raw)

AWS Cloud Development Kit

class aws_cdk.aws_lambda.CfnLayerVersionProps(*, content, compatible_architectures=None, compatible_runtimes=None, description=None, layer_name=None, license_info=None)

Bases: object

Properties for defining a CfnLayerVersion.

Parameters:

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html

ExampleMetadata:

fixture=_generated

Example:

The code below shows an example of how to instantiate this type.

The values are placeholders you should change.

import aws_cdk.aws_lambda as lambda_

cfn_layer_version_props = lambda.CfnLayerVersionProps( content=lambda.CfnLayerVersion.ContentProperty( s3_bucket="s3Bucket", s3_key="s3Key",

    # the properties below are optional
    s3_object_version="s3ObjectVersion"
),

# the properties below are optional
compatible_architectures=["compatibleArchitectures"],
compatible_runtimes=["compatibleRuntimes"],
description="description",
layer_name="layerName",
license_info="licenseInfo"

)

Attributes

compatible_architectures

A list of compatible instruction set architectures .

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatiblearchitectures

compatible_runtimes

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatibleruntimes

content

The function layer archive.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-content

description

The description of the version.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-description

layer_name

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-layername

license_info

.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-licenseinfo

Type:

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