def describe_api_resource_method(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None):
 r = describe_api_resource(restApiId, resourcePath, region=region, key=key, keyid=keyid, profile=profile)
 resource = r.get('resource')
 if (not resource):
  return {'error': 'no such resource'}
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  method = conn.get_method(restApiId=restApiId, resourceId=resource['id'], httpMethod=httpMethod)
  return {'method': method}
 except ClientError as e:
  return {'error': salt.utils.boto3.get_error(e)}

def describe_api_resource_method ( restApiId , resourcePath , httpMethod , region = None , key = None , keyid = None , profile = None ) : r = describe_api_resource ( restApiId , resourcePath , region = region , key = key , keyid = keyid , profile = profile ) resource = r . get ( 'resource' ) if ( not resource ) : return { 'error' : 'no such resource' } try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) method = conn . get_method ( restApiId = restApiId , resourceId = resource [ 'id' ] , httpMethod = httpMethod ) return { 'method' : method } except ClientError as e : return { 'error' : salt . utils . boto3 . get_error ( e ) }
given rest api id .