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.Types.InstanceDefinition

Description

 
Synopsis

Documentation

data InstanceDefinition Source #

__This data type is used with the GameLift FleetIQ and game server groups.__

An allowed instance type for a game server group. All game server groups must have at least two instance types defined for it. GameLift FleetIQ periodically evaluates each defined instance type for viability. It then updates the Auto Scaling group with the list of viable instance types.

See: newInstanceDefinition smart constructor.

Constructors

InstanceDefinition' 

Fields

  • weightedCapacity :: Maybe Text

    Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".

  • instanceType :: GameServerGroupInstanceType

    An Amazon EC2 instance type designation.

Instances

Instances details
FromJSON InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

ToJSON InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Generic InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Associated Types

type Rep InstanceDefinition :: Type -> Type #

Read InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Show InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

NFData InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Methods

rnf :: InstanceDefinition -> () #

Eq InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Hashable InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

type Rep InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

type Rep InstanceDefinition = D1 ('MetaData "InstanceDefinition" "Amazonka.GameLift.Types.InstanceDefinition" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "InstanceDefinition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "weightedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GameServerGroupInstanceType)))

newInstanceDefinition Source #

Create a value of InstanceDefinition 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:weightedCapacity:InstanceDefinition', instanceDefinition_weightedCapacity - Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".

$sel:instanceType:InstanceDefinition', instanceDefinition_instanceType - An Amazon EC2 instance type designation.

instanceDefinition_weightedCapacity :: Lens' InstanceDefinition (Maybe Text) Source #

Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide. Default value is "1".