Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

evaluate_expression

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

Request Syntax

response = client.evaluate_expression(
    pipelineId='string',
    objectId='string',
    expression='string'
)
Parameters
  • pipelineId (string) --

    [REQUIRED]

    The ID of the pipeline.

  • objectId (string) --

    [REQUIRED]

    The ID of the object.

  • expression (string) --

    [REQUIRED]

    The expression to evaluate.

Return type

dict

Returns

Response Syntax

{
    'evaluatedExpression': 'string'
}

Response Structure

  • (dict) --

    Contains the output of EvaluateExpression.

    • evaluatedExpression (string) --

      The evaluated expression.

Exceptions

  • DataPipeline.Client.exceptions.InternalServiceError
  • DataPipeline.Client.exceptions.TaskNotFoundException
  • DataPipeline.Client.exceptions.InvalidRequestException
  • DataPipeline.Client.exceptions.PipelineNotFoundException
  • DataPipeline.Client.exceptions.PipelineDeletedException