Interface CommonNetworkAclEntryOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
NetworkAclEntryProps
All Known Implementing Classes:
CommonNetworkAclEntryOptions.Jsii$Proxy, NetworkAclEntryProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.274Z") @Stability(Stable) public interface CommonNetworkAclEntryOptions extends software.amazon.jsii.JsiiSerializable
Basic NetworkACL entry props.

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;
 CommonNetworkAclEntryOptions commonNetworkAclEntryOptions = CommonNetworkAclEntryOptions.builder()
         .cidr(aclCidr)
         .ruleNumber(123)
         .traffic(aclTraffic)
         // the properties below are optional
         .direction(TrafficDirection.EGRESS)
         .networkAclEntryName("networkAclEntryName")
         .ruleAction(Action.ALLOW)
         .build();
 
  • Method Details

    • getCidr

      @Stability(Stable) @NotNull AclCidr getCidr()
      The CIDR range to allow or deny.
    • getRuleNumber

      @Stability(Stable) @NotNull Number getRuleNumber()
      Rule number to assign to the entry, such as 100.

      ACL entries are processed in ascending order by rule number. Entries can't use the same rule number unless one is an egress rule and the other is an ingress rule.

    • getTraffic

      @Stability(Stable) @NotNull AclTraffic getTraffic()
      What kind of traffic this ACL rule applies to.
    • getDirection

      @Stability(Stable) @Nullable default TrafficDirection getDirection()
      Traffic direction, with respect to the subnet, this rule applies to.

      Default: TrafficDirection.INGRESS

    • getNetworkAclEntryName

      @Stability(Stable) @Nullable default String getNetworkAclEntryName()
      The name of the NetworkAclEntry.

      It is not recommended to use an explicit group name.

      Default: If you don't specify a NetworkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

    • getRuleAction

      @Stability(Stable) @Nullable default Action getRuleAction()
      Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".

      Any traffic that is not explicitly allowed is automatically denied in a custom ACL, all traffic is automatically allowed in a default ACL.

      Default: ALLOW

    • builder

      @Stability(Stable) static CommonNetworkAclEntryOptions.Builder builder()
      Returns:
      a CommonNetworkAclEntryOptions.Builder of CommonNetworkAclEntryOptions