| Did this page help you? Yes No Tell us about it... |
Deletes an ingress or egress entry (i.e., rule) from a network ACL. For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
The short version of this command is ec2delnae.
ec2-delete-network-acl-entry
acl_id -n rule_number [--egress]
| Name | Description | Required |
|---|---|---|
|
|
ID of the network ACL. Type: String Default: None Example: acl-5fb85d36 |
Yes |
|
|
Rule number for the entry to delete. Type: Number Default: None Example: 100 |
Yes |
--egress
|
Optional flag to indicate that the rule to delete is an egress rule. Default: If not specified, we assume the rule to delete is an ingress rule. | No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Boolean true or false
Amazon EC2 command line tools display errors on stderr.
This example deletes the ingress entry with rule number 100 from the network ACL with ID acl-2cb85d45.
PROMPT> ec2-delete-network-acl-entry acl-2cb85d45 -n 100
RETURN trueThis example deletes the egress entry with rule number 200 from the network ACL with ID acl-2cb85d45.
PROMPT> ec2-delete-network-acl-entry acl-2cb85d45 -n 200 --egress
RETURN true