def detach_volume(name=None, kwargs=None, instance_id=None, call=None):
 if (call != 'action'):
  raise SaltCloudSystemExit('The detach_volume action must be called with -a or --action.')
 if (not kwargs):
  kwargs = {}
 if ('volume_id' not in kwargs):
  log.error('A volume_id is required.')
  return False
 params = {'Action': 'DetachVolume', 'VolumeId': kwargs['volume_id']}
 data = aws.query(params, return_url=True, location=get_location(), provider=get_provider(), opts=__opts__, sigver='4')
 return data

def detach_volume ( name = None , kwargs = None , instance_id = None , call = None ) : if ( call != 'action' ) : raise SaltCloudSystemExit ( 'The detach_volume action must be called with -a or --action.' ) if ( not kwargs ) : kwargs = { } if ( 'volume_id' not in kwargs ) : log . error ( 'A volume_id is required.' ) return False params = { 'Action' : 'DetachVolume' , 'VolumeId' : kwargs [ 'volume_id' ] } data = aws . query ( params , return_url = True , location = get_location ( ) , provider = get_provider ( ) , opts = __opts__ , sigver = '4' ) return data
detaches a volume .