list_model_copy_jobs
async
¶
list_model_copy_jobs(
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 | |