Chilkat Online Tools

StopBuildBatch Foxpro Example

AWS CodeBuild

LOCAL loRest
LOCAL lnSuccess
LOCAL loAuthAws
LOCAL loJson
LOCAL loSbRequestBody
LOCAL loSbResponseBody
LOCAL lnRespStatusCode
LOCAL loJResp
LOCAL lcStrVal
LOCAL lcCurrentBuildSummaryArn
LOCAL lcBuildStatus
LOCAL lcIdentifier
LOCAL lcPrimaryArtifactLocation
LOCAL lcPrimaryArtifactType
LOCAL lnRequestedOn
LOCAL lcIdentifier
LOCAL lnIgnoreFailure
LOCAL j
LOCAL lnCount_j
LOCAL lcLocation
LOCAL lcV_type
LOCAL lcArn
LOCAL lcBuildStatus
LOCAL lcPrimaryArtifactIdentifier
LOCAL lcPrimaryArtifactLocation
LOCAL lcPrimaryArtifactType
LOCAL lnRequestedOn
LOCAL k
LOCAL lnCount_k
LOCAL lcName
LOCAL lcValue
LOCAL lcMountOptions
LOCAL lcMountPoint
LOCAL lnDurationInSeconds
LOCAL lnEndTime
LOCAL lcPhaseStatus
LOCAL lcPhaseType
LOCAL lnStartTime
LOCAL lcMessage
LOCAL lcStatusCode
LOCAL lcArtifactIdentifier
LOCAL lcBucketOwnerAccess
LOCAL lnEncryptionDisabled
LOCAL lcMd5sum
LOCAL lnOverrideArtifactName
LOCAL lcSha256sum
LOCAL lcAuthResource
LOCAL lcAuthType
LOCAL lcBuildspec
LOCAL lcBuildStatusConfigContext
LOCAL lcBuildStatusConfigTargetUrl
LOCAL lnGitCloneDepth
LOCAL lnGitSubmodulesConfigFetchSubmodules
LOCAL lnInsecureSsl
LOCAL lnReportBuildStatus
LOCAL lcSourceIdentifier
LOCAL lcSourceVersion
LOCAL lcArn
LOCAL lcArtifactIdentifier
LOCAL lcBucketOwnerAccess
LOCAL lnEncryptionDisabled
LOCAL lcLocation
LOCAL lcMd5sum
LOCAL lnOverrideArtifactName
LOCAL lcSha256sum
LOCAL lcBatchReportMode
LOCAL lnCombineArtifacts
LOCAL lnMaximumBuildsAllowed
LOCAL lcServiceRole
LOCAL lnTimeoutInMins
LOCAL lnBuildBatchNumber
LOCAL lcBuildBatchStatus
LOCAL lnBuildTimeoutInMinutes
LOCAL lcCacheLocation
LOCAL lcV_Type
LOCAL lnComplete
LOCAL lcCurrentPhase
LOCAL lnDebugSessionEnabled
LOCAL lcEncryptionKey
LOCAL lnEndTime
LOCAL lcCertificate
LOCAL lcComputeType
LOCAL lcImage
LOCAL lcImagePullCredentialsType
LOCAL lnPrivilegedMode
LOCAL lcCredential
LOCAL lcCredentialProvider
LOCAL lcEnvironmentType
LOCAL lcId
LOCAL lcInitiator
LOCAL lcGroupName
LOCAL lcStatus
LOCAL lcStreamName
LOCAL lcS3LogsBucketOwnerAccess
LOCAL lnS3LogsEncryptionDisabled
LOCAL lcS3LogsLocation
LOCAL lcS3LogsStatus
LOCAL lcProjectName
LOCAL lnQueuedTimeoutInMinutes
LOCAL lcResolvedSourceVersion
LOCAL lcBuildBatchServiceRole
LOCAL lcResource
LOCAL lcAuthType
LOCAL lcBuildspec
LOCAL lcContext
LOCAL lcTargetUrl
LOCAL lnGitCloneDepth
LOCAL lnFetchSubmodules
LOCAL lnInsecureSsl
LOCAL lcSourceLocation
LOCAL lnReportBuildStatus
LOCAL lcSourceIdentifier
LOCAL lcSourceType
LOCAL lcSourceVersion
LOCAL lnStartTime
LOCAL lcVpcId
LOCAL i
LOCAL lnCount_i

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

loRest = CreateObject('Chilkat_9_5_0.Rest')

loAuthAws = CreateObject('Chilkat_9_5_0.AuthAws')
loAuthAws.AccessKey = "AWS_ACCESS_KEY"
loAuthAws.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.)
loAuthAws.Region = "us-west-2"
loAuthAws.ServiceName = "codebuild"
* SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
loRest.SetAuthAws(loAuthAws)

* URL: https://codebuild.us-west-2.amazonaws.com/
* Use the same region as specified above.
lnSuccess = loRest.Connect("codebuild.us-west-2.amazonaws.com",443,1,1)
IF (lnSuccess <> 1) THEN
    ? "ConnectFailReason: " + STR(loRest.ConnectFailReason)
    ? loRest.LastErrorText
    RELEASE loRest
    RELEASE loAuthAws
    CANCEL
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

loJson = CreateObject('Chilkat_9_5_0.JsonObject')
loJson.UpdateString("id","string")

* The JSON request body created by the above code:

* {
*   "id": "string"
* }

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

loSbRequestBody = CreateObject('Chilkat_9_5_0.StringBuilder')
loJson.EmitSb(loSbRequestBody)
loSbResponseBody = CreateObject('Chilkat_9_5_0.StringBuilder')
lnSuccess = loRest.FullRequestSb("POST","/",loSbRequestBody,loSbResponseBody)
IF (lnSuccess <> 1) THEN
    ? loRest.LastErrorText
    RELEASE loRest
    RELEASE loAuthAws
    RELEASE loJson
    RELEASE loSbRequestBody
    RELEASE loSbResponseBody
    CANCEL
ENDIF

lnRespStatusCode = loRest.ResponseStatusCode
? "response status code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode <> 200) THEN
    ? "Response Header:"
    ? loRest.ResponseHeader
    ? "Response Body:"
    ? loSbResponseBody.GetAsString()
    RELEASE loRest
    RELEASE loAuthAws
    RELEASE loJson
    RELEASE loSbRequestBody
    RELEASE loSbResponseBody
    CANCEL
ENDIF

loJResp = CreateObject('Chilkat_9_5_0.JsonObject')
loJResp.LoadSb(loSbResponseBody)

* 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

lcArn = loJResp.StringOf("buildBatch.arn")
lcArtifactIdentifier = loJResp.StringOf("buildBatch.artifacts.artifactIdentifier")
lcBucketOwnerAccess = loJResp.StringOf("buildBatch.artifacts.bucketOwnerAccess")
lnEncryptionDisabled = loJResp.IntOf("buildBatch.artifacts.encryptionDisabled")
lcLocation = loJResp.StringOf("buildBatch.artifacts.location")
lcMd5sum = loJResp.StringOf("buildBatch.artifacts.md5sum")
lnOverrideArtifactName = loJResp.IntOf("buildBatch.artifacts.overrideArtifactName")
lcSha256sum = loJResp.StringOf("buildBatch.artifacts.sha256sum")
lcBatchReportMode = loJResp.StringOf("buildBatch.buildBatchConfig.batchReportMode")
lnCombineArtifacts = loJResp.IntOf("buildBatch.buildBatchConfig.combineArtifacts")
lnMaximumBuildsAllowed = loJResp.IntOf("buildBatch.buildBatchConfig.restrictions.maximumBuildsAllowed")
lcServiceRole = loJResp.StringOf("buildBatch.buildBatchConfig.serviceRole")
lnTimeoutInMins = loJResp.IntOf("buildBatch.buildBatchConfig.timeoutInMins")
lnBuildBatchNumber = loJResp.IntOf("buildBatch.buildBatchNumber")
lcBuildBatchStatus = loJResp.StringOf("buildBatch.buildBatchStatus")
lnBuildTimeoutInMinutes = loJResp.IntOf("buildBatch.buildTimeoutInMinutes")
lcCacheLocation = loJResp.StringOf("buildBatch.cache.location")
lcV_Type = loJResp.StringOf("buildBatch.cache.type")
lnComplete = loJResp.IntOf("buildBatch.complete")
lcCurrentPhase = loJResp.StringOf("buildBatch.currentPhase")
lnDebugSessionEnabled = loJResp.IntOf("buildBatch.debugSessionEnabled")
lcEncryptionKey = loJResp.StringOf("buildBatch.encryptionKey")
lnEndTime = loJResp.IntOf("buildBatch.endTime")
lcCertificate = loJResp.StringOf("buildBatch.environment.certificate")
lcComputeType = loJResp.StringOf("buildBatch.environment.computeType")
lcImage = loJResp.StringOf("buildBatch.environment.image")
lcImagePullCredentialsType = loJResp.StringOf("buildBatch.environment.imagePullCredentialsType")
lnPrivilegedMode = loJResp.IntOf("buildBatch.environment.privilegedMode")
lcCredential = loJResp.StringOf("buildBatch.environment.registryCredential.credential")
lcCredentialProvider = loJResp.StringOf("buildBatch.environment.registryCredential.credentialProvider")
lcEnvironmentType = loJResp.StringOf("buildBatch.environment.type")
lcId = loJResp.StringOf("buildBatch.id")
lcInitiator = loJResp.StringOf("buildBatch.initiator")
lcGroupName = loJResp.StringOf("buildBatch.logConfig.cloudWatchLogs.groupName")
lcStatus = loJResp.StringOf("buildBatch.logConfig.cloudWatchLogs.status")
lcStreamName = loJResp.StringOf("buildBatch.logConfig.cloudWatchLogs.streamName")
lcS3LogsBucketOwnerAccess = loJResp.StringOf("buildBatch.logConfig.s3Logs.bucketOwnerAccess")
lnS3LogsEncryptionDisabled = loJResp.IntOf("buildBatch.logConfig.s3Logs.encryptionDisabled")
lcS3LogsLocation = loJResp.StringOf("buildBatch.logConfig.s3Logs.location")
lcS3LogsStatus = loJResp.StringOf("buildBatch.logConfig.s3Logs.status")
lcProjectName = loJResp.StringOf("buildBatch.projectName")
lnQueuedTimeoutInMinutes = loJResp.IntOf("buildBatch.queuedTimeoutInMinutes")
lcResolvedSourceVersion = loJResp.StringOf("buildBatch.resolvedSourceVersion")
lcBuildBatchServiceRole = loJResp.StringOf("buildBatch.serviceRole")
lcResource = loJResp.StringOf("buildBatch.source.auth.resource")
lcAuthType = loJResp.StringOf("buildBatch.source.auth.type")
lcBuildspec = loJResp.StringOf("buildBatch.source.buildspec")
lcContext = loJResp.StringOf("buildBatch.source.buildStatusConfig.context")
lcTargetUrl = loJResp.StringOf("buildBatch.source.buildStatusConfig.targetUrl")
lnGitCloneDepth = loJResp.IntOf("buildBatch.source.gitCloneDepth")
lnFetchSubmodules = loJResp.IntOf("buildBatch.source.gitSubmodulesConfig.fetchSubmodules")
lnInsecureSsl = loJResp.IntOf("buildBatch.source.insecureSsl")
lcSourceLocation = loJResp.StringOf("buildBatch.source.location")
lnReportBuildStatus = loJResp.IntOf("buildBatch.source.reportBuildStatus")
lcSourceIdentifier = loJResp.StringOf("buildBatch.source.sourceIdentifier")
lcSourceType = loJResp.StringOf("buildBatch.source.type")
lcSourceVersion = loJResp.StringOf("buildBatch.sourceVersion")
lnStartTime = loJResp.IntOf("buildBatch.startTime")
lcVpcId = loJResp.StringOf("buildBatch.vpcConfig.vpcId")
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.buildBatchConfig.restrictions.computeTypesAllowed")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("buildBatch.buildBatchConfig.restrictions.computeTypesAllowed[i]")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.buildGroups")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcCurrentBuildSummaryArn = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.arn")
    lcBuildStatus = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.buildStatus")
    lcIdentifier = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.identifier")
    lcPrimaryArtifactLocation = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.location")
    lcPrimaryArtifactType = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.type")
    lnRequestedOn = loJResp.IntOf("buildBatch.buildGroups[i].currentBuildSummary.requestedOn")
    lcIdentifier = loJResp.StringOf("buildBatch.buildGroups[i].identifier")
    lnIgnoreFailure = loJResp.IntOf("buildBatch.buildGroups[i].ignoreFailure")
    j = 0
    lnCount_j = loJResp.SizeOfArray("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts")
    DO WHILE j < lnCount_j
        loJResp.J = j
        lcIdentifier = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].identifier")
        lcLocation = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].location")
        lcV_type = loJResp.StringOf("buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].type")
        j = j + 1
    ENDDO
    j = 0
    lnCount_j = loJResp.SizeOfArray("buildBatch.buildGroups[i].dependsOn")
    DO WHILE j < lnCount_j
        loJResp.J = j
        lcStrVal = loJResp.StringOf("buildBatch.buildGroups[i].dependsOn[j]")
        j = j + 1
    ENDDO
    j = 0
    lnCount_j = loJResp.SizeOfArray("buildBatch.buildGroups[i].priorBuildSummaryList")
    DO WHILE j < lnCount_j
        loJResp.J = j
        lcArn = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].arn")
        lcBuildStatus = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].buildStatus")
        lcPrimaryArtifactIdentifier = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.identifier")
        lcPrimaryArtifactLocation = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.location")
        lcPrimaryArtifactType = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.type")
        lnRequestedOn = loJResp.IntOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].requestedOn")
        k = 0
        lnCount_k = loJResp.SizeOfArray("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts")
        DO WHILE k < lnCount_k
            loJResp.K = k
            lcIdentifier = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].identifier")
            lcLocation = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].location")
            lcV_type = loJResp.StringOf("buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].type")
            k = k + 1
        ENDDO
        j = j + 1
    ENDDO
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.cache.modes")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("buildBatch.cache.modes[i]")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.environment.environmentVariables")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcName = loJResp.StringOf("buildBatch.environment.environmentVariables[i].name")
    lcV_type = loJResp.StringOf("buildBatch.environment.environmentVariables[i].type")
    lcValue = loJResp.StringOf("buildBatch.environment.environmentVariables[i].value")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.fileSystemLocations")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcIdentifier = loJResp.StringOf("buildBatch.fileSystemLocations[i].identifier")
    lcLocation = loJResp.StringOf("buildBatch.fileSystemLocations[i].location")
    lcMountOptions = loJResp.StringOf("buildBatch.fileSystemLocations[i].mountOptions")
    lcMountPoint = loJResp.StringOf("buildBatch.fileSystemLocations[i].mountPoint")
    lcV_type = loJResp.StringOf("buildBatch.fileSystemLocations[i].type")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.phases")
DO WHILE i < lnCount_i
    loJResp.I = i
    lnDurationInSeconds = loJResp.IntOf("buildBatch.phases[i].durationInSeconds")
    lnEndTime = loJResp.IntOf("buildBatch.phases[i].endTime")
    lcPhaseStatus = loJResp.StringOf("buildBatch.phases[i].phaseStatus")
    lcPhaseType = loJResp.StringOf("buildBatch.phases[i].phaseType")
    lnStartTime = loJResp.IntOf("buildBatch.phases[i].startTime")
    j = 0
    lnCount_j = loJResp.SizeOfArray("buildBatch.phases[i].contexts")
    DO WHILE j < lnCount_j
        loJResp.J = j
        lcMessage = loJResp.StringOf("buildBatch.phases[i].contexts[j].message")
        lcStatusCode = loJResp.StringOf("buildBatch.phases[i].contexts[j].statusCode")
        j = j + 1
    ENDDO
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.secondaryArtifacts")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcArtifactIdentifier = loJResp.StringOf("buildBatch.secondaryArtifacts[i].artifactIdentifier")
    lcBucketOwnerAccess = loJResp.StringOf("buildBatch.secondaryArtifacts[i].bucketOwnerAccess")
    lnEncryptionDisabled = loJResp.IntOf("buildBatch.secondaryArtifacts[i].encryptionDisabled")
    lcLocation = loJResp.StringOf("buildBatch.secondaryArtifacts[i].location")
    lcMd5sum = loJResp.StringOf("buildBatch.secondaryArtifacts[i].md5sum")
    lnOverrideArtifactName = loJResp.IntOf("buildBatch.secondaryArtifacts[i].overrideArtifactName")
    lcSha256sum = loJResp.StringOf("buildBatch.secondaryArtifacts[i].sha256sum")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.secondarySources")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcAuthResource = loJResp.StringOf("buildBatch.secondarySources[i].auth.resource")
    lcAuthType = loJResp.StringOf("buildBatch.secondarySources[i].auth.type")
    lcBuildspec = loJResp.StringOf("buildBatch.secondarySources[i].buildspec")
    lcBuildStatusConfigContext = loJResp.StringOf("buildBatch.secondarySources[i].buildStatusConfig.context")
    lcBuildStatusConfigTargetUrl = loJResp.StringOf("buildBatch.secondarySources[i].buildStatusConfig.targetUrl")
    lnGitCloneDepth = loJResp.IntOf("buildBatch.secondarySources[i].gitCloneDepth")
    lnGitSubmodulesConfigFetchSubmodules = loJResp.IntOf("buildBatch.secondarySources[i].gitSubmodulesConfig.fetchSubmodules")
    lnInsecureSsl = loJResp.IntOf("buildBatch.secondarySources[i].insecureSsl")
    lcLocation = loJResp.StringOf("buildBatch.secondarySources[i].location")
    lnReportBuildStatus = loJResp.IntOf("buildBatch.secondarySources[i].reportBuildStatus")
    lcSourceIdentifier = loJResp.StringOf("buildBatch.secondarySources[i].sourceIdentifier")
    lcV_type = loJResp.StringOf("buildBatch.secondarySources[i].type")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.secondarySourceVersions")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcSourceIdentifier = loJResp.StringOf("buildBatch.secondarySourceVersions[i].sourceIdentifier")
    lcSourceVersion = loJResp.StringOf("buildBatch.secondarySourceVersions[i].sourceVersion")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.vpcConfig.securityGroupIds")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("buildBatch.vpcConfig.securityGroupIds[i]")
    i = i + 1
ENDDO
i = 0
lnCount_i = loJResp.SizeOfArray("buildBatch.vpcConfig.subnets")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcStrVal = loJResp.StringOf("buildBatch.vpcConfig.subnets[i]")
    i = i + 1
ENDDO

* 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"
*     }
*   }
* }

RELEASE loRest
RELEASE loAuthAws
RELEASE loJson
RELEASE loSbRequestBody
RELEASE loSbResponseBody
RELEASE loJResp