Class: AWSCDK::GameLift::CfnContainerFleet::ManagedCapacityConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnContainerFleet::ManagedCapacityConfigurationProperty
- Defined in:
- game_lift/cfn_container_fleet.rb
Overview
Configuration options for Amazon GameLift Servers managed capacity behavior.
Instance Attribute Summary collapse
-
#scale_in_after_inactivity_minutes ⇒ Numeric?
readonly
Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and DesiredInstances to 0 after a period with no game session activity.
-
#zero_capacity_strategy ⇒ String
readonly
The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero in response to game session activity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(zero_capacity_strategy:, scale_in_after_inactivity_minutes: nil) ⇒ ManagedCapacityConfigurationProperty
constructor
A new instance of ManagedCapacityConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(zero_capacity_strategy:, scale_in_after_inactivity_minutes: nil) ⇒ ManagedCapacityConfigurationProperty
Returns a new instance of ManagedCapacityConfigurationProperty.
1294 1295 1296 1297 1298 1299 |
# File 'game_lift/cfn_container_fleet.rb', line 1294 def initialize(zero_capacity_strategy:, scale_in_after_inactivity_minutes: nil) @zero_capacity_strategy = zero_capacity_strategy Jsii::Type.check_type(@zero_capacity_strategy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "zeroCapacityStrategy") @scale_in_after_inactivity_minutes = scale_in_after_inactivity_minutes Jsii::Type.check_type(@scale_in_after_inactivity_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "scaleInAfterInactivityMinutes") unless @scale_in_after_inactivity_minutes.nil? end |
Instance Attribute Details
#scale_in_after_inactivity_minutes ⇒ Numeric? (readonly)
Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and DesiredInstances to 0 after a period with no game session activity.
1312 1313 1314 |
# File 'game_lift/cfn_container_fleet.rb', line 1312 def scale_in_after_inactivity_minutes @scale_in_after_inactivity_minutes end |
#zero_capacity_strategy ⇒ String (readonly)
The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero in response to game session activity.
Game session activity refers to any active running sessions or game session requests. When set to SCALE_TO_AND_FROM_ZERO, MinSize must not be specified and will be managed automatically. When set to MANUAL, MinSize is required.
1307 1308 1309 |
# File 'game_lift/cfn_container_fleet.rb', line 1307 def zero_capacity_strategy @zero_capacity_strategy end |
Class Method Details
.jsii_properties ⇒ Object
1314 1315 1316 1317 1318 1319 |
# File 'game_lift/cfn_container_fleet.rb', line 1314 def self.jsii_properties { :zero_capacity_strategy => "zeroCapacityStrategy", :scale_in_after_inactivity_minutes => "scaleInAfterInactivityMinutes", } end |
Instance Method Details
#to_jsii ⇒ Object
1321 1322 1323 1324 1325 1326 1327 1328 |
# File 'game_lift/cfn_container_fleet.rb', line 1321 def to_jsii result = {} result.merge!({ "zeroCapacityStrategy" => @zero_capacity_strategy, "scaleInAfterInactivityMinutes" => @scale_in_after_inactivity_minutes, }) result.compact end |