Class NetworkAclEntry

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.481Z") @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