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 or updates an option group, to enable and configure features that are specific to a particular DB engine.
Idaws.rds.option_groups

Fields

NameDatatypeDescription
option_group_namestringThe name of the option group to be created.
Constraints:
+ Must be 1 to 255 letters, numbers, or hyphens
+ First character must be a letter
+ Can't end with a hyphen or contain two consecutive hyphens

Example: myoptiongroup
If you don't specify a value for OptionGroupName property, a name is automatically created for the option group.
This value is stored as a lowercase string.
option_group_descriptionstringThe description of the option group.
engine_namestringSpecifies the name of the engine that this option group should be associated with.
Valid Values:
+ mariadb
+ mysql
+ oracle-ee
+ oracle-ee-cdb
+ oracle-se2
+ oracle-se2-cdb
+ postgres
+ sqlserver-ee
+ sqlserver-se
+ sqlserver-ex
+ sqlserver-web
major_engine_versionstringSpecifies the major version of the engine that this option group should be associated with.
option_configurationsarrayA list of all available options for an option group.
tagsarrayTags to assign to the option group.
regionstringAWS region.

For more information, see AWS::RDS::OptionGroup.

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