code: def describe_volumes(kwargs=None, call=None):
      '''
      Describe a volume (or volumes)
  
      volume_id
          One or more volume IDs. Multiple IDs must be separated by ",".
  
      TODO: Add all of the filters.
      '''
      if call != 'function':
          log.error(
              'The describe_volumes function must be called with -f '
              'or --function.'
          )
          return False
  
      if not kwargs:
          kwargs = {}
  
      params = {'Action': 'DescribeVolumes'}
  
      if 'volume_id' in kwargs:
          volume_id = kwargs['volume_id'].split(',')
          for volume_index, volume_id in enumerate(volume_id):
              params['VolumeId.{0}'.format(volume_index)] = volume_id
  
      log.debug(params)
  
      data = aws.query(params,
                       return_url=True,
                       location=get_location(),
                       provider=get_provider(),
                       opts=__opts__,
                       sigver='4')
      return datf describe_volumes(kwargs=None, call=None):
      '''
      Describe a volume (or volumes)
  
      volume_id
          One or more volume IDs. Multiple IDs must be separated by ",".
  
      TODO: Add all of the filters.
      '''
      if call != 'function':
          log.error(
              'The describe_volumes function must be called with -f '
              'or --function.'
          )
          return False
  
      if not kwargs:
          kwargs = {}
  
      params = {'Action': 'DescribeVolumes'}
  
      if 'volume_id' in kwargs:
          volume_id = kwargs['volume_id'].split(',')
          for volume_index, volume_id in enumerate(volume_id):
              params['VolumeId.{0}'.format(volume_index)] = volume_id
  
      log.debug(params)
  
      data = aws.query(params,
                       return_url=True,
                       location=get_location(),
                       provider=get_provider(),
                       opts=__opts__,
                       sigver='4')
      return data
docs: Describe a volume (or volumes)
  
      volume_id
          One or more volume IDs. Multiple IDs must be separated by ",".
  
      TODO: Add all of the filters.