1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339
// ================================================================= // // * WARNING * // // This file is generated! // // Changes made to this file will be overwritten. If changes are // required to the generated code, the service_crategen project // must be updated to generate the changes. // // ================================================================= use std::error::Error; use std::fmt; #[allow(warnings)] use futures::future; use futures::Future; use rusoto_core::credential::ProvideAwsCredentials; use rusoto_core::region; use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest}; use rusoto_core::{Client, RusotoError, RusotoFuture}; use rusoto_core::proto; use rusoto_core::signature::SignedRequest; use serde_json; /// <p>Unit of work sent to an activity worker.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTask { /// <p>The unique ID of the task.</p> #[serde(rename = "activityId")] pub activity_id: String, /// <p>The type of this activity task.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p>The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The ID of the <code>ActivityTaskStarted</code> event recorded in the history.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.</p> #[serde(rename = "taskToken")] pub task_token: String, /// <p>The workflow execution that started this activity task.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, } /// <p>Provides the details of the <code>ActivityTaskCancelRequested</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskCancelRequestedEventAttributes { /// <p>The unique ID of the task.</p> #[serde(rename = "activityId")] pub activity_id: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>RequestCancelActivityTask</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } /// <p>Provides the details of the <code>ActivityTaskCanceled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskCanceledEventAttributes { /// <p>Details of the cancellation.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>If set, contains the ID of the last <code>ActivityTaskCancelRequested</code> event recorded for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "latestCancelRequestedEventId")] #[serde(skip_serializing_if = "Option::is_none")] pub latest_cancel_requested_event_id: Option<i64>, /// <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, } /// <p>Provides the details of the <code>ActivityTaskCompleted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskCompletedEventAttributes { /// <p>The results of the activity task.</p> #[serde(rename = "result")] #[serde(skip_serializing_if = "Option::is_none")] pub result: Option<String>, /// <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, } /// <p>Provides the details of the <code>ActivityTaskFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskFailedEventAttributes { /// <p>The details of the failure.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The reason provided for the failure.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, /// <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, } /// <p>Provides the details of the <code>ActivityTaskScheduled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskScheduledEventAttributes { /// <p>The unique ID of the activity task.</p> #[serde(rename = "activityId")] pub activity_id: String, /// <p>The type of the activity task.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p>Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The maximum time before which the worker processing this task must report progress by calling <a>RecordActivityTaskHeartbeat</a>. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it is ignored.</p> #[serde(rename = "heartbeatTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub heartbeat_timeout: Option<String>, /// <p>The input provided to the activity task.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The maximum amount of time for this activity task.</p> #[serde(rename = "scheduleToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_to_close_timeout: Option<String>, /// <p>The maximum amount of time the activity task can wait to be assigned to a worker.</p> #[serde(rename = "scheduleToStartTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_to_start_timeout: Option<String>, /// <p>The maximum amount of time a worker may take to process the activity task.</p> #[serde(rename = "startToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub start_to_close_timeout: Option<String>, /// <p>The task list in which the activity task has been scheduled.</p> #[serde(rename = "taskList")] pub task_list: TaskList, /// <p> The priority to assign to the scheduled activity task. If set, this overrides any default priority value that was assigned when the activity type was registered.</p> <p>Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, } /// <p>Provides the details of the <code>ActivityTaskStarted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskStartedEventAttributes { /// <p>Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.</p> #[serde(rename = "identity")] #[serde(skip_serializing_if = "Option::is_none")] pub identity: Option<String>, /// <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, } /// <p>Status information about an activity task.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskStatus { /// <p>Set to <code>true</code> if cancellation of the task is requested.</p> #[serde(rename = "cancelRequested")] pub cancel_requested: bool, } /// <p>Provides the details of the <code>ActivityTaskTimedOut</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTaskTimedOutEventAttributes { /// <p>Contains the content of the <code>details</code> parameter for the last call made by the activity to <code>RecordActivityTaskHeartbeat</code>.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>ActivityTaskStarted</code> event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The type of the timeout that caused this event.</p> #[serde(rename = "timeoutType")] pub timeout_type: String, } /// <p>Represents an activity type.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct ActivityType { /// <p><p>The name of this activity.</p> <note> <p>The combination of activity type name and version must be unique within a domain.</p> </note></p> #[serde(rename = "name")] pub name: String, /// <p><p>The version of this activity.</p> <note> <p>The combination of activity type name and version must be unique with in a domain.</p> </note></p> #[serde(rename = "version")] pub version: String, } /// <p>Configuration settings registered with the activity type.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTypeConfiguration { /// <p> The default maximum time, in seconds, before which a worker processing a task must report progress by calling <a>RecordActivityTaskHeartbeat</a>.</p> <p>You can specify this value only when <i>registering</i> an activity type. The registered default value can be overridden when you schedule a task through the <code>ScheduleActivityTask</code> <a>Decision</a>. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an <code>UnknownResource</code> fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskHeartbeatTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_heartbeat_timeout: Option<String>, /// <p> The default task list specified for this activity type at registration. This default is used if a task list isn't provided when a task is scheduled through the <code>ScheduleActivityTask</code> <a>Decision</a>. You can override the default registered task list when scheduling a task through the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> #[serde(rename = "defaultTaskList")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_list: Option<TaskList>, /// <p> The default task priority for tasks of this activity type, specified at registration. If not set, then <code>0</code> is used as the default priority. This default can be overridden when scheduling an activity task.</p> <p>Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "defaultTaskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_priority: Option<String>, /// <p> The default maximum duration, specified when registering the activity type, for tasks of this activity type. You can override this default when scheduling a task through the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskScheduleToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_schedule_to_close_timeout: Option<String>, /// <p> The default maximum duration, specified when registering the activity type, that a task of an activity type can wait before being assigned to a worker. You can override this default when scheduling a task through the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskScheduleToStartTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_schedule_to_start_timeout: Option<String>, /// <p> The default maximum duration for tasks of an activity type specified when registering the activity type. You can override this default when scheduling a task through the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_start_to_close_timeout: Option<String>, } /// <p>Detailed information about an activity type.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTypeDetail { /// <p>The configuration settings registered with the activity type.</p> #[serde(rename = "configuration")] pub configuration: ActivityTypeConfiguration, /// <p><p>General information about the activity type.</p> <p>The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.</p> <ul> <li> <p> <code>REGISTERED</code> – The type is registered and available. Workers supporting this type should be running. </p> </li> <li> <p> <code>DEPRECATED</code> – The type was deprecated using <a>DeprecateActivityType</a>, but is still in use. You should keep workers supporting this type running. You cannot create new tasks of this type. </p> </li> </ul></p> #[serde(rename = "typeInfo")] pub type_info: ActivityTypeInfo, } /// <p>Detailed information about an activity type.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTypeInfo { /// <p>The <a>ActivityType</a> type structure representing the activity type.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p>The date and time this activity type was created through <a>RegisterActivityType</a>.</p> #[serde(rename = "creationDate")] pub creation_date: f64, /// <p>If DEPRECATED, the date and time <a>DeprecateActivityType</a> was called.</p> #[serde(rename = "deprecationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub deprecation_date: Option<f64>, /// <p>The description of the activity type provided in <a>RegisterActivityType</a>.</p> #[serde(rename = "description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>The current status of the activity type.</p> #[serde(rename = "status")] pub status: String, } /// <p>Contains a paginated list of activity type information structures.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ActivityTypeInfos { /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>List of activity type information.</p> #[serde(rename = "typeInfos")] pub type_infos: Vec<ActivityTypeInfo>, } /// <p>Provides the details of the <code>CancelTimer</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CancelTimerDecisionAttributes { /// <p> The unique ID of the timer to cancel.</p> #[serde(rename = "timerId")] pub timer_id: String, } /// <p>Provides the details of the <code>CancelTimerFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct CancelTimerFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>CancelTimer</code> decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The timerId provided in the <code>CancelTimer</code> decision that failed.</p> #[serde(rename = "timerId")] pub timer_id: String, } /// <p>Provides the details of the <code>CancelWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CancelWorkflowExecutionDecisionAttributes { /// <p> Details of the cancellation.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, } /// <p>Provides the details of the <code>CancelWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct CancelWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>CancelWorkflowExecution</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } /// <p>Provide details of the <code>ChildWorkflowExecutionCanceled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ChildWorkflowExecutionCanceledEventAttributes { /// <p>Details of the cancellation (if provided).</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The ID of the <code>ChildWorkflowExecutionStarted</code> event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The child workflow execution that was canceled.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>ChildWorkflowExecutionCompleted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ChildWorkflowExecutionCompletedEventAttributes { /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The result of the child workflow execution.</p> #[serde(rename = "result")] #[serde(skip_serializing_if = "Option::is_none")] pub result: Option<String>, /// <p>The ID of the <code>ChildWorkflowExecutionStarted</code> event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The child workflow execution that was completed.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>ChildWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ChildWorkflowExecutionFailedEventAttributes { /// <p>The details of the failure (if provided).</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The reason for the failure (if provided).</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, /// <p>The ID of the <code>ChildWorkflowExecutionStarted</code> event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The child workflow execution that failed.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>ChildWorkflowExecutionStarted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ChildWorkflowExecutionStartedEventAttributes { /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The child workflow execution that was started.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>ChildWorkflowExecutionTerminated</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ChildWorkflowExecutionTerminatedEventAttributes { /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The ID of the <code>ChildWorkflowExecutionStarted</code> event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The child workflow execution that was terminated.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>ChildWorkflowExecutionTimedOut</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ChildWorkflowExecutionTimedOutEventAttributes { /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The ID of the <code>ChildWorkflowExecutionStarted</code> event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The type of the timeout that caused the child workflow execution to time out.</p> #[serde(rename = "timeoutType")] pub timeout_type: String, /// <p>The child workflow execution that timed out.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Used to filter the closed workflow executions in visibility APIs by their close status.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CloseStatusFilter { /// <p> The close status that must match the close status of an execution for it to meet the criteria of this filter.</p> #[serde(rename = "status")] pub status: String, } /// <p>Provides the details of the <code>CompleteWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CompleteWorkflowExecutionDecisionAttributes { /// <p>The result of the workflow execution. The form of the result is implementation defined.</p> #[serde(rename = "result")] #[serde(skip_serializing_if = "Option::is_none")] pub result: Option<String>, } /// <p>Provides the details of the <code>CompleteWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct CompleteWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>CompleteWorkflowExecution</code> decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } /// <p>Provides the details of the <code>ContinueAsNewWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tag</code> – A tag used to identify the workflow execution</p> </li> <li> <p> <code>taskList</code> – String constraint. The key is <code>swf:taskList.name</code>.</p> </li> <li> <p> <code>workflowType.version</code> – String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ContinueAsNewWorkflowExecutionDecisionAttributes { /// <p><p>If set, specifies the policy to use for the child workflow executions of the new execution if it is terminated by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using <a>RegisterWorkflowType</a>.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul> <note> <p>A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "childPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub child_policy: Option<String>, /// <p><p>If set, specifies the total duration for this workflow execution. This overrides the <code>defaultExecutionStartToCloseTimeout</code> specified when registering the workflow type.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this field. If neither this field is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "executionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_start_to_close_timeout: Option<String>, /// <p>The input provided to the new workflow execution.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The IAM role to attach to the new (continued) execution.</p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The list of tags to associate with the new workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling <a>ListOpenWorkflowExecutions</a> or <a>ListClosedWorkflowExecutions</a> and specifying a <a>TagFilter</a>.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The task list to use for the decisions of the new (continued) workflow execution.</p> #[serde(rename = "taskList")] #[serde(skip_serializing_if = "Option::is_none")] pub task_list: Option<TaskList>, /// <p> The task priority that, if set, specifies the priority for the decision tasks for this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p><p>Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the <code>defaultTaskStartToCloseTimout</code> specified when registering the workflow type using <a>RegisterWorkflowType</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>A task start-to-close timeout for the new workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "taskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub task_start_to_close_timeout: Option<String>, /// <p>The version of the workflow to start.</p> #[serde(rename = "workflowTypeVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_type_version: Option<String>, } /// <p>Provides the details of the <code>ContinueAsNewWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ContinueAsNewWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>ContinueAsNewWorkflowExecution</code> decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CountClosedWorkflowExecutionsInput { /// <p><p>If specified, only workflow executions that match this close status are counted. This filter has an affect only if <code>executionStatus</code> is specified as <code>CLOSED</code>.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "closeStatusFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub close_status_filter: Option<CloseStatusFilter>, /// <p><p>If specified, only workflow executions that meet the close time criteria of the filter are counted.</p> <note> <p> <code>startTimeFilter</code> and <code>closeTimeFilter</code> are mutually exclusive. You must specify one of these in a request but not both.</p> </note></p> #[serde(rename = "closeTimeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub close_time_filter: Option<ExecutionTimeFilter>, /// <p>The name of the domain containing the workflow executions to count.</p> #[serde(rename = "domain")] pub domain: String, /// <p><p>If specified, only workflow executions matching the <code>WorkflowId</code> in the filter are counted.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "executionFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_filter: Option<WorkflowExecutionFilter>, /// <p><p>If specified, only workflow executions that meet the start time criteria of the filter are counted.</p> <note> <p> <code>startTimeFilter</code> and <code>closeTimeFilter</code> are mutually exclusive. You must specify one of these in a request but not both.</p> </note></p> #[serde(rename = "startTimeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub start_time_filter: Option<ExecutionTimeFilter>, /// <p><p>If specified, only executions that have a tag that matches the filter are counted.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "tagFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_filter: Option<TagFilter>, /// <p><p>If specified, indicates the type of the workflow executions to be counted.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "typeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub type_filter: Option<WorkflowTypeFilter>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CountOpenWorkflowExecutionsInput { /// <p>The name of the domain containing the workflow executions to count.</p> #[serde(rename = "domain")] pub domain: String, /// <p><p>If specified, only workflow executions matching the <code>WorkflowId</code> in the filter are counted.</p> <note> <p> <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "executionFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_filter: Option<WorkflowExecutionFilter>, /// <p>Specifies the start time criteria that workflow executions must meet in order to be counted.</p> #[serde(rename = "startTimeFilter")] pub start_time_filter: ExecutionTimeFilter, /// <p><p>If specified, only executions that have a tag that matches the filter are counted.</p> <note> <p> <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "tagFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_filter: Option<TagFilter>, /// <p><p>Specifies the type of the workflow executions to be counted.</p> <note> <p> <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "typeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub type_filter: Option<WorkflowTypeFilter>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CountPendingActivityTasksInput { /// <p>The name of the domain that contains the task list.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The name of the task list.</p> #[serde(rename = "taskList")] pub task_list: TaskList, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct CountPendingDecisionTasksInput { /// <p>The name of the domain that contains the task list.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The name of the task list.</p> #[serde(rename = "taskList")] pub task_list: TaskList, } /// <p><p>Specifies a decision made by the decider. A decision can be one of these types:</p> <ul> <li> <p> <code>CancelTimer</code> – Cancels a previously started timer and records a <code>TimerCanceled</code> event in the history.</p> </li> <li> <p> <code>CancelWorkflowExecution</code> – Closes the workflow execution and records a <code>WorkflowExecutionCanceled</code> event in the history.</p> </li> <li> <p> <code>CompleteWorkflowExecution</code> – Closes the workflow execution and records a <code>WorkflowExecutionCompleted</code> event in the history .</p> </li> <li> <p> <code>ContinueAsNewWorkflowExecution</code> – Closes the workflow execution and starts a new workflow execution of the same type using the same workflow ID and a unique run Id. A <code>WorkflowExecutionContinuedAsNew</code> event is recorded in the history.</p> </li> <li> <p> <code>FailWorkflowExecution</code> – Closes the workflow execution and records a <code>WorkflowExecutionFailed</code> event in the history.</p> </li> <li> <p> <code>RecordMarker</code> – Records a <code>MarkerRecorded</code> event in the history. Markers can be used for adding custom information in the history for instance to let deciders know that they don't need to look at the history beyond the marker event.</p> </li> <li> <p> <code>RequestCancelActivityTask</code> – Attempts to cancel a previously scheduled activity task. If the activity task was scheduled but has not been assigned to a worker, then it is canceled. If the activity task was already assigned to a worker, then the worker is informed that cancellation has been requested in the response to <a>RecordActivityTaskHeartbeat</a>.</p> </li> <li> <p> <code>RequestCancelExternalWorkflowExecution</code> – Requests that a request be made to cancel the specified external workflow execution and records a <code>RequestCancelExternalWorkflowExecutionInitiated</code> event in the history.</p> </li> <li> <p> <code>ScheduleActivityTask</code> – Schedules an activity task.</p> </li> <li> <p> <code>SignalExternalWorkflowExecution</code> – Requests a signal to be delivered to the specified external workflow execution and records a <code>SignalExternalWorkflowExecutionInitiated</code> event in the history.</p> </li> <li> <p> <code>StartChildWorkflowExecution</code> – Requests that a child workflow execution be started and records a <code>StartChildWorkflowExecutionInitiated</code> event in the history. The child workflow execution is a separate workflow execution with its own history.</p> </li> <li> <p> <code>StartTimer</code> – Starts a timer for this workflow execution and records a <code>TimerStarted</code> event in the history. This timer fires after the specified delay and record a <code>TimerFired</code> event.</p> </li> </ul> <p> <b>Access Control</b> </p> <p>If you grant permission to use <code>RespondDecisionTaskCompleted</code>, you can use IAM policies to express permissions for the list of decisions returned by this action as if they were members of the API. Treating decisions as a pseudo API maintains a uniform conceptual model and helps keep policies readable. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> <p> <b>Decision Failure</b> </p> <p>Decisions can fail for several reasons</p> <ul> <li> <p>The ordering of decisions should follow a logical flow. Some decisions might not make sense in the current context of the workflow execution and therefore fails.</p> </li> <li> <p>A limit on your account was reached.</p> </li> <li> <p>The decision lacks sufficient permissions.</p> </li> </ul> <p>One of the following events might be added to the history to indicate an error. The event attribute's <code>cause</code> parameter indicates the cause. If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> <ul> <li> <p> <code>ScheduleActivityTaskFailed</code> – A <code>ScheduleActivityTask</code> decision failed. This could happen if the activity type specified in the decision isn't registered, is in a deprecated state, or the decision isn't properly configured.</p> </li> <li> <p> <code>RequestCancelActivityTaskFailed</code> – A <code>RequestCancelActivityTask</code> decision failed. This could happen if there is no open activity task with the specified activityId.</p> </li> <li> <p> <code>StartTimerFailed</code> – A <code>StartTimer</code> decision failed. This could happen if there is another open timer with the same timerId.</p> </li> <li> <p> <code>CancelTimerFailed</code> – A <code>CancelTimer</code> decision failed. This could happen if there is no open timer with the specified timerId.</p> </li> <li> <p> <code>StartChildWorkflowExecutionFailed</code> – A <code>StartChildWorkflowExecution</code> decision failed. This could happen if the workflow type specified isn't registered, is deprecated, or the decision isn't properly configured.</p> </li> <li> <p> <code>SignalExternalWorkflowExecutionFailed</code> – A <code>SignalExternalWorkflowExecution</code> decision failed. This could happen if the <code>workflowID</code> specified in the decision was incorrect.</p> </li> <li> <p> <code>RequestCancelExternalWorkflowExecutionFailed</code> – A <code>RequestCancelExternalWorkflowExecution</code> decision failed. This could happen if the <code>workflowID</code> specified in the decision was incorrect.</p> </li> <li> <p> <code>CancelWorkflowExecutionFailed</code> – A <code>CancelWorkflowExecution</code> decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.</p> </li> <li> <p> <code>CompleteWorkflowExecutionFailed</code> – A <code>CompleteWorkflowExecution</code> decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.</p> </li> <li> <p> <code>ContinueAsNewWorkflowExecutionFailed</code> – A <code>ContinueAsNewWorkflowExecution</code> decision failed. This could happen if there is an unhandled decision task pending in the workflow execution or the ContinueAsNewWorkflowExecution decision was not configured correctly.</p> </li> <li> <p> <code>FailWorkflowExecutionFailed</code> – A <code>FailWorkflowExecution</code> decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.</p> </li> </ul> <p>The preceding error events might occur due to an error in the decider logic, which might put the workflow execution in an unstable state The cause field in the event structure for the error event indicates the cause of the error.</p> <note> <p>A workflow execution may be closed by the decider by returning one of the following decisions when completing a decision task: <code>CompleteWorkflowExecution</code>, <code>FailWorkflowExecution</code>, <code>CancelWorkflowExecution</code> and <code>ContinueAsNewWorkflowExecution</code>. An <code>UnhandledDecision</code> fault is returned if a workflow closing decision is specified and a signal or activity event had been added to the history while the decision task was being performed by the decider. Unlike the above situations which are logic issues, this fault is always possible because of race conditions in a distributed system. The right action here is to call <a>RespondDecisionTaskCompleted</a> without any decisions. This would result in another decision task with these new events included in the history. The decider should handle the new events and may decide to close the workflow execution.</p> </note> <p> <b>How to Code a Decision</b> </p> <p>You code a decision by first setting the decision type field to one of the above decision values, and then set the corresponding attributes field shown below:</p> <ul> <li> <p> <code> <a>ScheduleActivityTaskDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>RequestCancelActivityTaskDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>CompleteWorkflowExecutionDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>FailWorkflowExecutionDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>CancelWorkflowExecutionDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>ContinueAsNewWorkflowExecutionDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>RecordMarkerDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>StartTimerDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>CancelTimerDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>SignalExternalWorkflowExecutionDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>RequestCancelExternalWorkflowExecutionDecisionAttributes</a> </code> </p> </li> <li> <p> <code> <a>StartChildWorkflowExecutionDecisionAttributes</a> </code> </p> </li> </ul></p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct Decision { /// <p>Provides the details of the <code>CancelTimer</code> decision. It isn't set for other decision types.</p> #[serde(rename = "cancelTimerDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub cancel_timer_decision_attributes: Option<CancelTimerDecisionAttributes>, /// <p>Provides the details of the <code>CancelWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "cancelWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub cancel_workflow_execution_decision_attributes: Option<CancelWorkflowExecutionDecisionAttributes>, /// <p>Provides the details of the <code>CompleteWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "completeWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub complete_workflow_execution_decision_attributes: Option<CompleteWorkflowExecutionDecisionAttributes>, /// <p>Provides the details of the <code>ContinueAsNewWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "continueAsNewWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub continue_as_new_workflow_execution_decision_attributes: Option<ContinueAsNewWorkflowExecutionDecisionAttributes>, /// <p>Specifies the type of the decision.</p> #[serde(rename = "decisionType")] pub decision_type: String, /// <p>Provides the details of the <code>FailWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "failWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub fail_workflow_execution_decision_attributes: Option<FailWorkflowExecutionDecisionAttributes>, /// <p>Provides the details of the <code>RecordMarker</code> decision. It isn't set for other decision types.</p> #[serde(rename = "recordMarkerDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub record_marker_decision_attributes: Option<RecordMarkerDecisionAttributes>, /// <p>Provides the details of the <code>RequestCancelActivityTask</code> decision. It isn't set for other decision types.</p> #[serde(rename = "requestCancelActivityTaskDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub request_cancel_activity_task_decision_attributes: Option<RequestCancelActivityTaskDecisionAttributes>, /// <p>Provides the details of the <code>RequestCancelExternalWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "requestCancelExternalWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub request_cancel_external_workflow_execution_decision_attributes: Option<RequestCancelExternalWorkflowExecutionDecisionAttributes>, /// <p>Provides the details of the <code>ScheduleActivityTask</code> decision. It isn't set for other decision types.</p> #[serde(rename = "scheduleActivityTaskDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_activity_task_decision_attributes: Option<ScheduleActivityTaskDecisionAttributes>, /// <p>Provides the details of the <code>ScheduleLambdaFunction</code> decision. It isn't set for other decision types.</p> #[serde(rename = "scheduleLambdaFunctionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_lambda_function_decision_attributes: Option<ScheduleLambdaFunctionDecisionAttributes>, /// <p>Provides the details of the <code>SignalExternalWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "signalExternalWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub signal_external_workflow_execution_decision_attributes: Option<SignalExternalWorkflowExecutionDecisionAttributes>, /// <p>Provides the details of the <code>StartChildWorkflowExecution</code> decision. It isn't set for other decision types.</p> #[serde(rename = "startChildWorkflowExecutionDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub start_child_workflow_execution_decision_attributes: Option<StartChildWorkflowExecutionDecisionAttributes>, /// <p>Provides the details of the <code>StartTimer</code> decision. It isn't set for other decision types.</p> #[serde(rename = "startTimerDecisionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub start_timer_decision_attributes: Option<StartTimerDecisionAttributes>, } /// <p>A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DecisionTask { /// <p>A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.</p> #[serde(rename = "events")] pub events: Vec<HistoryEvent>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.</p> #[serde(rename = "previousStartedEventId")] #[serde(skip_serializing_if = "Option::is_none")] pub previous_started_event_id: Option<i64>, /// <p>The ID of the <code>DecisionTaskStarted</code> event recorded in the history.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.</p> #[serde(rename = "taskToken")] pub task_token: String, /// <p>The workflow execution for which this decision task was created.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, /// <p>The type of the workflow execution for which this decision task was created.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>DecisionTaskCompleted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DecisionTaskCompletedEventAttributes { /// <p>User defined context for the workflow execution.</p> #[serde(rename = "executionContext")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_context: Option<String>, /// <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>DecisionTaskStarted</code> event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, } /// <p>Provides details about the <code>DecisionTaskScheduled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DecisionTaskScheduledEventAttributes { /// <p>The maximum duration for this decision task. The task is considered timed out if it doesn't completed within this duration.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "startToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub start_to_close_timeout: Option<String>, /// <p>The name of the task list in which the decision task was scheduled.</p> #[serde(rename = "taskList")] pub task_list: TaskList, /// <p> A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, } /// <p>Provides the details of the <code>DecisionTaskStarted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DecisionTaskStartedEventAttributes { /// <p>Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined.</p> #[serde(rename = "identity")] #[serde(skip_serializing_if = "Option::is_none")] pub identity: Option<String>, /// <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, } /// <p>Provides the details of the <code>DecisionTaskTimedOut</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DecisionTaskTimedOutEventAttributes { /// <p>The ID of the <code>DecisionTaskScheduled</code> event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>DecisionTaskStarted</code> event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The type of timeout that expired before the decision task could be completed.</p> #[serde(rename = "timeoutType")] pub timeout_type: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DeprecateActivityTypeInput { /// <p>The activity type to deprecate.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p>The name of the domain in which the activity type is registered.</p> #[serde(rename = "domain")] pub domain: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DeprecateDomainInput { /// <p>The name of the domain to deprecate.</p> #[serde(rename = "name")] pub name: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DeprecateWorkflowTypeInput { /// <p>The name of the domain in which the workflow type is registered.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The workflow type to deprecate.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DescribeActivityTypeInput { /// <p>The activity type to get information about. Activity types are identified by the <code>name</code> and <code>version</code> that were supplied when the activity was registered.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p>The name of the domain in which the activity type is registered.</p> #[serde(rename = "domain")] pub domain: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DescribeDomainInput { /// <p>The name of the domain to describe.</p> #[serde(rename = "name")] pub name: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DescribeWorkflowExecutionInput { /// <p>The name of the domain containing the workflow execution.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The workflow execution to describe.</p> #[serde(rename = "execution")] pub execution: WorkflowExecution, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct DescribeWorkflowTypeInput { /// <p>The name of the domain in which this workflow type is registered.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The workflow type to describe.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Contains the configuration settings of a domain.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DomainConfiguration { /// <p>The retention period for workflow executions in this domain.</p> #[serde(rename = "workflowExecutionRetentionPeriodInDays")] pub workflow_execution_retention_period_in_days: String, } /// <p>Contains details of a domain.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DomainDetail { /// <p>The domain configuration. Currently, this includes only the domain's retention period.</p> #[serde(rename = "configuration")] pub configuration: DomainConfiguration, /// <p>The basic information about a domain, such as its name, status, and description.</p> #[serde(rename = "domainInfo")] pub domain_info: DomainInfo, } /// <p>Contains general information about a domain.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DomainInfo { /// <p>The description of the domain provided through <a>RegisterDomain</a>.</p> #[serde(rename = "description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>The name of the domain. This name is unique within the account.</p> #[serde(rename = "name")] pub name: String, /// <p><p>The status of the domain:</p> <ul> <li> <p> <code>REGISTERED</code> – The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions. </p> </li> <li> <p> <code>DEPRECATED</code> – The domain was deprecated using <a>DeprecateDomain</a>, but is still in use. You should not create new workflow executions in this domain. </p> </li> </ul></p> #[serde(rename = "status")] pub status: String, } /// <p>Contains a paginated collection of DomainInfo structures.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct DomainInfos { /// <p>A list of DomainInfo structures.</p> #[serde(rename = "domainInfos")] pub domain_infos: Vec<DomainInfo>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, } /// <p>Used to filter the workflow executions in visibility APIs by various time-based rules. Each parameter, if specified, defines a rule that must be satisfied by each returned query result. The parameter values are in the <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time format</a>. For example: <code>"oldestDate": 1325376070.</code> </p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ExecutionTimeFilter { /// <p>Specifies the latest start or close date and time to return.</p> #[serde(rename = "latestDate")] #[serde(skip_serializing_if = "Option::is_none")] pub latest_date: Option<f64>, /// <p>Specifies the oldest start or close date and time to return.</p> #[serde(rename = "oldestDate")] pub oldest_date: f64, } /// <p>Provides the details of the <code>ExternalWorkflowExecutionCancelRequested</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ExternalWorkflowExecutionCancelRequestedEventAttributes { /// <p>The ID of the <code>RequestCancelExternalWorkflowExecutionInitiated</code> event corresponding to the <code>RequestCancelExternalWorkflowExecution</code> decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The external workflow execution to which the cancellation request was delivered.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, } /// <p>Provides the details of the <code>ExternalWorkflowExecutionSignaled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ExternalWorkflowExecutionSignaledEventAttributes { /// <p>The ID of the <code>SignalExternalWorkflowExecutionInitiated</code> event corresponding to the <code>SignalExternalWorkflowExecution</code> decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The external workflow execution that the signal was delivered to.</p> #[serde(rename = "workflowExecution")] pub workflow_execution: WorkflowExecution, } /// <p>Provides the details of the <code>FailWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct FailWorkflowExecutionDecisionAttributes { /// <p> Details of the failure.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>A descriptive reason for the failure that may help in diagnostics.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, } /// <p>Provides the details of the <code>FailWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct FailWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>FailWorkflowExecution</code> decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct GetWorkflowExecutionHistoryInput { /// <p>The name of the domain containing the workflow execution.</p> #[serde(rename = "domain")] pub domain: String, /// <p>Specifies the workflow execution for which to return the history.</p> #[serde(rename = "execution")] pub execution: WorkflowExecution, /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>When set to <code>true</code>, returns the events in reverse order. By default the results are returned in ascending order of the <code>eventTimeStamp</code> of the events.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, } /// <p>Paginated representation of a workflow history for a workflow execution. This is the up to date, complete and authoritative record of the events related to all tasks and events in the life of the workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct History { /// <p>The list of history events.</p> #[serde(rename = "events")] pub events: Vec<HistoryEvent>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, } /// <p><p>Event within a workflow execution. A history event can be one of these types:</p> <ul> <li> <p> <code>ActivityTaskCancelRequested</code> – A <code>RequestCancelActivityTask</code> decision was received by the system.</p> </li> <li> <p> <code>ActivityTaskCanceled</code> – The activity task was successfully canceled.</p> </li> <li> <p> <code>ActivityTaskCompleted</code> – An activity worker successfully completed an activity task by calling <a>RespondActivityTaskCompleted</a>.</p> </li> <li> <p> <code>ActivityTaskFailed</code> – An activity worker failed an activity task by calling <a>RespondActivityTaskFailed</a>.</p> </li> <li> <p> <code>ActivityTaskScheduled</code> – An activity task was scheduled for execution.</p> </li> <li> <p> <code>ActivityTaskStarted</code> – The scheduled activity task was dispatched to a worker.</p> </li> <li> <p> <code>ActivityTaskTimedOut</code> – The activity task timed out.</p> </li> <li> <p> <code>CancelTimerFailed</code> – Failed to process CancelTimer decision. This happens when the decision isn't configured properly, for example no timer exists with the specified timer Id.</p> </li> <li> <p> <code>CancelWorkflowExecutionFailed</code> – A request to cancel a workflow execution failed.</p> </li> <li> <p> <code>ChildWorkflowExecutionCanceled</code> – A child workflow execution, started by this workflow execution, was canceled and closed.</p> </li> <li> <p> <code>ChildWorkflowExecutionCompleted</code> – A child workflow execution, started by this workflow execution, completed successfully and was closed.</p> </li> <li> <p> <code>ChildWorkflowExecutionFailed</code> – A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.</p> </li> <li> <p> <code>ChildWorkflowExecutionStarted</code> – A child workflow execution was successfully started.</p> </li> <li> <p> <code>ChildWorkflowExecutionTerminated</code> – A child workflow execution, started by this workflow execution, was terminated.</p> </li> <li> <p> <code>ChildWorkflowExecutionTimedOut</code> – A child workflow execution, started by this workflow execution, timed out and was closed.</p> </li> <li> <p> <code>CompleteWorkflowExecutionFailed</code> – The workflow execution failed to complete.</p> </li> <li> <p> <code>ContinueAsNewWorkflowExecutionFailed</code> – The workflow execution failed to complete after being continued as a new workflow execution.</p> </li> <li> <p> <code>DecisionTaskCompleted</code> – The decider successfully completed a decision task by calling <a>RespondDecisionTaskCompleted</a>.</p> </li> <li> <p> <code>DecisionTaskScheduled</code> – A decision task was scheduled for the workflow execution.</p> </li> <li> <p> <code>DecisionTaskStarted</code> – The decision task was dispatched to a decider.</p> </li> <li> <p> <code>DecisionTaskTimedOut</code> – The decision task timed out.</p> </li> <li> <p> <code>ExternalWorkflowExecutionCancelRequested</code> – Request to cancel an external workflow execution was successfully delivered to the target execution.</p> </li> <li> <p> <code>ExternalWorkflowExecutionSignaled</code> – A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.</p> </li> <li> <p> <code>FailWorkflowExecutionFailed</code> – A request to mark a workflow execution as failed, itself failed.</p> </li> <li> <p> <code>MarkerRecorded</code> – A marker was recorded in the workflow history as the result of a <code>RecordMarker</code> decision.</p> </li> <li> <p> <code>RecordMarkerFailed</code> – A <code>RecordMarker</code> decision was returned as failed.</p> </li> <li> <p> <code>RequestCancelActivityTaskFailed</code> – Failed to process RequestCancelActivityTask decision. This happens when the decision isn't configured properly.</p> </li> <li> <p> <code>RequestCancelExternalWorkflowExecutionFailed</code> – Request to cancel an external workflow execution failed.</p> </li> <li> <p> <code>RequestCancelExternalWorkflowExecutionInitiated</code> – A request was made to request the cancellation of an external workflow execution.</p> </li> <li> <p> <code>ScheduleActivityTaskFailed</code> – Failed to process ScheduleActivityTask decision. This happens when the decision isn't configured properly, for example the activity type specified isn't registered.</p> </li> <li> <p> <code>SignalExternalWorkflowExecutionFailed</code> – The request to signal an external workflow execution failed.</p> </li> <li> <p> <code>SignalExternalWorkflowExecutionInitiated</code> – A request to signal an external workflow was made.</p> </li> <li> <p> <code>StartActivityTaskFailed</code> – A scheduled activity task failed to start.</p> </li> <li> <p> <code>StartChildWorkflowExecutionFailed</code> – Failed to process StartChildWorkflowExecution decision. This happens when the decision isn't configured properly, for example the workflow type specified isn't registered.</p> </li> <li> <p> <code>StartChildWorkflowExecutionInitiated</code> – A request was made to start a child workflow execution.</p> </li> <li> <p> <code>StartTimerFailed</code> – Failed to process StartTimer decision. This happens when the decision isn't configured properly, for example a timer already exists with the specified timer Id.</p> </li> <li> <p> <code>TimerCanceled</code> – A timer, previously started for this workflow execution, was successfully canceled.</p> </li> <li> <p> <code>TimerFired</code> – A timer, previously started for this workflow execution, fired.</p> </li> <li> <p> <code>TimerStarted</code> – A timer was started for the workflow execution due to a <code>StartTimer</code> decision.</p> </li> <li> <p> <code>WorkflowExecutionCancelRequested</code> – A request to cancel this workflow execution was made.</p> </li> <li> <p> <code>WorkflowExecutionCanceled</code> – The workflow execution was successfully canceled and closed.</p> </li> <li> <p> <code>WorkflowExecutionCompleted</code> – The workflow execution was closed due to successful completion.</p> </li> <li> <p> <code>WorkflowExecutionContinuedAsNew</code> – The workflow execution was closed and a new execution of the same type was created with the same workflowId.</p> </li> <li> <p> <code>WorkflowExecutionFailed</code> – The workflow execution closed due to a failure.</p> </li> <li> <p> <code>WorkflowExecutionSignaled</code> – An external signal was received for the workflow execution.</p> </li> <li> <p> <code>WorkflowExecutionStarted</code> – The workflow execution was started.</p> </li> <li> <p> <code>WorkflowExecutionTerminated</code> – The workflow execution was terminated.</p> </li> <li> <p> <code>WorkflowExecutionTimedOut</code> – The workflow execution was closed because a time out was exceeded.</p> </li> </ul></p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct HistoryEvent { /// <p>If the event is of type <code>ActivityTaskcancelRequested</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskCancelRequestedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_cancel_requested_event_attributes: Option<ActivityTaskCancelRequestedEventAttributes>, /// <p>If the event is of type <code>ActivityTaskCanceled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskCanceledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_canceled_event_attributes: Option<ActivityTaskCanceledEventAttributes>, /// <p>If the event is of type <code>ActivityTaskCompleted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskCompletedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_completed_event_attributes: Option<ActivityTaskCompletedEventAttributes>, /// <p>If the event is of type <code>ActivityTaskFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_failed_event_attributes: Option<ActivityTaskFailedEventAttributes>, /// <p>If the event is of type <code>ActivityTaskScheduled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskScheduledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_scheduled_event_attributes: Option<ActivityTaskScheduledEventAttributes>, /// <p>If the event is of type <code>ActivityTaskStarted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskStartedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_started_event_attributes: Option<ActivityTaskStartedEventAttributes>, /// <p>If the event is of type <code>ActivityTaskTimedOut</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "activityTaskTimedOutEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub activity_task_timed_out_event_attributes: Option<ActivityTaskTimedOutEventAttributes>, /// <p>If the event is of type <code>CancelTimerFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "cancelTimerFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub cancel_timer_failed_event_attributes: Option<CancelTimerFailedEventAttributes>, /// <p>If the event is of type <code>CancelWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "cancelWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub cancel_workflow_execution_failed_event_attributes: Option<CancelWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>ChildWorkflowExecutionCanceled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "childWorkflowExecutionCanceledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub child_workflow_execution_canceled_event_attributes: Option<ChildWorkflowExecutionCanceledEventAttributes>, /// <p>If the event is of type <code>ChildWorkflowExecutionCompleted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "childWorkflowExecutionCompletedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub child_workflow_execution_completed_event_attributes: Option<ChildWorkflowExecutionCompletedEventAttributes>, /// <p>If the event is of type <code>ChildWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "childWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub child_workflow_execution_failed_event_attributes: Option<ChildWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>ChildWorkflowExecutionStarted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "childWorkflowExecutionStartedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub child_workflow_execution_started_event_attributes: Option<ChildWorkflowExecutionStartedEventAttributes>, /// <p>If the event is of type <code>ChildWorkflowExecutionTerminated</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "childWorkflowExecutionTerminatedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub child_workflow_execution_terminated_event_attributes: Option<ChildWorkflowExecutionTerminatedEventAttributes>, /// <p>If the event is of type <code>ChildWorkflowExecutionTimedOut</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "childWorkflowExecutionTimedOutEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub child_workflow_execution_timed_out_event_attributes: Option<ChildWorkflowExecutionTimedOutEventAttributes>, /// <p>If the event is of type <code>CompleteWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "completeWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub complete_workflow_execution_failed_event_attributes: Option<CompleteWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>ContinueAsNewWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "continueAsNewWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub continue_as_new_workflow_execution_failed_event_attributes: Option<ContinueAsNewWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>DecisionTaskCompleted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "decisionTaskCompletedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub decision_task_completed_event_attributes: Option<DecisionTaskCompletedEventAttributes>, /// <p>If the event is of type <code>DecisionTaskScheduled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "decisionTaskScheduledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub decision_task_scheduled_event_attributes: Option<DecisionTaskScheduledEventAttributes>, /// <p>If the event is of type <code>DecisionTaskStarted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "decisionTaskStartedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub decision_task_started_event_attributes: Option<DecisionTaskStartedEventAttributes>, /// <p>If the event is of type <code>DecisionTaskTimedOut</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "decisionTaskTimedOutEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub decision_task_timed_out_event_attributes: Option<DecisionTaskTimedOutEventAttributes>, /// <p>The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.</p> #[serde(rename = "eventId")] pub event_id: i64, /// <p>The date and time when the event occurred.</p> #[serde(rename = "eventTimestamp")] pub event_timestamp: f64, /// <p>The type of the history event.</p> #[serde(rename = "eventType")] pub event_type: String, /// <p>If the event is of type <code>ExternalWorkflowExecutionCancelRequested</code> then this member is set and provides detailed information about the event. It isn't set for other event types. </p> #[serde(rename = "externalWorkflowExecutionCancelRequestedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub external_workflow_execution_cancel_requested_event_attributes: Option<ExternalWorkflowExecutionCancelRequestedEventAttributes>, /// <p>If the event is of type <code>ExternalWorkflowExecutionSignaled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "externalWorkflowExecutionSignaledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub external_workflow_execution_signaled_event_attributes: Option<ExternalWorkflowExecutionSignaledEventAttributes>, /// <p>If the event is of type <code>FailWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "failWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub fail_workflow_execution_failed_event_attributes: Option<FailWorkflowExecutionFailedEventAttributes>, /// <p>Provides the details of the <code>LambdaFunctionCompleted</code> event. It isn't set for other event types.</p> #[serde(rename = "lambdaFunctionCompletedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_function_completed_event_attributes: Option<LambdaFunctionCompletedEventAttributes>, /// <p>Provides the details of the <code>LambdaFunctionFailed</code> event. It isn't set for other event types.</p> #[serde(rename = "lambdaFunctionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_function_failed_event_attributes: Option<LambdaFunctionFailedEventAttributes>, /// <p>Provides the details of the <code>LambdaFunctionScheduled</code> event. It isn't set for other event types.</p> #[serde(rename = "lambdaFunctionScheduledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_function_scheduled_event_attributes: Option<LambdaFunctionScheduledEventAttributes>, /// <p>Provides the details of the <code>LambdaFunctionStarted</code> event. It isn't set for other event types.</p> #[serde(rename = "lambdaFunctionStartedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_function_started_event_attributes: Option<LambdaFunctionStartedEventAttributes>, /// <p>Provides the details of the <code>LambdaFunctionTimedOut</code> event. It isn't set for other event types.</p> #[serde(rename = "lambdaFunctionTimedOutEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_function_timed_out_event_attributes: Option<LambdaFunctionTimedOutEventAttributes>, /// <p>If the event is of type <code>MarkerRecorded</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "markerRecordedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub marker_recorded_event_attributes: Option<MarkerRecordedEventAttributes>, /// <p>If the event is of type <code>DecisionTaskFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "recordMarkerFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub record_marker_failed_event_attributes: Option<RecordMarkerFailedEventAttributes>, /// <p>If the event is of type <code>RequestCancelActivityTaskFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "requestCancelActivityTaskFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub request_cancel_activity_task_failed_event_attributes: Option<RequestCancelActivityTaskFailedEventAttributes>, /// <p>If the event is of type <code>RequestCancelExternalWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "requestCancelExternalWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub request_cancel_external_workflow_execution_failed_event_attributes: Option<RequestCancelExternalWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>RequestCancelExternalWorkflowExecutionInitiated</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "requestCancelExternalWorkflowExecutionInitiatedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub request_cancel_external_workflow_execution_initiated_event_attributes: Option<RequestCancelExternalWorkflowExecutionInitiatedEventAttributes>, /// <p>If the event is of type <code>ScheduleActivityTaskFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "scheduleActivityTaskFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_activity_task_failed_event_attributes: Option<ScheduleActivityTaskFailedEventAttributes>, /// <p>Provides the details of the <code>ScheduleLambdaFunctionFailed</code> event. It isn't set for other event types.</p> #[serde(rename = "scheduleLambdaFunctionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_lambda_function_failed_event_attributes: Option<ScheduleLambdaFunctionFailedEventAttributes>, /// <p>If the event is of type <code>SignalExternalWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "signalExternalWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub signal_external_workflow_execution_failed_event_attributes: Option<SignalExternalWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>SignalExternalWorkflowExecutionInitiated</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "signalExternalWorkflowExecutionInitiatedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub signal_external_workflow_execution_initiated_event_attributes: Option<SignalExternalWorkflowExecutionInitiatedEventAttributes>, /// <p>If the event is of type <code>StartChildWorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "startChildWorkflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub start_child_workflow_execution_failed_event_attributes: Option<StartChildWorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>StartChildWorkflowExecutionInitiated</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "startChildWorkflowExecutionInitiatedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub start_child_workflow_execution_initiated_event_attributes: Option<StartChildWorkflowExecutionInitiatedEventAttributes>, /// <p>Provides the details of the <code>StartLambdaFunctionFailed</code> event. It isn't set for other event types.</p> #[serde(rename = "startLambdaFunctionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub start_lambda_function_failed_event_attributes: Option<StartLambdaFunctionFailedEventAttributes>, /// <p>If the event is of type <code>StartTimerFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "startTimerFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub start_timer_failed_event_attributes: Option<StartTimerFailedEventAttributes>, /// <p>If the event is of type <code>TimerCanceled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "timerCanceledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub timer_canceled_event_attributes: Option<TimerCanceledEventAttributes>, /// <p>If the event is of type <code>TimerFired</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "timerFiredEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub timer_fired_event_attributes: Option<TimerFiredEventAttributes>, /// <p>If the event is of type <code>TimerStarted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "timerStartedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub timer_started_event_attributes: Option<TimerStartedEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionCancelRequested</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionCancelRequestedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_cancel_requested_event_attributes: Option<WorkflowExecutionCancelRequestedEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionCanceled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionCanceledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_canceled_event_attributes: Option<WorkflowExecutionCanceledEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionCompleted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionCompletedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_completed_event_attributes: Option<WorkflowExecutionCompletedEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionContinuedAsNew</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionContinuedAsNewEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_continued_as_new_event_attributes: Option<WorkflowExecutionContinuedAsNewEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionFailed</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionFailedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_failed_event_attributes: Option<WorkflowExecutionFailedEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionSignaled</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionSignaledEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_signaled_event_attributes: Option<WorkflowExecutionSignaledEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionStarted</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionStartedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_started_event_attributes: Option<WorkflowExecutionStartedEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionTerminated</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionTerminatedEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_terminated_event_attributes: Option<WorkflowExecutionTerminatedEventAttributes>, /// <p>If the event is of type <code>WorkflowExecutionTimedOut</code> then this member is set and provides detailed information about the event. It isn't set for other event types.</p> #[serde(rename = "workflowExecutionTimedOutEventAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub workflow_execution_timed_out_event_attributes: Option<WorkflowExecutionTimedOutEventAttributes>, } /// <p>Provides the details of the <code>LambdaFunctionCompleted</code> event. It isn't set for other event types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct LambdaFunctionCompletedEventAttributes { /// <p>The results of the Lambda task.</p> #[serde(rename = "result")] #[serde(skip_serializing_if = "Option::is_none")] pub result: Option<String>, /// <p>The ID of the <code>LambdaFunctionScheduled</code> event that was recorded when this Lambda task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>LambdaFunctionStarted</code> event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, } /// <p>Provides the details of the <code>LambdaFunctionFailed</code> event. It isn't set for other event types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct LambdaFunctionFailedEventAttributes { /// <p>The details of the failure.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The reason provided for the failure.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, /// <p>The ID of the <code>LambdaFunctionScheduled</code> event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>LambdaFunctionStarted</code> event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, } /// <p>Provides the details of the <code>LambdaFunctionScheduled</code> event. It isn't set for other event types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct LambdaFunctionScheduledEventAttributes { /// <p>Data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>LambdaFunctionCompleted</code> event corresponding to the decision that resulted in scheduling this activity task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The unique ID of the Lambda task.</p> #[serde(rename = "id")] pub id: String, /// <p>The input provided to the Lambda task.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The name of the Lambda function.</p> #[serde(rename = "name")] pub name: String, /// <p>The maximum amount of time a worker can take to process the Lambda task.</p> #[serde(rename = "startToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub start_to_close_timeout: Option<String>, } /// <p>Provides the details of the <code>LambdaFunctionStarted</code> event. It isn't set for other event types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct LambdaFunctionStartedEventAttributes { /// <p>The ID of the <code>LambdaFunctionScheduled</code> event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, } /// <p>Provides details of the <code>LambdaFunctionTimedOut</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct LambdaFunctionTimedOutEventAttributes { /// <p>The ID of the <code>LambdaFunctionScheduled</code> event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] pub scheduled_event_id: i64, /// <p>The ID of the <code>ActivityTaskStarted</code> event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The type of the timeout that caused this event.</p> #[serde(rename = "timeoutType")] #[serde(skip_serializing_if = "Option::is_none")] pub timeout_type: Option<String>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ListActivityTypesInput { /// <p>The name of the domain in which the activity types have been registered.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p>If specified, only lists the activity types that have this name.</p> #[serde(rename = "name")] #[serde(skip_serializing_if = "Option::is_none")] pub name: Option<String>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>Specifies the registration status of the activity types to list.</p> #[serde(rename = "registrationStatus")] pub registration_status: String, /// <p>When set to <code>true</code>, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by <code>name</code> of the activity types.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ListClosedWorkflowExecutionsInput { /// <p><p>If specified, only workflow executions that match this <i>close status</i> are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "closeStatusFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub close_status_filter: Option<CloseStatusFilter>, /// <p><p>If specified, the workflow executions are included in the returned results based on whether their close times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their close times.</p> <note> <p> <code>startTimeFilter</code> and <code>closeTimeFilter</code> are mutually exclusive. You must specify one of these in a request but not both.</p> </note></p> #[serde(rename = "closeTimeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub close_time_filter: Option<ExecutionTimeFilter>, /// <p>The name of the domain that contains the workflow executions to list.</p> #[serde(rename = "domain")] pub domain: String, /// <p><p>If specified, only workflow executions matching the workflow ID specified in the filter are returned.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "executionFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_filter: Option<WorkflowExecutionFilter>, /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>When set to <code>true</code>, returns the results in reverse order. By default the results are returned in descending order of the start or the close time of the executions.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, /// <p><p>If specified, the workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their start times.</p> <note> <p> <code>startTimeFilter</code> and <code>closeTimeFilter</code> are mutually exclusive. You must specify one of these in a request but not both.</p> </note></p> #[serde(rename = "startTimeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub start_time_filter: Option<ExecutionTimeFilter>, /// <p><p>If specified, only executions that have the matching tag are listed.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "tagFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_filter: Option<TagFilter>, /// <p><p>If specified, only executions of the type specified in the filter are returned.</p> <note> <p> <code>closeStatusFilter</code>, <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "typeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub type_filter: Option<WorkflowTypeFilter>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ListDomainsInput { /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>Specifies the registration status of the domains to list.</p> #[serde(rename = "registrationStatus")] pub registration_status: String, /// <p>When set to <code>true</code>, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by <code>name</code> of the domains.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ListOpenWorkflowExecutionsInput { /// <p>The name of the domain that contains the workflow executions to list.</p> #[serde(rename = "domain")] pub domain: String, /// <p><p>If specified, only workflow executions matching the workflow ID specified in the filter are returned.</p> <note> <p> <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "executionFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_filter: Option<WorkflowExecutionFilter>, /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>When set to <code>true</code>, returns the results in reverse order. By default the results are returned in descending order of the start time of the executions.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, /// <p>Workflow executions are included in the returned results based on whether their start times are within the range specified by this filter.</p> #[serde(rename = "startTimeFilter")] pub start_time_filter: ExecutionTimeFilter, /// <p><p>If specified, only executions that have the matching tag are listed.</p> <note> <p> <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "tagFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_filter: Option<TagFilter>, /// <p><p>If specified, only executions of the type specified in the filter are returned.</p> <note> <p> <code>executionFilter</code>, <code>typeFilter</code> and <code>tagFilter</code> are mutually exclusive. You can specify at most one of these in a request.</p> </note></p> #[serde(rename = "typeFilter")] #[serde(skip_serializing_if = "Option::is_none")] pub type_filter: Option<WorkflowTypeFilter>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ListWorkflowTypesInput { /// <p>The name of the domain in which the workflow types have been registered.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p>If specified, lists the workflow type with this name.</p> #[serde(rename = "name")] #[serde(skip_serializing_if = "Option::is_none")] pub name: Option<String>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>Specifies the registration status of the workflow types to list.</p> #[serde(rename = "registrationStatus")] pub registration_status: String, /// <p>When set to <code>true</code>, returns the results in reverse order. By default the results are returned in ascending alphabetical order of the <code>name</code> of the workflow types.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, } /// <p>Provides the details of the <code>MarkerRecorded</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct MarkerRecordedEventAttributes { /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>RecordMarker</code> decision that requested this marker. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The details of the marker.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The name of the marker.</p> #[serde(rename = "markerName")] pub marker_name: String, } /// <p>Contains the count of tasks in a task list.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct PendingTaskCount { /// <p>The number of tasks in the task list.</p> #[serde(rename = "count")] pub count: i64, /// <p>If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.</p> #[serde(rename = "truncated")] #[serde(skip_serializing_if = "Option::is_none")] pub truncated: Option<bool>, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct PollForActivityTaskInput { /// <p>The name of the domain that contains the task lists being polled.</p> #[serde(rename = "domain")] pub domain: String, /// <p>Identity of the worker making the request, recorded in the <code>ActivityTaskStarted</code> event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.</p> #[serde(rename = "identity")] #[serde(skip_serializing_if = "Option::is_none")] pub identity: Option<String>, /// <p>Specifies the task list to poll for activity tasks.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "taskList")] pub task_list: TaskList, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct PollForDecisionTaskInput { /// <p>The name of the domain containing the task lists to poll.</p> #[serde(rename = "domain")] pub domain: String, /// <p>Identity of the decider making the request, which is recorded in the DecisionTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.</p> #[serde(rename = "identity")] #[serde(skip_serializing_if = "Option::is_none")] pub identity: Option<String>, /// <p>The maximum number of results that are returned per call. <code>nextPageToken</code> can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size <i>smaller</i> than the maximum.</p> <p>This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.</p> #[serde(rename = "maximumPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub maximum_page_size: Option<i64>, /// <p><p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> <note> <p>The <code>nextPageToken</code> returned by this action cannot be used with <a>GetWorkflowExecutionHistory</a> to get the next page. You must call <a>PollForDecisionTask</a> again (with the <code>nextPageToken</code>) to retrieve the next page of history records. Calling <a>PollForDecisionTask</a> with a <code>nextPageToken</code> doesn't return a new decision task.</p> </note></p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>When set to <code>true</code>, returns the events in reverse order. By default the results are returned in ascending order of the <code>eventTimestamp</code> of the events.</p> #[serde(rename = "reverseOrder")] #[serde(skip_serializing_if = "Option::is_none")] pub reverse_order: Option<bool>, /// <p>Specifies the task list to poll for decision tasks.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "taskList")] pub task_list: TaskList, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RecordActivityTaskHeartbeatInput { /// <p>If specified, contains details about the progress of the task.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p><p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <important> <p> <code>taskToken</code> is generated by the service and should be treated as an opaque value. If the task is passed to another process, its <code>taskToken</code> must also be passed. This enables it to provide its progress and respond with results. </p> </important></p> #[serde(rename = "taskToken")] pub task_token: String, } /// <p>Provides the details of the <code>RecordMarker</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RecordMarkerDecisionAttributes { /// <p> The details of the marker.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p> The name of the marker.</p> #[serde(rename = "markerName")] pub marker_name: String, } /// <p>Provides the details of the <code>RecordMarkerFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct RecordMarkerFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>RecordMarkerFailed</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The marker's name.</p> #[serde(rename = "markerName")] pub marker_name: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RegisterActivityTypeInput { /// <p>If set, specifies the default maximum time before which a worker processing a task of this type must report progress by calling <a>RecordActivityTaskHeartbeat</a>. If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using the <code>ScheduleActivityTask</code> <a>Decision</a>. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an <code>UnknownResource</code> fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskHeartbeatTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_heartbeat_timeout: Option<String>, /// <p>If set, specifies the default task list to use for scheduling tasks of this activity type. This default task list is used if a task list isn't provided when a task is scheduled through the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> #[serde(rename = "defaultTaskList")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_list: Option<TaskList>, /// <p>The default task priority to assign to the activity type. If not assigned, then <code>0</code> is used. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>in the <i>Amazon SWF Developer Guide</i>.</i>.</p> #[serde(rename = "defaultTaskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_priority: Option<String>, /// <p>If set, specifies the default maximum duration for a task of this activity type. This default can be overridden when scheduling an activity task using the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskScheduleToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_schedule_to_close_timeout: Option<String>, /// <p>If set, specifies the default maximum duration that a task of this activity type can wait before being assigned to a worker. This default can be overridden when scheduling an activity task using the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskScheduleToStartTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_schedule_to_start_timeout: Option<String>, /// <p>If set, specifies the default maximum duration that a worker can take to process tasks of this activity type. This default can be overridden when scheduling an activity task using the <code>ScheduleActivityTask</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_start_to_close_timeout: Option<String>, /// <p>A textual description of the activity type.</p> #[serde(rename = "description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>The name of the domain in which this activity is to be registered.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The name of the activity type within the domain.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "name")] pub name: String, /// <p>The version of the activity type.</p> <note> <p>The activity type consists of the name and version, the combination of which must be unique within the domain.</p> </note> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "version")] pub version: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RegisterDomainInput { /// <p>A text description of the domain.</p> #[serde(rename = "description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>Name of the domain to register. The name must be unique in the region that the domain is registered in.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "name")] pub name: String, /// <p>The duration (in days) that records and histories of workflow executions on the domain should be kept by the service. After the retention period, the workflow execution isn't available in the results of visibility calls.</p> <p>If you pass the value <code>NONE</code> or <code>0</code> (zero), then the workflow execution history isn't retained. As soon as the workflow execution completes, the execution record and its history are deleted.</p> <p>The maximum workflow execution retention period is 90 days. For more information about Amazon SWF service limits, see: <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html">Amazon SWF Service Limits</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "workflowExecutionRetentionPeriodInDays")] pub workflow_execution_retention_period_in_days: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RegisterWorkflowTypeInput { /// <p><p>If set, specifies the default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "defaultChildPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub default_child_policy: Option<String>, /// <p>If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the <a>StartWorkflowExecution</a> Action or <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> <p>The duration is specified in seconds; an integer greater than or equal to 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for <code>defaultExecutionStartToCloseTimeout</code>; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit always causes the workflow execution to time out.</p> #[serde(rename = "defaultExecutionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_execution_start_to_close_timeout: Option<String>, /// <p><p>The default IAM role attached to this workflow type.</p> <note> <p>Executions of this workflow type need IAM roles to invoke Lambda functions. If you don't specify an IAM role when you start this workflow type, the default Lambda role is attached to the execution. For more information, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html">http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "defaultLambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub default_lambda_role: Option<String>, /// <p>If set, specifies the default task list to use for scheduling decision tasks for executions of this workflow type. This default is used only if a task list isn't provided when starting the execution through the <a>StartWorkflowExecution</a> Action or <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> #[serde(rename = "defaultTaskList")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_list: Option<TaskList>, /// <p>The default task priority to assign to the workflow type. If not assigned, then <code>0</code> is used. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "defaultTaskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_priority: Option<String>, /// <p>If set, specifies the default maximum duration of decision tasks for this workflow type. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_start_to_close_timeout: Option<String>, /// <p>Textual description of the workflow type.</p> #[serde(rename = "description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>The name of the domain in which to register the workflow type.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The name of the workflow type.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "name")] pub name: String, /// <p>The version of the workflow type.</p> <note> <p>The workflow type consists of the name and version, the combination of which must be unique within the domain. To get a list of all currently registered workflow types, use the <a>ListWorkflowTypes</a> action.</p> </note> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "version")] pub version: String, } /// <p>Provides the details of the <code>RequestCancelActivityTask</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RequestCancelActivityTaskDecisionAttributes { /// <p>The <code>activityId</code> of the activity task to be canceled.</p> #[serde(rename = "activityId")] pub activity_id: String, } /// <p>Provides the details of the <code>RequestCancelActivityTaskFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct RequestCancelActivityTaskFailedEventAttributes { /// <p>The activityId provided in the <code>RequestCancelActivityTask</code> decision that failed.</p> #[serde(rename = "activityId")] pub activity_id: String, /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>RequestCancelActivityTask</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } /// <p>Provides the details of the <code>RequestCancelExternalWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RequestCancelExternalWorkflowExecutionDecisionAttributes { /// <p>The data attached to the event that can be used by the decider in subsequent workflow tasks.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The <code>runId</code> of the external workflow execution to cancel.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p> The <code>workflowId</code> of the external workflow execution to cancel.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Provides the details of the <code>RequestCancelExternalWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct RequestCancelExternalWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>RequestCancelExternalWorkflowExecution</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The ID of the <code>RequestCancelExternalWorkflowExecutionInitiated</code> event corresponding to the <code>RequestCancelExternalWorkflowExecution</code> decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The <code>runId</code> of the external workflow execution.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The <code>workflowId</code> of the external workflow to which the cancel request was to be delivered.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Provides the details of the <code>RequestCancelExternalWorkflowExecutionInitiated</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct RequestCancelExternalWorkflowExecutionInitiatedEventAttributes { /// <p>Data attached to the event that can be used by the decider in subsequent workflow tasks.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>RequestCancelExternalWorkflowExecution</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The <code>runId</code> of the external workflow execution to be canceled.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The <code>workflowId</code> of the external workflow execution to be canceled.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RequestCancelWorkflowExecutionInput { /// <p>The name of the domain containing the workflow execution to cancel.</p> #[serde(rename = "domain")] pub domain: String, /// <p>The runId of the workflow execution to cancel.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The workflowId of the workflow execution to cancel.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RespondActivityTaskCanceledInput { /// <p> Information about the cancellation.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p><p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <important> <p> <code>taskToken</code> is generated by the service and should be treated as an opaque value. If the task is passed to another process, its <code>taskToken</code> must also be passed. This enables it to provide its progress and respond with results.</p> </important></p> #[serde(rename = "taskToken")] pub task_token: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RespondActivityTaskCompletedInput { /// <p>The result of the activity task. It is a free form string that is implementation specific.</p> #[serde(rename = "result")] #[serde(skip_serializing_if = "Option::is_none")] pub result: Option<String>, /// <p><p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <important> <p> <code>taskToken</code> is generated by the service and should be treated as an opaque value. If the task is passed to another process, its <code>taskToken</code> must also be passed. This enables it to provide its progress and respond with results.</p> </important></p> #[serde(rename = "taskToken")] pub task_token: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RespondActivityTaskFailedInput { /// <p> Detailed information about the failure.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>Description of the error that may assist in diagnostics.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, /// <p><p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <important> <p> <code>taskToken</code> is generated by the service and should be treated as an opaque value. If the task is passed to another process, its <code>taskToken</code> must also be passed. This enables it to provide its progress and respond with results.</p> </important></p> #[serde(rename = "taskToken")] pub task_token: String, } /// <p>Input data for a TaskCompleted response to a decision task.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct RespondDecisionTaskCompletedInput { /// <p>The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the <a>Decision</a> structure for details.</p> #[serde(rename = "decisions")] #[serde(skip_serializing_if = "Option::is_none")] pub decisions: Option<Vec<Decision>>, /// <p>User defined context to add to workflow execution.</p> #[serde(rename = "executionContext")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_context: Option<String>, /// <p><p>The <code>taskToken</code> from the <a>DecisionTask</a>.</p> <important> <p> <code>taskToken</code> is generated by the service and should be treated as an opaque value. If the task is passed to another process, its <code>taskToken</code> must also be passed. This enables it to provide its progress and respond with results.</p> </important></p> #[serde(rename = "taskToken")] pub task_token: String, } /// <p>Specifies the <code>runId</code> of a workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct Run { /// <p>The <code>runId</code> of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, } /// <p>Provides the details of the <code>ScheduleActivityTask</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>activityType.name</code> – String constraint. The key is <code>swf:activityType.name</code>.</p> </li> <li> <p> <code>activityType.version</code> – String constraint. The key is <code>swf:activityType.version</code>.</p> </li> <li> <p> <code>taskList</code> – String constraint. The key is <code>swf:taskList.name</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ScheduleActivityTaskDecisionAttributes { /// <p> The <code>activityId</code> of the activity task.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "activityId")] pub activity_id: String, /// <p> The type of the activity task to schedule.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p>Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling <a>RecordActivityTaskHeartbeat</a>. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it is ignored. This overrides the default heartbeat timeout specified when registering the activity type using <a>RegisterActivityType</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "heartbeatTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub heartbeat_timeout: Option<String>, /// <p>The input provided to the activity task.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p><p>The maximum duration for this activity task.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "scheduleToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_to_close_timeout: Option<String>, /// <p><p> If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using <a>RegisterActivityType</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "scheduleToStartTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub schedule_to_start_timeout: Option<String>, /// <p><p>If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using <a>RegisterActivityType</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "startToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub start_to_close_timeout: Option<String>, /// <p>If set, specifies the name of the task list in which to schedule the activity task. If not specified, the <code>defaultTaskList</code> registered with the activity type is used.</p> <note> <p>A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault is returned.</p> </note> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "taskList")] #[serde(skip_serializing_if = "Option::is_none")] pub task_list: Option<TaskList>, /// <p> If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using <a>RegisterActivityType</a>. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, } /// <p>Provides the details of the <code>ScheduleActivityTaskFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ScheduleActivityTaskFailedEventAttributes { /// <p>The activityId provided in the <code>ScheduleActivityTask</code> decision that failed.</p> #[serde(rename = "activityId")] pub activity_id: String, /// <p>The activity type provided in the <code>ScheduleActivityTask</code> decision that failed.</p> #[serde(rename = "activityType")] pub activity_type: ActivityType, /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, } /// <p>Decision attributes specified in <code>scheduleLambdaFunctionDecisionAttributes</code> within the list of decisions <code>decisions</code> passed to <a>RespondDecisionTaskCompleted</a>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct ScheduleLambdaFunctionDecisionAttributes { /// <p>The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>A string that identifies the Lambda function execution in the event history.</p> #[serde(rename = "id")] pub id: String, /// <p>The optional input data to be supplied to the Lambda function.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The name, or ARN, of the Lambda function to schedule.</p> #[serde(rename = "name")] pub name: String, /// <p>The timeout value, in seconds, after which the Lambda function is considered to be failed once it has started. This can be any integer from 1-300 (1s-5m). If no value is supplied, than a default value of 300s is assumed.</p> #[serde(rename = "startToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub start_to_close_timeout: Option<String>, } /// <p>Provides the details of the <code>ScheduleLambdaFunctionFailed</code> event. It isn't set for other event types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct ScheduleLambdaFunctionFailedEventAttributes { /// <p><p>The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>LambdaFunctionCompleted</code> event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The ID provided in the <code>ScheduleLambdaFunction</code> decision that failed. </p> #[serde(rename = "id")] pub id: String, /// <p>The name of the Lambda function.</p> #[serde(rename = "name")] pub name: String, } /// <p>Provides the details of the <code>SignalExternalWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct SignalExternalWorkflowExecutionDecisionAttributes { /// <p>The data attached to the event that can be used by the decider in subsequent decision tasks.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p> The input data to be provided with the signal. The target workflow execution uses the signal name and input data to process the signal.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The <code>runId</code> of the workflow execution to be signaled.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p> The name of the signal.The target workflow execution uses the signal name and input to process the signal.</p> #[serde(rename = "signalName")] pub signal_name: String, /// <p> The <code>workflowId</code> of the workflow execution to be signaled.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Provides the details of the <code>SignalExternalWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct SignalExternalWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>SignalExternalWorkflowExecution</code> decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The ID of the <code>SignalExternalWorkflowExecutionInitiated</code> event corresponding to the <code>SignalExternalWorkflowExecution</code> decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The <code>runId</code> of the external workflow execution that the signal was being delivered to.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The <code>workflowId</code> of the external workflow execution that the signal was being delivered to.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Provides the details of the <code>SignalExternalWorkflowExecutionInitiated</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct SignalExternalWorkflowExecutionInitiatedEventAttributes { /// <p>Data attached to the event that can be used by the decider in subsequent decision tasks.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>SignalExternalWorkflowExecution</code> decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The input provided to the signal.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The <code>runId</code> of the external workflow execution to send the signal to.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The name of the signal.</p> #[serde(rename = "signalName")] pub signal_name: String, /// <p>The <code>workflowId</code> of the external workflow execution.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct SignalWorkflowExecutionInput { /// <p>The name of the domain containing the workflow execution to signal.</p> #[serde(rename = "domain")] pub domain: String, /// <p>Data to attach to the <code>WorkflowExecutionSignaled</code> event in the target workflow execution's history.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The runId of the workflow execution to signal.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The name of the signal. This name must be meaningful to the target workflow.</p> #[serde(rename = "signalName")] pub signal_name: String, /// <p>The workflowId of the workflow execution to signal.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Provides the details of the <code>StartChildWorkflowExecution</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagList.member.N</code> – The key is "swf:tagList.N" where N is the tag number from 0 to 4, inclusive.</p> </li> <li> <p> <code>taskList</code> – String constraint. The key is <code>swf:taskList.name</code>.</p> </li> <li> <p> <code>workflowType.name</code> – String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code> – String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct StartChildWorkflowExecutionDecisionAttributes { /// <p><p> If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using <a>RegisterWorkflowType</a>.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul> <note> <p>A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "childPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub child_policy: Option<String>, /// <p>The data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the child workflow execution.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p><p>The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "executionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_start_to_close_timeout: Option<String>, /// <p>The input to be provided to the workflow execution.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The IAM role attached to the child workflow execution.</p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The list of tags to associate with the child workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling <a>ListOpenWorkflowExecutions</a> or <a>ListClosedWorkflowExecutions</a> and specifying a <a>TagFilter</a>.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The name of the task list to be used for decision tasks of the child workflow execution.</p> <note> <p>A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault is returned.</p> </note> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "taskList")] #[serde(skip_serializing_if = "Option::is_none")] pub task_list: Option<TaskList>, /// <p> A task priority that, if set, specifies the priority for a decision task of this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p><p>Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the <code>defaultTaskStartToCloseTimout</code> specified when registering the workflow type using <a>RegisterWorkflowType</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "taskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub task_start_to_close_timeout: Option<String>, /// <p> The <code>workflowId</code> of the workflow execution.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "workflowId")] pub workflow_id: String, /// <p> The type of the workflow execution to be started.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>StartChildWorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct StartChildWorkflowExecutionFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>When <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision fails because it lacks sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html"> Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>StartChildWorkflowExecution</code> <a>Decision</a> to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>When the <code>cause</code> is <code>WORKFLOW_ALREADY_RUNNING</code>, <code>initiatedEventId</code> is the ID of the <code>StartChildWorkflowExecutionInitiated</code> event that corresponds to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.</p> <p>When the <code>cause</code> isn't <code>WORKFLOW_ALREADY_RUNNING</code>, <code>initiatedEventId</code> is set to <code>0</code> because the <code>StartChildWorkflowExecutionInitiated</code> event doesn't exist.</p> #[serde(rename = "initiatedEventId")] pub initiated_event_id: i64, /// <p>The <code>workflowId</code> of the child workflow execution.</p> #[serde(rename = "workflowId")] pub workflow_id: String, /// <p>The workflow type provided in the <code>StartChildWorkflowExecution</code> <a>Decision</a> that failed.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>StartChildWorkflowExecutionInitiated</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct StartChildWorkflowExecutionInitiatedEventAttributes { /// <p><p>The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the <a>TerminateWorkflowExecution</a> action or due to an expired timeout.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "childPolicy")] pub child_policy: String, /// <p>Data attached to the event that can be used by the decider in subsequent decision tasks. This data isn't sent to the activity.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>StartChildWorkflowExecution</code> <a>Decision</a> to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The maximum duration for the child workflow execution. If the workflow execution isn't closed within this duration, it is timed out and force-terminated.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "executionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_start_to_close_timeout: Option<String>, /// <p>The inputs provided to the child workflow execution.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The IAM role to attach to the child workflow execution.</p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The list of tags to associated with the child workflow execution.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The name of the task list used for the decision tasks of the child workflow execution.</p> #[serde(rename = "taskList")] pub task_list: TaskList, /// <p> The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p>The maximum duration allowed for the decision tasks for this workflow execution.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "taskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub task_start_to_close_timeout: Option<String>, /// <p>The <code>workflowId</code> of the child workflow execution.</p> #[serde(rename = "workflowId")] pub workflow_id: String, /// <p>The type of the child workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>StartLambdaFunctionFailed</code> event. It isn't set for other event types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct StartLambdaFunctionFailedEventAttributes { /// <p><p>The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html">Lambda Tasks</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] #[serde(skip_serializing_if = "Option::is_none")] pub cause: Option<String>, /// <p>A description that can help diagnose the cause of the fault.</p> #[serde(rename = "message")] #[serde(skip_serializing_if = "Option::is_none")] pub message: Option<String>, /// <p>The ID of the <code>ActivityTaskScheduled</code> event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.</p> #[serde(rename = "scheduledEventId")] #[serde(skip_serializing_if = "Option::is_none")] pub scheduled_event_id: Option<i64>, } /// <p>Provides the details of the <code>StartTimer</code> decision.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this decision's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct StartTimerDecisionAttributes { /// <p>The data attached to the event that can be used by the decider in subsequent workflow tasks.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p> The duration to wait before firing the timer.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>.</p> #[serde(rename = "startToFireTimeout")] pub start_to_fire_timeout: String, /// <p> The unique ID of the timer.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "timerId")] pub timer_id: String, } /// <p>Provides the details of the <code>StartTimerFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct StartTimerFailedEventAttributes { /// <p><p>The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.</p> <note> <p>If <code>cause</code> is set to <code>OPERATION<em>NOT</em>PERMITTED</code>, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "cause")] pub cause: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>StartTimer</code> decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The timerId provided in the <code>StartTimer</code> decision that failed.</p> #[serde(rename = "timerId")] pub timer_id: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct StartWorkflowExecutionInput { /// <p><p>If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using <a>RegisterWorkflowType</a>.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul> <note> <p>A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "childPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub child_policy: Option<String>, /// <p>The name of the domain in which the workflow execution is created.</p> #[serde(rename = "domain")] pub domain: String, /// <p><p>The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.</p> <p>The duration is specified in seconds; an integer greater than or equal to <code>0</code>. Exceeding this limit causes the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for this timeout; there is a one-year max limit on the time that a workflow execution can run.</p> <note> <p>An execution start-to-close timeout must be specified either through this parameter or as a default when the workflow type is registered. If neither this parameter nor a default execution start-to-close timeout is specified, a fault is returned.</p> </note></p> #[serde(rename = "executionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_start_to_close_timeout: Option<String>, /// <p>The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This <code>input</code> is made available to the new workflow execution in the <code>WorkflowExecutionStarted</code> history event.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p><p>The IAM role to attach to this workflow execution.</p> <note> <p>Executions of this workflow type need IAM roles to invoke Lambda functions. If you don't attach an IAM role, any attempt to schedule a Lambda task fails. This results in a <code>ScheduleLambdaFunctionFailed</code> history event. For more information, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html">http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The list of tags to associate with the workflow execution. You can specify a maximum of 5 tags. You can list workflow executions with a specific tag by calling <a>ListOpenWorkflowExecutions</a> or <a>ListClosedWorkflowExecutions</a> and specifying a <a>TagFilter</a>.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The task list to use for the decision tasks generated for this workflow execution. This overrides the <code>defaultTaskList</code> specified when registering the workflow type.</p> <note> <p>A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault is returned.</p> </note> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "taskList")] #[serde(skip_serializing_if = "Option::is_none")] pub task_list: Option<TaskList>, /// <p>The task priority to use for this workflow execution. This overrides any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type is used. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p><p>Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the <code>defaultTaskStartToCloseTimout</code> specified when registering the workflow type using <a>RegisterWorkflowType</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> <note> <p>A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "taskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub task_start_to_close_timeout: Option<String>, /// <p>The user defined identifier associated with the workflow execution. You can use this to associate a custom identifier with the workflow execution. You may specify the same identifier if a workflow execution is logically a <i>restart</i> of a previous execution. You cannot have two open workflow executions with the same <code>workflowId</code> at the same time.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must not contain the literal string <code>arn</code>.</p> #[serde(rename = "workflowId")] pub workflow_id: String, /// <p>The type of the workflow to start.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Used to filter the workflow executions in visibility APIs based on a tag.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct TagFilter { /// <p> Specifies the tag that must be associated with the execution for it to meet the filter criteria.</p> #[serde(rename = "tag")] pub tag: String, } /// <p>Represents a task list.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct TaskList { /// <p>The name of the task list.</p> #[serde(rename = "name")] pub name: String, } #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct TerminateWorkflowExecutionInput { /// <p><p>If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul> <note> <p>A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.</p> </note></p> #[serde(rename = "childPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub child_policy: Option<String>, /// <p> Details for terminating the workflow execution.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The domain of the workflow execution to terminate.</p> #[serde(rename = "domain")] pub domain: String, /// <p> A descriptive reason for terminating the workflow execution.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, /// <p>The runId of the workflow execution to terminate.</p> #[serde(rename = "runId")] #[serde(skip_serializing_if = "Option::is_none")] pub run_id: Option<String>, /// <p>The workflowId of the workflow execution to terminate.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p> Provides the details of the <code>TimerCanceled</code> event. </p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct TimerCanceledEventAttributes { /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>CancelTimer</code> decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The ID of the <code>TimerStarted</code> event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The unique ID of the timer that was canceled.</p> #[serde(rename = "timerId")] pub timer_id: String, } /// <p>Provides the details of the <code>TimerFired</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct TimerFiredEventAttributes { /// <p>The ID of the <code>TimerStarted</code> event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "startedEventId")] pub started_event_id: i64, /// <p>The unique ID of the timer that fired.</p> #[serde(rename = "timerId")] pub timer_id: String, } /// <p>Provides the details of the <code>TimerStarted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct TimerStartedEventAttributes { /// <p>Data attached to the event that can be used by the decider in subsequent workflow tasks.</p> #[serde(rename = "control")] #[serde(skip_serializing_if = "Option::is_none")] pub control: Option<String>, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>StartTimer</code> decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The duration of time after which the timer fires.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>.</p> #[serde(rename = "startToFireTimeout")] pub start_to_fire_timeout: String, /// <p>The unique ID of the timer that was started.</p> #[serde(rename = "timerId")] pub timer_id: String, } /// <p>Represents a workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct WorkflowExecution { /// <p>A system-generated unique identifier for the workflow execution.</p> #[serde(rename = "runId")] pub run_id: String, /// <p>The user defined identifier associated with the workflow execution.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Provides the details of the <code>WorkflowExecutionCancelRequested</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionCancelRequestedEventAttributes { /// <p>If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.</p> #[serde(rename = "cause")] #[serde(skip_serializing_if = "Option::is_none")] pub cause: Option<String>, /// <p>The ID of the <code>RequestCancelExternalWorkflowExecutionInitiated</code> event corresponding to the <code>RequestCancelExternalWorkflowExecution</code> decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "externalInitiatedEventId")] #[serde(skip_serializing_if = "Option::is_none")] pub external_initiated_event_id: Option<i64>, /// <p>The external workflow execution for which the cancellation was requested.</p> #[serde(rename = "externalWorkflowExecution")] #[serde(skip_serializing_if = "Option::is_none")] pub external_workflow_execution: Option<WorkflowExecution>, } /// <p>Provides the details of the <code>WorkflowExecutionCanceled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionCanceledEventAttributes { /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>CancelWorkflowExecution</code> decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The details of the cancellation.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, } /// <p>Provides the details of the <code>WorkflowExecutionCompleted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionCompletedEventAttributes { /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>CompleteWorkflowExecution</code> decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The result produced by the workflow execution upon successful completion.</p> #[serde(rename = "result")] #[serde(skip_serializing_if = "Option::is_none")] pub result: Option<String>, } /// <p>The configuration settings for a workflow execution including timeout values, tasklist etc. These configuration settings are determined from the defaults specified when registering the workflow type and those specified when starting the workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionConfiguration { /// <p><p>The policy to use for the child workflow executions if this workflow execution is terminated, by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "childPolicy")] pub child_policy: String, /// <p>The total duration for this workflow execution.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "executionStartToCloseTimeout")] pub execution_start_to_close_timeout: String, /// <p>The IAM role attached to the child workflow execution.</p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The task list used for the decision tasks generated for this workflow execution.</p> #[serde(rename = "taskList")] pub task_list: TaskList, /// <p>The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p>The maximum duration allowed for decision tasks for this workflow execution.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "taskStartToCloseTimeout")] pub task_start_to_close_timeout: String, } /// <p>Provides the details of the <code>WorkflowExecutionContinuedAsNew</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionContinuedAsNewEventAttributes { /// <p><p>The policy to use for the child workflow executions of the new execution if it is terminated by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "childPolicy")] pub child_policy: String, /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>ContinueAsNewWorkflowExecution</code> decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The total duration allowed for the new workflow execution.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "executionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_start_to_close_timeout: Option<String>, /// <p>The input provided to the new workflow execution.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The IAM role to attach to the new (continued) workflow execution.</p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The <code>runId</code> of the new workflow execution.</p> #[serde(rename = "newExecutionRunId")] pub new_execution_run_id: String, /// <p>The list of tags associated with the new workflow execution.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The task list to use for the decisions of the new (continued) workflow execution.</p> #[serde(rename = "taskList")] pub task_list: TaskList, /// <p>The priority of the task to use for the decisions of the new (continued) workflow execution.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p>The maximum duration of decision tasks for the new workflow execution.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "taskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub task_start_to_close_timeout: Option<String>, /// <p>The workflow type of this execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Contains the count of workflow executions returned from <a>CountOpenWorkflowExecutions</a> or <a>CountClosedWorkflowExecutions</a> </p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionCount { /// <p>The number of workflow executions.</p> #[serde(rename = "count")] pub count: i64, /// <p>If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.</p> #[serde(rename = "truncated")] #[serde(skip_serializing_if = "Option::is_none")] pub truncated: Option<bool>, } /// <p>Contains details about a workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionDetail { /// <p>The configuration settings for this workflow execution including timeout values, tasklist etc.</p> #[serde(rename = "executionConfiguration")] pub execution_configuration: WorkflowExecutionConfiguration, /// <p>Information about the workflow execution.</p> #[serde(rename = "executionInfo")] pub execution_info: WorkflowExecutionInfo, /// <p>The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.</p> #[serde(rename = "latestActivityTaskTimestamp")] #[serde(skip_serializing_if = "Option::is_none")] pub latest_activity_task_timestamp: Option<f64>, /// <p>The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using <a>RespondDecisionTaskCompleted</a>.</p> #[serde(rename = "latestExecutionContext")] #[serde(skip_serializing_if = "Option::is_none")] pub latest_execution_context: Option<String>, /// <p>The number of tasks for this workflow execution. This includes open and closed tasks of all types.</p> #[serde(rename = "openCounts")] pub open_counts: WorkflowExecutionOpenCounts, } /// <p>Provides the details of the <code>WorkflowExecutionFailed</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionFailedEventAttributes { /// <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the decision task that resulted in the <code>FailWorkflowExecution</code> decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "decisionTaskCompletedEventId")] pub decision_task_completed_event_id: i64, /// <p>The details of the failure.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The descriptive reason provided for the failure.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, } /// <p>Used to filter the workflow executions in visibility APIs by their <code>workflowId</code>.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct WorkflowExecutionFilter { /// <p>The workflowId to pass of match the criteria of this filter.</p> #[serde(rename = "workflowId")] pub workflow_id: String, } /// <p>Contains information about a workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionInfo { /// <p>Set to true if a cancellation is requested for this workflow execution.</p> #[serde(rename = "cancelRequested")] #[serde(skip_serializing_if = "Option::is_none")] pub cancel_requested: Option<bool>, /// <p><p>If the execution status is closed then this specifies how the execution was closed:</p> <ul> <li> <p> <code>COMPLETED</code> – the execution was successfully completed.</p> </li> <li> <p> <code>CANCELED</code> – the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.</p> </li> <li> <p> <code>TERMINATED</code> – the execution was force terminated.</p> </li> <li> <p> <code>FAILED</code> – the execution failed to complete.</p> </li> <li> <p> <code>TIMED<em>OUT</code> – the execution did not complete in the alloted time and was automatically timed out.</p> </li> <li> <p> <code>CONTINUED</em>AS_NEW</code> – the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.</p> </li> </ul></p> #[serde(rename = "closeStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub close_status: Option<String>, /// <p>The time when the workflow execution was closed. Set only if the execution status is CLOSED.</p> #[serde(rename = "closeTimestamp")] #[serde(skip_serializing_if = "Option::is_none")] pub close_timestamp: Option<f64>, /// <p>The workflow execution this information is about.</p> #[serde(rename = "execution")] pub execution: WorkflowExecution, /// <p>The current status of the execution.</p> #[serde(rename = "executionStatus")] pub execution_status: String, /// <p>If this workflow execution is a child of another execution then contains the workflow execution that started this execution.</p> #[serde(rename = "parent")] #[serde(skip_serializing_if = "Option::is_none")] pub parent: Option<WorkflowExecution>, /// <p>The time when the execution was started.</p> #[serde(rename = "startTimestamp")] pub start_timestamp: f64, /// <p>The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The type of the workflow execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Contains a paginated list of information about workflow executions.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionInfos { /// <p>The list of workflow information structures.</p> #[serde(rename = "executionInfos")] pub execution_infos: Vec<WorkflowExecutionInfo>, /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, } /// <p>Contains the counts of open tasks, child workflow executions and timers for a workflow execution.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionOpenCounts { /// <p>The count of activity tasks whose status is <code>OPEN</code>.</p> #[serde(rename = "openActivityTasks")] pub open_activity_tasks: i64, /// <p>The count of child workflow executions whose status is <code>OPEN</code>.</p> #[serde(rename = "openChildWorkflowExecutions")] pub open_child_workflow_executions: i64, /// <p>The count of decision tasks whose status is OPEN. A workflow execution can have at most one open decision task.</p> #[serde(rename = "openDecisionTasks")] pub open_decision_tasks: i64, /// <p>The count of Lambda tasks whose status is <code>OPEN</code>.</p> #[serde(rename = "openLambdaFunctions")] #[serde(skip_serializing_if = "Option::is_none")] pub open_lambda_functions: Option<i64>, /// <p>The count of timers started by this workflow execution that have not fired yet.</p> #[serde(rename = "openTimers")] pub open_timers: i64, } /// <p>Provides the details of the <code>WorkflowExecutionSignaled</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionSignaledEventAttributes { /// <p>The ID of the <code>SignalExternalWorkflowExecutionInitiated</code> event corresponding to the <code>SignalExternalWorkflow</code> decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.</p> #[serde(rename = "externalInitiatedEventId")] #[serde(skip_serializing_if = "Option::is_none")] pub external_initiated_event_id: Option<i64>, /// <p>The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.</p> #[serde(rename = "externalWorkflowExecution")] #[serde(skip_serializing_if = "Option::is_none")] pub external_workflow_execution: Option<WorkflowExecution>, /// <p>The inputs provided with the signal. The decider can use the signal name and inputs to determine how to process the signal.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.</p> #[serde(rename = "signalName")] pub signal_name: String, } /// <p>Provides details of <code>WorkflowExecutionStarted</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionStartedEventAttributes { /// <p><p>The policy to use for the child workflow executions if this workflow execution is terminated, by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "childPolicy")] pub child_policy: String, /// <p>If this workflow execution was started due to a <code>ContinueAsNewWorkflowExecution</code> decision, then it contains the <code>runId</code> of the previous workflow execution that was closed and continued as this execution.</p> #[serde(rename = "continuedExecutionRunId")] #[serde(skip_serializing_if = "Option::is_none")] pub continued_execution_run_id: Option<String>, /// <p>The maximum duration for this workflow execution.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "executionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execution_start_to_close_timeout: Option<String>, /// <p>The input provided to the workflow execution.</p> #[serde(rename = "input")] #[serde(skip_serializing_if = "Option::is_none")] pub input: Option<String>, /// <p>The IAM role attached to the workflow execution.</p> #[serde(rename = "lambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub lambda_role: Option<String>, /// <p>The ID of the <code>StartChildWorkflowExecutionInitiated</code> event corresponding to the <code>StartChildWorkflowExecution</code> <a>Decision</a> to start this workflow execution. The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.</p> #[serde(rename = "parentInitiatedEventId")] #[serde(skip_serializing_if = "Option::is_none")] pub parent_initiated_event_id: Option<i64>, /// <p>The source workflow execution that started this workflow execution. The member isn't set if the workflow execution was not started by a workflow.</p> #[serde(rename = "parentWorkflowExecution")] #[serde(skip_serializing_if = "Option::is_none")] pub parent_workflow_execution: Option<WorkflowExecution>, /// <p>The list of tags associated with this workflow execution. An execution can have up to 5 tags.</p> #[serde(rename = "tagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<String>>, /// <p>The name of the task list for scheduling the decision tasks for this workflow execution.</p> #[serde(rename = "taskList")] pub task_list: TaskList, /// <p>The priority of the decision tasks in the workflow execution.</p> #[serde(rename = "taskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub task_priority: Option<String>, /// <p>The maximum duration of decision tasks for this workflow type.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "taskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub task_start_to_close_timeout: Option<String>, /// <p>The workflow type of this execution.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Provides the details of the <code>WorkflowExecutionTerminated</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionTerminatedEventAttributes { /// <p>If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.</p> #[serde(rename = "cause")] #[serde(skip_serializing_if = "Option::is_none")] pub cause: Option<String>, /// <p><p>The policy used for the child workflow executions of this workflow execution.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "childPolicy")] pub child_policy: String, /// <p>The details provided for the termination.</p> #[serde(rename = "details")] #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, /// <p>The reason provided for the termination.</p> #[serde(rename = "reason")] #[serde(skip_serializing_if = "Option::is_none")] pub reason: Option<String>, } /// <p>Provides the details of the <code>WorkflowExecutionTimedOut</code> event.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowExecutionTimedOutEventAttributes { /// <p><p>The policy used for the child workflow executions of this workflow execution.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "childPolicy")] pub child_policy: String, /// <p>The type of timeout that caused this event.</p> #[serde(rename = "timeoutType")] pub timeout_type: String, } /// <p>Represents a workflow type.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct WorkflowType { /// <p><p> The name of the workflow type.</p> <note> <p>The combination of workflow type name and version must be unique with in a domain.</p> </note></p> #[serde(rename = "name")] pub name: String, /// <p><p> The version of the workflow type.</p> <note> <p>The combination of workflow type name and version must be unique with in a domain.</p> </note></p> #[serde(rename = "version")] pub version: String, } /// <p>The configuration settings of a workflow type.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowTypeConfiguration { /// <p><p> The default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the <a>TerminateWorkflowExecution</a> action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> <p>The supported child policies are:</p> <ul> <li> <p> <code>TERMINATE</code> – The child executions are terminated.</p> </li> <li> <p> <code>REQUEST_CANCEL</code> – A request to cancel is attempted for each child execution by recording a <code>WorkflowExecutionCancelRequested</code> event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> </li> <li> <p> <code>ABANDON</code> – No action is taken. The child executions continue to run.</p> </li> </ul></p> #[serde(rename = "defaultChildPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub default_child_policy: Option<String>, /// <p> The default maximum duration, specified when registering the workflow type, for executions of this workflow type. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultExecutionStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_execution_start_to_close_timeout: Option<String>, /// <p><p>The default IAM role attached to this workflow type.</p> <note> <p>Executions of this workflow type need IAM roles to invoke Lambda functions. If you don't specify an IAM role when starting this workflow type, the default Lambda role is attached to the execution. For more information, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html">http://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html</a> in the <i>Amazon SWF Developer Guide</i>.</p> </note></p> #[serde(rename = "defaultLambdaRole")] #[serde(skip_serializing_if = "Option::is_none")] pub default_lambda_role: Option<String>, /// <p> The default task list, specified when registering the workflow type, for decisions tasks scheduled for workflow executions of this type. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> #[serde(rename = "defaultTaskList")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_list: Option<TaskList>, /// <p> The default task priority, specified when registering the workflow type, for all decision tasks of this workflow type. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> decision.</p> <p>Valid values are integers that range from Java's <code>Integer.MIN_VALUE</code> (-2147483648) to <code>Integer.MAX_VALUE</code> (2147483647). Higher numbers indicate higher priority.</p> <p>For more information about setting task priority, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html">Setting Task Priority</a> in the <i>Amazon SWF Developer Guide</i>.</p> #[serde(rename = "defaultTaskPriority")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_priority: Option<String>, /// <p> The default maximum duration, specified when registering the workflow type, that a decision task for executions of this workflow type might take before returning completion or failure. If the task doesn'tdo close in the specified time then the task is automatically timed out and rescheduled. If the decider eventually reports a completion or failure, it is ignored. This default can be overridden when starting a workflow execution using the <a>StartWorkflowExecution</a> action or the <code>StartChildWorkflowExecution</code> <a>Decision</a>.</p> <p>The duration is specified in seconds, an integer greater than or equal to <code>0</code>. You can use <code>NONE</code> to specify unlimited duration.</p> #[serde(rename = "defaultTaskStartToCloseTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub default_task_start_to_close_timeout: Option<String>, } /// <p>Contains details about a workflow type.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowTypeDetail { /// <p>Configuration settings of the workflow type registered through <a>RegisterWorkflowType</a> </p> #[serde(rename = "configuration")] pub configuration: WorkflowTypeConfiguration, /// <p><p>General information about the workflow type.</p> <p>The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.</p> <ul> <li> <p> <code>REGISTERED</code> – The type is registered and available. Workers supporting this type should be running.</p> </li> <li> <p> <code>DEPRECATED</code> – The type was deprecated using <a>DeprecateWorkflowType</a>, but is still in use. You should keep workers supporting this type running. You cannot create new workflow executions of this type.</p> </li> </ul></p> #[serde(rename = "typeInfo")] pub type_info: WorkflowTypeInfo, } /// <p>Used to filter workflow execution query results by type. Each parameter, if specified, defines a rule that must be satisfied by each returned result.</p> #[derive(Default, Debug, Clone, PartialEq, Serialize)] pub struct WorkflowTypeFilter { /// <p> Name of the workflow type.</p> #[serde(rename = "name")] pub name: String, /// <p>Version of the workflow type.</p> #[serde(rename = "version")] #[serde(skip_serializing_if = "Option::is_none")] pub version: Option<String>, } /// <p>Contains information about a workflow type.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowTypeInfo { /// <p>The date when this type was registered.</p> #[serde(rename = "creationDate")] pub creation_date: f64, /// <p>If the type is in deprecated state, then it is set to the date when the type was deprecated.</p> #[serde(rename = "deprecationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub deprecation_date: Option<f64>, /// <p>The description of the type registered through <a>RegisterWorkflowType</a>.</p> #[serde(rename = "description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>The current status of the workflow type.</p> #[serde(rename = "status")] pub status: String, /// <p>The workflow type this information is about.</p> #[serde(rename = "workflowType")] pub workflow_type: WorkflowType, } /// <p>Contains a paginated list of information structures about workflow types.</p> #[derive(Default, Debug, Clone, PartialEq, Deserialize)] #[cfg_attr(test, derive(Serialize))] pub struct WorkflowTypeInfos { /// <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p> #[serde(rename = "nextPageToken")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_token: Option<String>, /// <p>The list of workflow type information.</p> #[serde(rename = "typeInfos")] pub type_infos: Vec<WorkflowTypeInfo>, } /// Errors returned by CountClosedWorkflowExecutions #[derive(Debug, PartialEq)] pub enum CountClosedWorkflowExecutionsError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl CountClosedWorkflowExecutionsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CountClosedWorkflowExecutionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( CountClosedWorkflowExecutionsError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( CountClosedWorkflowExecutionsError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for CountClosedWorkflowExecutionsError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for CountClosedWorkflowExecutionsError { fn description(&self) -> &str { match *self { CountClosedWorkflowExecutionsError::OperationNotPermittedFault(ref cause) => cause, CountClosedWorkflowExecutionsError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by CountOpenWorkflowExecutions #[derive(Debug, PartialEq)] pub enum CountOpenWorkflowExecutionsError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl CountOpenWorkflowExecutionsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CountOpenWorkflowExecutionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( CountOpenWorkflowExecutionsError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( CountOpenWorkflowExecutionsError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for CountOpenWorkflowExecutionsError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for CountOpenWorkflowExecutionsError { fn description(&self) -> &str { match *self { CountOpenWorkflowExecutionsError::OperationNotPermittedFault(ref cause) => cause, CountOpenWorkflowExecutionsError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by CountPendingActivityTasks #[derive(Debug, PartialEq)] pub enum CountPendingActivityTasksError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl CountPendingActivityTasksError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CountPendingActivityTasksError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( CountPendingActivityTasksError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( CountPendingActivityTasksError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for CountPendingActivityTasksError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for CountPendingActivityTasksError { fn description(&self) -> &str { match *self { CountPendingActivityTasksError::OperationNotPermittedFault(ref cause) => cause, CountPendingActivityTasksError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by CountPendingDecisionTasks #[derive(Debug, PartialEq)] pub enum CountPendingDecisionTasksError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl CountPendingDecisionTasksError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CountPendingDecisionTasksError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( CountPendingDecisionTasksError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( CountPendingDecisionTasksError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for CountPendingDecisionTasksError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for CountPendingDecisionTasksError { fn description(&self) -> &str { match *self { CountPendingDecisionTasksError::OperationNotPermittedFault(ref cause) => cause, CountPendingDecisionTasksError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DeprecateActivityType #[derive(Debug, PartialEq)] pub enum DeprecateActivityTypeError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the specified activity or workflow type was already deprecated.</p> TypeDeprecatedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DeprecateActivityTypeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeprecateActivityTypeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( DeprecateActivityTypeError::OperationNotPermittedFault(err.msg), ) } "TypeDeprecatedFault" => { return RusotoError::Service(DeprecateActivityTypeError::TypeDeprecatedFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(DeprecateActivityTypeError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DeprecateActivityTypeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DeprecateActivityTypeError { fn description(&self) -> &str { match *self { DeprecateActivityTypeError::OperationNotPermittedFault(ref cause) => cause, DeprecateActivityTypeError::TypeDeprecatedFault(ref cause) => cause, DeprecateActivityTypeError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DeprecateDomain #[derive(Debug, PartialEq)] pub enum DeprecateDomainError { /// <p>Returned when the specified domain has been deprecated.</p> DomainDeprecatedFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DeprecateDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeprecateDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DomainDeprecatedFault" => { return RusotoError::Service(DeprecateDomainError::DomainDeprecatedFault( err.msg, )) } "OperationNotPermittedFault" => { return RusotoError::Service(DeprecateDomainError::OperationNotPermittedFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(DeprecateDomainError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DeprecateDomainError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DeprecateDomainError { fn description(&self) -> &str { match *self { DeprecateDomainError::DomainDeprecatedFault(ref cause) => cause, DeprecateDomainError::OperationNotPermittedFault(ref cause) => cause, DeprecateDomainError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DeprecateWorkflowType #[derive(Debug, PartialEq)] pub enum DeprecateWorkflowTypeError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the specified activity or workflow type was already deprecated.</p> TypeDeprecatedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DeprecateWorkflowTypeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeprecateWorkflowTypeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( DeprecateWorkflowTypeError::OperationNotPermittedFault(err.msg), ) } "TypeDeprecatedFault" => { return RusotoError::Service(DeprecateWorkflowTypeError::TypeDeprecatedFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(DeprecateWorkflowTypeError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DeprecateWorkflowTypeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DeprecateWorkflowTypeError { fn description(&self) -> &str { match *self { DeprecateWorkflowTypeError::OperationNotPermittedFault(ref cause) => cause, DeprecateWorkflowTypeError::TypeDeprecatedFault(ref cause) => cause, DeprecateWorkflowTypeError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DescribeActivityType #[derive(Debug, PartialEq)] pub enum DescribeActivityTypeError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DescribeActivityTypeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeActivityTypeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( DescribeActivityTypeError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service(DescribeActivityTypeError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DescribeActivityTypeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DescribeActivityTypeError { fn description(&self) -> &str { match *self { DescribeActivityTypeError::OperationNotPermittedFault(ref cause) => cause, DescribeActivityTypeError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DescribeDomain #[derive(Debug, PartialEq)] pub enum DescribeDomainError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DescribeDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service(DescribeDomainError::OperationNotPermittedFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(DescribeDomainError::UnknownResourceFault(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DescribeDomainError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DescribeDomainError { fn description(&self) -> &str { match *self { DescribeDomainError::OperationNotPermittedFault(ref cause) => cause, DescribeDomainError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DescribeWorkflowExecution #[derive(Debug, PartialEq)] pub enum DescribeWorkflowExecutionError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DescribeWorkflowExecutionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeWorkflowExecutionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( DescribeWorkflowExecutionError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( DescribeWorkflowExecutionError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DescribeWorkflowExecutionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DescribeWorkflowExecutionError { fn description(&self) -> &str { match *self { DescribeWorkflowExecutionError::OperationNotPermittedFault(ref cause) => cause, DescribeWorkflowExecutionError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by DescribeWorkflowType #[derive(Debug, PartialEq)] pub enum DescribeWorkflowTypeError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl DescribeWorkflowTypeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeWorkflowTypeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( DescribeWorkflowTypeError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service(DescribeWorkflowTypeError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for DescribeWorkflowTypeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for DescribeWorkflowTypeError { fn description(&self) -> &str { match *self { DescribeWorkflowTypeError::OperationNotPermittedFault(ref cause) => cause, DescribeWorkflowTypeError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by GetWorkflowExecutionHistory #[derive(Debug, PartialEq)] pub enum GetWorkflowExecutionHistoryError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl GetWorkflowExecutionHistoryError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<GetWorkflowExecutionHistoryError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( GetWorkflowExecutionHistoryError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( GetWorkflowExecutionHistoryError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for GetWorkflowExecutionHistoryError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for GetWorkflowExecutionHistoryError { fn description(&self) -> &str { match *self { GetWorkflowExecutionHistoryError::OperationNotPermittedFault(ref cause) => cause, GetWorkflowExecutionHistoryError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by ListActivityTypes #[derive(Debug, PartialEq)] pub enum ListActivityTypesError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl ListActivityTypesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListActivityTypesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( ListActivityTypesError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service(ListActivityTypesError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for ListActivityTypesError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for ListActivityTypesError { fn description(&self) -> &str { match *self { ListActivityTypesError::OperationNotPermittedFault(ref cause) => cause, ListActivityTypesError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by ListClosedWorkflowExecutions #[derive(Debug, PartialEq)] pub enum ListClosedWorkflowExecutionsError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl ListClosedWorkflowExecutionsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<ListClosedWorkflowExecutionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( ListClosedWorkflowExecutionsError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( ListClosedWorkflowExecutionsError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for ListClosedWorkflowExecutionsError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for ListClosedWorkflowExecutionsError { fn description(&self) -> &str { match *self { ListClosedWorkflowExecutionsError::OperationNotPermittedFault(ref cause) => cause, ListClosedWorkflowExecutionsError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by ListDomains #[derive(Debug, PartialEq)] pub enum ListDomainsError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), } impl ListDomainsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDomainsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service(ListDomainsError::OperationNotPermittedFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for ListDomainsError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for ListDomainsError { fn description(&self) -> &str { match *self { ListDomainsError::OperationNotPermittedFault(ref cause) => cause, } } } /// Errors returned by ListOpenWorkflowExecutions #[derive(Debug, PartialEq)] pub enum ListOpenWorkflowExecutionsError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl ListOpenWorkflowExecutionsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<ListOpenWorkflowExecutionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( ListOpenWorkflowExecutionsError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( ListOpenWorkflowExecutionsError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for ListOpenWorkflowExecutionsError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for ListOpenWorkflowExecutionsError { fn description(&self) -> &str { match *self { ListOpenWorkflowExecutionsError::OperationNotPermittedFault(ref cause) => cause, ListOpenWorkflowExecutionsError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by ListWorkflowTypes #[derive(Debug, PartialEq)] pub enum ListWorkflowTypesError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl ListWorkflowTypesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListWorkflowTypesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( ListWorkflowTypesError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service(ListWorkflowTypesError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for ListWorkflowTypesError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for ListWorkflowTypesError { fn description(&self) -> &str { match *self { ListWorkflowTypesError::OperationNotPermittedFault(ref cause) => cause, ListWorkflowTypesError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by PollForActivityTask #[derive(Debug, PartialEq)] pub enum PollForActivityTaskError { /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p> LimitExceededFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl PollForActivityTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PollForActivityTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "LimitExceededFault" => { return RusotoError::Service(PollForActivityTaskError::LimitExceededFault( err.msg, )) } "OperationNotPermittedFault" => { return RusotoError::Service( PollForActivityTaskError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service(PollForActivityTaskError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for PollForActivityTaskError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for PollForActivityTaskError { fn description(&self) -> &str { match *self { PollForActivityTaskError::LimitExceededFault(ref cause) => cause, PollForActivityTaskError::OperationNotPermittedFault(ref cause) => cause, PollForActivityTaskError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by PollForDecisionTask #[derive(Debug, PartialEq)] pub enum PollForDecisionTaskError { /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p> LimitExceededFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl PollForDecisionTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PollForDecisionTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "LimitExceededFault" => { return RusotoError::Service(PollForDecisionTaskError::LimitExceededFault( err.msg, )) } "OperationNotPermittedFault" => { return RusotoError::Service( PollForDecisionTaskError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service(PollForDecisionTaskError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for PollForDecisionTaskError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for PollForDecisionTaskError { fn description(&self) -> &str { match *self { PollForDecisionTaskError::LimitExceededFault(ref cause) => cause, PollForDecisionTaskError::OperationNotPermittedFault(ref cause) => cause, PollForDecisionTaskError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RecordActivityTaskHeartbeat #[derive(Debug, PartialEq)] pub enum RecordActivityTaskHeartbeatError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RecordActivityTaskHeartbeatError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<RecordActivityTaskHeartbeatError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( RecordActivityTaskHeartbeatError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( RecordActivityTaskHeartbeatError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RecordActivityTaskHeartbeatError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RecordActivityTaskHeartbeatError { fn description(&self) -> &str { match *self { RecordActivityTaskHeartbeatError::OperationNotPermittedFault(ref cause) => cause, RecordActivityTaskHeartbeatError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RegisterActivityType #[derive(Debug, PartialEq)] pub enum RegisterActivityTypeError { /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p> LimitExceededFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned if the type already exists in the specified domain. You get this fault even if the existing type is in deprecated status. You can specify another version if the intent is to create a new distinct version of the type.</p> TypeAlreadyExistsFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RegisterActivityTypeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RegisterActivityTypeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "LimitExceededFault" => { return RusotoError::Service(RegisterActivityTypeError::LimitExceededFault( err.msg, )) } "OperationNotPermittedFault" => { return RusotoError::Service( RegisterActivityTypeError::OperationNotPermittedFault(err.msg), ) } "TypeAlreadyExistsFault" => { return RusotoError::Service(RegisterActivityTypeError::TypeAlreadyExistsFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(RegisterActivityTypeError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RegisterActivityTypeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RegisterActivityTypeError { fn description(&self) -> &str { match *self { RegisterActivityTypeError::LimitExceededFault(ref cause) => cause, RegisterActivityTypeError::OperationNotPermittedFault(ref cause) => cause, RegisterActivityTypeError::TypeAlreadyExistsFault(ref cause) => cause, RegisterActivityTypeError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RegisterDomain #[derive(Debug, PartialEq)] pub enum RegisterDomainError { /// <p>Returned if the specified domain already exists. You get this fault even if the existing domain is in deprecated status.</p> DomainAlreadyExistsFault(String), /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p> LimitExceededFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), } impl RegisterDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RegisterDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DomainAlreadyExistsFault" => { return RusotoError::Service(RegisterDomainError::DomainAlreadyExistsFault( err.msg, )) } "LimitExceededFault" => { return RusotoError::Service(RegisterDomainError::LimitExceededFault(err.msg)) } "OperationNotPermittedFault" => { return RusotoError::Service(RegisterDomainError::OperationNotPermittedFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RegisterDomainError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RegisterDomainError { fn description(&self) -> &str { match *self { RegisterDomainError::DomainAlreadyExistsFault(ref cause) => cause, RegisterDomainError::LimitExceededFault(ref cause) => cause, RegisterDomainError::OperationNotPermittedFault(ref cause) => cause, } } } /// Errors returned by RegisterWorkflowType #[derive(Debug, PartialEq)] pub enum RegisterWorkflowTypeError { /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p> LimitExceededFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned if the type already exists in the specified domain. You get this fault even if the existing type is in deprecated status. You can specify another version if the intent is to create a new distinct version of the type.</p> TypeAlreadyExistsFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RegisterWorkflowTypeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RegisterWorkflowTypeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "LimitExceededFault" => { return RusotoError::Service(RegisterWorkflowTypeError::LimitExceededFault( err.msg, )) } "OperationNotPermittedFault" => { return RusotoError::Service( RegisterWorkflowTypeError::OperationNotPermittedFault(err.msg), ) } "TypeAlreadyExistsFault" => { return RusotoError::Service(RegisterWorkflowTypeError::TypeAlreadyExistsFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(RegisterWorkflowTypeError::UnknownResourceFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RegisterWorkflowTypeError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RegisterWorkflowTypeError { fn description(&self) -> &str { match *self { RegisterWorkflowTypeError::LimitExceededFault(ref cause) => cause, RegisterWorkflowTypeError::OperationNotPermittedFault(ref cause) => cause, RegisterWorkflowTypeError::TypeAlreadyExistsFault(ref cause) => cause, RegisterWorkflowTypeError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RequestCancelWorkflowExecution #[derive(Debug, PartialEq)] pub enum RequestCancelWorkflowExecutionError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RequestCancelWorkflowExecutionError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<RequestCancelWorkflowExecutionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( RequestCancelWorkflowExecutionError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( RequestCancelWorkflowExecutionError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RequestCancelWorkflowExecutionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RequestCancelWorkflowExecutionError { fn description(&self) -> &str { match *self { RequestCancelWorkflowExecutionError::OperationNotPermittedFault(ref cause) => cause, RequestCancelWorkflowExecutionError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RespondActivityTaskCanceled #[derive(Debug, PartialEq)] pub enum RespondActivityTaskCanceledError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RespondActivityTaskCanceledError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<RespondActivityTaskCanceledError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( RespondActivityTaskCanceledError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( RespondActivityTaskCanceledError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RespondActivityTaskCanceledError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RespondActivityTaskCanceledError { fn description(&self) -> &str { match *self { RespondActivityTaskCanceledError::OperationNotPermittedFault(ref cause) => cause, RespondActivityTaskCanceledError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RespondActivityTaskCompleted #[derive(Debug, PartialEq)] pub enum RespondActivityTaskCompletedError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RespondActivityTaskCompletedError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<RespondActivityTaskCompletedError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( RespondActivityTaskCompletedError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( RespondActivityTaskCompletedError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RespondActivityTaskCompletedError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RespondActivityTaskCompletedError { fn description(&self) -> &str { match *self { RespondActivityTaskCompletedError::OperationNotPermittedFault(ref cause) => cause, RespondActivityTaskCompletedError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RespondActivityTaskFailed #[derive(Debug, PartialEq)] pub enum RespondActivityTaskFailedError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RespondActivityTaskFailedError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RespondActivityTaskFailedError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( RespondActivityTaskFailedError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( RespondActivityTaskFailedError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RespondActivityTaskFailedError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RespondActivityTaskFailedError { fn description(&self) -> &str { match *self { RespondActivityTaskFailedError::OperationNotPermittedFault(ref cause) => cause, RespondActivityTaskFailedError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by RespondDecisionTaskCompleted #[derive(Debug, PartialEq)] pub enum RespondDecisionTaskCompletedError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl RespondDecisionTaskCompletedError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<RespondDecisionTaskCompletedError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( RespondDecisionTaskCompletedError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( RespondDecisionTaskCompletedError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for RespondDecisionTaskCompletedError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for RespondDecisionTaskCompletedError { fn description(&self) -> &str { match *self { RespondDecisionTaskCompletedError::OperationNotPermittedFault(ref cause) => cause, RespondDecisionTaskCompletedError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by SignalWorkflowExecution #[derive(Debug, PartialEq)] pub enum SignalWorkflowExecutionError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl SignalWorkflowExecutionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<SignalWorkflowExecutionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( SignalWorkflowExecutionError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( SignalWorkflowExecutionError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for SignalWorkflowExecutionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for SignalWorkflowExecutionError { fn description(&self) -> &str { match *self { SignalWorkflowExecutionError::OperationNotPermittedFault(ref cause) => cause, SignalWorkflowExecutionError::UnknownResourceFault(ref cause) => cause, } } } /// Errors returned by StartWorkflowExecution #[derive(Debug, PartialEq)] pub enum StartWorkflowExecutionError { /// <p><p>The <code>StartWorkflowExecution</code> API action was called without the required parameters set.</p> <p>Some workflow execution parameters, such as the decision <code>taskList</code>, must be set to start the execution. However, these parameters might have been set as defaults when the workflow type was registered. In this case, you can omit these parameters from the <code>StartWorkflowExecution</code> call and Amazon SWF uses the values defined in the workflow type.</p> <note> <p>If these parameters aren't set and no default parameters were defined in the workflow type, this error is displayed.</p> </note></p> DefaultUndefinedFault(String), /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p> LimitExceededFault(String), /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the specified activity or workflow type was already deprecated.</p> TypeDeprecatedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), /// <p>Returned by <a>StartWorkflowExecution</a> when an open execution with the same workflowId is already running in the specified domain.</p> WorkflowExecutionAlreadyStartedFault(String), } impl StartWorkflowExecutionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartWorkflowExecutionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DefaultUndefinedFault" => { return RusotoError::Service( StartWorkflowExecutionError::DefaultUndefinedFault(err.msg), ) } "LimitExceededFault" => { return RusotoError::Service(StartWorkflowExecutionError::LimitExceededFault( err.msg, )) } "OperationNotPermittedFault" => { return RusotoError::Service( StartWorkflowExecutionError::OperationNotPermittedFault(err.msg), ) } "TypeDeprecatedFault" => { return RusotoError::Service(StartWorkflowExecutionError::TypeDeprecatedFault( err.msg, )) } "UnknownResourceFault" => { return RusotoError::Service(StartWorkflowExecutionError::UnknownResourceFault( err.msg, )) } "WorkflowExecutionAlreadyStartedFault" => { return RusotoError::Service( StartWorkflowExecutionError::WorkflowExecutionAlreadyStartedFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for StartWorkflowExecutionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for StartWorkflowExecutionError { fn description(&self) -> &str { match *self { StartWorkflowExecutionError::DefaultUndefinedFault(ref cause) => cause, StartWorkflowExecutionError::LimitExceededFault(ref cause) => cause, StartWorkflowExecutionError::OperationNotPermittedFault(ref cause) => cause, StartWorkflowExecutionError::TypeDeprecatedFault(ref cause) => cause, StartWorkflowExecutionError::UnknownResourceFault(ref cause) => cause, StartWorkflowExecutionError::WorkflowExecutionAlreadyStartedFault(ref cause) => cause, } } } /// Errors returned by TerminateWorkflowExecution #[derive(Debug, PartialEq)] pub enum TerminateWorkflowExecutionError { /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p> OperationNotPermittedFault(String), /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p> UnknownResourceFault(String), } impl TerminateWorkflowExecutionError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<TerminateWorkflowExecutionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "OperationNotPermittedFault" => { return RusotoError::Service( TerminateWorkflowExecutionError::OperationNotPermittedFault(err.msg), ) } "UnknownResourceFault" => { return RusotoError::Service( TerminateWorkflowExecutionError::UnknownResourceFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } return RusotoError::Unknown(res); } } impl fmt::Display for TerminateWorkflowExecutionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}", self.description()) } } impl Error for TerminateWorkflowExecutionError { fn description(&self) -> &str { match *self { TerminateWorkflowExecutionError::OperationNotPermittedFault(ref cause) => cause, TerminateWorkflowExecutionError::UnknownResourceFault(ref cause) => cause, } } } /// Trait representing the capabilities of the Amazon SWF API. Amazon SWF clients implement this trait. pub trait Swf { /// <p>Returns the number of closed workflow executions within the given domain that meet the specified filtering criteria.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_closed_workflow_executions( &self, input: CountClosedWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionCount, CountClosedWorkflowExecutionsError>; /// <p>Returns the number of open workflow executions within the given domain that meet the specified filtering criteria.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_open_workflow_executions( &self, input: CountOpenWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionCount, CountOpenWorkflowExecutionsError>; /// <p>Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then <code>0</code> is returned.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_pending_activity_tasks( &self, input: CountPendingActivityTasksInput, ) -> RusotoFuture<PendingTaskCount, CountPendingActivityTasksError>; /// <p>Returns the estimated number of decision tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no decision task was ever scheduled in then <code>0</code> is returned.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_pending_decision_tasks( &self, input: CountPendingDecisionTasksInput, ) -> RusotoFuture<PendingTaskCount, CountPendingDecisionTasksError>; /// <p>Deprecates the specified <i>activity type</i>. After an activity type has been deprecated, you cannot create new tasks of that activity type. Tasks of this type that were scheduled before the type was deprecated continue to run.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>activityType.name</code>: String constraint. The key is <code>swf:activityType.name</code>.</p> </li> <li> <p> <code>activityType.version</code>: String constraint. The key is <code>swf:activityType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn deprecate_activity_type( &self, input: DeprecateActivityTypeInput, ) -> RusotoFuture<(), DeprecateActivityTypeError>; /// <p>Deprecates the specified domain. After a domain has been deprecated it cannot be used to create new workflow executions or register new types. However, you can still use visibility actions on this domain. Deprecating a domain also deprecates all activity and workflow types registered in the domain. Executions that were started before the domain was deprecated continues to run.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn deprecate_domain( &self, input: DeprecateDomainInput, ) -> RusotoFuture<(), DeprecateDomainError>; /// <p>Deprecates the specified <i>workflow type</i>. After a workflow type has been deprecated, you cannot create new executions of that type. Executions that were started before the type was deprecated continues to run. A deprecated workflow type may still be used when calling visibility actions.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>workflowType.name</code>: String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code>: String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn deprecate_workflow_type( &self, input: DeprecateWorkflowTypeInput, ) -> RusotoFuture<(), DeprecateWorkflowTypeError>; /// <p>Returns information about the specified activity type. This includes configuration settings provided when the type was registered and other general information about the type.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>activityType.name</code>: String constraint. The key is <code>swf:activityType.name</code>.</p> </li> <li> <p> <code>activityType.version</code>: String constraint. The key is <code>swf:activityType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_activity_type( &self, input: DescribeActivityTypeInput, ) -> RusotoFuture<ActivityTypeDetail, DescribeActivityTypeError>; /// <p>Returns information about the specified domain, including description and status.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_domain( &self, input: DescribeDomainInput, ) -> RusotoFuture<DomainDetail, DescribeDomainError>; /// <p>Returns information about the specified workflow execution including its type and some statistics.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_workflow_execution( &self, input: DescribeWorkflowExecutionInput, ) -> RusotoFuture<WorkflowExecutionDetail, DescribeWorkflowExecutionError>; /// <p>Returns information about the specified <i>workflow type</i>. This includes configuration settings specified when the type was registered and other information such as creation date, current status, etc.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>workflowType.name</code>: String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code>: String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_workflow_type( &self, input: DescribeWorkflowTypeInput, ) -> RusotoFuture<WorkflowTypeDetail, DescribeWorkflowTypeError>; /// <p>Returns the history of the specified workflow execution. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the <code>nextPageToken</code> returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn get_workflow_execution_history( &self, input: GetWorkflowExecutionHistoryInput, ) -> RusotoFuture<History, GetWorkflowExecutionHistoryError>; /// <p>Returns information about all activities registered in the specified domain that match the specified name and registration status. The result includes information like creation date, current status of the activity, etc. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the <code>nextPageToken</code> returned by the initial call.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_activity_types( &self, input: ListActivityTypesInput, ) -> RusotoFuture<ActivityTypeInfos, ListActivityTypesError>; /// <p>Returns a list of closed workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_closed_workflow_executions( &self, input: ListClosedWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionInfos, ListClosedWorkflowExecutionsError>; /// <p>Returns the list of domains registered in the account. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains. The element must be set to <code>arn:aws:swf::AccountID:domain/*</code>, where <i>AccountID</i> is the account ID, with no dashes.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_domains(&self, input: ListDomainsInput) -> RusotoFuture<DomainInfos, ListDomainsError>; /// <p>Returns a list of open workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_open_workflow_executions( &self, input: ListOpenWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionInfos, ListOpenWorkflowExecutionsError>; /// <p>Returns information about workflow types in the specified domain. The results may be split into multiple pages that can be retrieved by making the call repeatedly.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_workflow_types( &self, input: ListWorkflowTypesInput, ) -> RusotoFuture<WorkflowTypeInfos, ListWorkflowTypesError>; /// <p>Used by workers to get an <a>ActivityTask</a> from the specified activity <code>taskList</code>. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available. The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns an empty result. An empty result, in this context, means that an ActivityTask is returned, but that the value of taskToken is an empty string. If a task is returned, the worker should use its type to identify and process it correctly.</p> <important> <p>Workers should set their client side socket timeout to at least 70 seconds (10 seconds higher than the maximum time service may hold the poll request).</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn poll_for_activity_task( &self, input: PollForActivityTaskInput, ) -> RusotoFuture<ActivityTask, PollForActivityTaskError>; /// <p>Used by deciders to get a <a>DecisionTask</a> from the specified decision <code>taskList</code>. A decision task may be returned for any open workflow execution that is using the specified task list. The task includes a paginated view of the history of the workflow execution. The decider should use the workflow type and the history to determine how to properly handle the task.</p> <p>This action initiates a long poll, where the service holds the HTTP connection open and responds as soon a task becomes available. If no decision task is available in the specified task list before the timeout of 60 seconds expires, an empty result is returned. An empty result, in this context, means that a DecisionTask is returned, but that the value of taskToken is an empty string.</p> <important> <p>Deciders should set their client side socket timeout to at least 70 seconds (10 seconds higher than the timeout).</p> </important> <important> <p>Because the number of workflow history events for a single workflow execution might be very large, the result returned might be split up across a number of pages. To retrieve subsequent pages, make additional calls to <code>PollForDecisionTask</code> using the <code>nextPageToken</code> returned by the initial call. Note that you do <i>not</i> call <code>GetWorkflowExecutionHistory</code> with this <code>nextPageToken</code>. Instead, call <code>PollForDecisionTask</code> again.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn poll_for_decision_task( &self, input: PollForDecisionTaskInput, ) -> RusotoFuture<DecisionTask, PollForDecisionTaskError>; /// <p>Used by activity workers to report to the service that the <a>ActivityTask</a> represented by the specified <code>taskToken</code> is still making progress. The worker can also specify details of the progress, for example percent complete, using the <code>details</code> parameter. This action can also be used by the worker as a mechanism to check if cancellation is being requested for the activity task. If a cancellation is being attempted for the specified task, then the boolean <code>cancelRequested</code> flag returned by the service is set to <code>true</code>.</p> <p>This action resets the <code>taskHeartbeatTimeout</code> clock. The <code>taskHeartbeatTimeout</code> is specified in <a>RegisterActivityType</a>.</p> <p>This action doesn't in itself create an event in the workflow execution history. However, if the task times out, the workflow execution history contains a <code>ActivityTaskTimedOut</code> event that contains the information from the last heartbeat generated by the activity worker.</p> <note> <p>The <code>taskStartToCloseTimeout</code> of an activity type is the maximum duration of an activity task, regardless of the number of <a>RecordActivityTaskHeartbeat</a> requests received. The <code>taskStartToCloseTimeout</code> is also specified in <a>RegisterActivityType</a>.</p> </note> <note> <p>This operation is only useful for long-lived activities to report liveliness of the task and to determine if a cancellation is being attempted.</p> </note> <important> <p>If the <code>cancelRequested</code> flag returns <code>true</code>, a cancellation is being attempted. If the worker can cancel the activity, it should respond with <a>RespondActivityTaskCanceled</a>. Otherwise, it should ignore the cancellation request.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn record_activity_task_heartbeat( &self, input: RecordActivityTaskHeartbeatInput, ) -> RusotoFuture<ActivityTaskStatus, RecordActivityTaskHeartbeatError>; /// <p>Registers a new <i>activity type</i> along with its configuration settings in the specified domain.</p> <important> <p>A <code>TypeAlreadyExists</code> fault is returned if the type already exists in the domain. You cannot change any configuration settings of the type after its registration, and it must be registered as a new version.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>defaultTaskList.name</code>: String constraint. The key is <code>swf:defaultTaskList.name</code>.</p> </li> <li> <p> <code>name</code>: String constraint. The key is <code>swf:name</code>.</p> </li> <li> <p> <code>version</code>: String constraint. The key is <code>swf:version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn register_activity_type( &self, input: RegisterActivityTypeInput, ) -> RusotoFuture<(), RegisterActivityTypeError>; /// <p>Registers a new domain.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>You cannot use an IAM policy to control domain access for this action. The name of the domain being registered is available as the resource of this action.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn register_domain(&self, input: RegisterDomainInput) -> RusotoFuture<(), RegisterDomainError>; /// <p>Registers a new <i>workflow type</i> and its configuration settings in the specified domain.</p> <p>The retention period for the workflow history is set by the <a>RegisterDomain</a> action.</p> <important> <p>If the type already exists, then a <code>TypeAlreadyExists</code> fault is returned. You cannot change the configuration settings of a workflow type once it is registered and it must be registered as a new version.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>defaultTaskList.name</code>: String constraint. The key is <code>swf:defaultTaskList.name</code>.</p> </li> <li> <p> <code>name</code>: String constraint. The key is <code>swf:name</code>.</p> </li> <li> <p> <code>version</code>: String constraint. The key is <code>swf:version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn register_workflow_type( &self, input: RegisterWorkflowTypeInput, ) -> RusotoFuture<(), RegisterWorkflowTypeError>; /// <p>Records a <code>WorkflowExecutionCancelRequested</code> event in the currently running workflow execution identified by the given domain, workflowId, and runId. This logically requests the cancellation of the workflow execution as a whole. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> <note> <p>If the runId isn't specified, the <code>WorkflowExecutionCancelRequested</code> event is recorded in the history of the current open workflow execution with the specified workflowId in the domain.</p> </note> <note> <p>Because this action allows the workflow to properly clean up and gracefully close, it should be used instead of <a>TerminateWorkflowExecution</a> when possible.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn request_cancel_workflow_execution( &self, input: RequestCancelWorkflowExecutionInput, ) -> RusotoFuture<(), RequestCancelWorkflowExecutionError>; /// <p>Used by workers to tell the service that the <a>ActivityTask</a> identified by the <code>taskToken</code> was successfully canceled. Additional <code>details</code> can be provided using the <code>details</code> argument.</p> <p>These <code>details</code> (if provided) appear in the <code>ActivityTaskCanceled</code> event added to the workflow history.</p> <important> <p>Only use this operation if the <code>canceled</code> flag of a <a>RecordActivityTaskHeartbeat</a> request returns <code>true</code> and if the activity can be safely undone or abandoned.</p> </important> <p>A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to <a>RespondActivityTaskCompleted</a>, RespondActivityTaskCanceled, <a>RespondActivityTaskFailed</a>, or the task has <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed out</a>.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_activity_task_canceled( &self, input: RespondActivityTaskCanceledInput, ) -> RusotoFuture<(), RespondActivityTaskCanceledError>; /// <p>Used by workers to tell the service that the <a>ActivityTask</a> identified by the <code>taskToken</code> completed successfully with a <code>result</code> (if provided). The <code>result</code> appears in the <code>ActivityTaskCompleted</code> event in the workflow history.</p> <important> <p>If the requested task doesn't complete successfully, use <a>RespondActivityTaskFailed</a> instead. If the worker finds that the task is canceled through the <code>canceled</code> flag returned by <a>RecordActivityTaskHeartbeat</a>, it should cancel the task, clean up and then call <a>RespondActivityTaskCanceled</a>.</p> </important> <p>A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted, <a>RespondActivityTaskCanceled</a>, <a>RespondActivityTaskFailed</a>, or the task has <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed out</a>.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_activity_task_completed( &self, input: RespondActivityTaskCompletedInput, ) -> RusotoFuture<(), RespondActivityTaskCompletedError>; /// <p>Used by workers to tell the service that the <a>ActivityTask</a> identified by the <code>taskToken</code> has failed with <code>reason</code> (if specified). The <code>reason</code> and <code>details</code> appear in the <code>ActivityTaskFailed</code> event added to the workflow history.</p> <p>A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to <a>RespondActivityTaskCompleted</a>, <a>RespondActivityTaskCanceled</a>, RespondActivityTaskFailed, or the task has <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed out</a>.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_activity_task_failed( &self, input: RespondActivityTaskFailedInput, ) -> RusotoFuture<(), RespondActivityTaskFailedError>; /// <p>Used by deciders to tell the service that the <a>DecisionTask</a> identified by the <code>taskToken</code> has successfully completed. The <code>decisions</code> argument specifies the list of decisions made while processing the task.</p> <p>A <code>DecisionTaskCompleted</code> event is added to the workflow history. The <code>executionContext</code> specified is attached to the event in the workflow execution history.</p> <p> <b>Access Control</b> </p> <p>If an IAM policy grants permission to use <code>RespondDecisionTaskCompleted</code>, it can express permissions for the list of decisions in the <code>decisions</code> parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_decision_task_completed( &self, input: RespondDecisionTaskCompletedInput, ) -> RusotoFuture<(), RespondDecisionTaskCompletedError>; /// <p>Records a <code>WorkflowExecutionSignaled</code> event in the workflow execution history and creates a decision task for the workflow execution identified by the given domain, workflowId and runId. The event is recorded with the specified user defined signalName and input (if provided).</p> <note> <p>If a runId isn't specified, then the <code>WorkflowExecutionSignaled</code> event is recorded in the history of the current open workflow with the matching workflowId in the domain.</p> </note> <note> <p>If the specified workflow execution isn't open, this method fails with <code>UnknownResource</code>.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn signal_workflow_execution( &self, input: SignalWorkflowExecutionInput, ) -> RusotoFuture<(), SignalWorkflowExecutionError>; /// <p>Starts an execution of the workflow type in the specified domain using the provided <code>workflowId</code> and input data.</p> <p>This action returns the newly started workflow execution.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagList.member.0</code>: The key is <code>swf:tagList.member.0</code>.</p> </li> <li> <p> <code>tagList.member.1</code>: The key is <code>swf:tagList.member.1</code>.</p> </li> <li> <p> <code>tagList.member.2</code>: The key is <code>swf:tagList.member.2</code>.</p> </li> <li> <p> <code>tagList.member.3</code>: The key is <code>swf:tagList.member.3</code>.</p> </li> <li> <p> <code>tagList.member.4</code>: The key is <code>swf:tagList.member.4</code>.</p> </li> <li> <p> <code>taskList</code>: String constraint. The key is <code>swf:taskList.name</code>.</p> </li> <li> <p> <code>workflowType.name</code>: String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code>: String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn start_workflow_execution( &self, input: StartWorkflowExecutionInput, ) -> RusotoFuture<Run, StartWorkflowExecutionError>; /// <p>Records a <code>WorkflowExecutionTerminated</code> event and forces closure of the workflow execution identified by the given domain, runId, and workflowId. The child policy, registered with the workflow type or specified when starting this execution, is applied to any open child workflow executions of this workflow execution.</p> <important> <p>If the identified workflow execution was in progress, it is terminated immediately.</p> </important> <note> <p>If a runId isn't specified, then the <code>WorkflowExecutionTerminated</code> event is recorded in the history of the current open workflow with the matching workflowId in the domain.</p> </note> <note> <p>You should consider using <a>RequestCancelWorkflowExecution</a> action instead because it allows the workflow to gracefully close while <a>TerminateWorkflowExecution</a> doesn't.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn terminate_workflow_execution( &self, input: TerminateWorkflowExecutionInput, ) -> RusotoFuture<(), TerminateWorkflowExecutionError>; } /// A client for the Amazon SWF API. #[derive(Clone)] pub struct SwfClient { client: Client, region: region::Region, } impl SwfClient { /// Creates a client backed by the default tokio event loop. /// /// The client will use the default credentials provider and tls client. pub fn new(region: region::Region) -> SwfClient { SwfClient { client: Client::shared(), region, } } pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: region::Region, ) -> SwfClient where P: ProvideAwsCredentials + Send + Sync + 'static, P::Future: Send, D: DispatchSignedRequest + Send + Sync + 'static, D::Future: Send, { SwfClient { client: Client::new_with(credentials_provider, request_dispatcher), region, } } } impl Swf for SwfClient { /// <p>Returns the number of closed workflow executions within the given domain that meet the specified filtering criteria.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_closed_workflow_executions( &self, input: CountClosedWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionCount, CountClosedWorkflowExecutionsError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.CountClosedWorkflowExecutions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowExecutionCount, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(CountClosedWorkflowExecutionsError::from_response(response)) })) } }) } /// <p>Returns the number of open workflow executions within the given domain that meet the specified filtering criteria.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_open_workflow_executions( &self, input: CountOpenWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionCount, CountOpenWorkflowExecutionsError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.CountOpenWorkflowExecutions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowExecutionCount, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(CountOpenWorkflowExecutionsError::from_response(response)) })) } }) } /// <p>Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then <code>0</code> is returned.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_pending_activity_tasks( &self, input: CountPendingActivityTasksInput, ) -> RusotoFuture<PendingTaskCount, CountPendingActivityTasksError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.CountPendingActivityTasks", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<PendingTaskCount, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(CountPendingActivityTasksError::from_response(response)) })) } }) } /// <p>Returns the estimated number of decision tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no decision task was ever scheduled in then <code>0</code> is returned.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn count_pending_decision_tasks( &self, input: CountPendingDecisionTasksInput, ) -> RusotoFuture<PendingTaskCount, CountPendingDecisionTasksError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.CountPendingDecisionTasks", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<PendingTaskCount, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(CountPendingDecisionTasksError::from_response(response)) })) } }) } /// <p>Deprecates the specified <i>activity type</i>. After an activity type has been deprecated, you cannot create new tasks of that activity type. Tasks of this type that were scheduled before the type was deprecated continue to run.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>activityType.name</code>: String constraint. The key is <code>swf:activityType.name</code>.</p> </li> <li> <p> <code>activityType.version</code>: String constraint. The key is <code>swf:activityType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn deprecate_activity_type( &self, input: DeprecateActivityTypeInput, ) -> RusotoFuture<(), DeprecateActivityTypeError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.DeprecateActivityType", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(DeprecateActivityTypeError::from_response(response)) }), ) } }) } /// <p>Deprecates the specified domain. After a domain has been deprecated it cannot be used to create new workflow executions or register new types. However, you can still use visibility actions on this domain. Deprecating a domain also deprecates all activity and workflow types registered in the domain. Executions that were started before the domain was deprecated continues to run.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn deprecate_domain( &self, input: DeprecateDomainInput, ) -> RusotoFuture<(), DeprecateDomainError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.DeprecateDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new( response .buffer() .from_err() .and_then(|response| Err(DeprecateDomainError::from_response(response))), ) } }) } /// <p>Deprecates the specified <i>workflow type</i>. After a workflow type has been deprecated, you cannot create new executions of that type. Executions that were started before the type was deprecated continues to run. A deprecated workflow type may still be used when calling visibility actions.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>workflowType.name</code>: String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code>: String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn deprecate_workflow_type( &self, input: DeprecateWorkflowTypeInput, ) -> RusotoFuture<(), DeprecateWorkflowTypeError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.DeprecateWorkflowType", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(DeprecateWorkflowTypeError::from_response(response)) }), ) } }) } /// <p>Returns information about the specified activity type. This includes configuration settings provided when the type was registered and other general information about the type.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>activityType.name</code>: String constraint. The key is <code>swf:activityType.name</code>.</p> </li> <li> <p> <code>activityType.version</code>: String constraint. The key is <code>swf:activityType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_activity_type( &self, input: DescribeActivityTypeInput, ) -> RusotoFuture<ActivityTypeDetail, DescribeActivityTypeError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.DescribeActivityType"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<ActivityTypeDetail, _>() })) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(DescribeActivityTypeError::from_response(response)) }), ) } }) } /// <p>Returns information about the specified domain, including description and status.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_domain( &self, input: DescribeDomainInput, ) -> RusotoFuture<DomainDetail, DescribeDomainError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.DescribeDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response).deserialize::<DomainDetail, _>() })) } else { Box::new( response .buffer() .from_err() .and_then(|response| Err(DescribeDomainError::from_response(response))), ) } }) } /// <p>Returns information about the specified workflow execution including its type and some statistics.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_workflow_execution( &self, input: DescribeWorkflowExecutionInput, ) -> RusotoFuture<WorkflowExecutionDetail, DescribeWorkflowExecutionError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.DescribeWorkflowExecution", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowExecutionDetail, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(DescribeWorkflowExecutionError::from_response(response)) })) } }) } /// <p>Returns information about the specified <i>workflow type</i>. This includes configuration settings specified when the type was registered and other information such as creation date, current status, etc.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>workflowType.name</code>: String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code>: String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn describe_workflow_type( &self, input: DescribeWorkflowTypeInput, ) -> RusotoFuture<WorkflowTypeDetail, DescribeWorkflowTypeError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.DescribeWorkflowType"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowTypeDetail, _>() })) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(DescribeWorkflowTypeError::from_response(response)) }), ) } }) } /// <p>Returns the history of the specified workflow execution. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the <code>nextPageToken</code> returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn get_workflow_execution_history( &self, input: GetWorkflowExecutionHistoryInput, ) -> RusotoFuture<History, GetWorkflowExecutionHistoryError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.GetWorkflowExecutionHistory", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response).deserialize::<History, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(GetWorkflowExecutionHistoryError::from_response(response)) })) } }) } /// <p>Returns information about all activities registered in the specified domain that match the specified name and registration status. The result includes information like creation date, current status of the activity, etc. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the <code>nextPageToken</code> returned by the initial call.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_activity_types( &self, input: ListActivityTypesInput, ) -> RusotoFuture<ActivityTypeInfos, ListActivityTypesError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.ListActivityTypes"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<ActivityTypeInfos, _>() })) } else { Box::new( response .buffer() .from_err() .and_then(|response| Err(ListActivityTypesError::from_response(response))), ) } }) } /// <p>Returns a list of closed workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_closed_workflow_executions( &self, input: ListClosedWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionInfos, ListClosedWorkflowExecutionsError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.ListClosedWorkflowExecutions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowExecutionInfos, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(ListClosedWorkflowExecutionsError::from_response(response)) })) } }) } /// <p>Returns the list of domains registered in the account. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains. The element must be set to <code>arn:aws:swf::AccountID:domain/*</code>, where <i>AccountID</i> is the account ID, with no dashes.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_domains(&self, input: ListDomainsInput) -> RusotoFuture<DomainInfos, ListDomainsError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.ListDomains"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response).deserialize::<DomainInfos, _>() })) } else { Box::new( response .buffer() .from_err() .and_then(|response| Err(ListDomainsError::from_response(response))), ) } }) } /// <p>Returns a list of open workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.</p> <note> <p>This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagFilter.tag</code>: String constraint. The key is <code>swf:tagFilter.tag</code>.</p> </li> <li> <p> <code>typeFilter.name</code>: String constraint. The key is <code>swf:typeFilter.name</code>.</p> </li> <li> <p> <code>typeFilter.version</code>: String constraint. The key is <code>swf:typeFilter.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_open_workflow_executions( &self, input: ListOpenWorkflowExecutionsInput, ) -> RusotoFuture<WorkflowExecutionInfos, ListOpenWorkflowExecutionsError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.ListOpenWorkflowExecutions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowExecutionInfos, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(ListOpenWorkflowExecutionsError::from_response(response)) })) } }) } /// <p>Returns information about workflow types in the specified domain. The results may be split into multiple pages that can be retrieved by making the call repeatedly.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn list_workflow_types( &self, input: ListWorkflowTypesInput, ) -> RusotoFuture<WorkflowTypeInfos, ListWorkflowTypesError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.ListWorkflowTypes"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<WorkflowTypeInfos, _>() })) } else { Box::new( response .buffer() .from_err() .and_then(|response| Err(ListWorkflowTypesError::from_response(response))), ) } }) } /// <p>Used by workers to get an <a>ActivityTask</a> from the specified activity <code>taskList</code>. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available. The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns an empty result. An empty result, in this context, means that an ActivityTask is returned, but that the value of taskToken is an empty string. If a task is returned, the worker should use its type to identify and process it correctly.</p> <important> <p>Workers should set their client side socket timeout to at least 70 seconds (10 seconds higher than the maximum time service may hold the poll request).</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn poll_for_activity_task( &self, input: PollForActivityTaskInput, ) -> RusotoFuture<ActivityTask, PollForActivityTaskError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.PollForActivityTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response).deserialize::<ActivityTask, _>() })) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(PollForActivityTaskError::from_response(response)) }), ) } }) } /// <p>Used by deciders to get a <a>DecisionTask</a> from the specified decision <code>taskList</code>. A decision task may be returned for any open workflow execution that is using the specified task list. The task includes a paginated view of the history of the workflow execution. The decider should use the workflow type and the history to determine how to properly handle the task.</p> <p>This action initiates a long poll, where the service holds the HTTP connection open and responds as soon a task becomes available. If no decision task is available in the specified task list before the timeout of 60 seconds expires, an empty result is returned. An empty result, in this context, means that a DecisionTask is returned, but that the value of taskToken is an empty string.</p> <important> <p>Deciders should set their client side socket timeout to at least 70 seconds (10 seconds higher than the timeout).</p> </important> <important> <p>Because the number of workflow history events for a single workflow execution might be very large, the result returned might be split up across a number of pages. To retrieve subsequent pages, make additional calls to <code>PollForDecisionTask</code> using the <code>nextPageToken</code> returned by the initial call. Note that you do <i>not</i> call <code>GetWorkflowExecutionHistory</code> with this <code>nextPageToken</code>. Instead, call <code>PollForDecisionTask</code> again.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the <code>taskList.name</code> parameter by using a <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the action to access only certain task lists.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn poll_for_decision_task( &self, input: PollForDecisionTaskInput, ) -> RusotoFuture<DecisionTask, PollForDecisionTaskError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.PollForDecisionTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response).deserialize::<DecisionTask, _>() })) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(PollForDecisionTaskError::from_response(response)) }), ) } }) } /// <p>Used by activity workers to report to the service that the <a>ActivityTask</a> represented by the specified <code>taskToken</code> is still making progress. The worker can also specify details of the progress, for example percent complete, using the <code>details</code> parameter. This action can also be used by the worker as a mechanism to check if cancellation is being requested for the activity task. If a cancellation is being attempted for the specified task, then the boolean <code>cancelRequested</code> flag returned by the service is set to <code>true</code>.</p> <p>This action resets the <code>taskHeartbeatTimeout</code> clock. The <code>taskHeartbeatTimeout</code> is specified in <a>RegisterActivityType</a>.</p> <p>This action doesn't in itself create an event in the workflow execution history. However, if the task times out, the workflow execution history contains a <code>ActivityTaskTimedOut</code> event that contains the information from the last heartbeat generated by the activity worker.</p> <note> <p>The <code>taskStartToCloseTimeout</code> of an activity type is the maximum duration of an activity task, regardless of the number of <a>RecordActivityTaskHeartbeat</a> requests received. The <code>taskStartToCloseTimeout</code> is also specified in <a>RegisterActivityType</a>.</p> </note> <note> <p>This operation is only useful for long-lived activities to report liveliness of the task and to determine if a cancellation is being attempted.</p> </note> <important> <p>If the <code>cancelRequested</code> flag returns <code>true</code>, a cancellation is being attempted. If the worker can cancel the activity, it should respond with <a>RespondActivityTaskCanceled</a>. Otherwise, it should ignore the cancellation request.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn record_activity_task_heartbeat( &self, input: RecordActivityTaskHeartbeatInput, ) -> RusotoFuture<ActivityTaskStatus, RecordActivityTaskHeartbeatError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.RecordActivityTaskHeartbeat", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response) .deserialize::<ActivityTaskStatus, _>() })) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(RecordActivityTaskHeartbeatError::from_response(response)) })) } }) } /// <p>Registers a new <i>activity type</i> along with its configuration settings in the specified domain.</p> <important> <p>A <code>TypeAlreadyExists</code> fault is returned if the type already exists in the domain. You cannot change any configuration settings of the type after its registration, and it must be registered as a new version.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>defaultTaskList.name</code>: String constraint. The key is <code>swf:defaultTaskList.name</code>.</p> </li> <li> <p> <code>name</code>: String constraint. The key is <code>swf:name</code>.</p> </li> <li> <p> <code>version</code>: String constraint. The key is <code>swf:version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn register_activity_type( &self, input: RegisterActivityTypeInput, ) -> RusotoFuture<(), RegisterActivityTypeError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.RegisterActivityType"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(RegisterActivityTypeError::from_response(response)) }), ) } }) } /// <p>Registers a new domain.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>You cannot use an IAM policy to control domain access for this action. The name of the domain being registered is available as the resource of this action.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn register_domain(&self, input: RegisterDomainInput) -> RusotoFuture<(), RegisterDomainError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.RegisterDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new( response .buffer() .from_err() .and_then(|response| Err(RegisterDomainError::from_response(response))), ) } }) } /// <p>Registers a new <i>workflow type</i> and its configuration settings in the specified domain.</p> <p>The retention period for the workflow history is set by the <a>RegisterDomain</a> action.</p> <important> <p>If the type already exists, then a <code>TypeAlreadyExists</code> fault is returned. You cannot change the configuration settings of a workflow type once it is registered and it must be registered as a new version.</p> </important> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>defaultTaskList.name</code>: String constraint. The key is <code>swf:defaultTaskList.name</code>.</p> </li> <li> <p> <code>name</code>: String constraint. The key is <code>swf:name</code>.</p> </li> <li> <p> <code>version</code>: String constraint. The key is <code>swf:version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn register_workflow_type( &self, input: RegisterWorkflowTypeInput, ) -> RusotoFuture<(), RegisterWorkflowTypeError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header("x-amz-target", "SimpleWorkflowService.RegisterWorkflowType"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(RegisterWorkflowTypeError::from_response(response)) }), ) } }) } /// <p>Records a <code>WorkflowExecutionCancelRequested</code> event in the currently running workflow execution identified by the given domain, workflowId, and runId. This logically requests the cancellation of the workflow execution as a whole. It is up to the decider to take appropriate actions when it receives an execution history with this event.</p> <note> <p>If the runId isn't specified, the <code>WorkflowExecutionCancelRequested</code> event is recorded in the history of the current open workflow execution with the specified workflowId in the domain.</p> </note> <note> <p>Because this action allows the workflow to properly clean up and gracefully close, it should be used instead of <a>TerminateWorkflowExecution</a> when possible.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn request_cancel_workflow_execution( &self, input: RequestCancelWorkflowExecutionInput, ) -> RusotoFuture<(), RequestCancelWorkflowExecutionError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.RequestCancelWorkflowExecution", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(RequestCancelWorkflowExecutionError::from_response(response)) })) } }) } /// <p>Used by workers to tell the service that the <a>ActivityTask</a> identified by the <code>taskToken</code> was successfully canceled. Additional <code>details</code> can be provided using the <code>details</code> argument.</p> <p>These <code>details</code> (if provided) appear in the <code>ActivityTaskCanceled</code> event added to the workflow history.</p> <important> <p>Only use this operation if the <code>canceled</code> flag of a <a>RecordActivityTaskHeartbeat</a> request returns <code>true</code> and if the activity can be safely undone or abandoned.</p> </important> <p>A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to <a>RespondActivityTaskCompleted</a>, RespondActivityTaskCanceled, <a>RespondActivityTaskFailed</a>, or the task has <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed out</a>.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_activity_task_canceled( &self, input: RespondActivityTaskCanceledInput, ) -> RusotoFuture<(), RespondActivityTaskCanceledError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.RespondActivityTaskCanceled", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(RespondActivityTaskCanceledError::from_response(response)) })) } }) } /// <p>Used by workers to tell the service that the <a>ActivityTask</a> identified by the <code>taskToken</code> completed successfully with a <code>result</code> (if provided). The <code>result</code> appears in the <code>ActivityTaskCompleted</code> event in the workflow history.</p> <important> <p>If the requested task doesn't complete successfully, use <a>RespondActivityTaskFailed</a> instead. If the worker finds that the task is canceled through the <code>canceled</code> flag returned by <a>RecordActivityTaskHeartbeat</a>, it should cancel the task, clean up and then call <a>RespondActivityTaskCanceled</a>.</p> </important> <p>A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted, <a>RespondActivityTaskCanceled</a>, <a>RespondActivityTaskFailed</a>, or the task has <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed out</a>.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_activity_task_completed( &self, input: RespondActivityTaskCompletedInput, ) -> RusotoFuture<(), RespondActivityTaskCompletedError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.RespondActivityTaskCompleted", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(RespondActivityTaskCompletedError::from_response(response)) })) } }) } /// <p>Used by workers to tell the service that the <a>ActivityTask</a> identified by the <code>taskToken</code> has failed with <code>reason</code> (if specified). The <code>reason</code> and <code>details</code> appear in the <code>ActivityTaskFailed</code> event added to the workflow history.</p> <p>A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to <a>RespondActivityTaskCompleted</a>, <a>RespondActivityTaskCanceled</a>, RespondActivityTaskFailed, or the task has <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed out</a>.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_activity_task_failed( &self, input: RespondActivityTaskFailedInput, ) -> RusotoFuture<(), RespondActivityTaskFailedError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.RespondActivityTaskFailed", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(RespondActivityTaskFailedError::from_response(response)) })) } }) } /// <p>Used by deciders to tell the service that the <a>DecisionTask</a> identified by the <code>taskToken</code> has successfully completed. The <code>decisions</code> argument specifies the list of decisions made while processing the task.</p> <p>A <code>DecisionTaskCompleted</code> event is added to the workflow history. The <code>executionContext</code> specified is attached to the event in the workflow execution history.</p> <p> <b>Access Control</b> </p> <p>If an IAM policy grants permission to use <code>RespondDecisionTaskCompleted</code>, it can express permissions for the list of decisions in the <code>decisions</code> parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn respond_decision_task_completed( &self, input: RespondDecisionTaskCompletedInput, ) -> RusotoFuture<(), RespondDecisionTaskCompletedError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.RespondDecisionTaskCompleted", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(RespondDecisionTaskCompletedError::from_response(response)) })) } }) } /// <p>Records a <code>WorkflowExecutionSignaled</code> event in the workflow execution history and creates a decision task for the workflow execution identified by the given domain, workflowId and runId. The event is recorded with the specified user defined signalName and input (if provided).</p> <note> <p>If a runId isn't specified, then the <code>WorkflowExecutionSignaled</code> event is recorded in the history of the current open workflow with the matching workflowId in the domain.</p> </note> <note> <p>If the specified workflow execution isn't open, this method fails with <code>UnknownResource</code>.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn signal_workflow_execution( &self, input: SignalWorkflowExecutionInput, ) -> RusotoFuture<(), SignalWorkflowExecutionError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.SignalWorkflowExecution", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(SignalWorkflowExecutionError::from_response(response)) })) } }) } /// <p>Starts an execution of the workflow type in the specified domain using the provided <code>workflowId</code> and input data.</p> <p>This action returns the newly started workflow execution.</p> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>Constrain the following parameters by using a <code>Condition</code> element with the appropriate keys.</p> <ul> <li> <p> <code>tagList.member.0</code>: The key is <code>swf:tagList.member.0</code>.</p> </li> <li> <p> <code>tagList.member.1</code>: The key is <code>swf:tagList.member.1</code>.</p> </li> <li> <p> <code>tagList.member.2</code>: The key is <code>swf:tagList.member.2</code>.</p> </li> <li> <p> <code>tagList.member.3</code>: The key is <code>swf:tagList.member.3</code>.</p> </li> <li> <p> <code>tagList.member.4</code>: The key is <code>swf:tagList.member.4</code>.</p> </li> <li> <p> <code>taskList</code>: String constraint. The key is <code>swf:taskList.name</code>.</p> </li> <li> <p> <code>workflowType.name</code>: String constraint. The key is <code>swf:workflowType.name</code>.</p> </li> <li> <p> <code>workflowType.version</code>: String constraint. The key is <code>swf:workflowType.version</code>.</p> </li> </ul> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn start_workflow_execution( &self, input: StartWorkflowExecutionInput, ) -> RusotoFuture<Run, StartWorkflowExecutionError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.StartWorkflowExecution", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(response.buffer().from_err().and_then(|response| { proto::json::ResponsePayload::new(&response).deserialize::<Run, _>() })) } else { Box::new( response.buffer().from_err().and_then(|response| { Err(StartWorkflowExecutionError::from_response(response)) }), ) } }) } /// <p>Records a <code>WorkflowExecutionTerminated</code> event and forces closure of the workflow execution identified by the given domain, runId, and workflowId. The child policy, registered with the workflow type or specified when starting this execution, is applied to any open child workflow executions of this workflow execution.</p> <important> <p>If the identified workflow execution was in progress, it is terminated immediately.</p> </important> <note> <p>If a runId isn't specified, then the <code>WorkflowExecutionTerminated</code> event is recorded in the history of the current open workflow with the matching workflowId in the domain.</p> </note> <note> <p>You should consider using <a>RequestCancelWorkflowExecution</a> action instead because it allows the workflow to gracefully close while <a>TerminateWorkflowExecution</a> doesn't.</p> </note> <p> <b>Access Control</b> </p> <p>You can use IAM policies to control this action's access to Amazon SWF resources as follows:</p> <ul> <li> <p>Use a <code>Resource</code> element with the domain name to limit the action to only specified domains.</p> </li> <li> <p>Use an <code>Action</code> element to allow or deny permission to call this action.</p> </li> <li> <p>You cannot use an IAM policy to constrain this action's parameters.</p> </li> </ul> <p>If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>. For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p> fn terminate_workflow_execution( &self, input: TerminateWorkflowExecutionInput, ) -> RusotoFuture<(), TerminateWorkflowExecutionError> { let mut request = SignedRequest::new("POST", "swf", &self.region, "/"); request.set_content_type("application/x-amz-json-1.0".to_owned()); request.add_header( "x-amz-target", "SimpleWorkflowService.TerminateWorkflowExecution", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); self.client.sign_and_dispatch(request, |response| { if response.status.is_success() { Box::new(future::ok(::std::mem::drop(response))) } else { Box::new(response.buffer().from_err().and_then(|response| { Err(TerminateWorkflowExecutionError::from_response(response)) })) } }) } }