Stop a batch inference job - Amazon Bedrock

Stop a batch inference job

Note

Batch inference is in preview and is subject to change. Batch inference is currently only available through the API. Access batch APIs through the following SDKs.

We recommend that you create a virtual environment to use the SDK. Because batch inference APIs aren't available in the latest SDKs, we recommend that you uninstall the latest version of the SDK from the virtual environment before installing the version with the batch inference APIs. For a guided example, see Code samples.

Request format
POST /model-invocation-job/jobIdentifier/stop HTTP/1.1
Response format
HTTP/1.1 200

To stop a batch inference job, send a StopModelInvocationJob and provide the ARN of the job in the jobIdentifier field.

If the job was successfully stopped, you receive an HTTP 200 response.