Chilkat Online Tools

DescribeJobs PowerBuilder Example

AWS Batch

integer li_rc
oleobject loo_Rest
integer li_Success
oleobject loo_AuthAws
oleobject loo_Json
oleobject loo_SbRequestBody
oleobject loo_SbResponseBody
integer li_RespStatusCode
oleobject loo_JResp
integer li_Index
integer li_Size
integer li_V_String
string ls_ContainerInstanceArn
string ls_ExecutionRoleArn
integer li_ExitCode
string ls_PlatformVersion
string ls_Image
string ls_InstanceType
string ls_JobRoleArn
integer li_InitProcessEnabled
integer li_MaxSwap
integer li_SharedMemorySize
integer li_Swappiness
string ls_LogDriver
string ls_OptionsString
string ls_LogStreamName
integer li_Memory
string ls_AssignPublicIp
integer li_Privileged
integer li_ReadonlyRootFilesystem
string ls_Reason
string ls_TaskArn
string ls_User
integer li_Vcpus
integer li_CreatedAt
string ls_JobArn
string ls_JobDefinition
string ls_JobId
string ls_JobName
string ls_JobQueue
integer li_IsMainNode
integer li_NodeIndex
integer li_MainNode
integer li_NumNodes
string ls_ParametersString
integer li_PropagateTags
integer li_Attempts
integer li_SchedulingPriority
string ls_ShareIdentifier
integer li_StartedAt
string ls_Status
string ls_StatusReason
integer li_StoppedAt
string ls_TagsString
integer li_AttemptDurationSeconds
integer j
integer li_Count_j
string ls_ContainerContainerInstanceArn
integer li_ContainerExitCode
string ls_ContainerLogStreamName
string ls_ContainerReason
string ls_ContainerTaskArn
integer k
integer li_Count_k
string ls_AttachmentId
string ls_Ipv6Address
string ls_PrivateIpv4Address
string ls_StrVal
string ls_Name
string ls_Value
string ls_ContainerPath
string ls_HostPath
integer li_Size
string ls_ValueFrom
integer li_ReadOnly
string ls_SourceVolume
string ls_V_type
integer li_HardLimit
integer li_SoftLimit
string ls_AccessPointId
string ls_Iam
string ls_FileSystemId
string ls_RootDirectory
string ls_TransitEncryption
integer li_TransitEncryptionPort
string ls_SourcePath
string ls_ContainerExecutionRoleArn
string ls_FargatePlatformConfigurationPlatformVersion
string ls_ContainerImage
string ls_ContainerInstanceType
string ls_ContainerJobRoleArn
integer li_LinuxParametersInitProcessEnabled
integer li_LinuxParametersMaxSwap
integer li_LinuxParametersSharedMemorySize
integer li_LinuxParametersSwappiness
string ls_LogConfigurationLogDriver
integer li_ContainerMemory
string ls_NetworkConfigurationAssignPublicIp
integer li_ContainerPrivileged
integer li_ContainerReadonlyRootFilesystem
string ls_ContainerUser
integer li_ContainerVcpus
string ls_TargetNodes
oleobject loo_Json1
integer li_I1
integer li_Count_i1
string ls_AuthorizationConfigAccessPointId
string ls_AuthorizationConfigIam
string ls_EfsVolumeConfigurationFileSystemId
string ls_EfsVolumeConfigurationRootDirectory
string ls_EfsVolumeConfigurationTransitEncryption
integer li_EfsVolumeConfigurationTransitEncryptionPort
string ls_HostSourcePath
string ls_Action
string ls_OnExitCode
string ls_OnReason
string ls_OnStatusReason
integer i
integer li_Count_i

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

loo_Rest = create oleobject
li_rc = loo_Rest.ConnectToNewObject("Chilkat_9_5_0.Rest")
if li_rc < 0 then
    destroy loo_Rest
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_AuthAws = create oleobject
li_rc = loo_AuthAws.ConnectToNewObject("Chilkat_9_5_0.AuthAws")

loo_AuthAws.AccessKey = "AWS_ACCESS_KEY"
loo_AuthAws.SecretKey = "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.)
loo_AuthAws.Region = "us-west-2"
loo_AuthAws.ServiceName = "batch"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
loo_Rest.SetAuthAws(loo_AuthAws)

// URL: https://batch.us-west-2.amazonaws.com/
// Use the same region as specified above.
li_Success = loo_Rest.Connect("batch.us-west-2.amazonaws.com",443,1,1)
if li_Success <> 1 then
    Write-Debug "ConnectFailReason: " + string(loo_Rest.ConnectFailReason)
    Write-Debug loo_Rest.LastErrorText
    destroy loo_Rest
    destroy loo_AuthAws
    return
end if

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

loo_Json = create oleobject
li_rc = loo_Json.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_Json.UpdateString("jobs[0]","string")

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

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

loo_Rest.AddHeader("Content-Type","application/x-amz-json-1.1")
loo_Rest.AddHeader("X-Amz-Target","DescribeJobs")

loo_SbRequestBody = create oleobject
li_rc = loo_SbRequestBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

loo_Json.EmitSb(loo_SbRequestBody)
loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

li_Success = loo_Rest.FullRequestSb("POST","/v1/describejobs",loo_SbRequestBody,loo_SbResponseBody)
if li_Success <> 1 then
    Write-Debug loo_Rest.LastErrorText
    destroy loo_Rest
    destroy loo_AuthAws
    destroy loo_Json
    destroy loo_SbRequestBody
    destroy loo_SbResponseBody
    return
end if

li_RespStatusCode = loo_Rest.ResponseStatusCode
Write-Debug "response status code = " + string(li_RespStatusCode)
if li_RespStatusCode <> 200 then
    Write-Debug "Response Header:"
    Write-Debug loo_Rest.ResponseHeader
    Write-Debug "Response Body:"
    Write-Debug loo_SbResponseBody.GetAsString()
    destroy loo_Rest
    destroy loo_AuthAws
    destroy loo_Json
    destroy loo_SbRequestBody
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JResp.LoadSb(loo_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

i = 0
li_Count_i = loo_JResp.SizeOfArray("jobs")
do while i < li_Count_i
    loo_JResp.I = i
    li_Index = loo_JResp.IntOf("jobs[i].arrayProperties.index")
    li_Size = loo_JResp.IntOf("jobs[i].arrayProperties.size")
    li_V_String = loo_JResp.IntOf("jobs[i].arrayProperties.statusSummary.string")
    ls_ContainerInstanceArn = loo_JResp.StringOf("jobs[i].container.containerInstanceArn")
    ls_ExecutionRoleArn = loo_JResp.StringOf("jobs[i].container.executionRoleArn")
    li_ExitCode = loo_JResp.IntOf("jobs[i].container.exitCode")
    ls_PlatformVersion = loo_JResp.StringOf("jobs[i].container.fargatePlatformConfiguration.platformVersion")
    ls_Image = loo_JResp.StringOf("jobs[i].container.image")
    ls_InstanceType = loo_JResp.StringOf("jobs[i].container.instanceType")
    ls_JobRoleArn = loo_JResp.StringOf("jobs[i].container.jobRoleArn")
    li_InitProcessEnabled = loo_JResp.IntOf("jobs[i].container.linuxParameters.initProcessEnabled")
    li_MaxSwap = loo_JResp.IntOf("jobs[i].container.linuxParameters.maxSwap")
    li_SharedMemorySize = loo_JResp.IntOf("jobs[i].container.linuxParameters.sharedMemorySize")
    li_Swappiness = loo_JResp.IntOf("jobs[i].container.linuxParameters.swappiness")
    ls_LogDriver = loo_JResp.StringOf("jobs[i].container.logConfiguration.logDriver")
    ls_OptionsString = loo_JResp.StringOf("jobs[i].container.logConfiguration.options.string")
    ls_LogStreamName = loo_JResp.StringOf("jobs[i].container.logStreamName")
    li_Memory = loo_JResp.IntOf("jobs[i].container.memory")
    ls_AssignPublicIp = loo_JResp.StringOf("jobs[i].container.networkConfiguration.assignPublicIp")
    li_Privileged = loo_JResp.IntOf("jobs[i].container.privileged")
    li_ReadonlyRootFilesystem = loo_JResp.IntOf("jobs[i].container.readonlyRootFilesystem")
    ls_Reason = loo_JResp.StringOf("jobs[i].container.reason")
    ls_TaskArn = loo_JResp.StringOf("jobs[i].container.taskArn")
    ls_User = loo_JResp.StringOf("jobs[i].container.user")
    li_Vcpus = loo_JResp.IntOf("jobs[i].container.vcpus")
    li_CreatedAt = loo_JResp.IntOf("jobs[i].createdAt")
    ls_JobArn = loo_JResp.StringOf("jobs[i].jobArn")
    ls_JobDefinition = loo_JResp.StringOf("jobs[i].jobDefinition")
    ls_JobId = loo_JResp.StringOf("jobs[i].jobId")
    ls_JobName = loo_JResp.StringOf("jobs[i].jobName")
    ls_JobQueue = loo_JResp.StringOf("jobs[i].jobQueue")
    li_IsMainNode = loo_JResp.IntOf("jobs[i].nodeDetails.isMainNode")
    li_NodeIndex = loo_JResp.IntOf("jobs[i].nodeDetails.nodeIndex")
    li_MainNode = loo_JResp.IntOf("jobs[i].nodeProperties.mainNode")
    li_NumNodes = loo_JResp.IntOf("jobs[i].nodeProperties.numNodes")
    ls_ParametersString = loo_JResp.StringOf("jobs[i].parameters.string")
    li_PropagateTags = loo_JResp.IntOf("jobs[i].propagateTags")
    li_Attempts = loo_JResp.IntOf("jobs[i].retryStrategy.attempts")
    li_SchedulingPriority = loo_JResp.IntOf("jobs[i].schedulingPriority")
    ls_ShareIdentifier = loo_JResp.StringOf("jobs[i].shareIdentifier")
    li_StartedAt = loo_JResp.IntOf("jobs[i].startedAt")
    ls_Status = loo_JResp.StringOf("jobs[i].status")
    ls_StatusReason = loo_JResp.StringOf("jobs[i].statusReason")
    li_StoppedAt = loo_JResp.IntOf("jobs[i].stoppedAt")
    ls_TagsString = loo_JResp.StringOf("jobs[i].tags.string")
    li_AttemptDurationSeconds = loo_JResp.IntOf("jobs[i].timeout.attemptDurationSeconds")
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].attempts")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_ContainerContainerInstanceArn = loo_JResp.StringOf("jobs[i].attempts[j].container.containerInstanceArn")
        li_ContainerExitCode = loo_JResp.IntOf("jobs[i].attempts[j].container.exitCode")
        ls_ContainerLogStreamName = loo_JResp.StringOf("jobs[i].attempts[j].container.logStreamName")
        ls_ContainerReason = loo_JResp.StringOf("jobs[i].attempts[j].container.reason")
        ls_ContainerTaskArn = loo_JResp.StringOf("jobs[i].attempts[j].container.taskArn")
        li_StartedAt = loo_JResp.IntOf("jobs[i].attempts[j].startedAt")
        ls_StatusReason = loo_JResp.StringOf("jobs[i].attempts[j].statusReason")
        li_StoppedAt = loo_JResp.IntOf("jobs[i].attempts[j].stoppedAt")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].attempts[j].container.networkInterfaces")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_AttachmentId = loo_JResp.StringOf("jobs[i].attempts[j].container.networkInterfaces[k].attachmentId")
            ls_Ipv6Address = loo_JResp.StringOf("jobs[i].attempts[j].container.networkInterfaces[k].ipv6Address")
            ls_PrivateIpv4Address = loo_JResp.StringOf("jobs[i].attempts[j].container.networkInterfaces[k].privateIpv4Address")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.command")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("jobs[i].container.command[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.environment")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Name = loo_JResp.StringOf("jobs[i].container.environment[j].name")
        ls_Value = loo_JResp.StringOf("jobs[i].container.environment[j].value")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.linuxParameters.devices")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_ContainerPath = loo_JResp.StringOf("jobs[i].container.linuxParameters.devices[j].containerPath")
        ls_HostPath = loo_JResp.StringOf("jobs[i].container.linuxParameters.devices[j].hostPath")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].container.linuxParameters.devices[j].permissions")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_StrVal = loo_JResp.StringOf("jobs[i].container.linuxParameters.devices[j].permissions[k]")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.linuxParameters.tmpfs")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_ContainerPath = loo_JResp.StringOf("jobs[i].container.linuxParameters.tmpfs[j].containerPath")
        li_Size = loo_JResp.IntOf("jobs[i].container.linuxParameters.tmpfs[j].size")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].container.linuxParameters.tmpfs[j].mountOptions")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_StrVal = loo_JResp.StringOf("jobs[i].container.linuxParameters.tmpfs[j].mountOptions[k]")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.logConfiguration.secretOptions")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Name = loo_JResp.StringOf("jobs[i].container.logConfiguration.secretOptions[j].name")
        ls_ValueFrom = loo_JResp.StringOf("jobs[i].container.logConfiguration.secretOptions[j].valueFrom")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.mountPoints")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_ContainerPath = loo_JResp.StringOf("jobs[i].container.mountPoints[j].containerPath")
        li_ReadOnly = loo_JResp.IntOf("jobs[i].container.mountPoints[j].readOnly")
        ls_SourceVolume = loo_JResp.StringOf("jobs[i].container.mountPoints[j].sourceVolume")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.networkInterfaces")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_AttachmentId = loo_JResp.StringOf("jobs[i].container.networkInterfaces[j].attachmentId")
        ls_Ipv6Address = loo_JResp.StringOf("jobs[i].container.networkInterfaces[j].ipv6Address")
        ls_PrivateIpv4Address = loo_JResp.StringOf("jobs[i].container.networkInterfaces[j].privateIpv4Address")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.resourceRequirements")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_V_type = loo_JResp.StringOf("jobs[i].container.resourceRequirements[j].type")
        ls_Value = loo_JResp.StringOf("jobs[i].container.resourceRequirements[j].value")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.secrets")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Name = loo_JResp.StringOf("jobs[i].container.secrets[j].name")
        ls_ValueFrom = loo_JResp.StringOf("jobs[i].container.secrets[j].valueFrom")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.ulimits")
    do while j < li_Count_j
        loo_JResp.J = j
        li_HardLimit = loo_JResp.IntOf("jobs[i].container.ulimits[j].hardLimit")
        ls_Name = loo_JResp.StringOf("jobs[i].container.ulimits[j].name")
        li_SoftLimit = loo_JResp.IntOf("jobs[i].container.ulimits[j].softLimit")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].container.volumes")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_AccessPointId = loo_JResp.StringOf("jobs[i].container.volumes[j].efsVolumeConfiguration.authorizationConfig.accessPointId")
        ls_Iam = loo_JResp.StringOf("jobs[i].container.volumes[j].efsVolumeConfiguration.authorizationConfig.iam")
        ls_FileSystemId = loo_JResp.StringOf("jobs[i].container.volumes[j].efsVolumeConfiguration.fileSystemId")
        ls_RootDirectory = loo_JResp.StringOf("jobs[i].container.volumes[j].efsVolumeConfiguration.rootDirectory")
        ls_TransitEncryption = loo_JResp.StringOf("jobs[i].container.volumes[j].efsVolumeConfiguration.transitEncryption")
        li_TransitEncryptionPort = loo_JResp.IntOf("jobs[i].container.volumes[j].efsVolumeConfiguration.transitEncryptionPort")
        ls_SourcePath = loo_JResp.StringOf("jobs[i].container.volumes[j].host.sourcePath")
        ls_Name = loo_JResp.StringOf("jobs[i].container.volumes[j].name")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].dependsOn")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_JobId = loo_JResp.StringOf("jobs[i].dependsOn[j].jobId")
        ls_V_type = loo_JResp.StringOf("jobs[i].dependsOn[j].type")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_ContainerExecutionRoleArn = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.executionRoleArn")
        ls_FargatePlatformConfigurationPlatformVersion = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.fargatePlatformConfiguration.platformVersion")
        ls_ContainerImage = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.image")
        ls_ContainerInstanceType = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.instanceType")
        ls_ContainerJobRoleArn = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.jobRoleArn")
        li_LinuxParametersInitProcessEnabled = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.initProcessEnabled")
        li_LinuxParametersMaxSwap = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.maxSwap")
        li_LinuxParametersSharedMemorySize = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.sharedMemorySize")
        li_LinuxParametersSwappiness = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.swappiness")
        ls_LogConfigurationLogDriver = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.logDriver")
        ls_OptionsString = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.options.string")
        li_ContainerMemory = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.memory")
        ls_NetworkConfigurationAssignPublicIp = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.networkConfiguration.assignPublicIp")
        li_ContainerPrivileged = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.privileged")
        li_ContainerReadonlyRootFilesystem = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.readonlyRootFilesystem")
        ls_ContainerUser = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.user")
        li_ContainerVcpus = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.vcpus")
        ls_TargetNodes = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].targetNodes")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.command")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_StrVal = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.command[k]")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.environment")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Name = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.environment[k].name")
            ls_Value = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.environment[k].value")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_ContainerPath = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].containerPath")
            ls_HostPath = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k].hostPath")

            loo_Json1 = loo_JResp.ObjectOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k]")
            li_I1 = 0
            li_Count_i1 = loo_Json1.SizeOfArray("permissions")
            do while li_I1 < li_Count_i1
                loo_Json1.I = li_I1
                ls_StrVal = loo_Json1.StringOf("permissions[i]")
                li_I1 = li_I1 + 1
            loop
            destroy loo_Json1
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_ContainerPath = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].containerPath")
            li_Size = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].size")

            loo_Json1 = loo_JResp.ObjectOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k]")
            li_I1 = 0
            li_Count_i1 = loo_Json1.SizeOfArray("mountOptions")
            do while li_I1 < li_Count_i1
                loo_Json1.I = li_I1
                ls_StrVal = loo_Json1.StringOf("mountOptions[i]")
                li_I1 = li_I1 + 1
            loop
            destroy loo_Json1
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Name = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].name")
            ls_ValueFrom = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].valueFrom")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_ContainerPath = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].containerPath")
            li_ReadOnly = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].readOnly")
            ls_SourceVolume = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].sourceVolume")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_V_type = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].type")
            ls_Value = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].value")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.secrets")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Name = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].name")
            ls_ValueFrom = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].valueFrom")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits")
        do while k < li_Count_k
            loo_JResp.K = k
            li_HardLimit = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].hardLimit")
            ls_Name = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].name")
            li_SoftLimit = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].softLimit")
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_AuthorizationConfigAccessPointId = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.accessPointId")
            ls_AuthorizationConfigIam = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.iam")
            ls_EfsVolumeConfigurationFileSystemId = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.fileSystemId")
            ls_EfsVolumeConfigurationRootDirectory = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.rootDirectory")
            ls_EfsVolumeConfigurationTransitEncryption = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryption")
            li_EfsVolumeConfigurationTransitEncryptionPort = loo_JResp.IntOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryptionPort")
            ls_HostSourcePath = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].host.sourcePath")
            ls_Name = loo_JResp.StringOf("jobs[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].name")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].platformCapabilities")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("jobs[i].platformCapabilities[j]")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("jobs[i].retryStrategy.evaluateOnExit")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Action = loo_JResp.StringOf("jobs[i].retryStrategy.evaluateOnExit[j].action")
        ls_OnExitCode = loo_JResp.StringOf("jobs[i].retryStrategy.evaluateOnExit[j].onExitCode")
        ls_OnReason = loo_JResp.StringOf("jobs[i].retryStrategy.evaluateOnExit[j].onReason")
        ls_OnStatusReason = loo_JResp.StringOf("jobs[i].retryStrategy.evaluateOnExit[j].onStatusReason")
        j = j + 1
    loop
    i = i + 1
loop

// 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
//       }
//     }
//   ]
// }


destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
destroy loo_JResp