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
- Struct
- Aws::Lightsail::Types::PutInstancePublicPortsRequest
- 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, icmp
cidrs: ["string"],
cidr_list_aliases: ["string"],
},
],
instance_name: "ResourceName", # required
}
Instance Attribute Summary collapse
-
#instance_name ⇒ String
The name of the instance for which to open ports.
-
#port_infos ⇒ Array<Types::PortInfo>
An array of objects to describe the ports to open for the specified instance.
Instance Attribute Details
#instance_name ⇒ String
The name of the instance for which to open ports.
#port_infos ⇒ Array<Types::PortInfo>
An array of objects to describe the ports to open for the specified instance.