1 | import type { CloudFrontEvent, CloudFrontRequest, CloudFrontResultResponse } from "../common/cloudfront";
|
2 | import type { Callback, Handler } from "../handler";
|
3 |
|
4 | export type CloudFrontRequestHandler = Handler<CloudFrontRequestEvent, CloudFrontRequestResult>;
|
5 | export type CloudFrontRequestCallback = Callback<CloudFrontRequestResult>;
|
6 |
|
7 | export interface CloudFrontRequestEventRecord {
|
8 | cf: CloudFrontEvent & {
|
9 | request: CloudFrontRequest;
|
10 | };
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export interface CloudFrontRequestEvent {
|
19 | Records: CloudFrontRequestEventRecord[];
|
20 | }
|
21 |
|
22 | export type CloudFrontRequestResult = undefined | null | CloudFrontResultResponse | CloudFrontRequest;
|