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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing PutInstancePublicPortsRequest as input to an Aws::Client method, you can use a vanilla 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)

    The Lightsail instance name of the public port(s) you are setting.

#port_infosArray<Types::PortInfo>

Specifies information about the public port(s).

Returns:

  • (Array<Types::PortInfo>)

    Specifies information about the public port(s).