AWS Backup

2025/10/14 - AWS Backup - 9 updated api methods

Changes  The AWS Backup job attribute extension enhancement helps customers better understand the plan that initiated each job, and the properties of the resource each job creates.

DescribeBackupJob (updated) Link ¶
Changes (response)
{'CreatedBy': {'BackupPlanName': 'string',
               'BackupRuleCron': 'string',
               'BackupRuleName': 'string',
               'BackupRuleTimezone': 'string'},
 'EncryptionKeyArn': 'string',
 'IsEncrypted': 'boolean',
 'RecoveryPointLifecycle': {'DeleteAfterDays': 'long',
                            'MoveToColdStorageAfterDays': 'long',
                            'OptInToArchiveForSupportedResources': 'boolean'},
 'VaultLockState': 'string',
 'VaultType': 'string'}

Returns backup job details for the specified BackupJobId.

See also: AWS API Documentation

Request Syntax

client.describe_backup_job(
    BackupJobId='string'
)
type BackupJobId:

string

param BackupJobId:

[REQUIRED]

Uniquely identifies a request to Backup to back up a resource.

rtype:

dict

returns:

Response Syntax

{
    'AccountId': 'string',
    'BackupJobId': 'string',
    'BackupVaultName': 'string',
    'RecoveryPointLifecycle': {
        'MoveToColdStorageAfterDays': 123,
        'DeleteAfterDays': 123,
        'OptInToArchiveForSupportedResources': True|False
    },
    'BackupVaultArn': 'string',
    'VaultType': 'string',
    'VaultLockState': 'string',
    'RecoveryPointArn': 'string',
    'EncryptionKeyArn': 'string',
    'IsEncrypted': True|False,
    'ResourceArn': 'string',
    'CreationDate': datetime(2015, 1, 1),
    'CompletionDate': datetime(2015, 1, 1),
    'State': 'CREATED'|'PENDING'|'RUNNING'|'ABORTING'|'ABORTED'|'COMPLETED'|'FAILED'|'EXPIRED'|'PARTIAL',
    'StatusMessage': 'string',
    'PercentDone': 'string',
    'BackupSizeInBytes': 123,
    'IamRoleArn': 'string',
    'CreatedBy': {
        'BackupPlanId': 'string',
        'BackupPlanArn': 'string',
        'BackupPlanName': 'string',
        'BackupPlanVersion': 'string',
        'BackupRuleId': 'string',
        'BackupRuleName': 'string',
        'BackupRuleCron': 'string',
        'BackupRuleTimezone': 'string'
    },
    'ResourceType': 'string',
    'BytesTransferred': 123,
    'ExpectedCompletionDate': datetime(2015, 1, 1),
    'StartBy': datetime(2015, 1, 1),
    'BackupOptions': {
        'string': 'string'
    },
    'BackupType': 'string',
    'ParentJobId': 'string',
    'IsParent': True|False,
    'NumberOfChildJobs': 123,
    'ChildJobsInState': {
        'string': 123
    },
    'ResourceName': 'string',
    'InitiationDate': datetime(2015, 1, 1),
    'MessageCategory': 'string'
}

Response Structure

  • (dict) --

    • AccountId (string) --

      Returns the account ID that owns the backup job.

    • BackupJobId (string) --

      Uniquely identifies a request to Backup to back up a resource.

    • BackupVaultName (string) --

      The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

    • RecoveryPointLifecycle (dict) --

      Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.

      Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.

      Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.

      To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays.

      • MoveToColdStorageAfterDays (integer) --

        The number of days after creation that a recovery point is moved to cold storage.

      • DeleteAfterDays (integer) --

        The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays.

      • OptInToArchiveForSupportedResources (boolean) --

        If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.

    • BackupVaultArn (string) --

      An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

    • VaultType (string) --

      The type of backup vault where the recovery point is stored. Valid values are BACKUP_VAULT for standard backup vaults and LOGICALLY_AIR_GAPPED_BACKUP_VAULT for logically air-gapped vaults.

    • VaultLockState (string) --

      The lock state of the backup vault. For logically air-gapped vaults, this indicates whether the vault is locked in compliance mode. Valid values include LOCKED and UNLOCKED.

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

    • EncryptionKeyArn (string) --

      The Amazon Resource Name (ARN) of the KMS key used to encrypt the backup. This can be a customer-managed key or an Amazon Web Services managed key, depending on the vault configuration.

    • IsEncrypted (boolean) --

      A boolean value indicating whether the backup is encrypted. All backups in Backup are encrypted, but this field indicates the encryption status for transparency.

    • ResourceArn (string) --

      An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.

    • CreationDate (datetime) --

      The date and time that a backup 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 that a job to create a backup job 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.

    • State (string) --

      The current state of a backup job.

    • StatusMessage (string) --

      A detailed message explaining the status of the job to back up a resource.

    • PercentDone (string) --

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

    • BackupSizeInBytes (integer) --

      The size, in bytes, of a backup (recovery point).

      This value can render differently depending on the resource type as Backup pulls in data information from other Amazon Web Services services. For example, the value returned may show a value of 0, which may differ from the anticipated value.

      The expected behavior for values by resource type are described as follows:

      • Amazon Aurora, Amazon DocumentDB, and Amazon Neptune do not have this value populate from the operation GetBackupJobStatus.

      • For Amazon DynamoDB with advanced features, this value refers to the size of the recovery point (backup).

      • Amazon EC2 and Amazon EBS show volume size (provisioned storage) returned as part of this value. Amazon EBS does not return backup size information; snapshot size will have the same value as the original resource that was backed up.

      • For Amazon EFS, this value refers to the delta bytes transferred during a backup.

      • Amazon FSx does not populate this value from the operation GetBackupJobStatus for FSx file systems.

      • An Amazon RDS instance will show as 0.

      • For virtual machines running VMware, this value is passed to Backup through an asynchronous workflow, which can mean this displayed value can under-represent the actual backup size.

    • IamRoleArn (string) --

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

    • CreatedBy (dict) --

      Contains identifying information about the creation of a backup job, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan that is used to create it.

      • BackupPlanId (string) --

        Uniquely identifies a backup plan.

      • BackupPlanArn (string) --

        An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

      • BackupPlanName (string) --

        The name of the backup plan that created this recovery point. This provides human-readable context about which backup plan was responsible for the backup job.

      • BackupPlanVersion (string) --

        Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.

      • BackupRuleId (string) --

        Uniquely identifies a rule used to schedule the backup of a selection of resources.

      • BackupRuleName (string) --

        The name of the backup rule within the backup plan that created this recovery point. This helps identify which specific rule triggered the backup job.

      • BackupRuleCron (string) --

        The cron expression that defines the schedule for the backup rule. This shows the frequency and timing of when backups are automatically triggered.

      • BackupRuleTimezone (string) --

        The timezone used for the backup rule schedule. This provides context for when backups are scheduled to run in the specified timezone.

    • ResourceType (string) --

      The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

    • BytesTransferred (integer) --

      The size in bytes transferred to a backup vault at the time that the job status was queried.

    • ExpectedCompletionDate (datetime) --

      The date and time that a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • StartBy (datetime) --

      Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the StartBy time would be 8:00 PM on the date specified. The value of StartBy is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

    • BackupOptions (dict) --

      Represents the options specified as part of backup plan or on-demand backup job.

      • (string) --

        • (string) --

    • BackupType (string) --

      Represents the actual backup type selected for a backup job. For example, if a successful Windows Volume Shadow Copy Service (VSS) backup was taken, BackupType returns "WindowsVSS". If BackupType is empty, then the backup type was a regular backup.

    • ParentJobId (string) --

      This returns the parent (composite) resource backup job ID.

    • IsParent (boolean) --

      This returns the boolean value that a backup job is a parent (composite) job.

    • NumberOfChildJobs (integer) --

      This returns the number of child (nested) backup jobs.

    • ChildJobsInState (dict) --

      This returns the statistics of the included child (nested) backup jobs.

      • (string) --

        • (integer) --

    • ResourceName (string) --

      The non-unique name of the resource that belongs to the specified backup.

    • InitiationDate (datetime) --

      The date a backup job was initiated.

    • MessageCategory (string) --

      The job count for the specified message category.

      Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS. View Monitoring for a list of accepted MessageCategory strings.

DescribeCopyJob (updated) Link ¶
Changes (response)
{'CopyJob': {'CreatedBy': {'BackupPlanName': 'string',
                           'BackupRuleCron': 'string',
                           'BackupRuleName': 'string',
                           'BackupRuleTimezone': 'string'},
             'DestinationEncryptionKeyArn': 'string',
             'DestinationRecoveryPointLifecycle': {'DeleteAfterDays': 'long',
                                                   'MoveToColdStorageAfterDays': 'long',
                                                   'OptInToArchiveForSupportedResources': 'boolean'},
             'DestinationVaultLockState': 'string',
             'DestinationVaultType': 'string'}}

Returns metadata associated with creating a copy of a resource.

See also: AWS API Documentation

Request Syntax

client.describe_copy_job(
    CopyJobId='string'
)
type CopyJobId:

string

param CopyJobId:

[REQUIRED]

Uniquely identifies a copy job.

rtype:

dict

returns:

Response Syntax

{
    'CopyJob': {
        'AccountId': 'string',
        'CopyJobId': 'string',
        'SourceBackupVaultArn': 'string',
        'SourceRecoveryPointArn': 'string',
        'DestinationBackupVaultArn': 'string',
        'DestinationVaultType': 'string',
        'DestinationVaultLockState': 'string',
        'DestinationRecoveryPointArn': 'string',
        'DestinationEncryptionKeyArn': 'string',
        'DestinationRecoveryPointLifecycle': {
            'MoveToColdStorageAfterDays': 123,
            'DeleteAfterDays': 123,
            'OptInToArchiveForSupportedResources': True|False
        },
        'ResourceArn': 'string',
        'CreationDate': datetime(2015, 1, 1),
        'CompletionDate': datetime(2015, 1, 1),
        'State': 'CREATED'|'RUNNING'|'COMPLETED'|'FAILED'|'PARTIAL',
        'StatusMessage': 'string',
        'BackupSizeInBytes': 123,
        'IamRoleArn': 'string',
        'CreatedBy': {
            'BackupPlanId': 'string',
            'BackupPlanArn': 'string',
            'BackupPlanName': 'string',
            'BackupPlanVersion': 'string',
            'BackupRuleId': 'string',
            'BackupRuleName': 'string',
            'BackupRuleCron': 'string',
            'BackupRuleTimezone': 'string'
        },
        'ResourceType': 'string',
        'ParentJobId': 'string',
        'IsParent': True|False,
        'CompositeMemberIdentifier': 'string',
        'NumberOfChildJobs': 123,
        'ChildJobsInState': {
            'string': 123
        },
        'ResourceName': 'string',
        'MessageCategory': 'string'
    }
}

Response Structure

  • (dict) --

    • CopyJob (dict) --

      Contains detailed information about a copy job.

      • AccountId (string) --

        The account ID that owns the copy job.

      • CopyJobId (string) --

        Uniquely identifies a copy job.

      • SourceBackupVaultArn (string) --

        An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

      • SourceRecoveryPointArn (string) --

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

      • DestinationBackupVaultArn (string) --

        An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

      • DestinationVaultType (string) --

        The type of destination backup vault where the copied recovery point is stored. Valid values are BACKUP_VAULT for standard backup vaults and LOGICALLY_AIR_GAPPED_BACKUP_VAULT for logically air-gapped vaults.

      • DestinationVaultLockState (string) --

        The lock state of the destination backup vault. For logically air-gapped vaults, this indicates whether the vault is locked in compliance mode. Valid values include LOCKED and UNLOCKED.

      • DestinationRecoveryPointArn (string) --

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

      • DestinationEncryptionKeyArn (string) --

        The Amazon Resource Name (ARN) of the KMS key used to encrypt the copied backup in the destination vault. This can be a customer-managed key or an Amazon Web Services managed key.

      • DestinationRecoveryPointLifecycle (dict) --

        Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.

        Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.

        Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.

        To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays.

        • MoveToColdStorageAfterDays (integer) --

          The number of days after creation that a recovery point is moved to cold storage.

        • DeleteAfterDays (integer) --

          The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays.

        • OptInToArchiveForSupportedResources (boolean) --

          If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.

      • ResourceArn (string) --

        The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

      • CreationDate (datetime) --

        The date and time a copy 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 copy job 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.

      • State (string) --

        The current state of a copy job.

      • StatusMessage (string) --

        A detailed message explaining the status of the job to copy a resource.

      • BackupSizeInBytes (integer) --

        The size, in bytes, of a copy job.

      • IamRoleArn (string) --

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

      • CreatedBy (dict) --

        Contains information about the backup plan and rule that Backup used to initiate the recovery point backup.

        • BackupPlanId (string) --

          Uniquely identifies a backup plan.

        • BackupPlanArn (string) --

          An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

        • BackupPlanName (string) --

          The name of the backup plan that created this recovery point. This provides human-readable context about which backup plan was responsible for the backup job.

        • BackupPlanVersion (string) --

          Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.

        • BackupRuleId (string) --

          Uniquely identifies a rule used to schedule the backup of a selection of resources.

        • BackupRuleName (string) --

          The name of the backup rule within the backup plan that created this recovery point. This helps identify which specific rule triggered the backup job.

        • BackupRuleCron (string) --

          The cron expression that defines the schedule for the backup rule. This shows the frequency and timing of when backups are automatically triggered.

        • BackupRuleTimezone (string) --

          The timezone used for the backup rule schedule. This provides context for when backups are scheduled to run in the specified timezone.

      • ResourceType (string) --

        The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

      • ParentJobId (string) --

        This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.

      • IsParent (boolean) --

        This is a boolean value indicating this is a parent (composite) copy job.

      • CompositeMemberIdentifier (string) --

        The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.

      • NumberOfChildJobs (integer) --

        The number of child (nested) copy jobs.

      • ChildJobsInState (dict) --

        This returns the statistics of the included child (nested) copy jobs.

        • (string) --

          • (integer) --

      • ResourceName (string) --

        The non-unique name of the resource that belongs to the specified backup.

      • MessageCategory (string) --

        This parameter is the job count for the specified message category.

        Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and InvalidParameters. See Monitoring for a list of MessageCategory strings.

        The the value ANY returns count of all message categories.

        AGGREGATE_ALL aggregates job counts for all message categories and returns the sum

DescribeRecoveryPoint (updated) Link ¶
Changes (response)
{'CreatedBy': {'BackupPlanName': 'string',
               'BackupRuleCron': 'string',
               'BackupRuleName': 'string',
               'BackupRuleTimezone': 'string'}}

Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.

See also: AWS API Documentation

Request Syntax

client.describe_recovery_point(
    BackupVaultName='string',
    RecoveryPointArn='string',
    BackupVaultAccountId='string'
)
type BackupVaultName:

string

param BackupVaultName:

[REQUIRED]

The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

type RecoveryPointArn:

string

param RecoveryPointArn:

[REQUIRED]

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

type BackupVaultAccountId:

string

param BackupVaultAccountId:

The account ID of the specified backup vault.

rtype:

dict

returns:

Response Syntax

{
    'RecoveryPointArn': 'string',
    'BackupVaultName': 'string',
    'BackupVaultArn': 'string',
    'SourceBackupVaultArn': 'string',
    'ResourceArn': 'string',
    'ResourceType': 'string',
    'CreatedBy': {
        'BackupPlanId': 'string',
        'BackupPlanArn': 'string',
        'BackupPlanName': 'string',
        'BackupPlanVersion': 'string',
        'BackupRuleId': 'string',
        'BackupRuleName': 'string',
        'BackupRuleCron': 'string',
        'BackupRuleTimezone': 'string'
    },
    'IamRoleArn': 'string',
    'Status': 'COMPLETED'|'PARTIAL'|'DELETING'|'EXPIRED'|'AVAILABLE'|'STOPPED'|'CREATING',
    'StatusMessage': 'string',
    'CreationDate': datetime(2015, 1, 1),
    'InitiationDate': datetime(2015, 1, 1),
    'CompletionDate': datetime(2015, 1, 1),
    'BackupSizeInBytes': 123,
    'CalculatedLifecycle': {
        'MoveToColdStorageAt': datetime(2015, 1, 1),
        'DeleteAt': datetime(2015, 1, 1)
    },
    'Lifecycle': {
        'MoveToColdStorageAfterDays': 123,
        'DeleteAfterDays': 123,
        'OptInToArchiveForSupportedResources': True|False
    },
    'EncryptionKeyArn': 'string',
    'IsEncrypted': True|False,
    'StorageClass': 'WARM'|'COLD'|'DELETED',
    'LastRestoreTime': datetime(2015, 1, 1),
    'ParentRecoveryPointArn': 'string',
    'CompositeMemberIdentifier': 'string',
    'IsParent': True|False,
    'ResourceName': 'string',
    'VaultType': 'BACKUP_VAULT'|'LOGICALLY_AIR_GAPPED_BACKUP_VAULT'|'RESTORE_ACCESS_BACKUP_VAULT',
    'IndexStatus': 'PENDING'|'ACTIVE'|'FAILED'|'DELETING',
    'IndexStatusMessage': 'string'
}

Response Structure

  • (dict) --

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

    • BackupVaultName (string) --

      The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.

    • BackupVaultArn (string) --

      An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

    • SourceBackupVaultArn (string) --

      An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally backed up in; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. If the recovery is restored to the same Amazon Web Services account or Region, this value will be null.

    • ResourceArn (string) --

      An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type.

    • ResourceType (string) --

      The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

    • CreatedBy (dict) --

      Contains identifying information about the creation of a recovery point, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan used to create it.

      • BackupPlanId (string) --

        Uniquely identifies a backup plan.

      • BackupPlanArn (string) --

        An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

      • BackupPlanName (string) --

        The name of the backup plan that created this recovery point. This provides human-readable context about which backup plan was responsible for the backup job.

      • BackupPlanVersion (string) --

        Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.

      • BackupRuleId (string) --

        Uniquely identifies a rule used to schedule the backup of a selection of resources.

      • BackupRuleName (string) --

        The name of the backup rule within the backup plan that created this recovery point. This helps identify which specific rule triggered the backup job.

      • BackupRuleCron (string) --

        The cron expression that defines the schedule for the backup rule. This shows the frequency and timing of when backups are automatically triggered.

      • BackupRuleTimezone (string) --

        The timezone used for the backup rule schedule. This provides context for when backups are scheduled to run in the specified timezone.

    • IamRoleArn (string) --

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

    • Status (string) --

      A status code specifying the state of the recovery point. For more information, see Recovery point status in the Backup Developer Guide.

      • CREATING status indicates that an Backup job has been initiated for a resource. The backup process has started and is actively processing a backup job for the associated recovery point.

      • AVAILABLE status indicates that the backup was successfully created for the recovery point. The backup process has completed without any issues, and the recovery point is now ready for use.

      • PARTIAL status indicates a composite recovery point has one or more nested recovery points that were not in the backup.

      • EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see Step 3: Delete the recovery points in the Clean up resources section of Getting started.

      • STOPPED status occurs on a continuous backup where a user has taken some action that causes the continuous backup to be disabled. This can be caused by the removal of permissions, turning off versioning, turning off events being sent to EventBridge, or disabling the EventBridge rules that are put in place by Backup. For recovery points of Amazon S3, Amazon RDS, and Amazon Aurora resources, this status occurs when the retention period of a continuous backup rule is changed. To resolve STOPPED status, ensure that all requested permissions are in place and that versioning is enabled on the S3 bucket. Once these conditions are met, the next instance of a backup rule running will result in a new continuous recovery point being created. The recovery points with STOPPED status do not need to be deleted. For SAP HANA on Amazon EC2 STOPPED status occurs due to user action, application misconfiguration, or backup failure. To ensure that future continuous backups succeed, refer to the recovery point status and check SAP HANA for details.

    • StatusMessage (string) --

      A status message explaining the status of the recovery point.

    • CreationDate (datetime) --

      The date and time that a recovery point 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.

    • InitiationDate (datetime) --

      The date and time when the backup job that created this recovery point was initiated, in Unix format and Coordinated Universal Time (UTC).

    • CompletionDate (datetime) --

      The date and time that a job to create 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.

    • BackupSizeInBytes (integer) --

      The size, in bytes, of a backup.

    • CalculatedLifecycle (dict) --

      A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

      • MoveToColdStorageAt (datetime) --

        A timestamp that specifies when to transition a recovery point to cold storage.

      • DeleteAt (datetime) --

        A timestamp that specifies when to delete a recovery point.

    • Lifecycle (dict) --

      The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

      Backups that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

      Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.

      • MoveToColdStorageAfterDays (integer) --

        The number of days after creation that a recovery point is moved to cold storage.

      • DeleteAfterDays (integer) --

        The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays.

      • OptInToArchiveForSupportedResources (boolean) --

        If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.

    • EncryptionKeyArn (string) --

      The server-side encryption key used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    • IsEncrypted (boolean) --

      A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or FALSE if the recovery point is not encrypted.

    • StorageClass (string) --

      Specifies the storage class of the recovery point. Valid values are WARM or COLD.

    • LastRestoreTime (datetime) --

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

    • ParentRecoveryPointArn (string) --

      This is an ARN that uniquely identifies a parent (composite) recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

    • CompositeMemberIdentifier (string) --

      The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.

    • IsParent (boolean) --

      This returns the boolean value that a recovery point is a parent (composite) job.

    • ResourceName (string) --

      The name of the resource that belongs to the specified backup.

    • VaultType (string) --

      The type of vault in which the described recovery point is stored.

    • IndexStatus (string) --

      This is the current status for the backup index associated with the specified recovery point.

      Statuses are: PENDING | ACTIVE | FAILED | DELETING

      A recovery point with an index that has the status of ACTIVE can be included in a search.

    • IndexStatusMessage (string) --

      A string in the form of a detailed message explaining the status of a backup index associated with the recovery point.

DescribeRestoreJob (updated) Link ¶
Changes (response)
{'BackupVaultArn': 'string', 'SourceResourceArn': 'string'}

Returns metadata associated with a restore job that is specified by a job ID.

See also: AWS API Documentation

Request Syntax

client.describe_restore_job(
    RestoreJobId='string'
)
type RestoreJobId:

string

param RestoreJobId:

[REQUIRED]

Uniquely identifies the job that restores a recovery point.

rtype:

dict

returns:

Response Syntax

{
    'AccountId': 'string',
    'RestoreJobId': 'string',
    'RecoveryPointArn': 'string',
    'SourceResourceArn': 'string',
    'BackupVaultArn': '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) --

    • AccountId (string) --

      Returns 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.

    • SourceResourceArn (string) --

      The Amazon Resource Name (ARN) of the original resource that was backed up. This provides context about what resource is being restored.

    • BackupVaultArn (string) --

      The Amazon Resource Name (ARN) of the backup vault containing the recovery point being restored. This helps identify vault access policies and permissions.

    • CreationDate (datetime) --

      The date and time that 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 that 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) --

      Status code specifying the state of the job that is initiated by Backup to restore a recovery point.

    • StatusMessage (string) --

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

    • PercentDone (string) --

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

    • BackupSizeInBytes (integer) --

      The size, in bytes, of the restored resource.

    • IamRoleArn (string) --

      Specifies 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) --

      The Amazon Resource Name (ARN) of the resource that was created by the restore job.

      The format of the ARN depends on the resource type of the backed-up resource.

    • ResourceType (string) --

      Returns metadata associated with a restore job listed by resource type.

    • RecoveryPointCreationDate (datetime) --

      The creation date of the recovery point made by the specifed restore job.

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

      The status message.

    • DeletionStatus (string) --

      The status of the data generated by the restore test.

    • DeletionStatusMessage (string) --

      This describes the restore job deletion status.

ListBackupJobs (updated) Link ¶
Changes (response)
{'BackupJobs': {'CreatedBy': {'BackupPlanName': 'string',
                              'BackupRuleCron': 'string',
                              'BackupRuleName': 'string',
                              'BackupRuleTimezone': 'string'},
                'EncryptionKeyArn': 'string',
                'IsEncrypted': 'boolean',
                'RecoveryPointLifecycle': {'DeleteAfterDays': 'long',
                                           'MoveToColdStorageAfterDays': 'long',
                                           'OptInToArchiveForSupportedResources': 'boolean'},
                'VaultLockState': 'string',
                'VaultType': 'string'}}

Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools.

See also: AWS API Documentation

Request Syntax

client.list_backup_jobs(
    NextToken='string',
    MaxResults=123,
    ByResourceArn='string',
    ByState='CREATED'|'PENDING'|'RUNNING'|'ABORTING'|'ABORTED'|'COMPLETED'|'FAILED'|'EXPIRED'|'PARTIAL',
    ByBackupVaultName='string',
    ByCreatedBefore=datetime(2015, 1, 1),
    ByCreatedAfter=datetime(2015, 1, 1),
    ByResourceType='string',
    ByAccountId='string',
    ByCompleteAfter=datetime(2015, 1, 1),
    ByCompleteBefore=datetime(2015, 1, 1),
    ByParentJobId='string',
    ByMessageCategory='string'
)
type NextToken:

string

param NextToken:

The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

type MaxResults:

integer

param MaxResults:

The maximum number of items to be returned.

type ByResourceArn:

string

param ByResourceArn:

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

type ByState:

string

param ByState:

Returns only backup jobs that are in the specified state.

Completed with issues is a status found only in the Backup console. For API, this status refers to jobs with a state of COMPLETED and a MessageCategory with a value other than SUCCESS; that is, the status is completed but comes with a status message.

To obtain the job count for Completed with issues, run two GET requests, and subtract the second, smaller number:

GET /backup-jobs/?state=COMPLETED

GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED

type ByBackupVaultName:

string

param ByBackupVaultName:

Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

type ByCreatedBefore:

datetime

param ByCreatedBefore:

Returns only backup jobs that were created before the specified date.

type ByCreatedAfter:

datetime

param ByCreatedAfter:

Returns only backup jobs that were created after the specified date.

type ByResourceType:

string

param ByResourceType:

Returns only backup jobs for the specified resources:

  • Aurora for Amazon Aurora

  • CloudFormation for CloudFormation

  • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)

  • DynamoDB for Amazon DynamoDB

  • EBS for Amazon Elastic Block Store

  • EC2 for Amazon Elastic Compute Cloud

  • EFS for Amazon Elastic File System

  • FSx for Amazon FSx

  • Neptune for Amazon Neptune

  • RDS for Amazon Relational Database Service

  • Redshift for Amazon Redshift

  • S3 for Amazon Simple Storage Service (Amazon S3)

  • SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances

  • Storage Gateway for Storage Gateway

  • Timestream for Amazon Timestream

  • VirtualMachine for VMware virtual machines

type ByAccountId:

string

param ByAccountId:

The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.

If used from an Organizations management account, passing * returns all jobs across the organization.

type ByCompleteAfter:

datetime

param ByCompleteAfter:

Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

type ByCompleteBefore:

datetime

param ByCompleteBefore:

Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

type ByParentJobId:

string

param ByParentJobId:

This is a filter to list child (nested) jobs based on parent job ID.

type ByMessageCategory:

string

param ByMessageCategory:

This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.

Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and InvalidParameters.

View Monitoring

The wildcard () returns count of all message categories.

AGGREGATE_ALL aggregates job counts for all message categories and returns the sum.

rtype:

dict

returns:

Response Syntax

{
    'BackupJobs': [
        {
            'AccountId': 'string',
            'BackupJobId': 'string',
            'BackupVaultName': 'string',
            'BackupVaultArn': 'string',
            'VaultType': 'string',
            'VaultLockState': 'string',
            'RecoveryPointArn': 'string',
            'RecoveryPointLifecycle': {
                'MoveToColdStorageAfterDays': 123,
                'DeleteAfterDays': 123,
                'OptInToArchiveForSupportedResources': True|False
            },
            'EncryptionKeyArn': 'string',
            'IsEncrypted': True|False,
            'ResourceArn': 'string',
            'CreationDate': datetime(2015, 1, 1),
            'CompletionDate': datetime(2015, 1, 1),
            'State': 'CREATED'|'PENDING'|'RUNNING'|'ABORTING'|'ABORTED'|'COMPLETED'|'FAILED'|'EXPIRED'|'PARTIAL',
            'StatusMessage': 'string',
            'PercentDone': 'string',
            'BackupSizeInBytes': 123,
            'IamRoleArn': 'string',
            'CreatedBy': {
                'BackupPlanId': 'string',
                'BackupPlanArn': 'string',
                'BackupPlanName': 'string',
                'BackupPlanVersion': 'string',
                'BackupRuleId': 'string',
                'BackupRuleName': 'string',
                'BackupRuleCron': 'string',
                'BackupRuleTimezone': 'string'
            },
            'ExpectedCompletionDate': datetime(2015, 1, 1),
            'StartBy': datetime(2015, 1, 1),
            'ResourceType': 'string',
            'BytesTransferred': 123,
            'BackupOptions': {
                'string': 'string'
            },
            'BackupType': 'string',
            'ParentJobId': 'string',
            'IsParent': True|False,
            'ResourceName': 'string',
            'InitiationDate': datetime(2015, 1, 1),
            'MessageCategory': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • BackupJobs (list) --

      An array of structures containing metadata about your backup jobs returned in JSON format.

      • (dict) --

        Contains detailed information about a backup job.

        • AccountId (string) --

          The account ID that owns the backup job.

        • BackupJobId (string) --

          Uniquely identifies a request to Backup to back up a resource.

        • BackupVaultName (string) --

          The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

        • BackupVaultArn (string) --

          An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

        • VaultType (string) --

          The type of backup vault where the recovery point is stored. Valid values are BACKUP_VAULT for standard backup vaults and LOGICALLY_AIR_GAPPED_BACKUP_VAULT for logically air-gapped vaults.

        • VaultLockState (string) --

          The lock state of the backup vault. For logically air-gapped vaults, this indicates whether the vault is locked in compliance mode. Valid values include LOCKED and UNLOCKED.

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

        • RecoveryPointLifecycle (dict) --

          Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.

          Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.

          Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.

          To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays.

          • MoveToColdStorageAfterDays (integer) --

            The number of days after creation that a recovery point is moved to cold storage.

          • DeleteAfterDays (integer) --

            The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays.

          • OptInToArchiveForSupportedResources (boolean) --

            If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.

        • EncryptionKeyArn (string) --

          The Amazon Resource Name (ARN) of the KMS key used to encrypt the backup. This can be a customer-managed key or an Amazon Web Services managed key, depending on the vault configuration.

        • IsEncrypted (boolean) --

          A boolean value indicating whether the backup is encrypted. All backups in Backup are encrypted, but this field indicates the encryption status for transparency.

        • ResourceArn (string) --

          An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.

        • CreationDate (datetime) --

          The date and time a backup 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 create a backup job 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.

        • State (string) --

          The current state of a backup job.

        • StatusMessage (string) --

          A detailed message explaining the status of the job to back up a resource.

        • 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 a backup (recovery point).

          This value can render differently depending on the resource type as Backup pulls in data information from other Amazon Web Services services. For example, the value returned may show a value of 0, which may differ from the anticipated value.

          The expected behavior for values by resource type are described as follows:

          • Amazon Aurora, Amazon DocumentDB, and Amazon Neptune do not have this value populate from the operation GetBackupJobStatus.

          • For Amazon DynamoDB with advanced features, this value refers to the size of the recovery point (backup).

          • Amazon EC2 and Amazon EBS show volume size (provisioned storage) returned as part of this value. Amazon EBS does not return backup size information; snapshot size will have the same value as the original resource that was backed up.

          • For Amazon EFS, this value refers to the delta bytes transferred during a backup.

          • Amazon FSx does not populate this value from the operation GetBackupJobStatus for FSx file systems.

          • An Amazon RDS instance will show as 0.

          • For virtual machines running VMware, this value is passed to Backup through an asynchronous workflow, which can mean this displayed value can under-represent the actual backup size.

        • IamRoleArn (string) --

          Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must include either AWSBackup or AwsBackup in the role name. For example, arn:aws:iam::123456789012:role/AWSBackupRDSAccess. Role names without those strings lack permissions to perform backup jobs.

        • CreatedBy (dict) --

          Contains identifying information about the creation of a backup job, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan used to create it.

          • BackupPlanId (string) --

            Uniquely identifies a backup plan.

          • BackupPlanArn (string) --

            An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

          • BackupPlanName (string) --

            The name of the backup plan that created this recovery point. This provides human-readable context about which backup plan was responsible for the backup job.

          • BackupPlanVersion (string) --

            Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.

          • BackupRuleId (string) --

            Uniquely identifies a rule used to schedule the backup of a selection of resources.

          • BackupRuleName (string) --

            The name of the backup rule within the backup plan that created this recovery point. This helps identify which specific rule triggered the backup job.

          • BackupRuleCron (string) --

            The cron expression that defines the schedule for the backup rule. This shows the frequency and timing of when backups are automatically triggered.

          • BackupRuleTimezone (string) --

            The timezone used for the backup rule schedule. This provides context for when backups are scheduled to run in the specified timezone.

        • ExpectedCompletionDate (datetime) --

          The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

        • StartBy (datetime) --

          Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the StartBy time would be 8:00 PM on the date specified. The value of StartBy is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

        • ResourceType (string) --

          The type of Amazon Web Services resource to be backed up; 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.

        • BytesTransferred (integer) --

          The size in bytes transferred to a backup vault at the time that the job status was queried.

        • BackupOptions (dict) --

          Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.

          Valid values: Set to "WindowsVSS":"enabled" to enable the WindowsVSS backup option and create a Windows VSS backup. Set to "WindowsVSS":"disabled" to create a regular backup. If you specify an invalid option, you get an InvalidParameterValueException exception.

          • (string) --

            • (string) --

        • BackupType (string) --

          Represents the type of backup for a backup job.

        • ParentJobId (string) --

          This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job ID.

        • IsParent (boolean) --

          This is a boolean value indicating this is a parent (composite) backup job.

        • ResourceName (string) --

          The non-unique name of the resource that belongs to the specified backup.

        • InitiationDate (datetime) --

          The date on which the backup job was initiated.

        • MessageCategory (string) --

          This parameter is the job count for the specified message category.

          Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS. See Monitoring for a list of MessageCategory strings.

          The the value ANY returns count of all message categories.

          AGGREGATE_ALL aggregates job counts for all message categories and returns the sum.

    • NextToken (string) --

      The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

ListCopyJobs (updated) Link ¶
Changes (response)
{'CopyJobs': {'CreatedBy': {'BackupPlanName': 'string',
                            'BackupRuleCron': 'string',
                            'BackupRuleName': 'string',
                            'BackupRuleTimezone': 'string'},
              'DestinationEncryptionKeyArn': 'string',
              'DestinationRecoveryPointLifecycle': {'DeleteAfterDays': 'long',
                                                    'MoveToColdStorageAfterDays': 'long',
                                                    'OptInToArchiveForSupportedResources': 'boolean'},
              'DestinationVaultLockState': 'string',
              'DestinationVaultType': 'string'}}

Returns metadata about your copy jobs.

See also: AWS API Documentation

Request Syntax

client.list_copy_jobs(
    NextToken='string',
    MaxResults=123,
    ByResourceArn='string',
    ByState='CREATED'|'RUNNING'|'COMPLETED'|'FAILED'|'PARTIAL',
    ByCreatedBefore=datetime(2015, 1, 1),
    ByCreatedAfter=datetime(2015, 1, 1),
    ByResourceType='string',
    ByDestinationVaultArn='string',
    ByAccountId='string',
    ByCompleteBefore=datetime(2015, 1, 1),
    ByCompleteAfter=datetime(2015, 1, 1),
    ByParentJobId='string',
    ByMessageCategory='string'
)
type NextToken:

string

param NextToken:

The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

type MaxResults:

integer

param MaxResults:

The maximum number of items to be returned.

type ByResourceArn:

string

param ByResourceArn:

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

type ByState:

string

param ByState:

Returns only copy jobs that are in the specified state.

type ByCreatedBefore:

datetime

param ByCreatedBefore:

Returns only copy jobs that were created before the specified date.

type ByCreatedAfter:

datetime

param ByCreatedAfter:

Returns only copy jobs that were created after the specified date.

type ByResourceType:

string

param ByResourceType:

Returns only backup jobs for the specified resources:

  • Aurora for Amazon Aurora

  • CloudFormation for CloudFormation

  • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)

  • DynamoDB for Amazon DynamoDB

  • EBS for Amazon Elastic Block Store

  • EC2 for Amazon Elastic Compute Cloud

  • EFS for Amazon Elastic File System

  • FSx for Amazon FSx

  • Neptune for Amazon Neptune

  • RDS for Amazon Relational Database Service

  • Redshift for Amazon Redshift

  • S3 for Amazon Simple Storage Service (Amazon S3)

  • SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances

  • Storage Gateway for Storage Gateway

  • Timestream for Amazon Timestream

  • VirtualMachine for VMware virtual machines

type ByDestinationVaultArn:

string

param ByDestinationVaultArn:

An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

type ByAccountId:

string

param ByAccountId:

The account ID to list the jobs from. Returns only copy jobs associated with the specified account ID.

type ByCompleteBefore:

datetime

param ByCompleteBefore:

Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

type ByCompleteAfter:

datetime

param ByCompleteAfter:

Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

type ByParentJobId:

string

param ByParentJobId:

This is a filter to list child (nested) jobs based on parent job ID.

type ByMessageCategory:

string

param ByMessageCategory:

This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input.

Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS.

View Monitoring for a list of accepted strings.

The the value ANY returns count of all message categories.

AGGREGATE_ALL aggregates job counts for all message categories and returns the sum.

rtype:

dict

returns:

Response Syntax

{
    'CopyJobs': [
        {
            'AccountId': 'string',
            'CopyJobId': 'string',
            'SourceBackupVaultArn': 'string',
            'SourceRecoveryPointArn': 'string',
            'DestinationBackupVaultArn': 'string',
            'DestinationVaultType': 'string',
            'DestinationVaultLockState': 'string',
            'DestinationRecoveryPointArn': 'string',
            'DestinationEncryptionKeyArn': 'string',
            'DestinationRecoveryPointLifecycle': {
                'MoveToColdStorageAfterDays': 123,
                'DeleteAfterDays': 123,
                'OptInToArchiveForSupportedResources': True|False
            },
            'ResourceArn': 'string',
            'CreationDate': datetime(2015, 1, 1),
            'CompletionDate': datetime(2015, 1, 1),
            'State': 'CREATED'|'RUNNING'|'COMPLETED'|'FAILED'|'PARTIAL',
            'StatusMessage': 'string',
            'BackupSizeInBytes': 123,
            'IamRoleArn': 'string',
            'CreatedBy': {
                'BackupPlanId': 'string',
                'BackupPlanArn': 'string',
                'BackupPlanName': 'string',
                'BackupPlanVersion': 'string',
                'BackupRuleId': 'string',
                'BackupRuleName': 'string',
                'BackupRuleCron': 'string',
                'BackupRuleTimezone': 'string'
            },
            'ResourceType': 'string',
            'ParentJobId': 'string',
            'IsParent': True|False,
            'CompositeMemberIdentifier': 'string',
            'NumberOfChildJobs': 123,
            'ChildJobsInState': {
                'string': 123
            },
            'ResourceName': 'string',
            'MessageCategory': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • CopyJobs (list) --

      An array of structures containing metadata about your copy jobs returned in JSON format.

      • (dict) --

        Contains detailed information about a copy job.

        • AccountId (string) --

          The account ID that owns the copy job.

        • CopyJobId (string) --

          Uniquely identifies a copy job.

        • SourceBackupVaultArn (string) --

          An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

        • SourceRecoveryPointArn (string) --

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

        • DestinationBackupVaultArn (string) --

          An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

        • DestinationVaultType (string) --

          The type of destination backup vault where the copied recovery point is stored. Valid values are BACKUP_VAULT for standard backup vaults and LOGICALLY_AIR_GAPPED_BACKUP_VAULT for logically air-gapped vaults.

        • DestinationVaultLockState (string) --

          The lock state of the destination backup vault. For logically air-gapped vaults, this indicates whether the vault is locked in compliance mode. Valid values include LOCKED and UNLOCKED.

        • DestinationRecoveryPointArn (string) --

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

        • DestinationEncryptionKeyArn (string) --

          The Amazon Resource Name (ARN) of the KMS key used to encrypt the copied backup in the destination vault. This can be a customer-managed key or an Amazon Web Services managed key.

        • DestinationRecoveryPointLifecycle (dict) --

          Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted.

          Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold.

          Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.

          To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays.

          • MoveToColdStorageAfterDays (integer) --

            The number of days after creation that a recovery point is moved to cold storage.

          • DeleteAfterDays (integer) --

            The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays.

          • OptInToArchiveForSupportedResources (boolean) --

            If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.

        • ResourceArn (string) --

          The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

        • CreationDate (datetime) --

          The date and time a copy 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 copy job 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.

        • State (string) --

          The current state of a copy job.

        • StatusMessage (string) --

          A detailed message explaining the status of the job to copy a resource.

        • BackupSizeInBytes (integer) --

          The size, in bytes, of a copy job.

        • IamRoleArn (string) --

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

        • CreatedBy (dict) --

          Contains information about the backup plan and rule that Backup used to initiate the recovery point backup.

          • BackupPlanId (string) --

            Uniquely identifies a backup plan.

          • BackupPlanArn (string) --

            An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

          • BackupPlanName (string) --

            The name of the backup plan that created this recovery point. This provides human-readable context about which backup plan was responsible for the backup job.

          • BackupPlanVersion (string) --

            Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.

          • BackupRuleId (string) --

            Uniquely identifies a rule used to schedule the backup of a selection of resources.

          • BackupRuleName (string) --

            The name of the backup rule within the backup plan that created this recovery point. This helps identify which specific rule triggered the backup job.

          • BackupRuleCron (string) --

            The cron expression that defines the schedule for the backup rule. This shows the frequency and timing of when backups are automatically triggered.

          • BackupRuleTimezone (string) --

            The timezone used for the backup rule schedule. This provides context for when backups are scheduled to run in the specified timezone.

        • ResourceType (string) --

          The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.

        • ParentJobId (string) --

          This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID.

        • IsParent (boolean) --

          This is a boolean value indicating this is a parent (composite) copy job.

        • CompositeMemberIdentifier (string) --

          The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.

        • NumberOfChildJobs (integer) --

          The number of child (nested) copy jobs.

        • ChildJobsInState (dict) --

          This returns the statistics of the included child (nested) copy jobs.

          • (string) --

            • (integer) --

        • ResourceName (string) --

          The non-unique name of the resource that belongs to the specified backup.

        • MessageCategory (string) --

          This parameter is the job count for the specified message category.

          Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and InvalidParameters. See Monitoring for a list of MessageCategory strings.

          The the value ANY returns count of all message categories.

          AGGREGATE_ALL aggregates job counts for all message categories and returns the sum

    • NextToken (string) --

      The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

ListRecoveryPointsByBackupVault (updated) Link ¶
Changes (response)
{'RecoveryPoints': {'CreatedBy': {'BackupPlanName': 'string',
                                  'BackupRuleCron': 'string',
                                  'BackupRuleName': 'string',
                                  'BackupRuleTimezone': 'string'}}}

Returns detailed information about the recovery points stored in a backup vault.

See also: AWS API Documentation

Request Syntax

client.list_recovery_points_by_backup_vault(
    BackupVaultName='string',
    BackupVaultAccountId='string',
    NextToken='string',
    MaxResults=123,
    ByResourceArn='string',
    ByResourceType='string',
    ByBackupPlanId='string',
    ByCreatedBefore=datetime(2015, 1, 1),
    ByCreatedAfter=datetime(2015, 1, 1),
    ByParentRecoveryPointArn='string'
)
type BackupVaultName:

string

param BackupVaultName:

[REQUIRED]

The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

type BackupVaultAccountId:

string

param BackupVaultAccountId:

This parameter will sort the list of recovery points by account ID.

type NextToken:

string

param NextToken:

The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

type MaxResults:

integer

param MaxResults:

The maximum number of items to be returned.

type ByResourceArn:

string

param ByResourceArn:

Returns only recovery points that match the specified resource Amazon Resource Name (ARN).

type ByResourceType:

string

param ByResourceType:

Returns only recovery points that match the specified resource type(s):

  • Aurora for Amazon Aurora

  • CloudFormation for CloudFormation

  • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)

  • DynamoDB for Amazon DynamoDB

  • EBS for Amazon Elastic Block Store

  • EC2 for Amazon Elastic Compute Cloud

  • EFS for Amazon Elastic File System

  • FSx for Amazon FSx

  • Neptune for Amazon Neptune

  • RDS for Amazon Relational Database Service

  • Redshift for Amazon Redshift

  • S3 for Amazon Simple Storage Service (Amazon S3)

  • SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances

  • Storage Gateway for Storage Gateway

  • Timestream for Amazon Timestream

  • VirtualMachine for VMware virtual machines

type ByBackupPlanId:

string

param ByBackupPlanId:

Returns only recovery points that match the specified backup plan ID.

type ByCreatedBefore:

datetime

param ByCreatedBefore:

Returns only recovery points that were created before the specified timestamp.

type ByCreatedAfter:

datetime

param ByCreatedAfter:

Returns only recovery points that were created after the specified timestamp.

type ByParentRecoveryPointArn:

string

param ByParentRecoveryPointArn:

This returns only recovery points that match the specified parent (composite) recovery point Amazon Resource Name (ARN).

rtype:

dict

returns:

Response Syntax

{
    'NextToken': 'string',
    'RecoveryPoints': [
        {
            'RecoveryPointArn': 'string',
            'BackupVaultName': 'string',
            'BackupVaultArn': 'string',
            'SourceBackupVaultArn': 'string',
            'ResourceArn': 'string',
            'ResourceType': 'string',
            'CreatedBy': {
                'BackupPlanId': 'string',
                'BackupPlanArn': 'string',
                'BackupPlanName': 'string',
                'BackupPlanVersion': 'string',
                'BackupRuleId': 'string',
                'BackupRuleName': 'string',
                'BackupRuleCron': 'string',
                'BackupRuleTimezone': 'string'
            },
            'IamRoleArn': 'string',
            'Status': 'COMPLETED'|'PARTIAL'|'DELETING'|'EXPIRED'|'AVAILABLE'|'STOPPED'|'CREATING',
            'StatusMessage': 'string',
            'CreationDate': datetime(2015, 1, 1),
            'InitiationDate': datetime(2015, 1, 1),
            'CompletionDate': datetime(2015, 1, 1),
            'BackupSizeInBytes': 123,
            'CalculatedLifecycle': {
                'MoveToColdStorageAt': datetime(2015, 1, 1),
                'DeleteAt': datetime(2015, 1, 1)
            },
            'Lifecycle': {
                'MoveToColdStorageAfterDays': 123,
                'DeleteAfterDays': 123,
                'OptInToArchiveForSupportedResources': True|False
            },
            'EncryptionKeyArn': 'string',
            'IsEncrypted': True|False,
            'LastRestoreTime': datetime(2015, 1, 1),
            'ParentRecoveryPointArn': 'string',
            'CompositeMemberIdentifier': 'string',
            'IsParent': True|False,
            'ResourceName': 'string',
            'VaultType': 'BACKUP_VAULT'|'LOGICALLY_AIR_GAPPED_BACKUP_VAULT'|'RESTORE_ACCESS_BACKUP_VAULT',
            'IndexStatus': 'PENDING'|'ACTIVE'|'FAILED'|'DELETING',
            'IndexStatusMessage': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

    • RecoveryPoints (list) --

      An array of objects that contain detailed information about recovery points saved in a backup vault.

      • (dict) --

        Contains detailed information about the recovery points stored in a backup vault.

        • RecoveryPointArn (string) --

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

        • BackupVaultName (string) --

          The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.

        • BackupVaultArn (string) --

          An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.

        • SourceBackupVaultArn (string) --

          The backup vault where the recovery point was originally copied from. If the recovery point is restored to the same account this value will be null.

        • ResourceArn (string) --

          An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.

        • ResourceType (string) --

          The type of Amazon Web Services resource saved as a recovery point; 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.

        • CreatedBy (dict) --

          Contains identifying information about the creation of a recovery point, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan that is used to create it.

          • BackupPlanId (string) --

            Uniquely identifies a backup plan.

          • BackupPlanArn (string) --

            An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50.

          • BackupPlanName (string) --

            The name of the backup plan that created this recovery point. This provides human-readable context about which backup plan was responsible for the backup job.

          • BackupPlanVersion (string) --

            Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. They cannot be edited.

          • BackupRuleId (string) --

            Uniquely identifies a rule used to schedule the backup of a selection of resources.

          • BackupRuleName (string) --

            The name of the backup rule within the backup plan that created this recovery point. This helps identify which specific rule triggered the backup job.

          • BackupRuleCron (string) --

            The cron expression that defines the schedule for the backup rule. This shows the frequency and timing of when backups are automatically triggered.

          • BackupRuleTimezone (string) --

            The timezone used for the backup rule schedule. This provides context for when backups are scheduled to run in the specified timezone.

        • IamRoleArn (string) --

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

        • Status (string) --

          A status code specifying the state of the recovery point.

        • StatusMessage (string) --

          A message explaining the current status of the recovery point.

        • CreationDate (datetime) --

          The date and time a recovery point 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.

        • InitiationDate (datetime) --

          The date and time when the backup job that created this recovery point was initiated, in Unix format and Coordinated Universal Time (UTC).

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

        • BackupSizeInBytes (integer) --

          The size, in bytes, of a backup.

        • CalculatedLifecycle (dict) --

          A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

          • MoveToColdStorageAt (datetime) --

            A timestamp that specifies when to transition a recovery point to cold storage.

          • DeleteAt (datetime) --

            A timestamp that specifies when to delete a recovery point.

        • Lifecycle (dict) --

          The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

          Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

          Resource types that can transition to cold storage are listed in the Feature availability by resource table. Backup ignores this expression for other resource types.

          • MoveToColdStorageAfterDays (integer) --

            The number of days after creation that a recovery point is moved to cold storage.

          • DeleteAfterDays (integer) --

            The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays.

          • OptInToArchiveForSupportedResources (boolean) --

            If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.

        • EncryptionKeyArn (string) --

          The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.

        • IsEncrypted (boolean) --

          A Boolean value that is returned as TRUE if the specified recovery point is encrypted, or FALSE if the recovery point is not encrypted.

        • LastRestoreTime (datetime) --

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

        • ParentRecoveryPointArn (string) --

          The Amazon Resource Name (ARN) of the parent (composite) recovery point.

        • CompositeMemberIdentifier (string) --

          The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the logical ID within a stack.

        • IsParent (boolean) --

          This is a boolean value indicating this is a parent (composite) recovery point.

        • ResourceName (string) --

          The non-unique name of the resource that belongs to the specified backup.

        • VaultType (string) --

          The type of vault in which the described recovery point is stored.

        • IndexStatus (string) --

          This is the current status for the backup index associated with the specified recovery point.

          Statuses are: PENDING | ACTIVE | FAILED | DELETING

          A recovery point with an index that has the status of ACTIVE can be included in a search.

        • IndexStatusMessage (string) --

          A string in the form of a detailed message explaining the status of a backup index associated with the recovery point.

ListRestoreJobs (updated) Link ¶
Changes (response)
{'RestoreJobs': {'BackupVaultArn': 'string', 'SourceResourceArn': 'string'}}

Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.

See also: AWS API Documentation

Request Syntax

client.list_restore_jobs(
    NextToken='string',
    MaxResults=123,
    ByAccountId='string',
    ByResourceType='string',
    ByCreatedBefore=datetime(2015, 1, 1),
    ByCreatedAfter=datetime(2015, 1, 1),
    ByStatus='PENDING'|'RUNNING'|'COMPLETED'|'ABORTED'|'FAILED',
    ByCompleteBefore=datetime(2015, 1, 1),
    ByCompleteAfter=datetime(2015, 1, 1),
    ByRestoreTestingPlanArn='string'
)
type NextToken:

string

param NextToken:

The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

type MaxResults:

integer

param MaxResults:

The maximum number of items to be returned.

type ByAccountId:

string

param ByAccountId:

The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.

type ByResourceType:

string

param ByResourceType:

Include this parameter to return only restore jobs for the specified resources:

  • Aurora for Amazon Aurora

  • CloudFormation for CloudFormation

  • DocumentDB for Amazon DocumentDB (with MongoDB compatibility)

  • DynamoDB for Amazon DynamoDB

  • EBS for Amazon Elastic Block Store

  • EC2 for Amazon Elastic Compute Cloud

  • EFS for Amazon Elastic File System

  • FSx for Amazon FSx

  • Neptune for Amazon Neptune

  • RDS for Amazon Relational Database Service

  • Redshift for Amazon Redshift

  • S3 for Amazon Simple Storage Service (Amazon S3)

  • SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances

  • Storage Gateway for Storage Gateway

  • Timestream for Amazon Timestream

  • VirtualMachine for VMware virtual machines

type ByCreatedBefore:

datetime

param ByCreatedBefore:

Returns only restore jobs that were created before the specified date.

type ByCreatedAfter:

datetime

param ByCreatedAfter:

Returns only restore jobs that were created after the specified date.

type ByStatus:

string

param ByStatus:

Returns only restore jobs associated with the specified job status.

type ByCompleteBefore:

datetime

param ByCompleteBefore:

Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

type ByCompleteAfter:

datetime

param ByCompleteAfter:

Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

type ByRestoreTestingPlanArn:

string

param ByRestoreTestingPlanArn:

This returns only restore testing jobs that match the specified resource Amazon Resource Name (ARN).

rtype:

dict

returns:

Response Syntax

{
    'RestoreJobs': [
        {
            'AccountId': 'string',
            'RestoreJobId': 'string',
            'RecoveryPointArn': 'string',
            'SourceResourceArn': 'string',
            'BackupVaultArn': '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'
        },
    ],
    'NextToken': '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.

        • SourceResourceArn (string) --

          The Amazon Resource Name (ARN) of the original resource that was backed up. This provides context about what resource is being restored.

        • BackupVaultArn (string) --

          The Amazon Resource Name (ARN) of the backup vault containing the recovery point being restored. This helps identify vault access policies and permissions.

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

    • NextToken (string) --

      The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

ListRestoreJobsByProtectedResource (updated) Link ¶
Changes (response)
{'RestoreJobs': {'BackupVaultArn': 'string', 'SourceResourceArn': 'string'}}

This returns restore jobs that contain the specified protected resource.

You must include ResourceArn. You can optionally include NextToken, ByStatus, MaxResults, ByRecoveryPointCreationDateAfter , and ByRecoveryPointCreationDateBefore.

See also: AWS API Documentation

Request Syntax

client.list_restore_jobs_by_protected_resource(
    ResourceArn='string',
    ByStatus='PENDING'|'RUNNING'|'COMPLETED'|'ABORTED'|'FAILED',
    ByRecoveryPointCreationDateAfter=datetime(2015, 1, 1),
    ByRecoveryPointCreationDateBefore=datetime(2015, 1, 1),
    NextToken='string',
    MaxResults=123
)
type ResourceArn:

string

param ResourceArn:

[REQUIRED]

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

type ByStatus:

string

param ByStatus:

Returns only restore jobs associated with the specified job status.

type ByRecoveryPointCreationDateAfter:

datetime

param ByRecoveryPointCreationDateAfter:

Returns only restore jobs of recovery points that were created after the specified date.

type ByRecoveryPointCreationDateBefore:

datetime

param ByRecoveryPointCreationDateBefore:

Returns only restore jobs of recovery points that were created before the specified date.

type NextToken:

string

param NextToken:

The next item following a partial list of returned items. For example, if a request ismade to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

type MaxResults:

integer

param MaxResults:

The maximum number of items to be returned.

rtype:

dict

returns:

Response Syntax

{
    'RestoreJobs': [
        {
            'AccountId': 'string',
            'RestoreJobId': 'string',
            'RecoveryPointArn': 'string',
            'SourceResourceArn': 'string',
            'BackupVaultArn': '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'
        },
    ],
    'NextToken': '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.

        • SourceResourceArn (string) --

          The Amazon Resource Name (ARN) of the original resource that was backed up. This provides context about what resource is being restored.

        • BackupVaultArn (string) --

          The Amazon Resource Name (ARN) of the backup vault containing the recovery point being restored. This helps identify vault access policies and permissions.

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

    • NextToken (string) --

      The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows youto return more items in your list starting at the location pointed to by the next token