class_docstr: A StreamAlert Athena Client for creating tables, databases, and executing queries
class_docstr_tok: ["A","StreamAlert","Athena","Client","for","creating","tables",",","databases",",","and","executing","queries"]
docstr: Returns a query result payload, wrapped in a AthenaQueryResult object
  
  Args:
      query_execution (AthenaQueryExecution)
  
  Returns:
      AthenaQueryResult
      Returns None if the given query_execution is not completed
docstr_tok: ["Returns","a","query","result","payload",",","wrapped","in","a","AthenaQueryResult","object","Args",":","query_execution","(","AthenaQueryExecution",")","Returns",":","AthenaQueryResult","Returns","None","if","the","given","query_execution","is","not","completed"]
code: def get_query_result(self, query_execution):
      """Returns a query result payload, wrapped in a AthenaQueryResult object
  
      Args:
          query_execution (AthenaQueryExecution)
  
      Returns:
          AthenaQueryResult
          Returns None if the given query_execution is not completed
      """
      if not query_execution.is_succeeded():
          return None
      return AthenaQueryResult(
          query_execution,
          self._client.get_query_results(
              QueryExecutionId=query_execution.query_execution_id
          ),
      )
  
imports: import json
  import uuid
  from botocore.exceptions import ClientError
label_desc: Use image node_id 4 for calling the AthenaClient obj's underlying member method code with example usage: obj.get_query_result(query_execution) and returns: AthenaQueryResult, None