Class: AWSCDK::AppMesh::CfnRoute::TCPRouteMatchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::TCPRouteMatchProperty
- Defined in:
- app_mesh/cfn_route.rb
Overview
An object representing the TCP route to match.
Instance Attribute Summary collapse
-
#port ⇒ Numeric?
readonly
The port number to match on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port: nil) ⇒ TCPRouteMatchProperty
constructor
A new instance of TCPRouteMatchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port: nil) ⇒ TCPRouteMatchProperty
Returns a new instance of TCPRouteMatchProperty.
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
#port ⇒ Numeric? (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_properties ⇒ Object
1837 1838 1839 1840 1841 |
# File 'app_mesh/cfn_route.rb', line 1837 def self.jsii_properties { :port => "port", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |