PythonLayerVersionProps๏ƒ

class aws_cdk.aws_lambda_python_alpha.PythonLayerVersionProps(*, description=None, layer_version_name=None, license=None, removal_policy=None, entry, bundling=None, compatible_architectures=None, compatible_runtimes=None)๏ƒ

Bases: 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.

  • bundling (Union[BundlingOptions, Dict[str, Any], None]) โ€“ (experimental) 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. Default: - Use the default bundling Docker image, with x86_64 architecture.

  • compatible_architectures (Optional[Sequence[Architecture]]) โ€“ (experimental) The system architectures compatible with this layer. Default: [Architecture.X86_64]

  • compatible_runtimes (Optional[Sequence[Runtime]]) โ€“ (experimental) The runtimes compatible with the python layer. Default: - Only Python 3.7 is supported.

Stability:

experimental

ExampleMetadata:

infused

Example:

python.PythonLayerVersion(self, "MyLayer",
    entry="/path/to/my/layer"
)

Attributes

bundling๏ƒ

(experimental) 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.

Default:
  • Use the default bundling Docker image, with x86_64 architecture.

Stability:

experimental

compatible_architectures๏ƒ

(experimental) The system architectures compatible with this layer.

Default:

[Architecture.X86_64]

Stability:

experimental

compatible_runtimes๏ƒ

(experimental) The runtimes compatible with the python layer.

Default:
  • Only Python 3.7 is supported.

Stability:

experimental

description๏ƒ

The description the this Lambda Layer.

Default:
  • No description.

entry๏ƒ

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

Stability:

experimental

layer_version_name๏ƒ

The name of the layer.

Default:
  • A name will be generated.

license๏ƒ

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

Default:
  • No license information will be recorded.

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