Skip to main content

parameter_groups

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

Overview

Nameparameter_groups
TypeResource
Idaws.memorydb.parameter_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the parameter group
descriptionstringA description of the parameter group
familystringThe name of the parameter group family that this parameter group is compatible with.
namestringThe name of the parameter group

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_parameter_groupsselectregionReturns a list of parameter group descriptions. If a parameter group name is specified, the list contains only the descriptions for that group.
create_parameter_groupinsertregion, ParameterGroupNameCreates a new MemoryDB parameter group. A parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster. For more information, see Configuring engine parameters using parameter groups.
update_parameter_groupupdateregion, ParameterGroupName, ParameterNameValuesUpdates the parameters of a parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.
delete_parameter_groupdeleteregionDeletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of parameter group descriptions. If a parameter group name is specified, the list contains only the descriptions for that group.

SELECT
arn,
description,
family,
name
FROM aws.memorydb.parameter_groups
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new MemoryDB parameter group. A parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster. For more information, see Configuring engine parameters using parameter groups.

INSERT INTO aws.memorydb.parameter_groups (
ParameterGroupName,
Family,
Description,
Tags,
region
)
SELECT
'{{ ParameterGroupName }}' /* required */,
'{{ Family }}',
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
parameter_group
;

UPDATE examples

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

UPDATE aws.memorydb.parameter_groups
SET
ParameterGroupName = '{{ ParameterGroupName }}',
ParameterNameValues = '{{ ParameterNameValues }}'
WHERE
region = '{{ region }}' --required
AND ParameterGroupName = '{{ ParameterGroupName }}' --required
AND ParameterNameValues = '{{ ParameterNameValues }}' --required
RETURNING
parameter_group;

DELETE examples

Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account.

DELETE FROM aws.memorydb.parameter_groups
WHERE region = '{{ region }}' --required
;