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

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

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


17961
17962
17963
17964
17965
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 17961

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

#toInteger

The last port in the range.

Returns:

  • (Integer)


17961
17962
17963
17964
17965
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 17961

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