Chilkat Online Tools

RetryBuildBatch Objective-C Example

AWS CodeBuild

#import <CkoRest.h>
#import <CkoAuthAws.h>
#import <CkoJsonObject.h>
#import <CkoStringBuilder.h>
#import <NSString.h>

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

CkoRest *rest = [[CkoRest alloc] init];
BOOL success;

CkoAuthAws *authAws = [[CkoAuthAws alloc] init];
authAws.AccessKey = @"AWS_ACCESS_KEY";
authAws.SecretKey = @"AWS_SECRET_KEY";

// Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
authAws.Region = @"us-west-2";
authAws.ServiceName = @"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" port: [NSNumber numberWithInt: 443] tls: YES autoReconnect: YES];
if (success != YES) {
    NSLog(@"%@%d",@"ConnectFailReason: ",[rest.ConnectFailReason intValue]);
    NSLog(@"%@",rest.LastErrorText);
    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

CkoJsonObject *json = [[CkoJsonObject alloc] init];
[json UpdateString: @"id" value: @"string"];
[json UpdateString: @"idempotencyToken" value: @"string"];
[json UpdateString: @"retryType" value: @"string"];

// The JSON request body created by the above code:

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

[rest AddHeader: @"Content-Type" value: @"application/x-amz-json-1.1"];
[rest AddHeader: @"X-Amz-Target" value: @"CodeBuild_20161006.RetryBuildBatch"];

CkoStringBuilder *sbRequestBody = [[CkoStringBuilder alloc] init];
[json EmitSb: sbRequestBody];
CkoStringBuilder *sbResponseBody = [[CkoStringBuilder alloc] init];
success = [rest FullRequestSb: @"POST" uriPath: @"/" requestBody: sbRequestBody responseBody: sbResponseBody];
if (success != YES) {
    NSLog(@"%@",rest.LastErrorText);
    return;
}

int respStatusCode = [rest.ResponseStatusCode intValue];
NSLog(@"%@%d",@"response status code = ",respStatusCode);
if (respStatusCode != 200) {
    NSLog(@"%@",@"Response Header:");
    NSLog(@"%@",rest.ResponseHeader);
    NSLog(@"%@",@"Response Body:");
    NSLog(@"%@",[sbResponseBody GetAsString]);
    return;
}

CkoJsonObject *jResp = [[CkoJsonObject alloc] init];
[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

NSString *strVal = 0;
NSString *currentBuildSummaryArn = 0;
NSString *BuildStatus = 0;
NSString *Identifier = 0;
NSString *PrimaryArtifactLocation = 0;
NSString *PrimaryArtifactType = 0;
int RequestedOn;
NSString *identifier = 0;
int ignoreFailure;
int j;
int count_j;
NSString *location = 0;
NSString *v_type = 0;
NSString *arn = 0;
NSString *buildStatus = 0;
NSString *primaryArtifactIdentifier = 0;
NSString *primaryArtifactLocation = 0;
NSString *primaryArtifactType = 0;
int requestedOn;
int k;
int count_k;
NSString *name = 0;
NSString *value = 0;
NSString *mountOptions = 0;
NSString *mountPoint = 0;
int durationInSeconds;
int endTime;
NSString *phaseStatus = 0;
NSString *phaseType = 0;
int startTime;
NSString *message = 0;
NSString *statusCode = 0;
NSString *artifactIdentifier = 0;
NSString *bucketOwnerAccess = 0;
int encryptionDisabled;
NSString *md5sum = 0;
int overrideArtifactName;
NSString *sha256sum = 0;
NSString *authResource = 0;
NSString *authType = 0;
NSString *buildspec = 0;
NSString *buildStatusConfigContext = 0;
NSString *buildStatusConfigTargetUrl = 0;
int gitCloneDepth;
int gitSubmodulesConfigFetchSubmodules;
int insecureSsl;
int reportBuildStatus;
NSString *sourceIdentifier = 0;
NSString *sourceVersion = 0;

NSString *Arn = [jResp StringOf: @"buildBatch.arn"];
NSString *ArtifactIdentifier = [jResp StringOf: @"buildBatch.artifacts.artifactIdentifier"];
NSString *BucketOwnerAccess = [jResp StringOf: @"buildBatch.artifacts.bucketOwnerAccess"];
int EncryptionDisabled = [[jResp IntOf: @"buildBatch.artifacts.encryptionDisabled"] intValue];
NSString *Location = [jResp StringOf: @"buildBatch.artifacts.location"];
NSString *Md5sum = [jResp StringOf: @"buildBatch.artifacts.md5sum"];
int OverrideArtifactName = [[jResp IntOf: @"buildBatch.artifacts.overrideArtifactName"] intValue];
NSString *Sha256sum = [jResp StringOf: @"buildBatch.artifacts.sha256sum"];
NSString *BatchReportMode = [jResp StringOf: @"buildBatch.buildBatchConfig.batchReportMode"];
int CombineArtifacts = [[jResp IntOf: @"buildBatch.buildBatchConfig.combineArtifacts"] intValue];
int MaximumBuildsAllowed = [[jResp IntOf: @"buildBatch.buildBatchConfig.restrictions.maximumBuildsAllowed"] intValue];
NSString *ServiceRole = [jResp StringOf: @"buildBatch.buildBatchConfig.serviceRole"];
int TimeoutInMins = [[jResp IntOf: @"buildBatch.buildBatchConfig.timeoutInMins"] intValue];
int BuildBatchNumber = [[jResp IntOf: @"buildBatch.buildBatchNumber"] intValue];
NSString *BuildBatchStatus = [jResp StringOf: @"buildBatch.buildBatchStatus"];
int BuildTimeoutInMinutes = [[jResp IntOf: @"buildBatch.buildTimeoutInMinutes"] intValue];
NSString *CacheLocation = [jResp StringOf: @"buildBatch.cache.location"];
NSString *v_Type = [jResp StringOf: @"buildBatch.cache.type"];
int Complete = [[jResp IntOf: @"buildBatch.complete"] intValue];
NSString *CurrentPhase = [jResp StringOf: @"buildBatch.currentPhase"];
int DebugSessionEnabled = [[jResp IntOf: @"buildBatch.debugSessionEnabled"] intValue];
NSString *EncryptionKey = [jResp StringOf: @"buildBatch.encryptionKey"];
int EndTime = [[jResp IntOf: @"buildBatch.endTime"] intValue];
NSString *Certificate = [jResp StringOf: @"buildBatch.environment.certificate"];
NSString *ComputeType = [jResp StringOf: @"buildBatch.environment.computeType"];
NSString *Image = [jResp StringOf: @"buildBatch.environment.image"];
NSString *ImagePullCredentialsType = [jResp StringOf: @"buildBatch.environment.imagePullCredentialsType"];
int PrivilegedMode = [[jResp IntOf: @"buildBatch.environment.privilegedMode"] intValue];
NSString *Credential = [jResp StringOf: @"buildBatch.environment.registryCredential.credential"];
NSString *CredentialProvider = [jResp StringOf: @"buildBatch.environment.registryCredential.credentialProvider"];
NSString *EnvironmentType = [jResp StringOf: @"buildBatch.environment.type"];
NSString *Id = [jResp StringOf: @"buildBatch.id"];
NSString *Initiator = [jResp StringOf: @"buildBatch.initiator"];
NSString *GroupName = [jResp StringOf: @"buildBatch.logConfig.cloudWatchLogs.groupName"];
NSString *Status = [jResp StringOf: @"buildBatch.logConfig.cloudWatchLogs.status"];
NSString *StreamName = [jResp StringOf: @"buildBatch.logConfig.cloudWatchLogs.streamName"];
NSString *S3LogsBucketOwnerAccess = [jResp StringOf: @"buildBatch.logConfig.s3Logs.bucketOwnerAccess"];
int S3LogsEncryptionDisabled = [[jResp IntOf: @"buildBatch.logConfig.s3Logs.encryptionDisabled"] intValue];
NSString *S3LogsLocation = [jResp StringOf: @"buildBatch.logConfig.s3Logs.location"];
NSString *S3LogsStatus = [jResp StringOf: @"buildBatch.logConfig.s3Logs.status"];
NSString *ProjectName = [jResp StringOf: @"buildBatch.projectName"];
int QueuedTimeoutInMinutes = [[jResp IntOf: @"buildBatch.queuedTimeoutInMinutes"] intValue];
NSString *ResolvedSourceVersion = [jResp StringOf: @"buildBatch.resolvedSourceVersion"];
NSString *buildBatchServiceRole = [jResp StringOf: @"buildBatch.serviceRole"];
NSString *Resource = [jResp StringOf: @"buildBatch.source.auth.resource"];
NSString *AuthType = [jResp StringOf: @"buildBatch.source.auth.type"];
NSString *Buildspec = [jResp StringOf: @"buildBatch.source.buildspec"];
NSString *Context = [jResp StringOf: @"buildBatch.source.buildStatusConfig.context"];
NSString *TargetUrl = [jResp StringOf: @"buildBatch.source.buildStatusConfig.targetUrl"];
int GitCloneDepth = [[jResp IntOf: @"buildBatch.source.gitCloneDepth"] intValue];
int FetchSubmodules = [[jResp IntOf: @"buildBatch.source.gitSubmodulesConfig.fetchSubmodules"] intValue];
int InsecureSsl = [[jResp IntOf: @"buildBatch.source.insecureSsl"] intValue];
NSString *SourceLocation = [jResp StringOf: @"buildBatch.source.location"];
int ReportBuildStatus = [[jResp IntOf: @"buildBatch.source.reportBuildStatus"] intValue];
NSString *SourceIdentifier = [jResp StringOf: @"buildBatch.source.sourceIdentifier"];
NSString *SourceType = [jResp StringOf: @"buildBatch.source.type"];
NSString *SourceVersion = [jResp StringOf: @"buildBatch.sourceVersion"];
int StartTime = [[jResp IntOf: @"buildBatch.startTime"] intValue];
NSString *VpcId = [jResp StringOf: @"buildBatch.vpcConfig.vpcId"];
int i = 0;
int count_i = [[jResp SizeOfArray: @"buildBatch.buildBatchConfig.restrictions.computeTypesAllowed"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    strVal = [jResp StringOf: @"buildBatch.buildBatchConfig.restrictions.computeTypesAllowed[i]"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.buildGroups"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    currentBuildSummaryArn = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.arn"];
    BuildStatus = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.buildStatus"];
    Identifier = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.identifier"];
    PrimaryArtifactLocation = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.location"];
    PrimaryArtifactType = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.primaryArtifact.type"];
    RequestedOn = [[jResp IntOf: @"buildBatch.buildGroups[i].currentBuildSummary.requestedOn"] intValue];
    identifier = [jResp StringOf: @"buildBatch.buildGroups[i].identifier"];
    ignoreFailure = [[jResp IntOf: @"buildBatch.buildGroups[i].ignoreFailure"] intValue];
    j = 0;
    count_j = [[jResp SizeOfArray: @"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts"] intValue];
    while (j < count_j) {
        jResp.J = [NSNumber numberWithInt: j];
        identifier = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].identifier"];
        location = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].location"];
        v_type = [jResp StringOf: @"buildBatch.buildGroups[i].currentBuildSummary.secondaryArtifacts[j].type"];
        j = j + 1;
    }

    j = 0;
    count_j = [[jResp SizeOfArray: @"buildBatch.buildGroups[i].dependsOn"] intValue];
    while (j < count_j) {
        jResp.J = [NSNumber numberWithInt: j];
        strVal = [jResp StringOf: @"buildBatch.buildGroups[i].dependsOn[j]"];
        j = j + 1;
    }

    j = 0;
    count_j = [[jResp SizeOfArray: @"buildBatch.buildGroups[i].priorBuildSummaryList"] intValue];
    while (j < count_j) {
        jResp.J = [NSNumber numberWithInt: j];
        arn = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].arn"];
        buildStatus = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].buildStatus"];
        primaryArtifactIdentifier = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.identifier"];
        primaryArtifactLocation = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.location"];
        primaryArtifactType = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].primaryArtifact.type"];
        requestedOn = [[jResp IntOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].requestedOn"] intValue];
        k = 0;
        count_k = [[jResp SizeOfArray: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts"] intValue];
        while (k < count_k) {
            jResp.K = [NSNumber numberWithInt: k];
            identifier = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].identifier"];
            location = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].location"];
            v_type = [jResp StringOf: @"buildBatch.buildGroups[i].priorBuildSummaryList[j].secondaryArtifacts[k].type"];
            k = k + 1;
        }

        j = j + 1;
    }

    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.cache.modes"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    strVal = [jResp StringOf: @"buildBatch.cache.modes[i]"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.environment.environmentVariables"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    name = [jResp StringOf: @"buildBatch.environment.environmentVariables[i].name"];
    v_type = [jResp StringOf: @"buildBatch.environment.environmentVariables[i].type"];
    value = [jResp StringOf: @"buildBatch.environment.environmentVariables[i].value"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.fileSystemLocations"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    identifier = [jResp StringOf: @"buildBatch.fileSystemLocations[i].identifier"];
    location = [jResp StringOf: @"buildBatch.fileSystemLocations[i].location"];
    mountOptions = [jResp StringOf: @"buildBatch.fileSystemLocations[i].mountOptions"];
    mountPoint = [jResp StringOf: @"buildBatch.fileSystemLocations[i].mountPoint"];
    v_type = [jResp StringOf: @"buildBatch.fileSystemLocations[i].type"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.phases"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    durationInSeconds = [[jResp IntOf: @"buildBatch.phases[i].durationInSeconds"] intValue];
    endTime = [[jResp IntOf: @"buildBatch.phases[i].endTime"] intValue];
    phaseStatus = [jResp StringOf: @"buildBatch.phases[i].phaseStatus"];
    phaseType = [jResp StringOf: @"buildBatch.phases[i].phaseType"];
    startTime = [[jResp IntOf: @"buildBatch.phases[i].startTime"] intValue];
    j = 0;
    count_j = [[jResp SizeOfArray: @"buildBatch.phases[i].contexts"] intValue];
    while (j < count_j) {
        jResp.J = [NSNumber numberWithInt: j];
        message = [jResp StringOf: @"buildBatch.phases[i].contexts[j].message"];
        statusCode = [jResp StringOf: @"buildBatch.phases[i].contexts[j].statusCode"];
        j = j + 1;
    }

    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.secondaryArtifacts"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    artifactIdentifier = [jResp StringOf: @"buildBatch.secondaryArtifacts[i].artifactIdentifier"];
    bucketOwnerAccess = [jResp StringOf: @"buildBatch.secondaryArtifacts[i].bucketOwnerAccess"];
    encryptionDisabled = [[jResp IntOf: @"buildBatch.secondaryArtifacts[i].encryptionDisabled"] intValue];
    location = [jResp StringOf: @"buildBatch.secondaryArtifacts[i].location"];
    md5sum = [jResp StringOf: @"buildBatch.secondaryArtifacts[i].md5sum"];
    overrideArtifactName = [[jResp IntOf: @"buildBatch.secondaryArtifacts[i].overrideArtifactName"] intValue];
    sha256sum = [jResp StringOf: @"buildBatch.secondaryArtifacts[i].sha256sum"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.secondarySources"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    authResource = [jResp StringOf: @"buildBatch.secondarySources[i].auth.resource"];
    authType = [jResp StringOf: @"buildBatch.secondarySources[i].auth.type"];
    buildspec = [jResp StringOf: @"buildBatch.secondarySources[i].buildspec"];
    buildStatusConfigContext = [jResp StringOf: @"buildBatch.secondarySources[i].buildStatusConfig.context"];
    buildStatusConfigTargetUrl = [jResp StringOf: @"buildBatch.secondarySources[i].buildStatusConfig.targetUrl"];
    gitCloneDepth = [[jResp IntOf: @"buildBatch.secondarySources[i].gitCloneDepth"] intValue];
    gitSubmodulesConfigFetchSubmodules = [[jResp IntOf: @"buildBatch.secondarySources[i].gitSubmodulesConfig.fetchSubmodules"] intValue];
    insecureSsl = [[jResp IntOf: @"buildBatch.secondarySources[i].insecureSsl"] intValue];
    location = [jResp StringOf: @"buildBatch.secondarySources[i].location"];
    reportBuildStatus = [[jResp IntOf: @"buildBatch.secondarySources[i].reportBuildStatus"] intValue];
    sourceIdentifier = [jResp StringOf: @"buildBatch.secondarySources[i].sourceIdentifier"];
    v_type = [jResp StringOf: @"buildBatch.secondarySources[i].type"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.secondarySourceVersions"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    sourceIdentifier = [jResp StringOf: @"buildBatch.secondarySourceVersions[i].sourceIdentifier"];
    sourceVersion = [jResp StringOf: @"buildBatch.secondarySourceVersions[i].sourceVersion"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.vpcConfig.securityGroupIds"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    strVal = [jResp StringOf: @"buildBatch.vpcConfig.securityGroupIds[i]"];
    i = i + 1;
}

i = 0;
count_i = [[jResp SizeOfArray: @"buildBatch.vpcConfig.subnets"] intValue];
while (i < count_i) {
    jResp.I = [NSNumber numberWithInt: i];
    strVal = [jResp StringOf: @"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"
//     }
//   }
// }