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

Class: Aws::Lightsail::Types::OpenInstancePublicPortsRequest

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 OpenInstancePublicPortsRequest data as a hash:

{
  port_info: { # required
    from_port: 1,
    to_port: 1,
    protocol: "tcp", # accepts tcp, all, udp
  },
  instance_name: "ResourceName", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#instance_nameString

The name of the instance for which you want to open the public ports.

Returns:

  • (String)


2432
2433
2434
2435
2436
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2432

class OpenInstancePublicPortsRequest < Struct.new(
  :port_info,
  :instance_name)
  include Aws::Structure
end

#port_infoTypes::PortInfo

An array of key-value pairs containing information about the port mappings.

Returns:



2432
2433
2434
2435
2436
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2432

class OpenInstancePublicPortsRequest < Struct.new(
  :port_info,
  :instance_name)
  include Aws::Structure
end