AuthorizationType

class aws_cdk.aws_apigateway.AuthorizationType(value)

Bases: enum.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.