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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    AclTraffic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    AclTraffic(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static AclTraffic
    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
    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.
     
    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

      @Stability(Stable) @NotNull public static AclTraffic allTraffic()
      Apply the ACL entry to all traffic.
    • icmp

      @Stability(Stable) @NotNull public static AclTraffic icmp(@NotNull AclIcmp props)
      Apply the ACL entry to ICMP traffic of given type and code.

      Parameters:
      props - This parameter is required.
    • icmpv6

      @Stability(Stable) @NotNull public static AclTraffic icmpv6(@NotNull AclIcmp props)
      Apply the ACL entry to ICMPv6 traffic of given type and code.

      Requires an IPv6 CIDR block.

      Parameters:
      props - This parameter is required.
    • tcpPort

      @Stability(Stable) @NotNull public static AclTraffic tcpPort(@NotNull Number port)
      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

      @Stability(Stable) @NotNull public static AclTraffic udpPort(@NotNull Number port)
      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

      @Stability(Stable) @NotNull public abstract AclTrafficConfig toTrafficConfig()