aws-cdk-lib.aws_lambda.FunctionUrlAuthType

enum FunctionUrlAuthType

LanguageType name
.NETAmazon.CDK.AWS.Lambda.FunctionUrlAuthType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#FunctionUrlAuthType
Javasoftware.amazon.awscdk.services.lambda.FunctionUrlAuthType
Pythonaws_cdk.aws_lambda.FunctionUrlAuthType
TypeScript (source)aws-cdk-lib » aws_lambda » FunctionUrlAuthType

The auth types for a function url.

Example

declare const fn: lambda.Function;

fn.addFunctionUrl({
  authType: lambda.FunctionUrlAuthType.NONE,
  invokeMode: lambda.InvokeMode.RESPONSE_STREAM,
});

Members

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

AWS_IAM

Restrict access to authenticated IAM users only.


NONE

Bypass IAM authentication to create a public endpoint.