db_parameter_groups
Creates, updates, deletes or gets a db_parameter_group resource or lists db_parameter_groups in a region
Overview
| Name | db_parameter_groups |
| Type | Resource |
| Description | AWS::Neptune::DBParameterGroup creates a new DB parameter group. This type can be declared in a template and referenced in the DBParameterGroupName parameter of AWS::Neptune::DBInstance |
| Id | awscc.neptune.db_parameter_groups |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
name | string | Provides the name of the DB parameter group. |
description | string | Provides the customer-specified description for this DB parameter group. |
family | string | Must be `neptune1` for engine versions prior to 1.2.0.0, or `neptune1.2` for engine version `1.2.0.0` and higher. |
parameters | object | The parameters to set for this DB parameter group.<br />The parameters are expressed as a JSON object consisting of key-value pairs.<br />Changes to dynamic parameters are applied immediately. During an update, if you have static parameters (whether they were changed or not), it triggers AWS CloudFormation to reboot the associated DB instance without failover. |
tags | array | An optional array of key-value pairs to apply to this DB parameter group. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
name | string | Provides the name of the DB parameter group. |
region | string | AWS region. |
For more information, see AWS::Neptune::DBParameterGroup.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | db_parameter_groups | INSERT | Family, Description, Parameters, region |
delete_resource | db_parameter_groups | DELETE | Identifier, region |
update_resource | db_parameter_groups | UPDATE | Identifier, PatchDocument, region |
list_resources | db_parameter_groups_list_only | SELECT | region |
get_resource | db_parameter_groups | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual db_parameter_group.
SELECT
region,
name,
description,
family,
parameters,
tags
FROM awscc.neptune.db_parameter_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';
Lists all db_parameter_groups in a region.
SELECT
region,
name
FROM awscc.neptune.db_parameter_groups_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new db_parameter_group resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.neptune.db_parameter_groups (
Description,
Family,
Parameters,
region
)
SELECT
'{{ description }}',
'{{ family }}',
'{{ parameters }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.neptune.db_parameter_groups (
Name,
Description,
Family,
Parameters,
Tags,
region
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ family }}',
'{{ parameters }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: db_parameter_group
props:
- name: name
value: '{{ name }}'
- name: description
value: '{{ description }}'
- name: family
value: '{{ family }}'
- name: parameters
value: {}
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a db_parameter_group resource, using stack-deploy.
/*+ update */
UPDATE awscc.neptune.db_parameter_groups
SET PatchDocument = string('{{ {
"Parameters": parameters,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';
DELETE example
/*+ delete */
DELETE FROM awscc.neptune.db_parameter_groups
WHERE
Identifier = '{{ name }}' AND
region = 'us-east-1';
Permissions
To operate on the db_parameter_groups resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
rds:AddTagsToResource,
rds:CreateDBParameterGroup,
rds:DescribeDBParameterGroups,
rds:DescribeDBParameters,
rds:DescribeEngineDefaultParameters,
rds:ModifyDBParameterGroup,
rds:ListTagsForResource,
iam:CreateServiceLinkedRole
rds:DescribeDBParameterGroups,
rds:ListTagsForResource,
rds:DescribeDBParameters,
rds:DescribeEngineDefaultParameters
rds:AddTagsToResource,
rds:DescribeDBParameterGroups,
rds:DescribeDBParameters,
rds:DescribeEngineDefaultParameters,
rds:ListTagsForResource,
rds:ModifyDBParameterGroup,
rds:ResetDBParameterGroup,
rds:RemoveTagsFromResource,
rds:DescribeDBInstances
rds:DeleteDBParameterGroup,
rds:RemoveTagsFromResource
rds:DescribeDBParameterGroups,
rds:ListTagsForResource