Chilkat Online Tools

BatchGetProjects 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 *Name;
    const wchar_t *NamespaceType;
    int OverrideArtifactName;
    const wchar_t *Packaging;
    const wchar_t *Path;
    const wchar_t *v_Type;
    int BadgeEnabled;
    const wchar_t *BadgeRequestUrl;
    const wchar_t *BatchReportMode;
    int CombineArtifacts;
    int MaximumBuildsAllowed;
    const wchar_t *ServiceRole;
    int TimeoutInMins;
    const wchar_t *cacheLocation;
    const wchar_t *cacheType;
    int concurrentBuildLimit;
    int created;
    const wchar_t *description;
    const wchar_t *encryptionKey;
    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;
    int lastModified;
    const wchar_t *GroupName;
    const wchar_t *Status;
    const wchar_t *StreamName;
    const wchar_t *S3LogsBucketOwnerAccess;
    int S3LogsEncryptionDisabled;
    const wchar_t *S3LogsLocation;
    const wchar_t *S3LogsStatus;
    const wchar_t *name;
    const wchar_t *projectVisibility;
    const wchar_t *publicProjectAlias;
    int queuedTimeoutInMinutes;
    const wchar_t *resourceAccessRole;
    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 timeoutInMinutes;
    const wchar_t *VpcId;
    const wchar_t *BranchFilter;
    const wchar_t *BuildType;
    int LastModifiedSecret;
    const wchar_t *PayloadUrl;
    const wchar_t *Secret;
    const wchar_t *v_Url;
    int j;
    int count_j;
    const wchar_t *strVal;
    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;
    const wchar_t *artifactIdentifier;
    const wchar_t *bucketOwnerAccess;
    int encryptionDisabled;
    const wchar_t *namespaceType;
    int overrideArtifactName;
    const wchar_t *packaging;
    const wchar_t *path;
    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;
    const wchar_t *key;
    int k;
    int count_k;
    int excludeMatchedPattern;
    const wchar_t *pattern;
    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"names[0]",L"string");

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

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

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

    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"projects");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        arn = CkJsonObjectW_stringOf(jResp,L"projects[i].arn");
        ArtifactIdentifier = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.artifactIdentifier");
        BucketOwnerAccess = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.bucketOwnerAccess");
        EncryptionDisabled = CkJsonObjectW_IntOf(jResp,L"projects[i].artifacts.encryptionDisabled");
        Location = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.location");
        Name = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.name");
        NamespaceType = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.namespaceType");
        OverrideArtifactName = CkJsonObjectW_IntOf(jResp,L"projects[i].artifacts.overrideArtifactName");
        Packaging = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.packaging");
        Path = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.path");
        v_Type = CkJsonObjectW_stringOf(jResp,L"projects[i].artifacts.type");
        BadgeEnabled = CkJsonObjectW_IntOf(jResp,L"projects[i].badge.badgeEnabled");
        BadgeRequestUrl = CkJsonObjectW_stringOf(jResp,L"projects[i].badge.badgeRequestUrl");
        BatchReportMode = CkJsonObjectW_stringOf(jResp,L"projects[i].buildBatchConfig.batchReportMode");
        CombineArtifacts = CkJsonObjectW_IntOf(jResp,L"projects[i].buildBatchConfig.combineArtifacts");
        MaximumBuildsAllowed = CkJsonObjectW_IntOf(jResp,L"projects[i].buildBatchConfig.restrictions.maximumBuildsAllowed");
        ServiceRole = CkJsonObjectW_stringOf(jResp,L"projects[i].buildBatchConfig.serviceRole");
        TimeoutInMins = CkJsonObjectW_IntOf(jResp,L"projects[i].buildBatchConfig.timeoutInMins");
        cacheLocation = CkJsonObjectW_stringOf(jResp,L"projects[i].cache.location");
        cacheType = CkJsonObjectW_stringOf(jResp,L"projects[i].cache.type");
        concurrentBuildLimit = CkJsonObjectW_IntOf(jResp,L"projects[i].concurrentBuildLimit");
        created = CkJsonObjectW_IntOf(jResp,L"projects[i].created");
        description = CkJsonObjectW_stringOf(jResp,L"projects[i].description");
        encryptionKey = CkJsonObjectW_stringOf(jResp,L"projects[i].encryptionKey");
        Certificate = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.certificate");
        ComputeType = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.computeType");
        Image = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.image");
        ImagePullCredentialsType = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.imagePullCredentialsType");
        PrivilegedMode = CkJsonObjectW_IntOf(jResp,L"projects[i].environment.privilegedMode");
        Credential = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.registryCredential.credential");
        CredentialProvider = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.registryCredential.credentialProvider");
        environmentType = CkJsonObjectW_stringOf(jResp,L"projects[i].environment.type");
        lastModified = CkJsonObjectW_IntOf(jResp,L"projects[i].lastModified");
        GroupName = CkJsonObjectW_stringOf(jResp,L"projects[i].logsConfig.cloudWatchLogs.groupName");
        Status = CkJsonObjectW_stringOf(jResp,L"projects[i].logsConfig.cloudWatchLogs.status");
        StreamName = CkJsonObjectW_stringOf(jResp,L"projects[i].logsConfig.cloudWatchLogs.streamName");
        S3LogsBucketOwnerAccess = CkJsonObjectW_stringOf(jResp,L"projects[i].logsConfig.s3Logs.bucketOwnerAccess");
        S3LogsEncryptionDisabled = CkJsonObjectW_IntOf(jResp,L"projects[i].logsConfig.s3Logs.encryptionDisabled");
        S3LogsLocation = CkJsonObjectW_stringOf(jResp,L"projects[i].logsConfig.s3Logs.location");
        S3LogsStatus = CkJsonObjectW_stringOf(jResp,L"projects[i].logsConfig.s3Logs.status");
        name = CkJsonObjectW_stringOf(jResp,L"projects[i].name");
        projectVisibility = CkJsonObjectW_stringOf(jResp,L"projects[i].projectVisibility");
        publicProjectAlias = CkJsonObjectW_stringOf(jResp,L"projects[i].publicProjectAlias");
        queuedTimeoutInMinutes = CkJsonObjectW_IntOf(jResp,L"projects[i].queuedTimeoutInMinutes");
        resourceAccessRole = CkJsonObjectW_stringOf(jResp,L"projects[i].resourceAccessRole");
        serviceRole = CkJsonObjectW_stringOf(jResp,L"projects[i].serviceRole");
        Resource = CkJsonObjectW_stringOf(jResp,L"projects[i].source.auth.resource");
        AuthType = CkJsonObjectW_stringOf(jResp,L"projects[i].source.auth.type");
        Buildspec = CkJsonObjectW_stringOf(jResp,L"projects[i].source.buildspec");
        Context = CkJsonObjectW_stringOf(jResp,L"projects[i].source.buildStatusConfig.context");
        TargetUrl = CkJsonObjectW_stringOf(jResp,L"projects[i].source.buildStatusConfig.targetUrl");
        GitCloneDepth = CkJsonObjectW_IntOf(jResp,L"projects[i].source.gitCloneDepth");
        FetchSubmodules = CkJsonObjectW_IntOf(jResp,L"projects[i].source.gitSubmodulesConfig.fetchSubmodules");
        InsecureSsl = CkJsonObjectW_IntOf(jResp,L"projects[i].source.insecureSsl");
        sourceLocation = CkJsonObjectW_stringOf(jResp,L"projects[i].source.location");
        ReportBuildStatus = CkJsonObjectW_IntOf(jResp,L"projects[i].source.reportBuildStatus");
        SourceIdentifier = CkJsonObjectW_stringOf(jResp,L"projects[i].source.sourceIdentifier");
        sourceType = CkJsonObjectW_stringOf(jResp,L"projects[i].source.type");
        sourceVersion = CkJsonObjectW_stringOf(jResp,L"projects[i].sourceVersion");
        timeoutInMinutes = CkJsonObjectW_IntOf(jResp,L"projects[i].timeoutInMinutes");
        VpcId = CkJsonObjectW_stringOf(jResp,L"projects[i].vpcConfig.vpcId");
        BranchFilter = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.branchFilter");
        BuildType = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.buildType");
        LastModifiedSecret = CkJsonObjectW_IntOf(jResp,L"projects[i].webhook.lastModifiedSecret");
        PayloadUrl = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.payloadUrl");
        Secret = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.secret");
        v_Url = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.url");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"projects[i].buildBatchConfig.restrictions.computeTypesAllowed");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"projects[i].buildBatchConfig.restrictions.computeTypesAllowed[j]");
            j = j + 1;
        }

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

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

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

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"projects[i].secondaryArtifacts");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            artifactIdentifier = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].artifactIdentifier");
            bucketOwnerAccess = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].bucketOwnerAccess");
            encryptionDisabled = CkJsonObjectW_IntOf(jResp,L"projects[i].secondaryArtifacts[j].encryptionDisabled");
            location = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].location");
            name = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].name");
            namespaceType = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].namespaceType");
            overrideArtifactName = CkJsonObjectW_IntOf(jResp,L"projects[i].secondaryArtifacts[j].overrideArtifactName");
            packaging = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].packaging");
            path = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].path");
            v_type = CkJsonObjectW_stringOf(jResp,L"projects[i].secondaryArtifacts[j].type");
            j = j + 1;
        }

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

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

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

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

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

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"projects[i].webhook.filterGroups");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"projects[i].webhook.filterGroups[j]");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                excludeMatchedPattern = CkJsonObjectW_IntOf(jResp,L"projects[i].webhook.filterGroups[j][k].excludeMatchedPattern");
                pattern = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.filterGroups[j][k].pattern");
                v_type = CkJsonObjectW_stringOf(jResp,L"projects[i].webhook.filterGroups[j][k].type");
                k = k + 1;
            }

            j = j + 1;
        }

        i = i + 1;
    }

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

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

    // {
    //   "projects": [
    //     {
    //       "arn": "string",
    //       "artifacts": {
    //         "artifactIdentifier": "string",
    //         "bucketOwnerAccess": "string",
    //         "encryptionDisabled": boolean,
    //         "location": "string",
    //         "name": "string",
    //         "namespaceType": "string",
    //         "overrideArtifactName": boolean,
    //         "packaging": "string",
    //         "path": "string",
    //         "type": "string"
    //       },
    //       "badge": {
    //         "badgeEnabled": boolean,
    //         "badgeRequestUrl": "string"
    //       },
    //       "buildBatchConfig": {
    //         "batchReportMode": "string",
    //         "combineArtifacts": boolean,
    //         "restrictions": {
    //           "computeTypesAllowed": [
    //             "string"
    //           ],
    //           "maximumBuildsAllowed": number
    //         },
    //         "serviceRole": "string",
    //         "timeoutInMins": number
    //       },
    //       "cache": {
    //         "location": "string",
    //         "modes": [
    //           "string"
    //         ],
    //         "type": "string"
    //       },
    //       "concurrentBuildLimit": number,
    //       "created": number,
    //       "description": "string",
    //       "encryptionKey": "string",
    //       "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"
    //         }
    //       ],
    //       "lastModified": number,
    //       "logsConfig": {
    //         "cloudWatchLogs": {
    //           "groupName": "string",
    //           "status": "string",
    //           "streamName": "string"
    //         },
    //         "s3Logs": {
    //           "bucketOwnerAccess": "string",
    //           "encryptionDisabled": boolean,
    //           "location": "string",
    //           "status": "string"
    //         }
    //       },
    //       "name": "string",
    //       "projectVisibility": "string",
    //       "publicProjectAlias": "string",
    //       "queuedTimeoutInMinutes": number,
    //       "resourceAccessRole": "string",
    //       "secondaryArtifacts": [
    //         {
    //           "artifactIdentifier": "string",
    //           "bucketOwnerAccess": "string",
    //           "encryptionDisabled": boolean,
    //           "location": "string",
    //           "name": "string",
    //           "namespaceType": "string",
    //           "overrideArtifactName": boolean,
    //           "packaging": "string",
    //           "path": "string",
    //           "type": "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",
    //       "tags": [
    //         {
    //           "key": "string",
    //           "value": "string"
    //         }
    //       ],
    //       "timeoutInMinutes": number,
    //       "vpcConfig": {
    //         "securityGroupIds": [
    //           "string"
    //         ],
    //         "subnets": [
    //           "string"
    //         ],
    //         "vpcId": "string"
    //       },
    //       "webhook": {
    //         "branchFilter": "string",
    //         "buildType": "string",
    //         "filterGroups": [
    //           [
    //             {
    //               "excludeMatchedPattern": boolean,
    //               "pattern": "string",
    //               "type": "string"
    //             }
    //           ]
    //         ],
    //         "lastModifiedSecret": number,
    //         "payloadUrl": "string",
    //         "secret": "string",
    //         "url": "string"
    //       }
    //     }
    //   ],
    //   "projectsNotFound": [
    //     "string"
    //   ]
    // }


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

    }