WebFunctionEndpointAttributes Struct Added in v2.276.0
Attributes for importing an existing WebFunction endpoint.
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
authTypeWebFunctionAuthTypeauth_typeWebFunctionAuthTypeauthTypeWebFunctionAuthTypeAuthTypeWebFunctionAuthTypeAuthTypeWebFunctionAuthTyperequired#How the endpoint authenticates requests.
notes
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.
The domain name of the endpoint.
The service assigns it, so it cannot be derived from the ARN.
The ARN of the endpoint, `arn:<partition>:lambda:<region>:<account>:web-function/<function>/endpoint/<endpoint>`.
endpointTypeWebFunctionEndpointTypeendpoint_typeWebFunctionEndpointTypeendpointTypeWebFunctionEndpointTypeEndpointTypeWebFunctionEndpointTypeEndpointTypeWebFunctionEndpointTyperequired#The endpoint type.