Class: AWSCDK::GameLift::CfnFleet::AnywhereConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnFleet::AnywhereConfigurationProperty
- Defined in:
- game_lift/cfn_fleet.rb
Overview
Amazon GameLift Servers configuration options for your Anywhere fleets.
Instance Attribute Summary collapse
-
#cost ⇒ String
readonly
The cost to run your fleet per hour.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cost:) ⇒ AnywhereConfigurationProperty
constructor
A new instance of AnywhereConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cost:) ⇒ AnywhereConfigurationProperty
Returns a new instance of AnywhereConfigurationProperty.
941 942 943 944 |
# File 'game_lift/cfn_fleet.rb', line 941 def initialize(cost:) @cost = cost Jsii::Type.check_type(@cost, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cost") end |
Instance Attribute Details
#cost ⇒ String (readonly)
The cost to run your fleet per hour.
Amazon GameLift Servers uses the provided cost of your fleet to balance usage in queues. For more information about queues, see Setting up queues in the Amazon GameLift Servers Developer Guide .
952 953 954 |
# File 'game_lift/cfn_fleet.rb', line 952 def cost @cost end |
Class Method Details
.jsii_properties ⇒ Object
954 955 956 957 958 |
# File 'game_lift/cfn_fleet.rb', line 954 def self.jsii_properties { :cost => "cost", } end |
Instance Method Details
#to_jsii ⇒ Object
960 961 962 963 964 965 966 |
# File 'game_lift/cfn_fleet.rb', line 960 def to_jsii result = {} result.merge!({ "cost" => @cost, }) result.compact end |