ApiGatewayJWTAuthorizer
Description
Creates a JWT (JSON Web Token) authorizer to control access to HTTP API. See Controlling access to HTTP APIs with JWT authorizers for more information and and JWTAuthorizer as example on how to use this pattern.
Input
AuthorizerName
The name of the authorizer. Must be a valid Cloudformation syntax that resolves to a string.
ApiGatewayHttpApi
Logical ID of AWS::ApiGatewayV2::API resource.
CognitoUserPoolClient
Logical ID of AWS::Cognito::UserPoolClient resource whose ID is listed as intended recipients of the JWT. An authorizer will validate aud claim in JWT against this user pool client ID.
CognitoUserPool
Logical ID of AWS::Cognito::UserPool resource whose ID is used by the authorizer to validate iss claim in JWT.
ApiGatewayRoute
Logical ID of AWS::ApiGatewayV2::Route resource to associate with the JWT authorizer.