custom-context.ts
This file
Path
src/adapter/aws-lambda/custom-context.ts
89 lines · 1.6 KiB · TypeScript
Last changed by
Merge pull request #2167 from honojs/v4Yusuke Wadabefore adoption2c44ad7
History of this fileTake it
The walk stopped after 200 commits: lines older than ba04dac point at it.
Merge pull request #1436 from honojs/nextYusuke Wadabefore adoptionba04dac
lines 1–63why, one step back1// @denoify-ignore23interface ClientCert {4 clientCertPem: string5 subjectDN: string6 issuerDN: string7 serialNumber: string8 validity: {9 notBefore: string10 notAfter: string11 }12}1314interface Identity {15 accessKey?: string16 accountId?: string17 caller?: string18 cognitoAuthenticationProvider?: string19 cognitoAuthenticationType?: string20 cognitoIdentityId?: string21 cognitoIdentityPoolId?: string22 principalOrgId?: string23 sourceIp: string24 user?: string25 userAgent: string26 userArn?: string27 clientCert?: ClientCert28}2930export interface ApiGatewayRequestContext {31 accountId: string32 apiId: string33 authorizer: {34 claims?: unknown35 scopes?: unknown36 }37 domainName: string38 domainPrefix: string39 extendedRequestId: string40 httpMethod: string41 identity: Identity42 path: string43 protocol: string44 requestId: string45 requestTime: string46 requestTimeEpoch: number47 resourceId?: string48 resourcePath: string49 stage: string50}5152interface Authorizer {53 iam?: {54 accessKey: string55 accountId: string56 callerId: string57 cognitoIdentity: null58 principalOrgId: null59 userArn: string60 userId: string61 }62}63Merge pull request #1774 from honojs/nextYusuke Wadabefore adoptionb21f33c
line 64why, one step back64export interface ApiGatewayRequestContextV2 {Merge pull request #1436 from honojs/nextYusuke Wadabefore adoptionba04dac
lines 65–83why, one step back65 accountId: string66 apiId: string67 authentication: null68 authorizer: Authorizer69 domainName: string70 domainPrefix: string71 http: {72 method: string73 path: string74 protocol: string75 sourceIp: string76 userAgent: string77 }78 requestId: string79 routeKey: string80 stage: string81 time: string82 timeEpoch: number83}Merge pull request #1774 from honojs/nextYusuke Wadabefore adoptionb21f33c
lines 84–89why, one step back8485export interface ALBRequestContext {86 elb: {87 targetGroupArn: string88 }89}