libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
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.StorageGateway.AddTagsToResource

Description

Adds one or more tags to the specified resource. You use tags to add metadata to resources, which you can use to categorize these resources. For example, you can categorize resources by purpose, owner, environment, or team. Each tag consists of a key and a value, which you define. You can add tags to the following Storage Gateway resources:

  • Storage gateways of all types
  • Storage volumes
  • Virtual tapes
  • NFS and SMB file shares
  • File System associations

You can create a maximum of 50 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.

Synopsis

Creating a Request

data AddTagsToResource Source #

AddTagsToResourceInput

See: newAddTagsToResource smart constructor.

Constructors

AddTagsToResource' 

Fields

  • resourceARN :: Text

    The Amazon Resource Name (ARN) of the resource you want to add tags to.

  • tags :: [Tag]

    The key-value pair that represents the tag you want to add to the resource. The value can be an empty string.

    Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

Instances

Instances details
Eq AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Read AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Show AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Generic AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Associated Types

type Rep AddTagsToResource :: Type -> Type #

NFData AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Methods

rnf :: AddTagsToResource -> () #

Hashable AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

ToJSON AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

AWSRequest AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Associated Types

type AWSResponse AddTagsToResource #

ToHeaders AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

ToPath AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

ToQuery AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

type Rep AddTagsToResource Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

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

Defined in Amazonka.StorageGateway.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:resourceARN:AddTagsToResource', addTagsToResource_resourceARN - The Amazon Resource Name (ARN) of the resource you want to add tags to.

$sel:tags:AddTagsToResource', addTagsToResource_tags - The key-value pair that represents the tag you want to add to the resource. The value can be an empty string.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

Request Lenses

addTagsToResource_resourceARN :: Lens' AddTagsToResource Text Source #

The Amazon Resource Name (ARN) of the resource you want to add tags to.

addTagsToResource_tags :: Lens' AddTagsToResource [Tag] Source #

The key-value pair that represents the tag you want to add to the resource. The value can be an empty string.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

Destructuring the Response

data AddTagsToResourceResponse Source #

AddTagsToResourceOutput

See: newAddTagsToResourceResponse smart constructor.

Constructors

AddTagsToResourceResponse' 

Fields

Instances

Instances details
Eq AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Read AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Show AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Generic AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

Associated Types

type Rep AddTagsToResourceResponse :: Type -> Type #

NFData AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

type Rep AddTagsToResourceResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddTagsToResource

type Rep AddTagsToResourceResponse = D1 ('MetaData "AddTagsToResourceResponse" "Amazonka.StorageGateway.AddTagsToResource" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "AddTagsToResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:resourceARN:AddTagsToResource', addTagsToResourceResponse_resourceARN - The Amazon Resource Name (ARN) of the resource you want to add tags to.

$sel:httpStatus:AddTagsToResourceResponse', addTagsToResourceResponse_httpStatus - The response's http status code.

Response Lenses

addTagsToResourceResponse_resourceARN :: Lens' AddTagsToResourceResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the resource you want to add tags to.