enum AuthorizationType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.APIGateway.AuthorizationType |
![]() | software.amazon.awscdk.services.apigateway.AuthorizationType |
![]() | aws_cdk.aws_apigateway.AuthorizationType |
![]() | @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.