Class: AWSCDK::AppMesh::CfnRoute::TCPRouteMatchProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_route.rb

Overview

An object representing the TCP route to match.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port: nil) ⇒ TCPRouteMatchProperty

Returns a new instance of TCPRouteMatchProperty.

Parameters:

  • port (Numeric, nil) (defaults to: nil)

    The port number to match on.



1826
1827
1828
1829
# File 'app_mesh/cfn_route.rb', line 1826

def initialize(port: nil)
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil?
end

Instance Attribute Details

#portNumeric? (readonly)

The port number to match on.



1835
1836
1837
# File 'app_mesh/cfn_route.rb', line 1835

def port
  @port
end

Class Method Details

.jsii_propertiesObject



1837
1838
1839
1840
1841
# File 'app_mesh/cfn_route.rb', line 1837

def self.jsii_properties
  {
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



1843
1844
1845
1846
1847
1848
1849
# File 'app_mesh/cfn_route.rb', line 1843

def to_jsii
  result = {}
  result.merge!({
    "port" => @port,
  })
  result.compact
end