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

Class: Aws::Lightsail::Types::PutInstancePublicPortsRequest

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

{
  port_infos: [ # 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 Lightsail instance name of the public port(s) you are setting.

Returns:

  • (String)


2550
2551
2552
2553
2554
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2550

class PutInstancePublicPortsRequest < Struct.new(
  :port_infos,
  :instance_name)
  include Aws::Structure
end

#port_infosArray<Types::PortInfo>

Specifies information about the public port(s).

Returns:



2550
2551
2552
2553
2554
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2550

class PutInstancePublicPortsRequest < Struct.new(
  :port_infos,
  :instance_name)
  include Aws::Structure
end