AWS SDK for C++  1.9.103
AWS SDK for C++
Public Member Functions | List of all members
Aws::Lightsail::Model::InstancePortState Class Reference

#include <InstancePortState.h>

Public Member Functions

 InstancePortState ()
 
 InstancePortState (Aws::Utils::Json::JsonView jsonValue)
 
InstancePortStateoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
int GetFromPort () const
 
bool FromPortHasBeenSet () const
 
void SetFromPort (int value)
 
InstancePortStateWithFromPort (int value)
 
int GetToPort () const
 
bool ToPortHasBeenSet () const
 
void SetToPort (int value)
 
InstancePortStateWithToPort (int value)
 
const NetworkProtocolGetProtocol () const
 
bool ProtocolHasBeenSet () const
 
void SetProtocol (const NetworkProtocol &value)
 
void SetProtocol (NetworkProtocol &&value)
 
InstancePortStateWithProtocol (const NetworkProtocol &value)
 
InstancePortStateWithProtocol (NetworkProtocol &&value)
 
const PortStateGetState () const
 
bool StateHasBeenSet () const
 
void SetState (const PortState &value)
 
void SetState (PortState &&value)
 
InstancePortStateWithState (const PortState &value)
 
InstancePortStateWithState (PortState &&value)
 
const Aws::Vector< Aws::String > & GetCidrs () const
 
bool CidrsHasBeenSet () const
 
void SetCidrs (const Aws::Vector< Aws::String > &value)
 
void SetCidrs (Aws::Vector< Aws::String > &&value)
 
InstancePortStateWithCidrs (const Aws::Vector< Aws::String > &value)
 
InstancePortStateWithCidrs (Aws::Vector< Aws::String > &&value)
 
InstancePortStateAddCidrs (const Aws::String &value)
 
InstancePortStateAddCidrs (Aws::String &&value)
 
InstancePortStateAddCidrs (const char *value)
 
const Aws::Vector< Aws::String > & GetIpv6Cidrs () const
 
bool Ipv6CidrsHasBeenSet () const
 
void SetIpv6Cidrs (const Aws::Vector< Aws::String > &value)
 
void SetIpv6Cidrs (Aws::Vector< Aws::String > &&value)
 
InstancePortStateWithIpv6Cidrs (const Aws::Vector< Aws::String > &value)
 
InstancePortStateWithIpv6Cidrs (Aws::Vector< Aws::String > &&value)
 
InstancePortStateAddIpv6Cidrs (const Aws::String &value)
 
InstancePortStateAddIpv6Cidrs (Aws::String &&value)
 
InstancePortStateAddIpv6Cidrs (const char *value)
 
const Aws::Vector< Aws::String > & GetCidrListAliases () const
 
bool CidrListAliasesHasBeenSet () const
 
void SetCidrListAliases (const Aws::Vector< Aws::String > &value)
 
void SetCidrListAliases (Aws::Vector< Aws::String > &&value)
 
InstancePortStateWithCidrListAliases (const Aws::Vector< Aws::String > &value)
 
InstancePortStateWithCidrListAliases (Aws::Vector< Aws::String > &&value)
 
InstancePortStateAddCidrListAliases (const Aws::String &value)
 
InstancePortStateAddCidrListAliases (Aws::String &&value)
 
InstancePortStateAddCidrListAliases (const char *value)
 

Detailed Description

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

See Also:

AWS API Reference

Definition at line 35 of file InstancePortState.h.

Constructor & Destructor Documentation

◆ InstancePortState() [1/2]

Aws::Lightsail::Model::InstancePortState::InstancePortState ( )

◆ InstancePortState() [2/2]

Aws::Lightsail::Model::InstancePortState::InstancePortState ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddCidrListAliases() [1/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrListAliases ( Aws::String &&  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 653 of file InstancePortState.h.

◆ AddCidrListAliases() [2/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrListAliases ( const Aws::String value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 645 of file InstancePortState.h.

◆ AddCidrListAliases() [3/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrListAliases ( const char *  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 661 of file InstancePortState.h.

◆ AddCidrs() [1/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrs ( Aws::String &&  value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 468 of file InstancePortState.h.

◆ AddCidrs() [2/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrs ( const Aws::String value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 457 of file InstancePortState.h.

◆ AddCidrs() [3/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddCidrs ( const char *  value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 479 of file InstancePortState.h.

◆ AddIpv6Cidrs() [1/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddIpv6Cidrs ( Aws::String &&  value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 576 of file InstancePortState.h.

◆ AddIpv6Cidrs() [2/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddIpv6Cidrs ( const Aws::String value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 564 of file InstancePortState.h.

◆ AddIpv6Cidrs() [3/3]

InstancePortState& Aws::Lightsail::Model::InstancePortState::AddIpv6Cidrs ( const char *  value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 588 of file InstancePortState.h.

◆ CidrListAliasesHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::CidrListAliasesHasBeenSet ( ) const
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 605 of file InstancePortState.h.

◆ CidrsHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::CidrsHasBeenSet ( ) const
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 402 of file InstancePortState.h.

◆ FromPortHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::FromPortHasBeenSet ( ) const
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 76 of file InstancePortState.h.

◆ GetCidrListAliases()

const Aws::Vector<Aws::String>& Aws::Lightsail::Model::InstancePortState::GetCidrListAliases ( ) const
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 597 of file InstancePortState.h.

◆ GetCidrs()

const Aws::Vector<Aws::String>& Aws::Lightsail::Model::InstancePortState::GetCidrs ( ) const
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 391 of file InstancePortState.h.

◆ GetFromPort()

int Aws::Lightsail::Model::InstancePortState::GetFromPort ( ) const
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 59 of file InstancePortState.h.

◆ GetIpv6Cidrs()

const Aws::Vector<Aws::String>& Aws::Lightsail::Model::InstancePortState::GetIpv6Cidrs ( ) const
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 492 of file InstancePortState.h.

◆ GetProtocol()

const NetworkProtocol& Aws::Lightsail::Model::InstancePortState::GetProtocol ( ) const
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 206 of file InstancePortState.h.

◆ GetState()

const PortState& Aws::Lightsail::Model::InstancePortState::GetState ( ) const
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 344 of file InstancePortState.h.

◆ GetToPort()

int Aws::Lightsail::Model::InstancePortState::GetToPort ( ) const
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 128 of file InstancePortState.h.

◆ Ipv6CidrsHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::Ipv6CidrsHasBeenSet ( ) const
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 504 of file InstancePortState.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::Lightsail::Model::InstancePortState::Jsonize ( ) const

◆ operator=()

InstancePortState& Aws::Lightsail::Model::InstancePortState::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ ProtocolHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::ProtocolHasBeenSet ( ) const
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 232 of file InstancePortState.h.

◆ SetCidrListAliases() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrListAliases ( Aws::Vector< Aws::String > &&  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 621 of file InstancePortState.h.

◆ SetCidrListAliases() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrListAliases ( const Aws::Vector< Aws::String > &  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 613 of file InstancePortState.h.

◆ SetCidrs() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrs ( Aws::Vector< Aws::String > &&  value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 424 of file InstancePortState.h.

◆ SetCidrs() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetCidrs ( const Aws::Vector< Aws::String > &  value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 413 of file InstancePortState.h.

◆ SetFromPort()

void Aws::Lightsail::Model::InstancePortState::SetFromPort ( int  value)
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 93 of file InstancePortState.h.

◆ SetIpv6Cidrs() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetIpv6Cidrs ( Aws::Vector< Aws::String > &&  value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 528 of file InstancePortState.h.

◆ SetIpv6Cidrs() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetIpv6Cidrs ( const Aws::Vector< Aws::String > &  value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 516 of file InstancePortState.h.

◆ SetProtocol() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetProtocol ( const NetworkProtocol value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 258 of file InstancePortState.h.

◆ SetProtocol() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetProtocol ( NetworkProtocol &&  value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 284 of file InstancePortState.h.

◆ SetState() [1/2]

void Aws::Lightsail::Model::InstancePortState::SetState ( const PortState value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 358 of file InstancePortState.h.

◆ SetState() [2/2]

void Aws::Lightsail::Model::InstancePortState::SetState ( PortState &&  value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 365 of file InstancePortState.h.

◆ SetToPort()

void Aws::Lightsail::Model::InstancePortState::SetToPort ( int  value)
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 162 of file InstancePortState.h.

◆ StateHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::StateHasBeenSet ( ) const
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 351 of file InstancePortState.h.

◆ ToPortHasBeenSet()

bool Aws::Lightsail::Model::InstancePortState::ToPortHasBeenSet ( ) const
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 145 of file InstancePortState.h.

◆ WithCidrListAliases() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrListAliases ( Aws::Vector< Aws::String > &&  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 637 of file InstancePortState.h.

◆ WithCidrListAliases() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrListAliases ( const Aws::Vector< Aws::String > &  value)
inline

An alias that defines access for a preconfigured range of IP addresses.

The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Definition at line 629 of file InstancePortState.h.

◆ WithCidrs() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrs ( Aws::Vector< Aws::String > &&  value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 446 of file InstancePortState.h.

◆ WithCidrs() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithCidrs ( const Aws::Vector< Aws::String > &  value)
inline

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 ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 435 of file InstancePortState.h.

◆ WithFromPort()

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithFromPort ( int  value)
inline

The first port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 110 of file InstancePortState.h.

◆ WithIpv6Cidrs() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithIpv6Cidrs ( Aws::Vector< Aws::String > &&  value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 552 of file InstancePortState.h.

◆ WithIpv6Cidrs() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithIpv6Cidrs ( const Aws::Vector< Aws::String > &  value)
inline

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 cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

Definition at line 540 of file InstancePortState.h.

◆ WithProtocol() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithProtocol ( const NetworkProtocol value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 310 of file InstancePortState.h.

◆ WithProtocol() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithProtocol ( NetworkProtocol &&  value)
inline

The IP protocol name.

The name can be one of the following:

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

  • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

Definition at line 336 of file InstancePortState.h.

◆ WithState() [1/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithState ( const PortState value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 372 of file InstancePortState.h.

◆ WithState() [2/2]

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithState ( PortState &&  value)
inline

Specifies whether the instance port is open or closed.

The port state for Lightsail instances is always open.

Definition at line 379 of file InstancePortState.h.

◆ WithToPort()

InstancePortState& Aws::Lightsail::Model::InstancePortState::WithToPort ( int  value)
inline

The last port in a range of open ports on an instance.

Allowed ports:

  • TCP and UDP - 0 to 65535

  • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

  • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

Definition at line 179 of file InstancePortState.h.


The documentation for this class was generated from the following file: