@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-20T22:19:58.767Z")
public abstract class AclTraffic
extends software.amazon.jsii.JsiiObject
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; AclTraffic aclTraffic = AclTraffic.allTraffic();
Modifier | Constructor and Description |
---|---|
protected |
AclTraffic() |
protected |
AclTraffic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AclTraffic(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static AclTraffic |
allTraffic()
Apply the ACL entry to all traffic.
|
static AclTraffic |
icmp(AclIcmp props)
Apply the ACL entry to ICMP traffic of given type and code.
|
static AclTraffic |
icmpv6(AclIcmp props)
Apply the ACL entry to ICMPv6 traffic of given type and code.
|
static AclTraffic |
tcpPort(java.lang.Number port)
Apply the ACL entry to TCP traffic on a given port.
|
static AclTraffic |
tcpPortRange(java.lang.Number startPort,
java.lang.Number endPort)
Apply the ACL entry to TCP traffic on a given port range.
|
abstract AclTrafficConfig |
toTrafficConfig() |
static AclTraffic |
udpPort(java.lang.Number port)
Apply the ACL entry to UDP traffic on a given port.
|
static AclTraffic |
udpPortRange(java.lang.Number startPort,
java.lang.Number endPort)
Apply the ACL entry to UDP traffic on a given port range.
|
protected AclTraffic(software.amazon.jsii.JsiiObjectRef objRef)
protected AclTraffic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected AclTraffic()
public static AclTraffic allTraffic()
public static AclTraffic icmp(AclIcmp props)
props
- This parameter is required.public static AclTraffic icmpv6(AclIcmp props)
Requires an IPv6 CIDR block.
props
- This parameter is required.public static AclTraffic tcpPort(java.lang.Number port)
port
- This parameter is required.public static AclTraffic tcpPortRange(java.lang.Number startPort, java.lang.Number endPort)
startPort
- This parameter is required.endPort
- This parameter is required.public static AclTraffic udpPort(java.lang.Number port)
port
- This parameter is required.public static AclTraffic udpPortRange(java.lang.Number startPort, java.lang.Number endPort)
startPort
- This parameter is required.endPort
- This parameter is required.public abstract AclTrafficConfig toTrafficConfig()