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>
impl<S: State> VolumeAttachmentArgsBuilder<S>
sourcepub fn build_struct(self) -> VolumeAttachmentArgswhere
S: IsComplete,
pub fn build_struct(self) -> VolumeAttachmentArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn device_name(
self,
value: impl Into<Output<String>>,
) -> VolumeAttachmentArgsBuilder<SetDeviceName<S>>where
S::DeviceName: IsUnset,
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.
sourcepub fn force_detach(
self,
value: impl Into<Output<Option<bool>>>,
) -> VolumeAttachmentArgsBuilder<SetForceDetach<S>>where
S::ForceDetach: IsUnset,
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.
sourcepub fn maybe_force_detach(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> VolumeAttachmentArgsBuilder<SetForceDetach<S>>where
S::ForceDetach: IsUnset,
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.
sourcepub fn instance_id(
self,
value: impl Into<Output<String>>,
) -> VolumeAttachmentArgsBuilder<SetInstanceId<S>>where
S::InstanceId: IsUnset,
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
sourcepub fn skip_destroy(
self,
value: impl Into<Output<Option<bool>>>,
) -> VolumeAttachmentArgsBuilder<SetSkipDestroy<S>>where
S::SkipDestroy: IsUnset,
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.
sourcepub fn maybe_skip_destroy(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> VolumeAttachmentArgsBuilder<SetSkipDestroy<S>>where
S::SkipDestroy: IsUnset,
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.