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.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 GameServerGroup. 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 EC2 Auto Scaling User Guide. Default value is "1".

  • instanceType :: GameServerGroupInstanceType

    An EC2 instance type designation.

Instances

Instances details
Eq InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Read InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Show 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 #

NFData InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

Methods

rnf :: InstanceDefinition -> () #

Hashable InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

ToJSON InstanceDefinition Source # 
Instance details

Defined in Amazonka.GameLift.Types.InstanceDefinition

FromJSON 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" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" '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 EC2 Auto Scaling User Guide. Default value is "1".

$sel:instanceType:InstanceDefinition', instanceDefinition_instanceType - An 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 EC2 Auto Scaling User Guide. Default value is "1".