# WebFunctionCodeBindOptions

Options passed by `WebFunction` when binding 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#L48)
- 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 webFunctionCodeBindOptions: lambda.WebFunctionCodeBindOptions = {
  webFunctionArn: 'webFunctionArn',
};
```

## Properties

- `webFunctionArn`: string (required) — The ARN of the WebFunction the code is bound to.

  Used to scope the code-read policy to this function's revisions.
