1 | import { CloudFrontEvent, CloudFrontRequest, CloudFrontResponse, CloudFrontResultResponse } from "../common/cloudfront";
|
2 | import { Callback, Handler } from "../handler";
|
3 |
|
4 | export type CloudFrontResponseHandler = Handler<CloudFrontResponseEvent, CloudFrontResponseResult>;
|
5 | export type CloudFrontResponseCallback = Callback<CloudFrontResponseResult>;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export interface CloudFrontResponseEvent {
|
13 | Records: Array<{
|
14 | cf: CloudFrontEvent & {
|
15 | readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, "body">>;
|
16 | response: CloudFrontResponse;
|
17 | };
|
18 | }>;
|
19 | }
|
20 |
|
21 | export type CloudFrontResponseResult = undefined | null | CloudFrontResultResponse;
|