AWS SDK for .NET Documentation
AttachVolumeRequest Class
AmazonAmazon.EC2.ModelAttachVolumeRequest Did this page help you?   Yes   No    Tell us about it...
Attaches an Amazon EBS volume to a running instance and exposes it with the specified device name.
Declaration Syntax
C#
public class AttachVolumeRequest
Members
All MembersConstructorsMethodsProperties



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

Device
The device name as exposed to the instance (e.g., /dev/sdh, or xvdh).

Equals(Object)
Determines whether the specified Object is equal to the current 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
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()()()()
Returns a string that represents the current object.
(Inherited from Object.)
VolumeId
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 name as exposed to the instance (e.g., /dev/sdh, or xvdh).

WithInstanceId(String)
Sets the ID of the instance to which the volume attaches.

WithVolumeId(String)
Sets the ID of the Amazon EBS volume.

Remarks
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.
Inheritance Hierarchy
Object
AttachVolumeRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.20.0 (1.5.20.0)