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 |
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.
Synopsis
- data TagStream = TagStream' {}
- newTagStream :: TagStream
- tagStream_streamARN :: Lens' TagStream (Maybe Text)
- tagStream_streamName :: Lens' TagStream (Maybe Text)
- tagStream_tags :: Lens' TagStream (HashMap Text Text)
- data TagStreamResponse = TagStreamResponse' {
- httpStatus :: Int
- newTagStreamResponse :: Int -> TagStreamResponse
- tagStreamResponse_httpStatus :: Lens' TagStreamResponse Int
Creating a Request
See: newTagStream
smart constructor.
TagStream' | |
|
Instances
newTagStream :: TagStream Source #
Create a value of TagStream
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:streamARN:TagStream'
, tagStream_streamARN
- The Amazon Resource Name (ARN) of the resource that you want to add the
tag or tags to.
$sel:streamName:TagStream'
, tagStream_streamName
- The name of the stream that you want to add the tag or tags to.
$sel:tags:TagStream'
, tagStream_tags
- A list of tags to associate with the specified stream. Each tag is a
key-value pair (the value is optional).
Request Lenses
tagStream_streamARN :: Lens' TagStream (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
tagStream_streamName :: Lens' TagStream (Maybe Text) Source #
The name of the stream that you want to add the tag or tags to.
tagStream_tags :: 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
data TagStreamResponse Source #
See: newTagStreamResponse
smart constructor.
TagStreamResponse' | |
|
Instances
Create a value of TagStreamResponse
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:TagStreamResponse'
, tagStreamResponse_httpStatus
- The response's http status code.
Response Lenses
tagStreamResponse_httpStatus :: Lens' TagStreamResponse Int Source #
The response's http status code.