Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves the current status of fleet capacity for one or more fleets. This information includes the number of instances that have been requested for the fleet and the number currently active. You can request capacity for all fleets, or specify a list of one or more fleet IDs. When requesting multiple fleets, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a FleetCapacity
object is returned for each requested fleet ID. When specifying a list of fleet IDs, attribute objects are returned only for fleets that currently exist.
- describeFleetCapacity :: DescribeFleetCapacity
- data DescribeFleetCapacity
- dfcNextToken :: Lens' DescribeFleetCapacity (Maybe Text)
- dfcLimit :: Lens' DescribeFleetCapacity (Maybe Natural)
- dfcFleetIds :: Lens' DescribeFleetCapacity (Maybe (NonEmpty Text))
- describeFleetCapacityResponse :: Int -> DescribeFleetCapacityResponse
- data DescribeFleetCapacityResponse
- dfcrsNextToken :: Lens' DescribeFleetCapacityResponse (Maybe Text)
- dfcrsFleetCapacity :: Lens' DescribeFleetCapacityResponse [FleetCapacity]
- dfcrsResponseStatus :: Lens' DescribeFleetCapacityResponse Int
Creating a Request
describeFleetCapacity :: DescribeFleetCapacity Source #
Creates a value of DescribeFleetCapacity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dfcNextToken
- Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.dfcLimit
- Maximum number of results to return. Use this parameter withNextToken
to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.dfcFleetIds
- Unique identifier for the fleet(s) you want to retrieve capacity information for. To request capacity information for all fleets, leave this parameter empty.
data DescribeFleetCapacity Source #
Represents the input for a request action.
See: describeFleetCapacity
smart constructor.
Request Lenses
dfcNextToken :: Lens' DescribeFleetCapacity (Maybe Text) Source #
Token indicating the start of the next sequential page of results. Use the token that is returned with a previous call to this action. To specify the start of the result set, do not specify a value. This parameter is ignored when the request specifies one or a list of fleet IDs.
dfcLimit :: Lens' DescribeFleetCapacity (Maybe Natural) Source #
Maximum number of results to return. Use this parameter with NextToken
to get results as a set of sequential pages. This parameter is ignored when the request specifies one or a list of fleet IDs.
dfcFleetIds :: Lens' DescribeFleetCapacity (Maybe (NonEmpty Text)) Source #
Unique identifier for the fleet(s) you want to retrieve capacity information for. To request capacity information for all fleets, leave this parameter empty.
Destructuring the Response
describeFleetCapacityResponse Source #
Creates a value of DescribeFleetCapacityResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dfcrsNextToken
- Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.dfcrsFleetCapacity
- Collection of objects containing capacity information for each requested fleet ID. Leave this parameter empty to retrieve capacity information for all fleets.dfcrsResponseStatus
- -- | The response status code.
data DescribeFleetCapacityResponse Source #
Represents the returned data in response to a request action.
See: describeFleetCapacityResponse
smart constructor.
Response Lenses
dfcrsNextToken :: Lens' DescribeFleetCapacityResponse (Maybe Text) Source #
Token indicating where to resume retrieving results on the next call to this action. If no token is returned, these results represent the end of the list.
dfcrsFleetCapacity :: Lens' DescribeFleetCapacityResponse [FleetCapacity] Source #
Collection of objects containing capacity information for each requested fleet ID. Leave this parameter empty to retrieve capacity information for all fleets.
dfcrsResponseStatus :: Lens' DescribeFleetCapacityResponse Int Source #
- - | The response status code.