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.CreateTask

Description

Instructs one or more devices to start a task, such as unlocking or rebooting.

Synopsis

Creating a Request

data CreateTask Source #

See: newCreateTask smart constructor.

Constructors

CreateTask' 

Fields

  • clientToken :: Maybe Text

    A token ensuring that the action is called only once with the specified details.

  • description :: Maybe Text

    A description of the task and its targets.

  • tags :: Maybe (HashMap Text Text)

    Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.

  • command :: Command

    The task to be performed. Only one task is executed on a device at a time.

  • targets :: NonEmpty Text

    A list of managed device IDs.

Instances

Instances details
Eq CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Read CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Show CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Generic CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Associated Types

type Rep CreateTask :: Type -> Type #

NFData CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Methods

rnf :: CreateTask -> () #

Hashable CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

ToJSON CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

AWSRequest CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Associated Types

type AWSResponse CreateTask #

ToHeaders CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Methods

toHeaders :: CreateTask -> [Header] #

ToPath CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

ToQuery CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

type Rep CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

type Rep CreateTask = D1 ('MetaData "CreateTask" "Amazonka.SnowDeviceManagement.CreateTask" "libZSservicesZSamazonka-snow-device-managementZSamazonka-snow-device-management" 'False) (C1 ('MetaCons "CreateTask'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "command") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Command) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))))
type AWSResponse CreateTask Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

newCreateTask Source #

Create a value of CreateTask 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:clientToken:CreateTask', createTask_clientToken - A token ensuring that the action is called only once with the specified details.

$sel:description:CreateTask', createTask_description - A description of the task and its targets.

$sel:tags:CreateTask', createTask_tags - Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.

$sel:command:CreateTask', createTask_command - The task to be performed. Only one task is executed on a device at a time.

$sel:targets:CreateTask', createTask_targets - A list of managed device IDs.

Request Lenses

createTask_clientToken :: Lens' CreateTask (Maybe Text) Source #

A token ensuring that the action is called only once with the specified details.

createTask_description :: Lens' CreateTask (Maybe Text) Source #

A description of the task and its targets.

createTask_tags :: Lens' CreateTask (Maybe (HashMap Text Text)) Source #

Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.

createTask_command :: Lens' CreateTask Command Source #

The task to be performed. Only one task is executed on a device at a time.

createTask_targets :: Lens' CreateTask (NonEmpty Text) Source #

A list of managed device IDs.

Destructuring the Response

data CreateTaskResponse Source #

See: newCreateTaskResponse smart constructor.

Constructors

CreateTaskResponse' 

Fields

Instances

Instances details
Eq CreateTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Read CreateTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Show CreateTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Generic CreateTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Associated Types

type Rep CreateTaskResponse :: Type -> Type #

NFData CreateTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

Methods

rnf :: CreateTaskResponse -> () #

type Rep CreateTaskResponse Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.CreateTask

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

newCreateTaskResponse Source #

Create a value of CreateTaskResponse 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:CreateTaskResponse', createTaskResponse_taskId - The ID of the task that you created.

$sel:taskArn:CreateTaskResponse', createTaskResponse_taskArn - The Amazon Resource Name (ARN) of the task that you created.

$sel:httpStatus:CreateTaskResponse', createTaskResponse_httpStatus - The response's http status code.

Response Lenses

createTaskResponse_taskId :: Lens' CreateTaskResponse (Maybe Text) Source #

The ID of the task that you created.

createTaskResponse_taskArn :: Lens' CreateTaskResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the task that you created.