1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export interface APIGatewayAuthorizerResultContext {
|
8 | [name: string]: string | number | boolean | null | undefined;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export type APIGatewayEventDefaultAuthorizerContext = undefined | null | {
|
15 | [name: string]: any;
|
16 | };
|
17 |
|
18 | export type APIGatewayEventRequestContext =
|
19 | APIGatewayEventRequestContextWithAuthorizer<APIGatewayEventDefaultAuthorizerContext>;
|
20 |
|
21 |
|
22 | export interface APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext> {
|
23 | accountId: string;
|
24 | apiId: string;
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | authorizer: TAuthorizerContext;
|
31 | connectedAt?: number | undefined;
|
32 | connectionId?: string | undefined;
|
33 | domainName?: string | undefined;
|
34 | domainPrefix?: string | undefined;
|
35 | eventType?: string | undefined;
|
36 | extendedRequestId?: string | undefined;
|
37 | protocol: string;
|
38 | httpMethod: string;
|
39 | identity: APIGatewayEventIdentity;
|
40 | messageDirection?: string | undefined;
|
41 | messageId?: string | null | undefined;
|
42 | path: string;
|
43 | stage: string;
|
44 | requestId: string;
|
45 | requestTime?: string | undefined;
|
46 | requestTimeEpoch: number;
|
47 | resourceId: string;
|
48 | resourcePath: string;
|
49 | routeKey?: string | undefined;
|
50 | }
|
51 |
|
52 | export interface APIGatewayEventClientCertificate {
|
53 | clientCertPem: string;
|
54 | serialNumber: string;
|
55 | subjectDN: string;
|
56 | issuerDN: string;
|
57 | validity: {
|
58 | notAfter: string;
|
59 | notBefore: string;
|
60 | };
|
61 | }
|
62 |
|
63 | export interface APIGatewayEventIdentity {
|
64 | accessKey: string | null;
|
65 | accountId: string | null;
|
66 | apiKey: string | null;
|
67 | apiKeyId: string | null;
|
68 | caller: string | null;
|
69 | clientCert: APIGatewayEventClientCertificate | null;
|
70 | cognitoAuthenticationProvider: string | null;
|
71 | cognitoAuthenticationType: string | null;
|
72 | cognitoIdentityId: string | null;
|
73 | cognitoIdentityPoolId: string | null;
|
74 | principalOrgId: string | null;
|
75 | sourceIp: string;
|
76 | user: string | null;
|
77 | userAgent: string | null;
|
78 | userArn: string | null;
|
79 | }
|