@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.608Z") @Stability(value=Experimental) public interface ConnectionRule extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConnectionRule.Builder
A builder for
ConnectionRule |
static class |
ConnectionRule.Jsii$Proxy
An implementation for
ConnectionRule |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionRule.Builder |
builder() |
default 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.
|
default String |
getProtocol()
(experimental) The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).
|
default Number |
getToPort()
(experimental) End of port range for the TCP and UDP protocols, or an ICMP code.
|
@Stability(value=Experimental) @NotNull Number getFromPort()
If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP type number).
@Stability(value=Experimental) @Nullable default String getDescription()
It is applied to both the ingress rule and the egress rule.
Default: No description
@Stability(value=Experimental) @Nullable default String getProtocol()
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
@Stability(value=Experimental) @Nullable default Number getToPort()
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.
@Stability(value=Experimental) static ConnectionRule.Builder builder()
ConnectionRule.Builder of ConnectionRuleCopyright © 2021. All rights reserved.