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/comprehend_medical.py
| def stop_icd10_cm_inference_job(
self,
job_id: "capo_comprehendmedical.types.job_id.JobId",
*,
config_overrides: Optional[ComprehendMedicalClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_comprehendmedical.types.stop_icd10_cm_inference_job_request.StopICD10CMInferenceJobRequest]",
) -> OperationResponse[
"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 = (
capo_comprehendmedical._operations.comprehend_medical_20181030.stop_icd10_cm_inference_job.stop_icd10_cm_inference_job(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|