describeVolumeAttribute

Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.

Samples

import aws.sdk.kotlin.services.ec2.model.VolumeAttributeName

fun main() { 
   //sampleStart 
   // This example describes the autoEnableIo attribute of the volume with the ID vol 049df61146c4d7901
val resp = ec2Client.describeVolumeAttribute {
    volumeId = "vol-049df61146c4d7901"
    attribute = VolumeAttributeName.fromValue("autoEnableIO")
} 
   //sampleEnd
}