Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data EvaluateExpression = EvaluateExpression' {
- pipelineId :: Text
- objectId :: Text
- expression :: Text
- newEvaluateExpression :: Text -> Text -> Text -> EvaluateExpression
- evaluateExpression_pipelineId :: Lens' EvaluateExpression Text
- evaluateExpression_objectId :: Lens' EvaluateExpression Text
- evaluateExpression_expression :: Lens' EvaluateExpression Text
- data EvaluateExpressionResponse = EvaluateExpressionResponse' {}
- newEvaluateExpressionResponse :: Int -> Text -> EvaluateExpressionResponse
- evaluateExpressionResponse_httpStatus :: Lens' EvaluateExpressionResponse Int
- evaluateExpressionResponse_evaluatedExpression :: Lens' EvaluateExpressionResponse Text
Creating a Request
data EvaluateExpression Source #
Contains the parameters for EvaluateExpression.
See: newEvaluateExpression
smart constructor.
EvaluateExpression' | |
|
Instances
newEvaluateExpression Source #
:: Text | |
-> Text | |
-> Text | |
-> EvaluateExpression |
Create a value of EvaluateExpression
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:pipelineId:EvaluateExpression'
, evaluateExpression_pipelineId
- The ID of the pipeline.
$sel:objectId:EvaluateExpression'
, evaluateExpression_objectId
- The ID of the object.
$sel:expression:EvaluateExpression'
, evaluateExpression_expression
- The expression to evaluate.
Request Lenses
evaluateExpression_pipelineId :: Lens' EvaluateExpression Text Source #
The ID of the pipeline.
evaluateExpression_objectId :: Lens' EvaluateExpression Text Source #
The ID of the object.
evaluateExpression_expression :: Lens' EvaluateExpression Text Source #
The expression to evaluate.
Destructuring the Response
data EvaluateExpressionResponse Source #
Contains the output of EvaluateExpression.
See: newEvaluateExpressionResponse
smart constructor.
EvaluateExpressionResponse' | |
|
Instances
newEvaluateExpressionResponse Source #
:: Int | |
-> Text | |
-> EvaluateExpressionResponse |
Create a value of EvaluateExpressionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:EvaluateExpressionResponse'
, evaluateExpressionResponse_httpStatus
- The response's http status code.
$sel:evaluatedExpression:EvaluateExpressionResponse'
, evaluateExpressionResponse_evaluatedExpression
- The evaluated expression.
Response Lenses
evaluateExpressionResponse_httpStatus :: Lens' EvaluateExpressionResponse Int Source #
The response's http status code.
evaluateExpressionResponse_evaluatedExpression :: Lens' EvaluateExpressionResponse Text Source #
The evaluated expression.