libZSservicesZSamazonka-redshiftZSamazonka-redshift
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.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
Eq CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Read CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Show CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Generic CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Associated Types

type Rep CreateTags :: Type -> Type #

NFData CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Methods

rnf :: CreateTags -> () #

Hashable CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

AWSRequest CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Associated Types

type AWSResponse CreateTags #

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

type Rep CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type Rep CreateTags = D1 ('MetaData "CreateTags" "Amazonka.Redshift.CreateTags" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "CreateTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))
type AWSResponse CreateTags Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

newCreateTags Source #

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:

$sel:resourceName: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.

$sel:tags: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
Eq CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Read CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Show CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Generic CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Associated Types

type Rep CreateTagsResponse :: Type -> Type #

NFData CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

Methods

rnf :: CreateTagsResponse -> () #

type Rep CreateTagsResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateTags

type Rep CreateTagsResponse = D1 ('MetaData "CreateTagsResponse" "Amazonka.Redshift.CreateTags" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" '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.