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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmesh/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)


2014
2015
2016
2017
2018
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2014

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

#protocolString

The protocol used for the port mapping.

Returns:

  • (String)


2014
2015
2016
2017
2018
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2014

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