You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing PortMapping as input to an Aws::Client method, you can use a vanilla Hash:

{
  port: 1, # required
  protocol: "http", # required, accepts http, tcp, http2, grpc
}

An object that represents a port mapping.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#portInteger

The port used for the port mapping.

Returns:

  • (Integer)

    The port used for the port mapping.

#protocolString

The protocol used for the port mapping. Specify one protocol.

Possible values:

  • http
  • tcp
  • http2
  • grpc

Returns:

  • (String)

    The protocol used for the port mapping.