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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#fromInteger

The first port in the range.

Returns:

  • (Integer)


38130
38131
38132
38133
38134
38135
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38130

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

#toInteger

The last port in the range.

Returns:

  • (Integer)


38130
38131
38132
38133
38134
38135
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 38130

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