Class ConnectionRule.Jsii$Proxy
- All Implemented Interfaces:
ConnectionRule,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
ConnectionRule
ConnectionRule-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ConnectionRule
ConnectionRule.Builder, ConnectionRule.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(ConnectionRule.Builder builder) Constructor that initializes the object based on literal property values passed by theConnectionRule.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringDescription of this connection.final NumberStart of port range for the TCP and UDP protocols, or an ICMP type number.final StringThe IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).final NumberEnd of port range for the TCP and UDP protocols, or an ICMP code.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theConnectionRule.Builder.
-
-
Method Details
-
getFromPort
Description copied from interface:ConnectionRuleStart of port range for the TCP and UDP protocols, or an ICMP type number.If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP type number).
- Specified by:
getFromPortin interfaceConnectionRule
-
getDescription
Description copied from interface:ConnectionRuleDescription of this connection.It is applied to both the ingress rule and the egress rule.
Default: No description
- Specified by:
getDescriptionin interfaceConnectionRule
-
getProtocol
Description copied from interface:ConnectionRuleThe IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).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
- Specified by:
getProtocolin interfaceConnectionRule
-
getToPort
Description copied from interface:ConnectionRuleEnd of port range for the TCP and UDP protocols, or an ICMP code.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.
- Specified by:
getToPortin interfaceConnectionRule
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-