github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/codebuild-state-change.json (about)

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