AWS::RDS::DBSecurityGroupThe `AWS::RDS::DBSecurityGroup` resource creates or updates an Amazon RDS DB security group. > EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see [Migrate from EC2-Classic to a VPC](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the *Amazon EC2 User Guide* , the blog [EC2-Classic Networking is Retiring – Here’s How to Prepare](https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/) , and [Moving a DB instance not in a VPC into a VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html) in the *Amazon RDS User Guide* .
import { CfnDBSecurityGroup } from 'aws-cdk-lib/aws-rds';Or use the module namespace:
import * as rds from 'aws-cdk-lib/aws-rds';
// rds.CfnDBSecurityGroupConfiguration passed to the constructor as CfnDBSecurityGroupProps.
dbSecurityGroupIngressRequiredIResolvable | IResolvable | IngressProperty[]Ingress rules to be applied to the DB security group.
groupDescriptionRequiredstringProvides the description of the DB security group.
ec2VpcIdOptionalstringThe identifier of an Amazon virtual private cloud (VPC). This property indicates the VPC that this DB security group belongs to. > This property is included for backwards compatibility and is no longer recommended for providing security information to an RDS DB instance.
tagsOptionalCfnTag[]Metadata assigned to an Amazon RDS resource consisting of a key-value pair. For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide* .
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon RDS on one page. HD quality, print-friendly.
Download Free Infographicaws-rdsAWS::RDS::DBSecurityGroup