amazonka-redshift-1.6.1: Amazon Redshift SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

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:

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

data CreateTags Source #

Contains the output from the CreateTags action.

See: createTags smart constructor.

Instances
Eq CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Data CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTags -> c CreateTags #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTags #

toConstr :: CreateTags -> Constr #

dataTypeOf :: CreateTags -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateTags) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTags) #

gmapT :: (forall b. Data b => b -> b) -> CreateTags -> CreateTags #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTags -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTags -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTags -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTags -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTags -> m CreateTags #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTags -> m CreateTags #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTags -> m CreateTags #

Read CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Show CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Generic CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Associated Types

type Rep CreateTags :: Type -> Type #

Hashable CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

AWSRequest CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Associated Types

type Rs CreateTags :: Type #

ToHeaders CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Methods

toHeaders :: CreateTags -> [Header] #

ToPath CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

ToQuery CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

NFData CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Methods

rnf :: CreateTags -> () #

type Rep CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

type Rep CreateTags = D1 (MetaData "CreateTags" "Network.AWS.Redshift.CreateTags" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "CreateTags'" PrefixI True) (S1 (MetaSel (Just "_ctResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ctTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Tag])))
type Rs CreateTags Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

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.

data CreateTagsResponse Source #

See: createTagsResponse smart constructor.

Instances
Eq CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Data CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTagsResponse -> c CreateTagsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTagsResponse #

toConstr :: CreateTagsResponse -> Constr #

dataTypeOf :: CreateTagsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateTagsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTagsResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateTagsResponse -> CreateTagsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTagsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTagsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTagsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTagsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTagsResponse -> m CreateTagsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTagsResponse -> m CreateTagsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTagsResponse -> m CreateTagsResponse #

Read CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Show CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Generic CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Associated Types

type Rep CreateTagsResponse :: Type -> Type #

NFData CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

Methods

rnf :: CreateTagsResponse -> () #

type Rep CreateTagsResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CreateTags

type Rep CreateTagsResponse = D1 (MetaData "CreateTagsResponse" "Network.AWS.Redshift.CreateTags" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "CreateTagsResponse'" PrefixI False) (U1 :: Type -> Type))