# WebFunctionAttributes

Attributes for importing an existing WebFunction.

- Source: [`aws-lambda/lib/webfunction.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-lambda/lib/webfunction.ts#L279)
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `webFunctionArn`: string (required) — The ARN of the WebFunction.
