| 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.ListFleets
Description
Retrieves a collection of fleet resources in an Amazon Web Services Region. You can call this operation to get fleets in a previously selected default Region (see https://docs.aws.amazon.com/credref/latest/refdocs/setting-global-region.htmlor specify a Region in your request. You can filter the result set to find only those fleets that are deployed with a specific build or script. For fleets that have multiple locations, this operation retrieves fleets based on their home Region only.
This operation can be used in the following ways:
- To get a list of all fleets in a Region, don't provide a build or script identifier.
- To get a list of all fleets where a specific custom game build is deployed, provide the build ID.
- To get a list of all Realtime Servers fleets with a specific configuration script, provide the script ID.
Use the pagination parameters to retrieve results as a set of sequential pages.
If successful, a list of fleet IDs that match the request parameters is returned. A NextToken value is also returned if there are more result pages to retrieve.
Fleet resources are not listed in a particular order.
Learn more
This operation returns paginated results.
Synopsis
- data ListFleets = ListFleets' {}
- newListFleets :: ListFleets
- listFleets_buildId :: Lens' ListFleets (Maybe Text)
- listFleets_limit :: Lens' ListFleets (Maybe Natural)
- listFleets_nextToken :: Lens' ListFleets (Maybe Text)
- listFleets_scriptId :: Lens' ListFleets (Maybe Text)
- data ListFleetsResponse = ListFleetsResponse' {}
- newListFleetsResponse :: Int -> ListFleetsResponse
- listFleetsResponse_fleetIds :: Lens' ListFleetsResponse (Maybe (NonEmpty Text))
- listFleetsResponse_nextToken :: Lens' ListFleetsResponse (Maybe Text)
- listFleetsResponse_httpStatus :: Lens' ListFleetsResponse Int
Creating a Request
data ListFleets Source #
See: newListFleets smart constructor.
Constructors
| ListFleets' | |
Fields
| |
Instances
newListFleets :: ListFleets Source #
Create a value of ListFleets 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:
ListFleets, listFleets_buildId - A unique identifier for the build to request fleets for. Use this
parameter to return only fleets using a specified build. Use either the
build ID or ARN value.
$sel:limit:ListFleets', listFleets_limit - The maximum number of results to return. Use this parameter with
NextToken to get results as a set of sequential pages.
ListFleets, listFleets_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.
ListFleets, listFleets_scriptId - A unique identifier for the Realtime script to request fleets for. Use
this parameter to return only fleets using a specified script. Use
either the script ID or ARN value.
Request Lenses
listFleets_buildId :: Lens' ListFleets (Maybe Text) Source #
A unique identifier for the build to request fleets for. Use this parameter to return only fleets using a specified build. Use either the build ID or ARN value.
listFleets_limit :: Lens' ListFleets (Maybe Natural) Source #
The maximum number of results to return. Use this parameter with
NextToken to get results as a set of sequential pages.
listFleets_nextToken :: Lens' ListFleets (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.
listFleets_scriptId :: Lens' ListFleets (Maybe Text) Source #
A unique identifier for the Realtime script to request fleets for. Use this parameter to return only fleets using a specified script. Use either the script ID or ARN value.
Destructuring the Response
data ListFleetsResponse Source #
See: newListFleetsResponse smart constructor.
Constructors
| ListFleetsResponse' | |
Fields
| |
Instances
newListFleetsResponse Source #
Arguments
| :: Int | |
| -> ListFleetsResponse |
Create a value of ListFleetsResponse 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:fleetIds:ListFleetsResponse', listFleetsResponse_fleetIds - A set of fleet IDs that match the list request.
ListFleets, listFleetsResponse_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:ListFleetsResponse', listFleetsResponse_httpStatus - The response's http status code.
Response Lenses
listFleetsResponse_fleetIds :: Lens' ListFleetsResponse (Maybe (NonEmpty Text)) Source #
A set of fleet IDs that match the list request.
listFleetsResponse_nextToken :: Lens' ListFleetsResponse (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.
listFleetsResponse_httpStatus :: Lens' ListFleetsResponse Int Source #
The response's http status code.