Backup / Paginator / ListRestoreJobsByProtectedResource

ListRestoreJobsByProtectedResource#

class Backup.Paginator.ListRestoreJobsByProtectedResource#
paginator = client.get_paginator('list_restore_jobs_by_protected_resource')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Backup.Client.list_restore_jobs_by_protected_resource().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ResourceArn='string',
    ByStatus='PENDING'|'RUNNING'|'COMPLETED'|'ABORTED'|'FAILED',
    ByRecoveryPointCreationDateAfter=datetime(2015, 1, 1),
    ByRecoveryPointCreationDateBefore=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    Returns only restore jobs that match the specified resource Amazon Resource Name (ARN).

  • ByStatus (string) – Returns only restore jobs associated with the specified job status.

  • ByRecoveryPointCreationDateAfter (datetime) – Returns only restore jobs of recovery points that were created after the specified date.

  • ByRecoveryPointCreationDateBefore (datetime) – Returns only restore jobs of recovery points that were created before the specified date.

  • 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:

dict

Returns:

Response Syntax

{
    'RestoreJobs': [
        {
            'AccountId': 'string',
            'RestoreJobId': 'string',
            'RecoveryPointArn': 'string',
            'CreationDate': datetime(2015, 1, 1),
            'CompletionDate': datetime(2015, 1, 1),
            'Status': 'PENDING'|'RUNNING'|'COMPLETED'|'ABORTED'|'FAILED',
            'StatusMessage': 'string',
            'PercentDone': 'string',
            'BackupSizeInBytes': 123,
            'IamRoleArn': 'string',
            'ExpectedCompletionTimeMinutes': 123,
            'CreatedResourceArn': 'string',
            'ResourceType': 'string',
            'RecoveryPointCreationDate': datetime(2015, 1, 1),
            'CreatedBy': {
                'RestoreTestingPlanArn': 'string'
            },
            'ValidationStatus': 'FAILED'|'SUCCESSFUL'|'TIMED_OUT'|'VALIDATING',
            'ValidationStatusMessage': 'string',
            'DeletionStatus': 'DELETING'|'FAILED'|'SUCCESSFUL',
            'DeletionStatusMessage': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • RestoreJobs (list) –

      An array of objects that contain detailed information about jobs to restore saved resources.>

      • (dict) –

        Contains metadata about a restore job.

        • AccountId (string) –

          The account ID that owns the restore job.

        • RestoreJobId (string) –

          Uniquely identifies the job that restores a recovery point.

        • RecoveryPointArn (string) –

          An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

        • CreationDate (datetime) –

          The date and time a restore job is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

        • CompletionDate (datetime) –

          The date and time a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

        • Status (string) –

          A status code specifying the state of the job initiated by Backup to restore a recovery point.

        • StatusMessage (string) –

          A detailed message explaining the status of the job to restore a recovery point.

        • PercentDone (string) –

          Contains an estimated percentage complete of a job at the time the job status was queried.

        • BackupSizeInBytes (integer) –

          The size, in bytes, of the restored resource.

        • IamRoleArn (string) –

          The IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access.

        • ExpectedCompletionTimeMinutes (integer) –

          The amount of time in minutes that a job restoring a recovery point is expected to take.

        • CreatedResourceArn (string) –

          An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.

        • ResourceType (string) –

          The resource type of the listed restore jobs; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.

        • RecoveryPointCreationDate (datetime) –

          The date on which a recovery point was created.

        • CreatedBy (dict) –

          Contains identifying information about the creation of a restore job.

          • RestoreTestingPlanArn (string) –

            An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan.

        • ValidationStatus (string) –

          The status of validation run on the indicated restore job.

        • ValidationStatusMessage (string) –

          This describes the status of validation run on the indicated restore job.

        • DeletionStatus (string) –

          This notes the status of the data generated by the restore test. The status may be Deleting, Failed, or Successful.

        • DeletionStatusMessage (string) –

          This describes the restore job deletion status.