def describe_api_method_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None):
 try:
  resource = describe_api_resource(restApiId, resourcePath, region=region, key=key, keyid=keyid, profile=profile).get('resource')
  if resource:
   conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
   response = conn.get_method_response(restApiId=restApiId, resourceId=resource['id'], httpMethod=httpMethod, statusCode=str(statusCode))
   return {'response': _convert_datetime_str(response)}
  return {'error': 'no such resource'}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_method_response ( restApiId , resourcePath , httpMethod , statusCode , region = None , key = None , keyid = None , profile = None ) : try : resource = describe_api_resource ( restApiId , resourcePath , region = region , key = key , keyid = keyid , profile = profile ) . get ( 'resource' ) if resource : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) response = conn . get_method_response ( restApiId = restApiId , resourceId = resource [ 'id' ] , httpMethod = httpMethod , statusCode = str ( statusCode ) ) return { 'response' : _convert_datetime_str ( response ) } return { 'error' : 'no such resource' } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
get api method response for a resource in the given api cli example: .