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

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

{
  port_info: { # required
    from_port: 1,
    to_port: 1,
    protocol: "tcp", # accepts tcp, all, udp, icmp
    cidrs: ["string"],
    cidr_list_aliases: ["string"],
  },
  instance_name: "ResourceName", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instance_nameString

The name of the instance for which to close ports.

Returns:

  • (String)


836
837
838
839
840
841
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 836

class CloseInstancePublicPortsRequest < Struct.new(
  :port_info,
  :instance_name)
  SENSITIVE = []
  include Aws::Structure
end

#port_infoTypes::PortInfo

An object to describe the ports to close for the specified instance.

Returns:



836
837
838
839
840
841
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 836

class CloseInstancePublicPortsRequest < Struct.new(
  :port_info,
  :instance_name)
  SENSITIVE = []
  include Aws::Structure
end