Skip to content

Creates a new Amazon ElastiCache cache parameter group

Description

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:

Usage

elasticache_create_cache_parameter_group(CacheParameterGroupName,
  CacheParameterGroupFamily, Description, Tags)

Arguments

  • CacheParameterGroupName

    [required] A user-specified name for the cache parameter group. This value is stored as a lowercase string.

  • CacheParameterGroupFamily

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

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

  • Description

    [required] A user-specified description for the cache parameter group.

  • Tags

    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.

Value

A list with the following syntax:

list(
  CacheParameterGroup = list(
    CacheParameterGroupName = "string",
    CacheParameterGroupFamily = "string",
    Description = "string",
    IsGlobal = TRUE|FALSE,
    ARN = "string"
  )
)

Request syntax

svc$create_cache_parameter_group(
  CacheParameterGroupName = "string",
  CacheParameterGroupFamily = "string",
  Description = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

# Creates the Amazon ElastiCache parameter group custom-redis2-8.
svc$create_cache_parameter_group(
  CacheParameterGroupFamily = "redis2.8",
  CacheParameterGroupName = "custom-redis2-8",
  Description = "Custom Redis 2.8 parameter group."
)