Use EnableVolumeIo with an AWS SDK or CLI - Amazon Elastic Compute Cloud

Use EnableVolumeIo with an AWS SDK or CLI

The following code examples show how to use EnableVolumeIo.

CLI
AWS CLI

To enable I/O for a volume

This example enables I/O on volume vol-1234567890abcdef0.

Command:

<userinput>aws ec2 enable-volume-io --volume-id <replaceable>vol-1234567890abcdef0</replaceable></userinput>

Output:

{ "Return": true }
PowerShell
Tools for PowerShell

Example 1: This example enables I/O operations for the specified volume, if I/O operations were disabled.

Enable-EC2VolumeIO -VolumeId vol-12345678
  • For API details, see EnableVolumeIo in AWS Tools for PowerShell Cmdlet Reference.

For a complete list of AWS SDK developer guides and code examples, see Create Amazon EC2 resources using an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.