FunctionUrlAuthType
- class aws_cdk.aws_lambda.FunctionUrlAuthType(*values)
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.AWS_IAM ) cloudfront.Distribution(self, "MyDistribution", default_behavior=cloudfront.BehaviorOptions( origin=origins.FunctionUrlOrigin.with_origin_access_control(fn_url) ) )
Attributes
- AWS_IAM
Restrict access to authenticated IAM users only.
- NONE
Bypass IAM authentication to create a public endpoint.