Class: AWSCDK::EC2::CfnVerifiedAccessEndpoint::PortRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVerifiedAccessEndpoint::PortRangeProperty
- Defined in:
- ec2/cfn_verified_access_endpoint.rb
Overview
Describes the port range for a Verified Access endpoint.
Instance Attribute Summary collapse
-
#from_port ⇒ Numeric?
readonly
The start of the port range.
-
#to_port ⇒ Numeric?
readonly
The end of the port range.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(from_port: nil, to_port: nil) ⇒ PortRangeProperty
constructor
A new instance of PortRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(from_port: nil, to_port: nil) ⇒ PortRangeProperty
Returns a new instance of PortRangeProperty.
982 983 984 985 986 987 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 982 def initialize(from_port: nil, to_port: nil) @from_port = from_port Jsii::Type.check_type(@from_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "fromPort") unless @from_port.nil? @to_port = to_port Jsii::Type.check_type(@to_port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "toPort") unless @to_port.nil? end |
Instance Attribute Details
#from_port ⇒ Numeric? (readonly)
The start of the port range.
993 994 995 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 993 def from_port @from_port end |
#to_port ⇒ Numeric? (readonly)
The end of the port range.
998 999 1000 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 998 def to_port @to_port end |
Class Method Details
.jsii_properties ⇒ Object
1000 1001 1002 1003 1004 1005 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 1000 def self.jsii_properties { :from_port => "fromPort", :to_port => "toPort", } end |
Instance Method Details
#to_jsii ⇒ Object
1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'ec2/cfn_verified_access_endpoint.rb', line 1007 def to_jsii result = {} result.merge!({ "fromPort" => @from_port, "toPort" => @to_port, }) result.compact end |