Define an entry in a Network ACL table.
import { NetworkAclEntry } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.NetworkAclEntryConfiguration passed to the constructor as NetworkAclEntryProps.
networkAclRequiredINetworkAclThe network ACL this entry applies to.
CommonNetworkAclEntryOptionscidrRequiredinherited from CommonNetworkAclEntryOptionsAclCidrThe CIDR range to allow or deny.
ruleNumberRequiredinherited from CommonNetworkAclEntryOptionsnumberRule 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.
trafficRequiredinherited from CommonNetworkAclEntryOptionsAclTrafficWhat kind of traffic this ACL rule applies to.
directionOptionalinherited from CommonNetworkAclEntryOptionsTrafficDirectionTraffic direction, with respect to the subnet, this rule applies to.
Default: TrafficDirection.INGRESS
networkAclEntryNameOptionalinherited from CommonNetworkAclEntryOptionsstringThe 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.
ruleActionOptionalinherited from CommonNetworkAclEntryOptionsActionWhether 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
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2