Class NetworkAclEntry

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.NetworkAclEntry
All Implemented Interfaces:
IResource, INetworkAclEntry, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.099Z") @Stability(Stable) public class NetworkAclEntry extends Resource implements INetworkAclEntry
Define an entry in a Network ACL table.

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.*;
 AclCidr aclCidr;
 AclTraffic aclTraffic;
 NetworkAcl networkAcl;
 NetworkAclEntry networkAclEntry = NetworkAclEntry.Builder.create(this, "MyNetworkAclEntry")
         .cidr(aclCidr)
         .networkAcl(networkAcl)
         .ruleNumber(123)
         .traffic(aclTraffic)
         // the properties below are optional
         .direction(TrafficDirection.EGRESS)
         .networkAclEntryName("networkAclEntryName")
         .ruleAction(Action.ALLOW)
         .build();
 
  • Constructor Details

    • NetworkAclEntry

      protected NetworkAclEntry(software.amazon.jsii.JsiiObjectRef objRef)
    • NetworkAclEntry

      protected NetworkAclEntry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • NetworkAclEntry

      @Stability(Stable) public NetworkAclEntry(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NetworkAclEntryProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details