Skip to content
v2.273.0

FunctionUrlAuthType Enum ​

The auth types for a function url.

Example ​

ts
import * as lambda from 'aws-cdk-lib/aws-lambda';
declare const fn: lambda.Function;

const fnUrl = fn.addFunctionUrl({
  authType: lambda.FunctionUrlAuthType.AWS_IAM,
});

new cloudfront.Distribution(this, 'MyDistribution', {
  defaultBehavior: {
    origin: origins.FunctionUrlOrigin.withOriginAccessControl(fnUrl),
  },
});

Members ​

MemberDescription
AWS_IAMRestrict access to authenticated IAM users only.
NONEBypass IAM authentication to create a public endpoint.

Referenced by ​

  • FunctionUrl.authTypeauth_typeauthTypeAuthTypeAuthType
  • FunctionUrlOptions.authTypeauth_typeauthTypeAuthTypeAuthType
  • IFunctionUrl.authTypeauth_typeauthTypeAuthTypeAuthType
  • Permission.functionUrlAuthTypefunction_url_auth_typefunctionUrlAuthTypeFunctionUrlAuthTypeFunctionUrlAuthType