Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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) that 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.
Specify minimum and maximum number of instances. Amazon GameLift will not change fleet capacity to values fall outside of this range. This is particularly important when using auto-scaling (see PutScalingPolicy
) to allow capacity to adjust based on player demand while imposing limits on automatic adjustments.
To update fleet capacity, specify the fleet ID and the number of instances you want the fleet to host. 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 occurs.
Fleet-related operations include:
CreateFleet
ListFleets
DeleteFleet
- Describe fleets:
DescribeFleetAttributes
DescribeFleetCapacity
DescribeFleetPortSettings
DescribeFleetUtilization
DescribeRuntimeConfiguration
DescribeEC2InstanceLimits
DescribeFleetEvents
- Update fleets:
UpdateFleetAttributes
UpdateFleetCapacity
UpdateFleetPortSettings
UpdateRuntimeConfiguration
- Manage fleet actions:
StartFleetActions
StopFleetActions
- 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:
ufcMaxSize
- Maximum value allowed for the fleet's instance count. Default if not set is 1.ufcMinSize
- Minimum value allowed for the fleet's instance count. Default if not set is 0.ufcDesiredInstances
- Number of EC2 instances you want this fleet to host.ufcFleetId
- Unique identifier for a fleet to update capacity for.
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 a fleet 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:
ufcrsFleetId
- Unique identifier for a fleet that was updated.ufcrsResponseStatus
- -- | The response status code.
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 a fleet that was updated.
ufcrsResponseStatus :: Lens' UpdateFleetCapacityResponse Int Source #
- - | The response status code.