Stops an InferICD10CM inference job in progress.
Parameters:
-
job_id
(JobId)
–
The identifier of the job.
Raises:
-
InternalServerException
–
An internal server error occurred. Retry your request.
-
InvalidRequestException
–
The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.
-
ResourceNotFoundException
–
The resource identified by the specified Amazon Resource Name (ARN) was not found. Check the ARN and try your request again.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_comprehendmedical/_services/async_comprehend_medical.py
| async def stop_icd10_cm_inference_job(
self,
job_id: "capo_comprehendmedical.types.job_id.JobId",
*,
config_overrides: Optional[AsyncComprehendMedicalClientConfig] = None,
) -> "capo_comprehendmedical.types.stop_icd10_cm_inference_job_response.StopICD10CMInferenceJobResponse":
"""<p>Stops an InferICD10CM inference job in progress.</p>
Args:
job_id: <p>The identifier of the job.</p>
Raises:
capo_comprehendmedical.errors.internal_server_exception.InternalServerException: <p> An internal server error occurred. Retry your request. </p>
capo_comprehendmedical.errors.invalid_request_exception.InvalidRequestException: <p> The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.</p>
capo_comprehendmedical.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource identified by the specified Amazon Resource Name (ARN) was not found. Check the ARN and try your request again.</p>
capo_comprehendmedical.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_comprehendmedical.types.stop_icd10_cm_inference_job_request.StopICD10CMInferenceJobRequest]",
) -> AsyncOperationResponse[
"capo_comprehendmedical.types.stop_icd10_cm_inference_job_response.StopICD10CMInferenceJobResponse"
]:
import capo_comprehendmedical._operations.comprehend_medical_20181030.stop_icd10_cm_inference_job
(
output,
http_response,
) = await capo_comprehendmedical._operations.comprehend_medical_20181030.stop_icd10_cm_inference_job.async_stop_icd10_cm_inference_job(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("StopICD10CMInferenceJob")
)
input_: capo_comprehendmedical.types.stop_icd10_cm_inference_job_request.StopICD10CMInferenceJobRequest = {
"job_id": job_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|