1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
【以下的回答经过翻译处理】 你好,
AWS Step Functions 使用Amazon States Language来以声明方式描述状态机,不支持使用"@", ",", ":", 和 "?" 运算符,因为所有引用路径必须是对单个值、数组或对象(子树)的明确引用。
因此,通配符符号可以用来选择对象或数组的所有元素。
Step Function 定义:
{
"Comment":"我状态机的描述",
"StartAt":"Pass",
"States":{
"Pass":{
"Type":"Pass",
"End":true,
"Parameters":{
"clusterids.$":"$.Clusters[*].ClusterIdentifier"
}
}
}
}
输入
{
"Clusters":[
{
"ClusterIdentifier":1
},
{
"ClusterIdentifier":2
}
]
}
输出
{
"clusterids":[
1,
2
]
}
希望这可以帮到你。
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전