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 |
Lists the tags for the specified Kinesis data stream. This operation has a limit of five transactions per second per account.
Synopsis
- data ListTagsForStream = ListTagsForStream' {}
- newListTagsForStream :: Text -> ListTagsForStream
- listTagsForStream_limit :: Lens' ListTagsForStream (Maybe Natural)
- listTagsForStream_exclusiveStartTagKey :: Lens' ListTagsForStream (Maybe Text)
- listTagsForStream_streamName :: Lens' ListTagsForStream Text
- data ListTagsForStreamResponse = ListTagsForStreamResponse' {
- httpStatus :: Int
- tags :: [Tag]
- hasMoreTags :: Bool
- newListTagsForStreamResponse :: Int -> Bool -> ListTagsForStreamResponse
- listTagsForStreamResponse_httpStatus :: Lens' ListTagsForStreamResponse Int
- listTagsForStreamResponse_tags :: Lens' ListTagsForStreamResponse [Tag]
- listTagsForStreamResponse_hasMoreTags :: Lens' ListTagsForStreamResponse Bool
Creating a Request
data ListTagsForStream Source #
Represents the input for ListTagsForStream
.
See: newListTagsForStream
smart constructor.
ListTagsForStream' | |
|
Instances
Create a value of ListTagsForStream
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:limit:ListTagsForStream'
, listTagsForStream_limit
- The number of tags to return. If this number is less than the total
number of tags associated with the stream, HasMoreTags
is set to
true
. To list additional tags, set ExclusiveStartTagKey
to the last
key in the response.
$sel:exclusiveStartTagKey:ListTagsForStream'
, listTagsForStream_exclusiveStartTagKey
- The key to use as the starting point for the list of tags. If this
parameter is set, ListTagsForStream
gets all tags that occur after
ExclusiveStartTagKey
.
$sel:streamName:ListTagsForStream'
, listTagsForStream_streamName
- The name of the stream.
Request Lenses
listTagsForStream_limit :: Lens' ListTagsForStream (Maybe Natural) Source #
The number of tags to return. If this number is less than the total
number of tags associated with the stream, HasMoreTags
is set to
true
. To list additional tags, set ExclusiveStartTagKey
to the last
key in the response.
listTagsForStream_exclusiveStartTagKey :: Lens' ListTagsForStream (Maybe Text) Source #
The key to use as the starting point for the list of tags. If this
parameter is set, ListTagsForStream
gets all tags that occur after
ExclusiveStartTagKey
.
listTagsForStream_streamName :: Lens' ListTagsForStream Text Source #
The name of the stream.
Destructuring the Response
data ListTagsForStreamResponse Source #
Represents the output for ListTagsForStream
.
See: newListTagsForStreamResponse
smart constructor.
ListTagsForStreamResponse' | |
|
Instances
newListTagsForStreamResponse Source #
:: Int | |
-> Bool | |
-> ListTagsForStreamResponse |
Create a value of ListTagsForStreamResponse
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:httpStatus:ListTagsForStreamResponse'
, listTagsForStreamResponse_httpStatus
- The response's http status code.
$sel:tags:ListTagsForStreamResponse'
, listTagsForStreamResponse_tags
- A list of tags associated with StreamName
, starting with the first tag
after ExclusiveStartTagKey
and up to the specified Limit
.
$sel:hasMoreTags:ListTagsForStreamResponse'
, listTagsForStreamResponse_hasMoreTags
- If set to true
, more tags are available. To request additional tags,
set ExclusiveStartTagKey
to the key of the last tag returned.
Response Lenses
listTagsForStreamResponse_httpStatus :: Lens' ListTagsForStreamResponse Int Source #
The response's http status code.
listTagsForStreamResponse_tags :: Lens' ListTagsForStreamResponse [Tag] Source #
A list of tags associated with StreamName
, starting with the first tag
after ExclusiveStartTagKey
and up to the specified Limit
.
listTagsForStreamResponse_hasMoreTags :: Lens' ListTagsForStreamResponse Bool Source #
If set to true
, more tags are available. To request additional tags,
set ExclusiveStartTagKey
to the key of the last tag returned.