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 |
Checks the metadata for a given task on a device.
Synopsis
- data DescribeTask = DescribeTask' {}
- newDescribeTask :: Text -> DescribeTask
- describeTask_taskId :: Lens' DescribeTask Text
- data DescribeTaskResponse = DescribeTaskResponse' {}
- newDescribeTaskResponse :: Int -> DescribeTaskResponse
- describeTaskResponse_state :: Lens' DescribeTaskResponse (Maybe TaskState)
- describeTaskResponse_lastUpdatedAt :: Lens' DescribeTaskResponse (Maybe UTCTime)
- describeTaskResponse_createdAt :: Lens' DescribeTaskResponse (Maybe UTCTime)
- describeTaskResponse_taskId :: Lens' DescribeTaskResponse (Maybe Text)
- describeTaskResponse_taskArn :: Lens' DescribeTaskResponse (Maybe Text)
- describeTaskResponse_targets :: Lens' DescribeTaskResponse (Maybe (NonEmpty Text))
- describeTaskResponse_completedAt :: Lens' DescribeTaskResponse (Maybe UTCTime)
- describeTaskResponse_description :: Lens' DescribeTaskResponse (Maybe Text)
- describeTaskResponse_tags :: Lens' DescribeTaskResponse (Maybe (HashMap Text Text))
- describeTaskResponse_httpStatus :: Lens' DescribeTaskResponse Int
Creating a Request
data DescribeTask Source #
See: newDescribeTask
smart constructor.
Instances
Create a value of DescribeTask
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:DescribeTask'
, describeTask_taskId
- The ID of the task to be described.
Request Lenses
describeTask_taskId :: Lens' DescribeTask Text Source #
The ID of the task to be described.
Destructuring the Response
data DescribeTaskResponse Source #
See: newDescribeTaskResponse
smart constructor.
DescribeTaskResponse' | |
|
Instances
newDescribeTaskResponse Source #
Create a value of DescribeTaskResponse
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:state:DescribeTaskResponse'
, describeTaskResponse_state
- The current state of the task.
$sel:lastUpdatedAt:DescribeTaskResponse'
, describeTaskResponse_lastUpdatedAt
- When the state of the task was last updated.
$sel:createdAt:DescribeTaskResponse'
, describeTaskResponse_createdAt
- When the CreateTask
operation was called.
$sel:taskId:DescribeTask'
, describeTaskResponse_taskId
- The ID of the task.
$sel:taskArn:DescribeTaskResponse'
, describeTaskResponse_taskArn
- The Amazon Resource Name (ARN) of the task.
$sel:targets:DescribeTaskResponse'
, describeTaskResponse_targets
- The managed devices that the task was sent to.
$sel:completedAt:DescribeTaskResponse'
, describeTaskResponse_completedAt
- When the task was completed.
$sel:description:DescribeTaskResponse'
, describeTaskResponse_description
- The description provided of the task and managed devices.
$sel:tags:DescribeTaskResponse'
, describeTaskResponse_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:httpStatus:DescribeTaskResponse'
, describeTaskResponse_httpStatus
- The response's http status code.
Response Lenses
describeTaskResponse_state :: Lens' DescribeTaskResponse (Maybe TaskState) Source #
The current state of the task.
describeTaskResponse_lastUpdatedAt :: Lens' DescribeTaskResponse (Maybe UTCTime) Source #
When the state of the task was last updated.
describeTaskResponse_createdAt :: Lens' DescribeTaskResponse (Maybe UTCTime) Source #
When the CreateTask
operation was called.
describeTaskResponse_taskId :: Lens' DescribeTaskResponse (Maybe Text) Source #
The ID of the task.
describeTaskResponse_taskArn :: Lens' DescribeTaskResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the task.
describeTaskResponse_targets :: Lens' DescribeTaskResponse (Maybe (NonEmpty Text)) Source #
The managed devices that the task was sent to.
describeTaskResponse_completedAt :: Lens' DescribeTaskResponse (Maybe UTCTime) Source #
When the task was completed.
describeTaskResponse_description :: Lens' DescribeTaskResponse (Maybe Text) Source #
The description provided of the task and managed devices.
describeTaskResponse_tags :: Lens' DescribeTaskResponse (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.
describeTaskResponse_httpStatus :: Lens' DescribeTaskResponse Int Source #
The response's http status code.