amazonka-resourcegroupstagging-1.6.1: 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 # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Data TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

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 # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Show TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Generic TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Associated Types

type Rep TagResources :: Type -> Type #

Hashable TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

ToJSON TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

AWSRequest TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Associated Types

type Rs TagResources :: Type #

ToHeaders TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

ToPath TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

ToQuery TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

NFData TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Methods

rnf :: TagResources -> () #

type Rep TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

type Rep TagResources = D1 (MetaData "TagResources" "Network.AWS.ResourceGroupsTagging.TagResources" "amazonka-resourcegroupstagging-1.6.1-3OURgsuT9tSCPWoEaLBGfy" False) (C1 (MetaCons "TagResources'" PrefixI True) (S1 (MetaSel (Just "_trResourceARNList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 Text)) :*: S1 (MetaSel (Just "_trTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))))
type Rs TagResources Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

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 # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Data TagResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

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 # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Show TagResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Generic TagResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Associated Types

type Rep TagResourcesResponse :: Type -> Type #

NFData TagResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

Methods

rnf :: TagResourcesResponse -> () #

type Rep TagResourcesResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroupsTagging.TagResources

type Rep TagResourcesResponse = D1 (MetaData "TagResourcesResponse" "Network.AWS.ResourceGroupsTagging.TagResources" "amazonka-resourcegroupstagging-1.6.1-3OURgsuT9tSCPWoEaLBGfy" False) (C1 (MetaCons "TagResourcesResponse'" PrefixI True) (S1 (MetaSel (Just "_trrsFailedResourcesMap") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text FailureInfo))) :*: S1 (MetaSel (Just "_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.