# WebFunctionCodeConfig

WebFunction code configuration result.

- 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#L38)
- 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 webFunctionCodeConfig: lambda.WebFunctionCodeConfig = {
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

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

## Properties

- `s3Location`: [WebFunctionS3Location](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.WebFunctionS3Location.html) (required) — The S3 location of the code.
