| 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.ListCompute
Description
Retrieves all compute resources registered to a fleet in your Amazon Web Services account. You can filter the result set by location.
This operation returns paginated results.
Synopsis
- data ListCompute = ListCompute' {}
- newListCompute :: Text -> ListCompute
- listCompute_limit :: Lens' ListCompute (Maybe Natural)
- listCompute_location :: Lens' ListCompute (Maybe Text)
- listCompute_nextToken :: Lens' ListCompute (Maybe Text)
- listCompute_fleetId :: Lens' ListCompute Text
- data ListComputeResponse = ListComputeResponse' {
- computeList :: Maybe [Compute]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListComputeResponse :: Int -> ListComputeResponse
- listComputeResponse_computeList :: Lens' ListComputeResponse (Maybe [Compute])
- listComputeResponse_nextToken :: Lens' ListComputeResponse (Maybe Text)
- listComputeResponse_httpStatus :: Lens' ListComputeResponse Int
Creating a Request
data ListCompute Source #
See: newListCompute smart constructor.
Constructors
| ListCompute' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListCompute |
Create a value of ListCompute 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:ListCompute', listCompute_limit - The maximum number of results to return. Use this parameter with
NextToken to get results as a set of sequential pages.
ListCompute, listCompute_location - The name of the custom location that the compute resources are assigned
to.
ListCompute, listCompute_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.
ListCompute, listCompute_fleetId - A unique identifier for the fleet the compute resources are registered
to.
Request Lenses
listCompute_limit :: Lens' ListCompute (Maybe Natural) Source #
The maximum number of results to return. Use this parameter with
NextToken to get results as a set of sequential pages.
listCompute_location :: Lens' ListCompute (Maybe Text) Source #
The name of the custom location that the compute resources are assigned to.
listCompute_nextToken :: Lens' ListCompute (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.
listCompute_fleetId :: Lens' ListCompute Text Source #
A unique identifier for the fleet the compute resources are registered to.
Destructuring the Response
data ListComputeResponse Source #
See: newListComputeResponse smart constructor.
Constructors
| ListComputeResponse' | |
Fields
| |
Instances
newListComputeResponse Source #
Arguments
| :: Int | |
| -> ListComputeResponse |
Create a value of ListComputeResponse 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:computeList:ListComputeResponse', listComputeResponse_computeList - A list of compute resources registered to the fleet you specified.
ListCompute, listComputeResponse_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:ListComputeResponse', listComputeResponse_httpStatus - The response's http status code.
Response Lenses
listComputeResponse_computeList :: Lens' ListComputeResponse (Maybe [Compute]) Source #
A list of compute resources registered to the fleet you specified.
listComputeResponse_nextToken :: Lens' ListComputeResponse (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.
listComputeResponse_httpStatus :: Lens' ListComputeResponse Int Source #
The response's http status code.