WebFunctionAttributes Struct
Attributes for importing an existing WebFunction.
| Source | aws-lambda/lib/webfunction.ts |
|---|---|
| Type last changed |
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 webFunctionAttributes: lambda.WebFunctionAttributes = {
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_attributes = lambda.WebFunctionAttributes(
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.*;
WebFunctionAttributes webFunctionAttributes = WebFunctionAttributes.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 webFunctionAttributes = new WebFunctionAttributes {
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"
webFunctionAttributes := &WebFunctionAttributes{
WebFunctionArn: jsii.String("webFunctionArn"),
}
Properties
webFunctionArnstringweb_function_arnstrwebFunctionArnStringWebFunctionArnstringWebFunctionArn*string required #The ARN of the WebFunction.