Class for creating a RDS DB subnet group.
import { SubnetGroup } from 'aws-cdk-lib/aws-rds';Or use the module namespace:
import * as rds from 'aws-cdk-lib/aws-rds';
// rds.SubnetGroupConfiguration passed to the constructor as SubnetGroupProps.
descriptionRequiredstringDescription of the subnet group.
vpcRequiredIVpcThe VPC to place the subnet group in.
removalPolicyOptionalRemovalPolicyThe removal policy to apply when the subnet group are removed from the stack or replaced during an update.
Default: RemovalPolicy.DESTROY
subnetGroupNameOptionalstringThe name of the subnet group.
Default: - a name is generated
vpcSubnetsOptionalSubnetSelectionWhich subnets within the VPC to associate with this group.
Default: - private subnets
Everything you need to know about Amazon RDS on one page. HD quality, print-friendly.
Download Free Infographicaws-rds