libZSservicesZSamazonka-snow-device-managementZSamazonka-snow-device-management
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SnowDeviceManagement.CancelTask

Description

Sends a cancel request for a specified task. You can cancel a task only if it's still in a QUEUED state. Tasks that are already running can't be cancelled.

A task might still run if it's processed from the queue before the CancelTask operation changes the task's state.

Synopsis

Creating a Request

data CancelTask Source #

See: newCancelTask smart constructor.

Constructors

CancelTask' 

Fields

  • taskId :: Text

    The ID of the task that you are attempting to cancel. You can retrieve a task ID by using the ListTasks operation.

Instances

Instances details
Eq CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Read CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Show CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Generic CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Associated Types

type Rep CancelTask :: Type -> Type #

NFData CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Methods

rnf :: CancelTask -> () #

Hashable CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

ToJSON CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

AWSRequest CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Associated Types

type AWSResponse CancelTask #

ToHeaders CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Methods

toHeaders :: CancelTask -> [Header] #

ToPath CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

ToQuery CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

type Rep CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

type Rep CancelTask = D1 ('MetaData "CancelTask" "Amazonka.SnowDeviceManagement.CancelTask" "libZSservicesZSamazonka-snow-device-managementZSamazonka-snow-device-management" 'False) (C1 ('MetaCons "CancelTask'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CancelTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

newCancelTask Source #

Create a value of CancelTask with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:taskId:CancelTask', cancelTask_taskId - The ID of the task that you are attempting to cancel. You can retrieve a task ID by using the ListTasks operation.

Request Lenses

cancelTask_taskId :: Lens' CancelTask Text Source #

The ID of the task that you are attempting to cancel. You can retrieve a task ID by using the ListTasks operation.

Destructuring the Response

data CancelTaskResponse Source #

See: newCancelTaskResponse smart constructor.

Constructors

CancelTaskResponse' 

Fields

Instances

Instances details
Eq CancelTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Read CancelTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Show CancelTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Generic CancelTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Associated Types

type Rep CancelTaskResponse :: Type -> Type #

NFData CancelTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

Methods

rnf :: CancelTaskResponse -> () #

type Rep CancelTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CancelTask

type Rep CancelTaskResponse = D1 ('MetaData "CancelTaskResponse" "Amazonka.SnowDeviceManagement.CancelTask" "libZSservicesZSamazonka-snow-device-managementZSamazonka-snow-device-management" 'False) (C1 ('MetaCons "CancelTaskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelTaskResponse Source #

Create a value of CancelTaskResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:taskId:CancelTask', cancelTaskResponse_taskId - The ID of the task that you are attempting to cancel.

$sel:httpStatus:CancelTaskResponse', cancelTaskResponse_httpStatus - The response's http status code.

Response Lenses

cancelTaskResponse_taskId :: Lens' CancelTaskResponse (Maybe Text) Source #

The ID of the task that you are attempting to cancel.