Skip to content

delete_db_security_group

Operation

delete_db_security_group

delete_db_security_group(request: DeleteDBSecurityGroupInput | DeleteDBSecurityGroupInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteDBSecurityGroupInputDict]) -> DeleteDBSecurityGroupOutput

Deletes a DB security group.

The specified DB security group must not be associated with any DB instances.

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
request DeleteDBSecurityGroupInput | DeleteDBSecurityGroupInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteDBSecurityGroupInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteDBSecurityGroupOutput

An instance of DeleteDBSecurityGroupOutput.

delete_db_security_group async

delete_db_security_group(request: DeleteDBSecurityGroupInput | DeleteDBSecurityGroupInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteDBSecurityGroupInputDict]) -> DeleteDBSecurityGroupOutput

Deletes a DB security group.

The specified DB security group must not be associated with any DB instances.

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
request DeleteDBSecurityGroupInput | DeleteDBSecurityGroupInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteDBSecurityGroupInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteDBSecurityGroupOutput

An instance of DeleteDBSecurityGroupOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteDBSecurityGroupInputDict

Bases: TypedDict

Dictionary form of DeleteDBSecurityGroupInput.

Attributes

db_security_group_name instance-attribute
db_security_group_name: Required[str]

The name of the DB security group to delete.

Note

You can't delete the default DB security group.

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"

DeleteDBSecurityGroupInput dataclass

Bases: _SerdeShape

Attributes

db_security_group_name class-attribute instance-attribute
db_security_group_name: str | None = ...

The name of the DB security group to delete.

Note

You can't delete the default DB security group.

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"

Output

DeleteDBSecurityGroupOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteDBSecurityGroupOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

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.