Class: AWSCDK::EC2::CfnNetworkInsightsAnalysis::AnalysisPacketHeaderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_network_insights_analysis.rb

Overview

Describes a header.

Reflects any changes made by a component as traffic passes through. The fields of an inbound header are null except for the first component of a path.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_addresses: nil, destination_port_ranges: nil, protocol: nil, source_addresses: nil, source_port_ranges: nil) ⇒ AnalysisPacketHeaderProperty

Returns a new instance of AnalysisPacketHeaderProperty.

Parameters:



1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
# File 'ec2/cfn_network_insights_analysis.rb', line 1023

def initialize(destination_addresses: nil, destination_port_ranges: nil, protocol: nil, source_addresses: nil, source_port_ranges: nil)
  @destination_addresses = destination_addresses
  Jsii::Type.check_type(@destination_addresses, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "destinationAddresses") unless @destination_addresses.nil?
  @destination_port_ranges = destination_port_ranges
  Jsii::Type.check_type(@destination_port_ranges, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbk5ldHdvcmtJbnNpZ2h0c0FuYWx5c2lzLlBvcnRSYW5nZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "destinationPortRanges") unless @destination_port_ranges.nil?
  @protocol = protocol
  Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") unless @protocol.nil?
  @source_addresses = source_addresses
  Jsii::Type.check_type(@source_addresses, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "sourceAddresses") unless @source_addresses.nil?
  @source_port_ranges = source_port_ranges
  Jsii::Type.check_type(@source_port_ranges, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkNmbk5ldHdvcmtJbnNpZ2h0c0FuYWx5c2lzLlBvcnRSYW5nZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "sourcePortRanges") unless @source_port_ranges.nil?
end

Instance Attribute Details

#destination_addressesArray<String>? (readonly)

The destination addresses.



1040
1041
1042
# File 'ec2/cfn_network_insights_analysis.rb', line 1040

def destination_addresses
  @destination_addresses
end

#destination_port_rangesAWSCDK::IResolvable, ... (readonly)

The destination port ranges.



1045
1046
1047
# File 'ec2/cfn_network_insights_analysis.rb', line 1045

def destination_port_ranges
  @destination_port_ranges
end

#protocolString? (readonly)

The protocol.



1050
1051
1052
# File 'ec2/cfn_network_insights_analysis.rb', line 1050

def protocol
  @protocol
end

#source_addressesArray<String>? (readonly)

The source addresses.



1055
1056
1057
# File 'ec2/cfn_network_insights_analysis.rb', line 1055

def source_addresses
  @source_addresses
end

#source_port_rangesAWSCDK::IResolvable, ... (readonly)

The source port ranges.



1060
1061
1062
# File 'ec2/cfn_network_insights_analysis.rb', line 1060

def source_port_ranges
  @source_port_ranges
end

Class Method Details

.jsii_propertiesObject



1062
1063
1064
1065
1066
1067
1068
1069
1070
# File 'ec2/cfn_network_insights_analysis.rb', line 1062

def self.jsii_properties
  {
    :destination_addresses => "destinationAddresses",
    :destination_port_ranges => "destinationPortRanges",
    :protocol => "protocol",
    :source_addresses => "sourceAddresses",
    :source_port_ranges => "sourcePortRanges",
  }
end

Instance Method Details

#to_jsiiObject



1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
# File 'ec2/cfn_network_insights_analysis.rb', line 1072

def to_jsii
  result = {}
  result.merge!({
    "destinationAddresses" => @destination_addresses,
    "destinationPortRanges" => @destination_port_ranges,
    "protocol" => @protocol,
    "sourceAddresses" => @source_addresses,
    "sourcePortRanges" => @source_port_ranges,
  })
  result.compact
end