Class: AWSCDK::EC2::CfnNetworkInsightsPath::PathFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkInsightsPath::PathFilterProperty
- Defined in:
- ec2/cfn_network_insights_path.rb
Overview
Describes a set of filters for a path analysis.
Use path filters to scope the analysis when there can be multiple resulting paths.
Instance Attribute Summary collapse
-
#destination_address ⇒ String?
readonly
The destination IPv4 address.
-
#destination_port_range ⇒ AWSCDK::IResolvable, ...
readonly
The destination port range.
-
#source_address ⇒ String?
readonly
The source IPv4 address.
-
#source_port_range ⇒ AWSCDK::IResolvable, ...
readonly
The source port range.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_address: nil, destination_port_range: nil, source_address: nil, source_port_range: nil) ⇒ PathFilterProperty
constructor
A new instance of PathFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_address: nil, destination_port_range: nil, source_address: nil, source_port_range: nil) ⇒ PathFilterProperty
Returns a new instance of PathFilterProperty.
731 732 733 734 735 736 737 738 739 740 |
# File 'ec2/cfn_network_insights_path.rb', line 731 def initialize(destination_address: nil, destination_port_range: nil, source_address: nil, source_port_range: nil) @destination_address = destination_address Jsii::Type.check_type(@destination_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationAddress") unless @destination_address.nil? @destination_port_range = destination_port_range.is_a?(Hash) ? ::AWSCDK::EC2::CfnNetworkInsightsPath::FilterPortRangeProperty.new(**destination_port_range.transform_keys(&:to_sym)) : destination_port_range Jsii::Type.check_type(@destination_port_range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuTmV0d29ya0luc2lnaHRzUGF0aC5GaWx0ZXJQb3J0UmFuZ2VQcm9wZXJ0eSJ9XX19")), "destinationPortRange") unless @destination_port_range.nil? @source_address = source_address Jsii::Type.check_type(@source_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceAddress") unless @source_address.nil? @source_port_range = source_port_range.is_a?(Hash) ? ::AWSCDK::EC2::CfnNetworkInsightsPath::FilterPortRangeProperty.new(**source_port_range.transform_keys(&:to_sym)) : source_port_range Jsii::Type.check_type(@source_port_range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuTmV0d29ya0luc2lnaHRzUGF0aC5GaWx0ZXJQb3J0UmFuZ2VQcm9wZXJ0eSJ9XX19")), "sourcePortRange") unless @source_port_range.nil? end |
Instance Attribute Details
#destination_address ⇒ String? (readonly)
The destination IPv4 address.
746 747 748 |
# File 'ec2/cfn_network_insights_path.rb', line 746 def destination_address @destination_address end |
#destination_port_range ⇒ AWSCDK::IResolvable, ... (readonly)
The destination port range.
751 752 753 |
# File 'ec2/cfn_network_insights_path.rb', line 751 def destination_port_range @destination_port_range end |
#source_address ⇒ String? (readonly)
The source IPv4 address.
756 757 758 |
# File 'ec2/cfn_network_insights_path.rb', line 756 def source_address @source_address end |
#source_port_range ⇒ AWSCDK::IResolvable, ... (readonly)
The source port range.
761 762 763 |
# File 'ec2/cfn_network_insights_path.rb', line 761 def source_port_range @source_port_range end |
Class Method Details
.jsii_properties ⇒ Object
763 764 765 766 767 768 769 770 |
# File 'ec2/cfn_network_insights_path.rb', line 763 def self.jsii_properties { :destination_address => "destinationAddress", :destination_port_range => "destinationPortRange", :source_address => "sourceAddress", :source_port_range => "sourcePortRange", } end |
Instance Method Details
#to_jsii ⇒ Object
772 773 774 775 776 777 778 779 780 781 |
# File 'ec2/cfn_network_insights_path.rb', line 772 def to_jsii result = {} result.merge!({ "destinationAddress" => @destination_address, "destinationPortRange" => @destination_port_range, "sourceAddress" => @source_address, "sourcePortRange" => @source_port_range, }) result.compact end |