Class: AWSCDK::GameLift::CfnGameSessionQueue::FilterConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnGameSessionQueue::FilterConfigurationProperty
- Defined in:
- game_lift/cfn_game_session_queue.rb
Overview
A list of fleet locations where a game session queue can place new game sessions.
You can use a filter to temporarily turn off placements for specific locations. For queues that have multi-location fleets, you can use a filter configuration allow placement with some, but not all of these locations.
Instance Attribute Summary collapse
-
#allowed_locations ⇒ Array<String>?
readonly
A list of locations to allow game session placement in, in the form of AWS Region codes such as
us-west-2.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_locations: nil) ⇒ FilterConfigurationProperty
constructor
A new instance of FilterConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_locations: nil) ⇒ FilterConfigurationProperty
Returns a new instance of FilterConfigurationProperty.
692 693 694 695 |
# File 'game_lift/cfn_game_session_queue.rb', line 692 def initialize(allowed_locations: nil) @allowed_locations = allowed_locations Jsii::Type.check_type(@allowed_locations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedLocations") unless @allowed_locations.nil? end |
Instance Attribute Details
#allowed_locations ⇒ Array<String>? (readonly)
A list of locations to allow game session placement in, in the form of AWS Region codes such as us-west-2 .
701 702 703 |
# File 'game_lift/cfn_game_session_queue.rb', line 701 def allowed_locations @allowed_locations end |
Class Method Details
.jsii_properties ⇒ Object
703 704 705 706 707 |
# File 'game_lift/cfn_game_session_queue.rb', line 703 def self.jsii_properties { :allowed_locations => "allowedLocations", } end |
Instance Method Details
#to_jsii ⇒ Object
709 710 711 712 713 714 715 |
# File 'game_lift/cfn_game_session_queue.rb', line 709 def to_jsii result = {} result.merge!({ "allowedLocations" => @allowed_locations, }) result.compact end |