def describe_api_models(restApiId, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  models = _multi_call(conn.get_models, 'items', restApiId=restApiId)
  return {'models': [_convert_datetime_str(model) for model in models]}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_models ( restApiId , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) models = _multi_call ( conn . get_models , 'items' , restApiId = restApiId ) return { 'models' : [ _convert_datetime_str ( model ) for model in models ] } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
get all models for a given api cli example: .