BatchGetBuildBatches Go Example
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
rest := chilkat.NewRest()
var success bool
authAws := chilkat.NewAuthAws()
authAws.SetAccessKey("AWS_ACCESS_KEY")
authAws.SetSecretKey("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.)
authAws.SetRegion("us-west-2")
authAws.SetServiceName("codebuild")
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
rest.SetAuthAws(authAws)
// URL: https://codebuild.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = rest.Connect("codebuild.us-west-2.amazonaws.com",443,true,true)
if success != true {
fmt.Println("ConnectFailReason: ", rest.ConnectFailReason())
fmt.Println(rest.LastErrorText())
rest.DisposeRest()
authAws.DisposeAuthAws()
return
}
// 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
json := chilkat.NewJsonObject()
json.UpdateString("ids[0]","string")
// The JSON request body created by the above code:
// {
// "ids": [
// "string"
// ]
// }
rest.AddHeader("Content-Type","application/x-amz-json-1.1")
rest.AddHeader("X-Amz-Target","CodeBuild_20161006.BatchGetBuildBatches")
sbRequestBody := chilkat.NewStringBuilder()
json.EmitSb(sbRequestBody)
sbResponseBody := chilkat.NewStringBuilder()
success = rest.FullRequestSb("POST","/",sbRequestBody,sbResponseBody)
if success != true {
fmt.Println(rest.LastErrorText())
rest.DisposeRest()
authAws.DisposeAuthAws()
json.DisposeJsonObject()
sbRequestBody.DisposeStringBuilder()
sbResponseBody.DisposeStringBuilder()
return
}
respStatusCode := rest.ResponseStatusCode()
fmt.Println("response status code = ", respStatusCode)
if respStatusCode != 200 {
fmt.Println("Response Header:")
fmt.Println(rest.ResponseHeader())
fmt.Println("Response Body:")
fmt.Println(*sbResponseBody.GetAsString())
rest.DisposeRest()
authAws.DisposeAuthAws()
json.DisposeJsonObject()
sbRequestBody.DisposeStringBuilder()
sbResponseBody.DisposeStringBuilder()
return
}
jResp := chilkat.NewJsonObject()
jResp.LoadSb(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
arn_DECLARATION
ArtifactIdentifier_DECLARATION
BucketOwnerAccess_DECLARATION
var EncryptionDisabled int
Location_DECLARATION
Md5sum_DECLARATION
var OverrideArtifactName int
Sha256sum_DECLARATION
BatchReportMode_DECLARATION
var CombineArtifacts int
var MaximumBuildsAllowed int
ServiceRole_DECLARATION
var TimeoutInMins int
var buildBatchNumber int
buildBatchStatus_DECLARATION
var buildTimeoutInMinutes int
cacheLocation_DECLARATION
v_Type_DECLARATION
var complete int
currentPhase_DECLARATION
var debugSessionEnabled int
encryptionKey_DECLARATION
var endTime int
Certificate_DECLARATION
ComputeType_DECLARATION
Image_DECLARATION
ImagePullCredentialsType_DECLARATION
var PrivilegedMode int
Credential_DECLARATION
CredentialProvider_DECLARATION
environmentType_DECLARATION
id_DECLARATION
initiator_DECLARATION
GroupName_DECLARATION
Status_DECLARATION
StreamName_DECLARATION
S3LogsBucketOwnerAccess_DECLARATION
var S3LogsEncryptionDisabled int
S3LogsLocation_DECLARATION
S3LogsStatus_DECLARATION
projectName_DECLARATION
var queuedTimeoutInMinutes int
resolvedSourceVersion_DECLARATION
serviceRole_DECLARATION
Resource_DECLARATION
AuthType_DECLARATION
Buildspec_DECLARATION
Context_DECLARATION
TargetUrl_DECLARATION
var GitCloneDepth int
var FetchSubmodules int
var InsecureSsl int
sourceLocation_DECLARATION
var ReportBuildStatus int
SourceIdentifier_DECLARATION
sourceType_DECLARATION
sourceVersion_DECLARATION
var startTime int
VpcId_DECLARATION
var j int
var count_j int
strVal_DECLARATION
Arn_DECLARATION
BuildStatus_DECLARATION
Identifier_DECLARATION
PrimaryArtifactLocation_DECLARATION
PrimaryArtifactType_DECLARATION
var RequestedOn int
identifier_DECLARATION
var ignoreFailure int
var k int
var count_k int
location_DECLARATION
v_type_DECLARATION
buildStatus_DECLARATION
primaryArtifactIdentifier_DECLARATION
primaryArtifactLocation_DECLARATION
primaryArtifactType_DECLARATION
var requestedOn int
// json1 is a JsonObject
var i1 int
var count_i1 int
name_DECLARATION
value_DECLARATION
mountOptions_DECLARATION
mountPoint_DECLARATION
var durationInSeconds int
phaseStatus_DECLARATION
phaseType_DECLARATION
message_DECLARATION
statusCode_DECLARATION
artifactIdentifier_DECLARATION
bucketOwnerAccess_DECLARATION
var encryptionDisabled int
md5sum_DECLARATION
var overrideArtifactName int
sha256sum_DECLARATION
authResource_DECLARATION
authType_DECLARATION
buildspec_DECLARATION
buildStatusConfigContext_DECLARATION
buildStatusConfigTargetUrl_DECLARATION
var gitCloneDepth int
var gitSubmodulesConfigFetchSubmodules int
var insecureSsl int
var reportBuildStatus int
sourceIdentifier_DECLARATION
i := 0
count_i := jResp.SizeOfArray("buildBatches")
for i < count_i {
jResp.SetI(i)
arn = *jResp.StringOf("buildBatches[i].arn")
ArtifactIdentifier = *jResp.StringOf("buildBatches[i].artifacts.artifactIdentifier")
BucketOwnerAccess = *jResp.StringOf("buildBatches[i].artifacts.bucketOwnerAccess")
EncryptionDisabled = jResp.IntOf("buildBatches[i].artifacts.encryptionDisabled")
Location = *jResp.StringOf("buildBatches[i].artifacts.location")
Md5sum = *jResp.StringOf("buildBatches[i].artifacts.md5sum")
OverrideArtifactName = jResp.IntOf("buildBatches[i].artifacts.overrideArtifactName")
Sha256sum = *jResp.StringOf("buildBatches[i].artifacts.sha256sum")
BatchReportMode = *jResp.StringOf("buildBatches[i].buildBatchConfig.batchReportMode")
CombineArtifacts = jResp.IntOf("buildBatches[i].buildBatchConfig.combineArtifacts")
MaximumBuildsAllowed = jResp.IntOf("buildBatches[i].buildBatchConfig.restrictions.maximumBuildsAllowed")
ServiceRole = *jResp.StringOf("buildBatches[i].buildBatchConfig.serviceRole")
TimeoutInMins = jResp.IntOf("buildBatches[i].buildBatchConfig.timeoutInMins")
buildBatchNumber = jResp.IntOf("buildBatches[i].buildBatchNumber")
buildBatchStatus = *jResp.StringOf("buildBatches[i].buildBatchStatus")
buildTimeoutInMinutes = jResp.IntOf("buildBatches[i].buildTimeoutInMinutes")
cacheLocation = *jResp.StringOf("buildBatches[i].cache.location")
v_Type = *jResp.StringOf("buildBatches[i].cache.type")
complete = jResp.IntOf("buildBatches[i].complete")
currentPhase = *jResp.StringOf("buildBatches[i].currentPhase")
debugSessionEnabled = jResp.IntOf("buildBatches[i].debugSessionEnabled")
encryptionKey = *jResp.StringOf("buildBatches[i].encryptionKey")
endTime = jResp.IntOf("buildBatches[i].endTime")
Certificate = *jResp.StringOf("buildBatches[i].environment.certificate")
ComputeType = *jResp.StringOf("buildBatches[i].environment.computeType")
Image = *jResp.StringOf("buildBatches[i].environment.image")
ImagePullCredentialsType = *jResp.StringOf("buildBatches[i].environment.imagePullCredentialsType")
PrivilegedMode = jResp.IntOf("buildBatches[i].environment.privilegedMode")
Credential = *jResp.StringOf("buildBatches[i].environment.registryCredential.credential")
CredentialProvider = *jResp.StringOf("buildBatches[i].environment.registryCredential.credentialProvider")
environmentType = *jResp.StringOf("buildBatches[i].environment.type")
id = *jResp.StringOf("buildBatches[i].id")
initiator = *jResp.StringOf("buildBatches[i].initiator")
GroupName = *jResp.StringOf("buildBatches[i].logConfig.cloudWatchLogs.groupName")
Status = *jResp.StringOf("buildBatches[i].logConfig.cloudWatchLogs.status")
StreamName = *jResp.StringOf("buildBatches[i].logConfig.cloudWatchLogs.streamName")
S3LogsBucketOwnerAccess = *jResp.StringOf("buildBatches[i].logConfig.s3Logs.bucketOwnerAccess")
S3LogsEncryptionDisabled = jResp.IntOf("buildBatches[i].logConfig.s3Logs.encryptionDisabled")
S3LogsLocation = *jResp.StringOf("buildBatches[i].logConfig.s3Logs.location")
S3LogsStatus = *jResp.StringOf("buildBatches[i].logConfig.s3Logs.status")
projectName = *jResp.StringOf("buildBatches[i].projectName")
queuedTimeoutInMinutes = jResp.IntOf("buildBatches[i].queuedTimeoutInMinutes")
resolvedSourceVersion = *jResp.StringOf("buildBatches[i].resolvedSourceVersion")
serviceRole = *jResp.StringOf("buildBatches[i].serviceRole")
Resource = *jResp.StringOf("buildBatches[i].source.auth.resource")
AuthType = *jResp.StringOf("buildBatches[i].source.auth.type")
Buildspec = *jResp.StringOf("buildBatches[i].source.buildspec")
Context = *jResp.StringOf("buildBatches[i].source.buildStatusConfig.context")
TargetUrl = *jResp.StringOf("buildBatches[i].source.buildStatusConfig.targetUrl")
GitCloneDepth = jResp.IntOf("buildBatches[i].source.gitCloneDepth")
FetchSubmodules = jResp.IntOf("buildBatches[i].source.gitSubmodulesConfig.fetchSubmodules")
InsecureSsl = jResp.IntOf("buildBatches[i].source.insecureSsl")
sourceLocation = *jResp.StringOf("buildBatches[i].source.location")
ReportBuildStatus = jResp.IntOf("buildBatches[i].source.reportBuildStatus")
SourceIdentifier = *jResp.StringOf("buildBatches[i].source.sourceIdentifier")
sourceType = *jResp.StringOf("buildBatches[i].source.type")
sourceVersion = *jResp.StringOf("buildBatches[i].sourceVersion")
startTime = jResp.IntOf("buildBatches[i].startTime")
VpcId = *jResp.StringOf("buildBatches[i].vpcConfig.vpcId")
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].buildBatchConfig.restrictions.computeTypesAllowed")
for j < count_j {
jResp.SetJ(j)
strVal = *jResp.StringOf("buildBatches[i].buildBatchConfig.restrictions.computeTypesAllowed[j]")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].buildGroups")
for j < count_j {
jResp.SetJ(j)
Arn = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.arn")
BuildStatus = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.buildStatus")
Identifier = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.identifier")
PrimaryArtifactLocation = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.location")
PrimaryArtifactType = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.type")
RequestedOn = jResp.IntOf("buildBatches[i].buildGroups[j].currentBuildSummary.requestedOn")
identifier = *jResp.StringOf("buildBatches[i].buildGroups[j].identifier")
ignoreFailure = jResp.IntOf("buildBatches[i].buildGroups[j].ignoreFailure")
k = 0
count_k = jResp.SizeOfArray("buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts")
for k < count_k {
jResp.SetK(k)
identifier = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].identifier")
location = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].location")
v_type = *jResp.StringOf("buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].type")
k = k + 1
}
k = 0
count_k = jResp.SizeOfArray("buildBatches[i].buildGroups[j].dependsOn")
for k < count_k {
jResp.SetK(k)
strVal = *jResp.StringOf("buildBatches[i].buildGroups[j].dependsOn[k]")
k = k + 1
}
k = 0
count_k = jResp.SizeOfArray("buildBatches[i].buildGroups[j].priorBuildSummaryList")
for k < count_k {
jResp.SetK(k)
arn = *jResp.StringOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k].arn")
buildStatus = *jResp.StringOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k].buildStatus")
primaryArtifactIdentifier = *jResp.StringOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.identifier")
primaryArtifactLocation = *jResp.StringOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.location")
primaryArtifactType = *jResp.StringOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.type")
requestedOn = jResp.IntOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k].requestedOn")
json1 := jResp.ObjectOf("buildBatches[i].buildGroups[j].priorBuildSummaryList[k]")
i1 = 0
count_i1 = json1.SizeOfArray("secondaryArtifacts")
for i1 < count_i1 {
json1.SetI(i1)
identifier = *json1.StringOf("secondaryArtifacts[i].identifier")
location = *json1.StringOf("secondaryArtifacts[i].location")
v_type = *json1.StringOf("secondaryArtifacts[i].type")
i1 = i1 + 1
}
json1.DisposeJsonObject()
k = k + 1
}
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].cache.modes")
for j < count_j {
jResp.SetJ(j)
strVal = *jResp.StringOf("buildBatches[i].cache.modes[j]")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].environment.environmentVariables")
for j < count_j {
jResp.SetJ(j)
name = *jResp.StringOf("buildBatches[i].environment.environmentVariables[j].name")
v_type = *jResp.StringOf("buildBatches[i].environment.environmentVariables[j].type")
value = *jResp.StringOf("buildBatches[i].environment.environmentVariables[j].value")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].fileSystemLocations")
for j < count_j {
jResp.SetJ(j)
identifier = *jResp.StringOf("buildBatches[i].fileSystemLocations[j].identifier")
location = *jResp.StringOf("buildBatches[i].fileSystemLocations[j].location")
mountOptions = *jResp.StringOf("buildBatches[i].fileSystemLocations[j].mountOptions")
mountPoint = *jResp.StringOf("buildBatches[i].fileSystemLocations[j].mountPoint")
v_type = *jResp.StringOf("buildBatches[i].fileSystemLocations[j].type")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].phases")
for j < count_j {
jResp.SetJ(j)
durationInSeconds = jResp.IntOf("buildBatches[i].phases[j].durationInSeconds")
endTime = jResp.IntOf("buildBatches[i].phases[j].endTime")
phaseStatus = *jResp.StringOf("buildBatches[i].phases[j].phaseStatus")
phaseType = *jResp.StringOf("buildBatches[i].phases[j].phaseType")
startTime = jResp.IntOf("buildBatches[i].phases[j].startTime")
k = 0
count_k = jResp.SizeOfArray("buildBatches[i].phases[j].contexts")
for k < count_k {
jResp.SetK(k)
message = *jResp.StringOf("buildBatches[i].phases[j].contexts[k].message")
statusCode = *jResp.StringOf("buildBatches[i].phases[j].contexts[k].statusCode")
k = k + 1
}
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].secondaryArtifacts")
for j < count_j {
jResp.SetJ(j)
artifactIdentifier = *jResp.StringOf("buildBatches[i].secondaryArtifacts[j].artifactIdentifier")
bucketOwnerAccess = *jResp.StringOf("buildBatches[i].secondaryArtifacts[j].bucketOwnerAccess")
encryptionDisabled = jResp.IntOf("buildBatches[i].secondaryArtifacts[j].encryptionDisabled")
location = *jResp.StringOf("buildBatches[i].secondaryArtifacts[j].location")
md5sum = *jResp.StringOf("buildBatches[i].secondaryArtifacts[j].md5sum")
overrideArtifactName = jResp.IntOf("buildBatches[i].secondaryArtifacts[j].overrideArtifactName")
sha256sum = *jResp.StringOf("buildBatches[i].secondaryArtifacts[j].sha256sum")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].secondarySources")
for j < count_j {
jResp.SetJ(j)
authResource = *jResp.StringOf("buildBatches[i].secondarySources[j].auth.resource")
authType = *jResp.StringOf("buildBatches[i].secondarySources[j].auth.type")
buildspec = *jResp.StringOf("buildBatches[i].secondarySources[j].buildspec")
buildStatusConfigContext = *jResp.StringOf("buildBatches[i].secondarySources[j].buildStatusConfig.context")
buildStatusConfigTargetUrl = *jResp.StringOf("buildBatches[i].secondarySources[j].buildStatusConfig.targetUrl")
gitCloneDepth = jResp.IntOf("buildBatches[i].secondarySources[j].gitCloneDepth")
gitSubmodulesConfigFetchSubmodules = jResp.IntOf("buildBatches[i].secondarySources[j].gitSubmodulesConfig.fetchSubmodules")
insecureSsl = jResp.IntOf("buildBatches[i].secondarySources[j].insecureSsl")
location = *jResp.StringOf("buildBatches[i].secondarySources[j].location")
reportBuildStatus = jResp.IntOf("buildBatches[i].secondarySources[j].reportBuildStatus")
sourceIdentifier = *jResp.StringOf("buildBatches[i].secondarySources[j].sourceIdentifier")
v_type = *jResp.StringOf("buildBatches[i].secondarySources[j].type")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].secondarySourceVersions")
for j < count_j {
jResp.SetJ(j)
sourceIdentifier = *jResp.StringOf("buildBatches[i].secondarySourceVersions[j].sourceIdentifier")
sourceVersion = *jResp.StringOf("buildBatches[i].secondarySourceVersions[j].sourceVersion")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].vpcConfig.securityGroupIds")
for j < count_j {
jResp.SetJ(j)
strVal = *jResp.StringOf("buildBatches[i].vpcConfig.securityGroupIds[j]")
j = j + 1
}
j = 0
count_j = jResp.SizeOfArray("buildBatches[i].vpcConfig.subnets")
for j < count_j {
jResp.SetJ(j)
strVal = *jResp.StringOf("buildBatches[i].vpcConfig.subnets[j]")
j = j + 1
}
i = i + 1
}
i = 0
count_i = jResp.SizeOfArray("buildBatchesNotFound")
for i < count_i {
jResp.SetI(i)
strVal = *jResp.StringOf("buildBatchesNotFound[i]")
i = 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"
// ]
// }
rest.DisposeRest()
authAws.DisposeAuthAws()
json.DisposeJsonObject()
sbRequestBody.DisposeStringBuilder()
sbResponseBody.DisposeStringBuilder()
jResp.DisposeJsonObject()