Skip to main content

db_subnet_group

Gets an individual db_subnet_group resource

Overview

Namedb_subnet_group
TypeResource
Descriptiondb_subnet_group
Idawscc.rds.db_subnet_group

Fields

NameDatatypeDescription
db_subnet_group_descriptionstringThe description for the DB subnet group.
db_subnet_group_namestringThe name for the DB subnet group. This value is stored as a lowercase string.<br/> Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must not be "Default".<br/> Example: ``mysubnetgroup``
subnet_idsarrayThe EC2 Subnet IDs for the DB subnet group.
tagsarrayAn optional array of key-value pairs to apply to this DB subnet group.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
db_subnet_group_description,
db_subnet_group_name,
subnet_ids,
tags
FROM awscc.rds.db_subnet_group
WHERE data__Identifier = '<DBSubnetGroupName>';

Permissions

To operate on the db_subnet_group resource, the following permissions are required:

Read

rds:DescribeDBSubnetGroups,
rds:ListTagsForResource

Update

rds:ModifyDBSubnetGroup,
rds:DescribeDBSubnetGroups,
rds:AddTagsToResource,
rds:RemoveTagsFromResource,
rds:ListTagsForResource

Delete

rds:DeleteDBSubnetGroup,
rds:DescribeDBSubnetGroups,
rds:ListTagsForResource