amazonka-resourcegroupstagging-1.6.0: Amazon Resource Groups Tagging API 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.ResourceGroupsTagging.TagResources

Contents

Description

Applies one or more tags to the specified resources. Note the following:

  • Not all resources can have tags. For a list of resources that support tagging, see Supported Resources in the AWS Resource Groups and Tag Editor User Guide .
  • Each resource can have up to 50 tags. For other limits, see Tag Restrictions in the Amazon EC2 User Guide for Linux Instances .
  • You can only tag resources that are located in the specified region for the AWS account.
  • To add tags to a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for adding tags. For more information, see Obtaining Permissions for Tagging in the AWS Resource Groups and Tag Editor User Guide .

Synopsis

Creating a Request

tagResources Source #

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

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

  • trResourceARNList - A list of ARNs. An ARN (Amazon Resource Name) uniquely identifies a resource. You can specify a minimum of 1 and a maximum of 20 ARNs (resources) to tag. An ARN can be set to a maximum of 1600 characters. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
  • trTags - The tags that you want to add to the specified resources. A tag consists of a key and a value that you define.

data TagResources Source #

See: tagResources smart constructor.

Instances

Eq TagResources Source # 
Data TagResources Source # 

Methods

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

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

toConstr :: TagResources -> Constr #

dataTypeOf :: TagResources -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResources Source # 
Show TagResources Source # 
Generic TagResources Source # 

Associated Types

type Rep TagResources :: * -> * #

Hashable TagResources Source # 
ToJSON TagResources Source # 
NFData TagResources Source # 

Methods

rnf :: TagResources -> () #

AWSRequest TagResources Source # 
ToHeaders TagResources Source # 
ToPath TagResources Source # 
ToQuery TagResources Source # 
type Rep TagResources Source # 
type Rep TagResources = D1 * (MetaData "TagResources" "Network.AWS.ResourceGroupsTagging.TagResources" "amazonka-resourcegroupstagging-1.6.0-5L2Cxw2zEoEKPDJx4TkmLS" False) (C1 * (MetaCons "TagResources'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_trResourceARNList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 Text))) (S1 * (MetaSel (Just Symbol "_trTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Map Text Text)))))
type Rs TagResources Source # 

Request Lenses

trResourceARNList :: Lens' TagResources (NonEmpty Text) Source #

A list of ARNs. An ARN (Amazon Resource Name) uniquely identifies a resource. You can specify a minimum of 1 and a maximum of 20 ARNs (resources) to tag. An ARN can be set to a maximum of 1600 characters. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

trTags :: Lens' TagResources (HashMap Text Text) Source #

The tags that you want to add to the specified resources. A tag consists of a key and a value that you define.

Destructuring the Response

tagResourcesResponse Source #

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

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

  • trrsFailedResourcesMap - Details of resources that could not be tagged. An error code, status code, and error message are returned for each failed item.
  • trrsResponseStatus - -- | The response status code.

data TagResourcesResponse Source #

See: tagResourcesResponse smart constructor.

Instances

Eq TagResourcesResponse Source # 
Data TagResourcesResponse Source # 

Methods

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

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

toConstr :: TagResourcesResponse -> Constr #

dataTypeOf :: TagResourcesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResourcesResponse Source # 
Show TagResourcesResponse Source # 
Generic TagResourcesResponse Source # 
NFData TagResourcesResponse Source # 

Methods

rnf :: TagResourcesResponse -> () #

type Rep TagResourcesResponse Source # 
type Rep TagResourcesResponse = D1 * (MetaData "TagResourcesResponse" "Network.AWS.ResourceGroupsTagging.TagResources" "amazonka-resourcegroupstagging-1.6.0-5L2Cxw2zEoEKPDJx4TkmLS" False) (C1 * (MetaCons "TagResourcesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_trrsFailedResourcesMap") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text FailureInfo)))) (S1 * (MetaSel (Just Symbol "_trrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

trrsFailedResourcesMap :: Lens' TagResourcesResponse (HashMap Text FailureInfo) Source #

Details of resources that could not be tagged. An error code, status code, and error message are returned for each failed item.

trrsResponseStatus :: Lens' TagResourcesResponse Int Source #

  • - | The response status code.