| 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.DescribeFleetLocationCapacity
Description
Retrieves the resource capacity settings for a fleet location. The data
returned includes the current capacity (number of EC2 instances) and
some scaling settings for the requested fleet location. Use this
operation to retrieve capacity information for a fleet's remote
location or home Region (you can also retrieve home Region capacity by
calling DescribeFleetCapacity).
To retrieve capacity data, identify a fleet and location.
If successful, a FleetCapacity object is returned for the requested
fleet location.
Learn more
Synopsis
- data DescribeFleetLocationCapacity = DescribeFleetLocationCapacity' {}
- newDescribeFleetLocationCapacity :: Text -> Text -> DescribeFleetLocationCapacity
- describeFleetLocationCapacity_fleetId :: Lens' DescribeFleetLocationCapacity Text
- describeFleetLocationCapacity_location :: Lens' DescribeFleetLocationCapacity Text
- data DescribeFleetLocationCapacityResponse = DescribeFleetLocationCapacityResponse' {}
- newDescribeFleetLocationCapacityResponse :: Int -> DescribeFleetLocationCapacityResponse
- describeFleetLocationCapacityResponse_fleetCapacity :: Lens' DescribeFleetLocationCapacityResponse (Maybe FleetCapacity)
- describeFleetLocationCapacityResponse_httpStatus :: Lens' DescribeFleetLocationCapacityResponse Int
Creating a Request
data DescribeFleetLocationCapacity Source #
See: newDescribeFleetLocationCapacity smart constructor.
Constructors
| DescribeFleetLocationCapacity' | |
Instances
newDescribeFleetLocationCapacity Source #
Arguments
| :: Text | |
| -> Text | |
| -> DescribeFleetLocationCapacity |
Create a value of DescribeFleetLocationCapacity 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:
DescribeFleetLocationCapacity, describeFleetLocationCapacity_fleetId - A unique identifier for the fleet to request location capacity for. You
can use either the fleet ID or ARN value.
DescribeFleetLocationCapacity, describeFleetLocationCapacity_location - The fleet location to retrieve capacity information for. Specify a
location in the form of an Amazon Web Services Region code, such as
us-west-2.
Request Lenses
describeFleetLocationCapacity_fleetId :: Lens' DescribeFleetLocationCapacity Text Source #
A unique identifier for the fleet to request location capacity for. You can use either the fleet ID or ARN value.
describeFleetLocationCapacity_location :: Lens' DescribeFleetLocationCapacity Text Source #
The fleet location to retrieve capacity information for. Specify a
location in the form of an Amazon Web Services Region code, such as
us-west-2.
Destructuring the Response
data DescribeFleetLocationCapacityResponse Source #
See: newDescribeFleetLocationCapacityResponse smart constructor.
Constructors
| DescribeFleetLocationCapacityResponse' | |
Fields
| |
Instances
newDescribeFleetLocationCapacityResponse Source #
Arguments
| :: Int | |
| -> DescribeFleetLocationCapacityResponse |
Create a value of DescribeFleetLocationCapacityResponse 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:fleetCapacity:DescribeFleetLocationCapacityResponse', describeFleetLocationCapacityResponse_fleetCapacity - Resource capacity information for the requested fleet location. Capacity
objects are returned only for fleets and locations that currently exist.
$sel:httpStatus:DescribeFleetLocationCapacityResponse', describeFleetLocationCapacityResponse_httpStatus - The response's http status code.
Response Lenses
describeFleetLocationCapacityResponse_fleetCapacity :: Lens' DescribeFleetLocationCapacityResponse (Maybe FleetCapacity) Source #
Resource capacity information for the requested fleet location. Capacity objects are returned only for fleets and locations that currently exist.
describeFleetLocationCapacityResponse_httpStatus :: Lens' DescribeFleetLocationCapacityResponse Int Source #
The response's http status code.