RetryBuildBatch C Example
#include <C_CkRest.h>
#include <C_CkAuthAws.h>
#include <C_CkJsonObject.h>
#include <C_CkStringBuilder.h>
void ChilkatSample(void)
{
HCkRest rest;
BOOL success;
HCkAuthAws authAws;
HCkJsonObject json;
HCkStringBuilder sbRequestBody;
HCkStringBuilder sbResponseBody;
int respStatusCode;
HCkJsonObject jResp;
const char *strVal;
const char *currentBuildSummaryArn;
const char *BuildStatus;
const char *Identifier;
const char *PrimaryArtifactLocation;
const char *PrimaryArtifactType;
int RequestedOn;
const char *identifier;
int ignoreFailure;
int j;
int count_j;
const char *location;
const char *v_type;
const char *arn;
const char *buildStatus;
const char *primaryArtifactIdentifier;
const char *primaryArtifactLocation;
const char *primaryArtifactType;
int requestedOn;
int k;
int count_k;
const char *name;
const char *value;
const char *mountOptions;
const char *mountPoint;
int durationInSeconds;
int endTime;
const char *phaseStatus;
const char *phaseType;
int startTime;
const char *message;
const char *statusCode;
const char *artifactIdentifier;
const char *bucketOwnerAccess;
int encryptionDisabled;
const char *md5sum;
int overrideArtifactName;
const char *sha256sum;
const char *authResource;
const char *authType;
const char *buildspec;
const char *buildStatusConfigContext;
const char *buildStatusConfigTargetUrl;
int gitCloneDepth;
int gitSubmodulesConfigFetchSubmodules;
int insecureSsl;
int reportBuildStatus;
const char *sourceIdentifier;
const char *sourceVersion;
const char *Arn;
const char *ArtifactIdentifier;
const char *BucketOwnerAccess;
int EncryptionDisabled;
const char *Location;
const char *Md5sum;
int OverrideArtifactName;
const char *Sha256sum;
const char *BatchReportMode;
int CombineArtifacts;
int MaximumBuildsAllowed;
const char *ServiceRole;
int TimeoutInMins;
int BuildBatchNumber;
const char *BuildBatchStatus;
int BuildTimeoutInMinutes;
const char *CacheLocation;
const char *v_Type;
int Complete;
const char *CurrentPhase;
int DebugSessionEnabled;
const char *EncryptionKey;
int EndTime;
const char *Certificate;
const char *ComputeType;
const char *Image;
const char *ImagePullCredentialsType;
int PrivilegedMode;
const char *Credential;
const char *CredentialProvider;
const char *EnvironmentType;
const char *Id;
const char *Initiator;
const char *GroupName;
const char *Status;
const char *StreamName;
const char *S3LogsBucketOwnerAccess;
int S3LogsEncryptionDisabled;
const char *S3LogsLocation;
const char *S3LogsStatus;
const char *ProjectName;
int QueuedTimeoutInMinutes;
const char *ResolvedSourceVersion;
const char *buildBatchServiceRole;
const char *Resource;
const char *AuthType;
const char *Buildspec;
const char *Context;
const char *TargetUrl;
int GitCloneDepth;
int FetchSubmodules;
int InsecureSsl;
const char *SourceLocation;
int ReportBuildStatus;
const char *SourceIdentifier;
const char *SourceType;
const char *SourceVersion;
int StartTime;
const char *VpcId;
int i;
int count_i;
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
rest = CkRest_Create();
authAws = CkAuthAws_Create();
CkAuthAws_putAccessKey(authAws,"AWS_ACCESS_KEY");
CkAuthAws_putSecretKey(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_putRegion(authAws,"us-west-2");
CkAuthAws_putServiceName(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.
success = CkRest_Connect(rest,"codebuild.us-west-2.amazonaws.com",443,TRUE,TRUE);
if (success != TRUE) {
printf("ConnectFailReason: %d\n",CkRest_getConnectFailReason(rest));
printf("%s\n",CkRest_lastErrorText(rest));
CkRest_Dispose(rest);
CkAuthAws_Dispose(authAws);
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 = CkJsonObject_Create();
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");
sbRequestBody = CkStringBuilder_Create();
CkJsonObject_EmitSb(json,sbRequestBody);
sbResponseBody = CkStringBuilder_Create();
success = CkRest_FullRequestSb(rest,"POST","/",sbRequestBody,sbResponseBody);
if (success != TRUE) {
printf("%s\n",CkRest_lastErrorText(rest));
CkRest_Dispose(rest);
CkAuthAws_Dispose(authAws);
CkJsonObject_Dispose(json);
CkStringBuilder_Dispose(sbRequestBody);
CkStringBuilder_Dispose(sbResponseBody);
return;
}
respStatusCode = CkRest_getResponseStatusCode(rest);
printf("response status code = %d\n",respStatusCode);
if (respStatusCode != 200) {
printf("Response Header:\n");
printf("%s\n",CkRest_responseHeader(rest));
printf("Response Body:\n");
printf("%s\n",CkStringBuilder_getAsString(sbResponseBody));
CkRest_Dispose(rest);
CkAuthAws_Dispose(authAws);
CkJsonObject_Dispose(json);
CkStringBuilder_Dispose(sbRequestBody);
CkStringBuilder_Dispose(sbResponseBody);
return;
}
jResp = CkJsonObject_Create();
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
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
// See this example explaining how this memory should be used: const char * functions.
Arn = CkJsonObject_stringOf(jResp,"buildBatch.arn");
ArtifactIdentifier = CkJsonObject_stringOf(jResp,"buildBatch.artifacts.artifactIdentifier");
BucketOwnerAccess = CkJsonObject_stringOf(jResp,"buildBatch.artifacts.bucketOwnerAccess");
EncryptionDisabled = CkJsonObject_IntOf(jResp,"buildBatch.artifacts.encryptionDisabled");
Location = CkJsonObject_stringOf(jResp,"buildBatch.artifacts.location");
Md5sum = CkJsonObject_stringOf(jResp,"buildBatch.artifacts.md5sum");
OverrideArtifactName = CkJsonObject_IntOf(jResp,"buildBatch.artifacts.overrideArtifactName");
Sha256sum = CkJsonObject_stringOf(jResp,"buildBatch.artifacts.sha256sum");
BatchReportMode = CkJsonObject_stringOf(jResp,"buildBatch.buildBatchConfig.batchReportMode");
CombineArtifacts = CkJsonObject_IntOf(jResp,"buildBatch.buildBatchConfig.combineArtifacts");
MaximumBuildsAllowed = CkJsonObject_IntOf(jResp,"buildBatch.buildBatchConfig.restrictions.maximumBuildsAllowed");
ServiceRole = CkJsonObject_stringOf(jResp,"buildBatch.buildBatchConfig.serviceRole");
TimeoutInMins = CkJsonObject_IntOf(jResp,"buildBatch.buildBatchConfig.timeoutInMins");
BuildBatchNumber = CkJsonObject_IntOf(jResp,"buildBatch.buildBatchNumber");
BuildBatchStatus = CkJsonObject_stringOf(jResp,"buildBatch.buildBatchStatus");
BuildTimeoutInMinutes = CkJsonObject_IntOf(jResp,"buildBatch.buildTimeoutInMinutes");
CacheLocation = CkJsonObject_stringOf(jResp,"buildBatch.cache.location");
v_Type = CkJsonObject_stringOf(jResp,"buildBatch.cache.type");
Complete = CkJsonObject_IntOf(jResp,"buildBatch.complete");
CurrentPhase = CkJsonObject_stringOf(jResp,"buildBatch.currentPhase");
DebugSessionEnabled = CkJsonObject_IntOf(jResp,"buildBatch.debugSessionEnabled");
EncryptionKey = CkJsonObject_stringOf(jResp,"buildBatch.encryptionKey");
EndTime = CkJsonObject_IntOf(jResp,"buildBatch.endTime");
Certificate = CkJsonObject_stringOf(jResp,"buildBatch.environment.certificate");
ComputeType = CkJsonObject_stringOf(jResp,"buildBatch.environment.computeType");
Image = CkJsonObject_stringOf(jResp,"buildBatch.environment.image");
ImagePullCredentialsType = CkJsonObject_stringOf(jResp,"buildBatch.environment.imagePullCredentialsType");
PrivilegedMode = CkJsonObject_IntOf(jResp,"buildBatch.environment.privilegedMode");
Credential = CkJsonObject_stringOf(jResp,"buildBatch.environment.registryCredential.credential");
CredentialProvider = CkJsonObject_stringOf(jResp,"buildBatch.environment.registryCredential.credentialProvider");
EnvironmentType = CkJsonObject_stringOf(jResp,"buildBatch.environment.type");
Id = CkJsonObject_stringOf(jResp,"buildBatch.id");
Initiator = CkJsonObject_stringOf(jResp,"buildBatch.initiator");
GroupName = CkJsonObject_stringOf(jResp,"buildBatch.logConfig.cloudWatchLogs.groupName");
Status = CkJsonObject_stringOf(jResp,"buildBatch.logConfig.cloudWatchLogs.status");
StreamName = CkJsonObject_stringOf(jResp,"buildBatch.logConfig.cloudWatchLogs.streamName");
S3LogsBucketOwnerAccess = CkJsonObject_stringOf(jResp,"buildBatch.logConfig.s3Logs.bucketOwnerAccess");
S3LogsEncryptionDisabled = CkJsonObject_IntOf(jResp,"buildBatch.logConfig.s3Logs.encryptionDisabled");
S3LogsLocation = CkJsonObject_stringOf(jResp,"buildBatch.logConfig.s3Logs.location");
S3LogsStatus = CkJsonObject_stringOf(jResp,"buildBatch.logConfig.s3Logs.status");
ProjectName = CkJsonObject_stringOf(jResp,"buildBatch.projectName");
QueuedTimeoutInMinutes = CkJsonObject_IntOf(jResp,"buildBatch.queuedTimeoutInMinutes");
ResolvedSourceVersion = CkJsonObject_stringOf(jResp,"buildBatch.resolvedSourceVersion");
buildBatchServiceRole = CkJsonObject_stringOf(jResp,"buildBatch.serviceRole");
Resource = CkJsonObject_stringOf(jResp,"buildBatch.source.auth.resource");
AuthType = CkJsonObject_stringOf(jResp,"buildBatch.source.auth.type");
Buildspec = CkJsonObject_stringOf(jResp,"buildBatch.source.buildspec");
Context = CkJsonObject_stringOf(jResp,"buildBatch.source.buildStatusConfig.context");
TargetUrl = CkJsonObject_stringOf(jResp,"buildBatch.source.buildStatusConfig.targetUrl");
GitCloneDepth = CkJsonObject_IntOf(jResp,"buildBatch.source.gitCloneDepth");
FetchSubmodules = CkJsonObject_IntOf(jResp,"buildBatch.source.gitSubmodulesConfig.fetchSubmodules");
InsecureSsl = CkJsonObject_IntOf(jResp,"buildBatch.source.insecureSsl");
SourceLocation = CkJsonObject_stringOf(jResp,"buildBatch.source.location");
ReportBuildStatus = CkJsonObject_IntOf(jResp,"buildBatch.source.reportBuildStatus");
SourceIdentifier = CkJsonObject_stringOf(jResp,"buildBatch.source.sourceIdentifier");
SourceType = CkJsonObject_stringOf(jResp,"buildBatch.source.type");
SourceVersion = CkJsonObject_stringOf(jResp,"buildBatch.sourceVersion");
StartTime = CkJsonObject_IntOf(jResp,"buildBatch.startTime");
VpcId = CkJsonObject_stringOf(jResp,"buildBatch.vpcConfig.vpcId");
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.buildBatchConfig.restrictions.computeTypesAllowed");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
strVal = CkJsonObject_stringOf(jResp,"buildBatch.buildBatchConfig.restrictions.computeTypesAllowed[i]");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.buildGroups");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
currentBuildSummaryArn = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.arn");
BuildStatus = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.buildStatus");
Identifier = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.identifier");
PrimaryArtifactLocation = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.location");
PrimaryArtifactType = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.type");
RequestedOn = CkJsonObject_IntOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.requestedOn");
identifier = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].identifier");
ignoreFailure = CkJsonObject_IntOf(jResp,"buildBatch.buildGroups[i].ignoreFailure");
j = 0;
count_j = CkJsonObject_SizeOfArray(jResp,"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts");
while (j < count_j) {
CkJsonObject_putJ(jResp,j);
identifier = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].identifier");
location = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].location");
v_type = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].type");
j = j + 1;
}
j = 0;
count_j = CkJsonObject_SizeOfArray(jResp,"buildBatch.buildGroups[i].dependsOn");
while (j < count_j) {
CkJsonObject_putJ(jResp,j);
strVal = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].dependsOn[j]");
j = j + 1;
}
j = 0;
count_j = CkJsonObject_SizeOfArray(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList");
while (j < count_j) {
CkJsonObject_putJ(jResp,j);
arn = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].arn");
buildStatus = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].buildStatus");
primaryArtifactIdentifier = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.identifier");
primaryArtifactLocation = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.location");
primaryArtifactType = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.type");
requestedOn = CkJsonObject_IntOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].requestedOn");
k = 0;
count_k = CkJsonObject_SizeOfArray(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts");
while (k < count_k) {
CkJsonObject_putK(jResp,k);
identifier = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].identifier");
location = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].location");
v_type = CkJsonObject_stringOf(jResp,"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].type");
k = k + 1;
}
j = j + 1;
}
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.cache.modes");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
strVal = CkJsonObject_stringOf(jResp,"buildBatch.cache.modes[i]");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.environment.environmentVariables");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
name = CkJsonObject_stringOf(jResp,"buildBatch.environment.environmentVariables[i].name");
v_type = CkJsonObject_stringOf(jResp,"buildBatch.environment.environmentVariables[i].type");
value = CkJsonObject_stringOf(jResp,"buildBatch.environment.environmentVariables[i].value");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.fileSystemLocations");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
identifier = CkJsonObject_stringOf(jResp,"buildBatch.fileSystemLocations[i].identifier");
location = CkJsonObject_stringOf(jResp,"buildBatch.fileSystemLocations[i].location");
mountOptions = CkJsonObject_stringOf(jResp,"buildBatch.fileSystemLocations[i].mountOptions");
mountPoint = CkJsonObject_stringOf(jResp,"buildBatch.fileSystemLocations[i].mountPoint");
v_type = CkJsonObject_stringOf(jResp,"buildBatch.fileSystemLocations[i].type");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.phases");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
durationInSeconds = CkJsonObject_IntOf(jResp,"buildBatch.phases[i].durationInSeconds");
endTime = CkJsonObject_IntOf(jResp,"buildBatch.phases[i].endTime");
phaseStatus = CkJsonObject_stringOf(jResp,"buildBatch.phases[i].phaseStatus");
phaseType = CkJsonObject_stringOf(jResp,"buildBatch.phases[i].phaseType");
startTime = CkJsonObject_IntOf(jResp,"buildBatch.phases[i].startTime");
j = 0;
count_j = CkJsonObject_SizeOfArray(jResp,"buildBatch.phases[i].contexts");
while (j < count_j) {
CkJsonObject_putJ(jResp,j);
message = CkJsonObject_stringOf(jResp,"buildBatch.phases[i].contexts[j].message");
statusCode = CkJsonObject_stringOf(jResp,"buildBatch.phases[i].contexts[j].statusCode");
j = j + 1;
}
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.secondaryArtifacts");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
artifactIdentifier = CkJsonObject_stringOf(jResp,"buildBatch.secondaryArtifacts[i].artifactIdentifier");
bucketOwnerAccess = CkJsonObject_stringOf(jResp,"buildBatch.secondaryArtifacts[i].bucketOwnerAccess");
encryptionDisabled = CkJsonObject_IntOf(jResp,"buildBatch.secondaryArtifacts[i].encryptionDisabled");
location = CkJsonObject_stringOf(jResp,"buildBatch.secondaryArtifacts[i].location");
md5sum = CkJsonObject_stringOf(jResp,"buildBatch.secondaryArtifacts[i].md5sum");
overrideArtifactName = CkJsonObject_IntOf(jResp,"buildBatch.secondaryArtifacts[i].overrideArtifactName");
sha256sum = CkJsonObject_stringOf(jResp,"buildBatch.secondaryArtifacts[i].sha256sum");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.secondarySources");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
authResource = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].auth.resource");
authType = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].auth.type");
buildspec = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].buildspec");
buildStatusConfigContext = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].buildStatusConfig.context");
buildStatusConfigTargetUrl = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].buildStatusConfig.targetUrl");
gitCloneDepth = CkJsonObject_IntOf(jResp,"buildBatch.secondarySources[i].gitCloneDepth");
gitSubmodulesConfigFetchSubmodules = CkJsonObject_IntOf(jResp,"buildBatch.secondarySources[i].gitSubmodulesConfig.fetchSubmodules");
insecureSsl = CkJsonObject_IntOf(jResp,"buildBatch.secondarySources[i].insecureSsl");
location = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].location");
reportBuildStatus = CkJsonObject_IntOf(jResp,"buildBatch.secondarySources[i].reportBuildStatus");
sourceIdentifier = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].sourceIdentifier");
v_type = CkJsonObject_stringOf(jResp,"buildBatch.secondarySources[i].type");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.secondarySourceVersions");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
sourceIdentifier = CkJsonObject_stringOf(jResp,"buildBatch.secondarySourceVersions[i].sourceIdentifier");
sourceVersion = CkJsonObject_stringOf(jResp,"buildBatch.secondarySourceVersions[i].sourceVersion");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.vpcConfig.securityGroupIds");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
strVal = CkJsonObject_stringOf(jResp,"buildBatch.vpcConfig.securityGroupIds[i]");
i = i + 1;
}
i = 0;
count_i = CkJsonObject_SizeOfArray(jResp,"buildBatch.vpcConfig.subnets");
while (i < count_i) {
CkJsonObject_putI(jResp,i);
strVal = CkJsonObject_stringOf(jResp,"buildBatch.vpcConfig.subnets[i]");
i = 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"
// }
// }
// }
CkRest_Dispose(rest);
CkAuthAws_Dispose(authAws);
CkJsonObject_Dispose(json);
CkStringBuilder_Dispose(sbRequestBody);
CkStringBuilder_Dispose(sbResponseBody);
CkJsonObject_Dispose(jResp);
}