Chilkat Online Tools

StopBuildBatch autoit Example

AWS CodeBuild

; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oRest = ObjCreate("Chilkat_9_5_0.Rest")
Local $bSuccess

$oAuthAws = ObjCreate("Chilkat_9_5_0.AuthAws")
$oAuthAws.AccessKey = "AWS_ACCESS_KEY"
$oAuthAws.SecretKey = "AWS_SECRET_KEY"

; Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
$oAuthAws.Region = "us-west-2"
$oAuthAws.ServiceName = "codebuild"
; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
$oRest.SetAuthAws($oAuthAws)

; URL: https://codebuild.us-west-2.amazonaws.com/
; Use the same region as specified above.
$bSuccess = $oRest.Connect("codebuild.us-west-2.amazonaws.com",443,True,True)
If ($bSuccess <> True) Then
    ConsoleWrite("ConnectFailReason: " & $oRest.ConnectFailReason & @CRLF)
    ConsoleWrite($oRest.LastErrorText & @CRLF)
    Exit
EndIf

; The following code creates the JSON request body.
; The JSON created by this code is shown below.

; Use this online tool to generate code from sample JSON:
; Generate Code to Create JSON

$oJson = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJson.UpdateString("id","string")

; The JSON request body created by the above code:

; {
;   "id": "string"
; }

$oRest.AddHeader("Content-Type","application/x-amz-json-1.1")
$oRest.AddHeader("X-Amz-Target","CodeBuild_20161006.StopBuildBatch")

$oSbRequestBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$oJson.EmitSb($oSbRequestBody)
$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$bSuccess = $oRest.FullRequestSb("POST","/",$oSbRequestBody,$oSbResponseBody)
If ($bSuccess <> True) Then
    ConsoleWrite($oRest.LastErrorText & @CRLF)
    Exit
EndIf

Local $iRespStatusCode = $oRest.ResponseStatusCode
ConsoleWrite("response status code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode <> 200) Then
    ConsoleWrite("Response Header:" & @CRLF)
    ConsoleWrite($oRest.ResponseHeader & @CRLF)
    ConsoleWrite("Response Body:" & @CRLF)
    ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
    Exit
EndIf

$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)

; The following code parses the JSON response.
; A sample JSON response is shown below the sample code.

; Use this online tool to generate parsing code from sample JSON:
; Generate Parsing Code from JSON

Local $strVal
Local $sCurrentBuildSummaryArn
Local $sBuildStatus
Local $sIdentifier
Local $sPrimaryArtifactLocation
Local $sPrimaryArtifactType
Local $iRequestedOn
Local $sIdentifier
Local $ignoreFailure
Local $iJ
Local $iCount_j
Local $sLocation
Local $sV_type
Local $sArn
Local $sBuildStatus
Local $sPrimaryArtifactIdentifier
Local $sPrimaryArtifactLocation
Local $sPrimaryArtifactType
Local $iRequestedOn
Local $iK
Local $iCount_k
Local $sName
Local $sValue
Local $sMountOptions
Local $sMountPoint
Local $iDurationInSeconds
Local $iEndTime
Local $sPhaseStatus
Local $sPhaseType
Local $iStartTime
Local $sMessage
Local $statusCode
Local $sArtifactIdentifier
Local $sBucketOwnerAccess
Local $iEncryptionDisabled
Local $sMd5sum
Local $iOverrideArtifactName
Local $sha256sum
Local $sAuthResource
Local $sAuthType
Local $sBuildspec
Local $sBuildStatusConfigContext
Local $sBuildStatusConfigTargetUrl
Local $iGitCloneDepth
Local $iGitSubmodulesConfigFetchSubmodules
Local $insecureSsl
Local $iReportBuildStatus
Local $sourceIdentifier
Local $sourceVersion

Local $sArn = $oJResp.StringOf("buildBatch.arn")
Local $sArtifactIdentifier = $oJResp.StringOf("buildBatch.artifacts.artifactIdentifier")
Local $sBucketOwnerAccess = $oJResp.StringOf("buildBatch.artifacts.bucketOwnerAccess")
Local $iEncryptionDisabled = $oJResp.IntOf("buildBatch.artifacts.encryptionDisabled")
Local $sLocation = $oJResp.StringOf("buildBatch.artifacts.location")
Local $sMd5sum = $oJResp.StringOf("buildBatch.artifacts.md5sum")
Local $iOverrideArtifactName = $oJResp.IntOf("buildBatch.artifacts.overrideArtifactName")
Local $sSha256sum = $oJResp.StringOf("buildBatch.artifacts.sha256sum")
Local $sBatchReportMode = $oJResp.StringOf("buildBatch.buildBatchConfig.batchReportMode")
Local $iCombineArtifacts = $oJResp.IntOf("buildBatch.buildBatchConfig.combineArtifacts")
Local $iMaximumBuildsAllowed = $oJResp.IntOf("buildBatch.buildBatchConfig.restrictions.maximumBuildsAllowed")
Local $sServiceRole = $oJResp.StringOf("buildBatch.buildBatchConfig.serviceRole")
Local $iTimeoutInMins = $oJResp.IntOf("buildBatch.buildBatchConfig.timeoutInMins")
Local $iBuildBatchNumber = $oJResp.IntOf("buildBatch.buildBatchNumber")
Local $sBuildBatchStatus = $oJResp.StringOf("buildBatch.buildBatchStatus")
Local $iBuildTimeoutInMinutes = $oJResp.IntOf("buildBatch.buildTimeoutInMinutes")
Local $sCacheLocation = $oJResp.StringOf("buildBatch.cache.location")
Local $sV_Type = $oJResp.StringOf("buildBatch.cache.type")
Local $iComplete = $oJResp.IntOf("buildBatch.complete")
Local $sCurrentPhase = $oJResp.StringOf("buildBatch.currentPhase")
Local $iDebugSessionEnabled = $oJResp.IntOf("buildBatch.debugSessionEnabled")
Local $sEncryptionKey = $oJResp.StringOf("buildBatch.encryptionKey")
Local $iEndTime = $oJResp.IntOf("buildBatch.endTime")
Local $sCertificate = $oJResp.StringOf("buildBatch.environment.certificate")
Local $sComputeType = $oJResp.StringOf("buildBatch.environment.computeType")
Local $sImage = $oJResp.StringOf("buildBatch.environment.image")
Local $sImagePullCredentialsType = $oJResp.StringOf("buildBatch.environment.imagePullCredentialsType")
Local $iPrivilegedMode = $oJResp.IntOf("buildBatch.environment.privilegedMode")
Local $sCredential = $oJResp.StringOf("buildBatch.environment.registryCredential.credential")
Local $sCredentialProvider = $oJResp.StringOf("buildBatch.environment.registryCredential.credentialProvider")
Local $sEnvironmentType = $oJResp.StringOf("buildBatch.environment.type")
Local $sId = $oJResp.StringOf("buildBatch.id")
Local $sInitiator = $oJResp.StringOf("buildBatch.initiator")
Local $sGroupName = $oJResp.StringOf("buildBatch.logConfig.cloudWatchLogs.groupName")
Local $sStatus = $oJResp.StringOf("buildBatch.logConfig.cloudWatchLogs.status")
Local $sStreamName = $oJResp.StringOf("buildBatch.logConfig.cloudWatchLogs.streamName")
Local $sS3LogsBucketOwnerAccess = $oJResp.StringOf("buildBatch.logConfig.s3Logs.bucketOwnerAccess")
Local $iS3LogsEncryptionDisabled = $oJResp.IntOf("buildBatch.logConfig.s3Logs.encryptionDisabled")
Local $sS3LogsLocation = $oJResp.StringOf("buildBatch.logConfig.s3Logs.location")
Local $sS3LogsStatus = $oJResp.StringOf("buildBatch.logConfig.s3Logs.status")
Local $sProjectName = $oJResp.StringOf("buildBatch.projectName")
Local $iQueuedTimeoutInMinutes = $oJResp.IntOf("buildBatch.queuedTimeoutInMinutes")
Local $sResolvedSourceVersion = $oJResp.StringOf("buildBatch.resolvedSourceVersion")
Local $sBuildBatchServiceRole = $oJResp.StringOf("buildBatch.serviceRole")
Local $sResource = $oJResp.StringOf("buildBatch.source.auth.resource")
Local $sAuthType = $oJResp.StringOf("buildBatch.source.auth.type")
Local $sBuildspec = $oJResp.StringOf("buildBatch.source.buildspec")
Local $sContext = $oJResp.StringOf("buildBatch.source.buildStatusConfig.context")
Local $sTargetUrl = $oJResp.StringOf("buildBatch.source.buildStatusConfig.targetUrl")
Local $iGitCloneDepth = $oJResp.IntOf("buildBatch.source.gitCloneDepth")
Local $iFetchSubmodules = $oJResp.IntOf("buildBatch.source.gitSubmodulesConfig.fetchSubmodules")
Local $iInsecureSsl = $oJResp.IntOf("buildBatch.source.insecureSsl")
Local $sSourceLocation = $oJResp.StringOf("buildBatch.source.location")
Local $iReportBuildStatus = $oJResp.IntOf("buildBatch.source.reportBuildStatus")
Local $sSourceIdentifier = $oJResp.StringOf("buildBatch.source.sourceIdentifier")
Local $sSourceType = $oJResp.StringOf("buildBatch.source.type")
Local $sSourceVersion = $oJResp.StringOf("buildBatch.sourceVersion")
Local $iStartTime = $oJResp.IntOf("buildBatch.startTime")
Local $sVpcId = $oJResp.StringOf("buildBatch.vpcConfig.vpcId")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("buildBatch.buildBatchConfig.restrictions.computeTypesAllowed")
While $i < $iCount_i
    $oJResp.I = $i
    $strVal = $oJResp.StringOf("buildBatch.buildBatchConfig.restrictions.computeTypesAllowed[i]")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.buildGroups")
While $i < $iCount_i
    $oJResp.I = $i
    $sCurrentBuildSummaryArn = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.arn")
    $sBuildStatus = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.buildStatus")
    $sIdentifier = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.identifier")
    $sPrimaryArtifactLocation = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.location")
    $sPrimaryArtifactType = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.type")
    $iRequestedOn = $oJResp.IntOf("buildBatch.buildGroups[i].currentBuildSummary.requestedOn")
    $sIdentifier = $oJResp.StringOf("buildBatch.buildGroups[i].identifier")
    $ignoreFailure = $oJResp.IntOf("buildBatch.buildGroups[i].ignoreFailure")
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $sIdentifier = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].identifier")
        $sLocation = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].location")
        $sV_type = $oJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].type")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("buildBatch.buildGroups[i].dependsOn")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("buildBatch.buildGroups[i].dependsOn[j]")
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("buildBatch.buildGroups[i].priorBuildSummaryList")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $sArn = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].arn")
        $sBuildStatus = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].buildStatus")
        $sPrimaryArtifactIdentifier = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.identifier")
        $sPrimaryArtifactLocation = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.location")
        $sPrimaryArtifactType = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.type")
        $iRequestedOn = $oJResp.IntOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].requestedOn")
        $iK = 0
        $iCount_k = $oJResp.SizeOfArray("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts")
        While $iK < $iCount_k
            $oJResp.K = $iK
            $sIdentifier = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].identifier")
            $sLocation = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].location")
            $sV_type = $oJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].type")
            $iK = $iK + 1
        Wend
        $iJ = $iJ + 1
    Wend
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.cache.modes")
While $i < $iCount_i
    $oJResp.I = $i
    $strVal = $oJResp.StringOf("buildBatch.cache.modes[i]")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.environment.environmentVariables")
While $i < $iCount_i
    $oJResp.I = $i
    $sName = $oJResp.StringOf("buildBatch.environment.environmentVariables[i].name")
    $sV_type = $oJResp.StringOf("buildBatch.environment.environmentVariables[i].type")
    $sValue = $oJResp.StringOf("buildBatch.environment.environmentVariables[i].value")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.fileSystemLocations")
While $i < $iCount_i
    $oJResp.I = $i
    $sIdentifier = $oJResp.StringOf("buildBatch.fileSystemLocations[i].identifier")
    $sLocation = $oJResp.StringOf("buildBatch.fileSystemLocations[i].location")
    $sMountOptions = $oJResp.StringOf("buildBatch.fileSystemLocations[i].mountOptions")
    $sMountPoint = $oJResp.StringOf("buildBatch.fileSystemLocations[i].mountPoint")
    $sV_type = $oJResp.StringOf("buildBatch.fileSystemLocations[i].type")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.phases")
While $i < $iCount_i
    $oJResp.I = $i
    $iDurationInSeconds = $oJResp.IntOf("buildBatch.phases[i].durationInSeconds")
    $iEndTime = $oJResp.IntOf("buildBatch.phases[i].endTime")
    $sPhaseStatus = $oJResp.StringOf("buildBatch.phases[i].phaseStatus")
    $sPhaseType = $oJResp.StringOf("buildBatch.phases[i].phaseType")
    $iStartTime = $oJResp.IntOf("buildBatch.phases[i].startTime")
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("buildBatch.phases[i].contexts")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $sMessage = $oJResp.StringOf("buildBatch.phases[i].contexts[j].message")
        $statusCode = $oJResp.StringOf("buildBatch.phases[i].contexts[j].statusCode")
        $iJ = $iJ + 1
    Wend
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.secondaryArtifacts")
While $i < $iCount_i
    $oJResp.I = $i
    $sArtifactIdentifier = $oJResp.StringOf("buildBatch.secondaryArtifacts[i].artifactIdentifier")
    $sBucketOwnerAccess = $oJResp.StringOf("buildBatch.secondaryArtifacts[i].bucketOwnerAccess")
    $iEncryptionDisabled = $oJResp.IntOf("buildBatch.secondaryArtifacts[i].encryptionDisabled")
    $sLocation = $oJResp.StringOf("buildBatch.secondaryArtifacts[i].location")
    $sMd5sum = $oJResp.StringOf("buildBatch.secondaryArtifacts[i].md5sum")
    $iOverrideArtifactName = $oJResp.IntOf("buildBatch.secondaryArtifacts[i].overrideArtifactName")
    $sha256sum = $oJResp.StringOf("buildBatch.secondaryArtifacts[i].sha256sum")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.secondarySources")
While $i < $iCount_i
    $oJResp.I = $i
    $sAuthResource = $oJResp.StringOf("buildBatch.secondarySources[i].auth.resource")
    $sAuthType = $oJResp.StringOf("buildBatch.secondarySources[i].auth.type")
    $sBuildspec = $oJResp.StringOf("buildBatch.secondarySources[i].buildspec")
    $sBuildStatusConfigContext = $oJResp.StringOf("buildBatch.secondarySources[i].buildStatusConfig.context")
    $sBuildStatusConfigTargetUrl = $oJResp.StringOf("buildBatch.secondarySources[i].buildStatusConfig.targetUrl")
    $iGitCloneDepth = $oJResp.IntOf("buildBatch.secondarySources[i].gitCloneDepth")
    $iGitSubmodulesConfigFetchSubmodules = $oJResp.IntOf("buildBatch.secondarySources[i].gitSubmodulesConfig.fetchSubmodules")
    $insecureSsl = $oJResp.IntOf("buildBatch.secondarySources[i].insecureSsl")
    $sLocation = $oJResp.StringOf("buildBatch.secondarySources[i].location")
    $iReportBuildStatus = $oJResp.IntOf("buildBatch.secondarySources[i].reportBuildStatus")
    $sourceIdentifier = $oJResp.StringOf("buildBatch.secondarySources[i].sourceIdentifier")
    $sV_type = $oJResp.StringOf("buildBatch.secondarySources[i].type")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.secondarySourceVersions")
While $i < $iCount_i
    $oJResp.I = $i
    $sourceIdentifier = $oJResp.StringOf("buildBatch.secondarySourceVersions[i].sourceIdentifier")
    $sourceVersion = $oJResp.StringOf("buildBatch.secondarySourceVersions[i].sourceVersion")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.vpcConfig.securityGroupIds")
While $i < $iCount_i
    $oJResp.I = $i
    $strVal = $oJResp.StringOf("buildBatch.vpcConfig.securityGroupIds[i]")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("buildBatch.vpcConfig.subnets")
While $i < $iCount_i
    $oJResp.I = $i
    $strVal = $oJResp.StringOf("buildBatch.vpcConfig.subnets[i]")
    $i = $i + 1
Wend

; A sample JSON response body parsed by the above code:

; {
;   "buildBatch": {
;     "arn": "string",
;     "artifacts": {
;       "artifactIdentifier": "string",
;       "bucketOwnerAccess": "string",
;       "encryptionDisabled": boolean,
;       "location": "string",
;       "md5sum": "string",
;       "overrideArtifactName": boolean,
;       "sha256sum": "string"
;     },
;     "buildBatchConfig": {
;       "batchReportMode": "string",
;       "combineArtifacts": boolean,
;       "restrictions": {
;         "computeTypesAllowed": [
;           "string"
;         ],
;         "maximumBuildsAllowed": number
;       },
;       "serviceRole": "string",
;       "timeoutInMins": number
;     },
;     "buildBatchNumber": number,
;     "buildBatchStatus": "string",
;     "buildGroups": [
;       {
;         "currentBuildSummary": {
;           "arn": "string",
;           "buildStatus": "string",
;           "primaryArtifact": {
;             "identifier": "string",
;             "location": "string",
;             "type": "string"
;           },
;           "requestedOn": number,
;           "secondaryArtifacts": [
;             {
;               "identifier": "string",
;               "location": "string",
;               "type": "string"
;             }
;           ]
;         },
;         "dependsOn": [
;           "string"
;         ],
;         "identifier": "string",
;         "ignoreFailure": boolean,
;         "priorBuildSummaryList": [
;           {
;             "arn": "string",
;             "buildStatus": "string",
;             "primaryArtifact": {
;               "identifier": "string",
;               "location": "string",
;               "type": "string"
;             },
;             "requestedOn": number,
;             "secondaryArtifacts": [
;               {
;                 "identifier": "string",
;                 "location": "string",
;                 "type": "string"
;               }
;             ]
;           }
;         ]
;       }
;     ],
;     "buildTimeoutInMinutes": number,
;     "cache": {
;       "location": "string",
;       "modes": [
;         "string"
;       ],
;       "type": "string"
;     },
;     "complete": boolean,
;     "currentPhase": "string",
;     "debugSessionEnabled": boolean,
;     "encryptionKey": "string",
;     "endTime": number,
;     "environment": {
;       "certificate": "string",
;       "computeType": "string",
;       "environmentVariables": [
;         {
;           "name": "string",
;           "type": "string",
;           "value": "string"
;         }
;       ],
;       "image": "string",
;       "imagePullCredentialsType": "string",
;       "privilegedMode": boolean,
;       "registryCredential": {
;         "credential": "string",
;         "credentialProvider": "string"
;       },
;       "type": "string"
;     },
;     "fileSystemLocations": [
;       {
;         "identifier": "string",
;         "location": "string",
;         "mountOptions": "string",
;         "mountPoint": "string",
;         "type": "string"
;       }
;     ],
;     "id": "string",
;     "initiator": "string",
;     "logConfig": {
;       "cloudWatchLogs": {
;         "groupName": "string",
;         "status": "string",
;         "streamName": "string"
;       },
;       "s3Logs": {
;         "bucketOwnerAccess": "string",
;         "encryptionDisabled": boolean,
;         "location": "string",
;         "status": "string"
;       }
;     },
;     "phases": [
;       {
;         "contexts": [
;           {
;             "message": "string",
;             "statusCode": "string"
;           }
;         ],
;         "durationInSeconds": number,
;         "endTime": number,
;         "phaseStatus": "string",
;         "phaseType": "string",
;         "startTime": number
;       }
;     ],
;     "projectName": "string",
;     "queuedTimeoutInMinutes": number,
;     "resolvedSourceVersion": "string",
;     "secondaryArtifacts": [
;       {
;         "artifactIdentifier": "string",
;         "bucketOwnerAccess": "string",
;         "encryptionDisabled": boolean,
;         "location": "string",
;         "md5sum": "string",
;         "overrideArtifactName": boolean,
;         "sha256sum": "string"
;       }
;     ],
;     "secondarySources": [
;       {
;         "auth": {
;           "resource": "string",
;           "type": "string"
;         },
;         "buildspec": "string",
;         "buildStatusConfig": {
;           "context": "string",
;           "targetUrl": "string"
;         },
;         "gitCloneDepth": number,
;         "gitSubmodulesConfig": {
;           "fetchSubmodules": boolean
;         },
;         "insecureSsl": boolean,
;         "location": "string",
;         "reportBuildStatus": boolean,
;         "sourceIdentifier": "string",
;         "type": "string"
;       }
;     ],
;     "secondarySourceVersions": [
;       {
;         "sourceIdentifier": "string",
;         "sourceVersion": "string"
;       }
;     ],
;     "serviceRole": "string",
;     "source": {
;       "auth": {
;         "resource": "string",
;         "type": "string"
;       },
;       "buildspec": "string",
;       "buildStatusConfig": {
;         "context": "string",
;         "targetUrl": "string"
;       },
;       "gitCloneDepth": number,
;       "gitSubmodulesConfig": {
;         "fetchSubmodules": boolean
;       },
;       "insecureSsl": boolean,
;       "location": "string",
;       "reportBuildStatus": boolean,
;       "sourceIdentifier": "string",
;       "type": "string"
;     },
;     "sourceVersion": "string",
;     "startTime": number,
;     "vpcConfig": {
;       "securityGroupIds": [
;         "string"
;       ],
;       "subnets": [
;         "string"
;       ],
;       "vpcId": "string"
;     }
;   }
; }