EMRServerless / Client / cancel_job_run

cancel_job_run#

EMRServerless.Client.cancel_job_run(**kwargs)#

Cancels a job run.

See also: AWS API Documentation

Request Syntax

response = client.cancel_job_run(
    applicationId='string',
    jobRunId='string'
)
Parameters:
  • applicationId (string) –

    [REQUIRED]

    The ID of the application on which the job run will be canceled.

  • jobRunId (string) –

    [REQUIRED]

    The ID of the job run to cancel.

Return type:

dict

Returns:

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.

Exceptions

  • EMRServerless.Client.exceptions.ValidationException

  • EMRServerless.Client.exceptions.ResourceNotFoundException

  • EMRServerless.Client.exceptions.InternalServerException