AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes ports to open on an instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.
Namespace: Amazon.Lightsail.Model
Assembly: AWSSDK.Lightsail.dll
Version: 3.x.y.z
public class PortInfo
The PortInfo type exposes the following members
Name | Description | |
---|---|---|
PortInfo() |
Name | Type | Description | |
---|---|---|---|
CidrListAliases | System.Collections.Generic.List<System.String> |
Gets and sets the property CidrListAliases. An alias that defines access for a preconfigured range of IP addresses.
The only alias currently supported is |
|
Cidrs | System.Collections.Generic.List<System.String> |
Gets and sets the property Cidrs. The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.
The Examples:
For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia. |
|
FromPort | System.Int32 |
Gets and sets the property FromPort. The first port in a range of open ports on an instance. Allowed ports:
|
|
Ipv6Cidrs | System.Collections.Generic.List<System.String> |
Gets and sets the property Ipv6Cidrs. The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.
The For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia. |
|
Protocol | Amazon.Lightsail.NetworkProtocol |
Gets and sets the property Protocol. The IP protocol name. The name can be one of the following:
|
|
ToPort | System.Int32 |
Gets and sets the property ToPort. The last port in a range of open ports on an instance. Allowed ports:
|
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5