@Stability(value=Experimental) @Internal public static final class ConnectionRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ConnectionRule
ConnectionRulesoftware.amazon.jsii.JsiiObject.InitializationModeConnectionRule.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.
|
protected |
Jsii$Proxy(Number fromPort,
String description,
String protocol,
Number toPort)
Constructor that initializes the object based on literal property values passed by the
ConnectionRule.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getDescription()
(experimental) Description of this connection.
|
Number |
getFromPort()
(experimental) Start of port range for the TCP and UDP protocols, or an ICMP type number.
|
String |
getProtocol()
(experimental) The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).
|
Number |
getToPort()
(experimental) End of port range for the TCP and UDP protocols, or an ICMP code.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Number fromPort, String description, String protocol, Number toPort)
ConnectionRule.Builder.public final Number getFromPort()
ConnectionRuleIf you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP type number).
getFromPort in interface ConnectionRulepublic final String getDescription()
ConnectionRuleIt is applied to both the ingress rule and the egress rule.
Default: No description
getDescription in interface ConnectionRulepublic final String getProtocol()
ConnectionRuleUse -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 ConnectionRulepublic final Number getToPort()
ConnectionRuleIf 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@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.