Chilkat Online Tools

RetryBuildBatch 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 "id" "string"
CkJsonObject_UpdateString $json "idempotencyToken" "string"
CkJsonObject_UpdateString $json "retryType" "string"

# The JSON request body created by the above code:

# {
#   "id": "string",
#   "idempotencyToken": "string",
#   "retryType": "string"
# }

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

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

set Arn [CkJsonObject_stringOf $jResp "buildBatch.arn"]
set ArtifactIdentifier [CkJsonObject_stringOf $jResp "buildBatch.artifacts.artifactIdentifier"]
set BucketOwnerAccess [CkJsonObject_stringOf $jResp "buildBatch.artifacts.bucketOwnerAccess"]
set EncryptionDisabled [CkJsonObject_IntOf $jResp "buildBatch.artifacts.encryptionDisabled"]
set Location [CkJsonObject_stringOf $jResp "buildBatch.artifacts.location"]
set Md5sum [CkJsonObject_stringOf $jResp "buildBatch.artifacts.md5sum"]
set OverrideArtifactName [CkJsonObject_IntOf $jResp "buildBatch.artifacts.overrideArtifactName"]
set Sha256sum [CkJsonObject_stringOf $jResp "buildBatch.artifacts.sha256sum"]
set BatchReportMode [CkJsonObject_stringOf $jResp "buildBatch.buildBatchConfig.batchReportMode"]
set CombineArtifacts [CkJsonObject_IntOf $jResp "buildBatch.buildBatchConfig.combineArtifacts"]
set MaximumBuildsAllowed [CkJsonObject_IntOf $jResp "buildBatch.buildBatchConfig.restrictions.maximumBuildsAllowed"]
set ServiceRole [CkJsonObject_stringOf $jResp "buildBatch.buildBatchConfig.serviceRole"]
set TimeoutInMins [CkJsonObject_IntOf $jResp "buildBatch.buildBatchConfig.timeoutInMins"]
set BuildBatchNumber [CkJsonObject_IntOf $jResp "buildBatch.buildBatchNumber"]
set BuildBatchStatus [CkJsonObject_stringOf $jResp "buildBatch.buildBatchStatus"]
set BuildTimeoutInMinutes [CkJsonObject_IntOf $jResp "buildBatch.buildTimeoutInMinutes"]
set CacheLocation [CkJsonObject_stringOf $jResp "buildBatch.cache.location"]
set v_Type [CkJsonObject_stringOf $jResp "buildBatch.cache.type"]
set Complete [CkJsonObject_IntOf $jResp "buildBatch.complete"]
set CurrentPhase [CkJsonObject_stringOf $jResp "buildBatch.currentPhase"]
set DebugSessionEnabled [CkJsonObject_IntOf $jResp "buildBatch.debugSessionEnabled"]
set EncryptionKey [CkJsonObject_stringOf $jResp "buildBatch.encryptionKey"]
set EndTime [CkJsonObject_IntOf $jResp "buildBatch.endTime"]
set Certificate [CkJsonObject_stringOf $jResp "buildBatch.environment.certificate"]
set ComputeType [CkJsonObject_stringOf $jResp "buildBatch.environment.computeType"]
set Image [CkJsonObject_stringOf $jResp "buildBatch.environment.image"]
set ImagePullCredentialsType [CkJsonObject_stringOf $jResp "buildBatch.environment.imagePullCredentialsType"]
set PrivilegedMode [CkJsonObject_IntOf $jResp "buildBatch.environment.privilegedMode"]
set Credential [CkJsonObject_stringOf $jResp "buildBatch.environment.registryCredential.credential"]
set CredentialProvider [CkJsonObject_stringOf $jResp "buildBatch.environment.registryCredential.credentialProvider"]
set EnvironmentType [CkJsonObject_stringOf $jResp "buildBatch.environment.type"]
set Id [CkJsonObject_stringOf $jResp "buildBatch.id"]
set Initiator [CkJsonObject_stringOf $jResp "buildBatch.initiator"]
set GroupName [CkJsonObject_stringOf $jResp "buildBatch.logConfig.cloudWatchLogs.groupName"]
set Status [CkJsonObject_stringOf $jResp "buildBatch.logConfig.cloudWatchLogs.status"]
set StreamName [CkJsonObject_stringOf $jResp "buildBatch.logConfig.cloudWatchLogs.streamName"]
set S3LogsBucketOwnerAccess [CkJsonObject_stringOf $jResp "buildBatch.logConfig.s3Logs.bucketOwnerAccess"]
set S3LogsEncryptionDisabled [CkJsonObject_IntOf $jResp "buildBatch.logConfig.s3Logs.encryptionDisabled"]
set S3LogsLocation [CkJsonObject_stringOf $jResp "buildBatch.logConfig.s3Logs.location"]
set S3LogsStatus [CkJsonObject_stringOf $jResp "buildBatch.logConfig.s3Logs.status"]
set ProjectName [CkJsonObject_stringOf $jResp "buildBatch.projectName"]
set QueuedTimeoutInMinutes [CkJsonObject_IntOf $jResp "buildBatch.queuedTimeoutInMinutes"]
set ResolvedSourceVersion [CkJsonObject_stringOf $jResp "buildBatch.resolvedSourceVersion"]
set buildBatchServiceRole [CkJsonObject_stringOf $jResp "buildBatch.serviceRole"]
set Resource [CkJsonObject_stringOf $jResp "buildBatch.source.auth.resource"]
set AuthType [CkJsonObject_stringOf $jResp "buildBatch.source.auth.type"]
set Buildspec [CkJsonObject_stringOf $jResp "buildBatch.source.buildspec"]
set Context [CkJsonObject_stringOf $jResp "buildBatch.source.buildStatusConfig.context"]
set TargetUrl [CkJsonObject_stringOf $jResp "buildBatch.source.buildStatusConfig.targetUrl"]
set GitCloneDepth [CkJsonObject_IntOf $jResp "buildBatch.source.gitCloneDepth"]
set FetchSubmodules [CkJsonObject_IntOf $jResp "buildBatch.source.gitSubmodulesConfig.fetchSubmodules"]
set InsecureSsl [CkJsonObject_IntOf $jResp "buildBatch.source.insecureSsl"]
set SourceLocation [CkJsonObject_stringOf $jResp "buildBatch.source.location"]
set ReportBuildStatus [CkJsonObject_IntOf $jResp "buildBatch.source.reportBuildStatus"]
set SourceIdentifier [CkJsonObject_stringOf $jResp "buildBatch.source.sourceIdentifier"]
set SourceType [CkJsonObject_stringOf $jResp "buildBatch.source.type"]
set SourceVersion [CkJsonObject_stringOf $jResp "buildBatch.sourceVersion"]
set StartTime [CkJsonObject_IntOf $jResp "buildBatch.startTime"]
set VpcId [CkJsonObject_stringOf $jResp "buildBatch.vpcConfig.vpcId"]
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.buildBatchConfig.restrictions.computeTypesAllowed"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "buildBatch.buildBatchConfig.restrictions.computeTypesAllowed[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.buildGroups"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set currentBuildSummaryArn [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.arn"]
    set BuildStatus [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.buildStatus"]
    set Identifier [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.identifier"]
    set PrimaryArtifactLocation [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.location"]
    set PrimaryArtifactType [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.type"]
    set RequestedOn [CkJsonObject_IntOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.requestedOn"]
    set identifier [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].identifier"]
    set ignoreFailure [CkJsonObject_IntOf $jResp "buildBatch.buildGroups[i].ignoreFailure"]
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set identifier [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].identifier"]
        set location [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].location"]
        set v_type [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].type"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatch.buildGroups[i].dependsOn"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].dependsOn[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatch.buildGroups[i].priorBuildSummaryList"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set arn [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].arn"]
        set buildStatus [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].buildStatus"]
        set primaryArtifactIdentifier [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.identifier"]
        set primaryArtifactLocation [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.location"]
        set primaryArtifactType [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.type"]
        set requestedOn [CkJsonObject_IntOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].requestedOn"]
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set identifier [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].identifier"]
            set location [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].location"]
            set v_type [CkJsonObject_stringOf $jResp "buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].type"]
            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.cache.modes"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "buildBatch.cache.modes[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.environment.environmentVariables"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set name [CkJsonObject_stringOf $jResp "buildBatch.environment.environmentVariables[i].name"]
    set v_type [CkJsonObject_stringOf $jResp "buildBatch.environment.environmentVariables[i].type"]
    set value [CkJsonObject_stringOf $jResp "buildBatch.environment.environmentVariables[i].value"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.fileSystemLocations"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set identifier [CkJsonObject_stringOf $jResp "buildBatch.fileSystemLocations[i].identifier"]
    set location [CkJsonObject_stringOf $jResp "buildBatch.fileSystemLocations[i].location"]
    set mountOptions [CkJsonObject_stringOf $jResp "buildBatch.fileSystemLocations[i].mountOptions"]
    set mountPoint [CkJsonObject_stringOf $jResp "buildBatch.fileSystemLocations[i].mountPoint"]
    set v_type [CkJsonObject_stringOf $jResp "buildBatch.fileSystemLocations[i].type"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.phases"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set durationInSeconds [CkJsonObject_IntOf $jResp "buildBatch.phases[i].durationInSeconds"]
    set endTime [CkJsonObject_IntOf $jResp "buildBatch.phases[i].endTime"]
    set phaseStatus [CkJsonObject_stringOf $jResp "buildBatch.phases[i].phaseStatus"]
    set phaseType [CkJsonObject_stringOf $jResp "buildBatch.phases[i].phaseType"]
    set startTime [CkJsonObject_IntOf $jResp "buildBatch.phases[i].startTime"]
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "buildBatch.phases[i].contexts"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set message [CkJsonObject_stringOf $jResp "buildBatch.phases[i].contexts[j].message"]
        set statusCode [CkJsonObject_stringOf $jResp "buildBatch.phases[i].contexts[j].statusCode"]
        set j [expr $j + 1]
    }
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.secondaryArtifacts"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set artifactIdentifier [CkJsonObject_stringOf $jResp "buildBatch.secondaryArtifacts[i].artifactIdentifier"]
    set bucketOwnerAccess [CkJsonObject_stringOf $jResp "buildBatch.secondaryArtifacts[i].bucketOwnerAccess"]
    set encryptionDisabled [CkJsonObject_IntOf $jResp "buildBatch.secondaryArtifacts[i].encryptionDisabled"]
    set location [CkJsonObject_stringOf $jResp "buildBatch.secondaryArtifacts[i].location"]
    set md5sum [CkJsonObject_stringOf $jResp "buildBatch.secondaryArtifacts[i].md5sum"]
    set overrideArtifactName [CkJsonObject_IntOf $jResp "buildBatch.secondaryArtifacts[i].overrideArtifactName"]
    set sha256sum [CkJsonObject_stringOf $jResp "buildBatch.secondaryArtifacts[i].sha256sum"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.secondarySources"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set authResource [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].auth.resource"]
    set authType [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].auth.type"]
    set buildspec [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].buildspec"]
    set buildStatusConfigContext [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].buildStatusConfig.context"]
    set buildStatusConfigTargetUrl [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].buildStatusConfig.targetUrl"]
    set gitCloneDepth [CkJsonObject_IntOf $jResp "buildBatch.secondarySources[i].gitCloneDepth"]
    set gitSubmodulesConfigFetchSubmodules [CkJsonObject_IntOf $jResp "buildBatch.secondarySources[i].gitSubmodulesConfig.fetchSubmodules"]
    set insecureSsl [CkJsonObject_IntOf $jResp "buildBatch.secondarySources[i].insecureSsl"]
    set location [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].location"]
    set reportBuildStatus [CkJsonObject_IntOf $jResp "buildBatch.secondarySources[i].reportBuildStatus"]
    set sourceIdentifier [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].sourceIdentifier"]
    set v_type [CkJsonObject_stringOf $jResp "buildBatch.secondarySources[i].type"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.secondarySourceVersions"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set sourceIdentifier [CkJsonObject_stringOf $jResp "buildBatch.secondarySourceVersions[i].sourceIdentifier"]
    set sourceVersion [CkJsonObject_stringOf $jResp "buildBatch.secondarySourceVersions[i].sourceVersion"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.vpcConfig.securityGroupIds"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "buildBatch.vpcConfig.securityGroupIds[i]"]
    set i [expr $i + 1]
}
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "buildBatch.vpcConfig.subnets"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set strVal [CkJsonObject_stringOf $jResp "buildBatch.vpcConfig.subnets[i]"]
    set i [expr $i + 1]
}

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

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