parameter_groups
Creates, updates, deletes or gets a parameter_group resource or lists parameter_groups in a region
Overview
| Name | parameter_groups |
| Type | Resource |
| Description | The AWS::MemoryDB::ParameterGroup resource creates an Amazon MemoryDB ParameterGroup. |
| Id | awscc.memorydb.parameter_groups |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
parameter_group_name | string | The name of the parameter group. |
family | string | The name of the parameter group family that this parameter group is compatible with. |
description | string | A description of the parameter group. |
tags | array | An array of key-value pairs to apply to this parameter group. |
parameters | object | An map of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. |
arn | string | The Amazon Resource Name (ARN) of the parameter group. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
parameter_group_name | string | The name of the parameter group. |
region | string | AWS region. |
For more information, see AWS::MemoryDB::ParameterGroup.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | parameter_groups | INSERT | ParameterGroupName, Family, region |
delete_resource | parameter_groups | DELETE | Identifier, region |
update_resource | parameter_groups | UPDATE | Identifier, PatchDocument, region |
list_resources | parameter_groups_list_only | SELECT | region |
get_resource | parameter_groups | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual parameter_group.
SELECT
region,
parameter_group_name,
family,
description,
tags,
parameters,
arn
FROM awscc.memorydb.parameter_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ parameter_group_name }}';
Lists all parameter_groups in a region.
SELECT
region,
parameter_group_name
FROM awscc.memorydb.parameter_groups_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new parameter_group resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.memorydb.parameter_groups (
ParameterGroupName,
Family,
region
)
SELECT
'{{ parameter_group_name }}',
'{{ family }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.memorydb.parameter_groups (
ParameterGroupName,
Family,
Description,
Tags,
Parameters,
region
)
SELECT
'{{ parameter_group_name }}',
'{{ family }}',
'{{ description }}',
'{{ tags }}',
'{{ parameters }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: parameter_group
props:
- name: parameter_group_name
value: '{{ parameter_group_name }}'
- name: family
value: '{{ family }}'
- name: description
value: '{{ description }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: parameters
value: {}
UPDATE example
Use the following StackQL query and manifest file to update a parameter_group resource, using stack-deploy.
/*+ update */
UPDATE awscc.memorydb.parameter_groups
SET PatchDocument = string('{{ {
"Tags": tags,
"Parameters": parameters
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ parameter_group_name }}';
DELETE example
/*+ delete */
DELETE FROM awscc.memorydb.parameter_groups
WHERE
Identifier = '{{ parameter_group_name }}' AND
region = 'us-east-1';
Permissions
To operate on the parameter_groups resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
memorydb:CreateParameterGroup,
memorydb:DescribeParameterGroups,
memorydb:TagResource,
memorydb:ListTags,
iam:CreateServiceLinkedRole
memorydb:DescribeParameterGroups,
memorydb:ListTags
memorydb:UpdateParameterGroup,
memorydb:DescribeParameterGroups,
memorydb:DescribeParameters,
memorydb:DescribeClusters,
memorydb:ListTags,
memorydb:TagResource,
memorydb:UntagResource
memorydb:DeleteParameterGroup
memorydb:DescribeParameterGroups