Chilkat Online Tools

BatchGetBuilds unicodeC Example

AWS CodeBuild

#include <C_CkRestW.h>
#include <C_CkAuthAwsW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkRestW rest;
    BOOL success;
    HCkAuthAwsW authAws;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkStringBuilderW sbResponseBody;
    int respStatusCode;
    HCkJsonObjectW jResp;
    const wchar_t *arn;
    const wchar_t *ArtifactIdentifier;
    const wchar_t *BucketOwnerAccess;
    int EncryptionDisabled;
    const wchar_t *Location;
    const wchar_t *Md5sum;
    int OverrideArtifactName;
    const wchar_t *Sha256sum;
    const wchar_t *buildBatchArn;
    int buildComplete;
    int buildNumber;
    const wchar_t *buildStatus;
    const wchar_t *cacheLocation;
    const wchar_t *v_Type;
    const wchar_t *currentPhase;
    int SessionEnabled;
    const wchar_t *SessionTarget;
    const wchar_t *encryptionKey;
    int endTime;
    const wchar_t *Certificate;
    const wchar_t *ComputeType;
    const wchar_t *Image;
    const wchar_t *ImagePullCredentialsType;
    int PrivilegedMode;
    const wchar_t *Credential;
    const wchar_t *CredentialProvider;
    const wchar_t *environmentType;
    const wchar_t *id;
    const wchar_t *initiator;
    const wchar_t *GroupName;
    const wchar_t *Status;
    const wchar_t *StreamName;
    const wchar_t *CloudWatchLogsArn;
    const wchar_t *DeepLink;
    const wchar_t *logsGroupName;
    const wchar_t *S3DeepLink;
    const wchar_t *S3LogsBucketOwnerAccess;
    int S3LogsEncryptionDisabled;
    const wchar_t *S3LogsLocation;
    const wchar_t *S3LogsStatus;
    const wchar_t *S3LogsArn;
    const wchar_t *logsStreamName;
    const wchar_t *NetworkInterfaceId;
    const wchar_t *SubnetId;
    const wchar_t *projectName;
    int queuedTimeoutInMinutes;
    const wchar_t *resolvedSourceVersion;
    const wchar_t *serviceRole;
    const wchar_t *Resource;
    const wchar_t *AuthType;
    const wchar_t *Buildspec;
    const wchar_t *Context;
    const wchar_t *TargetUrl;
    int GitCloneDepth;
    int FetchSubmodules;
    int InsecureSsl;
    const wchar_t *sourceLocation;
    int ReportBuildStatus;
    const wchar_t *SourceIdentifier;
    const wchar_t *sourceType;
    const wchar_t *sourceVersion;
    int startTime;
    int timeoutInMinutes;
    const wchar_t *VpcId;
    int j;
    int count_j;
    const wchar_t *strVal;
    const wchar_t *name;
    const wchar_t *v_type;
    const wchar_t *value;
    const wchar_t *identifier;
    const wchar_t *location;
    const wchar_t *mountOptions;
    const wchar_t *mountPoint;
    int durationInSeconds;
    const wchar_t *phaseStatus;
    const wchar_t *phaseType;
    int k;
    int count_k;
    const wchar_t *message;
    const wchar_t *statusCode;
    const wchar_t *artifactIdentifier;
    const wchar_t *bucketOwnerAccess;
    int encryptionDisabled;
    const wchar_t *md5sum;
    int overrideArtifactName;
    const wchar_t *sha256sum;
    const wchar_t *authResource;
    const wchar_t *authType;
    const wchar_t *buildspec;
    const wchar_t *buildStatusConfigContext;
    const wchar_t *buildStatusConfigTargetUrl;
    int gitCloneDepth;
    int gitSubmodulesConfigFetchSubmodules;
    int insecureSsl;
    int reportBuildStatus;
    const wchar_t *sourceIdentifier;
    int i;
    int count_i;

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

    rest = CkRestW_Create();

    authAws = CkAuthAwsW_Create();
    CkAuthAwsW_putAccessKey(authAws,L"AWS_ACCESS_KEY");
    CkAuthAwsW_putSecretKey(authAws,L"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.)
    CkAuthAwsW_putRegion(authAws,L"us-west-2");
    CkAuthAwsW_putServiceName(authAws,L"codebuild");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRestW_SetAuthAws(rest,authAws);

    // URL: https://codebuild.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRestW_Connect(rest,L"codebuild.us-west-2.amazonaws.com",443,TRUE,TRUE);
    if (success != TRUE) {
        wprintf(L"ConnectFailReason: %d\n",CkRestW_getConnectFailReason(rest));
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_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 = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"ids[0]",L"string");

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

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

    CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1");
    CkRestW_AddHeader(rest,L"X-Amz-Target",L"CodeBuild_20161006.BatchGetBuilds");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilderW_Create();
    success = CkRestW_FullRequestSb(rest,L"POST",L"/",sbRequestBody,sbResponseBody);
    if (success != TRUE) {
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRestW_getResponseStatusCode(rest);
    wprintf(L"response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkRestW_responseHeader(rest));
        wprintf(L"Response Body:\n");
        wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_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.

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"builds");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        arn = CkJsonObjectW_stringOf(jResp,L"builds[i].arn");
        ArtifactIdentifier = CkJsonObjectW_stringOf(jResp,L"builds[i].artifacts.artifactIdentifier");
        BucketOwnerAccess = CkJsonObjectW_stringOf(jResp,L"builds[i].artifacts.bucketOwnerAccess");
        EncryptionDisabled = CkJsonObjectW_IntOf(jResp,L"builds[i].artifacts.encryptionDisabled");
        Location = CkJsonObjectW_stringOf(jResp,L"builds[i].artifacts.location");
        Md5sum = CkJsonObjectW_stringOf(jResp,L"builds[i].artifacts.md5sum");
        OverrideArtifactName = CkJsonObjectW_IntOf(jResp,L"builds[i].artifacts.overrideArtifactName");
        Sha256sum = CkJsonObjectW_stringOf(jResp,L"builds[i].artifacts.sha256sum");
        buildBatchArn = CkJsonObjectW_stringOf(jResp,L"builds[i].buildBatchArn");
        buildComplete = CkJsonObjectW_IntOf(jResp,L"builds[i].buildComplete");
        buildNumber = CkJsonObjectW_IntOf(jResp,L"builds[i].buildNumber");
        buildStatus = CkJsonObjectW_stringOf(jResp,L"builds[i].buildStatus");
        cacheLocation = CkJsonObjectW_stringOf(jResp,L"builds[i].cache.location");
        v_Type = CkJsonObjectW_stringOf(jResp,L"builds[i].cache.type");
        currentPhase = CkJsonObjectW_stringOf(jResp,L"builds[i].currentPhase");
        SessionEnabled = CkJsonObjectW_IntOf(jResp,L"builds[i].debugSession.sessionEnabled");
        SessionTarget = CkJsonObjectW_stringOf(jResp,L"builds[i].debugSession.sessionTarget");
        encryptionKey = CkJsonObjectW_stringOf(jResp,L"builds[i].encryptionKey");
        endTime = CkJsonObjectW_IntOf(jResp,L"builds[i].endTime");
        Certificate = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.certificate");
        ComputeType = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.computeType");
        Image = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.image");
        ImagePullCredentialsType = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.imagePullCredentialsType");
        PrivilegedMode = CkJsonObjectW_IntOf(jResp,L"builds[i].environment.privilegedMode");
        Credential = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.registryCredential.credential");
        CredentialProvider = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.registryCredential.credentialProvider");
        environmentType = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.type");
        id = CkJsonObjectW_stringOf(jResp,L"builds[i].id");
        initiator = CkJsonObjectW_stringOf(jResp,L"builds[i].initiator");
        GroupName = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.cloudWatchLogs.groupName");
        Status = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.cloudWatchLogs.status");
        StreamName = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.cloudWatchLogs.streamName");
        CloudWatchLogsArn = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.cloudWatchLogsArn");
        DeepLink = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.deepLink");
        logsGroupName = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.groupName");
        S3DeepLink = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.s3DeepLink");
        S3LogsBucketOwnerAccess = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.s3Logs.bucketOwnerAccess");
        S3LogsEncryptionDisabled = CkJsonObjectW_IntOf(jResp,L"builds[i].logs.s3Logs.encryptionDisabled");
        S3LogsLocation = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.s3Logs.location");
        S3LogsStatus = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.s3Logs.status");
        S3LogsArn = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.s3LogsArn");
        logsStreamName = CkJsonObjectW_stringOf(jResp,L"builds[i].logs.streamName");
        NetworkInterfaceId = CkJsonObjectW_stringOf(jResp,L"builds[i].networkInterface.networkInterfaceId");
        SubnetId = CkJsonObjectW_stringOf(jResp,L"builds[i].networkInterface.subnetId");
        projectName = CkJsonObjectW_stringOf(jResp,L"builds[i].projectName");
        queuedTimeoutInMinutes = CkJsonObjectW_IntOf(jResp,L"builds[i].queuedTimeoutInMinutes");
        resolvedSourceVersion = CkJsonObjectW_stringOf(jResp,L"builds[i].resolvedSourceVersion");
        serviceRole = CkJsonObjectW_stringOf(jResp,L"builds[i].serviceRole");
        Resource = CkJsonObjectW_stringOf(jResp,L"builds[i].source.auth.resource");
        AuthType = CkJsonObjectW_stringOf(jResp,L"builds[i].source.auth.type");
        Buildspec = CkJsonObjectW_stringOf(jResp,L"builds[i].source.buildspec");
        Context = CkJsonObjectW_stringOf(jResp,L"builds[i].source.buildStatusConfig.context");
        TargetUrl = CkJsonObjectW_stringOf(jResp,L"builds[i].source.buildStatusConfig.targetUrl");
        GitCloneDepth = CkJsonObjectW_IntOf(jResp,L"builds[i].source.gitCloneDepth");
        FetchSubmodules = CkJsonObjectW_IntOf(jResp,L"builds[i].source.gitSubmodulesConfig.fetchSubmodules");
        InsecureSsl = CkJsonObjectW_IntOf(jResp,L"builds[i].source.insecureSsl");
        sourceLocation = CkJsonObjectW_stringOf(jResp,L"builds[i].source.location");
        ReportBuildStatus = CkJsonObjectW_IntOf(jResp,L"builds[i].source.reportBuildStatus");
        SourceIdentifier = CkJsonObjectW_stringOf(jResp,L"builds[i].source.sourceIdentifier");
        sourceType = CkJsonObjectW_stringOf(jResp,L"builds[i].source.type");
        sourceVersion = CkJsonObjectW_stringOf(jResp,L"builds[i].sourceVersion");
        startTime = CkJsonObjectW_IntOf(jResp,L"builds[i].startTime");
        timeoutInMinutes = CkJsonObjectW_IntOf(jResp,L"builds[i].timeoutInMinutes");
        VpcId = CkJsonObjectW_stringOf(jResp,L"builds[i].vpcConfig.vpcId");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].cache.modes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"builds[i].cache.modes[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].environment.environmentVariables");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            name = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.environmentVariables[j].name");
            v_type = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.environmentVariables[j].type");
            value = CkJsonObjectW_stringOf(jResp,L"builds[i].environment.environmentVariables[j].value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].exportedEnvironmentVariables");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            name = CkJsonObjectW_stringOf(jResp,L"builds[i].exportedEnvironmentVariables[j].name");
            value = CkJsonObjectW_stringOf(jResp,L"builds[i].exportedEnvironmentVariables[j].value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].fileSystemLocations");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            identifier = CkJsonObjectW_stringOf(jResp,L"builds[i].fileSystemLocations[j].identifier");
            location = CkJsonObjectW_stringOf(jResp,L"builds[i].fileSystemLocations[j].location");
            mountOptions = CkJsonObjectW_stringOf(jResp,L"builds[i].fileSystemLocations[j].mountOptions");
            mountPoint = CkJsonObjectW_stringOf(jResp,L"builds[i].fileSystemLocations[j].mountPoint");
            v_type = CkJsonObjectW_stringOf(jResp,L"builds[i].fileSystemLocations[j].type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].phases");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            durationInSeconds = CkJsonObjectW_IntOf(jResp,L"builds[i].phases[j].durationInSeconds");
            endTime = CkJsonObjectW_IntOf(jResp,L"builds[i].phases[j].endTime");
            phaseStatus = CkJsonObjectW_stringOf(jResp,L"builds[i].phases[j].phaseStatus");
            phaseType = CkJsonObjectW_stringOf(jResp,L"builds[i].phases[j].phaseType");
            startTime = CkJsonObjectW_IntOf(jResp,L"builds[i].phases[j].startTime");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].phases[j].contexts");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                message = CkJsonObjectW_stringOf(jResp,L"builds[i].phases[j].contexts[k].message");
                statusCode = CkJsonObjectW_stringOf(jResp,L"builds[i].phases[j].contexts[k].statusCode");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].reportArns");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"builds[i].reportArns[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].secondaryArtifacts");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            artifactIdentifier = CkJsonObjectW_stringOf(jResp,L"builds[i].secondaryArtifacts[j].artifactIdentifier");
            bucketOwnerAccess = CkJsonObjectW_stringOf(jResp,L"builds[i].secondaryArtifacts[j].bucketOwnerAccess");
            encryptionDisabled = CkJsonObjectW_IntOf(jResp,L"builds[i].secondaryArtifacts[j].encryptionDisabled");
            location = CkJsonObjectW_stringOf(jResp,L"builds[i].secondaryArtifacts[j].location");
            md5sum = CkJsonObjectW_stringOf(jResp,L"builds[i].secondaryArtifacts[j].md5sum");
            overrideArtifactName = CkJsonObjectW_IntOf(jResp,L"builds[i].secondaryArtifacts[j].overrideArtifactName");
            sha256sum = CkJsonObjectW_stringOf(jResp,L"builds[i].secondaryArtifacts[j].sha256sum");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].secondarySources");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            authResource = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].auth.resource");
            authType = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].auth.type");
            buildspec = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].buildspec");
            buildStatusConfigContext = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].buildStatusConfig.context");
            buildStatusConfigTargetUrl = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].buildStatusConfig.targetUrl");
            gitCloneDepth = CkJsonObjectW_IntOf(jResp,L"builds[i].secondarySources[j].gitCloneDepth");
            gitSubmodulesConfigFetchSubmodules = CkJsonObjectW_IntOf(jResp,L"builds[i].secondarySources[j].gitSubmodulesConfig.fetchSubmodules");
            insecureSsl = CkJsonObjectW_IntOf(jResp,L"builds[i].secondarySources[j].insecureSsl");
            location = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].location");
            reportBuildStatus = CkJsonObjectW_IntOf(jResp,L"builds[i].secondarySources[j].reportBuildStatus");
            sourceIdentifier = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].sourceIdentifier");
            v_type = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySources[j].type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].secondarySourceVersions");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            sourceIdentifier = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySourceVersions[j].sourceIdentifier");
            sourceVersion = CkJsonObjectW_stringOf(jResp,L"builds[i].secondarySourceVersions[j].sourceVersion");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].vpcConfig.securityGroupIds");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"builds[i].vpcConfig.securityGroupIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"builds[i].vpcConfig.subnets");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"builds[i].vpcConfig.subnets[j]");
            j = j + 1;
        }

        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"buildsNotFound");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"buildsNotFound[i]");
        i = i + 1;
    }

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

    // {
    //   "builds": [
    //     {
    //       "arn": "string",
    //       "artifacts": {
    //         "artifactIdentifier": "string",
    //         "bucketOwnerAccess": "string",
    //         "encryptionDisabled": boolean,
    //         "location": "string",
    //         "md5sum": "string",
    //         "overrideArtifactName": boolean,
    //         "sha256sum": "string"
    //       },
    //       "buildBatchArn": "string",
    //       "buildComplete": boolean,
    //       "buildNumber": number,
    //       "buildStatus": "string",
    //       "cache": {
    //         "location": "string",
    //         "modes": [
    //           "string"
    //         ],
    //         "type": "string"
    //       },
    //       "currentPhase": "string",
    //       "debugSession": {
    //         "sessionEnabled": boolean,
    //         "sessionTarget": "string"
    //       },
    //       "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"
    //       },
    //       "exportedEnvironmentVariables": [
    //         {
    //           "name": "string",
    //           "value": "string"
    //         }
    //       ],
    //       "fileSystemLocations": [
    //         {
    //           "identifier": "string",
    //           "location": "string",
    //           "mountOptions": "string",
    //           "mountPoint": "string",
    //           "type": "string"
    //         }
    //       ],
    //       "id": "string",
    //       "initiator": "string",
    //       "logs": {
    //         "cloudWatchLogs": {
    //           "groupName": "string",
    //           "status": "string",
    //           "streamName": "string"
    //         },
    //         "cloudWatchLogsArn": "string",
    //         "deepLink": "string",
    //         "groupName": "string",
    //         "s3DeepLink": "string",
    //         "s3Logs": {
    //           "bucketOwnerAccess": "string",
    //           "encryptionDisabled": boolean,
    //           "location": "string",
    //           "status": "string"
    //         },
    //         "s3LogsArn": "string",
    //         "streamName": "string"
    //       },
    //       "networkInterface": {
    //         "networkInterfaceId": "string",
    //         "subnetId": "string"
    //       },
    //       "phases": [
    //         {
    //           "contexts": [
    //             {
    //               "message": "string",
    //               "statusCode": "string"
    //             }
    //           ],
    //           "durationInSeconds": number,
    //           "endTime": number,
    //           "phaseStatus": "string",
    //           "phaseType": "string",
    //           "startTime": number
    //         }
    //       ],
    //       "projectName": "string",
    //       "queuedTimeoutInMinutes": number,
    //       "reportArns": [
    //         "string"
    //       ],
    //       "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,
    //       "timeoutInMinutes": number,
    //       "vpcConfig": {
    //         "securityGroupIds": [
    //           "string"
    //         ],
    //         "subnets": [
    //           "string"
    //         ],
    //         "vpcId": "string"
    //       }
    //     }
    //   ],
    //   "buildsNotFound": [
    //     "string"
    //   ]
    // }


    CkRestW_Dispose(rest);
    CkAuthAwsW_Dispose(authAws);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }