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.
Idawscc.rds.option_groups

Fields

NameDatatypeDescription
option_group_namestringThe name of the option group to be created.<br />Constraints:<br />+ Must be 1 to 255 letters, numbers, or hyphens<br />+ First character must be a letter<br />+ Can't end with a hyphen or contain two consecutive hyphens<br /><br />Example: &#96;&#96;myoptiongroup&#96;&#96;<br />If you don't specify a value for &#96;&#96;OptionGroupName&#96;&#96; property, a name is automatically created for the option group.<br />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.<br />Valid Values: <br />+ &#96;&#96;mariadb&#96;&#96; <br />+ &#96;&#96;mysql&#96;&#96; <br />+ &#96;&#96;oracle-ee&#96;&#96; <br />+ &#96;&#96;oracle-ee-cdb&#96;&#96; <br />+ &#96;&#96;oracle-se2&#96;&#96; <br />+ &#96;&#96;oracle-se2-cdb&#96;&#96; <br />+ &#96;&#96;postgres&#96;&#96; <br />+ &#96;&#96;sqlserver-ee&#96;&#96; <br />+ &#96;&#96;sqlserver-se&#96;&#96; <br />+ &#96;&#96;sqlserver-ex&#96;&#96; <br />+ &#96;&#96;sqlserver-web&#96;&#96;
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 properties from an individual option_group.

SELECT
region,
option_group_name,
option_group_description,
engine_name,
major_engine_version,
option_configurations,
tags
FROM awscc.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 awscc.rds.option_groups (
OptionGroupDescription,
EngineName,
MajorEngineVersion,
region
)
SELECT
'{{ OptionGroupDescription }}',
'{{ EngineName }}',
'{{ MajorEngineVersion }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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