paws.compute (version 0.1.0)

lightsail_put_instance_public_ports: Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request

Description

Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.

Usage

lightsail_put_instance_public_ports(portInfos, instanceName)

Arguments

portInfos

[required] Specifies information about the public port(s).

instanceName

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

Request syntax

svc$put_instance_public_ports(
  portInfos = list(
    list(
      fromPort = 123,
      toPort = 123,
      protocol = "tcp"|"all"|"udp"
    )
  ),
  instanceName = "string"
)

Details

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.