Enum FunctionUrlAuthType

java.lang.Object
java.lang.Enum<FunctionUrlAuthType>
software.amazon.awscdk.services.lambda.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();
 
  • Enum Constant Details

    • AWS_IAM

      @Stability(Stable) public static final FunctionUrlAuthType AWS_IAM
      Restrict access to authenticated IAM users only.
    • NONE

      @Stability(Stable) public static final FunctionUrlAuthType NONE
      Bypass IAM authentication to create a public endpoint.
  • Method Details

    • values

      public static FunctionUrlAuthType[] 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

      public static FunctionUrlAuthType valueOf(String name)
      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 name
      NullPointerException - if the argument is null