amazonka-gamelift-2.0: Amazon GameLift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GameLift.StartFleetActions

Description

Resumes certain types of activity on fleet instances that were suspended with StopFleetActions. For multi-location fleets, fleet actions are managed separately for each location. Currently, this operation is used to restart a fleet's auto-scaling activity.

This operation can be used in the following ways:

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

If successful, GameLift once again initiates scaling events as triggered by the fleet's scaling policies. If actions on the fleet location were never stopped, this operation will have no effect.

Learn more

Setting up GameLift fleets

Synopsis

Creating a Request

data StartFleetActions Source #

See: newStartFleetActions smart constructor.

Constructors

StartFleetActions' 

Fields

  • location :: Maybe Text

    The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2.

  • fleetId :: Text

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

  • actions :: NonEmpty FleetAction

    List of actions to restart on the fleet.

Instances

Instances details
ToJSON StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

ToHeaders StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

ToPath StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

ToQuery StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

AWSRequest StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Associated Types

type AWSResponse StartFleetActions #

Generic StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Associated Types

type Rep StartFleetActions :: Type -> Type #

Read StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Show StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

NFData StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Methods

rnf :: StartFleetActions -> () #

Eq StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Hashable StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

type AWSResponse StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

type Rep StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

type Rep StartFleetActions = D1 ('MetaData "StartFleetActions" "Amazonka.GameLift.StartFleetActions" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "StartFleetActions'" '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)))))

newStartFleetActions Source #

Create a value of StartFleetActions 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:

StartFleetActions, startFleetActions_location - The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2.

StartFleetActions, startFleetActions_fleetId - A unique identifier for the fleet to restart actions on. You can use either the fleet ID or ARN value.

$sel:actions:StartFleetActions', startFleetActions_actions - List of actions to restart on the fleet.

Request Lenses

startFleetActions_location :: Lens' StartFleetActions (Maybe Text) Source #

The fleet location to restart fleet actions for. Specify a location in the form of an Amazon Web Services Region code, such as us-west-2.

startFleetActions_fleetId :: Lens' StartFleetActions Text Source #

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

startFleetActions_actions :: Lens' StartFleetActions (NonEmpty FleetAction) Source #

List of actions to restart on the fleet.

Destructuring the Response

data StartFleetActionsResponse Source #

See: newStartFleetActionsResponse smart constructor.

Constructors

StartFleetActionsResponse' 

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 restart actions on.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Associated Types

type Rep StartFleetActionsResponse :: Type -> Type #

Read StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Show StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

NFData StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Eq StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

type Rep StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

type Rep StartFleetActionsResponse = D1 ('MetaData "StartFleetActionsResponse" "Amazonka.GameLift.StartFleetActions" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "StartFleetActionsResponse'" '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))))

newStartFleetActionsResponse Source #

Create a value of StartFleetActionsResponse 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:

StartFleetActionsResponse, startFleetActionsResponse_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.

StartFleetActions, startFleetActionsResponse_fleetId - A unique identifier for the fleet to restart actions on.

$sel:httpStatus:StartFleetActionsResponse', startFleetActionsResponse_httpStatus - The response's http status code.

Response Lenses

startFleetActionsResponse_fleetArn :: Lens' StartFleetActionsResponse (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.

startFleetActionsResponse_fleetId :: Lens' StartFleetActionsResponse (Maybe Text) Source #

A unique identifier for the fleet to restart actions on.