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.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 Source #

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:

  • uaRoutingConfig - Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see 'lambda-traffic-shifting-using-aliases' .
  • 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.
  • uaRevisionId - An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .
  • uaFunctionName - The function name for which the alias is created. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.
  • uaName - The alias name.

data UpdateAlias Source #

See: updateAlias smart constructor.

Instances
Eq UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Data UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.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 Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Show UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Generic UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Associated Types

type Rep UpdateAlias :: Type -> Type #

Hashable UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

ToJSON UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

AWSRequest UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Associated Types

type Rs UpdateAlias :: Type #

ToHeaders UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Methods

toHeaders :: UpdateAlias -> [Header] #

ToPath UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

ToQuery UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

NFData UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Methods

rnf :: UpdateAlias -> () #

type Rep UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

type Rep UpdateAlias = D1 (MetaData "UpdateAlias" "Network.AWS.Lambda.UpdateAlias" "amazonka-lambda-1.6.1-KQvkrTCQjBWL6Bwjq8xw0f" False) (C1 (MetaCons "UpdateAlias'" PrefixI True) ((S1 (MetaSel (Just "_uaRoutingConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AliasRoutingConfiguration)) :*: (S1 (MetaSel (Just "_uaFunctionVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uaDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_uaRevisionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uaFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_uaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateAlias Source # 
Instance details

Defined in Network.AWS.Lambda.UpdateAlias

Request Lenses

uaRoutingConfig :: Lens' UpdateAlias (Maybe AliasRoutingConfiguration) Source #

Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see 'lambda-traffic-shifting-using-aliases' .

uaFunctionVersion :: Lens' UpdateAlias (Maybe Text) Source #

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

uaDescription :: Lens' UpdateAlias (Maybe Text) Source #

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

uaRevisionId :: Lens' UpdateAlias (Maybe Text) Source #

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

uaFunctionName :: Lens' UpdateAlias Text Source #

The function name for which the alias is created. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

uaName :: Lens' UpdateAlias Text Source #

The alias name.

Destructuring the Response

aliasConfiguration :: AliasConfiguration Source #

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:

  • acRoutingConfig - Specifies an additional function versions the alias points to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see 'lambda-traffic-shifting-using-aliases' .
  • 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.
  • acRevisionId - Represents the latest updated revision of the function or alias.

data AliasConfiguration Source #

Provides configuration information about a Lambda function version alias.

See: aliasConfiguration smart constructor.

Instances
Eq AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

Data AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

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

Defined in Network.AWS.Lambda.Types.Product

Show AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

Generic AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

Associated Types

type Rep AliasConfiguration :: Type -> Type #

Hashable AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

FromJSON AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

NFData AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

Methods

rnf :: AliasConfiguration -> () #

type Rep AliasConfiguration Source # 
Instance details

Defined in Network.AWS.Lambda.Types.Product

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

Response Lenses

acRoutingConfig :: Lens' AliasConfiguration (Maybe AliasRoutingConfiguration) Source #

Specifies an additional function versions the alias points to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see 'lambda-traffic-shifting-using-aliases' .

acFunctionVersion :: Lens' AliasConfiguration (Maybe Text) Source #

Function version to which the alias points.

acAliasARN :: Lens' AliasConfiguration (Maybe Text) Source #

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 .

acRevisionId :: Lens' AliasConfiguration (Maybe Text) Source #

Represents the latest updated revision of the function or alias.