Class: Aws::AppMesh::Types::PortMapping
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMesh::Types::PortMapping
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-appmesh/types.rb
Overview
Note:
When making an API call, you may pass PortMapping data as a hash:
{
port: 1, # required
protocol: "grpc", # required, accepts grpc, http, http2, tcp
}
An object that represents a port mapping.
Instance Attribute Summary collapse
-
#port ⇒ Integer
The port used for the port mapping.
-
#protocol ⇒ String
The protocol used for the port mapping.
Instance Attribute Details
#port ⇒ Integer
The port used for the port mapping.
2145 2146 2147 2148 2149 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2145 class PortMapping < Struct.new( :port, :protocol) include Aws::Structure end |
#protocol ⇒ String
The protocol used for the port mapping. Specify one protocol.
2145 2146 2147 2148 2149 |
# File 'lib/aws-sdk-appmesh/types.rb', line 2145 class PortMapping < Struct.new( :port, :protocol) include Aws::Structure end |