list_copy_jobs
async
¶
list_copy_jobs(
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
next_token: Optional[string] = None,
max_results: Optional[MaxResults] = None,
by_resource_arn: Optional[ARN] = None,
by_state: Optional[CopyJobState] = None,
by_created_before: Optional[timestamp] = None,
by_created_after: Optional[timestamp] = None,
by_resource_type: Optional[ResourceType] = None,
by_destination_vault_arn: Optional[string] = None,
by_account_id: Optional[AccountId] = None,
by_complete_before: Optional[timestamp] = None,
by_complete_after: Optional[timestamp] = None,
by_parent_job_id: Optional[string] = None,
by_message_category: Optional[string] = None,
by_source_recovery_point_arn: Optional[string] = None,
) -> ListCopyJobsOutput
Returns metadata about your copy jobs.
Parameters:
-
next_token(Optional[string], default:None) –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.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to be returned.
-
by_resource_arn(Optional[ARN], default:None) –Returns only copy jobs that match the specified resource Amazon Resource Name (ARN).
-
by_state(Optional[CopyJobState], default:None) –Returns only copy jobs that are in the specified state.
-
by_created_before(Optional[timestamp], default:None) –Returns only copy jobs that were created before the specified date.
-
by_created_after(Optional[timestamp], default:None) –Returns only copy jobs that were created after the specified date.
-
by_resource_type(Optional[ResourceType], default:None) –Returns only backup jobs for the specified resources:
-
Aurorafor Amazon Aurora -
CloudFormationfor CloudFormation -
DocumentDBfor Amazon DocumentDB (with MongoDB compatibility) -
DynamoDBfor Amazon DynamoDB -
EBSfor Amazon Elastic Block Store -
EC2for Amazon Elastic Compute Cloud -
EFSfor Amazon Elastic File System -
EKSfor Amazon Elastic Kubernetes Service -
FSxfor Amazon FSx -
Neptunefor Amazon Neptune -
RDSfor Amazon Relational Database Service -
Redshiftfor Amazon Redshift -
S3for Amazon Simple Storage Service (Amazon S3) -
SAP HANA on Amazon EC2for SAP HANA databases on Amazon Elastic Compute Cloud instances -
Storage Gatewayfor Storage Gateway -
Timestreamfor Amazon Timestream -
VirtualMachinefor VMware virtual machines
-
-
by_destination_vault_arn(Optional[string], default:None) –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. -
by_account_id(Optional[AccountId], default:None) –The account ID to list the jobs from. Returns only copy jobs associated with the specified account ID.
-
by_complete_before(Optional[timestamp], default:None) –Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_complete_after(Optional[timestamp], default:None) –Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
-
by_parent_job_id(Optional[string], default:None) –This is a filter to list child (nested) jobs based on parent job ID.
-
by_message_category(Optional[string], default:None) –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, andINVALIDPARAMETERS.View Monitoring for a list of accepted strings.
The the value ANY returns count of all message categories.
AGGREGATE_ALLaggregates job counts for all message categories and returns the sum. -
by_source_recovery_point_arn(Optional[string], default:None) –Filters copy jobs by the specified source recovery point ARN.
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/async_backup.py
4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 | |