amazonka-lambda-1.4.5: Amazon Lambda SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lambda.UpdateAlias

Contents

Description

Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases .

This requires permission for the lambda:UpdateAlias action.

Synopsis

Creating a Request

updateAlias #

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

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

  • uaFunctionVersion - Using this parameter you can change the Lambda function version to which the alias points.
  • uaDescription - You can change the description of the alias using this parameter.
  • uaFunctionName - The function name for which the alias is created.
  • uaName - The alias name.

data UpdateAlias #

See: updateAlias smart constructor.

Instances

Eq UpdateAlias # 
Data UpdateAlias # 

Methods

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

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

toConstr :: UpdateAlias -> Constr #

dataTypeOf :: UpdateAlias -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAlias # 
Show UpdateAlias # 
Generic UpdateAlias # 

Associated Types

type Rep UpdateAlias :: * -> * #

Hashable UpdateAlias # 
ToJSON UpdateAlias # 
NFData UpdateAlias # 

Methods

rnf :: UpdateAlias -> () #

AWSRequest UpdateAlias # 
ToQuery UpdateAlias # 
ToPath UpdateAlias # 
ToHeaders UpdateAlias # 

Methods

toHeaders :: UpdateAlias -> [Header] #

type Rep UpdateAlias # 
type Rep UpdateAlias = D1 (MetaData "UpdateAlias" "Network.AWS.Lambda.UpdateAlias" "amazonka-lambda-1.4.5-HBw5BdgXNtO3bSf0cOyCBw" False) (C1 (MetaCons "UpdateAlias'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uaFunctionVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uaDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_uaFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_uaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateAlias # 

Request Lenses

uaFunctionVersion :: Lens' UpdateAlias (Maybe Text) #

Using this parameter you can change the Lambda function version to which the alias points.

uaDescription :: Lens' UpdateAlias (Maybe Text) #

You can change the description of the alias using this parameter.

uaFunctionName :: Lens' UpdateAlias Text #

The function name for which the alias is created.

uaName :: Lens' UpdateAlias Text #

The alias name.

Destructuring the Response

aliasConfiguration :: AliasConfiguration #

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

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

  • acName - Alias name.
  • acFunctionVersion - Function version to which the alias points.
  • acAliasARN - Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called BETA that points to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA .
  • acDescription - Alias description.

data AliasConfiguration #

Provides configuration information about a Lambda function version alias.

See: aliasConfiguration smart constructor.

Instances

Eq AliasConfiguration # 
Data AliasConfiguration # 

Methods

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

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

toConstr :: AliasConfiguration -> Constr #

dataTypeOf :: AliasConfiguration -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AliasConfiguration # 
Show AliasConfiguration # 
Generic AliasConfiguration # 
Hashable AliasConfiguration # 
FromJSON AliasConfiguration # 
NFData AliasConfiguration # 

Methods

rnf :: AliasConfiguration -> () #

type Rep AliasConfiguration # 
type Rep AliasConfiguration = D1 (MetaData "AliasConfiguration" "Network.AWS.Lambda.Types.Product" "amazonka-lambda-1.4.5-HBw5BdgXNtO3bSf0cOyCBw" False) (C1 (MetaCons "AliasConfiguration'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_acName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_acFunctionVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_acAliasARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_acDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

Response Lenses

acFunctionVersion :: Lens' AliasConfiguration (Maybe Text) #

Function version to which the alias points.

acAliasARN :: Lens' AliasConfiguration (Maybe Text) #

Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called BETA that points to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA .