WebFunctionAuthType Enum Added in v2.276.0
Authentication type for WebFunction domain configuration.
Example
ts
import * as s3 from 'aws-cdk-lib/aws-s3';
declare const codeBucket: s3.IBucket;
new lambda.WebFunction(this, 'PerRegionApi', {
code: lambda.WebFunctionCode.fromBucket(codeBucket, 'app.zip', 'version-id'),
runtime: lambda.WebFunctionRuntime.NODEJS_24_X,
defaultEndpointAuth: lambda.WebFunctionAuthType.IAM_AUTH,
defaultEndpoint: {
endpointLocation: lambda.WebFunctionEndpointLocation.perRegion(['us-east-1', 'us-west-2']),
},
});
Members
| Member | Description |
|---|---|
APPLICATION_MANAGED | Authentication is managed by the application itself. |
IAM_AUTH | Authentication using AWS IAM. |
Referenced by
IWebFunctionEndpoint.authTypeauth_typeauthTypeAuthTypeAuthTypeWebFunctionEndpoint.authTypeauth_typeauthTypeAuthTypeAuthTypeWebFunctionEndpointAttributes.authTypeauth_typeauthTypeAuthTypeAuthTypeWebFunctionEndpointBase.authTypeauth_typeauthTypeAuthTypeAuthTypeWebFunctionEndpointOptions.authTypeauth_typeauthTypeAuthTypeAuthTypeWebFunctionProps.defaultEndpointAuthdefault_endpoint_authdefaultEndpointAuthDefaultEndpointAuthDefaultEndpointAuth