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.
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.
Namespace: Amazon.EC2.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class CreateNetworkAclEntryRequest
Public Class CreateNetworkAclEntryRequest
public ref class CreateNetworkAclEntryRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| CreateNetworkAclEntryRequest()()()() | Initializes a new instance of the CreateNetworkAclEntryRequest class | |
| CidrBlock |
Gets and sets the CidrBlock property.
The CIDR range to allow or deny, in CIDR notation
(e.g., 172.16.0.0/24).
| |
| Egress |
Gets and sets the Egress property.
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 |
Gets and sets the Icmp property.
For the ICMP protocol, this is the ICMP type and code.
| |
| 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 |
Gets and sets the NetworkAclId property.
ID of the ACL where the entry will be created.
| |
| PortRange |
Gets and sets the PortRange property.
For the TCP or UDP protocols, the range of ports the rule applies to.
| |
| Protocol |
Gets and sets the Protocol property.
IP protocol the rule applies to.
Valid Values: 6 for tcp | 17 for udp | 1 for icmp or an IP protocol number.
| |
| RuleAction |
Gets and sets the RuleAction property.
Whether to allow or deny traffic that matches the rule.
Valid Values: allow | deny
| |
| RuleNumber |
Gets and sets the RuleNumber property.
Rule number to assign to the entry (e.g., 100). ACL
entries are processed in ascending order by rule
number.
| |
| ToString()()()() | (Inherited from Object.) | |
| WithCidrBlock(String) |
Sets the CidrBlock property
| |
| WithEgress(Boolean) |
Sets the Egress property
| |
| WithIcmp(Icmp) |
Sets the Icmp property
| |
| WithNetworkAclId(String) |
Sets the NetworkAclId property
| |
| WithPortRange(PortRange) |
Sets the PortRange property
| |
| WithProtocol(String) |
Sets the Protocol property
| |
| WithRuleAction(String) |
Sets the RuleAction property
| |
| WithRuleNumber(Decimal) |
Sets the RuleNumber property
|