reset_cache_parameter_group ( $cache_parameter_group_name, $parameter_name_values, $opt )

Modifies the parameters of a CacheParameterGroup to the engine or system default value. To reset specific parameters submit a list of the parameter names. To reset the entire CacheParameterGroup, specify the CacheParameterGroup name and ResetAllParameters parameters.

Access

public

Parameters

Parameter

Type

Required

Description

$cache_parameter_group_name

string

Required

The name of the Cache Parameter Group.

$parameter_name_values

array

Required

An array of parameter names which should be reset. If not resetting the entire CacheParameterGroup, at least one parameter name must be supplied.

  • x - array - Optional - This represents a simple array index.
    • ParameterName - string - Optional - Specifies the name of the parameter.
    • ParameterValue - string - Optional - Specifies the value of the parameter.

$opt

array

Optional

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

  • ResetAllParameters - boolean - Optional - Specifies whether (true) or not (false) to reset all parameters in the Cache Parameter Group to default values.
  • 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/elasticache.class.php | Toggle source view (12 lines) | View on GitHub

public function reset_cache_parameter_group($cache_parameter_group_name, $parameter_name_values, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['CacheParameterGroupName'] = $cache_parameter_group_name;
    
    // Required list + map
    $opt = array_merge($opt, CFComplexType::map(array(
        'ParameterNameValues' => (is_array($parameter_name_values) ? $parameter_name_values : array($parameter_name_values))
    ), 'member'));

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

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback