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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass PortRange data as a hash:

{
  from: 1,
  to: 1,
}

Describes a range of ports.

Instance Attribute Summary collapse

Instance Attribute Details

#fromInteger

The first port in the range.

Returns:

  • (Integer)


27778
27779
27780
27781
27782
# File 'lib/aws-sdk-ec2/types.rb', line 27778

class PortRange < Struct.new(
  :from,
  :to)
  include Aws::Structure
end

#toInteger

The last port in the range.

Returns:

  • (Integer)


27778
27779
27780
27781
27782
# File 'lib/aws-sdk-ec2/types.rb', line 27778

class PortRange < Struct.new(
  :from,
  :to)
  include Aws::Structure
end