list_model_copy_jobs
¶
list_model_copy_jobs(
*,
config_overrides: Optional[BedrockClientConfig] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
status_equals: Optional[ModelCopyJobStatus] = None,
source_account_equals: Optional[AccountId] = None,
source_model_arn_equals: Optional[ModelArn] = None,
target_model_name_contains: Optional[CustomModelName] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
sort_by: Optional[SortJobsBy] = None,
sort_order: Optional[SortOrder] = None,
) -> ListModelCopyJobsResponse
Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
Parameters:
-
creation_time_after(Optional[Timestamp], default:None) –Filters for model copy jobs created after the specified time.
-
creation_time_before(Optional[Timestamp], default:None) –Filters for model copy jobs created before the specified time.
-
status_equals(Optional[ModelCopyJobStatus], default:None) –Filters for model copy jobs whose status matches the value that you specify.
-
source_account_equals(Optional[AccountId], default:None) –Filters for model copy jobs in which the account that the source model belongs to is equal to the value that you specify.
-
source_model_arn_equals(Optional[ModelArn], default:None) –Filters for model copy jobs in which the Amazon Resource Name (ARN) of the source model to is equal to the value that you specify.
-
target_model_name_contains(Optional[CustomModelName], default:None) –Filters for model copy jobs in which the name of the copied model contains the string that you specify.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. -
next_token(Optional[PaginationToken], default:None) –If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. -
sort_by(Optional[SortJobsBy], default:None) –The field to sort by in the returned list of model copy jobs.
-
sort_order(Optional[SortOrder], default:None) –Specifies whether to sort the results in ascending or descending order.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 | |