AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Creates an EBS volume that can be attached to an instance in the same Availability Zone. The volume is created in the regional endpoint that you send the HTTP request to. For more information see Regions and Endpoints.

You can create a new empty volume or restore a volume from an 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.

Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract CreateVolumeResponse CreateVolume(
         CreateVolumeRequest request
)

Parameters

request
Type: Amazon.EC2.Model.CreateVolumeRequest

Container for the necessary parameters to execute the CreateVolume service method.

Return Value
Type: Amazon.EC2.Model.CreateVolumeResponse
The response from the CreateVolume service method, as returned by EC2.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5