@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.108Z") @Stability(value=Experimental) public class Port extends software.amazon.jsii.JsiiObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Port.Builder
(experimental) A fluent builder for
Port. |
| Modifier | Constructor and Description |
|---|---|
protected |
Port(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Port(software.amazon.jsii.JsiiObjectRef objRef) |
|
Port(PortProps props) |
| Modifier and Type | Method and Description |
|---|---|
static Port |
ah()
(experimental) A single AH port.
|
static Port |
allIcmp()
(experimental) All ICMP traffic.
|
static Port |
allTcp()
(experimental) Any TCP traffic.
|
static Port |
allTraffic()
(experimental) All traffic.
|
static Port |
allUdp()
(experimental) Any UDP traffic.
|
static Port |
esp()
(experimental) A single ESP port.
|
Boolean |
getCanInlineRule()
(experimental) Whether the rule containing this port range can be inlined into a securitygroup or not.
|
static Port |
icmpPing()
(experimental) ICMP ping (echo) traffic.
|
static Port |
icmpType(Number type)
(experimental) All codes for a single ICMP type.
|
static Port |
icmpTypeAndCode(Number type,
Number code)
(experimental) A specific combination of ICMP type and code.
|
static Port |
tcp(Number port)
(experimental) A single TCP port.
|
static Port |
tcpRange(Number startPort,
Number endPort)
(experimental) A TCP port range.
|
Object |
toRuleJson()
(experimental) Produce the ingress/egress rule JSON for the given connection.
|
String |
toString() |
static Port |
udp(Number port)
(experimental) A single UDP port.
|
static Port |
udpRange(Number startPort,
Number endPort)
(experimental) A UDP port range.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Port(software.amazon.jsii.JsiiObjectRef objRef)
protected Port(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Port(@NotNull
PortProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public static Port ah()
@Stability(value=Experimental) @NotNull public static Port allIcmp()
@Stability(value=Experimental) @NotNull public static Port allTcp()
@Stability(value=Experimental) @NotNull public static Port allTraffic()
@Stability(value=Experimental) @NotNull public static Port allUdp()
@Stability(value=Experimental) @NotNull public static Port esp()
@Stability(value=Experimental) @NotNull public static Port icmpPing()
@Stability(value=Experimental) @NotNull public static Port icmpType(@NotNull Number type)
type - This parameter is required.@Stability(value=Experimental) @NotNull public static Port icmpTypeAndCode(@NotNull Number type, @NotNull Number code)
type - This parameter is required.code - This parameter is required.https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml@Stability(value=Experimental) @NotNull public static Port tcp(@NotNull Number port)
port - This parameter is required.@Stability(value=Experimental) @NotNull public static Port tcpRange(@NotNull Number startPort, @NotNull Number endPort)
startPort - This parameter is required.endPort - This parameter is required.@Stability(value=Experimental) @NotNull public static Port udp(@NotNull Number port)
port - This parameter is required.@Stability(value=Experimental) @NotNull public static Port udpRange(@NotNull Number startPort, @NotNull Number endPort)
startPort - This parameter is required.endPort - This parameter is required.@Stability(value=Experimental) @NotNull public Object toRuleJson()
@Stability(value=Experimental) @NotNull public String toString()
@Stability(value=Experimental) @NotNull public Boolean getCanInlineRule()
Copyright © 2021. All rights reserved.