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.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. You can view a fleet's stopped actions using DescribeFleetAttributes or DescribeFleetLocationAttributes.

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 StartFleetActions Source #

Represents the input for a request operation.

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 AWS 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
Eq StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Read StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Show StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Generic StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Associated Types

type Rep StartFleetActions :: Type -> Type #

NFData StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Methods

rnf :: StartFleetActions -> () #

Hashable StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

ToJSON StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

AWSRequest StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Associated Types

type AWSResponse 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

type Rep StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

type Rep StartFleetActions = D1 ('MetaData "StartFleetActions" "Amazonka.GameLift.StartFleetActions" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" '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)))))
type AWSResponse StartFleetActions Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

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:

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

$sel:fleetId: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 AWS 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 #

Represents the returned data in response to a request operation.

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
Eq StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Read StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Show StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Generic StartFleetActionsResponse Source # 
Instance details

Defined in Amazonka.GameLift.StartFleetActions

Associated Types

type Rep StartFleetActionsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" '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:

$sel:fleetArn: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.

$sel:fleetId: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.