enum AuthorizationType
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.APIGateway.AuthorizationType | 
|  Java | software.amazon.awscdk.services.apigateway.AuthorizationType | 
|  Python | aws_cdk.aws_apigateway.AuthorizationType | 
|  TypeScript (source) | @aws-cdk/aws-apigateway»AuthorizationType | 
Example
const userPool = new cognito.UserPool(this, 'UserPool');
const auth = new apigateway.CognitoUserPoolsAuthorizer(this, 'booksAuthorizer', {
  cognitoUserPools: [userPool]
});
declare const books: apigateway.Resource;
books.addMethod('GET', new apigateway.HttpIntegration('http://amazon.com'), {
  authorizer: auth,
  authorizationType: apigateway.AuthorizationType.COGNITO,
});
Members
| Name | Description | 
|---|---|
| NONE | Open access. | 
| IAM | Use AWS IAM permissions. | 
| CUSTOM | Use a custom authorizer. | 
| COGNITO | Use an AWS Cognito user pool. | 
NONE
Open access.
IAM
Use AWS IAM permissions.
CUSTOM
Use a custom authorizer.
COGNITO
Use an AWS Cognito user pool.
