Variable APIGatewayRequestContextV2SchemaConst
APIGatewayRequestContextV2Schema: ZodObject<
{
accountId: ZodString;
apiId: ZodString;
authentication: ZodOptional<
ZodNullable<
ZodObject<
{
clientCert: ZodOptional<
ZodObject<
{
clientCertPem: ZodString;
issuerDN: ZodString;
serialNumber: ZodString;
subjectDN: ZodString;
validity: ZodObject<{ notAfter: ...; notBefore: ... }, $strip>;
},
$strip,
>,
>;
},
$strip,
>,
>,
>;
authorizer: ZodOptional<
ZodObject<
{
iam: ZodOptional<
ZodObject<
{
accessKey: ZodOptional<ZodString>;
accountId: ZodOptional<ZodString>;
callerId: ZodOptional<ZodString>;
cognitoIdentity: ZodOptional<ZodNullable<ZodObject<(...), (...)>>>;
principalOrgId: ZodOptional<ZodNullable<ZodString>>;
userArn: ZodOptional<ZodString>;
userId: ZodOptional<ZodString>;
},
$strip,
>,
>;
jwt: ZodOptional<
ZodObject<
{
claims: ZodRecord<ZodString, ZodAny>;
scopes: ZodNullable<ZodArray<ZodString>>;
},
$strip,
>,
>;
lambda: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodAny>>>;
},
$strip,
>,
>;
domainName: ZodString;
domainPrefix: ZodString;
http: ZodObject<
{
method: ZodEnum<
{
DELETE: "DELETE";
GET: "GET";
HEAD: "HEAD";
OPTIONS: "OPTIONS";
PATCH: "PATCH";
POST: "POST";
PUT: "PUT";
},
>;
path: ZodString;
protocol: ZodString;
sourceIp: ZodIPv4;
userAgent: ZodString;
},
$strip,
>;
requestId: ZodString;
routeKey: ZodString;
stage: ZodString;
time: ZodString;
timeEpoch: ZodNumber;
},
$strip,
> = ...
A zod schema for an API Gateway HTTP API Request Context