create_db_security_group¶
Operation¶
create_db_security_group
async
¶
create_db_security_group(input: CreateDBSecurityGroupInput, plugins: list[Plugin] | None = None) -> CreateDBSecurityGroupOutput
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.
Note
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateDBSecurityGroupInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
CreateDBSecurityGroupOutput
|
An instance of |
Input¶
CreateDBSecurityGroupInput
dataclass
¶
Bases: _SerdeShape
Attributes¶
db_security_group_description
class-attribute
instance-attribute
¶
db_security_group_description: str | None = ...
The description for the DB security group.
db_security_group_name
class-attribute
instance-attribute
¶
db_security_group_name: str | None = ...
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
Output¶
CreateDBSecurityGroupOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateDBSecurityGroupOutput structure.
Attributes¶
db_security_group
class-attribute
instance-attribute
¶
Contains the details for an Amazon RDS DB security group.
This data type is used as a response element in the
DescribeDBSecurityGroups action.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.