public static final class ConnectionRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ConnectionRule
ConnectionRule
ConnectionRule.Builder, ConnectionRule.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription()
Description of this connection.
|
java.lang.Number |
getFromPort()
Start of port range for the TCP and UDP protocols, or an ICMP type number.
|
java.lang.String |
getProtocol()
The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).
|
java.lang.Number |
getToPort()
End of port range for the TCP and UDP protocols, or an ICMP code.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Number getFromPort()
ConnectionRule
If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP type number).
getFromPort
in interface ConnectionRule
public final java.lang.String getDescription()
ConnectionRule
It is applied to both the ingress rule and the egress rule.
Default: No description
getDescription
in interface ConnectionRule
public final java.lang.String getProtocol()
ConnectionRule
Use -1 to specify all protocols. If you specify -1, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is allowed, regardless of any ports you specify. For tcp, udp, and icmp, you must specify a port range. For protocol 58 (ICMPv6), you can optionally specify a port range; if you don't, traffic for all types and codes is allowed.
Default: tcp
getProtocol
in interface ConnectionRule
public final java.lang.Number getToPort()
ConnectionRule
If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP code).
Default: If toPort is not specified, it will be the same as fromPort.
getToPort
in interface ConnectionRule
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()