| 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 |
Network.AWS.AppStream.TagResource
Description
Adds or overwrites one or more tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks.
Each tag consists of a key and an optional value. If a resource already has a tag with the same key, this operation updates its value.
To list the current tags for your resources, use ListTagsForResource . To disassociate tags from your resources, use UntagResource .
For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Developer Guide .
Creating a Request
Arguments
| :: Text | |
| -> TagResource |
Creates a value of TagResource with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trResourceARN- The Amazon Resource Name (ARN) of the resource.trTags- The tags to associate. A tag is a key-value pair (the value is optional). For example,Environment=Test, or, if you do not specify a value,Environment=. If you do not specify a value, we set the value to an empty string.
data TagResource Source #
See: tagResource smart constructor.
Instances
Request Lenses
trResourceARN :: Lens' TagResource Text Source #
The Amazon Resource Name (ARN) of the resource.
trTags :: Lens' TagResource (HashMap Text Text) Source #
The tags to associate. A tag is a key-value pair (the value is optional). For example, Environment=Test , or, if you do not specify a value, Environment= . If you do not specify a value, we set the value to an empty string.
Destructuring the Response
Arguments
| :: Int | |
| -> TagResourceResponse |
Creates a value of TagResourceResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
trrsResponseStatus- -- | The response status code.
data TagResourceResponse Source #
See: tagResourceResponse smart constructor.
Response Lenses
trrsResponseStatus :: Lens' TagResourceResponse Int Source #
- - | The response status code.