Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.
lightsail_put_instance_public_ports(portInfos, instanceName)[required] Specifies information about the public port(s).
[required] The Lightsail instance name of the public port(s) you are setting.
svc$put_instance_public_ports(
portInfos = list(
list(
fromPort = 123,
toPort = 123,
protocol = "tcp"|"all"|"udp"
)
),
instanceName = "string"
)
The put instance public ports operation supports tag-based access
control via resource tags applied to the resource identified by
instanceName. For more information, see the Lightsail Dev Guide.