APIGatewayTokenAuthorizerEventSchema: ZodObject<{
    authorizationToken: ZodString;
    methodArn: ZodString;
    type: ZodLiteral<"TOKEN">;
}, "strip", ZodTypeAny, {
    authorizationToken: string;
    methodArn: string;
    type: "TOKEN";
}, {
    authorizationToken: string;
    methodArn: string;
    type: "TOKEN";
}> = ...

A zod schema for an API Gateway Token Authorizer event

Type declaration

  • authorizationToken: ZodString
  • methodArn: ZodString
  • type: ZodLiteral<"TOKEN">

Type declaration

  • authorizationToken: string
  • methodArn: string
  • type: "TOKEN"

Type declaration

  • authorizationToken: string
  • methodArn: string
  • type: "TOKEN"

Example

{
"type": "TOKEN",
"authorizationToken": "Bearer abcd1234",
"methodArn": "arn:aws:execute-api:us-west-2:123456789012:ymy8tbxw7b/prod/GET/"
}

See

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-input.html#w76aac15b9c21c25c21b3