Skip to content
v2.276.0

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 ​

MemberDescription
APPLICATION_MANAGEDAuthentication is managed by the application itself.
IAM_AUTHAuthentication using AWS IAM.

Referenced by ​