PythonLayerVersionProps

class aws_cdk.aws_lambda_python.PythonLayerVersionProps(*, description=None, layer_version_name=None, license=None, removal_policy=None, entry, compatible_runtimes=None)

Bases: aws_cdk.aws_lambda.LayerVersionOptions

(experimental) Properties for PythonLayerVersion.

Parameters
  • description (Optional[str]) – The description the this Lambda Layer. Default: - No description.

  • layer_version_name (Optional[str]) – The name of the layer. Default: - A name will be generated.

  • license (Optional[str]) – The SPDX licence identifier or URL to the license file for this layer. Default: - No license information will be recorded.

  • removal_policy (Optional[RemovalPolicy]) – Whether to retain this version of the layer when a new version is added or when the stack is deleted. Default: RemovalPolicy.DESTROY

  • entry (str) – (experimental) The path to the root directory of the lambda layer.

  • compatible_runtimes (Optional[Sequence[Runtime]]) – (experimental) The runtimes compatible with the python layer. Default: - All runtimes are supported.

Stability

experimental

Attributes

compatible_runtimes

(experimental) The runtimes compatible with the python layer.

Default
  • All runtimes are supported.

Stability

experimental

Return type

Optional[List[Runtime]]

description

The description the this Lambda Layer.

Default
  • No description.

Return type

Optional[str]

entry

(experimental) The path to the root directory of the lambda layer.

Stability

experimental

Return type

str

layer_version_name

The name of the layer.

Default
  • A name will be generated.

Return type

Optional[str]

license

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

Default
  • No license information will be recorded.

Return type

Optional[str]

removal_policy

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

Default

RemovalPolicy.DESTROY

Return type

Optional[RemovalPolicy]