1 | import { Handler } from "../handler";
|
2 |
|
3 | export type CodePipelineCloudWatchStageHandler = Handler<CodePipelineCloudWatchStageEvent, void>;
|
4 |
|
5 | export type CodePipelineStageState = 'STARTED' | 'SUCCEEDED' | 'RESUMED' | 'FAILED' | 'CANCELED';
|
6 |
|
7 | export interface CodePipelineCloudWatchStageEvent {
|
8 | version: string;
|
9 | id: string;
|
10 | 'detail-type': 'CodePipeline Stage Execution State Change';
|
11 | source: 'aws.codepipeline';
|
12 | account: string;
|
13 | time: string;
|
14 | region: string;
|
15 | resources: string[];
|
16 | detail: {
|
17 | pipeline: string;
|
18 | version: number;
|
19 | 'execution-id': string;
|
20 | stage: string;
|
21 | state: CodePipelineStageState;
|
22 | };
|
23 | }
|