| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.ListAliases
Description
Retrieves all aliases for this Amazon Web Services account. You can filter the result set by alias name and/or routing strategy type. Use the pagination parameters to retrieve results in sequential pages.
Returned aliases are not listed in any particular order.
Related actions
This operation returns paginated results.
Synopsis
- data ListAliases = ListAliases' {}
- newListAliases :: ListAliases
- listAliases_limit :: Lens' ListAliases (Maybe Natural)
- listAliases_name :: Lens' ListAliases (Maybe Text)
- listAliases_nextToken :: Lens' ListAliases (Maybe Text)
- listAliases_routingStrategyType :: Lens' ListAliases (Maybe RoutingStrategyType)
- data ListAliasesResponse = ListAliasesResponse' {}
- newListAliasesResponse :: Int -> ListAliasesResponse
- listAliasesResponse_aliases :: Lens' ListAliasesResponse (Maybe [Alias])
- listAliasesResponse_nextToken :: Lens' ListAliasesResponse (Maybe Text)
- listAliasesResponse_httpStatus :: Lens' ListAliasesResponse Int
Creating a Request
data ListAliases Source #
See: newListAliases smart constructor.
Constructors
| ListAliases' | |
Fields
| |
Instances
newListAliases :: ListAliases Source #
Create a value of ListAliases with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:limit:ListAliases', listAliases_limit - The maximum number of results to return. Use this parameter with
NextToken to get results as a set of sequential pages.
ListAliases, listAliases_name - A descriptive label that is associated with an alias. Alias names do not
need to be unique.
ListAliases, listAliases_nextToken - A token that indicates the start of the next sequential page of results.
Use the token that is returned with a previous call to this operation.
To start at the beginning of the result set, do not specify a value.
$sel:routingStrategyType:ListAliases', listAliases_routingStrategyType - The routing type to filter results on. Use this parameter to retrieve
only aliases with a certain routing type. To retrieve all aliases, leave
this parameter empty.
Possible routing types include the following:
- SIMPLE -- The alias resolves to one specific fleet. Use this type when routing to active fleets.
- TERMINAL -- The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.
Request Lenses
listAliases_limit :: Lens' ListAliases (Maybe Natural) Source #
The maximum number of results to return. Use this parameter with
NextToken to get results as a set of sequential pages.
listAliases_name :: Lens' ListAliases (Maybe Text) Source #
A descriptive label that is associated with an alias. Alias names do not need to be unique.
listAliases_nextToken :: Lens' ListAliases (Maybe Text) Source #
A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.
listAliases_routingStrategyType :: Lens' ListAliases (Maybe RoutingStrategyType) Source #
The routing type to filter results on. Use this parameter to retrieve only aliases with a certain routing type. To retrieve all aliases, leave this parameter empty.
Possible routing types include the following:
- SIMPLE -- The alias resolves to one specific fleet. Use this type when routing to active fleets.
- TERMINAL -- The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the RoutingStrategy message embedded.
Destructuring the Response
data ListAliasesResponse Source #
See: newListAliasesResponse smart constructor.
Constructors
| ListAliasesResponse' | |
Fields
| |
Instances
newListAliasesResponse Source #
Arguments
| :: Int | |
| -> ListAliasesResponse |
Create a value of ListAliasesResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:aliases:ListAliasesResponse', listAliasesResponse_aliases - A collection of alias resources that match the request parameters.
ListAliases, listAliasesResponse_nextToken - A token that indicates where to resume retrieving results on the next
call to this operation. If no token is returned, these results represent
the end of the list.
$sel:httpStatus:ListAliasesResponse', listAliasesResponse_httpStatus - The response's http status code.
Response Lenses
listAliasesResponse_aliases :: Lens' ListAliasesResponse (Maybe [Alias]) Source #
A collection of alias resources that match the request parameters.
listAliasesResponse_nextToken :: Lens' ListAliasesResponse (Maybe Text) Source #
A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.
listAliasesResponse_httpStatus :: Lens' ListAliasesResponse Int Source #
The response's http status code.