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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.369Z")
@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
ConstructorsModifierConstructorDescriptionprotectedprotectedAclTraffic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAclTraffic(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic AclTrafficApply the ACL entry to all traffic.static AclTrafficApply the ACL entry to ICMP traffic of given type and code.static AclTrafficApply the ACL entry to ICMPv6 traffic of given type and code.static AclTrafficApply the ACL entry to TCP traffic on a given port.static AclTraffictcpPortRange(Number startPort, Number endPort) Apply the ACL entry to TCP traffic on a given port range.abstract AclTrafficConfigstatic AclTrafficApply the ACL entry to UDP traffic on a given port.static AclTrafficudpPortRange(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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-