GameLift.Client.
stop_fleet_actions
(**kwargs)¶Suspends certain types of activity in a fleet location. Currently, this operation is used to stop auto-scaling activity. For multi-location fleets, fleet actions are managed separately for each location.
Stopping fleet actions has several potential purposes. It allows you to temporarily stop auto-scaling activity but retain your scaling policies for use in the future. For multi-location fleets, you can set up fleet-wide auto-scaling, and then opt out of it for certain locations.
This operation can be used in the following ways:
If successful, GameLift no longer initiates scaling events except in response to manual changes using UpdateFleetCapacity.
Learn more
See also: AWS API Documentation
Request Syntax
response = client.stop_fleet_actions(
FleetId='string',
Actions=[
'AUTO_SCALING',
],
Location='string'
)
[REQUIRED]
A unique identifier for the fleet to stop actions on. You can use either the fleet ID or ARN value.
[REQUIRED]
List of actions to suspend on the fleet.
us-west-2
.dict
Response Syntax
{
'FleetId': 'string',
'FleetArn': 'string'
}
Response Structure
(dict) --
FleetId (string) --
A unique identifier for the fleet to stop actions on.
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
.
Exceptions
GameLift.Client.exceptions.InternalServiceException
GameLift.Client.exceptions.InvalidRequestException
GameLift.Client.exceptions.UnauthorizedException
GameLift.Client.exceptions.NotFoundException
GameLift.Client.exceptions.UnsupportedRegionException