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

Class: Aws::Lightsail::Types::CloseInstancePublicPortsRequest

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

Overview

Note:

When passing CloseInstancePublicPortsRequest as input to an Aws::Client method, you can use a vanilla 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 on which you\'re attempting to close the public ports.

Returns:

  • (String)

    The name of the instance on which you\'re attempting to close the public ports.

#port_infoTypes::PortInfo

Information about the public port you are trying to close.

Returns:

  • (Types::PortInfo)

    Information about the public port you are trying to close.