Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 Amazon Web Services services, except for the following:
- You can't use tags to track costs for Amazon QuickSight. This isn't possible because you can't tag the resources that Amazon QuickSight costs are based on, for example Amazon QuickSight storage capacity (SPICE), number of users, type of users, and usage metrics.
- 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.
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.
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.