@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:47.430Z") public enum AuthorizationType extends java.lang.Enum<AuthorizationType>
Resource books; UserPool userPool = new UserPool(this, "UserPool"); CognitoUserPoolsAuthorizer auth = CognitoUserPoolsAuthorizer.Builder.create(this, "booksAuthorizer") .cognitoUserPools(List.of(userPool)) .build(); books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder() .authorizer(auth) .authorizationType(AuthorizationType.COGNITO) .build());
Enum Constant and Description |
---|
COGNITO
Use an AWS Cognito user pool.
|
CUSTOM
Use a custom authorizer.
|
IAM
Use AWS IAM permissions.
|
NONE
Open access.
|
Modifier and Type | Method and Description |
---|---|
static AuthorizationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationType NONE
public static final AuthorizationType IAM
public static final AuthorizationType CUSTOM
public static final AuthorizationType COGNITO
public static AuthorizationType[] values()
for (AuthorizationType c : AuthorizationType.values()) System.out.println(c);
public static AuthorizationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null