Chilkat Online Tools

DescribeJobDefinitions TCL Example

AWS Batch

load ./chilkat.dll

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

set rest [new_CkRest]

set authAws [new_CkAuthAws]

CkAuthAws_put_AccessKey $authAws "AWS_ACCESS_KEY"
CkAuthAws_put_SecretKey $authAws "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.)
CkAuthAws_put_Region $authAws "us-west-2"
CkAuthAws_put_ServiceName $authAws "batch"
# SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
CkRest_SetAuthAws $rest $authAws

# URL: https://batch.us-west-2.amazonaws.com/
# Use the same region as specified above.
set success [CkRest_Connect $rest "batch.us-west-2.amazonaws.com" 443 1 1]
if {$success != 1} then {
    puts "ConnectFailReason: [CkRest_get_ConnectFailReason $rest]"
    puts [CkRest_lastErrorText $rest]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    exit
}

# 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

set json [new_CkJsonObject]

CkJsonObject_UpdateString $json "jobDefinitionName" "string"
CkJsonObject_UpdateString $json "jobDefinitions[0]" "string"
CkJsonObject_UpdateInt $json "maxResults" 123
CkJsonObject_UpdateString $json "nextToken" "string"
CkJsonObject_UpdateString $json "status" "string"

# The JSON request body created by the above code:

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

CkRest_AddHeader $rest "Content-Type" "application/x-amz-json-1.1"
CkRest_AddHeader $rest "X-Amz-Target" "DescribeJobDefinitions"

set sbRequestBody [new_CkStringBuilder]

CkJsonObject_EmitSb $json $sbRequestBody
set sbResponseBody [new_CkStringBuilder]

set success [CkRest_FullRequestSb $rest "POST" "/v1/describejobdefinitions" $sbRequestBody $sbResponseBody]
if {$success != 1} then {
    puts [CkRest_lastErrorText $rest]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    exit
}

set respStatusCode [CkRest_get_ResponseStatusCode $rest]
puts "response status code = $respStatusCode"
if {$respStatusCode != 200} then {
    puts "Response Header:"
    puts [CkRest_responseHeader $rest]
    puts "Response Body:"
    puts [CkStringBuilder_getAsString $sbResponseBody]
    delete_CkRest $rest
    delete_CkAuthAws $authAws
    delete_CkJsonObject $json
    delete_CkStringBuilder $sbRequestBody
    delete_CkStringBuilder $sbResponseBody
    exit
}

set jResp [new_CkJsonObject]

CkJsonObject_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

# json1 is a CkJsonObject

set nextToken [CkJsonObject_stringOf $jResp "nextToken"]
set i 0
set count_i [CkJsonObject_SizeOfArray $jResp "jobDefinitions"]
while {$i < $count_i} {
    CkJsonObject_put_I $jResp $i
    set ExecutionRoleArn [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.executionRoleArn"]
    set PlatformVersion [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.fargatePlatformConfiguration.platformVersion"]
    set Image [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.image"]
    set InstanceType [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.instanceType"]
    set JobRoleArn [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.jobRoleArn"]
    set InitProcessEnabled [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.initProcessEnabled"]
    set MaxSwap [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.maxSwap"]
    set SharedMemorySize [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.sharedMemorySize"]
    set Swappiness [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.swappiness"]
    set LogDriver [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.logConfiguration.logDriver"]
    set v_String [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.logConfiguration.options.string"]
    set Memory [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.memory"]
    set AssignPublicIp [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.networkConfiguration.assignPublicIp"]
    set Privileged [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.privileged"]
    set ReadonlyRootFilesystem [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.readonlyRootFilesystem"]
    set User [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.user"]
    set Vcpus [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.vcpus"]
    set jobDefinitionArn [CkJsonObject_stringOf $jResp "jobDefinitions[i].jobDefinitionArn"]
    set jobDefinitionName [CkJsonObject_stringOf $jResp "jobDefinitions[i].jobDefinitionName"]
    set MainNode [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.mainNode"]
    set NumNodes [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.numNodes"]
    set parametersString [CkJsonObject_stringOf $jResp "jobDefinitions[i].parameters.string"]
    set propagateTags [CkJsonObject_IntOf $jResp "jobDefinitions[i].propagateTags"]
    set Attempts [CkJsonObject_IntOf $jResp "jobDefinitions[i].retryStrategy.attempts"]
    set revision [CkJsonObject_IntOf $jResp "jobDefinitions[i].revision"]
    set schedulingPriority [CkJsonObject_IntOf $jResp "jobDefinitions[i].schedulingPriority"]
    set status [CkJsonObject_stringOf $jResp "jobDefinitions[i].status"]
    set tagsString [CkJsonObject_stringOf $jResp "jobDefinitions[i].tags.string"]
    set AttemptDurationSeconds [CkJsonObject_IntOf $jResp "jobDefinitions[i].timeout.attemptDurationSeconds"]
    set v_type [CkJsonObject_stringOf $jResp "jobDefinitions[i].type"]
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.command"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.command[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.environment"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.environment[j].name"]
        set value [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.environment[j].value"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.linuxParameters.devices"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set containerPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.devices[j].containerPath"]
        set hostPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.devices[j].hostPath"]
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.linuxParameters.devices[j].permissions"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set strVal [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.devices[j].permissions[k]"]
            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.linuxParameters.tmpfs"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set containerPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].containerPath"]
        set size [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].size"]
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].mountOptions"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set strVal [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.linuxParameters.tmpfs[j].mountOptions[k]"]
            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.logConfiguration.secretOptions"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.logConfiguration.secretOptions[j].name"]
        set valueFrom [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.logConfiguration.secretOptions[j].valueFrom"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.mountPoints"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set containerPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.mountPoints[j].containerPath"]
        set readOnly [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.mountPoints[j].readOnly"]
        set sourceVolume [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.mountPoints[j].sourceVolume"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.resourceRequirements"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set v_type [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.resourceRequirements[j].type"]
        set value [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.resourceRequirements[j].value"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.secrets"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.secrets[j].name"]
        set valueFrom [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.secrets[j].valueFrom"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.ulimits"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set hardLimit [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.ulimits[j].hardLimit"]
        set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.ulimits[j].name"]
        set softLimit [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.ulimits[j].softLimit"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].containerProperties.volumes"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set AccessPointId [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.authorizationConfig.accessPointId"]
        set Iam [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.authorizationConfig.iam"]
        set FileSystemId [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.fileSystemId"]
        set RootDirectory [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.rootDirectory"]
        set TransitEncryption [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.transitEncryption"]
        set TransitEncryptionPort [CkJsonObject_IntOf $jResp "jobDefinitions[i].containerProperties.volumes[j].efsVolumeConfiguration.transitEncryptionPort"]
        set SourcePath [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].host.sourcePath"]
        set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].containerProperties.volumes[j].name"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set containerExecutionRoleArn [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.executionRoleArn"]
        set FargatePlatformConfigurationPlatformVersion [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.fargatePlatformConfiguration.platformVersion"]
        set containerImage [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.image"]
        set containerInstanceType [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.instanceType"]
        set containerJobRoleArn [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.jobRoleArn"]
        set LinuxParametersInitProcessEnabled [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.initProcessEnabled"]
        set LinuxParametersMaxSwap [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.maxSwap"]
        set LinuxParametersSharedMemorySize [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.sharedMemorySize"]
        set LinuxParametersSwappiness [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.swappiness"]
        set LogConfigurationLogDriver [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.logDriver"]
        set OptionsString [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.options.string"]
        set containerMemory [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.memory"]
        set NetworkConfigurationAssignPublicIp [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.networkConfiguration.assignPublicIp"]
        set containerPrivileged [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.privileged"]
        set containerReadonlyRootFilesystem [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.readonlyRootFilesystem"]
        set containerUser [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.user"]
        set containerVcpus [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.vcpus"]
        set targetNodes [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].targetNodes"]
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.command"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set strVal [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.command[k]"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.environment"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.environment[k].name"]
            set value [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.environment[k].value"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set containerPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].containerPath"]
            set hostPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].hostPath"]

            set json1 [CkJsonObject_ObjectOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k]"]
            set i1 0
            set count_i1 [CkJsonObject_SizeOfArray $json1 "permissions"]
            while {$i1 < $count_i1} {
                CkJsonObject_put_I $json1 $i1
                set strVal [CkJsonObject_stringOf $json1 "permissions[i]"]
                set i1 [expr $i1 + 1]
            }
            delete_CkJsonObject $json1

            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set containerPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].containerPath"]
            set size [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].size"]

            set json1 [CkJsonObject_ObjectOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k]"]
            set i1 0
            set count_i1 [CkJsonObject_SizeOfArray $json1 "mountOptions"]
            while {$i1 < $count_i1} {
                CkJsonObject_put_I $json1 $i1
                set strVal [CkJsonObject_stringOf $json1 "mountOptions[i]"]
                set i1 [expr $i1 + 1]
            }
            delete_CkJsonObject $json1

            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].name"]
            set valueFrom [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].valueFrom"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set containerPath [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].containerPath"]
            set readOnly [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].readOnly"]
            set sourceVolume [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].sourceVolume"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set v_type [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].type"]
            set value [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].value"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].name"]
            set valueFrom [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].valueFrom"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set hardLimit [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].hardLimit"]
            set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].name"]
            set softLimit [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].softLimit"]
            set k [expr $k + 1]
        }
        set k 0
        set count_k [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes"]
        while {$k < $count_k} {
            CkJsonObject_put_K $jResp $k
            set AuthorizationConfigAccessPointId [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.accessPointId"]
            set AuthorizationConfigIam [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.iam"]
            set efsVolumeConfigurationFileSystemId [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.fileSystemId"]
            set efsVolumeConfigurationRootDirectory [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.rootDirectory"]
            set efsVolumeConfigurationTransitEncryption [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryption"]
            set efsVolumeConfigurationTransitEncryptionPort [CkJsonObject_IntOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryptionPort"]
            set hostSourcePath [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].host.sourcePath"]
            set name [CkJsonObject_stringOf $jResp "jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].name"]
            set k [expr $k + 1]
        }
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].platformCapabilities"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set strVal [CkJsonObject_stringOf $jResp "jobDefinitions[i].platformCapabilities[j]"]
        set j [expr $j + 1]
    }
    set j 0
    set count_j [CkJsonObject_SizeOfArray $jResp "jobDefinitions[i].retryStrategy.evaluateOnExit"]
    while {$j < $count_j} {
        CkJsonObject_put_J $jResp $j
        set action [CkJsonObject_stringOf $jResp "jobDefinitions[i].retryStrategy.evaluateOnExit[j].action"]
        set onExitCode [CkJsonObject_stringOf $jResp "jobDefinitions[i].retryStrategy.evaluateOnExit[j].onExitCode"]
        set onReason [CkJsonObject_stringOf $jResp "jobDefinitions[i].retryStrategy.evaluateOnExit[j].onReason"]
        set onStatusReason [CkJsonObject_stringOf $jResp "jobDefinitions[i].retryStrategy.evaluateOnExit[j].onStatusReason"]
        set j [expr $j + 1]
    }
    set i [expr $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"
# }

delete_CkRest $rest
delete_CkAuthAws $authAws
delete_CkJsonObject $json
delete_CkStringBuilder $sbRequestBody
delete_CkStringBuilder $sbResponseBody
delete_CkJsonObject $jResp