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 |
Retrieves a list of configuration items that have tags as specified by
the key-value pairs, name and value, passed to the optional parameter
filters
.
There are three valid tag filter names:
- tagKey
- tagValue
- configurationId
Also, all configuration items associated with your user account that
have tags can be listed if you call DescribeTags
as is without passing
any parameters.
This operation returns paginated results.
Synopsis
- data DescribeTags = DescribeTags' {}
- newDescribeTags :: DescribeTags
- describeTags_filters :: Lens' DescribeTags (Maybe [TagFilter])
- describeTags_nextToken :: Lens' DescribeTags (Maybe Text)
- describeTags_maxResults :: Lens' DescribeTags (Maybe Int)
- data DescribeTagsResponse = DescribeTagsResponse' {
- nextToken :: Maybe Text
- tags :: Maybe [ConfigurationTag]
- httpStatus :: Int
- newDescribeTagsResponse :: Int -> DescribeTagsResponse
- describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text)
- describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [ConfigurationTag])
- 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
- You can filter the list using a key-value format. You can separate
these items by using logical operators. Allowed filters include
tagKey
, tagValue
, and configurationId
.
$sel:nextToken:DescribeTags'
, describeTags_nextToken
- A token to start the list. Use this token to get the next set of
results.
$sel:maxResults:DescribeTags'
, describeTags_maxResults
- The total number of items to return in a single page of output. The
maximum value is 100.
Request Lenses
describeTags_filters :: Lens' DescribeTags (Maybe [TagFilter]) Source #
You can filter the list using a key-value format. You can separate
these items by using logical operators. Allowed filters include
tagKey
, tagValue
, and configurationId
.
describeTags_nextToken :: Lens' DescribeTags (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
describeTags_maxResults :: Lens' DescribeTags (Maybe Int) Source #
The total number of items to return in a single page of output. 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
- The call returns a token. Use this token to get the next set of results.
$sel:tags:DescribeTagsResponse'
, describeTagsResponse_tags
- Depending on the input, this is a list of configuration items tagged
with a specific tag, or a list of tags for a specific configuration
item.
$sel:httpStatus:DescribeTagsResponse'
, describeTagsResponse_httpStatus
- The response's http status code.
Response Lenses
describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text) Source #
The call returns a token. Use this token to get the next set of results.
describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [ConfigurationTag]) Source #
Depending on the input, this is a list of configuration items tagged with a specific tag, or a list of tags for a specific configuration item.
describeTagsResponse_httpStatus :: Lens' DescribeTagsResponse Int Source #
The response's http status code.