def list_key_policies(key_id, limit=None, marker=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 if key_id.startswith('alias/'):
  key_id = _get_key_id(key_id)
 r = {}
 try:
  key_policies = conn.list_key_policies(key_id, limit=limit, marker=marker)
  r['key_policies'] = key_policies['PolicyNames']
 except boto.exception.BotoServerError as e:
  r['error'] = __utils__['boto.get_error'](e)
 return r

def list_key_policies ( key_id , limit = None , marker = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if key_id . startswith ( 'alias/' ) : key_id = _get_key_id ( key_id ) r = { } try : key_policies = conn . list_key_policies ( key_id , limit = limit , marker = marker ) r [ 'key_policies' ] = key_policies [ 'PolicyNames' ] except boto . exception . BotoServerError as e : r [ 'error' ] = __utils__ [ 'boto.get_error' ] ( e ) return r
list key_policies for the specified key .