Paws::ECS::StopTask - Arguments for method StopTask on Paws::ECS


This class represents the parameters used for calling the method StopTask on the Amazon EC2 Container Service service. Use the attributes of this class as arguments to method StopTask.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StopTask.


    my $ecs = Paws->service('ECS');
    my $StopTaskResponse = $ecs->StopTask(
      Task    => 'MyString',
      Cluster => 'MyString',    # OPTIONAL
      Reason  => 'MyString',    # OPTIONAL

    # Results:
    my $Task = $StopTaskResponse->Task;

    # Returns a L<Paws::ECS::StopTaskResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


Cluster => Str

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.

Reason => Str

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.

REQUIRED Task => Str

The task ID or full ARN entry of the task to stop.


This class forms part of Paws, documenting arguments for method StopTask in Paws::ECS


The source code is located here:

Please report bugs to: