> **Experimental**
>
> `@aws-cdk/aws-lambda-python-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# PythonLayerVersionProps

Properties for PythonLayerVersion.

Extends: PythonLayerVersionProps
Extends: LayerVersionOptions
Used as props by: PythonLayerVersion

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/layer.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-lambda-python-alpha/lib/layer.ts#L13)

## Example

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

## Properties

- `bundling`: [BundlingOptions](/cdk/api/v2/docs/@aws-cdk_aws-lambda-python-alpha.BundlingOptions.html) — Bundling options to use for this function.

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

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

- `compatibleArchitectures`: [Architecture](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Architecture.html)[] = [Architecture.X86_64] — The system architectures compatible with this layer.

- `compatibleRuntimes`: [Runtime](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Runtime.html)[] — The runtimes compatible with the python layer.

  **Default:** Only Python 3.7 is supported.

- `description`: string — The description the this Lambda Layer.

  **Default:** No description.

- `entry`: string (required) — The path to the root directory of the lambda layer.

- `layerVersionName`: string — The name of the layer.

  **Default:** A name will be generated.

- `license`: string — The SPDX licence identifier or URL to the license file for this layer.

  **Default:** No license information will be recorded.

- `removalPolicy`: [RemovalPolicy](/cdk/api/v2/docs/aws-cdk-lib.RemovalPolicy.html) = RemovalPolicy.DESTROY — Whether to retain this version of the layer when a new version is added or when the stack is deleted.
