@aws-cdk_aws-lambda-python-alpha.PythonLayerVersionProps

interface PythonLayerVersionProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Lambda.Python.Alpha.PythonLayerVersionProps
Gogithub.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2#PythonLayerVersionProps
Javasoftware.amazon.awscdk.services.lambda.python.alpha.PythonLayerVersionProps
Pythonaws_cdk.aws_lambda_python_alpha.PythonLayerVersionProps
TypeScript (source)@aws-cdk/aws-lambda-python-alpha ยป PythonLayerVersionProps

Properties for PythonLayerVersion.

Example

new python.PythonLayerVersion(this, 'MyLayer', {
  entry: '/path/to/my/layer', // point this to your library's directory
})

Properties

NameTypeDescription
entry๐Ÿ”นstringThe path to the root directory of the lambda layer.
bundling?๐Ÿ”นBundlingOptionsBundling options to use for this function.
compatibleArchitectures?๐Ÿ”นArchitecture[]The system architectures compatible with this layer.
compatibleRuntimes?๐Ÿ”นRuntime[]The runtimes compatible with the python layer.
description?๐Ÿ”นstringThe description the this Lambda Layer.
layerVersionName?๐Ÿ”นstringThe name of the layer.
license?๐Ÿ”นstringThe SPDX licence identifier or URL to the license file for this layer.
removalPolicy?๐Ÿ”นRemovalPolicyWhether to retain this version of the layer when a new version is added or when the stack is deleted.

entry๐Ÿ”น

Type: string

The path to the root directory of the lambda layer.


bundling?๐Ÿ”น

Type: BundlingOptions (optional, default: Use the default bundling Docker image, with x86_64 architecture.)

Bundling options to use for this function.

Use this to specify custom bundling options like the bundling Docker image, asset hash type, custom hash, architecture, etc.


compatibleArchitectures?๐Ÿ”น

Type: Architecture[] (optional, default: [Architecture.X86_64])

The system architectures compatible with this layer.


compatibleRuntimes?๐Ÿ”น

Type: Runtime[] (optional, default: Only Python 3.7 is supported.)

The runtimes compatible with the python layer.


description?๐Ÿ”น

Type: string (optional, default: No description.)

The description the this Lambda Layer.


layerVersionName?๐Ÿ”น

Type: string (optional, default: A name will be generated.)

The name of the layer.


license?๐Ÿ”น

Type: string (optional, default: No license information will be recorded.)

The SPDX licence identifier or URL to the license file for this layer.


removalPolicy?๐Ÿ”น

Type: RemovalPolicy (optional, default: RemovalPolicy.DESTROY)

Whether to retain this version of the layer when a new version is added or when the stack is deleted.