PortInfo class

Describes ports to open on an instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.

Constructors

PortInfo({List<String>? cidrListAliases, List<String>? cidrs, int? fromPort, NetworkProtocol? protocol, int? toPort})

Properties

cidrListAliases List<String>?
An alias that defines access for a preconfigured range of IP addresses.
final
cidrs List<String>?
The IP address, or range of IP addresses in CIDR notation, that are allowed to connect to an instance through the ports, and the protocol. Lightsail supports IPv4 addresses.
final
fromPort int?
The first port in a range of open ports on an instance.
final
hashCode int
The hash code for this object.
no setterinherited
protocol NetworkProtocol?
The IP protocol name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toPort int?
The last port in a range of open ports on an instance.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited