amazonka-redshift-2.0: Amazon Redshift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Redshift.CreateTags

Description

Adds tags to a cluster.

A resource can have up to 50 tags. If you try to create more than 50 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.

Synopsis

Creating a Request

data CreateTags Source #

Contains the output from the CreateTags action.

See: newCreateTags smart constructor.

Constructors

CreateTags' 

Fields

  • resourceName :: Text

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

  • tags :: [Tag]

    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".

Instances

Instances details
ToHeaders CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Methods

toHeaders :: CreateTags -> [Header] #

ToPath CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

ToQuery CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

AWSRequest CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Associated Types

type AWSResponse CreateTags #

Generic CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Associated Types

type Rep CreateTags :: Type -> Type #

Read CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Show CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

NFData CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Methods

rnf :: CreateTags -> () #

Eq CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Hashable CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type AWSResponse CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type Rep CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type Rep CreateTags = D1 ('MetaData "CreateTags" "Amazonka.Redshift.CreateTags" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "CreateTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))

newCreateTags Source #

Arguments

:: Text

CreateTags

-> CreateTags 

Create a value of CreateTags 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:

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

CreateTags, createTags_tags - 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".

Request Lenses

createTags_resourceName :: 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-2:123456789:cluster:t1.

createTags_tags :: 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

data CreateTagsResponse Source #

See: newCreateTagsResponse smart constructor.

Constructors

CreateTagsResponse' 

Instances

Instances details
Generic CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Associated Types

type Rep CreateTagsResponse :: Type -> Type #

Read CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Show CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

NFData CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Methods

rnf :: CreateTagsResponse -> () #

Eq CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type Rep CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type Rep CreateTagsResponse = D1 ('MetaData "CreateTagsResponse" "Amazonka.Redshift.CreateTags" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "CreateTagsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newCreateTagsResponse :: CreateTagsResponse Source #

Create a value of CreateTagsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.