amazonka-lambda-1.6.0: 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.CreateAlias

Contents

Description

Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases .

Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.

Synopsis

Creating a Request

createAlias #

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

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

  • caRoutingConfig - 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' .
  • caDescription - Description of the alias.
  • caFunctionName - Name of the Lambda function for which you want to create an alias. 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.
  • caName - Name for the alias you are creating.
  • caFunctionVersion - Lambda function version for which you are creating the alias.

data CreateAlias #

See: createAlias smart constructor.

Instances

Eq CreateAlias # 
Data CreateAlias # 

Methods

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

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

toConstr :: CreateAlias -> Constr #

dataTypeOf :: CreateAlias -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAlias # 
Show CreateAlias # 
Generic CreateAlias # 

Associated Types

type Rep CreateAlias :: * -> * #

Hashable CreateAlias # 
ToJSON CreateAlias # 
NFData CreateAlias # 

Methods

rnf :: CreateAlias -> () #

AWSRequest CreateAlias # 
ToHeaders CreateAlias # 

Methods

toHeaders :: CreateAlias -> [Header] #

ToPath CreateAlias # 
ToQuery CreateAlias # 
type Rep CreateAlias # 
type Rep CreateAlias = D1 * (MetaData "CreateAlias" "Network.AWS.Lambda.CreateAlias" "amazonka-lambda-1.6.0-1S46uL4BR98AJZY1Yda4oo" False) (C1 * (MetaCons "CreateAlias'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_caRoutingConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AliasRoutingConfiguration))) (S1 * (MetaSel (Just Symbol "_caDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_caFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_caName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_caFunctionVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs CreateAlias # 

Request Lenses

caRoutingConfig :: Lens' CreateAlias (Maybe AliasRoutingConfiguration) #

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

caDescription :: Lens' CreateAlias (Maybe Text) #

Description of the alias.

caFunctionName :: Lens' CreateAlias Text #

Name of the Lambda function for which you want to create an alias. 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.

caName :: Lens' CreateAlias Text #

Name for the alias you are creating.

caFunctionVersion :: Lens' CreateAlias Text #

Lambda function version for which you are creating the alias.

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:

  • 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 #

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.6.0-1S46uL4BR98AJZY1Yda4oo" False) (C1 * (MetaCons "AliasConfiguration'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_acRoutingConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AliasRoutingConfiguration))) ((:*:) * (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))) (S1 * (MetaSel (Just Symbol "_acRevisionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))))

Response Lenses

acRoutingConfig :: Lens' AliasConfiguration (Maybe AliasRoutingConfiguration) #

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) #

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 .

acRevisionId :: Lens' AliasConfiguration (Maybe Text) #

Represents the latest updated revision of the function or alias.