Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- createAlias :: Text -> Text -> Text -> CreateAlias
- data CreateAlias
- caDescription :: Lens' CreateAlias (Maybe Text)
- caFunctionName :: Lens' CreateAlias Text
- caName :: Lens' CreateAlias Text
- caFunctionVersion :: Lens' CreateAlias Text
- aliasConfiguration :: AliasConfiguration
- data AliasConfiguration
- acName :: Lens' AliasConfiguration (Maybe Text)
- acFunctionVersion :: Lens' AliasConfiguration (Maybe Text)
- acAliasARN :: Lens' AliasConfiguration (Maybe Text)
- acDescription :: Lens' AliasConfiguration (Maybe Text)
Creating a Request
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:
caDescription
- Description of the alias.caFunctionName
- Name of the Lambda function for which you want to create an alias.caName
- Name for the alias you are creating.caFunctionVersion
- Lambda function version for which you are creating the alias.
data CreateAlias Source #
See: createAlias
smart constructor.
Request Lenses
caDescription :: Lens' CreateAlias (Maybe Text) Source #
Description of the alias.
caFunctionName :: Lens' CreateAlias Text Source #
Name of the Lambda function for which you want to create an alias.
caFunctionVersion :: Lens' CreateAlias Text Source #
Lambda function version for which you are creating the alias.
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:
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 calledBETA
that points to a helloworld function version, the ARN isarn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA
.acDescription
- Alias description.
data AliasConfiguration Source #
Provides configuration information about a Lambda function version alias.
See: aliasConfiguration
smart constructor.
Response Lenses
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
.
acDescription :: Lens' AliasConfiguration (Maybe Text) Source #
Alias description.