@@ -5,8 +5,10 @@ import {
5
5
APIGatewayProxyEvent ,
6
6
Context ,
7
7
APIGatewayProxyResult ,
8
+ ALBEvent ,
9
+ ALBEventRequestContext ,
8
10
} from 'aws-lambda' ;
9
- import { StringMap , StringArrayOfStringsMap } from '@silvermine/toolbox' ;
11
+ import { StringArrayOfStringsMap } from '@silvermine/toolbox' ;
10
12
11
13
/* COMBO TYPES */
12
14
@@ -54,25 +56,14 @@ export interface APIGatewayRequestEvent extends APIGatewayProxyEvent {}
54
56
export interface APIGatewayEventRequestContext extends OrigAPIGatewayEventRequestContext { }
55
57
56
58
57
- /* APPLICATION LOAD BALANCER TYPES (these are not yet included in aws-lambda) */
59
+ /* APPLICATION LOAD BALANCER TYPES (we export these with our own names to make it easier
60
+ to modify them if needed at a later time) */
58
61
59
- export interface ApplicationLoadBalancerRequestEvent {
60
- body : string | null ;
61
- httpMethod : string ;
62
- isBase64Encoded : boolean ;
63
- path : string ;
64
- headers ?: StringMap ;
65
- multiValueHeaders ?: StringArrayOfStringsMap ;
66
- queryStringParameters ?: StringMap ;
67
- multiValueQueryStringParameters ?: StringArrayOfStringsMap ;
68
- requestContext : ApplicationLoadBalancerEventRequestContext ;
69
- }
62
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
63
+ export interface ApplicationLoadBalancerRequestEvent extends ALBEvent { }
70
64
71
- export interface ApplicationLoadBalancerEventRequestContext {
72
- elb : {
73
- targetGroupArn : string ;
74
- } ;
75
- }
65
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
66
+ export interface ApplicationLoadBalancerEventRequestContext extends ALBEventRequestContext { }
76
67
77
68
78
69
/* OTHER TYPES RELATED TO REQUESTS AND RESPONSES */
0 commit comments