libZSservicesZSamazonka-gameliftZSamazonka-gamelift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.GameLift.StopFleetActions

Description

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:

  • To stop actions on instances in the fleet's home Region, provide a fleet ID and the type of actions to suspend.
  • To stop actions on instances in one of the fleet's remote locations, provide a fleet ID, a location name, and the type of actions to suspend.

If successful, GameLift no longer initiates scaling events except in response to manual changes using UpdateFleetCapacity. You can view a fleet's stopped actions using DescribeFleetAttributes or DescribeFleetLocationAttributes. Suspended activity can be restarted using StartFleetActions.

Learn more

Setting up GameLift Fleets

Related actions

CreateFleet | UpdateFleetCapacity | PutScalingPolicy | DescribeEC2InstanceLimits | DescribeFleetAttributes | DescribeFleetLocationAttributes | UpdateFleetAttributes | StopFleetActions | DeleteFleet | All APIs by task

Synopsis

Creating a Request

data StopFleetActions Source #

Represents the input for a request operation.

See: newStopFleetActions smart constructor.

Constructors

StopFleetActions' 

Fields

  • location :: Maybe Text

    The fleet location to stop fleet actions for. Specify a location in the form of an AWS Region code, such as us-west-2.

  • fleetId :: Text

    A unique identifier for the fleet to stop actions on. You can use either the fleet ID or ARN value.

  • actions :: NonEmpty FleetAction

    List of actions to suspend on the fleet.

Instances

Instances details
Eq StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Read StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Show StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Generic StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Associated Types

type Rep StopFleetActions :: Type -> Type #

NFData StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Methods

rnf :: StopFleetActions -> () #

Hashable StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

ToJSON StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

AWSRequest StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Associated Types

type AWSResponse StopFleetActions #

ToHeaders StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

ToPath StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

ToQuery StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

type Rep StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

type Rep StopFleetActions = D1 ('MetaData "StopFleetActions" "Amazonka.GameLift.StopFleetActions" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "StopFleetActions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty FleetAction)))))
type AWSResponse StopFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

newStopFleetActions Source #

Create a value of StopFleetActions with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:location:StopFleetActions', stopFleetActions_location - The fleet location to stop fleet actions for. Specify a location in the form of an AWS Region code, such as us-west-2.

$sel:fleetId:StopFleetActions', stopFleetActions_fleetId - A unique identifier for the fleet to stop actions on. You can use either the fleet ID or ARN value.

$sel:actions:StopFleetActions', stopFleetActions_actions - List of actions to suspend on the fleet.

Request Lenses

stopFleetActions_location :: Lens' StopFleetActions (Maybe Text) Source #

The fleet location to stop fleet actions for. Specify a location in the form of an AWS Region code, such as us-west-2.

stopFleetActions_fleetId :: Lens' StopFleetActions Text Source #

A unique identifier for the fleet to stop actions on. You can use either the fleet ID or ARN value.

stopFleetActions_actions :: Lens' StopFleetActions (NonEmpty FleetAction) Source #

List of actions to suspend on the fleet.

Destructuring the Response

data StopFleetActionsResponse Source #

Represents the input for a request operation.

See: newStopFleetActionsResponse smart constructor.

Constructors

StopFleetActionsResponse' 

Fields

  • fleetArn :: Maybe Text

    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.

  • fleetId :: Maybe Text

    A unique identifier for the fleet to stop actions on.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StopFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Read StopFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Show StopFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Generic StopFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

Associated Types

type Rep StopFleetActionsResponse :: Type -> Type #

NFData StopFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

type Rep StopFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StopFleetActions

type Rep StopFleetActionsResponse = D1 ('MetaData "StopFleetActionsResponse" "Amazonka.GameLift.StopFleetActions" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "StopFleetActionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fleetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newStopFleetActionsResponse Source #

Create a value of StopFleetActionsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:fleetArn:StopFleetActionsResponse', stopFleetActionsResponse_fleetArn - 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.

$sel:fleetId:StopFleetActions', stopFleetActionsResponse_fleetId - A unique identifier for the fleet to stop actions on.

$sel:httpStatus:StopFleetActionsResponse', stopFleetActionsResponse_httpStatus - The response's http status code.

Response Lenses

stopFleetActionsResponse_fleetArn :: Lens' StopFleetActionsResponse (Maybe Text) Source #

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.

stopFleetActionsResponse_fleetId :: Lens' StopFleetActionsResponse (Maybe Text) Source #

A unique identifier for the fleet to stop actions on.