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 |
Assigns one or more tags (key-value pairs) to the specified Amazon QuickSight resource.
Tags can help you organize and categorize your resources. You can also
use them to scope user permissions, by granting a user permission to
access or change only resources with certain tag values. You can use the
TagResource
operation with a resource that already has tags. If you
specify a new tag key for the resource, this tag is appended to the list
of tags associated with the resource. If you specify a tag key that is
already associated with the resource, the new tag value that you specify
replaces the previous value for that tag.
You can associate as many as 50 tags with a resource. Amazon QuickSight supports tagging on data set, data source, dashboard, and template.
Tagging for Amazon QuickSight works in a similar way to tagging for other AWS services, except for the following:
- You can't use tags to track AWS costs for Amazon QuickSight. This restriction is because Amazon QuickSight costs are based on users and SPICE capacity, which aren't taggable resources.
- Amazon QuickSight doesn't currently support the Tag Editor for Resource Groups.
Synopsis
- data TagResource = TagResource' {
- resourceArn :: Text
- tags :: NonEmpty Tag
- newTagResource :: Text -> NonEmpty Tag -> TagResource
- tagResource_resourceArn :: Lens' TagResource Text
- tagResource_tags :: Lens' TagResource (NonEmpty Tag)
- data TagResourceResponse = TagResourceResponse' {}
- newTagResourceResponse :: Int -> TagResourceResponse
- tagResourceResponse_requestId :: Lens' TagResourceResponse (Maybe Text)
- tagResourceResponse_status :: 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 Name (ARN) of the resource that you want to tag.
$sel:tags:TagResource'
, tagResource_tags
- Contains a map of the key-value pairs for the resource tag or tags
assigned to the resource.
Request Lenses
tagResource_resourceArn :: Lens' TagResource Text Source #
The Amazon Resource Name (ARN) of the resource that you want to tag.
tagResource_tags :: Lens' TagResource (NonEmpty Tag) Source #
Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
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:requestId:TagResourceResponse'
, tagResourceResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:status:TagResourceResponse'
, tagResourceResponse_status
- The HTTP status of the request.
Response Lenses
tagResourceResponse_requestId :: Lens' TagResourceResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
tagResourceResponse_status :: Lens' TagResourceResponse Int Source #
The HTTP status of the request.