Skip to content
v2.276.0

WebFunctionCodeBindOptions Struct Added in v2.276.0 ​

Options passed by WebFunction when binding code.

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 ​

webFunctionArnstringweb_function_arnstrwebFunctionArnStringWebFunctionArnstringWebFunctionArn*stringrequired#
The ARN of the WebFunction the code is bound to.

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