drs / Paginator / DescribeJobs


class drs.Paginator.DescribeJobs#
paginator = client.get_paginator('describe_jobs')

Creates an iterator that will paginate through responses from drs.Client.describe_jobs().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'fromDate': 'string',
        'jobIDs': [
        'toDate': 'string'
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • filters (dict) –

    A set of filters by which to return Jobs.

    • fromDate (string) –

      The start date in a date range query.

    • jobIDs (list) –

      An array of Job IDs that should be returned. An empty array means all jobs.

      • (string) –

    • toDate (string) –

      The end date in a date range query.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:



Response Syntax

    'items': [
            'arn': 'string',
            'creationDateTime': 'string',
            'endDateTime': 'string',
            'jobID': 'string',
            'participatingServers': [
                    'launchStatus': 'PENDING'|'IN_PROGRESS'|'LAUNCHED'|'FAILED'|'TERMINATED',
                    'recoveryInstanceID': 'string',
                    'sourceServerID': 'string'
            'status': 'PENDING'|'STARTED'|'COMPLETED',
            'tags': {
                'string': 'string'
    'NextToken': 'string'

Response Structure

  • (dict) –

    • items (list) –

      An array of Jobs.

      • (dict) –

        A job is an asynchronous workflow.

        • arn (string) –

          The ARN of a Job.

        • creationDateTime (string) –

          The date and time of when the Job was created.

        • endDateTime (string) –

          The date and time of when the Job ended.

        • initiatedBy (string) –

          A string representing who initiated the Job.

        • jobID (string) –

          The ID of the Job.

        • participatingServers (list) –

          A list of servers that the Job is acting upon.

          • (dict) –

            Represents a server participating in an asynchronous Job.

            • launchStatus (string) –

              The launch status of a participating server.

            • recoveryInstanceID (string) –

              The Recovery Instance ID of a participating server.

            • sourceServerID (string) –

              The Source Server ID of a participating server.

        • status (string) –

          The status of the Job.

        • tags (dict) –

          A list of tags associated with the Job.

          • (string) –

            • (string) –

        • type (string) –

          The type of the Job.

    • NextToken (string) –

      A token to resume pagination.