Type Alias APIGatewayRequestContextV2
APIGatewayRequestContextV2: {
accountId: string;
apiId: string;
authentication?:
| null
| {
clientCert?: {
clientCertPem: string;
issuerDN: string;
serialNumber: string;
subjectDN: string;
validity: { notAfter: string; notBefore: string };
};
};
authorizer?: {
iam?: {
accessKey?: string;
accountId?: string;
callerId?: string;
cognitoIdentity?: | null
| { amr: string[]; identityId: string; identityPoolId: string };
principalOrgId?: null | string;
userArn?: string;
userId?: string;
};
jwt?: { claims: Record<string, any>; scopes: null | string[] };
lambda?: null | Record<string, any>;
};
domainName: string;
domainPrefix: string;
http: {
method: | "GET"
| "POST"
| "PUT"
| "PATCH"
| "DELETE"
| "HEAD"
| "OPTIONS";
path: string;
protocol: string;
sourceIp: string;
userAgent: string;
};
requestId: string;
routeKey: string;
stage: string;
time: string;
timeEpoch: number;
}
Type declaration
accountId: string
apiId: string
Optional
authentication?:
| null
| {
clientCert?: {
clientCertPem: string;
issuerDN: string;
serialNumber: string;
subjectDN: string;
validity: { notAfter: string; notBefore: string };
};
}
Optional
authorizer?: {
iam?: {
accessKey?: string;
accountId?: string;
callerId?: string;
cognitoIdentity?:
| null
| { amr: string[]; identityId: string; identityPoolId: string };
principalOrgId?: null | string;
userArn?: string;
userId?: string;
};
jwt?: { claims: Record<string, any>; scopes: null | string[] };
lambda?: null | Record<string, any>;
}
domainName: string
domainPrefix: string
http: {
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
path: string;
protocol: string;
sourceIp: string;
userAgent: string;
}
requestId: string
routeKey: string
stage: string
time: string
timeEpoch: number
A zod schema for an API Gateway HTTP API Request Context