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.GetAlias

Contents

Description

Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases .

This requires permission for the lambda:GetAlias action.

Synopsis

Creating a Request

getAlias Source #

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

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

  • gaFunctionName - Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function so you must specify the function name. 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.
  • gaName - Name of the alias for which you want to retrieve information.

data GetAlias Source #

See: getAlias smart constructor.

Instances
Eq GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Data GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Methods

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

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

toConstr :: GetAlias -> Constr #

dataTypeOf :: GetAlias -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Show GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Generic GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Associated Types

type Rep GetAlias :: Type -> Type #

Methods

from :: GetAlias -> Rep GetAlias x #

to :: Rep GetAlias x -> GetAlias #

Hashable GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Methods

hashWithSalt :: Int -> GetAlias -> Int #

hash :: GetAlias -> Int #

AWSRequest GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Associated Types

type Rs GetAlias :: Type #

ToHeaders GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Methods

toHeaders :: GetAlias -> [Header] #

ToPath GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

ToQuery GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

NFData GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

Methods

rnf :: GetAlias -> () #

type Rep GetAlias Source # 
Instance details

Defined in Network.AWS.Lambda.GetAlias

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

Defined in Network.AWS.Lambda.GetAlias

Request Lenses

gaFunctionName :: Lens' GetAlias Text Source #

Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function so you must specify the function name. 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.

gaName :: Lens' GetAlias Text Source #

Name of the alias for which you want to retrieve information.

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.