1 | import { Handler } from "../handler";
|
2 |
|
3 | export type CodePipelineCloudWatchActionHandler = Handler<CodePipelineCloudWatchActionEvent, void>;
|
4 |
|
5 | export type CodePipelineActionCategory = "Approval" | "Build" | "Deploy" | "Invoke" | "Source" | "Test";
|
6 | export type CodePipelineActionState = "STARTED" | "SUCCEEDED" | "FAILED" | "CANCELED";
|
7 |
|
8 | export interface CodePipelineCloudWatchActionEvent {
|
9 | version: string;
|
10 | id: string;
|
11 | "detail-type": "CodePipeline Action Execution State Change";
|
12 | source: "aws.codepipeline";
|
13 | account: string;
|
14 | time: string;
|
15 | region: string;
|
16 | resources: string[];
|
17 | detail: {
|
18 | pipeline: string;
|
19 | version: number;
|
20 | "execution-id": string;
|
21 | stage: string;
|
22 | action: string;
|
23 | state: CodePipelineActionState;
|
24 | type: {
|
25 | owner: "AWS" | "Custom" | "ThirdParty";
|
26 | category: CodePipelineActionCategory;
|
27 | provider: string;
|
28 | version: number;
|
29 | };
|
30 | };
|
31 | }
|