aws-sdk-lightsail 1.107.0

AWS SDK for Amazon Lightsail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AttachDisk`](crate::operation::attach_disk::builders::AttachDiskFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`AttachDiskOutput`](crate::operation::attach_disk::AttachDiskOutput) with field(s):
    ///   - [`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>
    /// - On failure, responds with [`SdkError<AttachDiskError>`](crate::operation::attach_disk::AttachDiskError)
    pub fn attach_disk(&self) -> crate::operation::attach_disk::builders::AttachDiskFluentBuilder {
        crate::operation::attach_disk::builders::AttachDiskFluentBuilder::new(self.handle.clone())
    }
}