# CfnLayerVersionProps

Properties for defining a `CfnLayerVersion`.

Extends: CfnLayerVersionProps
Used as props by: CfnLayerVersion

- Source: Generated code

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const cfnLayerVersionProps: lambda.CfnLayerVersionProps = {
  content: {
    s3Bucket: 's3Bucket',
    s3Key: 's3Key',

    // the properties below are optional
    s3ObjectStorageMode: 's3ObjectStorageMode',
    s3ObjectVersion: 's3ObjectVersion',
  },

  // the properties below are optional
  compatibleArchitectures: ['compatibleArchitectures'],
  compatibleRuntimes: ['compatibleRuntimes'],
  description: 'description',
  layerName: 'layerName',
  licenseInfo: 'licenseInfo',
};
```

## Properties

- `compatibleArchitectures`: string[] — A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .

- `compatibleRuntimes`: string[] — A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Used for filtering with [ListLayers](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayers.html) and [ListLayerVersions](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayerVersions.html) .

- `content`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLayerVersion.ContentProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnLayerVersion.ContentProperty.html) (required) — The function layer archive.

- `description`: string — The description of the version.

- `layerName`: string — The name or Amazon Resource Name (ARN) of the layer.

- `licenseInfo`: string — The layer's software license. It can be any of the following:.

  - An [SPDX license identifier](https://docs.aws.amazon.com/https://spdx.org/licenses/) . For example, `MIT` .
  - The URL of a license hosted on the internet. For example, `https://opensource.org/licenses/MIT` .
  - The full text of the license.
