Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Adds or updates tags for the specified Kinesis data stream. You can assign up to 50 tags to a data stream.
When invoking this API, it is recommended you use the StreamARN
input
parameter rather than the StreamName
input parameter.
If tags have already been assigned to the stream, AddTagsToStream
overwrites any existing tags that correspond to the specified tag keys.
AddTagsToStream has a limit of five transactions per second per account.
Synopsis
- data AddTagsToStream = AddTagsToStream' {}
- newAddTagsToStream :: AddTagsToStream
- addTagsToStream_streamARN :: Lens' AddTagsToStream (Maybe Text)
- addTagsToStream_streamName :: Lens' AddTagsToStream (Maybe Text)
- addTagsToStream_tags :: Lens' AddTagsToStream (HashMap Text Text)
- data AddTagsToStreamResponse = AddTagsToStreamResponse' {
- newAddTagsToStreamResponse :: AddTagsToStreamResponse
Creating a Request
data AddTagsToStream Source #
Represents the input for AddTagsToStream
.
See: newAddTagsToStream
smart constructor.
Instances
newAddTagsToStream :: AddTagsToStream Source #
Create a value of AddTagsToStream
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:
AddTagsToStream
, addTagsToStream_streamARN
- The ARN of the stream.
AddTagsToStream
, addTagsToStream_streamName
- The name of the stream.
$sel:tags:AddTagsToStream'
, addTagsToStream_tags
- A set of up to 10 key-value pairs to use to create the tags.
Request Lenses
addTagsToStream_streamARN :: Lens' AddTagsToStream (Maybe Text) Source #
The ARN of the stream.
addTagsToStream_streamName :: Lens' AddTagsToStream (Maybe Text) Source #
The name of the stream.
addTagsToStream_tags :: Lens' AddTagsToStream (HashMap Text Text) Source #
A set of up to 10 key-value pairs to use to create the tags.
Destructuring the Response
data AddTagsToStreamResponse Source #
See: newAddTagsToStreamResponse
smart constructor.
Instances
Generic AddTagsToStreamResponse Source # | |
Defined in Amazonka.Kinesis.AddTagsToStream type Rep AddTagsToStreamResponse :: Type -> Type # | |
Read AddTagsToStreamResponse Source # | |
Show AddTagsToStreamResponse Source # | |
Defined in Amazonka.Kinesis.AddTagsToStream showsPrec :: Int -> AddTagsToStreamResponse -> ShowS # show :: AddTagsToStreamResponse -> String # showList :: [AddTagsToStreamResponse] -> ShowS # | |
NFData AddTagsToStreamResponse Source # | |
Defined in Amazonka.Kinesis.AddTagsToStream rnf :: AddTagsToStreamResponse -> () # | |
Eq AddTagsToStreamResponse Source # | |
Defined in Amazonka.Kinesis.AddTagsToStream | |
type Rep AddTagsToStreamResponse Source # | |
newAddTagsToStreamResponse :: AddTagsToStreamResponse Source #
Create a value of AddTagsToStreamResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.