enum FunctionUrlAuthType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.FunctionUrlAuthType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#FunctionUrlAuthType |
Java | software.amazon.awscdk.services.lambda.FunctionUrlAuthType |
Python | aws_cdk.aws_lambda.FunctionUrlAuthType |
TypeScript (source) | aws-cdk-lib » aws_lambda » FunctionUrlAuthType |
The auth types for a function url.
Example
import * as lambda from 'aws-cdk-lib/aws-lambda';
declare const fn: lambda.Function;
const fnUrl = fn.addFunctionUrl({ authType: lambda.FunctionUrlAuthType.NONE });
new cloudfront.Distribution(this, 'Distribution', {
defaultBehavior: { origin: new origins.FunctionUrlOrigin(fnUrl) },
});
Members
Name | Description |
---|---|
AWS_IAM | Restrict access to authenticated IAM users only. |
NONE | Bypass 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.