Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
Synopsis
- getTags :: DateInterval -> GetTags
- data GetTags
- gtNextPageToken :: Lens' GetTags (Maybe Text)
- gtSearchString :: Lens' GetTags (Maybe Text)
- gtTagKey :: Lens' GetTags (Maybe Text)
- gtTimePeriod :: Lens' GetTags DateInterval
- getTagsResponse :: Int -> Int -> Int -> GetTagsResponse
- data GetTagsResponse
- gtrsNextPageToken :: Lens' GetTagsResponse (Maybe Text)
- gtrsResponseStatus :: Lens' GetTagsResponse Int
- gtrsTags :: Lens' GetTagsResponse [Text]
- gtrsReturnSize :: Lens' GetTagsResponse Int
- gtrsTotalSize :: Lens' GetTagsResponse Int
Creating a Request
Creates a value of GetTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtNextPageToken
- The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.gtSearchString
- The value that you want to search for.gtTagKey
- The key of the tag that you want to return values for.gtTimePeriod
- The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, ifstart
is2017-01-01
andend
is2017-05-01
, then the cost and usage data is retrieved from2017-01-01
up to and including2017-04-30
but not including2017-05-01
.
See: getTags
smart constructor.
Instances
Request Lenses
gtNextPageToken :: Lens' GetTags (Maybe Text) Source #
The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
gtTagKey :: Lens' GetTags (Maybe Text) Source #
The key of the tag that you want to return values for.
gtTimePeriod :: Lens' GetTags DateInterval Source #
The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from 2017-01-01
up to and including 2017-04-30
but not including 2017-05-01
.
Destructuring the Response
Creates a value of GetTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtrsNextPageToken
- The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.gtrsResponseStatus
- -- | The response status code.gtrsTags
- The tags that match your request.gtrsReturnSize
- The number of query results that AWS returns at a time.gtrsTotalSize
- The total number of query results.
data GetTagsResponse Source #
See: getTagsResponse
smart constructor.
Instances
Response Lenses
gtrsNextPageToken :: Lens' GetTagsResponse (Maybe Text) Source #
The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
gtrsResponseStatus :: Lens' GetTagsResponse Int Source #
- - | The response status code.
gtrsReturnSize :: Lens' GetTagsResponse Int Source #
The number of query results that AWS returns at a time.
gtrsTotalSize :: Lens' GetTagsResponse Int Source #
The total number of query results.