amazonka-lambda-1.6.1: Amazon Lambda 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.Lambda.TagResource

Contents

Description

Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .

Synopsis

Creating a Request

tagResource Source #

Arguments

:: Text

trResource

-> TagResource 

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

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

  • trResource - The ARN (Amazon Resource Name) of the Lambda function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .
  • trTags - The list of tags (key-value pairs) you are assigning to the Lambda function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .

data TagResource Source #

See: tagResource smart constructor.

Instances
Eq TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Data TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Methods

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

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

toConstr :: TagResource -> Constr #

dataTypeOf :: TagResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Show TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Generic TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Associated Types

type Rep TagResource :: Type -> Type #

Hashable TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

ToJSON TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

AWSRequest TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Associated Types

type Rs TagResource :: Type #

ToHeaders TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Methods

toHeaders :: TagResource -> [Header] #

ToPath TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

ToQuery TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

NFData TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Methods

rnf :: TagResource -> () #

type Rep TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

type Rep TagResource = D1 (MetaData "TagResource" "Network.AWS.Lambda.TagResource" "amazonka-lambda-1.6.1-KQvkrTCQjBWL6Bwjq8xw0f" False) (C1 (MetaCons "TagResource'" PrefixI True) (S1 (MetaSel (Just "_trResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_trTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))))
type Rs TagResource Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Request Lenses

trResource :: Lens' TagResource Text Source #

The ARN (Amazon Resource Name) of the Lambda function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .

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

The list of tags (key-value pairs) you are assigning to the Lambda function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .

Destructuring the Response

tagResourceResponse :: TagResourceResponse Source #

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

data TagResourceResponse Source #

See: tagResourceResponse smart constructor.

Instances
Eq TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Data TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Methods

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

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

toConstr :: TagResourceResponse -> Constr #

dataTypeOf :: TagResourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Show TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Generic TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Associated Types

type Rep TagResourceResponse :: Type -> Type #

NFData TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

Methods

rnf :: TagResourceResponse -> () #

type Rep TagResourceResponse Source # 
Instance details

Defined in Network.AWS.Lambda.TagResource

type Rep TagResourceResponse = D1 (MetaData "TagResourceResponse" "Network.AWS.Lambda.TagResource" "amazonka-lambda-1.6.1-KQvkrTCQjBWL6Bwjq8xw0f" False) (C1 (MetaCons "TagResourceResponse'" PrefixI False) (U1 :: Type -> Type))