# WebFunctionS3Location

S3 location for WebFunction code.

- Source: [`aws-lambda/lib/webfunction-code.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-lambda/lib/webfunction-code.ts#L16)
- Type last changed: v2.276.0 · 10 Nov 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 webFunctionS3Location: lambda.WebFunctionS3Location = {
  bucketName: 'bucketName',
  objectKey: 'objectKey',

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

## Properties

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

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

- `objectVersion`: string — The S3 object version (optional).

  **Default:** the version that is latest when the revision is created
