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 |
Describes a specified task or tasks.
Synopsis
- data DescribeTasks = DescribeTasks' {}
- newDescribeTasks :: DescribeTasks
- describeTasks_include :: Lens' DescribeTasks (Maybe [TaskField])
- describeTasks_cluster :: Lens' DescribeTasks (Maybe Text)
- describeTasks_tasks :: Lens' DescribeTasks [Text]
- data DescribeTasksResponse = DescribeTasksResponse' {}
- newDescribeTasksResponse :: Int -> DescribeTasksResponse
- describeTasksResponse_failures :: Lens' DescribeTasksResponse (Maybe [Failure])
- describeTasksResponse_tasks :: Lens' DescribeTasksResponse (Maybe [Task])
- describeTasksResponse_httpStatus :: Lens' DescribeTasksResponse Int
Creating a Request
data DescribeTasks Source #
See: newDescribeTasks
smart constructor.
DescribeTasks' | |
|
Instances
newDescribeTasks :: DescribeTasks Source #
Create a value of DescribeTasks
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:include:DescribeTasks'
, describeTasks_include
- Specifies whether you want to see the resource tags for the task. If
TAGS
is specified, the tags are included in the response. If this
field is omitted, tags are not included in the response.
$sel:cluster:DescribeTasks'
, describeTasks_cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the task or tasks to describe. If you do not specify a cluster,
the default cluster is assumed. This parameter is required if the task
or tasks you are describing were launched in any cluster other than the
default cluster.
$sel:tasks:DescribeTasks'
, describeTasks_tasks
- A list of up to 100 task IDs or full ARN entries.
Request Lenses
describeTasks_include :: Lens' DescribeTasks (Maybe [TaskField]) Source #
Specifies whether you want to see the resource tags for the task. If
TAGS
is specified, the tags are included in the response. If this
field is omitted, tags are not included in the response.
describeTasks_cluster :: Lens' DescribeTasks (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task or tasks to describe. If you do not specify a cluster, the default cluster is assumed. This parameter is required if the task or tasks you are describing were launched in any cluster other than the default cluster.
describeTasks_tasks :: Lens' DescribeTasks [Text] Source #
A list of up to 100 task IDs or full ARN entries.
Destructuring the Response
data DescribeTasksResponse Source #
See: newDescribeTasksResponse
smart constructor.
Instances
newDescribeTasksResponse Source #
Create a value of DescribeTasksResponse
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:failures:DescribeTasksResponse'
, describeTasksResponse_failures
- Any failures associated with the call.
$sel:tasks:DescribeTasks'
, describeTasksResponse_tasks
- The list of tasks.
$sel:httpStatus:DescribeTasksResponse'
, describeTasksResponse_httpStatus
- The response's http status code.
Response Lenses
describeTasksResponse_failures :: Lens' DescribeTasksResponse (Maybe [Failure]) Source #
Any failures associated with the call.
describeTasksResponse_tasks :: Lens' DescribeTasksResponse (Maybe [Task]) Source #
The list of tasks.
describeTasksResponse_httpStatus :: Lens' DescribeTasksResponse Int Source #
The response's http status code.