interface CommonNetworkAclEntryOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CommonNetworkAclEntryOptions |
![]() | software.amazon.awscdk.services.ec2.CommonNetworkAclEntryOptions |
![]() | aws_cdk.aws_ec2.CommonNetworkAclEntryOptions |
![]() | @aws-cdk/aws-ec2 » CommonNetworkAclEntryOptions |
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 * as ec2 from '@aws-cdk/aws-ec2';
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
Name | Type | Description |
---|---|---|
cidr | Acl | The CIDR range to allow or deny. |
rule | number | Rule number to assign to the entry, such as 100. |
traffic | Acl | What kind of traffic this ACL rule applies to. |
direction? | Traffic | Traffic direction, with respect to the subnet, this rule applies to. |
network | string | The name of the NetworkAclEntry. |
rule | Action | Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny". |
cidr
Type:
Acl
The CIDR range to allow or deny.
ruleNumber
Type:
number
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.
traffic
Type:
Acl
What kind of traffic this ACL rule applies to.
direction?
Type:
Traffic
(optional, default: TrafficDirection.INGRESS)
Traffic direction, with respect to the subnet, this rule applies to.
networkAclEntryName?
Type:
string
(optional, default: If you don't specify a NetworkAclName, AWS CloudFormation generates a
unique physical ID and uses that ID for the group name.)
The name of the NetworkAclEntry.
It is not recommended to use an explicit group name.
ruleAction?
Type:
Action
(optional, default: ALLOW)
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.