delete_db_security_group ( $db_security_group_name, $opt )

Deletes a DB Security Group.

The specified DB Security Group must not be associated with any DB Instances.

Access

public

Parameters

Parameter

Type

Required

Description

$db_security_group_name

string

Required

The name of the DB Security Group to delete.

You cannot delete the default DB Security Group.

Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

$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 security group.

// Instantiate the class
$rds = new AmazonRDS();

$response = $rds->delete_db_security_group('mySecurityGroup');

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

Related Methods

Source

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

public function delete_db_security_group($db_security_group_name, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['DBSecurityGroupName'] = $db_security_group_name;
    
    return $this->authenticate('DeleteDBSecurityGroup', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback