1{
2    "version": "0",
3    "id": "43ddc2bd-af76-9ca5-2dc7-b695e15adeEX",
4    "detail-type": "CodeBuild Build Phase Change",
5    "source": "aws.codebuild",
6    "account": "123456789012",
7    "time": "2017-09-01T16:14:21Z",
8    "region": "us-west-2",
9    "resources":[
10        "arn:aws:codebuild:us-west-2:123456789012:build/my-sample-project:8745a7a9-c340-456a-9166-edf953571bEX"
11    ],
12    "detail":{
13        "completed-phase": "COMPLETED",
14        "project-name": "my-sample-project",
15        "build-id": "arn:aws:codebuild:us-west-2:123456789012:build/my-sample-project:8745a7a9-c340-456a-9166-edf953571bEX",
16        "completed-phase-context": "[]",
17        "additional-information": {
18            "artifact": {
19                "md5sum": "da9c44c8a9a3cd4b443126e823168fEX",
20                "sha256sum": "6ccc2ae1df9d155ba83c597051611c42d60e09c6329dcb14a312cecc0a8e39EX",
21                "location": "arn:aws:s3:::codebuild-123456789012-output-bucket/my-output-artifact.zip"
22            },
23            "environment": {
24                "image": "aws/codebuild/standard:2.0",
25                "privileged-mode": false,
26                "compute-type": "BUILD_GENERAL1_SMALL",
27                "type": "LINUX_CONTAINER",
28                "environment-variables": []
29            },
30            "timeout-in-minutes": 60.0,
31            "build-complete": true,
32            "initiator": "MyCodeBuildDemoUser",
33            "build-start-time": "Sep 1, 2017 4:12:29 PM",
34            "source": {
35                "location": "codebuild-123456789012-input-bucket/my-input-artifact.zip",
36                "type": "S3"
37            },
38            "logs": {
39                "group-name": "/aws/codebuild/my-sample-project",
40                "stream-name": "8745a7a9-c340-456a-9166-edf953571bEX",
41                "deep-link": "https://console.aws.amazon.com/cloudwatch/home?region=us-west-2#logEvent:group=/aws/codebuild/my-sample-project;stream=8745a7a9-c340-456a-9166-edf953571bEX"
42            },
43            "phases": [
44                {
45                    "phase-context": [],
46                    "start-time": "Sep 1, 2017 4:12:29 PM",
47                    "end-time": "Sep 1, 2017 4:12:29 PM",
48                    "duration-in-seconds": 0.0,
49                    "phase-type": "SUBMITTED",
50                    "phase-status": "SUCCEEDED"
51                },
52                {
53                   "phase-context": [],
54                   "start-time": "Sep 1, 2017 4:12:29 PM",
55                   "end-time": "Sep 13, 2019 4:12:29 AM",
56                   "duration-in-seconds": 0.0,
57                   "phase-type": "QUEUED",
58                   "phase-status": "SUCCEEDED"
59                },
60                {
61                    "phase-context": [],
62                    "start-time": "Sep 1, 2017 4:12:29 PM",
63                    "end-time": "Sep 1, 2017 4:13:05 PM",
64                    "duration-in-seconds": 36,
65                    "phase-type": "PROVISIONING",
66                    "phase-status": "SUCCEEDED"
67                },
68                {
69                    "phase-context": [],
70                    "start-time": "Sep 1, 2017 4:13:05 PM",
71                    "end-time": "Sep 1, 2017 4:13:10 PM",
72                    "duration-in-seconds": 4.0,
73                    "phase-type": "DOWNLOAD_SOURCE",
74                    "phase-status": "SUCCEEDED"
75                },
76                {
77                    "phase-context": [],
78                    "start-time": "Sep 1, 2017 4:13:10 PM",
79                    "end-time": "Sep 1, 2017 4:13:10 PM",
80                    "duration-in-seconds": 0,
81                    "phase-type": "INSTALL",
82                    "phase-status": "SUCCEEDED"
83                },
84                {
85                    "phase-context": [],
86                    "start-time": "Sep 1, 2017 4:13:10 PM",
87                    "end-time": "Sep 1, 2017 4:13:10 PM",
88                    "duration-in-seconds": 0.0,
89                    "phase-type": "PRE_BUILD",
90                    "phase-status": "SUCCEEDED"
91                },
92                {
93                    "phase-context": [],
94                    "start-time": "Sep 1, 2017 4:13:10 PM",
95                    "end-time": "Sep 1, 2017 4:14:21 PM",
96                    "duration-in-seconds": 70,
97                    "phase-type": "BUILD",
98                    "phase-status": "SUCCEEDED"
99                },
100                {
101                    "phase-context": [],
102                    "start-time": "Sep 1, 2017 4:14:21 PM",
103                    "end-time": "Sep 1, 2017 4:14:21 PM",
104                    "duration-in-seconds": 0.0,
105                    "phase-type": "POST_BUILD",
106                    "phase-status": "SUCCEEDED"
107                },
108                {
109                    "phase-context": [],
110                    "start-time": "Sep 1, 2017 4:14:21 PM",
111                    "end-time": "Sep 1, 2017 4:14:21 PM",
112                    "duration-in-seconds": 0,
113                    "phase-type": "UPLOAD_ARTIFACTS",
114                    "phase-status": "SUCCEEDED"
115                },
116                {
117                    "phase-context": [],
118                    "start-time": "Sep 1, 2017 4:14:21 PM",
119                    "end-time": "Sep 1, 2017 4:14:26 PM",
120                    "duration-in-seconds": 4.0,
121                    "phase-type": "FINALIZING",
122                    "phase-status": "SUCCEEDED"
123                },
124                {
125                    "start-time": "Sep 1, 2017 4:14:26 PM",
126                    "phase-type": "COMPLETED"
127                }
128            ]
129        },
130        "completed-phase-status": "SUCCEEDED",
131        "completed-phase-duration-seconds": 4.0,
132        "version": "1",
133        "completed-phase-start": "Sep 1, 2017 4:14:21 PM",
134        "completed-phase-end": "Sep 1, 2017 4:14:26 PM"
135    }
136}
137