1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::detach_volume::_detach_volume_output::DetachVolumeOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::detach_volume::_detach_volume_input::DetachVolumeInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::detach_volume::_detach_volume_output::DetachVolumeOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::detach_volume::builders::DetachVolumeInputBuilder {
|
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::detach_volume::DetachVolumeOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::detach_volume::DetachVolumeError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.detach_volume();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `DetachVolume`.
|
24 24 | ///
|
25 25 | /// <p>Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the <code>busy</code> state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can't be detached while the instance is running. To detach the root volume, stop the instance first.</p>
|
26 26 | /// <p>When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the product code is no longer associated with the instance.</p>
|
27 27 | /// <p>You can't detach or force detach volumes that are attached to Amazon Web Services-managed resources. Attempting to do this results in the <code>UnsupportedOperationException</code> exception.</p>
|
28 28 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-detaching-volume.html">Detach an Amazon EBS volume</a> in the <i>Amazon EBS User Guide</i>.</p>
|
29 29 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
30 30 | pub struct DetachVolumeFluentBuilder {
|
31 31 | handle: ::std::sync::Arc<crate::client::Handle>,
|
32 32 | inner: crate::operation::detach_volume::builders::DetachVolumeInputBuilder,
|
33 33 | config_override: ::std::option::Option<crate::config::Builder>,
|
34 34 | }
|
35 35 | impl
|