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.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.758Z") @Stability(Stable) public enum FunctionUrlAuthType extends Enum<FunctionUrlAuthType>
The auth types for a function url.

Example:

 // Can be a Function or an Alias
 Function fn;
 FunctionUrl fnUrl = fn.addFunctionUrl(FunctionUrlOptions.builder()
         .authType(FunctionUrlAuthType.NONE)
         .build());
 CfnOutput.Builder.create(this, "TheUrl")
         .value(fnUrl.getUrl())
         .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