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 list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases .
This requires permission for the lambda:ListAliases action.
- listAliases :: Text -> ListAliases
- data ListAliases
- laMarker :: Lens' ListAliases (Maybe Text)
- laMaxItems :: Lens' ListAliases (Maybe Natural)
- laFunctionVersion :: Lens' ListAliases (Maybe Text)
- laFunctionName :: Lens' ListAliases Text
- listAliasesResponse :: Int -> ListAliasesResponse
- data ListAliasesResponse
- larsAliases :: Lens' ListAliasesResponse [AliasConfiguration]
- larsNextMarker :: Lens' ListAliasesResponse (Maybe Text)
- larsResponseStatus :: Lens' ListAliasesResponse Int
Creating a Request
Creates a value of ListAliases
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
laMarker
- Optional string. An opaque pagination token returned from a previousListAliases
operation. If present, indicates where to continue the listing.laMaxItems
- Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0.laFunctionVersion
- If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function.laFunctionName
- Lambda function name for which the alias is created. 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.
data ListAliases Source #
See: listAliases
smart constructor.
Request Lenses
laMarker :: Lens' ListAliases (Maybe Text) Source #
Optional string. An opaque pagination token returned from a previous ListAliases
operation. If present, indicates where to continue the listing.
laMaxItems :: Lens' ListAliases (Maybe Natural) Source #
Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0.
laFunctionVersion :: Lens' ListAliases (Maybe Text) Source #
If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function.
laFunctionName :: Lens' ListAliases Text Source #
Lambda function name for which the alias is created. 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
Creates a value of ListAliasesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
larsAliases
- A list of aliases.larsNextMarker
- A string, present if there are more aliases.larsResponseStatus
- -- | The response status code.
data ListAliasesResponse Source #
See: listAliasesResponse
smart constructor.
Response Lenses
larsAliases :: Lens' ListAliasesResponse [AliasConfiguration] Source #
A list of aliases.
larsNextMarker :: Lens' ListAliasesResponse (Maybe Text) Source #
A string, present if there are more aliases.
larsResponseStatus :: Lens' ListAliasesResponse Int Source #
- - | The response status code.