Creates a new Amazon EBS volume to which any Amazon EC2 instance can attach within the same Availability Zone. For more information about Amazon EBS, go to the Amazon Elastic Compute Cloud Developer Guide. You must specify an Availability Zone when creating a volume. The volume and the instance to which it attaches must be in the same Availability Zone.

Namespace: Amazon.EC2.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class CreateVolumeRequest
Public Class CreateVolumeRequest
public ref class CreateVolumeRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
CreateVolumeRequest()()()()
Initializes a new instance of the CreateVolumeRequest class
AvailabilityZone
Gets and sets the AvailabilityZone property. The Availability Zone in which to create the new volume.
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.)
IsSetAvailabilityZone()()()()
Checks if AvailabilityZone property is set
IsSetSize()()()()
Checks if Size property is set
IsSetSnapshotId()()()()
Checks if SnapshotId property is set
Size
Gets and sets the Size property. The size of the volume, in GiBs. Required if you are not creating a volume from a snapshot. Valid Values: 1-1024
SnapshotId
Gets and sets the SnapshotId property. The snapshot from which to create the new volume.
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WithAvailabilityZone(String)
Sets the AvailabilityZone property
WithSize(String)
Sets the Size property
WithSnapshotId(String)
Sets the SnapshotId property

Inheritance Hierarchy

System..::..Object
  Amazon.EC2.Model..::..CreateVolumeRequest

See Also