pulumi_wasm_providers_aws_mini::ec2::volume_attachment

Struct VolumeAttachmentArgsBuilder

source
pub struct VolumeAttachmentArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> VolumeAttachmentArgsBuilder<S>

source

pub fn build_struct(self) -> VolumeAttachmentArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn device_name( self, value: impl Into<Output<String>>, ) -> VolumeAttachmentArgsBuilder<SetDeviceName<S>>
where S::DeviceName: IsUnset,

Required.

The device name to expose to the instance (for example, /dev/sdh or xvdh). See Device Naming on Linux Instances and Device Naming on Windows Instances for more information.

source

pub fn force_detach( self, value: impl Into<Output<Option<bool>>>, ) -> VolumeAttachmentArgsBuilder<SetForceDetach<S>>
where S::ForceDetach: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Set to true if you want to force the volume to detach. Useful if previous attempts failed, but use this option only as a last resort, as this can result in data loss. See Detaching an Amazon EBS Volume from an Instance for more information.

source

pub fn maybe_force_detach( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VolumeAttachmentArgsBuilder<SetForceDetach<S>>
where S::ForceDetach: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Set to true if you want to force the volume to detach. Useful if previous attempts failed, but use this option only as a last resort, as this can result in data loss. See Detaching an Amazon EBS Volume from an Instance for more information.

source

pub fn instance_id( self, value: impl Into<Output<String>>, ) -> VolumeAttachmentArgsBuilder<SetInstanceId<S>>
where S::InstanceId: IsUnset,

Required.

ID of the Instance to attach to

source

pub fn skip_destroy( self, value: impl Into<Output<Option<bool>>>, ) -> VolumeAttachmentArgsBuilder<SetSkipDestroy<S>>
where S::SkipDestroy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Set this to true if you do not wish to detach the volume from the instance to which it is attached at destroy time, and instead just remove the attachment from this provider state. This is useful when destroying an instance which has volumes created by some other means attached.

source

pub fn maybe_skip_destroy( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VolumeAttachmentArgsBuilder<SetSkipDestroy<S>>
where S::SkipDestroy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Set this to true if you do not wish to detach the volume from the instance to which it is attached at destroy time, and instead just remove the attachment from this provider state. This is useful when destroying an instance which has volumes created by some other means attached.

source

pub fn stop_instance_before_detaching( self, value: impl Into<Output<Option<bool>>>, ) -> VolumeAttachmentArgsBuilder<SetStopInstanceBeforeDetaching<S>>
where S::StopInstanceBeforeDetaching: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Set this to true to ensure that the target instance is stopped before trying to detach the volume. Stops the instance, if it is not already stopped.

source

pub fn maybe_stop_instance_before_detaching( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VolumeAttachmentArgsBuilder<SetStopInstanceBeforeDetaching<S>>
where S::StopInstanceBeforeDetaching: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Set this to true to ensure that the target instance is stopped before trying to detach the volume. Stops the instance, if it is not already stopped.

source

pub fn volume_id( self, value: impl Into<Output<String>>, ) -> VolumeAttachmentArgsBuilder<SetVolumeId<S>>
where S::VolumeId: IsUnset,

Required.

ID of the Volume to be attached

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.