libZSservicesZSamazonka-dsZSamazonka-ds
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DirectoryService.AddTagsToResource

Description

Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.

Synopsis

Creating a Request

data AddTagsToResource Source #

See: newAddTagsToResource smart constructor.

Constructors

AddTagsToResource' 

Fields

  • resourceId :: Text

    Identifier (ID) for the directory to which to add the tag.

  • tags :: [Tag]

    The tags to be assigned to the directory.

Instances

Instances details
Eq AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Read AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Show AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Generic AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Associated Types

type Rep AddTagsToResource :: Type -> Type #

NFData AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Methods

rnf :: AddTagsToResource -> () #

Hashable AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

ToJSON AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

AWSRequest AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Associated Types

type AWSResponse AddTagsToResource #

ToHeaders AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

ToPath AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

ToQuery AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

type Rep AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

type Rep AddTagsToResource = D1 ('MetaData "AddTagsToResource" "Amazonka.DirectoryService.AddTagsToResource" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "AddTagsToResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))
type AWSResponse AddTagsToResource Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

newAddTagsToResource Source #

Create a value of AddTagsToResource 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:resourceId:AddTagsToResource', addTagsToResource_resourceId - Identifier (ID) for the directory to which to add the tag.

$sel:tags:AddTagsToResource', addTagsToResource_tags - The tags to be assigned to the directory.

Request Lenses

addTagsToResource_resourceId :: Lens' AddTagsToResource Text Source #

Identifier (ID) for the directory to which to add the tag.

addTagsToResource_tags :: Lens' AddTagsToResource [Tag] Source #

The tags to be assigned to the directory.

Destructuring the Response

data AddTagsToResourceResponse Source #

See: newAddTagsToResourceResponse smart constructor.

Constructors

AddTagsToResourceResponse' 

Fields

Instances

Instances details
Eq AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Read AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Show AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Generic AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

Associated Types

type Rep AddTagsToResourceResponse :: Type -> Type #

NFData AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

type Rep AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.AddTagsToResource

type Rep AddTagsToResourceResponse = D1 ('MetaData "AddTagsToResourceResponse" "Amazonka.DirectoryService.AddTagsToResource" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "AddTagsToResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddTagsToResourceResponse Source #

Create a value of AddTagsToResourceResponse 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:AddTagsToResourceResponse', addTagsToResourceResponse_httpStatus - The response's http status code.

Response Lenses