Enum QueryLanguage
The name of the query language used by the state machine or state.
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum QueryLanguage
Syntax (vb)
Public Enum QueryLanguage
Remarks
Default: JSON_PATH
See: https://docs.aws.amazon.com/step-functions/latest/dg/transforming-data.html
ExampleMetadata: infused
Examples
var jsonata = Pass.Jsonata(this, "JSONata");
var jsonPath = Pass.JsonPath(this, "JSONPath");
var definition = jsonata.Next(jsonPath);
new StateMachine(this, "MixedStateMachine", new StateMachineProps {
// queryLanguage: sfn.QueryLanguage.JSON_PATH, // default
DefinitionBody = DefinitionBody.FromChainable(definition)
});
// This throws an error. If JSONata is specified at the top level, JSONPath cannot be used in the state machine definition.
// This throws an error. If JSONata is specified at the top level, JSONPath cannot be used in the state machine definition.
new StateMachine(this, "JSONataOnlyStateMachine", new StateMachineProps {
QueryLanguage = QueryLanguage.JSONATA,
DefinitionBody = DefinitionBody.FromChainable(definition)
});
Synopsis
Fields
JSONATA | Use JSONata. |
JSON_PATH | Use JSONPath. |
Fields
Name | Description |
---|---|
JSONATA | Use JSONata. |
JSON_PATH | Use JSONPath. |