:doc:`Athena <../../athena>` / Client / get_calculation_execution_code

******************************
get_calculation_execution_code
******************************



.. py:method:: Athena.Client.get_calculation_execution_code(**kwargs)

  

  Retrieves the unencrypted code that was executed for the calculation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCalculationExecutionCode>`_  


  **Request Syntax**
  ::

    response = client.get_calculation_execution_code(
        CalculationExecutionId='string'
    )
    
  :type CalculationExecutionId: string
  :param CalculationExecutionId: **[REQUIRED]** 

    The calculation execution UUID.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'CodeBlock': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CodeBlock** *(string) --* 

        The unencrypted code that was executed for the calculation.

        
  
  **Exceptions**
  
  *   :py:class:`Athena.Client.exceptions.InternalServerException`

  
  *   :py:class:`Athena.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Athena.Client.exceptions.ResourceNotFoundException`

  