amazonka-workspaces-web-2.0: Amazon WorkSpaces Web 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.WorkSpacesWeb.TagResource

Description

Adds or overwrites one or more tags for the specified resource.

Synopsis

Creating a Request

data TagResource Source #

See: newTagResource smart constructor.

Constructors

TagResource' 

Fields

  • clientToken :: Maybe Text

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

    If you do not specify a client token, one is automatically generated by the AWS SDK.

  • resourceArn :: Text

    The ARN of the resource.

  • tags :: [Sensitive Tag]

    The tags of the resource.

Instances

Instances details
ToJSON TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

ToHeaders TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Associated Types

type AWSResponse TagResource #

Generic TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

Show TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

NFData TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Methods

rnf :: TagResource -> () #

Eq TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Hashable TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

type AWSResponse TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

type Rep TagResource Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

type Rep TagResource = D1 ('MetaData "TagResource" "Amazonka.WorkSpacesWeb.TagResource" "amazonka-workspaces-web-2.0-7elUOg7oNE07CClY3TuUcU" 'False) (C1 ('MetaCons "TagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Sensitive 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:clientToken:TagResource', tagResource_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

If you do not specify a client token, one is automatically generated by the AWS SDK.

$sel:resourceArn:TagResource', tagResource_resourceArn - The ARN of the resource.

$sel:tags:TagResource', tagResource_tags - The tags of the resource.

Request Lenses

tagResource_clientToken :: Lens' TagResource (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

If you do not specify a client token, one is automatically generated by the AWS SDK.

tagResource_tags :: Lens' TagResource [Tag] Source #

The tags of 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.WorkSpacesWeb.TagResource

Associated Types

type Rep TagResourceResponse :: Type -> Type #

Read TagResourceResponse Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Show TagResourceResponse Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

NFData TagResourceResponse Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

Methods

rnf :: TagResourceResponse -> () #

Eq TagResourceResponse Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

type Rep TagResourceResponse Source # 
Instance details

Defined in Amazonka.WorkSpacesWeb.TagResource

type Rep TagResourceResponse = D1 ('MetaData "TagResourceResponse" "Amazonka.WorkSpacesWeb.TagResource" "amazonka-workspaces-web-2.0-7elUOg7oNE07CClY3TuUcU" 'False) (C1 ('MetaCons "TagResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") '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:httpStatus:TagResourceResponse', tagResourceResponse_httpStatus - The response's http status code.

Response Lenses