Cancel a task - Amazon Snowball Edge Developer Guide
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.

Cancel a task

To send a cancel request for a specific task, use the cancel-task command. You can cancel only tasks in the QUEUED state that have not yet run. Tasks that are already running can't be canceled.

Note

A task that you're attempting to cancel might still run if it is processed from the queue before the cancel-task command changes the task's state.

To cancel a task, use the following command. Replace each user input placeholder with your own information.

Command

aws snow-device-management cancel-task \ --task-id st-ficthmqoc2pht111

Exceptions

ValidationException ResourceNotFoundException InternalServerException ThrottlingException AccessDeniedException

Output

{ "taskId": "st-ficthmqoc2pht111" }