aws_sdk_lightsail/client/attach_disk.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`AttachDisk`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`disk_name(impl Into<String>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::disk_name) / [`set_disk_name(Option<String>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::set_disk_name):<br>required: **true**<br><p>The unique Lightsail disk name (<code>my-disk</code>).</p><br>
7 /// - [`instance_name(impl Into<String>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::instance_name) / [`set_instance_name(Option<String>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::set_instance_name):<br>required: **true**<br><p>The name of the Lightsail instance where you want to utilize the storage disk.</p><br>
8 /// - [`disk_path(impl Into<String>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::disk_path) / [`set_disk_path(Option<String>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::set_disk_path):<br>required: **true**<br><p>The disk path to expose to the instance (<code>/dev/xvdf</code>).</p><br>
9 /// - [`auto_mounting(bool)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::auto_mounting) / [`set_auto_mounting(Option<bool>)`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder::set_auto_mounting):<br>required: **false**<br><p>A Boolean value used to determine the automatic mounting of a storage volume to a virtual computer. The default value is <code>False</code>.</p><important> <p>This value only applies to Lightsail for Research resources.</p> </important><br>
10 /// - On success, responds with [`AttachDiskOutput`](crate::operation::attach_disk::AttachDiskOutput) with field(s):
11 /// - [`operations(Option<Vec::<Operation>>)`](crate::operation::attach_disk::AttachDiskOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
12 /// - On failure, responds with [`SdkError<AttachDiskError>`](crate::operation::attach_disk::AttachDiskError)
13 pub fn attach_disk(&self) -> crate::operation::attach_disk::builders::AttachDiskFluentBuilder {
14 crate::operation::attach_disk::builders::AttachDiskFluentBuilder::new(self.handle.clone())
15 }
16}