# LayerVersionOptions

Non runtime options.

- Source: [`aws-lambda/lib/layers.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-lambda/lib/layers.ts#L23)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_lambda as lambda } from 'aws-cdk-lib';
const layerVersionOptions: lambda.LayerVersionOptions = {
  description: 'description',
  layerVersionName: 'layerVersionName',
  license: 'license',
  removalPolicy: cdk.RemovalPolicy.DESTROY,
};
```

## Properties

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

  **Default:** No description.

- `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.
