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

Class: Aws::EC2::Types::PortRange

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

Overview

Note:

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

{
  from: 1,
  to: 1,
}

Describes a range of ports.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#fromInteger

The first port in the range.

Returns:

  • (Integer)

    The first port in the range.

#toInteger

The last port in the range.

Returns:

  • (Integer)

    The last port in the range.