Skip to main content

option_groups

Creates, updates, deletes or gets an option_group resource or lists option_groups in a region

Overview

Nameoption_groups
TypeResource
DescriptionThe AWS::RDS::OptionGroup resource creates an option group, to enable and configure features that are specific to a particular DB engine.
Idaws.rds.option_groups

Fields

NameDatatypeDescription
option_group_namestringSpecifies the name of the option group.
option_group_descriptionstringProvides a description of the option group.
engine_namestringIndicates the name of the engine that this option group can be applied to.
major_engine_versionstringIndicates the major engine version associated with this option group.
option_configurationsarrayIndicates what options are available in the option group.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTEngineName, MajorEngineVersion, OptionGroupDescription, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.rds.option_groups (
OptionGroupDescription,
EngineName,
MajorEngineVersion,
region
)
SELECT
'{{ OptionGroupDescription }}',
'{{ EngineName }}',
'{{ MajorEngineVersion }}',
'{{ region }}';

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