function stopQuery(athenaClient, queryExecutionId) {
    const client = athenaClient;

    const queryParams = {
        QueryExecutionId: queryExecutionId
    };

    return new Promise(function(resolve, reject) {
        return client.stopQueryExecution(queryParams, (err, data) => {
            if (err) {
                Logger.log(`Unexpected Error stoping Athena Query Execution ${err}`);
                return reject(err);
            }
            return resolve(data);
        });
    });
}
The following method will stop the query execution based on the query id
@param {object} athenaClient  - Object created using create athena client
@param {string} queryExecutionId - AWS Athena Query Id
@returns {Promise} That resolves to AWS Stop Request