Chilkat Online Tools

DescribeJobDefinitions unicodeCpp Example

AWS Batch

#include <CkRestW.h>
#include <CkAuthAwsW.h>
#include <CkJsonObjectW.h>
#include <CkStringBuilderW.h>

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

    CkRestW rest;
    bool success;

    CkAuthAwsW authAws;
    authAws.put_AccessKey(L"AWS_ACCESS_KEY");
    authAws.put_SecretKey(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.)
    authAws.put_Region(L"us-west-2");
    authAws.put_ServiceName(L"batch");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    rest.SetAuthAws(authAws);

    // URL: https://batch.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = rest.Connect(L"batch.us-west-2.amazonaws.com",443,true,true);
    if (success != true) {
        wprintf(L"ConnectFailReason: %d\n",rest.get_ConnectFailReason());
        wprintf(L"%s\n",rest.lastErrorText());
        return;
    }

    // The following code creates the JSON request body.
    // The JSON created by this code is shown below.

    // Use this online tool to generate code from sample JSON:
    // Generate Code to Create JSON

    CkJsonObjectW json;
    json.UpdateString(L"jobDefinitionName",L"string");
    json.UpdateString(L"jobDefinitions[0]",L"string");
    json.UpdateInt(L"maxResults",123);
    json.UpdateString(L"nextToken",L"string");
    json.UpdateString(L"status",L"string");

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

    // {
    //   "jobDefinitionName": "string",
    //   "jobDefinitions": [
    //     "string"
    //   ],
    //   "maxResults": number,
    //   "nextToken": "string",
    //   "status": "string"
    // }

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

    CkStringBuilderW sbRequestBody;
    json.EmitSb(sbRequestBody);
    CkStringBuilderW sbResponseBody;
    success = rest.FullRequestSb(L"POST",L"/v1/describejobdefinitions",sbRequestBody,sbResponseBody);
    if (success != true) {
        wprintf(L"%s\n",rest.lastErrorText());
        return;
    }

    int respStatusCode = rest.get_ResponseStatusCode();
    wprintf(L"response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",rest.responseHeader());
        wprintf(L"Response Body:\n");
        wprintf(L"%s\n",sbResponseBody.getAsString());
        return;
    }

    CkJsonObjectW jResp;
    jResp.LoadSb(sbResponseBody);

    // The following code parses the JSON response.
    // A sample JSON response is shown below the sample code.

    // Use this online tool to generate parsing code from sample JSON:
    // Generate Parsing Code from JSON

    // 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.

    const wchar_t *ExecutionRoleArn = 0;
    const wchar_t *PlatformVersion = 0;
    const wchar_t *Image = 0;
    const wchar_t *InstanceType = 0;
    const wchar_t *JobRoleArn = 0;
    int InitProcessEnabled;
    int MaxSwap;
    int SharedMemorySize;
    int Swappiness;
    const wchar_t *LogDriver = 0;
    const wchar_t *v_String = 0;
    int Memory;
    const wchar_t *AssignPublicIp = 0;
    int Privileged;
    int ReadonlyRootFilesystem;
    const wchar_t *User = 0;
    int Vcpus;
    const wchar_t *jobDefinitionArn = 0;
    const wchar_t *jobDefinitionName = 0;
    int MainNode;
    int NumNodes;
    const wchar_t *parametersString = 0;
    int propagateTags;
    int Attempts;
    int revision;
    int schedulingPriority;
    const wchar_t *status = 0;
    const wchar_t *tagsString = 0;
    int AttemptDurationSeconds;
    const wchar_t *v_type = 0;
    int j;
    int count_j;
    const wchar_t *strVal = 0;
    const wchar_t *name = 0;
    const wchar_t *value = 0;
    const wchar_t *containerPath = 0;
    const wchar_t *hostPath = 0;
    int k;
    int count_k;
    int size;
    const wchar_t *valueFrom = 0;
    int readOnly;
    const wchar_t *sourceVolume = 0;
    int hardLimit;
    int softLimit;
    const wchar_t *AccessPointId = 0;
    const wchar_t *Iam = 0;
    const wchar_t *FileSystemId = 0;
    const wchar_t *RootDirectory = 0;
    const wchar_t *TransitEncryption = 0;
    int TransitEncryptionPort;
    const wchar_t *SourcePath = 0;
    const wchar_t *containerExecutionRoleArn = 0;
    const wchar_t *FargatePlatformConfigurationPlatformVersion = 0;
    const wchar_t *containerImage = 0;
    const wchar_t *containerInstanceType = 0;
    const wchar_t *containerJobRoleArn = 0;
    int LinuxParametersInitProcessEnabled;
    int LinuxParametersMaxSwap;
    int LinuxParametersSharedMemorySize;
    int LinuxParametersSwappiness;
    const wchar_t *LogConfigurationLogDriver = 0;
    const wchar_t *OptionsString = 0;
    int containerMemory;
    const wchar_t *NetworkConfigurationAssignPublicIp = 0;
    int containerPrivileged;
    int containerReadonlyRootFilesystem;
    const wchar_t *containerUser = 0;
    int containerVcpus;
    const wchar_t *targetNodes = 0;
    CkJsonObjectW *json1 = 0;
    int i1;
    int count_i1;
    const wchar_t *AuthorizationConfigAccessPointId = 0;
    const wchar_t *AuthorizationConfigIam = 0;
    const wchar_t *efsVolumeConfigurationFileSystemId = 0;
    const wchar_t *efsVolumeConfigurationRootDirectory = 0;
    const wchar_t *efsVolumeConfigurationTransitEncryption = 0;
    int efsVolumeConfigurationTransitEncryptionPort;
    const wchar_t *hostSourcePath = 0;
    const wchar_t *action = 0;
    const wchar_t *onExitCode = 0;
    const wchar_t *onReason = 0;
    const wchar_t *onStatusReason = 0;

    const wchar_t *nextToken = jResp.stringOf(L"nextToken");
    int i = 0;
    int count_i = jResp.SizeOfArray(L"jobDefinitions");
    while (i < count_i) {
        jResp.put_I(i);
        ExecutionRoleArn = jResp.stringOf(L"jobDefinitions[i].containerProperties.executionRoleArn");
        PlatformVersion = jResp.stringOf(L"jobDefinitions[i].containerProperties.fargatePlatformConfiguration.platformVersion");
        Image = jResp.stringOf(L"jobDefinitions[i].containerProperties.image");
        InstanceType = jResp.stringOf(L"jobDefinitions[i].containerProperties.instanceType");
        JobRoleArn = jResp.stringOf(L"jobDefinitions[i].containerProperties.jobRoleArn");
        InitProcessEnabled = jResp.IntOf(L"jobDefinitions[i].containerProperties.linuxParameters.initProcessEnabled");
        MaxSwap = jResp.IntOf(L"jobDefinitions[i].containerProperties.linuxParameters.maxSwap");
        SharedMemorySize = jResp.IntOf(L"jobDefinitions[i].containerProperties.linuxParameters.sharedMemorySize");
        Swappiness = jResp.IntOf(L"jobDefinitions[i].containerProperties.linuxParameters.swappiness");
        LogDriver = jResp.stringOf(L"jobDefinitions[i].containerProperties.logConfiguration.logDriver");
        v_String = jResp.stringOf(L"jobDefinitions[i].containerProperties.logConfiguration.options.string");
        Memory = jResp.IntOf(L"jobDefinitions[i].containerProperties.memory");
        AssignPublicIp = jResp.stringOf(L"jobDefinitions[i].containerProperties.networkConfiguration.assignPublicIp");
        Privileged = jResp.IntOf(L"jobDefinitions[i].containerProperties.privileged");
        ReadonlyRootFilesystem = jResp.IntOf(L"jobDefinitions[i].containerProperties.readonlyRootFilesystem");
        User = jResp.stringOf(L"jobDefinitions[i].containerProperties.user");
        Vcpus = jResp.IntOf(L"jobDefinitions[i].containerProperties.vcpus");
        jobDefinitionArn = jResp.stringOf(L"jobDefinitions[i].jobDefinitionArn");
        jobDefinitionName = jResp.stringOf(L"jobDefinitions[i].jobDefinitionName");
        MainNode = jResp.IntOf(L"jobDefinitions[i].nodeProperties.mainNode");
        NumNodes = jResp.IntOf(L"jobDefinitions[i].nodeProperties.numNodes");
        parametersString = jResp.stringOf(L"jobDefinitions[i].parameters.string");
        propagateTags = jResp.IntOf(L"jobDefinitions[i].propagateTags");
        Attempts = jResp.IntOf(L"jobDefinitions[i].retryStrategy.attempts");
        revision = jResp.IntOf(L"jobDefinitions[i].revision");
        schedulingPriority = jResp.IntOf(L"jobDefinitions[i].schedulingPriority");
        status = jResp.stringOf(L"jobDefinitions[i].status");
        tagsString = jResp.stringOf(L"jobDefinitions[i].tags.string");
        AttemptDurationSeconds = jResp.IntOf(L"jobDefinitions[i].timeout.attemptDurationSeconds");
        v_type = jResp.stringOf(L"jobDefinitions[i].type");
        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.command");
        while (j < count_j) {
            jResp.put_J(j);
            strVal = jResp.stringOf(L"jobDefinitions[i].containerProperties.command[j]");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.environment");
        while (j < count_j) {
            jResp.put_J(j);
            name = jResp.stringOf(L"jobDefinitions[i].containerProperties.environment[j].name");
            value = jResp.stringOf(L"jobDefinitions[i].containerProperties.environment[j].value");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.linuxParameters.devices");
        while (j < count_j) {
            jResp.put_J(j);
            containerPath = jResp.stringOf(L"jobDefinitions[i].containerProperties.linuxParameters.devices[j].containerPath");
            hostPath = jResp.stringOf(L"jobDefinitions[i].containerProperties.linuxParameters.devices[j].hostPath");
            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.linuxParameters.devices[j].permissions");
            while (k < count_k) {
                jResp.put_K(k);
                strVal = jResp.stringOf(L"jobDefinitions[i].containerProperties.linuxParameters.devices[j].permissions[k]");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.linuxParameters.tmpfs");
        while (j < count_j) {
            jResp.put_J(j);
            containerPath = jResp.stringOf(L"jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].containerPath");
            size = jResp.IntOf(L"jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].size");
            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].mountOptions");
            while (k < count_k) {
                jResp.put_K(k);
                strVal = jResp.stringOf(L"jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].mountOptions[k]");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.logConfiguration.secretOptions");
        while (j < count_j) {
            jResp.put_J(j);
            name = jResp.stringOf(L"jobDefinitions[i].containerProperties.logConfiguration.secretOptions[j].name");
            valueFrom = jResp.stringOf(L"jobDefinitions[i].containerProperties.logConfiguration.secretOptions[j].valueFrom");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.mountPoints");
        while (j < count_j) {
            jResp.put_J(j);
            containerPath = jResp.stringOf(L"jobDefinitions[i].containerProperties.mountPoints[j].containerPath");
            readOnly = jResp.IntOf(L"jobDefinitions[i].containerProperties.mountPoints[j].readOnly");
            sourceVolume = jResp.stringOf(L"jobDefinitions[i].containerProperties.mountPoints[j].sourceVolume");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.resourceRequirements");
        while (j < count_j) {
            jResp.put_J(j);
            v_type = jResp.stringOf(L"jobDefinitions[i].containerProperties.resourceRequirements[j].type");
            value = jResp.stringOf(L"jobDefinitions[i].containerProperties.resourceRequirements[j].value");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.secrets");
        while (j < count_j) {
            jResp.put_J(j);
            name = jResp.stringOf(L"jobDefinitions[i].containerProperties.secrets[j].name");
            valueFrom = jResp.stringOf(L"jobDefinitions[i].containerProperties.secrets[j].valueFrom");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.ulimits");
        while (j < count_j) {
            jResp.put_J(j);
            hardLimit = jResp.IntOf(L"jobDefinitions[i].containerProperties.ulimits[j].hardLimit");
            name = jResp.stringOf(L"jobDefinitions[i].containerProperties.ulimits[j].name");
            softLimit = jResp.IntOf(L"jobDefinitions[i].containerProperties.ulimits[j].softLimit");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].containerProperties.volumes");
        while (j < count_j) {
            jResp.put_J(j);
            AccessPointId = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.authorizationConfig.accessPointId");
            Iam = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.authorizationConfig.iam");
            FileSystemId = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.fileSystemId");
            RootDirectory = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.rootDirectory");
            TransitEncryption = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.transitEncryption");
            TransitEncryptionPort = jResp.IntOf(L"jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.transitEncryptionPort");
            SourcePath = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].host.sourcePath");
            name = jResp.stringOf(L"jobDefinitions[i].containerProperties.volumes[j].name");
            j = j + 1;
        }

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

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.environment");
            while (k < count_k) {
                jResp.put_K(k);
                name = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.environment[k].name");
                value = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.environment[k].value");
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices");
            while (k < count_k) {
                jResp.put_K(k);
                containerPath = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].containerPath");
                hostPath = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].hostPath");

                json1 = jResp.ObjectOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k]");
                i1 = 0;
                count_i1 = json1->SizeOfArray(L"permissions");
                while (i1 < count_i1) {
                    json1->put_I(i1);
                    strVal = json1->stringOf(L"permissions[i]");
                    i1 = i1 + 1;
                }

                delete json1;
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs");
            while (k < count_k) {
                jResp.put_K(k);
                containerPath = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].containerPath");
                size = jResp.IntOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].size");

                json1 = jResp.ObjectOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k]");
                i1 = 0;
                count_i1 = json1->SizeOfArray(L"mountOptions");
                while (i1 < count_i1) {
                    json1->put_I(i1);
                    strVal = json1->stringOf(L"mountOptions[i]");
                    i1 = i1 + 1;
                }

                delete json1;
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions");
            while (k < count_k) {
                jResp.put_K(k);
                name = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].name");
                valueFrom = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].valueFrom");
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints");
            while (k < count_k) {
                jResp.put_K(k);
                containerPath = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].containerPath");
                readOnly = jResp.IntOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].readOnly");
                sourceVolume = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].sourceVolume");
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements");
            while (k < count_k) {
                jResp.put_K(k);
                v_type = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].type");
                value = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].value");
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets");
            while (k < count_k) {
                jResp.put_K(k);
                name = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].name");
                valueFrom = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].valueFrom");
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits");
            while (k < count_k) {
                jResp.put_K(k);
                hardLimit = jResp.IntOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].hardLimit");
                name = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].name");
                softLimit = jResp.IntOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].softLimit");
                k = k + 1;
            }

            k = 0;
            count_k = jResp.SizeOfArray(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes");
            while (k < count_k) {
                jResp.put_K(k);
                AuthorizationConfigAccessPointId = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.accessPointId");
                AuthorizationConfigIam = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.iam");
                efsVolumeConfigurationFileSystemId = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.fileSystemId");
                efsVolumeConfigurationRootDirectory = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.rootDirectory");
                efsVolumeConfigurationTransitEncryption = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryption");
                efsVolumeConfigurationTransitEncryptionPort = jResp.IntOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryptionPort");
                hostSourcePath = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].host.sourcePath");
                name = jResp.stringOf(L"jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].name");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].platformCapabilities");
        while (j < count_j) {
            jResp.put_J(j);
            strVal = jResp.stringOf(L"jobDefinitions[i].platformCapabilities[j]");
            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"jobDefinitions[i].retryStrategy.evaluateOnExit");
        while (j < count_j) {
            jResp.put_J(j);
            action = jResp.stringOf(L"jobDefinitions[i].retryStrategy.evaluateOnExit[j].action");
            onExitCode = jResp.stringOf(L"jobDefinitions[i].retryStrategy.evaluateOnExit[j].onExitCode");
            onReason = jResp.stringOf(L"jobDefinitions[i].retryStrategy.evaluateOnExit[j].onReason");
            onStatusReason = jResp.stringOf(L"jobDefinitions[i].retryStrategy.evaluateOnExit[j].onStatusReason");
            j = j + 1;
        }

        i = i + 1;
    }

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

    // {
    //   "jobDefinitions": [
    //     {
    //       "containerProperties": {
    //         "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"
    //           }
    //         ]
    //       },
    //       "jobDefinitionArn": "string",
    //       "jobDefinitionName": "string",
    //       "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"
    //           }
    //         ]
    //       },
    //       "revision": number,
    //       "schedulingPriority": number,
    //       "status": "string",
    //       "tags": {
    //         "string": "string"
    //       },
    //       "timeout": {
    //         "attemptDurationSeconds": number
    //       },
    //       "type": "string"
    //     }
    //   ],
    //   "nextToken": "string"
    // }
    }