Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- getAlias :: Text -> Text -> GetAlias
- data GetAlias
- gaFunctionName :: Lens' GetAlias Text
- gaName :: Lens' GetAlias 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 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.
See: getAlias
smart constructor.
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.
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.