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 the specified tags.
You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.
You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.
For more information, see Tagging Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.
This operation returns paginated results.
Synopsis
- data DescribeTags = DescribeTags' {}
- newDescribeTags :: DescribeTags
- describeTags_filters :: Lens' DescribeTags (Maybe [Filter])
- describeTags_nextToken :: Lens' DescribeTags (Maybe Text)
- describeTags_maxRecords :: Lens' DescribeTags (Maybe Int)
- data DescribeTagsResponse = DescribeTagsResponse' {
- nextToken :: Maybe Text
- tags :: Maybe [TagDescription]
- httpStatus :: Int
- newDescribeTagsResponse :: Int -> DescribeTagsResponse
- describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text)
- describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [TagDescription])
- describeTagsResponse_httpStatus :: Lens' DescribeTagsResponse Int
Creating a Request
data DescribeTags Source #
See: newDescribeTags
smart constructor.
DescribeTags' | |
|
Instances
newDescribeTags :: DescribeTags Source #
Create a value of DescribeTags
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:filters:DescribeTags'
, describeTags_filters
- One or more filters to scope the tags to return. The maximum number of
filters per filter type (for example, auto-scaling-group
) is 1000.
$sel:nextToken:DescribeTags'
, describeTags_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxRecords:DescribeTags'
, describeTags_maxRecords
- The maximum number of items to return with this call. The default value
is 50
and the maximum value is 100
.
Request Lenses
describeTags_filters :: Lens' DescribeTags (Maybe [Filter]) Source #
One or more filters to scope the tags to return. The maximum number of
filters per filter type (for example, auto-scaling-group
) is 1000.
describeTags_nextToken :: Lens' DescribeTags (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeTags_maxRecords :: Lens' DescribeTags (Maybe Int) Source #
The maximum number of items to return with this call. The default value
is 50
and the maximum value is 100
.
Destructuring the Response
data DescribeTagsResponse Source #
See: newDescribeTagsResponse
smart constructor.
DescribeTagsResponse' | |
|
Instances
newDescribeTagsResponse Source #
Create a value of DescribeTagsResponse
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:nextToken:DescribeTags'
, describeTagsResponse_nextToken
- A string that indicates that the response contains more items than can
be returned in a single response. To receive additional items, specify
this string for the NextToken
value when requesting the next set of
items. This value is null when there are no more items to return.
$sel:tags:DescribeTagsResponse'
, describeTagsResponse_tags
- One or more tags.
$sel:httpStatus:DescribeTagsResponse'
, describeTagsResponse_httpStatus
- The response's http status code.
Response Lenses
describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text) Source #
A string that indicates that the response contains more items than can
be returned in a single response. To receive additional items, specify
this string for the NextToken
value when requesting the next set of
items. This value is null when there are no more items to return.
describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [TagDescription]) Source #
One or more tags.
describeTagsResponse_httpStatus :: Lens' DescribeTagsResponse Int Source #
The response's http status code.