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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ConnectionRule
ConnectionRule.Builder, ConnectionRule.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(ConnectionRule.Builder builder) Constructor that initializes the object based on literal property values passed by theConnectionRule.Builder
.protected
Jsii$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.JsonNode
final boolean
final String
Description of this connection.final Number
Start of port range for the TCP and UDP protocols, or an ICMP type number.final String
The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).final Number
End of port range for the TCP and UDP protocols, or an ICMP code.final int
hashCode()
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:ConnectionRule
Start 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:
getFromPort
in interfaceConnectionRule
-
getDescription
Description copied from interface:ConnectionRule
Description of this connection.It is applied to both the ingress rule and the egress rule.
Default: No description
- Specified by:
getDescription
in interfaceConnectionRule
-
getProtocol
Description copied from interface:ConnectionRule
The 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:
getProtocol
in interfaceConnectionRule
-
getToPort
Description copied from interface:ConnectionRule
End 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:
getToPort
in interfaceConnectionRule
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-