@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.086Z") @Stability(value=Stable) public enum AuthorizationType extends 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(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.
|
@Stability(value=Stable) public static final AuthorizationType NONE
@Stability(value=Stable) public static final AuthorizationType IAM
@Stability(value=Stable) public static final AuthorizationType CUSTOM
@Stability(value=Stable) public static final AuthorizationType COGNITO
public static AuthorizationType[] values()
for (AuthorizationType c : AuthorizationType.values()) System.out.println(c);
public static AuthorizationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.