CreateCacheParameterGroup - Amazon ElastiCache


Creates a new Amazon ElastiCache cache parameter group. An ElastiCache cache parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster or replication group using the CacheParameterGroup.

A newly created CacheParameterGroup is an exact duplicate of the default parameter group for the CacheParameterGroupFamily. To customize the newly created CacheParameterGroup you can change the values of specific parameters. For more information, see:

Request Parameters

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


The name of the cache parameter group family that the cache parameter group can be used with.

Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | redis2.6 | redis2.8 | redis3.2 | redis4.0 | redis5.0 | redis6.x | redis7

Type: String

Required: Yes


A user-specified name for the cache parameter group.

Type: String

Required: Yes


A user-specified description for the cache parameter group.

Type: String

Required: Yes


A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

Type: Array of Tag objects

Required: No

Response Elements

The following element is returned by the service.


Represents the output of a CreateCacheParameterGroup operation.

Type: CacheParameterGroup object


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


A cache parameter group with the requested name already exists.

HTTP Status Code: 400


The request cannot be processed because it would exceed the maximum number of cache security groups.

HTTP Status Code: 400


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

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


The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.

HTTP Status Code: 400



This example illustrates one usage of CreateCacheParameterGroup.

Sample Request ?Action=CreateCacheParameterGroup &CacheParameterGroupFamily=memcached1.4 &CacheParameterGroupName=mycacheparametergroup1 &Description=My%20custom%20Redis%20cache%20parameter%20group &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &Version=2015-02-02 &X-Amz-Credential=<credential>

Sample Response

<CreateCacheParameterGroupResponse xmlns=""> <CreateCacheParameterGroupResult> <CacheParameterGroup> <CacheParameterGroupName>mycacheparametergroup1</CacheParameterGroupName> <CacheParameterGroupFamily>memcached1.4</CacheParameterGroupFamily> <Description>My first cache parameter group</Description> </CacheParameterGroup> </CreateCacheParameterGroupResult> <ResponseMetadata> <RequestId>05699541-b7f9-11e0-9326-b7275b9d4a6c</RequestId> </ResponseMetadata> </CreateCacheParameterGroupResponse>

See Also

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