custom-context.ts
This file
Path
src/adapter/aws-lambda/custom-context.ts
83 lines 路 1.5 KiB 路 TypeScript
Last changed by
chore: add `format` script (#1334)watanybefore adoption954c06e
History of this fileTake it
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384// @denoify-ignore
interface ClientCert { clientCertPem: string subjectDN: string issuerDN: string serialNumber: string validity: { notBefore: string notAfter: string }}
interface Identity { accessKey?: string accountId?: string caller?: string cognitoAuthenticationProvider?: string cognitoAuthenticationType?: string cognitoIdentityId?: string cognitoIdentityPoolId?: string principalOrgId?: string sourceIp: string user?: string userAgent: string userArn?: string clientCert?: ClientCert}
export interface ApiGatewayRequestContext { accountId: string apiId: string authorizer: { claims?: unknown scopes?: unknown } domainName: string domainPrefix: string extendedRequestId: string httpMethod: string identity: Identity path: string protocol: string requestId: string requestTime: string requestTimeEpoch: number resourceId?: string resourcePath: string stage: string}
interface Authorizer { iam?: { accessKey: string accountId: string callerId: string cognitoIdentity: null principalOrgId: null userArn: string userId: string }}
export interface LambdaFunctionUrlRequestContext { accountId: string apiId: string authentication: null authorizer: Authorizer domainName: string domainPrefix: string http: { method: string path: string protocol: string sourceIp: string userAgent: string } requestId: string routeKey: string stage: string time: string timeEpoch: number}