|
2 | 2 | "additionalProperties": false,
|
3 | 3 | "definitions": {
|
4 | 4 | "choice": {
|
| 5 | + "$ref": "#/definitions/common", |
5 | 6 | "additionalProperties": false,
|
6 | 7 | "definitions": {
|
7 | 8 | "Assign": {
|
|
197 | 198 | }
|
198 | 199 | },
|
199 | 200 | "properties": {
|
| 201 | + "Arguments": { |
| 202 | + "type": "object" |
| 203 | + }, |
200 | 204 | "Choices": {
|
201 | 205 | "items": {
|
202 | 206 | "$ref": "#/definitions/choice/definitions/Operator"
|
|
224 | 228 | "pattern": "^.{1,128}$",
|
225 | 229 | "type": "string"
|
226 | 230 | },
|
| 231 | + "Output": { |
| 232 | + "type": [ |
| 233 | + "string", |
| 234 | + "object" |
| 235 | + ] |
| 236 | + }, |
227 | 237 | "OutputPath": {
|
228 | 238 | "type": [
|
229 | 239 | "string",
|
230 | 240 | "null"
|
231 | 241 | ]
|
232 | 242 | },
|
| 243 | + "QueryLanguage": { |
| 244 | + "$ref": "#/definitions/queryLanguage" |
| 245 | + }, |
233 | 246 | "Type": {
|
234 | 247 | "enum": [
|
235 | 248 | "Choice"
|
|
243 | 256 | ],
|
244 | 257 | "type": "object"
|
245 | 258 | },
|
| 259 | + "common": { |
| 260 | + "allOf": [ |
| 261 | + { |
| 262 | + "if": { |
| 263 | + "properties": { |
| 264 | + "QueryLanguage": { |
| 265 | + "const": "JSONata" |
| 266 | + } |
| 267 | + }, |
| 268 | + "required": [ |
| 269 | + "QueryLanguage" |
| 270 | + ] |
| 271 | + }, |
| 272 | + "then": { |
| 273 | + "properties": { |
| 274 | + "InputPath": false, |
| 275 | + "OutputPath": false, |
| 276 | + "Parameters": false, |
| 277 | + "ResultPath": false, |
| 278 | + "ResultSelector": false |
| 279 | + } |
| 280 | + } |
| 281 | + }, |
| 282 | + { |
| 283 | + "if": { |
| 284 | + "oneOf": [ |
| 285 | + { |
| 286 | + "properties": { |
| 287 | + "QueryLanguage": { |
| 288 | + "const": "JSONPath" |
| 289 | + } |
| 290 | + }, |
| 291 | + "required": [ |
| 292 | + "QueryLanguage" |
| 293 | + ] |
| 294 | + }, |
| 295 | + { |
| 296 | + "not": { |
| 297 | + "required": [ |
| 298 | + "QueryLanguage" |
| 299 | + ] |
| 300 | + } |
| 301 | + } |
| 302 | + ] |
| 303 | + }, |
| 304 | + "then": { |
| 305 | + "properties": { |
| 306 | + "Arguments": false, |
| 307 | + "Output": false |
| 308 | + } |
| 309 | + } |
| 310 | + } |
| 311 | + ] |
| 312 | + }, |
246 | 313 | "fail": {
|
| 314 | + "$ref": "#/definitions/common", |
247 | 315 | "additionalProperties": false,
|
248 | 316 | "properties": {
|
| 317 | + "Arguments": { |
| 318 | + "type": "object" |
| 319 | + }, |
249 | 320 | "Cause": {
|
250 | 321 | "type": "string"
|
251 | 322 | },
|
|
267 | 338 | "null"
|
268 | 339 | ]
|
269 | 340 | },
|
| 341 | + "Output": { |
| 342 | + "type": [ |
| 343 | + "string", |
| 344 | + "object" |
| 345 | + ] |
| 346 | + }, |
270 | 347 | "OutputPath": {
|
271 | 348 | "type": [
|
272 | 349 | "string",
|
273 | 350 | "null"
|
274 | 351 | ]
|
275 | 352 | },
|
| 353 | + "QueryLanguage": { |
| 354 | + "$ref": "#/definitions/queryLanguage" |
| 355 | + }, |
276 | 356 | "Type": {
|
277 | 357 | "enum": [
|
278 | 358 | "Fail"
|
|
286 | 366 | "type": "object"
|
287 | 367 | },
|
288 | 368 | "map": {
|
| 369 | + "$ref": "#/definitions/common", |
289 | 370 | "additionalProperties": false,
|
290 | 371 | "properties": {
|
| 372 | + "Arguments": { |
| 373 | + "type": "object" |
| 374 | + }, |
291 | 375 | "Assign": {
|
292 | 376 | "type": "object"
|
293 | 377 | },
|
|
394 | 478 | "pattern": "^.{1,128}$",
|
395 | 479 | "type": "string"
|
396 | 480 | },
|
| 481 | + "Output": { |
| 482 | + "type": [ |
| 483 | + "string", |
| 484 | + "object" |
| 485 | + ] |
| 486 | + }, |
397 | 487 | "OutputPath": {
|
398 | 488 | "type": [
|
399 | 489 | "string",
|
|
403 | 493 | "Parameters": {
|
404 | 494 | "type": "object"
|
405 | 495 | },
|
| 496 | + "QueryLanguage": { |
| 497 | + "$ref": "#/definitions/queryLanguage" |
| 498 | + }, |
406 | 499 | "ResultPath": {
|
407 | 500 | "type": [
|
408 | 501 | "string",
|
|
474 | 567 | "type": "object"
|
475 | 568 | },
|
476 | 569 | "parallel": {
|
| 570 | + "$ref": "#/definitions/common", |
477 | 571 | "additionalProperties": false,
|
478 | 572 | "properties": {
|
| 573 | + "Arguments": { |
| 574 | + "type": "object" |
| 575 | + }, |
479 | 576 | "Assign": {
|
480 | 577 | "type": "object"
|
481 | 578 | },
|
|
525 | 622 | "pattern": "^.{1,128}$",
|
526 | 623 | "type": "string"
|
527 | 624 | },
|
| 625 | + "Output": { |
| 626 | + "type": [ |
| 627 | + "string", |
| 628 | + "object" |
| 629 | + ] |
| 630 | + }, |
528 | 631 | "OutputPath": {
|
529 | 632 | "type": [
|
530 | 633 | "string",
|
531 | 634 | "null"
|
532 | 635 | ]
|
533 | 636 | },
|
| 637 | + "QueryLanguage": { |
| 638 | + "$ref": "#/definitions/queryLanguage" |
| 639 | + }, |
534 | 640 | "ResultPath": {
|
535 | 641 | "type": [
|
536 | 642 | "string",
|
|
587 | 693 | "type": "object"
|
588 | 694 | },
|
589 | 695 | "pass": {
|
| 696 | + "$ref": "#/definitions/common", |
590 | 697 | "additionalProperties": false,
|
591 | 698 | "properties": {
|
| 699 | + "Arguments": { |
| 700 | + "type": "object" |
| 701 | + }, |
592 | 702 | "Assign": {
|
593 | 703 | "type": "object"
|
594 | 704 | },
|
|
610 | 720 | "pattern": "^.{1,128}$",
|
611 | 721 | "type": "string"
|
612 | 722 | },
|
| 723 | + "Output": { |
| 724 | + "type": [ |
| 725 | + "string", |
| 726 | + "object" |
| 727 | + ] |
| 728 | + }, |
613 | 729 | "OutputPath": {
|
614 | 730 | "type": [
|
615 | 731 | "string",
|
|
619 | 735 | "Parameters": {
|
620 | 736 | "type": "object"
|
621 | 737 | },
|
| 738 | + "QueryLanguage": { |
| 739 | + "$ref": "#/definitions/queryLanguage" |
| 740 | + }, |
622 | 741 | "Result": {},
|
623 | 742 | "ResultPath": {
|
624 | 743 | "type": "string"
|
|
639 | 758 | ],
|
640 | 759 | "type": "object"
|
641 | 760 | },
|
| 761 | + "queryLanguage": { |
| 762 | + "default": "JSONPath", |
| 763 | + "enum": [ |
| 764 | + "JSONPath", |
| 765 | + "JSONata" |
| 766 | + ], |
| 767 | + "type": "string" |
| 768 | + }, |
642 | 769 | "state": {
|
643 | 770 | "allOf": [
|
644 | 771 | {
|
|
804 | 931 | "type": "object"
|
805 | 932 | },
|
806 | 933 | "task": {
|
| 934 | + "$ref": "#/definitions/common", |
807 | 935 | "additionalProperties": false,
|
808 | 936 | "properties": {
|
| 937 | + "Arguments": { |
| 938 | + "type": "object" |
| 939 | + }, |
809 | 940 | "Assign": {
|
810 | 941 | "type": "object"
|
811 | 942 | },
|
|
862 | 993 | "pattern": "^.{1,128}$",
|
863 | 994 | "type": "string"
|
864 | 995 | },
|
| 996 | + "Output": { |
| 997 | + "type": [ |
| 998 | + "string", |
| 999 | + "object" |
| 1000 | + ] |
| 1001 | + }, |
865 | 1002 | "OutputPath": {
|
866 | 1003 | "type": [
|
867 | 1004 | "string",
|
|
871 | 1008 | "Parameters": {
|
872 | 1009 | "type": "object"
|
873 | 1010 | },
|
| 1011 | + "QueryLanguage": { |
| 1012 | + "$ref": "#/definitions/queryLanguage" |
| 1013 | + }, |
874 | 1014 | "Resource": {
|
875 | 1015 | "pattern": "^arn:aws:([a-z]|-)+:([a-z]|[0-9]|-)*:[0-9]*:([a-z]|-)+:[a-zA-Z0-9-_.]+(:(\\$LATEST|[a-zA-Z0-9-_\\.]+))?$",
|
876 | 1016 | "type": [
|
|
940 | 1080 | "type": "object"
|
941 | 1081 | },
|
942 | 1082 | "wait": {
|
| 1083 | + "$ref": "#/definitions/common", |
943 | 1084 | "additionalProperties": false,
|
944 | 1085 | "properties": {
|
| 1086 | + "Arguments": { |
| 1087 | + "type": "object" |
| 1088 | + }, |
945 | 1089 | "Assign": {
|
946 | 1090 | "type": "object"
|
947 | 1091 | },
|
|
963 | 1107 | "pattern": "^.{1,128}$",
|
964 | 1108 | "type": "string"
|
965 | 1109 | },
|
| 1110 | + "Output": { |
| 1111 | + "type": [ |
| 1112 | + "string", |
| 1113 | + "object" |
| 1114 | + ] |
| 1115 | + }, |
966 | 1116 | "OutputPath": {
|
967 | 1117 | "type": [
|
968 | 1118 | "string",
|
969 | 1119 | "null"
|
970 | 1120 | ]
|
971 | 1121 | },
|
| 1122 | + "QueryLanguage": { |
| 1123 | + "$ref": "#/definitions/queryLanguage" |
| 1124 | + }, |
972 | 1125 | "Seconds": {
|
973 | 1126 | "minimum": 0,
|
974 | 1127 | "type": "number"
|
|
1009 | 1162 | "Comment": {
|
1010 | 1163 | "type": "string"
|
1011 | 1164 | },
|
| 1165 | + "QueryLanguage": { |
| 1166 | + "$ref": "#/definitions/queryLanguage" |
| 1167 | + }, |
1012 | 1168 | "StartAt": {
|
1013 | 1169 | "type": "string"
|
1014 | 1170 | },
|
|
0 commit comments