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 or updates a tag on a given resource.
Creating a Request
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
- [Required] The ARN of a resource that can be tagged. The resource ARN must be URL-encoded. At present,Stage
is the only taggable resource.trTags
- [Required] The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start withaws:
. The tag value can be up to 256 characters.
data TagResource Source #
Adds or updates a tag on a given resource.
See: tagResource
smart constructor.
Request Lenses
trResourceARN :: Lens' TagResource Text Source #
- Required
- The ARN of a resource that can be tagged. The resource ARN must be URL-encoded. At present,
Stage
is the only taggable resource.
trTags :: Lens' TagResource (HashMap Text Text) Source #
- Required
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with
aws:
. The tag value can be up to 256 characters.
Destructuring the Response
tagResourceResponse :: TagResourceResponse Source #
Creates a value of TagResourceResponse
with the minimum fields required to make a request.
data TagResourceResponse Source #
See: tagResourceResponse
smart constructor.