Class QueryLanguage
The name of the query language used by the state machine or state.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class QueryLanguage : Enum
Syntax (vb)
Public NotInheritable Class QueryLanguage
Inherits
Enum
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
JSON_PATH | Use JSONPath. |
JSONATA | Use JSONata. |
value__ |
Fields
JSON_PATH
JSONATA
value__
public int value__
Field Value
Type | Description |
---|---|
System. |