CfnLayerVersionPropsο
- class aws_cdk.aws_lambda.CfnLayerVersionProps(*, content, compatible_architectures=None, compatible_runtimes=None, description=None, layer_name=None, license_info=None)ο
Bases:
objectProperties for defining a
CfnLayerVersion.- Parameters:
content (
Union[IResolvable,ContentProperty,Dict[str,Any]]) β The function layer archive.compatible_architectures (
Optional[Sequence[str]]) β A list of compatible instruction set architectures .compatible_runtimes (
Optional[Sequence[str]]) β A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .description (
Optional[str]) β The description of the version.layer_name (
Optional[str]) β The name or Amazon Resource Name (ARN) of the layer.license_info (
Optional[str]) β 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.
- See:
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. from aws_cdk import 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 .
- compatible_runtimesο
A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .
- contentο
The function layer archive.
- descriptionο
The description of the version.
- layer_nameο
The name or Amazon Resource Name (ARN) of the layer.
- license_infoο
.
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.
- See:
- Type:
The layerβs software license. It can be any of the following