Class: AWSCDK::GameLift::CfnGameServerGroup::TargetTrackingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnGameServerGroup::TargetTrackingConfigurationProperty
- 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
-
#target_value ⇒ Numeric
readonly
Desired value to use with a game server group target-based scaling policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target_value:) ⇒ TargetTrackingConfigurationProperty
constructor
A new instance of TargetTrackingConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target_value:) ⇒ TargetTrackingConfigurationProperty
Returns a new instance of TargetTrackingConfigurationProperty.
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_value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |