AWS SDK for .NET Documentation
CreateVolumeRequest Class
AmazonAmazon.EC2.ModelCreateVolumeRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the CreateVolume operation.

Creates an Amazon EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the specified region.

You can create a new empty volume or restore a volume from an Amazon EBS snapshot. Any AWS Marketplace product codes from the snapshot are propagated to the volume.

You can create encrypted volumes with the Encrypted parameter. Encrypted volumes may only be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide .

For more information, see Creating or Restoring an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide .

Declaration Syntax
C#
public class CreateVolumeRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



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

AvailabilityZone
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.)
IOPS
The number of I/O operations per second (IOPS) that the volume supports. Range is 100 to 1000.

IsSetAvailabilityZone()()()()
Checks if AvailabilityZone property is set

IsSetIOPS()()()()
Checks if IOPS property is set

IsSetSize()()()()
Checks if Size property is set

IsSetSnapshotId()()()()
Checks if SnapshotId property is set

IsSetVolumeType()()()()
Checks if VolumeType property is set

Size
The size of the volume, in GiBs. Required if you are not creating a volume from a snapshot. Valid Values: 1-1024

SnapshotId
The snapshot from which to create the new volume.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
VolumeType
The volume type. Value may be either "io1" or "standard". If VolumeType != "io1", IOPS property cannot be set.

WithAvailabilityZone(String) Obsolete.
Sets the Availability Zone in which to create the new volume.

WithIOPS(String) Obsolete.
Sets the number of I/O operations per second (IOPS) that the volume supports.

WithSize(String) Obsolete.
Sets the size of the volume, in GiBs.

WithSnapshotId(String) Obsolete.
Sets the snapshot from which to create the new volume.

WithVolumeType(String) Obsolete.
Sets the volume type.

Inheritance Hierarchy
Object
EC2Request
 CreateVolumeRequest

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