stop_emr_application
Stop an EMR Serverless application by first canceling any running jobs, then halting the application. Provides step-by-step execution reports.
Instructions
Stop an EMR Serverless application. If jobs are running, cancels them first.
Smart flow:
Tries to stop the application directly.
If it fails because jobs are still running — automatically finds and cancels ALL running/pending jobs, then retries the stop.
Reports every step taken so the user knows exactly what happened.
Use force=True to skip the initial stop attempt and go straight to cancelling all jobs first (useful when you know jobs are running).
Args: application_id: The EMR Serverless application ID. force: If True, cancel all running jobs first without trying to stop. env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.
Returns a step-by-step report of what was done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| application_id | Yes | ||
| force | No | ||
| env | No |