delete_network_acl ( $network_acl_id, $opt )

Deletes a network ACL from a VPC. The ACL must not have any subnets associated with it. You can’t delete the default 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

The ID of the network ACL to be deleted.

$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 a Network Access Control List (ACL).

$ec2 = new AmazonEC2();

$response = $ec2->delete_network_acl('acl-4abf3f23');

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

Related Methods

Source

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

public function delete_network_acl($network_acl_id, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['NetworkAclId'] = $network_acl_id;
    
    return $this->authenticate('DeleteNetworkAcl', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback