AWS SDK for .NET Documentation
DetachVolumeRequest Class
AmazonAmazon.EC2.ModelDetachVolumeRequest Did this page help you?   Yes   No    Tell us about it...
Detaches an Amazon EBS volume from an instance.
Declaration Syntax
C#
public class DetachVolumeRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DetachVolumeRequest()()()()
Initializes a new instance of the DetachVolumeRequest class

Device
The device name.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Force
Whether to force detachment.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstanceId
The ID of the instance.

IsSetDevice()()()()
Checks if Device property is set

IsSetForce()()()()
Checks if Force property is set

IsSetInstanceId()()()()
Checks if InstanceId property is set

IsSetVolumeId()()()()
Checks if VolumeId property is set

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
VolumeId
The ID of the volume.

WithDevice(String) Obsolete.
Sets the device name.

WithForce(Boolean) Obsolete.
Sets whether to force detachment.

WithInstanceId(String) Obsolete.
Sets the ID of the instance.

WithVolumeId(String) Obsolete.
Sets the ID of the volume.

Remarks
For more information about Amazon EBS, go to the Amazon Elastic Compute Cloud Developer Guide. Important - make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to unmount file systems, or otherwise properly release the device from use, can result in lost data and will corrupt the file system.
Inheritance Hierarchy
Object
EC2Request
 DetachVolumeRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)