def describe_api_resources(restApiId, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  resources = sorted(_multi_call(conn.get_resources, 'items', restApiId=restApiId), key=(lambda k: k['path']))
  return {'resources': resources}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_resources ( restApiId , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) resources = sorted ( _multi_call ( conn . get_resources , 'items' , restApiId = restApiId ) , key = ( lambda k : k [ 'path' ] ) ) return { 'resources' : resources } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
given rest api id .