Cancel an export task - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Cancel an export task

You can cancel an export task if it's in a PENDING or RUNNING state.

To cancel an export task using the Amazon CLI

At a command prompt, use the following cancel-export-task command:

aws logs --profile CWLExportUser cancel-export-task --task-id "cda45419-90ea-4db5-9833-aade86253e66"

You can use the describe-export-tasks command to verify that the task was canceled successfully.