| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SnowDeviceManagement.DescribeTask
Description
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_completedAt :: Lens' DescribeTaskResponse (Maybe UTCTime)
- describeTaskResponse_createdAt :: Lens' DescribeTaskResponse (Maybe UTCTime)
- describeTaskResponse_description :: Lens' DescribeTaskResponse (Maybe Text)
- describeTaskResponse_lastUpdatedAt :: Lens' DescribeTaskResponse (Maybe UTCTime)
- describeTaskResponse_state :: Lens' DescribeTaskResponse (Maybe TaskState)
- describeTaskResponse_tags :: Lens' DescribeTaskResponse (Maybe (HashMap Text Text))
- describeTaskResponse_targets :: Lens' DescribeTaskResponse (Maybe (NonEmpty Text))
- describeTaskResponse_taskArn :: Lens' DescribeTaskResponse (Maybe Text)
- describeTaskResponse_taskId :: Lens' DescribeTaskResponse (Maybe Text)
- describeTaskResponse_httpStatus :: Lens' DescribeTaskResponse Int
Creating a Request
data DescribeTask Source #
See: newDescribeTask smart constructor.
Constructors
| DescribeTask' | |
Instances
Arguments
| :: Text | |
| -> DescribeTask |
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:
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.
Constructors
| DescribeTaskResponse' | |
Fields
| |
Instances
newDescribeTaskResponse Source #
Arguments
| :: Int | |
| -> DescribeTaskResponse |
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:completedAt:DescribeTaskResponse', describeTaskResponse_completedAt - When the task was completed.
DescribeTaskResponse, describeTaskResponse_createdAt - When the CreateTask operation was called.
$sel:description:DescribeTaskResponse', describeTaskResponse_description - The description provided of the task and managed devices.
DescribeTaskResponse, describeTaskResponse_lastUpdatedAt - When the state of the task was last updated.
DescribeTaskResponse, describeTaskResponse_state - The current state of the task.
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:targets:DescribeTaskResponse', describeTaskResponse_targets - The managed devices that the task was sent to.
DescribeTaskResponse, describeTaskResponse_taskArn - The Amazon Resource Name (ARN) of the task.
DescribeTask, describeTaskResponse_taskId - The ID of the task.
$sel:httpStatus:DescribeTaskResponse', describeTaskResponse_httpStatus - The response's http status code.
Response Lenses
describeTaskResponse_completedAt :: Lens' DescribeTaskResponse (Maybe UTCTime) Source #
When the task was completed.
describeTaskResponse_createdAt :: Lens' DescribeTaskResponse (Maybe UTCTime) Source #
When the CreateTask operation was called.
describeTaskResponse_description :: Lens' DescribeTaskResponse (Maybe Text) Source #
The description provided of the task and managed devices.
describeTaskResponse_lastUpdatedAt :: Lens' DescribeTaskResponse (Maybe UTCTime) Source #
When the state of the task was last updated.
describeTaskResponse_state :: Lens' DescribeTaskResponse (Maybe TaskState) Source #
The current state of the task.
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_targets :: Lens' DescribeTaskResponse (Maybe (NonEmpty Text)) Source #
The managed devices that the task was sent to.
describeTaskResponse_taskArn :: Lens' DescribeTaskResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the task.
describeTaskResponse_taskId :: Lens' DescribeTaskResponse (Maybe Text) Source #
The ID of the task.
describeTaskResponse_httpStatus :: Lens' DescribeTaskResponse Int Source #
The response's http status code.