Class: AWSCDK::GameLift::CfnGameServerGroup::TargetTrackingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
game_lift/cfn_game_server_group.rb

Overview

This data type is used with the Amazon GameLift FleetIQ and game server groups..

Settings for a target-based scaling policy as part of a GameServerGroupAutoScalingPolicy . These settings are used to create a target-based policy that tracks the GameLift FleetIQ metric "PercentUtilizedGameServers" and specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_value:) ⇒ TargetTrackingConfigurationProperty

Returns a new instance of TargetTrackingConfigurationProperty.

Parameters:

  • target_value (Numeric)

    Desired value to use with a game server group target-based scaling policy.



840
841
842
843
# File 'game_lift/cfn_game_server_group.rb', line 840

def initialize(target_value:)
  @target_value = target_value
  Jsii::Type.check_type(@target_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "targetValue")
end

Instance Attribute Details

#target_valueNumeric (readonly)

Desired value to use with a game server group target-based scaling policy.



849
850
851
# File 'game_lift/cfn_game_server_group.rb', line 849

def target_value
  @target_value
end

Class Method Details

.jsii_propertiesObject



851
852
853
854
855
# File 'game_lift/cfn_game_server_group.rb', line 851

def self.jsii_properties
  {
    :target_value => "targetValue",
  }
end

Instance Method Details

#to_jsiiObject



857
858
859
860
861
862
863
# File 'game_lift/cfn_game_server_group.rb', line 857

def to_jsii
  result = {}
  result.merge!({
    "targetValue" => @target_value,
  })
  result.compact
end