amazonka-redshift-0.0.2: Amazon Redshift SDK.

Safe HaskellNone




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.



Request constructor

createTags Source

CreateTags constructor.

The fields accessible through corresponding lenses are:

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 'tag-key' and the corresponding value is passed in with the parameter 'tag-value'. The 'tag-key' and 'tag-value' parameters are separated by a colon (:). Separate multiple tags with a space. For example, '--tags "tag-key"="owner":"tag-value"="admin""tag-key"="environment":"tag-value"="test""tag-key"="version":"tag-value"="1.0"'.


Response constructor