:doc:`DataPipeline <../../datapipeline>` / Client / evaluate_expression

*******************
evaluate_expression
*******************



.. py:method:: DataPipeline.Client.evaluate_expression(**kwargs)

  

  Task runners call ``EvaluateExpression`` to evaluate a string in the context of the specified object. For example, a task runner can evaluate SQL queries stored in Amazon S3.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression>`_  


  **Request Syntax**
  ::

    response = client.evaluate_expression(
        pipelineId='string',
        objectId='string',
        expression='string'
    )
    
  :type pipelineId: string
  :param pipelineId: **[REQUIRED]** 

    The ID of the pipeline.

    

  
  :type objectId: string
  :param objectId: **[REQUIRED]** 

    The ID of the object.

    

  
  :type expression: string
  :param expression: **[REQUIRED]** 

    The expression to evaluate.

    

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

    
    ::

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

    

    - *(dict) --* 

      Contains the output of EvaluateExpression.

      
      

      - **evaluatedExpression** *(string) --* 

        The evaluated expression.

        
  
  **Exceptions**
  
  *   :py:class:`DataPipeline.Client.exceptions.InternalServiceError`

  
  *   :py:class:`DataPipeline.Client.exceptions.TaskNotFoundException`

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

  
  *   :py:class:`DataPipeline.Client.exceptions.PipelineNotFoundException`

  
  *   :py:class:`DataPipeline.Client.exceptions.PipelineDeletedException`

  