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 |
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.
- updateAlias :: Text -> Text -> UpdateAlias
- data UpdateAlias
- uaFunctionVersion :: Lens' UpdateAlias (Maybe Text)
- uaDescription :: Lens' UpdateAlias (Maybe Text)
- uaFunctionName :: Lens' UpdateAlias Text
- uaName :: Lens' UpdateAlias 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 UpdateAlias
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateAlias Source
See: updateAlias
smart constructor.
Request Lenses
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.
uaFunctionName :: Lens' UpdateAlias Text Source
The function name for which the alias is created.
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:
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.