Chilkat Online Tools

DescribeJobs unicodeC Example

AWS Batch

#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;
    int Index;
    int Size;
    int v_String;
    const wchar_t *ContainerInstanceArn;
    const wchar_t *ExecutionRoleArn;
    int ExitCode;
    const wchar_t *PlatformVersion;
    const wchar_t *Image;
    const wchar_t *InstanceType;
    const wchar_t *JobRoleArn;
    int InitProcessEnabled;
    int MaxSwap;
    int SharedMemorySize;
    int Swappiness;
    const wchar_t *LogDriver;
    const wchar_t *OptionsString;
    const wchar_t *LogStreamName;
    int Memory;
    const wchar_t *AssignPublicIp;
    int Privileged;
    int ReadonlyRootFilesystem;
    const wchar_t *Reason;
    const wchar_t *TaskArn;
    const wchar_t *User;
    int Vcpus;
    int createdAt;
    const wchar_t *jobArn;
    const wchar_t *jobDefinition;
    const wchar_t *jobId;
    const wchar_t *jobName;
    const wchar_t *jobQueue;
    int IsMainNode;
    int NodeIndex;
    int MainNode;
    int NumNodes;
    const wchar_t *parametersString;
    int propagateTags;
    int Attempts;
    int schedulingPriority;
    const wchar_t *shareIdentifier;
    int startedAt;
    const wchar_t *status;
    const wchar_t *statusReason;
    int stoppedAt;
    const wchar_t *tagsString;
    int AttemptDurationSeconds;
    int j;
    int count_j;
    const wchar_t *containerContainerInstanceArn;
    int containerExitCode;
    const wchar_t *containerLogStreamName;
    const wchar_t *containerReason;
    const wchar_t *containerTaskArn;
    int k;
    int count_k;
    const wchar_t *attachmentId;
    const wchar_t *ipv6Address;
    const wchar_t *privateIpv4Address;
    const wchar_t *strVal;
    const wchar_t *name;
    const wchar_t *value;
    const wchar_t *containerPath;
    const wchar_t *hostPath;
    int size;
    const wchar_t *valueFrom;
    int readOnly;
    const wchar_t *sourceVolume;
    const wchar_t *v_type;
    int hardLimit;
    int softLimit;
    const wchar_t *AccessPointId;
    const wchar_t *Iam;
    const wchar_t *FileSystemId;
    const wchar_t *RootDirectory;
    const wchar_t *TransitEncryption;
    int TransitEncryptionPort;
    const wchar_t *SourcePath;
    const wchar_t *containerExecutionRoleArn;
    const wchar_t *FargatePlatformConfigurationPlatformVersion;
    const wchar_t *containerImage;
    const wchar_t *containerInstanceType;
    const wchar_t *containerJobRoleArn;
    int LinuxParametersInitProcessEnabled;
    int LinuxParametersMaxSwap;
    int LinuxParametersSharedMemorySize;
    int LinuxParametersSwappiness;
    const wchar_t *LogConfigurationLogDriver;
    int containerMemory;
    const wchar_t *NetworkConfigurationAssignPublicIp;
    int containerPrivileged;
    int containerReadonlyRootFilesystem;
    const wchar_t *containerUser;
    int containerVcpus;
    const wchar_t *targetNodes;
    HCkJsonObjectW json1;
    int i1;
    int count_i1;
    const wchar_t *AuthorizationConfigAccessPointId;
    const wchar_t *AuthorizationConfigIam;
    const wchar_t *efsVolumeConfigurationFileSystemId;
    const wchar_t *efsVolumeConfigurationRootDirectory;
    const wchar_t *efsVolumeConfigurationTransitEncryption;
    int efsVolumeConfigurationTransitEncryptionPort;
    const wchar_t *hostSourcePath;
    const wchar_t *action;
    const wchar_t *onExitCode;
    const wchar_t *onReason;
    const wchar_t *onStatusReason;
    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"batch");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRestW_SetAuthAws(rest,authAws);

    // URL: https://batch.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRestW_Connect(rest,L"batch.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"jobs[0]",L"string");

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

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

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

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilderW_Create();
    success = CkRestW_FullRequestSb(rest,L"POST",L"/v1/describejobs",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"jobs");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        Index = CkJsonObjectW_IntOf(jResp,L"jobs[i].arrayProperties.index");
        Size = CkJsonObjectW_IntOf(jResp,L"jobs[i].arrayProperties.size");
        v_String = CkJsonObjectW_IntOf(jResp,L"jobs[i].arrayProperties.statusSummary.string");
        ContainerInstanceArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.containerInstanceArn");
        ExecutionRoleArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.executionRoleArn");
        ExitCode = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.exitCode");
        PlatformVersion = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.fargatePlatformConfiguration.platformVersion");
        Image = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.image");
        InstanceType = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.instanceType");
        JobRoleArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.jobRoleArn");
        InitProcessEnabled = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.linuxParameters.initProcessEnabled");
        MaxSwap = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.linuxParameters.maxSwap");
        SharedMemorySize = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.linuxParameters.sharedMemorySize");
        Swappiness = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.linuxParameters.swappiness");
        LogDriver = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.logConfiguration.logDriver");
        OptionsString = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.logConfiguration.options.string");
        LogStreamName = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.logStreamName");
        Memory = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.memory");
        AssignPublicIp = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.networkConfiguration.assignPublicIp");
        Privileged = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.privileged");
        ReadonlyRootFilesystem = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.readonlyRootFilesystem");
        Reason = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.reason");
        TaskArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.taskArn");
        User = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.user");
        Vcpus = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.vcpus");
        createdAt = CkJsonObjectW_IntOf(jResp,L"jobs[i].createdAt");
        jobArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].jobArn");
        jobDefinition = CkJsonObjectW_stringOf(jResp,L"jobs[i].jobDefinition");
        jobId = CkJsonObjectW_stringOf(jResp,L"jobs[i].jobId");
        jobName = CkJsonObjectW_stringOf(jResp,L"jobs[i].jobName");
        jobQueue = CkJsonObjectW_stringOf(jResp,L"jobs[i].jobQueue");
        IsMainNode = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeDetails.isMainNode");
        NodeIndex = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeDetails.nodeIndex");
        MainNode = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.mainNode");
        NumNodes = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.numNodes");
        parametersString = CkJsonObjectW_stringOf(jResp,L"jobs[i].parameters.string");
        propagateTags = CkJsonObjectW_IntOf(jResp,L"jobs[i].propagateTags");
        Attempts = CkJsonObjectW_IntOf(jResp,L"jobs[i].retryStrategy.attempts");
        schedulingPriority = CkJsonObjectW_IntOf(jResp,L"jobs[i].schedulingPriority");
        shareIdentifier = CkJsonObjectW_stringOf(jResp,L"jobs[i].shareIdentifier");
        startedAt = CkJsonObjectW_IntOf(jResp,L"jobs[i].startedAt");
        status = CkJsonObjectW_stringOf(jResp,L"jobs[i].status");
        statusReason = CkJsonObjectW_stringOf(jResp,L"jobs[i].statusReason");
        stoppedAt = CkJsonObjectW_IntOf(jResp,L"jobs[i].stoppedAt");
        tagsString = CkJsonObjectW_stringOf(jResp,L"jobs[i].tags.string");
        AttemptDurationSeconds = CkJsonObjectW_IntOf(jResp,L"jobs[i].timeout.attemptDurationSeconds");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].attempts");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            containerContainerInstanceArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.containerInstanceArn");
            containerExitCode = CkJsonObjectW_IntOf(jResp,L"jobs[i].attempts[j].container.exitCode");
            containerLogStreamName = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.logStreamName");
            containerReason = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.reason");
            containerTaskArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.taskArn");
            startedAt = CkJsonObjectW_IntOf(jResp,L"jobs[i].attempts[j].startedAt");
            statusReason = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].statusReason");
            stoppedAt = CkJsonObjectW_IntOf(jResp,L"jobs[i].attempts[j].stoppedAt");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].attempts[j].container.networkInterfaces");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                attachmentId = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.networkInterfaces[k].attachmentId");
                ipv6Address = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.networkInterfaces[k].ipv6Address");
                privateIpv4Address = CkJsonObjectW_stringOf(jResp,L"jobs[i].attempts[j].container.networkInterfaces[k].privateIpv4Address");
                k = k + 1;
            }

            j = j + 1;
        }

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

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

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.linuxParameters.devices");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            containerPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.linuxParameters.devices[j].containerPath");
            hostPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.linuxParameters.devices[j].hostPath");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.linuxParameters.devices[j].permissions");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.linuxParameters.devices[j].permissions[k]");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.linuxParameters.tmpfs");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            containerPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.linuxParameters.tmpfs[j].containerPath");
            size = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.linuxParameters.tmpfs[j].size");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.linuxParameters.tmpfs[j].mountOptions");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.linuxParameters.tmpfs[j].mountOptions[k]");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.logConfiguration.secretOptions");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            name = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.logConfiguration.secretOptions[j].name");
            valueFrom = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.logConfiguration.secretOptions[j].valueFrom");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.mountPoints");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            containerPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.mountPoints[j].containerPath");
            readOnly = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.mountPoints[j].readOnly");
            sourceVolume = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.mountPoints[j].sourceVolume");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.networkInterfaces");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            attachmentId = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.networkInterfaces[j].attachmentId");
            ipv6Address = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.networkInterfaces[j].ipv6Address");
            privateIpv4Address = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.networkInterfaces[j].privateIpv4Address");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.resourceRequirements");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            v_type = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.resourceRequirements[j].type");
            value = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.resourceRequirements[j].value");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.secrets");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            name = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.secrets[j].name");
            valueFrom = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.secrets[j].valueFrom");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.ulimits");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            hardLimit = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.ulimits[j].hardLimit");
            name = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.ulimits[j].name");
            softLimit = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.ulimits[j].softLimit");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].container.volumes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            AccessPointId = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].efsVolumeConfiguration.authorizationConfig.accessPointId");
            Iam = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].efsVolumeConfiguration.authorizationConfig.iam");
            FileSystemId = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].efsVolumeConfiguration.fileSystemId");
            RootDirectory = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].efsVolumeConfiguration.rootDirectory");
            TransitEncryption = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].efsVolumeConfiguration.transitEncryption");
            TransitEncryptionPort = CkJsonObjectW_IntOf(jResp,L"jobs[i].container.volumes[j].efsVolumeConfiguration.transitEncryptionPort");
            SourcePath = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].host.sourcePath");
            name = CkJsonObjectW_stringOf(jResp,L"jobs[i].container.volumes[j].name");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].dependsOn");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            jobId = CkJsonObjectW_stringOf(jResp,L"jobs[i].dependsOn[j].jobId");
            v_type = CkJsonObjectW_stringOf(jResp,L"jobs[i].dependsOn[j].type");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            containerExecutionRoleArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.executionRoleArn");
            FargatePlatformConfigurationPlatformVersion = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.fargatePlatformConfiguration.platformVersion");
            containerImage = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.image");
            containerInstanceType = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.instanceType");
            containerJobRoleArn = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.jobRoleArn");
            LinuxParametersInitProcessEnabled = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.initProcessEnabled");
            LinuxParametersMaxSwap = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.maxSwap");
            LinuxParametersSharedMemorySize = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.sharedMemorySize");
            LinuxParametersSwappiness = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.swappiness");
            LogConfigurationLogDriver = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.logDriver");
            OptionsString = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.options.string");
            containerMemory = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.memory");
            NetworkConfigurationAssignPublicIp = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.networkConfiguration.assignPublicIp");
            containerPrivileged = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.privileged");
            containerReadonlyRootFilesystem = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.readonlyRootFilesystem");
            containerUser = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.user");
            containerVcpus = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.vcpus");
            targetNodes = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].targetNodes");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.command");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.command[k]");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.environment");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                name = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.environment[k].name");
                value = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.environment[k].value");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                containerPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].containerPath");
                hostPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].hostPath");

                json1 = CkJsonObjectW_ObjectOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k]");
                i1 = 0;
                count_i1 = CkJsonObjectW_SizeOfArray(json1,L"permissions");
                while (i1 < count_i1) {
                    CkJsonObjectW_putI(json1,i1);
                    strVal = CkJsonObjectW_stringOf(json1,L"permissions[i]");
                    i1 = i1 + 1;
                }

                CkJsonObjectW_Dispose(json1);
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                containerPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].containerPath");
                size = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].size");

                json1 = CkJsonObjectW_ObjectOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k]");
                i1 = 0;
                count_i1 = CkJsonObjectW_SizeOfArray(json1,L"mountOptions");
                while (i1 < count_i1) {
                    CkJsonObjectW_putI(json1,i1);
                    strVal = CkJsonObjectW_stringOf(json1,L"mountOptions[i]");
                    i1 = i1 + 1;
                }

                CkJsonObjectW_Dispose(json1);
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                name = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].name");
                valueFrom = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].valueFrom");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                containerPath = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].containerPath");
                readOnly = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].readOnly");
                sourceVolume = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].sourceVolume");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                v_type = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].type");
                value = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].value");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.secrets");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                name = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].name");
                valueFrom = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].valueFrom");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                hardLimit = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].hardLimit");
                name = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].name");
                softLimit = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].softLimit");
                k = k + 1;
            }

            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                AuthorizationConfigAccessPointId = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.accessPointId");
                AuthorizationConfigIam = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.iam");
                efsVolumeConfigurationFileSystemId = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.fileSystemId");
                efsVolumeConfigurationRootDirectory = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.rootDirectory");
                efsVolumeConfigurationTransitEncryption = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryption");
                efsVolumeConfigurationTransitEncryptionPort = CkJsonObjectW_IntOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryptionPort");
                hostSourcePath = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].host.sourcePath");
                name = CkJsonObjectW_stringOf(jResp,L"jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].name");
                k = k + 1;
            }

            j = j + 1;
        }

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

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"jobs[i].retryStrategy.evaluateOnExit");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            action = CkJsonObjectW_stringOf(jResp,L"jobs[i].retryStrategy.evaluateOnExit[j].action");
            onExitCode = CkJsonObjectW_stringOf(jResp,L"jobs[i].retryStrategy.evaluateOnExit[j].onExitCode");
            onReason = CkJsonObjectW_stringOf(jResp,L"jobs[i].retryStrategy.evaluateOnExit[j].onReason");
            onStatusReason = CkJsonObjectW_stringOf(jResp,L"jobs[i].retryStrategy.evaluateOnExit[j].onStatusReason");
            j = j + 1;
        }

        i = i + 1;
    }

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

    // {
    //   "jobs": [
    //     {
    //       "arrayProperties": {
    //         "index": number,
    //         "size": number,
    //         "statusSummary": {
    //           "string": number
    //         }
    //       },
    //       "attempts": [
    //         {
    //           "container": {
    //             "containerInstanceArn": "string",
    //             "exitCode": number,
    //             "logStreamName": "string",
    //             "networkInterfaces": [
    //               {
    //                 "attachmentId": "string",
    //                 "ipv6Address": "string",
    //                 "privateIpv4Address": "string"
    //               }
    //             ],
    //             "reason": "string",
    //             "taskArn": "string"
    //           },
    //           "startedAt": number,
    //           "statusReason": "string",
    //           "stoppedAt": number
    //         }
    //       ],
    //       "container": {
    //         "command": [
    //           "string"
    //         ],
    //         "containerInstanceArn": "string",
    //         "environment": [
    //           {
    //             "name": "string",
    //             "value": "string"
    //           }
    //         ],
    //         "executionRoleArn": "string",
    //         "exitCode": number,
    //         "fargatePlatformConfiguration": {
    //           "platformVersion": "string"
    //         },
    //         "image": "string",
    //         "instanceType": "string",
    //         "jobRoleArn": "string",
    //         "linuxParameters": {
    //           "devices": [
    //             {
    //               "containerPath": "string",
    //               "hostPath": "string",
    //               "permissions": [
    //                 "string"
    //               ]
    //             }
    //           ],
    //           "initProcessEnabled": boolean,
    //           "maxSwap": number,
    //           "sharedMemorySize": number,
    //           "swappiness": number,
    //           "tmpfs": [
    //             {
    //               "containerPath": "string",
    //               "mountOptions": [
    //                 "string"
    //               ],
    //               "size": number
    //             }
    //           ]
    //         },
    //         "logConfiguration": {
    //           "logDriver": "string",
    //           "options": {
    //             "string": "string"
    //           },
    //           "secretOptions": [
    //             {
    //               "name": "string",
    //               "valueFrom": "string"
    //             }
    //           ]
    //         },
    //         "logStreamName": "string",
    //         "memory": number,
    //         "mountPoints": [
    //           {
    //             "containerPath": "string",
    //             "readOnly": boolean,
    //             "sourceVolume": "string"
    //           }
    //         ],
    //         "networkConfiguration": {
    //           "assignPublicIp": "string"
    //         },
    //         "networkInterfaces": [
    //           {
    //             "attachmentId": "string",
    //             "ipv6Address": "string",
    //             "privateIpv4Address": "string"
    //           }
    //         ],
    //         "privileged": boolean,
    //         "readonlyRootFilesystem": boolean,
    //         "reason": "string",
    //         "resourceRequirements": [
    //           {
    //             "type": "string",
    //             "value": "string"
    //           }
    //         ],
    //         "secrets": [
    //           {
    //             "name": "string",
    //             "valueFrom": "string"
    //           }
    //         ],
    //         "taskArn": "string",
    //         "ulimits": [
    //           {
    //             "hardLimit": number,
    //             "name": "string",
    //             "softLimit": number
    //           }
    //         ],
    //         "user": "string",
    //         "vcpus": number,
    //         "volumes": [
    //           {
    //             "efsVolumeConfiguration": {
    //               "authorizationConfig": {
    //                 "accessPointId": "string",
    //                 "iam": "string"
    //               },
    //               "fileSystemId": "string",
    //               "rootDirectory": "string",
    //               "transitEncryption": "string",
    //               "transitEncryptionPort": number
    //             },
    //             "host": {
    //               "sourcePath": "string"
    //             },
    //             "name": "string"
    //           }
    //         ]
    //       },
    //       "createdAt": number,
    //       "dependsOn": [
    //         {
    //           "jobId": "string",
    //           "type": "string"
    //         }
    //       ],
    //       "jobArn": "string",
    //       "jobDefinition": "string",
    //       "jobId": "string",
    //       "jobName": "string",
    //       "jobQueue": "string",
    //       "nodeDetails": {
    //         "isMainNode": boolean,
    //         "nodeIndex": number
    //       },
    //       "nodeProperties": {
    //         "mainNode": number,
    //         "nodeRangeProperties": [
    //           {
    //             "container": {
    //               "command": [
    //                 "string"
    //               ],
    //               "environment": [
    //                 {
    //                   "name": "string",
    //                   "value": "string"
    //                 }
    //               ],
    //               "executionRoleArn": "string",
    //               "fargatePlatformConfiguration": {
    //                 "platformVersion": "string"
    //               },
    //               "image": "string",
    //               "instanceType": "string",
    //               "jobRoleArn": "string",
    //               "linuxParameters": {
    //                 "devices": [
    //                   {
    //                     "containerPath": "string",
    //                     "hostPath": "string",
    //                     "permissions": [
    //                       "string"
    //                     ]
    //                   }
    //                 ],
    //                 "initProcessEnabled": boolean,
    //                 "maxSwap": number,
    //                 "sharedMemorySize": number,
    //                 "swappiness": number,
    //                 "tmpfs": [
    //                   {
    //                     "containerPath": "string",
    //                     "mountOptions": [
    //                       "string"
    //                     ],
    //                     "size": number
    //                   }
    //                 ]
    //               },
    //               "logConfiguration": {
    //                 "logDriver": "string",
    //                 "options": {
    //                   "string": "string"
    //                 },
    //                 "secretOptions": [
    //                   {
    //                     "name": "string",
    //                     "valueFrom": "string"
    //                   }
    //                 ]
    //               },
    //               "memory": number,
    //               "mountPoints": [
    //                 {
    //                   "containerPath": "string",
    //                   "readOnly": boolean,
    //                   "sourceVolume": "string"
    //                 }
    //               ],
    //               "networkConfiguration": {
    //                 "assignPublicIp": "string"
    //               },
    //               "privileged": boolean,
    //               "readonlyRootFilesystem": boolean,
    //               "resourceRequirements": [
    //                 {
    //                   "type": "string",
    //                   "value": "string"
    //                 }
    //               ],
    //               "secrets": [
    //                 {
    //                   "name": "string",
    //                   "valueFrom": "string"
    //                 }
    //               ],
    //               "ulimits": [
    //                 {
    //                   "hardLimit": number,
    //                   "name": "string",
    //                   "softLimit": number
    //                 }
    //               ],
    //               "user": "string",
    //               "vcpus": number,
    //               "volumes": [
    //                 {
    //                   "efsVolumeConfiguration": {
    //                     "authorizationConfig": {
    //                       "accessPointId": "string",
    //                       "iam": "string"
    //                     },
    //                     "fileSystemId": "string",
    //                     "rootDirectory": "string",
    //                     "transitEncryption": "string",
    //                     "transitEncryptionPort": number
    //                   },
    //                   "host": {
    //                     "sourcePath": "string"
    //                   },
    //                   "name": "string"
    //                 }
    //               ]
    //             },
    //             "targetNodes": "string"
    //           }
    //         ],
    //         "numNodes": number
    //       },
    //       "parameters": {
    //         "string": "string"
    //       },
    //       "platformCapabilities": [
    //         "string"
    //       ],
    //       "propagateTags": boolean,
    //       "retryStrategy": {
    //         "attempts": number,
    //         "evaluateOnExit": [
    //           {
    //             "action": "string",
    //             "onExitCode": "string",
    //             "onReason": "string",
    //             "onStatusReason": "string"
    //           }
    //         ]
    //       },
    //       "schedulingPriority": number,
    //       "shareIdentifier": "string",
    //       "startedAt": number,
    //       "status": "string",
    //       "statusReason": "string",
    //       "stoppedAt": number,
    //       "tags": {
    //         "string": "string"
    //       },
    //       "timeout": {
    //         "attemptDurationSeconds": number
    //       }
    //     }
    //   ]
    // }


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

    }