'Changes an attribute of an Volume.
:type volume_id: string
:param volume_id: The volume id you wish to change
:type attribute: string
:param attribute: The attribute you wish to change.  Valid values are:
AutoEnableIO.
:type new_value: string
:param new_value: The new value of the attribute.
:type dry_run: bool
:param dry_run: Set to True if the operation should not actually run.'

def modify_volume_attribute(self, volume_id, attribute, new_value, dry_run=False):

    params = {'VolumeId': volume_id}
    if (attribute == 'AutoEnableIO'):
        params['AutoEnableIO.Value'] = new_value
    if dry_run:
        params['DryRun'] = 'true'
    return self.get_status('ModifyVolumeAttribute', params, verb='POST')
