Attaches an Amazon EBS volume to a running
instance and exposes it as the
specified device.
Windows instances currently support devices xvda through xvdp. Devices
xvda and xvdb are reserved by the operating system, xvdc is
assigned to drive C:\, and, depending on the instance type, devices xvdd through
xvde might be reserved by the instance stores. Any device that is not
reserved can be attached to an Amazon EBS volume. For a list of
devices that are reserved by the instance stores, go to the Amazon
Elastic Compute Cloud Developer Guide.
Namespace: Amazon.EC2.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class AttachVolumeRequest
Public Class AttachVolumeRequest
public ref class AttachVolumeRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| AttachVolumeRequest()()()() | Initializes a new instance of the AttachVolumeRequest class | |
| Device |
Gets and sets the Device property.
Specifies how the device is exposed to the
instance (e.g., /dev/sdh).
| |
| Equals(Object) | (Inherited from Object.) | |
| 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 |
Gets and sets the InstanceId property.
The ID of the instance to which the volume
attaches. The volume and
instance must be within the same
Availability Zone and the instance
must be running.
| |
| IsSetDevice()()()() |
Checks if Device property is set
| |
| IsSetInstanceId()()()() |
Checks if InstanceId property is set
| |
| IsSetVolumeId()()()() |
Checks if VolumeId property is set
| |
| ToString()()()() | (Inherited from Object.) | |
| VolumeId |
Gets and sets the VolumeId property.
The ID of the Amazon EBS volume. The volume
and instance must be within
the same Availability Zone and the
instance must be running.
| |
| WithDevice(String) |
Sets the Device property
| |
| WithInstanceId(String) |
Sets the InstanceId property
| |
| WithVolumeId(String) |
Sets the VolumeId property
|