1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::delete_vpc::_delete_vpc_output::DeleteVpcOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::delete_vpc::_delete_vpc_input::DeleteVpcInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::delete_vpc::_delete_vpc_output::DeleteVpcOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::delete_vpc::builders::DeleteVpcInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::delete_vpc::DeleteVpcOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::delete_vpc::DeleteVpcError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.delete_vpc();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `DeleteVpc`.
|
24 24 | ///
|
25 25 | /// <p>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.</p>
|
26 26 | /// <p>If you created a flow log for the VPC that you are deleting, note that flow logs for deleted VPCs are eventually automatically removed.</p>
|
27 27 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
28 28 | pub struct DeleteVpcFluentBuilder {
|
29 29 | handle: ::std::sync::Arc<crate::client::Handle>,
|
30 30 | inner: crate::operation::delete_vpc::builders::DeleteVpcInputBuilder,
|
31 31 | config_override: ::std::option::Option<crate::config::Builder>,
|
32 32 | }
|
33 33 | impl crate::client::customize::internal::CustomizableSend<crate::operation::delete_vpc::DeleteVpcOutput, crate::operation::delete_vpc::DeleteVpcError>
|
34 34 | for DeleteVpcFluentBuilder
|
35 35 | {
|