Class: AWSCDK::GameLift::CfnContainerGroupDefinition::ContainerPortRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnContainerGroupDefinition::ContainerPortRangeProperty
- Defined in:
- game_lift/cfn_container_group_definition.rb
Overview
A set of one or more port numbers that can be opened on the container, and the supported network protocol.
Part of: ContainerPortConfiguration
Instance Attribute Summary collapse
-
#from_port ⇒ Numeric
readonly
A starting value for the range of allowed port numbers.
-
#protocol ⇒ String
readonly
The network protocol that these ports support.
-
#to_port ⇒ Numeric
readonly
An ending value for the range of allowed port numbers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(from_port:, protocol:, to_port:) ⇒ ContainerPortRangeProperty
constructor
A new instance of ContainerPortRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(from_port:, protocol:, to_port:) ⇒ ContainerPortRangeProperty
Returns a new instance of ContainerPortRangeProperty.
930 931 932 933 934 935 936 937 |
# File 'game_lift/cfn_container_group_definition.rb', line 930 def initialize(from_port:, protocol:, to_port:) @from_port = from_port Jsii::Type.check_type(@from_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "fromPort") @protocol = protocol Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") @to_port = to_port Jsii::Type.check_type(@to_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "toPort") end |
Instance Attribute Details
#from_port ⇒ Numeric (readonly)
A starting value for the range of allowed port numbers.
943 944 945 |
# File 'game_lift/cfn_container_group_definition.rb', line 943 def from_port @from_port end |
#protocol ⇒ String (readonly)
The network protocol that these ports support.
948 949 950 |
# File 'game_lift/cfn_container_group_definition.rb', line 948 def protocol @protocol end |
#to_port ⇒ Numeric (readonly)
An ending value for the range of allowed port numbers.
Port numbers are end-inclusive. This value must be equal to or greater than FromPort .
955 956 957 |
# File 'game_lift/cfn_container_group_definition.rb', line 955 def to_port @to_port end |
Class Method Details
.jsii_properties ⇒ Object
957 958 959 960 961 962 963 |
# File 'game_lift/cfn_container_group_definition.rb', line 957 def self.jsii_properties { :from_port => "fromPort", :protocol => "protocol", :to_port => "toPort", } end |
Instance Method Details
#to_jsii ⇒ Object
965 966 967 968 969 970 971 972 973 |
# File 'game_lift/cfn_container_group_definition.rb', line 965 def to_jsii result = {} result.merge!({ "fromPort" => @from_port, "protocol" => @protocol, "toPort" => @to_port, }) result.compact end |