There are more AWS SDK examples available in the AWS Doc SDK Examples
Use EnableVolumeIo with a CLI
The following code examples show how to use EnableVolumeIo.
- CLI
-
- AWS CLI
-
To enable I/O for a volume
The following
enable-volume-ioexample enables I/O on volumevol-1234567890abcdef0.aws ec2 enable-volume-io \ --volume-idvol-1234567890abcdef0This command produces no output.
For more information, see Work with an impaired Amazon EBS volume in the Amazon EBS User Guide.
-
For API details, see EnableVolumeIo
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
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 (V4).
-
- Tools for PowerShell V5
-
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 (V5).
-