2025/06/03 - EMR Serverless - 1 updated api methods
Changes AWS EMR Serverless: Adds a new option in the CancelJobRun API in EMR 7.9.0+, to cancel a job with grace period. This feature is enabled by default with a 120-second grace period for streaming jobs and is not enabled by default for batch jobs.
{'shutdownGracePeriodInSeconds': 'integer'}
Cancels a job run.
See also: AWS API Documentation
Request Syntax
client.cancel_job_run( applicationId='string', jobRunId='string', shutdownGracePeriodInSeconds=123 )
string
[REQUIRED]
The ID of the application on which the job run will be canceled.
string
[REQUIRED]
The ID of the job run to cancel.
integer
The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.
dict
Response Syntax
{ 'applicationId': 'string', 'jobRunId': 'string' }
Response Structure
(dict) --
applicationId (string) --
The output contains the application ID on which the job run is cancelled.
jobRunId (string) --
The output contains the ID of the cancelled job run.