Class: Aws::AppMesh::Types::PortMapping

Inherits:
Struct
  • Object
show all
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: "http", # required, accepts http, tcp
}

An object representing a virtual node or virtual router listener port mapping.

Instance Attribute Summary collapse

Instance Attribute Details

#portInteger

The port used for the port mapping.

Returns:

  • (Integer)


1988
1989
1990
1991
1992
# File 'lib/aws-sdk-appmesh/types.rb', line 1988

class PortMapping < Struct.new(
  :port,
  :protocol)
  include Aws::Structure
end

#protocolString

The protocol used for the port mapping.

Returns:

  • (String)


1988
1989
1990
1991
1992
# File 'lib/aws-sdk-appmesh/types.rb', line 1988

class PortMapping < Struct.new(
  :port,
  :protocol)
  include Aws::Structure
end