pub struct AttachDiskFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AttachDisk
.
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.
The attach disk
operation supports tag-based access control via resource tags applied to the resource identified by disk name
. For more information, see the Amazon Lightsail Developer Guide.
Implementations§
source§impl AttachDiskFluentBuilder
impl AttachDiskFluentBuilder
sourcepub fn as_input(&self) -> &AttachDiskInputBuilder
pub fn as_input(&self) -> &AttachDiskInputBuilder
Access the AttachDisk as a reference.
sourcepub async fn send(
self
) -> Result<AttachDiskOutput, SdkError<AttachDiskError, HttpResponse>>
pub async fn send( self ) -> Result<AttachDiskOutput, SdkError<AttachDiskError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<AttachDiskOutput, AttachDiskError, Self>
pub fn customize( self ) -> CustomizableOperation<AttachDiskOutput, AttachDiskError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn disk_name(self, input: impl Into<String>) -> Self
pub fn disk_name(self, input: impl Into<String>) -> Self
The unique Lightsail disk name (my-disk
).
sourcepub fn set_disk_name(self, input: Option<String>) -> Self
pub fn set_disk_name(self, input: Option<String>) -> Self
The unique Lightsail disk name (my-disk
).
sourcepub fn get_disk_name(&self) -> &Option<String>
pub fn get_disk_name(&self) -> &Option<String>
The unique Lightsail disk name (my-disk
).
sourcepub fn instance_name(self, input: impl Into<String>) -> Self
pub fn instance_name(self, input: impl Into<String>) -> Self
The name of the Lightsail instance where you want to utilize the storage disk.
sourcepub fn set_instance_name(self, input: Option<String>) -> Self
pub fn set_instance_name(self, input: Option<String>) -> Self
The name of the Lightsail instance where you want to utilize the storage disk.
sourcepub fn get_instance_name(&self) -> &Option<String>
pub fn get_instance_name(&self) -> &Option<String>
The name of the Lightsail instance where you want to utilize the storage disk.
sourcepub fn disk_path(self, input: impl Into<String>) -> Self
pub fn disk_path(self, input: impl Into<String>) -> Self
The disk path to expose to the instance (/dev/xvdf
).
sourcepub fn set_disk_path(self, input: Option<String>) -> Self
pub fn set_disk_path(self, input: Option<String>) -> Self
The disk path to expose to the instance (/dev/xvdf
).
sourcepub fn get_disk_path(&self) -> &Option<String>
pub fn get_disk_path(&self) -> &Option<String>
The disk path to expose to the instance (/dev/xvdf
).
sourcepub fn auto_mounting(self, input: bool) -> Self
pub fn auto_mounting(self, input: bool) -> Self
A Boolean value used to determine the automatic mounting of a storage volume to a virtual computer. The default value is False
.
This value only applies to Lightsail for Research resources.
sourcepub fn set_auto_mounting(self, input: Option<bool>) -> Self
pub fn set_auto_mounting(self, input: Option<bool>) -> Self
A Boolean value used to determine the automatic mounting of a storage volume to a virtual computer. The default value is False
.
This value only applies to Lightsail for Research resources.
sourcepub fn get_auto_mounting(&self) -> &Option<bool>
pub fn get_auto_mounting(&self) -> &Option<bool>
A Boolean value used to determine the automatic mounting of a storage volume to a virtual computer. The default value is False
.
This value only applies to Lightsail for Research resources.
Trait Implementations§
source§impl Clone for AttachDiskFluentBuilder
impl Clone for AttachDiskFluentBuilder
source§fn clone(&self) -> AttachDiskFluentBuilder
fn clone(&self) -> AttachDiskFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AttachDiskFluentBuilder
impl !RefUnwindSafe for AttachDiskFluentBuilder
impl Send for AttachDiskFluentBuilder
impl Sync for AttachDiskFluentBuilder
impl Unpin for AttachDiskFluentBuilder
impl !UnwindSafe for AttachDiskFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more