delete_vpc¶
Operation¶
delete_vpc
¶
delete_vpc(request: DeleteVpcInput | DeleteVpcInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteVpcInputDict]) -> DeleteVpcOutput
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. When you delete the VPC, it deletes the default security group, network ACL, and route table for the VPC.
If you created a flow log for the VPC that you are deleting, note that flow logs for deleted VPCs are eventually automatically removed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
DeleteVpcInput | DeleteVpcInputDict | 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[DeleteVpcInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
DeleteVpcOutput
|
An instance of |
delete_vpc
async
¶
delete_vpc(request: DeleteVpcInput | DeleteVpcInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteVpcInputDict]) -> DeleteVpcOutput
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. When you delete the VPC, it deletes the default security group, network ACL, and route table for the VPC.
If you created a flow log for the VPC that you are deleting, note that flow logs for deleted VPCs are eventually automatically removed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
DeleteVpcInput | DeleteVpcInputDict | 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[DeleteVpcInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
DeleteVpcOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
DeleteVpcInputDict
¶
Bases: TypedDict
Dictionary form of DeleteVpcInput.
Attributes¶
dry_run
instance-attribute
¶
dry_run: bool | None
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation.
Otherwise, it is UnauthorizedOperation.
DeleteVpcInput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteVpcInput structure.
Attributes¶
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation.
Otherwise, it is UnauthorizedOperation.
Output¶
DeleteVpcOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteVpcOutput structure.