ModifyCacheParameterGroup - Amazon ElastiCache
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The name of the cache parameter group to modify.

Type: String

Required: Yes


An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.

Type: Array of ParameterNameValue objects

Required: Yes

Response Elements

The following element is returned by the service.


The name of the cache parameter group.

Type: String


For information about the errors that are common to all actions, see Common Errors.


The requested cache parameter group name does not refer to an existing cache parameter group.

HTTP Status Code: 404


The current state of the cache parameter group does not allow the requested operation to occur.

HTTP Status Code: 400


The Global datastore is not available or in primary-only state.

HTTP Status Code: 400


Two or more incompatible parameters were specified.

HTTP Status Code: 400


The value for a parameter is invalid.

HTTP Status Code: 400



This example illustrates one usage of ModifyCacheParameterGroup.

Sample Request ?Action=ModifyCacheParameterGroup &CacheParameterGroupName=mycacheparametergroup &ParameterNameValues.ParameterNameValue.1.ParameterName=chunk_size_growth_factor &ParameterNameValues.ParameterNameValue.1.ParameterValue=1.02 &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

Sample Response

<ModifyCacheParameterGroupResponse xmlns=""> <ModifyCacheParameterGroupResult> <CacheParameterGroupName>mycacheparametergroup</CacheParameterGroupName> </ModifyCacheParameterGroupResult> <ResponseMetadata> <RequestId>fcedeef2-b7ff-11e0-9326-b7275b9d4a6c</RequestId> </ResponseMetadata> </ModifyCacheParameterGroupResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: