Container for the parameters to the DetachVolume operation.
Detach a previously attached volume from a running instance.
Inheritance Hierarchy
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class DetachVolumeRequest : AmazonWebServiceRequest IRequestEvents
The DetachVolumeRequest type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
DetachVolumeRequest() |
Properties
Name | Description | |
---|---|---|
![]() |
Device | The device name to which the volume is attached on the specified instance. |
![]() |
Force | Forces detachment if the previous detachment attempt did not occur cleanly (logging into an instance, unmounting the volume, and detaching normally). This option can lead to data loss or a corrupted file system. Use this option only as a last resort to detach a volume from a failed instance. The instance will not have an opportunity to flush file system caches nor file system meta data. If you use this option, you must perform file system check and repair procedures. |
![]() |
InstanceId | The ID of the instance from which to detach the the specified volume. |
![]() |
VolumeId | The ID of the volume to detach. |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8