AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Updates capacity settings for a fleet. For fleets with multiple locations, use this operation to manage capacity settings in each location individually. Fleet capacity determines the number of game sessions and players that can be hosted based on the fleet configuration. Use this operation to set the following fleet capacity properties:
Minimum/maximum size: Set hard limits on fleet capacity. GameLift cannot set the fleet's capacity to a value outside of this range, whether the capacity is changed manually or through automatic scaling.
Desired capacity: Manually set the number of Amazon EC2 instances to be maintained in a fleet location. Before changing a fleet's desired capacity, you may want to call DescribeEC2InstanceLimits to get the maximum capacity of the fleet's Amazon EC2 instance type. Alternatively, consider using automatic scaling to adjust capacity based on player demand.
This operation can be used in the following ways:
To update capacity for a fleet's home Region, or if the fleet has no remote locations,
Location parameter. The fleet must be in
To update capacity for a fleet's remote location, include the
parameter set to the location to be updated. The location must be in
If successful, capacity settings are updated immediately. In response a change in
desired capacity, GameLift initiates steps to start new instances or terminate existing
instances in the requested fleet location. This continues until the location's active
instance count matches the new desired instance count. You can track a fleet's current
capacity by calling DescribeFleetCapacity
If the requested desired instance count is higher than the instance type's limit,
LimitExceeded exception occurs.
For .NET Core this operation is only available in asynchronous form. Please refer to UpdateFleetCapacityAsync.
public abstract UpdateFleetCapacityResponse UpdateFleetCapacity( UpdateFleetCapacityRequest request )
Container for the necessary parameters to execute the UpdateFleetCapacity service method.
|ConflictException||The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.|
|InternalServiceException||The service encountered an unrecoverable internal failure while processing the request. Clients can retry such requests immediately or after a waiting period.|
|InvalidFleetStatusException||The requested operation would cause a conflict with the current state of a resource associated with the request and/or the fleet. Resolve the conflict before retrying.|
|InvalidRequestException||One or more parameter values in the request are invalid. Correct the invalid parameter values before retrying.|
|LimitExceededException||The requested operation would cause the resource to exceed the allowed service limit. Resolve the issue before retrying.|
|NotFoundException||THe requested resources was not found. The resource was either not created yet or deleted.|
|UnauthorizedException||The client failed authentication. Clients should not retry such requests.|
|UnsupportedRegionException||The requested operation is not supported in the Region specified.|
Supported in: 4.5, 4.0, 3.5