Class: AWSCDK::GameLift::CfnContainerFleet::LocationConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnContainerFleet::LocationConfigurationProperty
- Defined in:
- game_lift/cfn_container_fleet.rb
Overview
A remote location where a multi-location fleet can deploy game servers for game hosting.
Instance Attribute Summary collapse
-
#location ⇒ String
readonly
An AWS Region code, such as
us-west-2. -
#location_capacity ⇒ AWSCDK::IResolvable, ...
readonly
Current resource capacity settings in a specified fleet or location.
-
#player_gateway_status ⇒ String?
readonly
The player gateway status for the location.
-
#stopped_actions ⇒ Array<String>?
readonly
A list of fleet actions that have been suspended in the fleet location.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location:, location_capacity: nil, player_gateway_status: nil, stopped_actions: nil) ⇒ LocationConfigurationProperty
constructor
A new instance of LocationConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(location:, location_capacity: nil, player_gateway_status: nil, stopped_actions: nil) ⇒ LocationConfigurationProperty
Returns a new instance of LocationConfigurationProperty.
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 |
# File 'game_lift/cfn_container_fleet.rb', line 1170 def initialize(location:, location_capacity: nil, player_gateway_status: nil, stopped_actions: nil) @location = location Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location") @location_capacity = location_capacity.is_a?(Hash) ? ::AWSCDK::GameLift::CfnContainerFleet::LocationCapacityProperty.new(**location_capacity.transform_keys(&:to_sym)) : location_capacity Jsii::Type.check_type(@location_capacity, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nYW1lbGlmdC5DZm5Db250YWluZXJGbGVldC5Mb2NhdGlvbkNhcGFjaXR5UHJvcGVydHkifV19fQ==")), "locationCapacity") unless @location_capacity.nil? @player_gateway_status = player_gateway_status Jsii::Type.check_type(@player_gateway_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "playerGatewayStatus") unless @player_gateway_status.nil? @stopped_actions = stopped_actions Jsii::Type.check_type(@stopped_actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "stoppedActions") unless @stopped_actions.nil? end |
Instance Attribute Details
#location ⇒ String (readonly)
An AWS Region code, such as us-west-2 .
For a list of supported Regions and Local Zones, see Amazon GameLift Servers service locations for managed hosting.
1187 1188 1189 |
# File 'game_lift/cfn_container_fleet.rb', line 1187 def location @location end |
#location_capacity ⇒ AWSCDK::IResolvable, ... (readonly)
Current resource capacity settings in a specified fleet or location.
The location value might refer to a fleet's remote location or its home Region.
1194 1195 1196 |
# File 'game_lift/cfn_container_fleet.rb', line 1194 def location_capacity @location_capacity end |
#player_gateway_status ⇒ String? (readonly)
The player gateway status for the location.
1199 1200 1201 |
# File 'game_lift/cfn_container_fleet.rb', line 1199 def player_gateway_status @player_gateway_status end |
#stopped_actions ⇒ Array<String>? (readonly)
A list of fleet actions that have been suspended in the fleet location.
1204 1205 1206 |
# File 'game_lift/cfn_container_fleet.rb', line 1204 def stopped_actions @stopped_actions end |
Class Method Details
.jsii_properties ⇒ Object
1206 1207 1208 1209 1210 1211 1212 1213 |
# File 'game_lift/cfn_container_fleet.rb', line 1206 def self.jsii_properties { :location => "location", :location_capacity => "locationCapacity", :player_gateway_status => "playerGatewayStatus", :stopped_actions => "stoppedActions", } end |
Instance Method Details
#to_jsii ⇒ Object
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'game_lift/cfn_container_fleet.rb', line 1215 def to_jsii result = {} result.merge!({ "location" => @location, "locationCapacity" => @location_capacity, "playerGatewayStatus" => @player_gateway_status, "stoppedActions" => @stopped_actions, }) result.compact end |