FunctionUrlAuthType
- class aws_cdk.aws_lambda.FunctionUrlAuthType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The auth types for a function url.
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_lambda as lambda_ # fn: lambda.Function fn_url = fn.add_function_url(auth_type=lambda_.FunctionUrlAuthType.NONE) cloudfront.Distribution(self, "Distribution", default_behavior=cloudfront.BehaviorOptions(origin=origins.FunctionUrlOrigin(fn_url)) )
Attributes
- AWS_IAM
Restrict access to authenticated IAM users only.
- NONE
Bypass IAM authentication to create a public endpoint.