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
fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
lines 1–3why, one step back1// @denoify-ignore23interface ClientCert {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 4–7why, one step back4 clientCertPem: string5 subjectDN: string6 issuerDN: string7 serialNumber: stringfix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
line 8why, one step back8 validity: {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 9–11why, one step back9 notBefore: string10 notAfter: string11 }fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
lines 12–14why, one step back12}1314interface Identity {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 15–27why, one step back15 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?: ClientCertfix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
lines 28–30why, one step back28}2930export interface ApiGatewayRequestContext {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 31–32why, one step back31 accountId: string32 apiId: stringfix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
line 33why, one step back33 authorizer: {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 34–49why, one step back34 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: stringfix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
lines 50–53why, one step back50}5152interface Authorizer {53 iam?: {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 54–61why, one step back54 accessKey: string55 accountId: string56 callerId: string57 cognitoIdentity: null58 principalOrgId: null59 userArn: string60 userId: string61 }fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
lines 62–64why, one step back62}6364export interface LambdaFunctionUrlRequestContext {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 65–70why, one step back65 accountId: string66 apiId: string67 authentication: null68 authorizer: Authorizer69 domainName: string70 domainPrefix: stringfix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
line 71why, one step back71 http: {chore: add `format` script (#1334)watanybefore adoption954c06e
lines 72–82why, one step back72 method: string73 path: string74 protocol: string75 sourceIp: string76 userAgent: string77 }78 requestId: string79 routeKey: string80 stage: string81 time: string82 timeEpoch: numberfix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27
line 83why, one step back83}