Class: AWSCDK::GameLift::CfnFleet::AnywhereConfigurationProperty

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

Overview

Amazon GameLift Servers configuration options for your Anywhere fleets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cost:) ⇒ AnywhereConfigurationProperty

Returns a new instance of AnywhereConfigurationProperty.

Parameters:

  • cost (String)

    The cost to run your fleet per hour.



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

#costString (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_propertiesObject



954
955
956
957
958
# File 'game_lift/cfn_fleet.rb', line 954

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

Instance Method Details

#to_jsiiObject



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