AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the StopTask operation. Stops a running task.
When StopTask is called on a task, the equivalent of
is issued to the containers running in the task. This results in a
and a default 30-second timeout, after which
SIGKILL is sent and the
containers are forcibly stopped. If the container handles the
gracefully and exits within 30 seconds from receiving it, no
The default 30-second timeout can be configured on the Amazon ECS container agent
ECS_CONTAINER_STOP_TIMEOUT variable. For more information, see
ECS Container Agent Configuration in the Amazon Elastic Container Service Developer
public class StopTaskRequest : AmazonECSRequest IAmazonWebServiceRequest
The StopTaskRequest type exposes the following members
Gets and sets the property Cluster.
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop. If you do not specify a cluster, the default cluster is assumed.
Gets and sets the property Reason.
An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.
Gets and sets the property Task.
The task ID or full ARN entry of the task to stop.
Supported in: 1.3
Supported in: 4.5, 4.0, 3.5
Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms