batch_delete_evaluation_job
async
¶
batch_delete_evaluation_job(
job_identifiers: EvaluationJobIdentifiers,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
) -> BatchDeleteEvaluationJobResponse
Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status FAILED, COMPLETED, and STOPPED. You can request up to 25 model evaluation jobs be deleted in a single request.
Parameters:
-
job_identifiers(EvaluationJobIdentifiers) –A list of one or more evaluation job Amazon Resource Names (ARNs) you want to delete.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
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.
Examples:
Delete evaluation jobs The following example shows a request to delete two model evaluation jobs, where one of the jobs is not found.
>>> await client.batch_delete_evaluation_job(job_identifiers=['arn:aws:bedrock:us-east-2:123456789012:evaluation-job/12rnxmplqv0v', 'arn:aws:bedrock:us-east-2:123456789012:evaluation-job/rispxmpl12rn'])
Source code in docs_src/capo_bedrock/_services/async_bedrock.py
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 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 | |