Chilkat Online Tools

DescribeJobDefinitions VB.NET Example

AWS Batch

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

Dim rest As New Chilkat.Rest
Dim success As Boolean

Dim authAws As New Chilkat.AuthAws
authAws.AccessKey = "AWS_ACCESS_KEY"
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.)
authAws.Region = "us-west-2"
authAws.ServiceName = "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("batch.us-west-2.amazonaws.com",443,True,True)
If (success <> True) Then
    Debug.WriteLine("ConnectFailReason: " & rest.ConnectFailReason)
    Debug.WriteLine(rest.LastErrorText)
    Exit Sub
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

Dim json As New Chilkat.JsonObject
json.UpdateString("jobDefinitionName","string")
json.UpdateString("jobDefinitions[0]","string")
json.UpdateInt("maxResults",123)
json.UpdateString("nextToken","string")
json.UpdateString("status","string")

' The JSON request body created by the above code:

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

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

Dim sbRequestBody As New Chilkat.StringBuilder
json.EmitSb(sbRequestBody)
Dim sbResponseBody As New Chilkat.StringBuilder
success = rest.FullRequestSb("POST","/v1/describejobdefinitions",sbRequestBody,sbResponseBody)
If (success <> True) Then
    Debug.WriteLine(rest.LastErrorText)
    Exit Sub
End If

Dim respStatusCode As Integer = rest.ResponseStatusCode
Debug.WriteLine("response status code = " & respStatusCode)
If (respStatusCode <> 200) Then
    Debug.WriteLine("Response Header:")
    Debug.WriteLine(rest.ResponseHeader)
    Debug.WriteLine("Response Body:")
    Debug.WriteLine(sbResponseBody.GetAsString())
    Exit Sub
End If


Dim jResp As New Chilkat.JsonObject
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



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

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

            json1 = jResp.ObjectOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.devices[k]")
            i1 = 0
            count_i1 = json1.SizeOfArray("permissions")
            While i1 < count_i1
                json1.I = i1
                strVal = json1.StringOf("permissions[i]")
                i1 = i1 + 1
            End While

            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs")
        While k < count_k
            jResp.K = k
            containerPath = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].containerPath")
            size = jResp.IntOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k].size")

            json1 = jResp.ObjectOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.linuxParameters.tmpfs[k]")
            i1 = 0
            count_i1 = json1.SizeOfArray("mountOptions")
            While i1 < count_i1
                json1.I = i1
                strVal = json1.StringOf("mountOptions[i]")
                i1 = i1 + 1
            End While

            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions")
        While k < count_k
            jResp.K = k
            name = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].name")
            valueFrom = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.logConfiguration.secretOptions[k].valueFrom")
            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints")
        While k < count_k
            jResp.K = k
            containerPath = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].containerPath")
            readOnly = jResp.IntOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].readOnly")
            sourceVolume = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.mountPoints[k].sourceVolume")
            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements")
        While k < count_k
            jResp.K = k
            v_type = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].type")
            value = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.resourceRequirements[k].value")
            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets")
        While k < count_k
            jResp.K = k
            name = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].name")
            valueFrom = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.secrets[k].valueFrom")
            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits")
        While k < count_k
            jResp.K = k
            hardLimit = jResp.IntOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].hardLimit")
            name = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].name")
            softLimit = jResp.IntOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.ulimits[k].softLimit")
            k = k + 1
        End While
        k = 0
        count_k = jResp.SizeOfArray("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes")
        While k < count_k
            jResp.K = k
            AuthorizationConfigAccessPointId = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.accessPointId")
            AuthorizationConfigIam = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.authorizationConfig.iam")
            efsVolumeConfigurationFileSystemId = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.fileSystemId")
            efsVolumeConfigurationRootDirectory = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.rootDirectory")
            efsVolumeConfigurationTransitEncryption = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryption")
            efsVolumeConfigurationTransitEncryptionPort = jResp.IntOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].efsVolumeConfiguration.transitEncryptionPort")
            hostSourcePath = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].host.sourcePath")
            name = jResp.StringOf("jobDefinitions[i].nodeProperties.nodeRangeProperties[j].container.volumes[k].name")
            k = k + 1
        End While
        j = j + 1
    End While
    j = 0
    count_j = jResp.SizeOfArray("jobDefinitions[i].platformCapabilities")
    While j < count_j
        jResp.J = j
        strVal = jResp.StringOf("jobDefinitions[i].platformCapabilities[j]")
        j = j + 1
    End While
    j = 0
    count_j = jResp.SizeOfArray("jobDefinitions[i].retryStrategy.evaluateOnExit")
    While j < count_j
        jResp.J = j
        action = jResp.StringOf("jobDefinitions[i].retryStrategy.evaluateOnExit[j].action")
        onExitCode = jResp.StringOf("jobDefinitions[i].retryStrategy.evaluateOnExit[j].onExitCode")
        onReason = jResp.StringOf("jobDefinitions[i].retryStrategy.evaluateOnExit[j].onReason")
        onStatusReason = jResp.StringOf("jobDefinitions[i].retryStrategy.evaluateOnExit[j].onStatusReason")
        j = j + 1
    End While
    i = i + 1
End While


' 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"
' }