1 | import { Handler } from "../handler";
|
2 |
|
3 | export type CodePipelineCloudWatchPipelineHandler = Handler<CodePipelineCloudWatchPipelineEvent, void>;
|
4 |
|
5 | export type CodePipelineState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED' | 'SUPERSEDED';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export interface CodePipelineCloudWatchPipelineEvent {
|
18 | version: string;
|
19 | id: string;
|
20 | 'detail-type': 'CodePipeline Pipeline Execution State Change';
|
21 | source: 'aws.codepipeline';
|
22 | account: string;
|
23 | time: string;
|
24 | region: string;
|
25 | resources: string[];
|
26 | detail: {
|
27 | pipeline: string;
|
28 | version: number;
|
29 | state: CodePipelineState;
|
30 | 'execution-id': string;
|
31 | };
|
32 | }
|