UNPKG

1.42 kBTypeScriptView Raw
1/**
2 * Event fields for the CodeBuild "state change" event
3 *
4 * @see https://docs.aws.amazon.com/codebuild/latest/userguide/sample-build-notifications.html#sample-build-notifications-ref
5 */
6export declare class StateChangeEvent {
7 /**
8 * The triggering build's status
9 */
10 static get buildStatus(): string;
11 /**
12 * The triggering build's project name
13 */
14 static get projectName(): string;
15 /**
16 * Return the build id
17 */
18 static get buildId(): string;
19 static get currentPhase(): string;
20 private constructor();
21}
22/**
23 * Event fields for the CodeBuild "phase change" event
24 *
25 * @see https://docs.aws.amazon.com/codebuild/latest/userguide/sample-build-notifications.html#sample-build-notifications-ref
26 */
27export declare class PhaseChangeEvent {
28 /**
29 * The triggering build's project name
30 */
31 static get projectName(): string;
32 /**
33 * The triggering build's id
34 */
35 static get buildId(): string;
36 /**
37 * The phase that was just completed
38 */
39 static get completedPhase(): string;
40 /**
41 * The status of the completed phase
42 */
43 static get completedPhaseStatus(): string;
44 /**
45 * The duration of the completed phase
46 */
47 static get completedPhaseDurationSeconds(): string;
48 /**
49 * Whether the build is complete
50 */
51 static get buildComplete(): string;
52 private constructor();
53}