Creates an entry (i.e., rule) in a network ACL with a rule number you specify. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, Amazon VPC processes the entries in the ACL according to the rule numbers, in ascending order.
Important: We recommend that you leave room between the rules (e.g., 100, 110, 120, etc.), and not number them sequentially (101, 102, 103, etc.). This allows you to easily add a new rule between existing ones without having to renumber the rules.
After you add an entry, you can't modify it; you must either replace it, or create a new entry and delete the old one.
For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
Inheritance Hierarchy
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class CreateNetworkAclEntryRequest : AmazonWebServiceRequest IRequestEvents
The CreateNetworkAclEntryRequest type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
CreateNetworkAclEntryRequest() |
Properties
Name | Description | |
---|---|---|
![]() |
CidrBlock |
The CIDR range to allow or deny, in CIDR notation (e.g., |
![]() |
Egress |
Whether this rule applies to egress traffic from the subnet ( |
![]() |
IcmpTypeCode | ICMP values. |
![]() |
NetworkAclId | ID of the ACL where the entry will be created. |
![]() |
PortRange | Port ranges. |
![]() |
Protocol |
IP protocol the rule applies to. Valid Values: |
![]() |
RuleAction |
Whether to allow or deny traffic that matches the rule.
Constraints: |
![]() |
RuleNumber | Rule number to assign to the entry (e.g., 100). ACL entries are processed in ascending order by rule number. |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8