Class: AWSCDK::GameLift::CfnFleet::TargetConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnFleet::TargetConfigurationProperty
- Defined in:
- game_lift/cfn_fleet.rb
Overview
Settings for a target-based scaling policy.
A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift Servers to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
Instance Attribute Summary collapse
-
#target_value ⇒ Numeric
readonly
Desired value to use with a target-based scaling policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target_value:) ⇒ TargetConfigurationProperty
constructor
A new instance of TargetConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target_value:) ⇒ TargetConfigurationProperty
Returns a new instance of TargetConfigurationProperty.
1662 1663 1664 1665 |
# File 'game_lift/cfn_fleet.rb', line 1662 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 target-based scaling policy.
The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).
1673 1674 1675 |
# File 'game_lift/cfn_fleet.rb', line 1673 def target_value @target_value end |
Class Method Details
.jsii_properties ⇒ Object
1675 1676 1677 1678 1679 |
# File 'game_lift/cfn_fleet.rb', line 1675 def self.jsii_properties { :target_value => "targetValue", } end |
Instance Method Details
#to_jsii ⇒ Object
1681 1682 1683 1684 1685 1686 1687 |
# File 'game_lift/cfn_fleet.rb', line 1681 def to_jsii result = {} result.merge!({ "targetValue" => @target_value, }) result.compact end |