Module Values.PutInstancePublicPortsRequestSource

Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol. This action also closes all currently open ports that are not included in the request. Include all of the ports and the protocols you want to open in your PutInstancePublicPortsrequest. Or use the OpenInstancePublicPorts action to open ports without closing currently open ports. The PutInstancePublicPorts action supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Amazon Lightsail Developer Guide.

Sourcetype nonrec t = {
  1. portInfos : PortInfoList.t;
    (*

    An array of objects to describe the ports to open for the specified instance.

    *)
  2. instanceName : ResourceName.t;
    (*

    The name of the instance for which to open ports.

    *)
}
Sourceval context_ : string
Sourceval make : portInfos:PortInfoList.t -> instanceName:ResourceName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `Integer of Port.t | `List of [> `String of String_.t ] list ]) list ] list | `String of ResourceName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t