1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DetachVolume`](crate::operation::detach_volume::builders::DetachVolumeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`volume_arn(impl ::std::convert::Into<String>)`](crate::operation::detach_volume::builders::DetachVolumeFluentBuilder::volume_arn) / [`set_volume_arn(Option<String>)`](crate::operation::detach_volume::builders::DetachVolumeFluentBuilder::set_volume_arn): <p>The Amazon Resource Name (ARN) of the volume to detach from the gateway.</p>
    ///   - [`force_detach(bool)`](crate::operation::detach_volume::builders::DetachVolumeFluentBuilder::force_detach) / [`set_force_detach(Option<bool>)`](crate::operation::detach_volume::builders::DetachVolumeFluentBuilder::set_force_detach): <p>Set to <code>true</code> to forcibly remove the iSCSI connection of the target volume and detach the volume. The default is <code>false</code>. If this value is set to <code>false</code>, you must manually disconnect the iSCSI connection from the target volume.</p>  <p>Valid Values: <code>true</code> | <code>false</code> </p>
    /// - On success, responds with [`DetachVolumeOutput`](crate::operation::detach_volume::DetachVolumeOutput) with field(s):
    ///   - [`volume_arn(Option<String>)`](crate::operation::detach_volume::DetachVolumeOutput::volume_arn): <p>The Amazon Resource Name (ARN) of the volume that was detached.</p>
    /// - On failure, responds with [`SdkError<DetachVolumeError>`](crate::operation::detach_volume::DetachVolumeError)
    pub fn detach_volume(
        &self,
    ) -> crate::operation::detach_volume::builders::DetachVolumeFluentBuilder {
        crate::operation::detach_volume::builders::DetachVolumeFluentBuilder::new(
            self.handle.clone(),
        )
    }
}