Skip to main content

cache_parameters

Creates, updates, deletes, gets or lists a cache_parameters resource.

Overview

Namecache_parameters
TypeResource
Idaws.elasticache.cache_parameters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
allowed_valuesstringThe valid range of values for the parameter.
change_typestringIndicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.
data_typestringThe valid data type for the parameter.
descriptionstringA description of the parameter.
is_modifiablebooleanIndicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
minimum_engine_versionstringThe earliest cache engine version to which the parameter can apply.
parameter_namestringThe name of the parameter.
parameter_valuestringThe value of the parameter.
sourcestringThe source of the parameter.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cache_parametersselectCacheParameterGroupName, regionSource, MaxRecords, MarkerReturns the detailed parameter list for a particular cache parameter group.
reset_cache_parameter_groupexecCacheParameterGroupName, regionResetAllParameters, ParameterNameValuesModifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
CacheParameterGroupNamestringThe name of the cache parameter group to reset.
regionstringAWS region (default: us-east-1)
MarkerstringAn optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: minimum 20; maximum 100.
ParameterNameValuesarrayAn array of parameter names to reset to their default values. If ResetAllParameters is true, do not use ParameterNameValues. If ResetAllParameters is false, you must specify the name of at least one parameter to reset.
ResetAllParametersbooleanIf true, all parameters in the cache parameter group are reset to their default values. If false, only the parameters listed by ParameterNameValues are reset to their default values. Valid values: true | false
SourcestringThe parameter types to return. Valid values: user | system | engine-default

SELECT examples

Returns the detailed parameter list for a particular cache parameter group.

SELECT
allowed_values,
change_type,
data_type,
description,
is_modifiable,
minimum_engine_version,
parameter_name,
parameter_value,
source
FROM aws.elasticache.cache_parameters
WHERE CacheParameterGroupName = '{{ CacheParameterGroupName }}' -- required
AND region = '{{ region }}' -- required
AND Source = '{{ Source }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

Lifecycle Methods

Modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.

EXEC aws.elasticache.cache_parameters.reset_cache_parameter_group
@CacheParameterGroupName='{{ CacheParameterGroupName }}' --required,
@region='{{ region }}' --required,
@ResetAllParameters={{ ResetAllParameters }},
@ParameterNameValues='{{ ParameterNameValues }}'
;