amazonka-quicksight-2.0: Amazon QuickSight SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.QuickSight.TagResource

Description

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

Creating a Request

data TagResource Source #

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource that you want to tag.

  • tags :: NonEmpty Tag

    Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.

Instances

Instances details
ToJSON TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Associated Types

type AWSResponse TagResource #

Generic TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

Read TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Show TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

NFData TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Methods

rnf :: TagResource -> () #

Eq TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Hashable TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.QuickSight.TagResource" "amazonka-quicksight-2.0-9P6nV9koXl6GTlt8ZjS7C9" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Tag))))

newTagResource Source #

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.

Constructors

TagResourceResponse' 

Fields

Instances

Instances details
Generic TagResourceResponse Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Associated Types

type Rep TagResourceResponse :: Type -> Type #

Read TagResourceResponse Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Show TagResourceResponse Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

NFData TagResourceResponse Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

Methods

rnf :: TagResourceResponse -> () #

Eq TagResourceResponse Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

type Rep TagResourceResponse Source # 
Instance details

Defined in Amazonka.QuickSight.TagResource

type Rep TagResourceResponse = D1 ('MetaData "TagResourceResponse" "Amazonka.QuickSight.TagResource" "amazonka-quicksight-2.0-9P6nV9koXl6GTlt8ZjS7C9" 'False) (C1 ('MetaCons "TagResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.