Creates an entry (i.e., rule) in a network ACL with a rule number you specify.

C# |
public class CreateNetworkAclEntryRequest : EC2Request

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | CreateNetworkAclEntryRequest()()()() | Initializes a new instance of the CreateNetworkAclEntryRequest class |
![]() | CidrBlock |
The CIDR range to allow or deny, in CIDR notation
(e.g., 172.16.0.0/24).
|
![]() | Egress |
Whether this rule applies to egress traffic from the subnet (true)
or ingress traffic to the subnet (false).
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | Icmp |
The ICMP type and code for the ICMP protocol.
|
![]() | IsSetCidrBlock()()()() |
Checks if CidrBlock property is set
|
![]() | IsSetEgress()()()() |
Checks if Egress property is set
|
![]() | IsSetIcmp()()()() |
Checks if Icmp property is set
|
![]() | IsSetNetworkAclId()()()() |
Checks if NetworkAclId property is set
|
![]() | IsSetPortRange()()()() |
Checks if PortRange property is set
|
![]() | IsSetProtocol()()()() |
Checks if Protocol property is set
|
![]() | IsSetRuleAction()()()() |
Checks if RuleAction property is set
|
![]() | IsSetRuleNumber()()()() |
Checks if RuleNumber property is set
|
![]() | NetworkAclId |
ID of the ACL where the entry will be created.
|
![]() | PortRange |
The range of ports the rule applies to, for TCP or UDP protocols.
|
![]() | Protocol |
The IP protocol the rule applies to.
You can use -1 to mean all protocols.
|
![]() | RuleAction |
Whether to allow or deny traffic that matches the rule.
|
![]() | RuleNumber |
Rule number to assign to the entry (e.g., 100).
|
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithCidrBlock(String) | Obsolete.
Sets the CIDR range to allow or deny, in CIDR notation.
|
![]() | WithEgress(Boolean) | Obsolete.
Sets whether this rule applies to egress traffic from the subnet (true)
or ingress traffic to the subnet (false).
|
![]() | WithIcmp(Icmp) | Obsolete.
Sets the ICMP type and code for the ICMP protocol.
|
![]() | WithNetworkAclId(String) | Obsolete.
Sets the ID of the ACL where the entry will be created.
|
![]() | WithPortRange(PortRange) | Obsolete.
Sets the range of ports the rule applies to, for TCP or UDP protocols.
|
![]() | WithProtocol(String) | Obsolete.
Sets the IP protocol the rule applies to.
|
![]() | WithRuleAction(String) | Obsolete.
Sets whether to allow or deny traffic that matches the rule.
|
![]() | WithRuleNumber(Decimal) | Obsolete.
Sets the rule number to assign to the entry (e.g., 100).
|

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.
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.

Object | ||
![]() | EC2Request | |
![]() | CreateNetworkAclEntryRequest |