def describe_snapshots(kwargs=None, call=None):
 if (call != 'function'):
  log.error('The describe_snapshot function must be called with -f or --function.')
  return False
 params = {'Action': 'DescribeSnapshots'}
 if ('snapshot_ids' in kwargs):
  kwargs['snapshot_id'] = kwargs['snapshot_ids']
 if ('snapshot_id' in kwargs):
  snapshot_ids = kwargs['snapshot_id'].split(',')
  for (snapshot_index, snapshot_id) in enumerate(snapshot_ids):
   params['SnapshotId.{0}'.format(snapshot_index)] = snapshot_id
 if ('owner' in kwargs):
  owners = kwargs['owner'].split(',')
  for (owner_index, owner) in enumerate(owners):
   params['Owner.{0}'.format(owner_index)] = owner
 if ('restorable_by' in kwargs):
  restorable_bys = kwargs['restorable_by'].split(',')
  for (restorable_by_index, restorable_by) in enumerate(restorable_bys):
   params['RestorableBy.{0}'.format(restorable_by_index)] = restorable_by
 log.debug(params)
 data = aws.query(params, return_url=True, location=get_location(), provider=get_provider(), opts=__opts__, sigver='4')
 return data

def describe_snapshots ( kwargs = None , call = None ) : if ( call != 'function' ) : log . error ( 'The describe_snapshot function must be called with -f or --function.' ) return False params = { 'Action' : 'DescribeSnapshots' } if ( 'snapshot_ids' in kwargs ) : kwargs [ 'snapshot_id' ] = kwargs [ 'snapshot_ids' ] if ( 'snapshot_id' in kwargs ) : snapshot_ids = kwargs [ 'snapshot_id' ] . split ( ',' ) for ( snapshot_index , snapshot_id ) in enumerate ( snapshot_ids ) : params [ 'SnapshotId.{0}' . format ( snapshot_index ) ] = snapshot_id if ( 'owner' in kwargs ) : owners = kwargs [ 'owner' ] . split ( ',' ) for ( owner_index , owner ) in enumerate ( owners ) : params [ 'Owner.{0}' . format ( owner_index ) ] = owner if ( 'restorable_by' in kwargs ) : restorable_bys = kwargs [ 'restorable_by' ] . split ( ',' ) for ( restorable_by_index , restorable_by ) in enumerate ( restorable_bys ) : params [ 'RestorableBy.{0}' . format ( restorable_by_index ) ] = restorable_by log . debug ( params ) data = aws . query ( params , return_url = True , location = get_location ( ) , provider = get_provider ( ) , opts = __opts__ , sigver = '4' ) return data
describe a snapshot snapshot_id one or more snapshot ids .