# ContentProperty

A ZIP archive that contains the contents of an [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) .

- Source: Generated code
- Type last changed: v2.261.0 · 2 Jul 2026

## 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 contentProperty: lambda.CfnLayerVersion.ContentProperty = {
  s3Bucket: 's3Bucket',
  s3Key: 's3Key',

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

## Properties

- `s3Bucket`: string (required) — The Amazon S3 bucket of the layer archive.

- `s3Key`: string (required) — The Amazon S3 key of the layer archive.

- `s3ObjectStorageMode`: string — Specifies whether Lambda should copy the deployment package to its internal storage (COPY) or reference it directly from your S3 bucket (REFERENCE).

- `s3ObjectVersion`: string — For versioned objects, the version of the layer archive object to use.
