def METHOD_NAME(resources, path, rest_api_id, apigw_client):
    resource = get_resource_by_path(resources, path)
    return apigw_client.METHOD_NAME(restApiId=rest_api_id, resourceId=resource["id"], httpMethod="GET")