CommonNetworkAclEntryOptions Struct
Basic NetworkACL entry props.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const aclCidr: ec2.AclCidr;
declare const aclTraffic: ec2.AclTraffic;
const commonNetworkAclEntryOptions: ec2.CommonNetworkAclEntryOptions = {
cidr: aclCidr,
ruleNumber: 123,
traffic: aclTraffic,
// the properties below are optional
direction: ec2.TrafficDirection.EGRESS,
networkAclEntryName: 'networkAclEntryName',
ruleAction: ec2.Action.ALLOW,
};
Properties
directionTrafficDirectiondirectionTrafficDirectiondirectionTrafficDirectionDirectionTrafficDirectionDirectionTrafficDirection= TrafficDirection.INGRESS#Traffic direction, with respect to the subnet, this rule applies to.
networkAclEntryNamestringnetwork_acl_entry_namestrnetworkAclEntryNameStringNetworkAclEntryNamestringNetworkAclEntryName*string= If you don't specify a NetworkAc…#The name of the NetworkAclEntry.
It is not recommended to use an explicit group name.
default
Default: If you don't specify a NetworkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
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.
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.
What kind of traffic this ACL rule applies to.