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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb

Overview

Note:

When making an API call, you may pass PortInfo data as a 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).

Instance Attribute Summary collapse

Instance Attribute Details

#from_portInteger

The first port in the range.

Returns:

  • (Integer)


2519
2520
2521
2522
2523
2524
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2519

class PortInfo < Struct.new(
  :from_port,
  :to_port,
  :protocol)
  include Aws::Structure
end

#protocolString

The protocol.

Returns:

  • (String)


2519
2520
2521
2522
2523
2524
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2519

class PortInfo < Struct.new(
  :from_port,
  :to_port,
  :protocol)
  include Aws::Structure
end

#to_portInteger

The last port in the range.

Returns:

  • (Integer)


2519
2520
2521
2522
2523
2524
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2519

class PortInfo < Struct.new(
  :from_port,
  :to_port,
  :protocol)
  include Aws::Structure
end