// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AttachVolume`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`device(impl Into<String>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::device) / [`set_device(Option<String>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::set_device): <p>The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>
/// - [`instance_id(impl Into<String>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::set_instance_id): <p>The ID of the instance.</p>
/// - [`volume_id(impl Into<String>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::volume_id) / [`set_volume_id(Option<String>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::set_volume_id): <p>The ID of the EBS volume. The volume and instance must be within the same Availability Zone.</p>
/// - [`dry_run(bool)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::set_dry_run): <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
/// - On success, responds with [`AttachVolumeOutput`](crate::operation::attach_volume::AttachVolumeOutput) with field(s):
/// - [`attach_time(Option<DateTime>)`](crate::operation::attach_volume::AttachVolumeOutput::attach_time): <p>The time stamp when the attachment initiated.</p>
/// - [`device(Option<String>)`](crate::operation::attach_volume::AttachVolumeOutput::device): <p>The device name.</p>
/// - [`instance_id(Option<String>)`](crate::operation::attach_volume::AttachVolumeOutput::instance_id): <p>The ID of the instance.</p>
/// - [`state(Option<VolumeAttachmentState>)`](crate::operation::attach_volume::AttachVolumeOutput::state): <p>The attachment state of the volume.</p>
/// - [`volume_id(Option<String>)`](crate::operation::attach_volume::AttachVolumeOutput::volume_id): <p>The ID of the volume.</p>
/// - [`delete_on_termination(Option<bool>)`](crate::operation::attach_volume::AttachVolumeOutput::delete_on_termination): <p>Indicates whether the EBS volume is deleted on instance termination.</p>
/// - On failure, responds with [`SdkError<AttachVolumeError>`](crate::operation::attach_volume::AttachVolumeError)
pub fn attach_volume(
&self,
) -> crate::operation::attach_volume::builders::AttachVolumeFluentBuilder {
crate::operation::attach_volume::builders::AttachVolumeFluentBuilder::new(
self.handle.clone(),
)
}
}