Class: AWSCDK::GameLift::CfnContainerFleet::ConnectionPortRangeProperty

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

Overview

The set of port numbers to open on each instance in a container fleet.

Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from_port:, to_port:) ⇒ ConnectionPortRangeProperty

Returns a new instance of ConnectionPortRangeProperty.

Parameters:

  • from_port (Numeric)

    Starting value for the port range.

  • to_port (Numeric)

    Ending value for the port.



836
837
838
839
840
841
# File 'game_lift/cfn_container_fleet.rb', line 836

def initialize(from_port:, to_port:)
  @from_port = from_port
  Jsii::Type.check_type(@from_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "fromPort")
  @to_port = to_port
  Jsii::Type.check_type(@to_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "toPort")
end

Instance Attribute Details

#from_portNumeric (readonly)

Starting value for the port range.



847
848
849
# File 'game_lift/cfn_container_fleet.rb', line 847

def from_port
  @from_port
end

#to_portNumeric (readonly)

Ending value for the port.

Port numbers are end-inclusive. This value must be equal to or greater than FromPort .



854
855
856
# File 'game_lift/cfn_container_fleet.rb', line 854

def to_port
  @to_port
end

Class Method Details

.jsii_propertiesObject



856
857
858
859
860
861
# File 'game_lift/cfn_container_fleet.rb', line 856

def self.jsii_properties
  {
    :from_port => "fromPort",
    :to_port => "toPort",
  }
end

Instance Method Details

#to_jsiiObject



863
864
865
866
867
868
869
870
# File 'game_lift/cfn_container_fleet.rb', line 863

def to_jsii
  result = {}
  result.merge!({
    "fromPort" => @from_port,
    "toPort" => @to_port,
  })
  result.compact
end