update_fleet_capacity
(**kwargs)¶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:
This operation can be used in the following ways:
Location
parameter. The fleet must be in ACTIVE
status.Location
parameter set to the location to be updated. The location must be in ACTIVE
status.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 or DescribeFleetLocationCapacity. If the requested desired instance count is higher than the instance type's limit, the LimitExceeded
exception occurs.
Learn more
See also: AWS API Documentation
Request Syntax
response = client.update_fleet_capacity(
FleetId='string',
DesiredInstances=123,
MinSize=123,
MaxSize=123,
Location='string'
)
[REQUIRED]
A unique identifier for the fleet to update capacity settings for. You can use either the fleet ID or ARN value.
us-west-2
.dict
Response Syntax
{
'FleetId': 'string',
'FleetArn': 'string',
'Location': 'string'
}
Response Structure
(dict) --
FleetId (string) --
A unique identifier for the fleet that was updated.
FleetArn (string) --
The Amazon Resource Name ( ARN ) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
Location (string) --
The remote location being updated, expressed as an Amazon Web Services Region code, such as us-west-2
.
Exceptions
GameLift.Client.exceptions.NotFoundException
GameLift.Client.exceptions.ConflictException
GameLift.Client.exceptions.LimitExceededException
GameLift.Client.exceptions.InvalidFleetStatusException
GameLift.Client.exceptions.InternalServiceException
GameLift.Client.exceptions.InvalidRequestException
GameLift.Client.exceptions.UnauthorizedException
GameLift.Client.exceptions.UnsupportedRegionException