Skip to content
v2.277.0

WebFunctionCodeBindOptions Struct ​

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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

web_function_code_bind_options = lambda.WebFunctionCodeBindOptions(
    web_function_arn="webFunctionArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

WebFunctionCodeBindOptions webFunctionCodeBindOptions = WebFunctionCodeBindOptions.builder()
        .webFunctionArn("webFunctionArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var webFunctionCodeBindOptions = new WebFunctionCodeBindOptions {
    WebFunctionArn = "webFunctionArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

webFunctionCodeBindOptions := &WebFunctionCodeBindOptions{
	WebFunctionArn: jsii.String("webFunctionArn"),
}

Properties ​

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

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