# S3ObjectProperty

The S3 location of the function code.

- Source: Generated code
- Type last changed: v2.273.0 · 8 Oct 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 s3ObjectProperty: lambda.CfnWebFunctionRevision.S3ObjectProperty = {
  bucket: 'bucket',
  key: 'key',

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

## Properties

- `bucket`: string (required) — The S3 bucket name.

- `key`: string (required) — The S3 object key.

- `versionId`: string — The S3 object version ID.
