remove_tags_from_resource ( $resource_name, $tag_keys, $opt )

Removes metadata tags from a DB Instance.

For an overview on tagging DB Instances, see DB Instance Tags.

Access

public

Parameters

Parameter

Type

Required

Description

$resource_name

string

Required

The DB Instance the tags will be removed from.

$tag_keys

string
array

Required

The tag key (name) of the tag to be removed. Pass a string for a single value, or an indexed array for multiple values.

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

Source

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

public function remove_tags_from_resource($resource_name, $tag_keys, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ResourceName'] = $resource_name;
    
    // Required list (non-map)
    $opt = array_merge($opt, CFComplexType::map(array(
        'TagKeys' => (is_array($tag_keys) ? $tag_keys : array($tag_keys))
    ), 'member'));

    return $this->authenticate('RemoveTagsFromResource', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback