delete_network_acl_entry ( $network_acl_id, $rule_number, $egress, $opt )

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.

Access

public

Parameters

Parameter

Type

Required

Description

$network_acl_id

string

Required

ID of the network ACL.

$rule_number

integer

Required

Rule number for the entry to delete.

$egress

boolean

Required

Whether the rule to delete is an egress rule (true) or ingress rule (false).

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Delete an entry in the Network Access Control List (ACL).

$ec2 = new AmazonEC2();

$response = $ec2->delete_network_acl_entry('acl-4abf3f23', 1, 'true');

var_dump($response->isOK());
Result:
bool(true)

Related Methods

Source

Method defined in services/ec2.class.php | Toggle source view (9 lines) | View on GitHub

public function delete_network_acl_entry($network_acl_id, $rule_number, $egress, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['NetworkAclId'] = $network_acl_id;
    $opt['RuleNumber'] = $rule_number;
    $opt['Egress'] = $egress;
    
    return $this->authenticate('DeleteNetworkAclEntry', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback