HttpAuthorizerAttributes
- class aws_cdk.aws_apigatewayv2.HttpAuthorizerAttributes(*, authorizer_id, authorizer_type)
Bases:
object
Reference to an http authorizer.
- Parameters:
authorizer_id (
str
) – Id of the Authorizer.authorizer_type (
str
) – Type of authorizer. Possible values are: - JWT - JSON Web Token Authorizer - CUSTOM - Lambda Authorizer - NONE - No Authorization
- ExampleMetadata:
infused
Example:
from aws_cdk.aws_apigatewayv2 import HttpAuthorizer from aws_cdk import Fn authorizer_id = Fn.import_value("authorizerId") authorizer_type = Fn.import_value("authorizerType") authorizer = HttpAuthorizer.from_http_authorizer_attributes(self, "HttpAuthorizer", authorizer_id=authorizer_id, authorizer_type=authorizer_type )
Attributes
- authorizer_id
Id of the Authorizer.
- authorizer_type
Type of authorizer.
Possible values are:
JWT - JSON Web Token Authorizer
CUSTOM - Lambda Authorizer
NONE - No Authorization