modify_cache_parameter_group ( $cache_parameter_group_name, $parameter_name_values, $opt )

Modifies the parameters of a CacheParameterGroup. To modify more than one parameter, submit a list of ParameterName and ParameterValue parameters. A maximum of 20 parameters can be modified in a single request.

Access

public

Parameters

Parameter

Type

Required

Description

$cache_parameter_group_name

string

Required

The name of the cache parameter group to modify.

$parameter_name_values

array

Required

An array of parameter names and values for the parameter update. At least one parameter name and value must be supplied; subsequent arguments are optional. A maximum of 20 parameters may be modified in a single request.

  • 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:

  • 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 modify_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('ModifyCacheParameterGroup', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback