Class: AWSCDK::AppMesh::CfnVirtualRouter::PortMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualRouter::PortMappingProperty
- Defined in:
- app_mesh/cfn_virtual_router.rb
Overview
An object representing a virtual router listener port mapping.
Instance Attribute Summary collapse
-
#port ⇒ Numeric
readonly
The port used for the port mapping.
-
#protocol ⇒ String
readonly
The protocol used for the port mapping.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port:, protocol:) ⇒ PortMappingProperty
constructor
A new instance of PortMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port:, protocol:) ⇒ PortMappingProperty
Returns a new instance of PortMappingProperty.
625 626 627 628 629 630 |
# File 'app_mesh/cfn_virtual_router.rb', line 625 def initialize(port:, protocol:) @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") @protocol = protocol Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") end |
Instance Attribute Details
#port ⇒ Numeric (readonly)
The port used for the port mapping.
636 637 638 |
# File 'app_mesh/cfn_virtual_router.rb', line 636 def port @port end |
#protocol ⇒ String (readonly)
The protocol used for the port mapping.
Specify one protocol.
643 644 645 |
# File 'app_mesh/cfn_virtual_router.rb', line 643 def protocol @protocol end |
Class Method Details
.jsii_properties ⇒ Object
645 646 647 648 649 650 |
# File 'app_mesh/cfn_virtual_router.rb', line 645 def self.jsii_properties { :port => "port", :protocol => "protocol", } end |
Instance Method Details
#to_jsii ⇒ Object
652 653 654 655 656 657 658 659 |
# File 'app_mesh/cfn_virtual_router.rb', line 652 def to_jsii result = {} result.merge!({ "port" => @port, "protocol" => @protocol, }) result.compact end |