BackupJob
¶
Source code in docs_src/capo_backup/types/backup_job.py
account_id
instance-attribute
¶
account_id: NotRequired[AccountId]
The account ID that owns the backup job.
backup_job_id
instance-attribute
¶
backup_job_id: NotRequired[string]
Uniquely identifies a request to Backup to back up a resource.
backup_options
instance-attribute
¶
backup_options: NotRequired[BackupOptions]
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.
backup_size_in_bytes
instance-attribute
¶
backup_size_in_bytes: NotRequired[Long]
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.
-
For Amazon EKS, this value refers to the size of your nested EKS recovery point.
-
Amazon FSx does not populate this value from the operation
GetBackupJobStatusfor 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.
backup_type
instance-attribute
¶
backup_type: NotRequired[string]
Represents the type of backup for a backup job.
backup_vault_arn
instance-attribute
¶
backup_vault_arn: NotRequired[ARN]
An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault.
backup_vault_name
instance-attribute
¶
backup_vault_name: NotRequired[BackupVaultName]
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.
bytes_transferred
instance-attribute
¶
bytes_transferred: NotRequired[Long]
The size in bytes transferred to a backup vault at the time that the job status was queried.
completion_date
instance-attribute
¶
completion_date: NotRequired[timestamp]
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.
created_by
instance-attribute
¶
created_by: NotRequired[RecoveryPointCreator]
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.
creation_date
instance-attribute
¶
creation_date: NotRequired[timestamp]
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.
encryption_key_arn
instance-attribute
¶
encryption_key_arn: NotRequired[ARN]
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.
expected_completion_date
instance-attribute
¶
expected_completion_date: NotRequired[timestamp]
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.
iam_role_arn
instance-attribute
¶
iam_role_arn: NotRequired[IAMRoleArn]
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.
initiation_date
instance-attribute
¶
initiation_date: NotRequired[timestamp]
The date on which the backup job was initiated.
is_encrypted
instance-attribute
¶
is_encrypted: Boolean2
A boolean value indicating whether the backup is encrypted. All backups in Backup are encrypted, but this field indicates the encryption status for transparency.
is_parent
instance-attribute
¶
is_parent: Boolean2
This is a boolean value indicating this is a parent (composite) backup job.
message_category
instance-attribute
¶
message_category: NotRequired[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.
parent_job_id
instance-attribute
¶
parent_job_id: NotRequired[string]
This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job ID.
percent_done
instance-attribute
¶
percent_done: NotRequired[string]
Contains an estimated percentage complete of a job at the time the job status was queried.
recovery_point_arn
instance-attribute
¶
recovery_point_arn: NotRequired[ARN]
An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
resource_arn
instance-attribute
¶
resource_arn: NotRequired[ARN]
An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
resource_name
instance-attribute
¶
resource_name: NotRequired[string]
The non-unique name of the resource that belongs to the specified backup.
resource_type
instance-attribute
¶
resource_type: NotRequired[ResourceType]
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.
start_by
instance-attribute
¶
start_by: NotRequired[timestamp]
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.
status_message
instance-attribute
¶
status_message: NotRequired[string]
A detailed message explaining the status of the job to back up a resource.