amazonka-storagegateway-1.3.3.1: Amazon Storage Gateway SDK.

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

Network.AWS.StorageGateway.AddTagsToResource

Contents

Description

This operation 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 AWS Storage Gateway resources:

  • Storage gateways of all types
  • Storage Volumes
  • Virtual Tapes

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

See: AWS API Reference for AddTagsToResource.

Synopsis

Creating a Request

addTagsToResource Source

Creates a value of AddTagsToResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

attrResourceARN :: Lens' AddTagsToResource Text Source

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

attrTags :: 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: + - = . _ : / '.

Destructuring the Response

addTagsToResourceResponse Source

Creates a value of AddTagsToResourceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

attrrsResourceARN :: Lens' AddTagsToResourceResponse (Maybe Text) Source

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