Chilkat Online Tools

BatchGetBuildBatches TCL Example

AWS CodeBuild

load ./chilkat.dll

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

set rest [new_CkRest]

set authAws [new_CkAuthAws]

CkAuthAws_put_AccessKey $authAws "AWS_ACCESS_KEY"
CkAuthAws_put_SecretKey $authAws "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.)
CkAuthAws_put_Region $authAws "us-west-2"
CkAuthAws_put_ServiceName $authAws "codebuild"
# SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
CkRest_SetAuthAws $rest $authAws

# URL: https://codebuild.us-west-2.amazonaws.com/
# Use the same region as specified above.
set success [CkRest_Connect $rest "codebuild.us-west-2.amazonaws.com" 443 1 1]
if {$success != 1} then {
    puts "ConnectFailReason: [CkRest_get_ConnectFailReason $rest]"
    puts [CkRest_lastErrorText $rest]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    exit
}

# 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

set json [new_CkJsonObject]

CkJsonObject_UpdateString $json "ids[0]" "string"

# The JSON request body created by the above code:

# {
#   "ids": [
#     "string"
#   ]
# }

CkRest_AddHeader $rest "Content-Type" "application/x-amz-json-1.1"
CkRest_AddHeader $rest "X-Amz-Target" "CodeBuild_20161006.BatchGetBuildBatches"

set sbRequestBody [new_CkStringBuilder]

CkJsonObject_EmitSb $json $sbRequestBody
set sbResponseBody [new_CkStringBuilder]

set success [CkRest_FullRequestSb $rest "POST" "/" $sbRequestBody $sbResponseBody]
if {$success != 1} then {
    puts [CkRest_lastErrorText $rest]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    exit
}

set respStatusCode [CkRest_get_ResponseStatusCode $rest]
puts "response status code = $respStatusCode"
if {$respStatusCode != 200} then {
    puts "Response Header:"
    puts [CkRest_responseHeader $rest]
    puts "Response Body:"
    puts [CkStringBuilder_getAsString $sbResponseBody]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    exit
}

set jResp [new_CkJsonObject]

CkJsonObject_LoadSb $jResp $sbResponseBody

# 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

# json1 is a CkJsonObject

set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatches"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set arn [CkJsonObject_stringOf $jResp "buildBatches[i].arn"]
    set ArtifactIdentifier [CkJsonObject_stringOf $jResp "buildBatches[i].artifacts.artifactIdentifier"]
    set BucketOwnerAccess [CkJsonObject_stringOf $jResp "buildBatches[i].artifacts.bucketOwnerAccess"]
    set EncryptionDisabled [CkJsonObject_IntOf $jResp "buildBatches[i].artifacts.encryptionDisabled"]
    set Location [CkJsonObject_stringOf $jResp "buildBatches[i].artifacts.location"]
    set Md5sum [CkJsonObject_stringOf $jResp "buildBatches[i].artifacts.md5sum"]
    set OverrideArtifactName [CkJsonObject_IntOf $jResp "buildBatches[i].artifacts.overrideArtifactName"]
    set Sha256sum [CkJsonObject_stringOf $jResp "buildBatches[i].artifacts.sha256sum"]
    set BatchReportMode [CkJsonObject_stringOf $jResp "buildBatches[i].buildBatchConfig.batchReportMode"]
    set CombineArtifacts [CkJsonObject_IntOf $jResp "buildBatches[i].buildBatchConfig.combineArtifacts"]
    set MaximumBuildsAllowed [CkJsonObject_IntOf $jResp "buildBatches[i].buildBatchConfig.restrictions.maximumBuildsAllowed"]
    set ServiceRole [CkJsonObject_stringOf $jResp "buildBatches[i].buildBatchConfig.serviceRole"]
    set TimeoutInMins [CkJsonObject_IntOf $jResp "buildBatches[i].buildBatchConfig.timeoutInMins"]
    set buildBatchNumber [CkJsonObject_IntOf $jResp "buildBatches[i].buildBatchNumber"]
    set buildBatchStatus [CkJsonObject_stringOf $jResp "buildBatches[i].buildBatchStatus"]
    set buildTimeoutInMinutes [CkJsonObject_IntOf $jResp "buildBatches[i].buildTimeoutInMinutes"]
    set cacheLocation [CkJsonObject_stringOf $jResp "buildBatches[i].cache.location"]
    set v_Type [CkJsonObject_stringOf $jResp "buildBatches[i].cache.type"]
    set complete [CkJsonObject_IntOf $jResp "buildBatches[i].complete"]
    set currentPhase [CkJsonObject_stringOf $jResp "buildBatches[i].currentPhase"]
    set debugSessionEnabled [CkJsonObject_IntOf $jResp "buildBatches[i].debugSessionEnabled"]
    set encryptionKey [CkJsonObject_stringOf $jResp "buildBatches[i].encryptionKey"]
    set endTime [CkJsonObject_IntOf $jResp "buildBatches[i].endTime"]
    set Certificate [CkJsonObject_stringOf $jResp "buildBatches[i].environment.certificate"]
    set ComputeType [CkJsonObject_stringOf $jResp "buildBatches[i].environment.computeType"]
    set Image [CkJsonObject_stringOf $jResp "buildBatches[i].environment.image"]
    set ImagePullCredentialsType [CkJsonObject_stringOf $jResp "buildBatches[i].environment.imagePullCredentialsType"]
    set PrivilegedMode [CkJsonObject_IntOf $jResp "buildBatches[i].environment.privilegedMode"]
    set Credential [CkJsonObject_stringOf $jResp "buildBatches[i].environment.registryCredential.credential"]
    set CredentialProvider [CkJsonObject_stringOf $jResp "buildBatches[i].environment.registryCredential.credentialProvider"]
    set environmentType [CkJsonObject_stringOf $jResp "buildBatches[i].environment.type"]
    set id [CkJsonObject_stringOf $jResp "buildBatches[i].id"]
    set initiator [CkJsonObject_stringOf $jResp "buildBatches[i].initiator"]
    set GroupName [CkJsonObject_stringOf $jResp "buildBatches[i].logConfig.cloudWatchLogs.groupName"]
    set Status [CkJsonObject_stringOf $jResp "buildBatches[i].logConfig.cloudWatchLogs.status"]
    set StreamName [CkJsonObject_stringOf $jResp "buildBatches[i].logConfig.cloudWatchLogs.streamName"]
    set S3LogsBucketOwnerAccess [CkJsonObject_stringOf $jResp "buildBatches[i].logConfig.s3Logs.bucketOwnerAccess"]
    set S3LogsEncryptionDisabled [CkJsonObject_IntOf $jResp "buildBatches[i].logConfig.s3Logs.encryptionDisabled"]
    set S3LogsLocation [CkJsonObject_stringOf $jResp "buildBatches[i].logConfig.s3Logs.location"]
    set S3LogsStatus [CkJsonObject_stringOf $jResp "buildBatches[i].logConfig.s3Logs.status"]
    set projectName [CkJsonObject_stringOf $jResp "buildBatches[i].projectName"]
    set queuedTimeoutInMinutes [CkJsonObject_IntOf $jResp "buildBatches[i].queuedTimeoutInMinutes"]
    set resolvedSourceVersion [CkJsonObject_stringOf $jResp "buildBatches[i].resolvedSourceVersion"]
    set serviceRole [CkJsonObject_stringOf $jResp "buildBatches[i].serviceRole"]
    set Resource [CkJsonObject_stringOf $jResp "buildBatches[i].source.auth.resource"]
    set AuthType [CkJsonObject_stringOf $jResp "buildBatches[i].source.auth.type"]
    set Buildspec [CkJsonObject_stringOf $jResp "buildBatches[i].source.buildspec"]
    set Context [CkJsonObject_stringOf $jResp "buildBatches[i].source.buildStatusConfig.context"]
    set TargetUrl [CkJsonObject_stringOf $jResp "buildBatches[i].source.buildStatusConfig.targetUrl"]
    set GitCloneDepth [CkJsonObject_IntOf $jResp "buildBatches[i].source.gitCloneDepth"]
    set FetchSubmodules [CkJsonObject_IntOf $jResp "buildBatches[i].source.gitSubmodulesConfig.fetchSubmodules"]
    set InsecureSsl [CkJsonObject_IntOf $jResp "buildBatches[i].source.insecureSsl"]
    set sourceLocation [CkJsonObject_stringOf $jResp "buildBatches[i].source.location"]
    set ReportBuildStatus [CkJsonObject_IntOf $jResp "buildBatches[i].source.reportBuildStatus"]
    set SourceIdentifier [CkJsonObject_stringOf $jResp "buildBatches[i].source.sourceIdentifier"]
    set sourceType [CkJsonObject_stringOf $jResp "buildBatches[i].source.type"]
    set sourceVersion [CkJsonObject_stringOf $jResp "buildBatches[i].sourceVersion"]
    set startTime [CkJsonObject_IntOf $jResp "buildBatches[i].startTime"]
    set VpcId [CkJsonObject_stringOf $jResp "buildBatches[i].vpcConfig.vpcId"]
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].buildBatchConfig.restrictions.computeTypesAllowed"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "buildBatches[i].buildBatchConfig.restrictions.computeTypesAllowed[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].buildGroups"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set Arn [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.arn"]
        set BuildStatus [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.buildStatus"]
        set Identifier [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.identifier"]
        set PrimaryArtifactLocation [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.location"]
        set PrimaryArtifactType [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.type"]
        set RequestedOn [CkJsonObject_IntOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.requestedOn"]
        set identifier [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].identifier"]
        set ignoreFailure [CkJsonObject_IntOf $jResp "buildBatches[i].buildGroups[j].ignoreFailure"]
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set identifier [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].identifier"]
            set location [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].location"]
            set v_type [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].type"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "buildBatches[i].buildGroups[j].dependsOn"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set strVal [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].dependsOn[k]"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set arn [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].arn"]
            set buildStatus [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].buildStatus"]
            set primaryArtifactIdentifier [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.identifier"]
            set primaryArtifactLocation [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.location"]
            set primaryArtifactType [CkJsonObject_stringOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.type"]
            set requestedOn [CkJsonObject_IntOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].requestedOn"]

            set json1 [CkJsonObject_ObjectOf $jResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k]"]
            set i1 0
            set count_i1 [CkJsonObject_SizeOfArray $json1 "secondaryArtifacts"]
            while {$i1 < $count_i1} {
                CkJsonObject_put_I $json1 $i1
                set identifier [CkJsonObject_stringOf $json1 "secondaryArtifacts[i].identifier"]
                set location [CkJsonObject_stringOf $json1 "secondaryArtifacts[i].location"]
                set v_type [CkJsonObject_stringOf $json1 "secondaryArtifacts[i].type"]
                set i1 [expr $i1 + 1]
            }
            delete_CkJsonObject $json1

            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].cache.modes"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "buildBatches[i].cache.modes[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].environment.environmentVariables"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set name [CkJsonObject_stringOf $jResp "buildBatches[i].environment.environmentVariables[j].name"]
        set v_type [CkJsonObject_stringOf $jResp "buildBatches[i].environment.environmentVariables[j].type"]
        set value [CkJsonObject_stringOf $jResp "buildBatches[i].environment.environmentVariables[j].value"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].fileSystemLocations"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set identifier [CkJsonObject_stringOf $jResp "buildBatches[i].fileSystemLocations[j].identifier"]
        set location [CkJsonObject_stringOf $jResp "buildBatches[i].fileSystemLocations[j].location"]
        set mountOptions [CkJsonObject_stringOf $jResp "buildBatches[i].fileSystemLocations[j].mountOptions"]
        set mountPoint [CkJsonObject_stringOf $jResp "buildBatches[i].fileSystemLocations[j].mountPoint"]
        set v_type [CkJsonObject_stringOf $jResp "buildBatches[i].fileSystemLocations[j].type"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].phases"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set durationInSeconds [CkJsonObject_IntOf $jResp "buildBatches[i].phases[j].durationInSeconds"]
        set endTime [CkJsonObject_IntOf $jResp "buildBatches[i].phases[j].endTime"]
        set phaseStatus [CkJsonObject_stringOf $jResp "buildBatches[i].phases[j].phaseStatus"]
        set phaseType [CkJsonObject_stringOf $jResp "buildBatches[i].phases[j].phaseType"]
        set startTime [CkJsonObject_IntOf $jResp "buildBatches[i].phases[j].startTime"]
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "buildBatches[i].phases[j].contexts"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set message [CkJsonObject_stringOf $jResp "buildBatches[i].phases[j].contexts[k].message"]
            set statusCode [CkJsonObject_stringOf $jResp "buildBatches[i].phases[j].contexts[k].statusCode"]
            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].secondaryArtifacts"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set artifactIdentifier [CkJsonObject_stringOf $jResp "buildBatches[i].secondaryArtifacts[j].artifactIdentifier"]
        set bucketOwnerAccess [CkJsonObject_stringOf $jResp "buildBatches[i].secondaryArtifacts[j].bucketOwnerAccess"]
        set encryptionDisabled [CkJsonObject_IntOf $jResp "buildBatches[i].secondaryArtifacts[j].encryptionDisabled"]
        set location [CkJsonObject_stringOf $jResp "buildBatches[i].secondaryArtifacts[j].location"]
        set md5sum [CkJsonObject_stringOf $jResp "buildBatches[i].secondaryArtifacts[j].md5sum"]
        set overrideArtifactName [CkJsonObject_IntOf $jResp "buildBatches[i].secondaryArtifacts[j].overrideArtifactName"]
        set sha256sum [CkJsonObject_stringOf $jResp "buildBatches[i].secondaryArtifacts[j].sha256sum"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].secondarySources"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set authResource [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].auth.resource"]
        set authType [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].auth.type"]
        set buildspec [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].buildspec"]
        set buildStatusConfigContext [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].buildStatusConfig.context"]
        set buildStatusConfigTargetUrl [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].buildStatusConfig.targetUrl"]
        set gitCloneDepth [CkJsonObject_IntOf $jResp "buildBatches[i].secondarySources[j].gitCloneDepth"]
        set gitSubmodulesConfigFetchSubmodules [CkJsonObject_IntOf $jResp "buildBatches[i].secondarySources[j].gitSubmodulesConfig.fetchSubmodules"]
        set insecureSsl [CkJsonObject_IntOf $jResp "buildBatches[i].secondarySources[j].insecureSsl"]
        set location [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].location"]
        set reportBuildStatus [CkJsonObject_IntOf $jResp "buildBatches[i].secondarySources[j].reportBuildStatus"]
        set sourceIdentifier [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].sourceIdentifier"]
        set v_type [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySources[j].type"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].secondarySourceVersions"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set sourceIdentifier [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySourceVersions[j].sourceIdentifier"]
        set sourceVersion [CkJsonObject_stringOf $jResp "buildBatches[i].secondarySourceVersions[j].sourceVersion"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].vpcConfig.securityGroupIds"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "buildBatches[i].vpcConfig.securityGroupIds[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatches[i].vpcConfig.subnets"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "buildBatches[i].vpcConfig.subnets[j]"]
        set j [expr $j + 1]
    }
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatchesNotFound"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "buildBatchesNotFound[i]"]
    set i [expr $i + 1]
}

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

# {
#   "buildBatches": [
#     {
#       "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"
#       }
#     }
#   ],
#   "buildBatchesNotFound": [
#     "string"
#   ]
# }

delete_CkRest $rest
delete_CkAuthAws $authAws
delete_CkJsonObject $json
delete_CkStringBuilder $sbRequestBody
delete_CkStringBuilder $sbResponseBody
delete_CkJsonObject $jResp