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

Class: Aws::Lightsail::Types::PortInfo

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

Overview

Note:

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

{
  from_port: 1,
  to_port: 1,
  protocol: "tcp", # accepts tcp, all, udp
}

Describes information about the ports on your virtual private server (or instance).

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#from_portInteger

The first port in the range.

Returns:

  • (Integer)

    The first port in the range.

#protocolString

The protocol.

Possible values:

  • tcp
  • all
  • udp

Returns:

  • (String)

    The protocol.

#to_portInteger

The last port in the range.

Returns:

  • (Integer)

    The last port in the range.