Class AclTraffic
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.AclTraffic
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:00.373Z")
@Stability(Stable)
public abstract class AclTraffic
extends software.amazon.jsii.JsiiObject
The traffic that is configured using a Network ACL entry.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AclTraffic
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AclTraffic
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic AclTraffic
Apply the ACL entry to all traffic.static AclTraffic
Apply the ACL entry to ICMP traffic of given type and code.static AclTraffic
Apply the ACL entry to ICMPv6 traffic of given type and code.static AclTraffic
Apply the ACL entry to TCP traffic on a given port.static AclTraffic
tcpPortRange
(Number startPort, Number endPort) Apply the ACL entry to TCP traffic on a given port range.abstract AclTrafficConfig
static AclTraffic
Apply the ACL entry to UDP traffic on a given port.static AclTraffic
udpPortRange
(Number startPort, Number endPort) Apply the ACL entry to UDP traffic on a given port range.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AclTraffic
protected AclTraffic(software.amazon.jsii.JsiiObjectRef objRef) -
AclTraffic
protected AclTraffic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AclTraffic
@Stability(Stable) protected AclTraffic()
-
-
Method Details
-
allTraffic
Apply the ACL entry to all traffic. -
icmp
Apply the ACL entry to ICMP traffic of given type and code.- Parameters:
props
- This parameter is required.
-
icmpv6
Apply the ACL entry to ICMPv6 traffic of given type and code.Requires an IPv6 CIDR block.
- Parameters:
props
- This parameter is required.
-
tcpPort
Apply the ACL entry to TCP traffic on a given port.- Parameters:
port
- This parameter is required.
-
tcpPortRange
@Stability(Stable) @NotNull public static AclTraffic tcpPortRange(@NotNull Number startPort, @NotNull Number endPort) Apply the ACL entry to TCP traffic on a given port range.- Parameters:
startPort
- This parameter is required.endPort
- This parameter is required.
-
udpPort
Apply the ACL entry to UDP traffic on a given port.- Parameters:
port
- This parameter is required.
-
udpPortRange
@Stability(Stable) @NotNull public static AclTraffic udpPortRange(@NotNull Number startPort, @NotNull Number endPort) Apply the ACL entry to UDP traffic on a given port range.- Parameters:
startPort
- This parameter is required.endPort
- This parameter is required.
-
toTrafficConfig
-