Create Db Security Group
rds_create_db_security_group | R Documentation |
Creates a new DB security group¶
Description¶
Creates a new DB security group. DB security groups control access to a DB instance.
A DB security group controls access to EC2-Classic DB instances that are not in a VPC.
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 in the Amazon EC2 User Guide, the blog EC2-Classic Networking is Retiring – Here’s How to Prepare, and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide.
Usage¶
Arguments¶
DBSecurityGroupName
[required] The name for the DB security group. This value is stored as a lowercase string.
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
Must not be "Default"
Example:
mysecuritygroup
DBSecurityGroupDescription
[required] The description for the DB security group.
Tags
Tags to assign to the DB security group.
Value¶
A list with the following syntax:
list(
DBSecurityGroup = list(
OwnerId = "string",
DBSecurityGroupName = "string",
DBSecurityGroupDescription = "string",
VpcId = "string",
EC2SecurityGroups = list(
list(
Status = "string",
EC2SecurityGroupName = "string",
EC2SecurityGroupId = "string",
EC2SecurityGroupOwnerId = "string"
)
),
IPRanges = list(
list(
Status = "string",
CIDRIP = "string"
)
),
DBSecurityGroupArn = "string"
)
)