amazonka-redshift-1.3.2: Amazon Redshift 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.Redshift.CreateTags

Contents

Description

Adds one or more tags to a specified resource.

A resource can have up to 10 tags. If you try to create more than 10 tags for a resource, you will receive an error and the attempt will fail.

If you specify a key that already exists for the resource, the value for that key will be updated with the new value.

See: AWS API Reference for CreateTags.

Synopsis

Creating a Request

createTags Source

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

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

Request Lenses

ctResourceName :: Lens' CreateTags Text Source

The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example, 'arn:aws:redshift:us-east-1:123456789:cluster:t1'.

ctTags :: Lens' CreateTags [Tag] Source

One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter Key and the corresponding value is passed in with the parameter Value. The Key and Value parameters are separated by a comma (,). Separate multiple tags with a space. For example, '--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0"'.

Destructuring the Response

createTagsResponse :: CreateTagsResponse Source

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