1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
AWS Step Functions uses Amazon States Language to describe state machines declaratively, and the "@", ",", ":", and "?"
operators are not supported, since all reference Paths MUST be unambiguous references to a single value, array, or object (subtree).
Thus, the wildcard symbol could be employed to select all elements of an object or array.
Step Function definition
{
"Comment": "A description of my state machine",
"StartAt": "Pass",
"States": {
"Pass": {
"Type": "Pass",
"End": true,
"Parameters": {
"clusterids.$": "$.Clusters[*].ClusterIdentifier"
}
}
}
}
Input
{
"Clusters": [
{
"ClusterIdentifier": 1
},
{
"ClusterIdentifier": 2
}
]
}
Output
{
"clusterids": [
1,
2
]
}
I hope this helps you.
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked a month ago
- AWS OFFICIALUpdated 24 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
Ahh, I even scanned the spec and totally didn't pick up on that, especially since data were returned in the data flow simulator. Regardless, thank you for the note!