Skip to content

delete_db_subnet_group

Operation

delete_db_subnet_group

delete_db_subnet_group(request: DeleteDBSubnetGroupInput | DeleteDBSubnetGroupInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteDBSubnetGroupInputDict]) -> DeleteDBSubnetGroupOutput

Deletes a DB subnet group.

Note

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

Parameters:

Name Type Description Default
request DeleteDBSubnetGroupInput | DeleteDBSubnetGroupInputDict | 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[DeleteDBSubnetGroupInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteDBSubnetGroupOutput

An instance of DeleteDBSubnetGroupOutput.

delete_db_subnet_group async

delete_db_subnet_group(request: DeleteDBSubnetGroupInput | DeleteDBSubnetGroupInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteDBSubnetGroupInputDict]) -> DeleteDBSubnetGroupOutput

Deletes a DB subnet group.

Note

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

Parameters:

Name Type Description Default
request DeleteDBSubnetGroupInput | DeleteDBSubnetGroupInputDict | 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[DeleteDBSubnetGroupInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteDBSubnetGroupOutput

An instance of DeleteDBSubnetGroupOutput.

Input

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

DeleteDBSubnetGroupInputDict

Bases: TypedDict

Dictionary form of DeleteDBSubnetGroupInput.

Attributes

db_subnet_group_name instance-attribute
db_subnet_group_name: Required[str]

The name of the database subnet group to delete.

Note

You can't delete the default subnet group.

Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mydbsubnetgroup

DeleteDBSubnetGroupInput dataclass

Bases: _SerdeShape

Attributes

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

The name of the database subnet group to delete.

Note

You can't delete the default subnet group.

Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mydbsubnetgroup

Output

DeleteDBSubnetGroupOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteDBSubnetGroupOutput 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.