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 |
Adds one or more tags to a stream. A tag is a key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
You must provide either the StreamName
or the StreamARN
.
This operation requires permission for the KinesisVideo:TagStream
action.
Kinesis video streams support up to 50 tags.
Creating a Request
tagStream :: TagStream Source #
Creates a value of TagStream
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tsStreamARN
- The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.tsStreamName
- The name of the stream that you want to add the tag or tags to.tsTags
- A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
See: tagStream
smart constructor.
Request Lenses
tsStreamARN :: Lens' TagStream (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
tsStreamName :: Lens' TagStream (Maybe Text) Source #
The name of the stream that you want to add the tag or tags to.
tsTags :: Lens' TagStream (HashMap Text Text) Source #
A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
Destructuring the Response
Creates a value of TagStreamResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tsrsResponseStatus
- -- | The response status code.
data TagStreamResponse Source #
See: tagStreamResponse
smart constructor.
Response Lenses
tsrsResponseStatus :: Lens' TagStreamResponse Int Source #
- - | The response status code.