Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Instructs one or more devices to start a task, such as unlocking or rebooting.
Synopsis
- data CreateTask = CreateTask' {}
- newCreateTask :: Command -> NonEmpty Text -> CreateTask
- createTask_clientToken :: Lens' CreateTask (Maybe Text)
- createTask_description :: Lens' CreateTask (Maybe Text)
- createTask_tags :: Lens' CreateTask (Maybe (HashMap Text Text))
- createTask_command :: Lens' CreateTask Command
- createTask_targets :: Lens' CreateTask (NonEmpty Text)
- data CreateTaskResponse = CreateTaskResponse' {}
- newCreateTaskResponse :: Int -> CreateTaskResponse
- createTaskResponse_taskId :: Lens' CreateTaskResponse (Maybe Text)
- createTaskResponse_taskArn :: Lens' CreateTaskResponse (Maybe Text)
- createTaskResponse_httpStatus :: Lens' CreateTaskResponse Int
Creating a Request
data CreateTask Source #
See: newCreateTask
smart constructor.
CreateTask' | |
|
Instances
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.
Instances
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.
createTaskResponse_httpStatus :: Lens' CreateTaskResponse Int Source #
The response's http status code.