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 |
Updates capacity settings for a fleet. Use this action to specify the number of EC2 instances (hosts) you want this fleet to contain. Before calling this action, you may want to call DescribeEC2InstanceLimits to get the maximum capacity based on the fleet's EC2 instance type.
If you're using auto-scaling (see PutScalingPolicy), you may want to specify a minimum and/or maximum capacity. If you don't provide these boundaries, auto-scaling can set capacity anywhere between zero and the service limits.
To update fleet capacity, specify the fleet ID and the desired number of instances. If successful, Amazon GameLift starts or terminates instances so that the fleet's active instance count matches the desired instance count. You can view a fleet's current capacity information by calling DescribeFleetCapacity. If the desired instance count is higher than the instance type's limit, the "Limit Exceeded" exception will occur.
- updateFleetCapacity :: Text -> UpdateFleetCapacity
- data UpdateFleetCapacity
- ufcMaxSize :: Lens' UpdateFleetCapacity (Maybe Natural)
- ufcMinSize :: Lens' UpdateFleetCapacity (Maybe Natural)
- ufcDesiredInstances :: Lens' UpdateFleetCapacity (Maybe Natural)
- ufcFleetId :: Lens' UpdateFleetCapacity Text
- updateFleetCapacityResponse :: Int -> UpdateFleetCapacityResponse
- data UpdateFleetCapacityResponse
- ufcrsFleetId :: Lens' UpdateFleetCapacityResponse (Maybe Text)
- ufcrsResponseStatus :: Lens' UpdateFleetCapacityResponse Int
Creating a Request
Creates a value of UpdateFleetCapacity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateFleetCapacity Source
Represents the input for a request action.
See: updateFleetCapacity
smart constructor.
Request Lenses
ufcMaxSize :: Lens' UpdateFleetCapacity (Maybe Natural) Source
Maximum value allowed for the fleet's instance count. Default if not set is 1.
ufcMinSize :: Lens' UpdateFleetCapacity (Maybe Natural) Source
Minimum value allowed for the fleet's instance count. Default if not set is 0.
ufcDesiredInstances :: Lens' UpdateFleetCapacity (Maybe Natural) Source
Number of EC2 instances you want this fleet to host.
ufcFleetId :: Lens' UpdateFleetCapacity Text Source
Unique identifier for the fleet you want to update capacity for.
Destructuring the Response
updateFleetCapacityResponse Source
Creates a value of UpdateFleetCapacityResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateFleetCapacityResponse Source
Represents the returned data in response to a request action.
See: updateFleetCapacityResponse
smart constructor.
Response Lenses
ufcrsFleetId :: Lens' UpdateFleetCapacityResponse (Maybe Text) Source
Unique identifier for the updated fleet.
ufcrsResponseStatus :: Lens' UpdateFleetCapacityResponse Int Source
The response status code.