# WebFunctionEndpointAttributes

Attributes for importing an existing WebFunction endpoint.

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

## Example

```ts
const endpoint = lambda.WebFunctionEndpoint.fromWebFunctionEndpointAttributes(this, 'Endpoint', {
  endpointArn: 'arn:aws:lambda:us-west-2:123456789012:web-function/my-function/endpoint/prod',
  domainName: 'abcd1234.lambda-web.us-west-2.on.aws',
  endpointType: lambda.WebFunctionEndpointType.HOME_REGION,
  authType: lambda.WebFunctionAuthType.IAM_AUTH,
});
```

## Properties

- `authType`: [WebFunctionAuthType](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.WebFunctionAuthType.html) (required) — How the endpoint authenticates requests.

  For an imported endpoint this is taken as given: it is not verified against the
  deployed endpoint and must match it, because downstream constructs rely on it for
  a synth-time security decision. Like `domainName`, it cannot be derived from the ARN.

- `domainName`: string (required) — The domain name of the endpoint.

  The service assigns it, so it cannot be derived from the ARN.

- `endpointArn`: string (required) — The ARN of the endpoint, `arn:<partition>:lambda:<region>:<account>:web-function/<function>/endpoint/<endpoint>`.

- `endpointType`: [WebFunctionEndpointType](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.WebFunctionEndpointType.html) (required) — The endpoint type.
