AuthorizationType
- class aws_cdk.aws_apigateway.AuthorizationType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
- ExampleMetadata:
infused
Example:
# books: apigateway.Resource user_pool = cognito.UserPool(self, "UserPool") auth = apigateway.CognitoUserPoolsAuthorizer(self, "booksAuthorizer", cognito_user_pools=[user_pool] ) books.add_method("GET", apigateway.HttpIntegration("http://amazon.com"), authorizer=auth, authorization_type=apigateway.AuthorizationType.COGNITO )
Attributes
- COGNITO
Use an AWS Cognito user pool.
- CUSTOM
Use a custom authorizer.
- IAM
Use AWS IAM permissions.
- NONE
Open access.