option_groups
Creates, updates, deletes or gets an option_group
resource or lists option_groups
in a region
Overview
Name | option_groups |
Type | Resource |
Description | The AWS::RDS::OptionGroup resource creates an option group, to enable and configure features that are specific to a particular DB engine. |
Id | aws.rds.option_groups |
Fields
Name | Datatype | Description |
---|---|---|
option_group_name | string | Specifies the name of the option group. |
option_group_description | string | Provides a description of the option group. |
engine_name | string | Indicates the name of the engine that this option group can be applied to. |
major_engine_version | string | Indicates the major engine version associated with this option group. |
option_configurations | array | Indicates what options are available in the option group. |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | EngineName, MajorEngineVersion, OptionGroupDescription, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all option_groups
in a region.
SELECT
region,
option_group_name,
option_group_description,
engine_name,
major_engine_version,
option_configurations,
tags
FROM aws.rds.option_groups
WHERE region = 'us-east-1';
Gets all properties from an individual option_group
.
SELECT
region,
option_group_name,
option_group_description,
engine_name,
major_engine_version,
option_configurations,
tags
FROM aws.rds.option_groups
WHERE region = 'us-east-1' AND data__Identifier = '<OptionGroupName>';
INSERT
example
Use the following StackQL query and manifest file to create a new option_group
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.rds.option_groups (
OptionGroupDescription,
EngineName,
MajorEngineVersion,
region
)
SELECT
'{{ OptionGroupDescription }}',
'{{ EngineName }}',
'{{ MajorEngineVersion }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.rds.option_groups (
OptionGroupName,
OptionGroupDescription,
EngineName,
MajorEngineVersion,
OptionConfigurations,
Tags,
region
)
SELECT
'{{ OptionGroupName }}',
'{{ OptionGroupDescription }}',
'{{ EngineName }}',
'{{ MajorEngineVersion }}',
'{{ OptionConfigurations }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: option_group
props:
- name: OptionGroupName
value: '{{ OptionGroupName }}'
- name: OptionGroupDescription
value: '{{ OptionGroupDescription }}'
- name: EngineName
value: '{{ EngineName }}'
- name: MajorEngineVersion
value: '{{ MajorEngineVersion }}'
- name: OptionConfigurations
value:
- DBSecurityGroupMemberships:
- '{{ DBSecurityGroupMemberships[0] }}'
OptionName: '{{ OptionName }}'
OptionSettings:
- Name: '{{ Name }}'
Value: '{{ Value }}'
OptionVersion: '{{ OptionVersion }}'
Port: '{{ Port }}'
VpcSecurityGroupMemberships:
- '{{ VpcSecurityGroupMemberships[0] }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.rds.option_groups
WHERE data__Identifier = '<OptionGroupName>'
AND region = 'us-east-1';
Permissions
To operate on the option_groups
resource, the following permissions are required:
Create
iam:CreateServiceLinkedRole,
rds:AddTagsToResource,
rds:CreateOptionGroup,
rds:DescribeOptionGroups,
rds:ListTagsForResource,
rds:ModifyOptionGroup,
rds:RemoveTagsFromResource
Read
rds:DescribeOptionGroups,
rds:ListTagsForResource
Update
rds:AddTagsToResource,
rds:DescribeOptionGroups,
rds:ListTagsForResource,
rds:ModifyOptionGroup,
rds:RemoveTagsFromResource
Delete
rds:DeleteOptionGroup,
rds:DescribeOptionGroups,
rds:ListTagsForResource,
rds:RemoveTagsFromResource
List
rds:DescribeOptionGroups