Class: AWSCDK::NetworkFirewall::CfnTLSInspectionConfiguration::PortRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnTLSInspectionConfiguration::PortRangeProperty
- Defined in:
- network_firewall/cfn_tls_inspection_configuration.rb
Overview
A single port range specification.
This is used for source and destination port ranges in the stateless rule MatchAttributes , SourcePorts , and DestinationPorts settings.
Instance Attribute Summary collapse
-
#from_port ⇒ Numeric
readonly
The lower limit of the port range.
-
#to_port ⇒ Numeric
readonly
The upper limit of the port range.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(from_port:, to_port:) ⇒ PortRangeProperty
constructor
A new instance of PortRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(from_port:, to_port:) ⇒ PortRangeProperty
Returns a new instance of PortRangeProperty.
673 674 675 676 677 678 |
# File 'network_firewall/cfn_tls_inspection_configuration.rb', line 673 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_port ⇒ Numeric (readonly)
The lower limit of the port range.
This must be less than or equal to the ToPort specification.
686 687 688 |
# File 'network_firewall/cfn_tls_inspection_configuration.rb', line 686 def from_port @from_port end |
#to_port ⇒ Numeric (readonly)
The upper limit of the port range.
This must be greater than or equal to the FromPort specification.
693 694 695 |
# File 'network_firewall/cfn_tls_inspection_configuration.rb', line 693 def to_port @to_port end |
Class Method Details
.jsii_properties ⇒ Object
695 696 697 698 699 700 |
# File 'network_firewall/cfn_tls_inspection_configuration.rb', line 695 def self.jsii_properties { :from_port => "fromPort", :to_port => "toPort", } end |
Instance Method Details
#to_jsii ⇒ Object
702 703 704 705 706 707 708 709 |
# File 'network_firewall/cfn_tls_inspection_configuration.rb', line 702 def to_jsii result = {} result.merge!({ "fromPort" => @from_port, "toPort" => @to_port, }) result.compact end |