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 |
Applies tags to an existing Amazon Web Services X-Ray group or sampling rule.
Synopsis
- data TagResource = TagResource' {
- resourceARN :: Text
- tags :: [Tag]
- newTagResource :: Text -> TagResource
- tagResource_resourceARN :: Lens' TagResource Text
- tagResource_tags :: Lens' TagResource [Tag]
- data TagResourceResponse = TagResourceResponse' {
- httpStatus :: Int
- newTagResourceResponse :: Int -> TagResourceResponse
- tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
Creating a Request
data TagResource Source #
See: newTagResource
smart constructor.
TagResource' | |
|
Instances
Create a value of TagResource
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:resourceARN:TagResource'
, tagResource_resourceARN
- The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
$sel:tags:TagResource'
, tagResource_tags
- A map that contains one or more tag keys and tag values to attach to an
X-Ray group or sampling rule. For more information about ways to use
tags, see
Tagging Amazon Web Services resources
in the Amazon Web Services General Reference.
The following restrictions apply to tags:
- Maximum number of user-applied tags per resource: 50
- Maximum tag key length: 128 Unicode characters
- Maximum tag value length: 256 Unicode characters
- Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
- Tag keys and values are case sensitive.
- Don't use
aws:
as a prefix for keys; it's reserved for Amazon Web Services use. You cannot edit or delete system tags.
Request Lenses
tagResource_resourceARN :: Lens' TagResource Text Source #
The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
tagResource_tags :: Lens' TagResource [Tag] Source #
A map that contains one or more tag keys and tag values to attach to an X-Ray group or sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
The following restrictions apply to tags:
- Maximum number of user-applied tags per resource: 50
- Maximum tag key length: 128 Unicode characters
- Maximum tag value length: 256 Unicode characters
- Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @
- Tag keys and values are case sensitive.
- Don't use
aws:
as a prefix for keys; it's reserved for Amazon Web Services use. You cannot edit or delete system tags.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
TagResourceResponse' | |
|
Instances
newTagResourceResponse Source #
Create a value of TagResourceResponse
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:TagResourceResponse'
, tagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int Source #
The response's http status code.