Enum FunctionUrlAuthType
- All Implemented Interfaces:
Serializable
,Comparable<FunctionUrlAuthType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:03.927Z")
@Stability(Stable)
public enum FunctionUrlAuthType
extends Enum<FunctionUrlAuthType>
The auth types for a function url.
Example:
import software.amazon.awscdk.services.lambda.*; Function fn; FunctionUrl fnUrl = fn.addFunctionUrl(FunctionUrlOptions.builder().authType(FunctionUrlAuthType.NONE).build()); Distribution.Builder.create(this, "Distribution") .defaultBehavior(BehaviorOptions.builder().origin(new FunctionUrlOrigin(fnUrl)).build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionUrlAuthType
Returns the enum constant of this type with the specified name.static FunctionUrlAuthType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AWS_IAM
Restrict access to authenticated IAM users only. -
NONE
Bypass IAM authentication to create a public endpoint.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-