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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
pub(crate) conf: crate::Config,
}
/// Client for Amazon Kinesis Analytics
///
/// Client for invoking operations on Amazon Kinesis Analytics. Each operation on Amazon Kinesis Analytics is a method on this
/// this struct. `.send()` MUST be invoked on the generated operations to dispatch the request to the service.
///
/// # Examples
/// **Constructing a client and invoking an operation**
/// ```rust,no_run
/// # async fn docs() {
/// // create a shared configuration. This can be used & shared between multiple service clients.
/// let shared_config = aws_config::load_from_env().await;
/// let client = aws_sdk_kinesisanalyticsv2::Client::new(&shared_config);
/// // invoke an operation
/// /* let rsp = client
/// .<operation_name>().
/// .<param>("some value")
/// .send().await; */
/// # }
/// ```
/// **Constructing a client with custom configuration**
/// ```rust,no_run
/// use aws_config::RetryConfig;
/// # async fn docs() {
/// let shared_config = aws_config::load_from_env().await;
/// let config = aws_sdk_kinesisanalyticsv2::config::Builder::from(&shared_config)
/// .retry_config(RetryConfig::disabled())
/// .build();
/// let client = aws_sdk_kinesisanalyticsv2::Client::from_conf(config);
/// # }
#[derive(std::fmt::Debug)]
pub struct Client {
handle: std::sync::Arc<Handle>,
}
impl std::clone::Clone for Client {
fn clone(&self) -> Self {
Self {
handle: self.handle.clone(),
}
}
}
#[doc(inline)]
pub use aws_smithy_client::Builder;
impl
From<
aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
> for Client
{
fn from(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
) -> Self {
Self::with_config(client, crate::Config::builder().build())
}
}
impl Client {
/// Creates a client with the given service configuration.
pub fn with_config(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
conf: crate::Config,
) -> Self {
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Returns the client's configuration.
pub fn conf(&self) -> &crate::Config {
&self.handle.conf
}
}
impl Client {
/// Constructs a fluent builder for the [`AddApplicationCloudWatchLoggingOption`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::set_application_name): <p>The Kinesis Data Analytics application name.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::set_current_application_version_id): <p>The version ID of the Kinesis Data Analytics application. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>.You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - [`cloud_watch_logging_option(CloudWatchLoggingOption)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::cloud_watch_logging_option) / [`set_cloud_watch_logging_option(Option<CloudWatchLoggingOption>)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::set_cloud_watch_logging_option): <p>Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN). </p>
/// - [`conditional_token(impl Into<String>)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::conditional_token) / [`set_conditional_token(Option<String>)`](crate::client::fluent_builders::AddApplicationCloudWatchLoggingOption::set_conditional_token): <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - On success, responds with [`AddApplicationCloudWatchLoggingOptionOutput`](crate::output::AddApplicationCloudWatchLoggingOptionOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::AddApplicationCloudWatchLoggingOptionOutput::application_arn): <p>The application's ARN.</p>
/// - [`application_version_id(Option<i64>)`](crate::output::AddApplicationCloudWatchLoggingOptionOutput::application_version_id): <p>The new version ID of the Kinesis Data Analytics application. Kinesis Data Analytics updates the <code>ApplicationVersionId</code> each time you change the CloudWatch logging options. </p>
/// - [`cloud_watch_logging_option_descriptions(Option<Vec<CloudWatchLoggingOptionDescription>>)`](crate::output::AddApplicationCloudWatchLoggingOptionOutput::cloud_watch_logging_option_descriptions): <p>The descriptions of the current CloudWatch logging options for the Kinesis Data Analytics application.</p>
/// - On failure, responds with [`SdkError<AddApplicationCloudWatchLoggingOptionError>`](crate::error::AddApplicationCloudWatchLoggingOptionError)
pub fn add_application_cloud_watch_logging_option(
&self,
) -> fluent_builders::AddApplicationCloudWatchLoggingOption {
fluent_builders::AddApplicationCloudWatchLoggingOption::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`AddApplicationInput`](crate::client::fluent_builders::AddApplicationInput) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::AddApplicationInput::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::AddApplicationInput::set_application_name): <p>The name of your existing application to which you want to add the streaming source.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::AddApplicationInput::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::AddApplicationInput::set_current_application_version_id): <p>The current version of your application. You must provide the <code>ApplicationVersionID</code> or the <code>ConditionalToken</code>.You can use the <code>DescribeApplication</code> operation to find the current application version.</p>
/// - [`input(Input)`](crate::client::fluent_builders::AddApplicationInput::input) / [`set_input(Option<Input>)`](crate::client::fluent_builders::AddApplicationInput::set_input): <p>The <code>Input</code> to add.</p>
/// - On success, responds with [`AddApplicationInputOutput`](crate::output::AddApplicationInputOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::AddApplicationInputOutput::application_arn): <p>The Amazon Resource Name (ARN) of the application.</p>
/// - [`application_version_id(Option<i64>)`](crate::output::AddApplicationInputOutput::application_version_id): <p>Provides the current application version.</p>
/// - [`input_descriptions(Option<Vec<InputDescription>>)`](crate::output::AddApplicationInputOutput::input_descriptions): <p>Describes the application input configuration. </p>
/// - On failure, responds with [`SdkError<AddApplicationInputError>`](crate::error::AddApplicationInputError)
pub fn add_application_input(&self) -> fluent_builders::AddApplicationInput {
fluent_builders::AddApplicationInput::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`AddApplicationInputProcessingConfiguration`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::set_application_name): <p>The name of the application to which you want to add the input processing configuration.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::set_current_application_version_id): <p>The version of the application to which you want to add the input processing configuration. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
/// - [`input_id(impl Into<String>)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::input_id) / [`set_input_id(Option<String>)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::set_input_id): <p>The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the <code>DescribeApplication</code> operation.</p>
/// - [`input_processing_configuration(InputProcessingConfiguration)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::input_processing_configuration) / [`set_input_processing_configuration(Option<InputProcessingConfiguration>)`](crate::client::fluent_builders::AddApplicationInputProcessingConfiguration::set_input_processing_configuration): <p>The <code>InputProcessingConfiguration</code> to add to the application.</p>
/// - On success, responds with [`AddApplicationInputProcessingConfigurationOutput`](crate::output::AddApplicationInputProcessingConfigurationOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::AddApplicationInputProcessingConfigurationOutput::application_arn): <p>The Amazon Resource Name (ARN) of the application.</p>
/// - [`application_version_id(Option<i64>)`](crate::output::AddApplicationInputProcessingConfigurationOutput::application_version_id): <p>Provides the current application version. </p>
/// - [`input_id(Option<String>)`](crate::output::AddApplicationInputProcessingConfigurationOutput::input_id): <p>The input ID that is associated with the application input. This is the ID that Kinesis Data Analytics assigns to each input configuration that you add to your application.</p>
/// - [`input_processing_configuration_description(Option<InputProcessingConfigurationDescription>)`](crate::output::AddApplicationInputProcessingConfigurationOutput::input_processing_configuration_description): <p>The description of the preprocessor that executes on records in this input before the application's code is run.</p>
/// - On failure, responds with [`SdkError<AddApplicationInputProcessingConfigurationError>`](crate::error::AddApplicationInputProcessingConfigurationError)
pub fn add_application_input_processing_configuration(
&self,
) -> fluent_builders::AddApplicationInputProcessingConfiguration {
fluent_builders::AddApplicationInputProcessingConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`AddApplicationOutput`](crate::client::fluent_builders::AddApplicationOutput) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::AddApplicationOutput::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::AddApplicationOutput::set_application_name): <p>The name of the application to which you want to add the output configuration.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::AddApplicationOutput::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::AddApplicationOutput::set_current_application_version_id): <p>The version of the application to which you want to add the output configuration. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
/// - [`output(Output)`](crate::client::fluent_builders::AddApplicationOutput::output) / [`set_output(Option<Output>)`](crate::client::fluent_builders::AddApplicationOutput::set_output): <p>An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, a Kinesis data stream, a Kinesis Data Firehose delivery stream, or an Amazon Lambda function), and record the formation to use when writing to the destination.</p>
/// - On success, responds with [`AddApplicationOutputOutput`](crate::output::AddApplicationOutputOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::AddApplicationOutputOutput::application_arn): <p>The application Amazon Resource Name (ARN).</p>
/// - [`application_version_id(Option<i64>)`](crate::output::AddApplicationOutputOutput::application_version_id): <p>The updated application version ID. Kinesis Data Analytics increments this ID when the application is updated.</p>
/// - [`output_descriptions(Option<Vec<OutputDescription>>)`](crate::output::AddApplicationOutputOutput::output_descriptions): <p>Describes the application output configuration. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html">Configuring Application Output</a>. </p>
/// - On failure, responds with [`SdkError<AddApplicationOutputError>`](crate::error::AddApplicationOutputError)
pub fn add_application_output(&self) -> fluent_builders::AddApplicationOutput {
fluent_builders::AddApplicationOutput::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`AddApplicationReferenceDataSource`](crate::client::fluent_builders::AddApplicationReferenceDataSource) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::AddApplicationReferenceDataSource::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::AddApplicationReferenceDataSource::set_application_name): <p>The name of an existing application.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::AddApplicationReferenceDataSource::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::AddApplicationReferenceDataSource::set_current_application_version_id): <p>The version of the application for which you are adding the reference data source. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
/// - [`reference_data_source(ReferenceDataSource)`](crate::client::fluent_builders::AddApplicationReferenceDataSource::reference_data_source) / [`set_reference_data_source(Option<ReferenceDataSource>)`](crate::client::fluent_builders::AddApplicationReferenceDataSource::set_reference_data_source): <p>The reference data source can be an object in your Amazon S3 bucket. Kinesis Data Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created. </p>
/// - On success, responds with [`AddApplicationReferenceDataSourceOutput`](crate::output::AddApplicationReferenceDataSourceOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::AddApplicationReferenceDataSourceOutput::application_arn): <p>The application Amazon Resource Name (ARN).</p>
/// - [`application_version_id(Option<i64>)`](crate::output::AddApplicationReferenceDataSourceOutput::application_version_id): <p>The updated application version ID. Kinesis Data Analytics increments this ID when the application is updated.</p>
/// - [`reference_data_source_descriptions(Option<Vec<ReferenceDataSourceDescription>>)`](crate::output::AddApplicationReferenceDataSourceOutput::reference_data_source_descriptions): <p>Describes reference data sources configured for the application. </p>
/// - On failure, responds with [`SdkError<AddApplicationReferenceDataSourceError>`](crate::error::AddApplicationReferenceDataSourceError)
pub fn add_application_reference_data_source(
&self,
) -> fluent_builders::AddApplicationReferenceDataSource {
fluent_builders::AddApplicationReferenceDataSource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`AddApplicationVpcConfiguration`](crate::client::fluent_builders::AddApplicationVpcConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::set_application_name): <p>The name of an existing application.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::set_current_application_version_id): <p>The version of the application to which you want to add the VPC configuration. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - [`vpc_configuration(VpcConfiguration)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::vpc_configuration) / [`set_vpc_configuration(Option<VpcConfiguration>)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::set_vpc_configuration): <p>Description of the VPC to add to the application.</p>
/// - [`conditional_token(impl Into<String>)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::conditional_token) / [`set_conditional_token(Option<String>)`](crate::client::fluent_builders::AddApplicationVpcConfiguration::set_conditional_token): <p>A value you use to implement strong concurrency for application updates. You must provide the <code>ApplicationVersionID</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - On success, responds with [`AddApplicationVpcConfigurationOutput`](crate::output::AddApplicationVpcConfigurationOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::AddApplicationVpcConfigurationOutput::application_arn): <p>The ARN of the application.</p>
/// - [`application_version_id(Option<i64>)`](crate::output::AddApplicationVpcConfigurationOutput::application_version_id): <p>Provides the current application version. Kinesis Data Analytics updates the ApplicationVersionId each time you update the application.</p>
/// - [`vpc_configuration_description(Option<VpcConfigurationDescription>)`](crate::output::AddApplicationVpcConfigurationOutput::vpc_configuration_description): <p>The parameters of the new VPC configuration.</p>
/// - On failure, responds with [`SdkError<AddApplicationVpcConfigurationError>`](crate::error::AddApplicationVpcConfigurationError)
pub fn add_application_vpc_configuration(
&self,
) -> fluent_builders::AddApplicationVpcConfiguration {
fluent_builders::AddApplicationVpcConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateApplication`](crate::client::fluent_builders::CreateApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::CreateApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::CreateApplication::set_application_name): <p>The name of your application (for example, <code>sample-app</code>).</p>
/// - [`application_description(impl Into<String>)`](crate::client::fluent_builders::CreateApplication::application_description) / [`set_application_description(Option<String>)`](crate::client::fluent_builders::CreateApplication::set_application_description): <p>A summary description of the application.</p>
/// - [`runtime_environment(RuntimeEnvironment)`](crate::client::fluent_builders::CreateApplication::runtime_environment) / [`set_runtime_environment(Option<RuntimeEnvironment>)`](crate::client::fluent_builders::CreateApplication::set_runtime_environment): <p>The runtime environment for the application (<code>SQL-1_0</code>, <code>FLINK-1_6</code>, <code>FLINK-1_8</code>, or <code>FLINK-1_11</code>).</p>
/// - [`service_execution_role(impl Into<String>)`](crate::client::fluent_builders::CreateApplication::service_execution_role) / [`set_service_execution_role(Option<String>)`](crate::client::fluent_builders::CreateApplication::set_service_execution_role): <p>The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.</p>
/// - [`application_configuration(ApplicationConfiguration)`](crate::client::fluent_builders::CreateApplication::application_configuration) / [`set_application_configuration(Option<ApplicationConfiguration>)`](crate::client::fluent_builders::CreateApplication::set_application_configuration): <p>Use this parameter to configure the application.</p>
/// - [`cloud_watch_logging_options(Vec<CloudWatchLoggingOption>)`](crate::client::fluent_builders::CreateApplication::cloud_watch_logging_options) / [`set_cloud_watch_logging_options(Option<Vec<CloudWatchLoggingOption>>)`](crate::client::fluent_builders::CreateApplication::set_cloud_watch_logging_options): <p>Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors. </p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateApplication::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateApplication::set_tags): <p>A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
/// - [`application_mode(ApplicationMode)`](crate::client::fluent_builders::CreateApplication::application_mode) / [`set_application_mode(Option<ApplicationMode>)`](crate::client::fluent_builders::CreateApplication::set_application_mode): <p>Use the <code>STREAMING</code> mode to create a Kinesis Data Analytics Studio notebook. To create a Kinesis Data Analytics Studio notebook, use the <code>INTERACTIVE</code> mode.</p>
/// - On success, responds with [`CreateApplicationOutput`](crate::output::CreateApplicationOutput) with field(s):
/// - [`application_detail(Option<ApplicationDetail>)`](crate::output::CreateApplicationOutput::application_detail): <p>In response to your <code>CreateApplication</code> request, Kinesis Data Analytics returns a response with details of the application it created.</p>
/// - On failure, responds with [`SdkError<CreateApplicationError>`](crate::error::CreateApplicationError)
pub fn create_application(&self) -> fluent_builders::CreateApplication {
fluent_builders::CreateApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateApplicationPresignedUrl`](crate::client::fluent_builders::CreateApplicationPresignedUrl) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::CreateApplicationPresignedUrl::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::CreateApplicationPresignedUrl::set_application_name): <p>The name of the application.</p>
/// - [`url_type(UrlType)`](crate::client::fluent_builders::CreateApplicationPresignedUrl::url_type) / [`set_url_type(Option<UrlType>)`](crate::client::fluent_builders::CreateApplicationPresignedUrl::set_url_type): <p>The type of the extension for which to create and return a URL. Currently, the only valid extension URL type is <code>FLINK_DASHBOARD_URL</code>. </p>
/// - [`session_expiration_duration_in_seconds(i64)`](crate::client::fluent_builders::CreateApplicationPresignedUrl::session_expiration_duration_in_seconds) / [`set_session_expiration_duration_in_seconds(Option<i64>)`](crate::client::fluent_builders::CreateApplicationPresignedUrl::set_session_expiration_duration_in_seconds): <p>The duration in seconds for which the returned URL will be valid.</p>
/// - On success, responds with [`CreateApplicationPresignedUrlOutput`](crate::output::CreateApplicationPresignedUrlOutput) with field(s):
/// - [`authorized_url(Option<String>)`](crate::output::CreateApplicationPresignedUrlOutput::authorized_url): <p>The URL of the extension.</p>
/// - On failure, responds with [`SdkError<CreateApplicationPresignedUrlError>`](crate::error::CreateApplicationPresignedUrlError)
pub fn create_application_presigned_url(
&self,
) -> fluent_builders::CreateApplicationPresignedUrl {
fluent_builders::CreateApplicationPresignedUrl::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateApplicationSnapshot`](crate::client::fluent_builders::CreateApplicationSnapshot) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::CreateApplicationSnapshot::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::CreateApplicationSnapshot::set_application_name): <p>The name of an existing application</p>
/// - [`snapshot_name(impl Into<String>)`](crate::client::fluent_builders::CreateApplicationSnapshot::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::client::fluent_builders::CreateApplicationSnapshot::set_snapshot_name): <p>An identifier for the application snapshot.</p>
/// - On success, responds with [`CreateApplicationSnapshotOutput`](crate::output::CreateApplicationSnapshotOutput)
/// - On failure, responds with [`SdkError<CreateApplicationSnapshotError>`](crate::error::CreateApplicationSnapshotError)
pub fn create_application_snapshot(&self) -> fluent_builders::CreateApplicationSnapshot {
fluent_builders::CreateApplicationSnapshot::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplication`](crate::client::fluent_builders::DeleteApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplication::set_application_name): <p>The name of the application to delete.</p>
/// - [`create_timestamp(DateTime)`](crate::client::fluent_builders::DeleteApplication::create_timestamp) / [`set_create_timestamp(Option<DateTime>)`](crate::client::fluent_builders::DeleteApplication::set_create_timestamp): <p>Use the <code>DescribeApplication</code> operation to get this value.</p>
/// - On success, responds with [`DeleteApplicationOutput`](crate::output::DeleteApplicationOutput)
/// - On failure, responds with [`SdkError<DeleteApplicationError>`](crate::error::DeleteApplicationError)
pub fn delete_application(&self) -> fluent_builders::DeleteApplication {
fluent_builders::DeleteApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplicationCloudWatchLoggingOption`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::set_application_name): <p>The application name.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::set_current_application_version_id): <p>The version ID of the application. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - [`cloud_watch_logging_option_id(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::cloud_watch_logging_option_id) / [`set_cloud_watch_logging_option_id(Option<String>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::set_cloud_watch_logging_option_id): <p>The <code>CloudWatchLoggingOptionId</code> of the Amazon CloudWatch logging option to delete. You can get the <code>CloudWatchLoggingOptionId</code> by using the <code>DescribeApplication</code> operation. </p>
/// - [`conditional_token(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::conditional_token) / [`set_conditional_token(Option<String>)`](crate::client::fluent_builders::DeleteApplicationCloudWatchLoggingOption::set_conditional_token): <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - On success, responds with [`DeleteApplicationCloudWatchLoggingOptionOutput`](crate::output::DeleteApplicationCloudWatchLoggingOptionOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::DeleteApplicationCloudWatchLoggingOptionOutput::application_arn): <p>The application's Amazon Resource Name (ARN).</p>
/// - [`application_version_id(Option<i64>)`](crate::output::DeleteApplicationCloudWatchLoggingOptionOutput::application_version_id): <p>The version ID of the application. Kinesis Data Analytics updates the <code>ApplicationVersionId</code> each time you change the CloudWatch logging options.</p>
/// - [`cloud_watch_logging_option_descriptions(Option<Vec<CloudWatchLoggingOptionDescription>>)`](crate::output::DeleteApplicationCloudWatchLoggingOptionOutput::cloud_watch_logging_option_descriptions): <p>The descriptions of the remaining CloudWatch logging options for the application.</p>
/// - On failure, responds with [`SdkError<DeleteApplicationCloudWatchLoggingOptionError>`](crate::error::DeleteApplicationCloudWatchLoggingOptionError)
pub fn delete_application_cloud_watch_logging_option(
&self,
) -> fluent_builders::DeleteApplicationCloudWatchLoggingOption {
fluent_builders::DeleteApplicationCloudWatchLoggingOption::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplicationInputProcessingConfiguration`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration::set_application_name): <p>The name of the application.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration::set_current_application_version_id): <p>The application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
/// - [`input_id(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration::input_id) / [`set_input_id(Option<String>)`](crate::client::fluent_builders::DeleteApplicationInputProcessingConfiguration::set_input_id): <p>The ID of the input configuration from which to delete the input processing configuration. You can get a list of the input IDs for an application by using the <code>DescribeApplication</code> operation.</p>
/// - On success, responds with [`DeleteApplicationInputProcessingConfigurationOutput`](crate::output::DeleteApplicationInputProcessingConfigurationOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::DeleteApplicationInputProcessingConfigurationOutput::application_arn): <p>The Amazon Resource Name (ARN) of the application.</p>
/// - [`application_version_id(Option<i64>)`](crate::output::DeleteApplicationInputProcessingConfigurationOutput::application_version_id): <p>The current application version ID.</p>
/// - On failure, responds with [`SdkError<DeleteApplicationInputProcessingConfigurationError>`](crate::error::DeleteApplicationInputProcessingConfigurationError)
pub fn delete_application_input_processing_configuration(
&self,
) -> fluent_builders::DeleteApplicationInputProcessingConfiguration {
fluent_builders::DeleteApplicationInputProcessingConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplicationOutput`](crate::client::fluent_builders::DeleteApplicationOutput) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationOutput::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationOutput::set_application_name): <p>The application name.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::DeleteApplicationOutput::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::DeleteApplicationOutput::set_current_application_version_id): <p>The application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
/// - [`output_id(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationOutput::output_id) / [`set_output_id(Option<String>)`](crate::client::fluent_builders::DeleteApplicationOutput::set_output_id): <p>The ID of the configuration to delete. Each output configuration that is added to the application (either when the application is created or later) using the <code>AddApplicationOutput</code> operation has a unique ID. You need to provide the ID to uniquely identify the output configuration that you want to delete from the application configuration. You can use the <code>DescribeApplication</code> operation to get the specific <code>OutputId</code>. </p>
/// - On success, responds with [`DeleteApplicationOutputOutput`](crate::output::DeleteApplicationOutputOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::DeleteApplicationOutputOutput::application_arn): <p>The application Amazon Resource Name (ARN).</p>
/// - [`application_version_id(Option<i64>)`](crate::output::DeleteApplicationOutputOutput::application_version_id): <p>The current application version ID.</p>
/// - On failure, responds with [`SdkError<DeleteApplicationOutputError>`](crate::error::DeleteApplicationOutputError)
pub fn delete_application_output(&self) -> fluent_builders::DeleteApplicationOutput {
fluent_builders::DeleteApplicationOutput::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplicationReferenceDataSource`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource::set_application_name): <p>The name of an existing application.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource::set_current_application_version_id): <p>The current application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
/// - [`reference_id(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource::reference_id) / [`set_reference_id(Option<String>)`](crate::client::fluent_builders::DeleteApplicationReferenceDataSource::set_reference_id): <p>The ID of the reference data source. When you add a reference data source to your application using the <code>AddApplicationReferenceDataSource</code>, Kinesis Data Analytics assigns an ID. You can use the <code>DescribeApplication</code> operation to get the reference ID. </p>
/// - On success, responds with [`DeleteApplicationReferenceDataSourceOutput`](crate::output::DeleteApplicationReferenceDataSourceOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::DeleteApplicationReferenceDataSourceOutput::application_arn): <p>The application Amazon Resource Name (ARN).</p>
/// - [`application_version_id(Option<i64>)`](crate::output::DeleteApplicationReferenceDataSourceOutput::application_version_id): <p>The updated version ID of the application.</p>
/// - On failure, responds with [`SdkError<DeleteApplicationReferenceDataSourceError>`](crate::error::DeleteApplicationReferenceDataSourceError)
pub fn delete_application_reference_data_source(
&self,
) -> fluent_builders::DeleteApplicationReferenceDataSource {
fluent_builders::DeleteApplicationReferenceDataSource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplicationSnapshot`](crate::client::fluent_builders::DeleteApplicationSnapshot) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationSnapshot::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationSnapshot::set_application_name): <p>The name of an existing application.</p>
/// - [`snapshot_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationSnapshot::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationSnapshot::set_snapshot_name): <p>The identifier for the snapshot delete.</p>
/// - [`snapshot_creation_timestamp(DateTime)`](crate::client::fluent_builders::DeleteApplicationSnapshot::snapshot_creation_timestamp) / [`set_snapshot_creation_timestamp(Option<DateTime>)`](crate::client::fluent_builders::DeleteApplicationSnapshot::set_snapshot_creation_timestamp): <p>The creation timestamp of the application snapshot to delete. You can retrieve this value using or .</p>
/// - On success, responds with [`DeleteApplicationSnapshotOutput`](crate::output::DeleteApplicationSnapshotOutput)
/// - On failure, responds with [`SdkError<DeleteApplicationSnapshotError>`](crate::error::DeleteApplicationSnapshotError)
pub fn delete_application_snapshot(&self) -> fluent_builders::DeleteApplicationSnapshot {
fluent_builders::DeleteApplicationSnapshot::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteApplicationVpcConfiguration`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::set_application_name): <p>The name of an existing application.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::set_current_application_version_id): <p>The current application version ID. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - [`vpc_configuration_id(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::vpc_configuration_id) / [`set_vpc_configuration_id(Option<String>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::set_vpc_configuration_id): <p>The ID of the VPC configuration to delete.</p>
/// - [`conditional_token(impl Into<String>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::conditional_token) / [`set_conditional_token(Option<String>)`](crate::client::fluent_builders::DeleteApplicationVpcConfiguration::set_conditional_token): <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - On success, responds with [`DeleteApplicationVpcConfigurationOutput`](crate::output::DeleteApplicationVpcConfigurationOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::DeleteApplicationVpcConfigurationOutput::application_arn): <p>The ARN of the Kinesis Data Analytics application.</p>
/// - [`application_version_id(Option<i64>)`](crate::output::DeleteApplicationVpcConfigurationOutput::application_version_id): <p>The updated version ID of the application.</p>
/// - On failure, responds with [`SdkError<DeleteApplicationVpcConfigurationError>`](crate::error::DeleteApplicationVpcConfigurationError)
pub fn delete_application_vpc_configuration(
&self,
) -> fluent_builders::DeleteApplicationVpcConfiguration {
fluent_builders::DeleteApplicationVpcConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeApplication`](crate::client::fluent_builders::DescribeApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DescribeApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DescribeApplication::set_application_name): <p>The name of the application.</p>
/// - [`include_additional_details(bool)`](crate::client::fluent_builders::DescribeApplication::include_additional_details) / [`set_include_additional_details(Option<bool>)`](crate::client::fluent_builders::DescribeApplication::set_include_additional_details): <p>Displays verbose information about a Kinesis Data Analytics application, including the application's job plan.</p>
/// - On success, responds with [`DescribeApplicationOutput`](crate::output::DescribeApplicationOutput) with field(s):
/// - [`application_detail(Option<ApplicationDetail>)`](crate::output::DescribeApplicationOutput::application_detail): <p>Provides a description of the application, such as the application's Amazon Resource Name (ARN), status, and latest version.</p>
/// - On failure, responds with [`SdkError<DescribeApplicationError>`](crate::error::DescribeApplicationError)
pub fn describe_application(&self) -> fluent_builders::DescribeApplication {
fluent_builders::DescribeApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeApplicationSnapshot`](crate::client::fluent_builders::DescribeApplicationSnapshot) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DescribeApplicationSnapshot::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DescribeApplicationSnapshot::set_application_name): <p>The name of an existing application.</p>
/// - [`snapshot_name(impl Into<String>)`](crate::client::fluent_builders::DescribeApplicationSnapshot::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::client::fluent_builders::DescribeApplicationSnapshot::set_snapshot_name): <p>The identifier of an application snapshot. You can retrieve this value using .</p>
/// - On success, responds with [`DescribeApplicationSnapshotOutput`](crate::output::DescribeApplicationSnapshotOutput) with field(s):
/// - [`snapshot_details(Option<SnapshotDetails>)`](crate::output::DescribeApplicationSnapshotOutput::snapshot_details): <p>An object containing information about the application snapshot.</p>
/// - On failure, responds with [`SdkError<DescribeApplicationSnapshotError>`](crate::error::DescribeApplicationSnapshotError)
pub fn describe_application_snapshot(&self) -> fluent_builders::DescribeApplicationSnapshot {
fluent_builders::DescribeApplicationSnapshot::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeApplicationVersion`](crate::client::fluent_builders::DescribeApplicationVersion) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::DescribeApplicationVersion::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::DescribeApplicationVersion::set_application_name): <p>The name of the application for which you want to get the version description.</p>
/// - [`application_version_id(i64)`](crate::client::fluent_builders::DescribeApplicationVersion::application_version_id) / [`set_application_version_id(Option<i64>)`](crate::client::fluent_builders::DescribeApplicationVersion::set_application_version_id): <p>The ID of the application version for which you want to get the description.</p>
/// - On success, responds with [`DescribeApplicationVersionOutput`](crate::output::DescribeApplicationVersionOutput) with field(s):
/// - [`application_version_detail(Option<ApplicationDetail>)`](crate::output::DescribeApplicationVersionOutput::application_version_detail): <p>Describes the application, including the application Amazon Resource Name (ARN), status, latest version, and input and output configurations.</p>
/// - On failure, responds with [`SdkError<DescribeApplicationVersionError>`](crate::error::DescribeApplicationVersionError)
pub fn describe_application_version(&self) -> fluent_builders::DescribeApplicationVersion {
fluent_builders::DescribeApplicationVersion::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DiscoverInputSchema`](crate::client::fluent_builders::DiscoverInputSchema) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::DiscoverInputSchema::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::DiscoverInputSchema::set_resource_arn): <p>The Amazon Resource Name (ARN) of the streaming source.</p>
/// - [`service_execution_role(impl Into<String>)`](crate::client::fluent_builders::DiscoverInputSchema::service_execution_role) / [`set_service_execution_role(Option<String>)`](crate::client::fluent_builders::DiscoverInputSchema::set_service_execution_role): <p>The ARN of the role that is used to access the streaming source.</p>
/// - [`input_starting_position_configuration(InputStartingPositionConfiguration)`](crate::client::fluent_builders::DiscoverInputSchema::input_starting_position_configuration) / [`set_input_starting_position_configuration(Option<InputStartingPositionConfiguration>)`](crate::client::fluent_builders::DiscoverInputSchema::set_input_starting_position_configuration): <p>The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source discovery purposes.</p>
/// - [`s3_configuration(S3Configuration)`](crate::client::fluent_builders::DiscoverInputSchema::s3_configuration) / [`set_s3_configuration(Option<S3Configuration>)`](crate::client::fluent_builders::DiscoverInputSchema::set_s3_configuration): <p>Specify this parameter to discover a schema from data in an Amazon S3 object.</p>
/// - [`input_processing_configuration(InputProcessingConfiguration)`](crate::client::fluent_builders::DiscoverInputSchema::input_processing_configuration) / [`set_input_processing_configuration(Option<InputProcessingConfiguration>)`](crate::client::fluent_builders::DiscoverInputSchema::set_input_processing_configuration): <p>The <code>InputProcessingConfiguration</code> to use to preprocess the records before discovering the schema of the records.</p>
/// - On success, responds with [`DiscoverInputSchemaOutput`](crate::output::DiscoverInputSchemaOutput) with field(s):
/// - [`input_schema(Option<SourceSchema>)`](crate::output::DiscoverInputSchemaOutput::input_schema): <p>The schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.</p>
/// - [`parsed_input_records(Option<Vec<Vec<String>>>)`](crate::output::DiscoverInputSchemaOutput::parsed_input_records): <p>An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).</p>
/// - [`processed_input_records(Option<Vec<String>>)`](crate::output::DiscoverInputSchemaOutput::processed_input_records): <p>The stream data that was modified by the processor specified in the <code>InputProcessingConfiguration</code> parameter.</p>
/// - [`raw_input_records(Option<Vec<String>>)`](crate::output::DiscoverInputSchemaOutput::raw_input_records): <p>The raw stream data that was sampled to infer the schema.</p>
/// - On failure, responds with [`SdkError<DiscoverInputSchemaError>`](crate::error::DiscoverInputSchemaError)
pub fn discover_input_schema(&self) -> fluent_builders::DiscoverInputSchema {
fluent_builders::DiscoverInputSchema::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListApplications`](crate::client::fluent_builders::ListApplications) operation.
///
/// - The fluent builder is configurable:
/// - [`limit(i32)`](crate::client::fluent_builders::ListApplications::limit) / [`set_limit(Option<i32>)`](crate::client::fluent_builders::ListApplications::set_limit): <p>The maximum number of applications to list.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListApplications::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListApplications::set_next_token): <p>If a previous command returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
/// - On success, responds with [`ListApplicationsOutput`](crate::output::ListApplicationsOutput) with field(s):
/// - [`application_summaries(Option<Vec<ApplicationSummary>>)`](crate::output::ListApplicationsOutput::application_summaries): <p>A list of <code>ApplicationSummary</code> objects.</p>
/// - [`next_token(Option<String>)`](crate::output::ListApplicationsOutput::next_token): <p>The pagination token for the next set of results, or <code>null</code> if there are no additional results. Pass this token into a subsequent command to retrieve the next set of items For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
/// - On failure, responds with [`SdkError<ListApplicationsError>`](crate::error::ListApplicationsError)
pub fn list_applications(&self) -> fluent_builders::ListApplications {
fluent_builders::ListApplications::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListApplicationSnapshots`](crate::client::fluent_builders::ListApplicationSnapshots) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::ListApplicationSnapshots::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::ListApplicationSnapshots::set_application_name): <p>The name of an existing application.</p>
/// - [`limit(i32)`](crate::client::fluent_builders::ListApplicationSnapshots::limit) / [`set_limit(Option<i32>)`](crate::client::fluent_builders::ListApplicationSnapshots::set_limit): <p>The maximum number of application snapshots to list.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListApplicationSnapshots::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListApplicationSnapshots::set_next_token): <p>Use this parameter if you receive a <code>NextToken</code> response in a previous request that indicates that there is more output available. Set it to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from. </p>
/// - On success, responds with [`ListApplicationSnapshotsOutput`](crate::output::ListApplicationSnapshotsOutput) with field(s):
/// - [`snapshot_summaries(Option<Vec<SnapshotDetails>>)`](crate::output::ListApplicationSnapshotsOutput::snapshot_summaries): <p>A collection of objects containing information about the application snapshots.</p>
/// - [`next_token(Option<String>)`](crate::output::ListApplicationSnapshotsOutput::next_token): <p>The token for the next set of results, or <code>null</code> if there are no additional results.</p>
/// - On failure, responds with [`SdkError<ListApplicationSnapshotsError>`](crate::error::ListApplicationSnapshotsError)
pub fn list_application_snapshots(&self) -> fluent_builders::ListApplicationSnapshots {
fluent_builders::ListApplicationSnapshots::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListApplicationVersions`](crate::client::fluent_builders::ListApplicationVersions) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::ListApplicationVersions::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::ListApplicationVersions::set_application_name): <p>The name of the application for which you want to list all versions.</p>
/// - [`limit(i32)`](crate::client::fluent_builders::ListApplicationVersions::limit) / [`set_limit(Option<i32>)`](crate::client::fluent_builders::ListApplicationVersions::set_limit): <p>The maximum number of versions to list in this invocation of the operation.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListApplicationVersions::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListApplicationVersions::set_next_token): <p>If a previous invocation of this operation returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
/// - On success, responds with [`ListApplicationVersionsOutput`](crate::output::ListApplicationVersionsOutput) with field(s):
/// - [`application_version_summaries(Option<Vec<ApplicationVersionSummary>>)`](crate::output::ListApplicationVersionsOutput::application_version_summaries): <p>A list of the application versions and the associated configuration summaries. The list includes application versions that were rolled back.</p> <p>To get the complete description of a specific application version, invoke the <code>DescribeApplicationVersion</code> operation.</p>
/// - [`next_token(Option<String>)`](crate::output::ListApplicationVersionsOutput::next_token): <p>The pagination token for the next set of results, or <code>null</code> if there are no additional results. To retrieve the next set of items, pass this token into a subsequent invocation of this operation. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
/// - On failure, responds with [`SdkError<ListApplicationVersionsError>`](crate::error::ListApplicationVersionsError)
pub fn list_application_versions(&self) -> fluent_builders::ListApplicationVersions {
fluent_builders::ListApplicationVersions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTagsForResource`](crate::client::fluent_builders::ListTagsForResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::ListTagsForResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::ListTagsForResource::set_resource_arn): <p>The ARN of the application for which to retrieve tags.</p>
/// - On success, responds with [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) with field(s):
/// - [`tags(Option<Vec<Tag>>)`](crate::output::ListTagsForResourceOutput::tags): <p>The key-value tags assigned to the application.</p>
/// - On failure, responds with [`SdkError<ListTagsForResourceError>`](crate::error::ListTagsForResourceError)
pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource {
fluent_builders::ListTagsForResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RollbackApplication`](crate::client::fluent_builders::RollbackApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::RollbackApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::RollbackApplication::set_application_name): <p>The name of the application.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::RollbackApplication::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::RollbackApplication::set_current_application_version_id): <p>The current application version ID. You can retrieve the application version ID using <code>DescribeApplication</code>.</p>
/// - On success, responds with [`RollbackApplicationOutput`](crate::output::RollbackApplicationOutput) with field(s):
/// - [`application_detail(Option<ApplicationDetail>)`](crate::output::RollbackApplicationOutput::application_detail): <p>Describes the application, including the application Amazon Resource Name (ARN), status, latest version, and input and output configurations.</p>
/// - On failure, responds with [`SdkError<RollbackApplicationError>`](crate::error::RollbackApplicationError)
pub fn rollback_application(&self) -> fluent_builders::RollbackApplication {
fluent_builders::RollbackApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`StartApplication`](crate::client::fluent_builders::StartApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::StartApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::StartApplication::set_application_name): <p>The name of the application.</p>
/// - [`run_configuration(RunConfiguration)`](crate::client::fluent_builders::StartApplication::run_configuration) / [`set_run_configuration(Option<RunConfiguration>)`](crate::client::fluent_builders::StartApplication::set_run_configuration): <p>Identifies the run configuration (start parameters) of a Kinesis Data Analytics application.</p>
/// - On success, responds with [`StartApplicationOutput`](crate::output::StartApplicationOutput)
/// - On failure, responds with [`SdkError<StartApplicationError>`](crate::error::StartApplicationError)
pub fn start_application(&self) -> fluent_builders::StartApplication {
fluent_builders::StartApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`StopApplication`](crate::client::fluent_builders::StopApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::StopApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::StopApplication::set_application_name): <p>The name of the running application to stop.</p>
/// - [`force(bool)`](crate::client::fluent_builders::StopApplication::force) / [`set_force(Option<bool>)`](crate::client::fluent_builders::StopApplication::set_force): <p>Set to <code>true</code> to force the application to stop. If you set <code>Force</code> to <code>true</code>, Kinesis Data Analytics stops the application without taking a snapshot. </p> <note> <p>Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.</p> </note> <p>You can only force stop a Flink-based Kinesis Data Analytics application. You can't force stop a SQL-based Kinesis Data Analytics application.</p> <p>The application must be in the <code>STARTING</code>, <code>UPDATING</code>, <code>STOPPING</code>, <code>AUTOSCALING</code>, or <code>RUNNING</code> status. </p>
/// - On success, responds with [`StopApplicationOutput`](crate::output::StopApplicationOutput)
/// - On failure, responds with [`SdkError<StopApplicationError>`](crate::error::StopApplicationError)
pub fn stop_application(&self) -> fluent_builders::StopApplication {
fluent_builders::StopApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TagResource`](crate::client::fluent_builders::TagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::TagResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::TagResource::set_resource_arn): <p>The ARN of the application to assign the tags.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::TagResource::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::TagResource::set_tags): <p>The key-value tags to assign to the application.</p>
/// - On success, responds with [`TagResourceOutput`](crate::output::TagResourceOutput)
/// - On failure, responds with [`SdkError<TagResourceError>`](crate::error::TagResourceError)
pub fn tag_resource(&self) -> fluent_builders::TagResource {
fluent_builders::TagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UntagResource`](crate::client::fluent_builders::UntagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::UntagResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::UntagResource::set_resource_arn): <p>The ARN of the Kinesis Data Analytics application from which to remove the tags.</p>
/// - [`tag_keys(Vec<String>)`](crate::client::fluent_builders::UntagResource::tag_keys) / [`set_tag_keys(Option<Vec<String>>)`](crate::client::fluent_builders::UntagResource::set_tag_keys): <p>A list of keys of tags to remove from the specified application.</p>
/// - On success, responds with [`UntagResourceOutput`](crate::output::UntagResourceOutput)
/// - On failure, responds with [`SdkError<UntagResourceError>`](crate::error::UntagResourceError)
pub fn untag_resource(&self) -> fluent_builders::UntagResource {
fluent_builders::UntagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateApplication`](crate::client::fluent_builders::UpdateApplication) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::UpdateApplication::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::UpdateApplication::set_application_name): <p>The name of the application to update.</p>
/// - [`current_application_version_id(i64)`](crate::client::fluent_builders::UpdateApplication::current_application_version_id) / [`set_current_application_version_id(Option<i64>)`](crate::client::fluent_builders::UpdateApplication::set_current_application_version_id): <p>The current application version ID. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>.You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - [`application_configuration_update(ApplicationConfigurationUpdate)`](crate::client::fluent_builders::UpdateApplication::application_configuration_update) / [`set_application_configuration_update(Option<ApplicationConfigurationUpdate>)`](crate::client::fluent_builders::UpdateApplication::set_application_configuration_update): <p>Describes application configuration updates.</p>
/// - [`service_execution_role_update(impl Into<String>)`](crate::client::fluent_builders::UpdateApplication::service_execution_role_update) / [`set_service_execution_role_update(Option<String>)`](crate::client::fluent_builders::UpdateApplication::set_service_execution_role_update): <p>Describes updates to the service execution role.</p>
/// - [`run_configuration_update(RunConfigurationUpdate)`](crate::client::fluent_builders::UpdateApplication::run_configuration_update) / [`set_run_configuration_update(Option<RunConfigurationUpdate>)`](crate::client::fluent_builders::UpdateApplication::set_run_configuration_update): <p>Describes updates to the application's starting parameters.</p>
/// - [`cloud_watch_logging_option_updates(Vec<CloudWatchLoggingOptionUpdate>)`](crate::client::fluent_builders::UpdateApplication::cloud_watch_logging_option_updates) / [`set_cloud_watch_logging_option_updates(Option<Vec<CloudWatchLoggingOptionUpdate>>)`](crate::client::fluent_builders::UpdateApplication::set_cloud_watch_logging_option_updates): <p>Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use <code>AddApplicationCloudWatchLoggingOption</code>.</p>
/// - [`conditional_token(impl Into<String>)`](crate::client::fluent_builders::UpdateApplication::conditional_token) / [`set_conditional_token(Option<String>)`](crate::client::fluent_builders::UpdateApplication::set_conditional_token): <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
/// - On success, responds with [`UpdateApplicationOutput`](crate::output::UpdateApplicationOutput) with field(s):
/// - [`application_detail(Option<ApplicationDetail>)`](crate::output::UpdateApplicationOutput::application_detail): <p>Describes application updates.</p>
/// - On failure, responds with [`SdkError<UpdateApplicationError>`](crate::error::UpdateApplicationError)
pub fn update_application(&self) -> fluent_builders::UpdateApplication {
fluent_builders::UpdateApplication::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateApplicationMaintenanceConfiguration`](crate::client::fluent_builders::UpdateApplicationMaintenanceConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`application_name(impl Into<String>)`](crate::client::fluent_builders::UpdateApplicationMaintenanceConfiguration::application_name) / [`set_application_name(Option<String>)`](crate::client::fluent_builders::UpdateApplicationMaintenanceConfiguration::set_application_name): <p>The name of the application for which you want to update the maintenance configuration.</p>
/// - [`application_maintenance_configuration_update(ApplicationMaintenanceConfigurationUpdate)`](crate::client::fluent_builders::UpdateApplicationMaintenanceConfiguration::application_maintenance_configuration_update) / [`set_application_maintenance_configuration_update(Option<ApplicationMaintenanceConfigurationUpdate>)`](crate::client::fluent_builders::UpdateApplicationMaintenanceConfiguration::set_application_maintenance_configuration_update): <p>Describes the application maintenance configuration update.</p>
/// - On success, responds with [`UpdateApplicationMaintenanceConfigurationOutput`](crate::output::UpdateApplicationMaintenanceConfigurationOutput) with field(s):
/// - [`application_arn(Option<String>)`](crate::output::UpdateApplicationMaintenanceConfigurationOutput::application_arn): <p>The Amazon Resource Name (ARN) of the application.</p>
/// - [`application_maintenance_configuration_description(Option<ApplicationMaintenanceConfigurationDescription>)`](crate::output::UpdateApplicationMaintenanceConfigurationOutput::application_maintenance_configuration_description): <p>The application maintenance configuration description after the update.</p>
/// - On failure, responds with [`SdkError<UpdateApplicationMaintenanceConfigurationError>`](crate::error::UpdateApplicationMaintenanceConfigurationError)
pub fn update_application_maintenance_configuration(
&self,
) -> fluent_builders::UpdateApplicationMaintenanceConfiguration {
fluent_builders::UpdateApplicationMaintenanceConfiguration::new(self.handle.clone())
}
}
pub mod fluent_builders {
//!
//! Utilities to ergonomically construct a request to the service.
//!
//! Fluent builders are created through the [`Client`](crate::client::Client) by calling
//! one if its operation methods. After parameters are set using the builder methods,
//! the `send` method can be called to initiate the request.
//!
/// Fluent builder constructing a request to `AddApplicationCloudWatchLoggingOption`.
///
/// <p>Adds an Amazon CloudWatch log stream to monitor application configuration errors.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddApplicationCloudWatchLoggingOption {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_application_cloud_watch_logging_option_input::Builder,
}
impl AddApplicationCloudWatchLoggingOption {
/// Creates a new `AddApplicationCloudWatchLoggingOption`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AddApplicationCloudWatchLoggingOptionOutput,
aws_smithy_http::result::SdkError<
crate::error::AddApplicationCloudWatchLoggingOptionError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Kinesis Data Analytics application name.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The Kinesis Data Analytics application name.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The version ID of the Kinesis Data Analytics application. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>.You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The version ID of the Kinesis Data Analytics application. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>.You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN). </p>
pub fn cloud_watch_logging_option(
mut self,
input: crate::model::CloudWatchLoggingOption,
) -> Self {
self.inner = self.inner.cloud_watch_logging_option(input);
self
}
/// <p>Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN). </p>
pub fn set_cloud_watch_logging_option(
mut self,
input: std::option::Option<crate::model::CloudWatchLoggingOption>,
) -> Self {
self.inner = self.inner.set_cloud_watch_logging_option(input);
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn conditional_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.conditional_token(input.into());
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_conditional_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_conditional_token(input);
self
}
}
/// Fluent builder constructing a request to `AddApplicationInput`.
///
/// <p> Adds a streaming source to your SQL-based Kinesis Data Analytics application. </p>
/// <p>You can add a streaming source when you create an application, or you can use this operation to add a streaming source after you create an application. For more information, see <code>CreateApplication</code>.</p>
/// <p>Any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the <code>DescribeApplication</code> operation to find the current application version. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddApplicationInput {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_application_input_input::Builder,
}
impl AddApplicationInput {
/// Creates a new `AddApplicationInput`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AddApplicationInputOutput,
aws_smithy_http::result::SdkError<crate::error::AddApplicationInputError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of your existing application to which you want to add the streaming source.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of your existing application to which you want to add the streaming source.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The current version of your application. You must provide the <code>ApplicationVersionID</code> or the <code>ConditionalToken</code>.You can use the <code>DescribeApplication</code> operation to find the current application version.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The current version of your application. You must provide the <code>ApplicationVersionID</code> or the <code>ConditionalToken</code>.You can use the <code>DescribeApplication</code> operation to find the current application version.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The <code>Input</code> to add.</p>
pub fn input(mut self, input: crate::model::Input) -> Self {
self.inner = self.inner.input(input);
self
}
/// <p>The <code>Input</code> to add.</p>
pub fn set_input(mut self, input: std::option::Option<crate::model::Input>) -> Self {
self.inner = self.inner.set_input(input);
self
}
}
/// Fluent builder constructing a request to `AddApplicationInputProcessingConfiguration`.
///
/// <p>Adds an <code>InputProcessingConfiguration</code> to a SQL-based Kinesis Data Analytics application. An input processor pre-processes records on the input stream before the application's SQL code executes. Currently, the only input processor available is <a href="https://docs.aws.amazon.com/lambda/">Amazon Lambda</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddApplicationInputProcessingConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_application_input_processing_configuration_input::Builder,
}
impl AddApplicationInputProcessingConfiguration {
/// Creates a new `AddApplicationInputProcessingConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AddApplicationInputProcessingConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::AddApplicationInputProcessingConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application to which you want to add the input processing configuration.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application to which you want to add the input processing configuration.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The version of the application to which you want to add the input processing configuration. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The version of the application to which you want to add the input processing configuration. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the <code>DescribeApplication</code> operation.</p>
pub fn input_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.input_id(input.into());
self
}
/// <p>The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the <code>DescribeApplication</code> operation.</p>
pub fn set_input_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_input_id(input);
self
}
/// <p>The <code>InputProcessingConfiguration</code> to add to the application.</p>
pub fn input_processing_configuration(
mut self,
input: crate::model::InputProcessingConfiguration,
) -> Self {
self.inner = self.inner.input_processing_configuration(input);
self
}
/// <p>The <code>InputProcessingConfiguration</code> to add to the application.</p>
pub fn set_input_processing_configuration(
mut self,
input: std::option::Option<crate::model::InputProcessingConfiguration>,
) -> Self {
self.inner = self.inner.set_input_processing_configuration(input);
self
}
}
/// Fluent builder constructing a request to `AddApplicationOutput`.
///
/// <p>Adds an external destination to your SQL-based Kinesis Data Analytics application.</p>
/// <p>If you want Kinesis Data Analytics to deliver data from an in-application stream within your application to an external destination (such as an Kinesis data stream, a Kinesis Data Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs for your application. Each output configuration maps an in-application stream and an external destination.</p>
/// <p> You can use one of the output configurations to deliver data from your in-application error stream to an external destination so that you can analyze the errors. </p>
/// <p> Any configuration update, including adding a streaming source using this operation, results in a new version of the application. You can use the <code>DescribeApplication</code> operation to find the current application version.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddApplicationOutput {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_application_output_input::Builder,
}
impl AddApplicationOutput {
/// Creates a new `AddApplicationOutput`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AddApplicationOutputOutput,
aws_smithy_http::result::SdkError<crate::error::AddApplicationOutputError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application to which you want to add the output configuration.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application to which you want to add the output configuration.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The version of the application to which you want to add the output configuration. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The version of the application to which you want to add the output configuration. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, a Kinesis data stream, a Kinesis Data Firehose delivery stream, or an Amazon Lambda function), and record the formation to use when writing to the destination.</p>
pub fn output(mut self, input: crate::model::Output) -> Self {
self.inner = self.inner.output(input);
self
}
/// <p>An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, a Kinesis data stream, a Kinesis Data Firehose delivery stream, or an Amazon Lambda function), and record the formation to use when writing to the destination.</p>
pub fn set_output(mut self, input: std::option::Option<crate::model::Output>) -> Self {
self.inner = self.inner.set_output(input);
self
}
}
/// Fluent builder constructing a request to `AddApplicationReferenceDataSource`.
///
/// <p>Adds a reference data source to an existing SQL-based Kinesis Data Analytics application.</p>
/// <p>Kinesis Data Analytics reads reference data (that is, an Amazon S3 object) and creates an in-application table within your application. In the request, you provide the source (S3 bucket name and object key name), name of the in-application table to create, and the necessary mapping information that describes how data in an Amazon S3 object maps to columns in the resulting in-application table.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddApplicationReferenceDataSource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_application_reference_data_source_input::Builder,
}
impl AddApplicationReferenceDataSource {
/// Creates a new `AddApplicationReferenceDataSource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AddApplicationReferenceDataSourceOutput,
aws_smithy_http::result::SdkError<crate::error::AddApplicationReferenceDataSourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The version of the application for which you are adding the reference data source. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The version of the application for which you are adding the reference data source. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The reference data source can be an object in your Amazon S3 bucket. Kinesis Data Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created. </p>
pub fn reference_data_source(mut self, input: crate::model::ReferenceDataSource) -> Self {
self.inner = self.inner.reference_data_source(input);
self
}
/// <p>The reference data source can be an object in your Amazon S3 bucket. Kinesis Data Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created. </p>
pub fn set_reference_data_source(
mut self,
input: std::option::Option<crate::model::ReferenceDataSource>,
) -> Self {
self.inner = self.inner.set_reference_data_source(input);
self
}
}
/// Fluent builder constructing a request to `AddApplicationVpcConfiguration`.
///
/// <p>Adds a Virtual Private Cloud (VPC) configuration to the application. Applications can use VPCs to store and access resources securely.</p>
/// <p>Note the following about VPC configurations for Kinesis Data Analytics applications:</p>
/// <ul>
/// <li> <p>VPC configurations are not supported for SQL applications.</p> </li>
/// <li> <p>When a VPC is added to a Kinesis Data Analytics application, the application can no longer be accessed from the Internet directly. To enable Internet access to the application, add an Internet gateway to your VPC.</p> </li>
/// </ul>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddApplicationVpcConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_application_vpc_configuration_input::Builder,
}
impl AddApplicationVpcConfiguration {
/// Creates a new `AddApplicationVpcConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AddApplicationVpcConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::AddApplicationVpcConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The version of the application to which you want to add the VPC configuration. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The version of the application to which you want to add the VPC configuration. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>Description of the VPC to add to the application.</p>
pub fn vpc_configuration(mut self, input: crate::model::VpcConfiguration) -> Self {
self.inner = self.inner.vpc_configuration(input);
self
}
/// <p>Description of the VPC to add to the application.</p>
pub fn set_vpc_configuration(
mut self,
input: std::option::Option<crate::model::VpcConfiguration>,
) -> Self {
self.inner = self.inner.set_vpc_configuration(input);
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>ApplicationVersionID</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn conditional_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.conditional_token(input.into());
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>ApplicationVersionID</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_conditional_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_conditional_token(input);
self
}
}
/// Fluent builder constructing a request to `CreateApplication`.
///
/// <p>Creates a Kinesis Data Analytics application. For information about creating a Kinesis Data Analytics application, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/getting-started.html">Creating an Application</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_application_input::Builder,
}
impl CreateApplication {
/// Creates a new `CreateApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of your application (for example, <code>sample-app</code>).</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of your application (for example, <code>sample-app</code>).</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>A summary description of the application.</p>
pub fn application_description(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_description(input.into());
self
}
/// <p>A summary description of the application.</p>
pub fn set_application_description(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_description(input);
self
}
/// <p>The runtime environment for the application (<code>SQL-1_0</code>, <code>FLINK-1_6</code>, <code>FLINK-1_8</code>, or <code>FLINK-1_11</code>).</p>
pub fn runtime_environment(mut self, input: crate::model::RuntimeEnvironment) -> Self {
self.inner = self.inner.runtime_environment(input);
self
}
/// <p>The runtime environment for the application (<code>SQL-1_0</code>, <code>FLINK-1_6</code>, <code>FLINK-1_8</code>, or <code>FLINK-1_11</code>).</p>
pub fn set_runtime_environment(
mut self,
input: std::option::Option<crate::model::RuntimeEnvironment>,
) -> Self {
self.inner = self.inner.set_runtime_environment(input);
self
}
/// <p>The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.</p>
pub fn service_execution_role(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_execution_role(input.into());
self
}
/// <p>The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.</p>
pub fn set_service_execution_role(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_service_execution_role(input);
self
}
/// <p>Use this parameter to configure the application.</p>
pub fn application_configuration(
mut self,
input: crate::model::ApplicationConfiguration,
) -> Self {
self.inner = self.inner.application_configuration(input);
self
}
/// <p>Use this parameter to configure the application.</p>
pub fn set_application_configuration(
mut self,
input: std::option::Option<crate::model::ApplicationConfiguration>,
) -> Self {
self.inner = self.inner.set_application_configuration(input);
self
}
/// Appends an item to `CloudWatchLoggingOptions`.
///
/// To override the contents of this collection use [`set_cloud_watch_logging_options`](Self::set_cloud_watch_logging_options).
///
/// <p>Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors. </p>
pub fn cloud_watch_logging_options(
mut self,
input: crate::model::CloudWatchLoggingOption,
) -> Self {
self.inner = self.inner.cloud_watch_logging_options(input);
self
}
/// <p>Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors. </p>
pub fn set_cloud_watch_logging_options(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::CloudWatchLoggingOption>>,
) -> Self {
self.inner = self.inner.set_cloud_watch_logging_options(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>Use the <code>STREAMING</code> mode to create a Kinesis Data Analytics Studio notebook. To create a Kinesis Data Analytics Studio notebook, use the <code>INTERACTIVE</code> mode.</p>
pub fn application_mode(mut self, input: crate::model::ApplicationMode) -> Self {
self.inner = self.inner.application_mode(input);
self
}
/// <p>Use the <code>STREAMING</code> mode to create a Kinesis Data Analytics Studio notebook. To create a Kinesis Data Analytics Studio notebook, use the <code>INTERACTIVE</code> mode.</p>
pub fn set_application_mode(
mut self,
input: std::option::Option<crate::model::ApplicationMode>,
) -> Self {
self.inner = self.inner.set_application_mode(input);
self
}
}
/// Fluent builder constructing a request to `CreateApplicationPresignedUrl`.
///
/// <p>Creates and returns a URL that you can use to connect to an application's extension. Currently, the only available extension is the Apache Flink dashboard.</p>
/// <p>The IAM role or user used to call this API defines the permissions to access the extension. After the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request that attempts to connect to the extension. </p>
/// <p>You control the amount of time that the URL will be valid using the <code>SessionExpirationDurationInSeconds</code> parameter. If you do not provide this parameter, the returned URL is valid for twelve hours.</p> <note>
/// <p>The URL that you get from a call to CreateApplicationPresignedUrl must be used within 3 minutes to be valid. If you first try to use the URL after the 3-minute limit expires, the service returns an HTTP 403 Forbidden error.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateApplicationPresignedUrl {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_application_presigned_url_input::Builder,
}
impl CreateApplicationPresignedUrl {
/// Creates a new `CreateApplicationPresignedUrl`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateApplicationPresignedUrlOutput,
aws_smithy_http::result::SdkError<crate::error::CreateApplicationPresignedUrlError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The type of the extension for which to create and return a URL. Currently, the only valid extension URL type is <code>FLINK_DASHBOARD_URL</code>. </p>
pub fn url_type(mut self, input: crate::model::UrlType) -> Self {
self.inner = self.inner.url_type(input);
self
}
/// <p>The type of the extension for which to create and return a URL. Currently, the only valid extension URL type is <code>FLINK_DASHBOARD_URL</code>. </p>
pub fn set_url_type(mut self, input: std::option::Option<crate::model::UrlType>) -> Self {
self.inner = self.inner.set_url_type(input);
self
}
/// <p>The duration in seconds for which the returned URL will be valid.</p>
pub fn session_expiration_duration_in_seconds(mut self, input: i64) -> Self {
self.inner = self.inner.session_expiration_duration_in_seconds(input);
self
}
/// <p>The duration in seconds for which the returned URL will be valid.</p>
pub fn set_session_expiration_duration_in_seconds(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_session_expiration_duration_in_seconds(input);
self
}
}
/// Fluent builder constructing a request to `CreateApplicationSnapshot`.
///
/// <p>Creates a snapshot of the application's state data.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateApplicationSnapshot {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_application_snapshot_input::Builder,
}
impl CreateApplicationSnapshot {
/// Creates a new `CreateApplicationSnapshot`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateApplicationSnapshotOutput,
aws_smithy_http::result::SdkError<crate::error::CreateApplicationSnapshotError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>An identifier for the application snapshot.</p>
pub fn snapshot_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.snapshot_name(input.into());
self
}
/// <p>An identifier for the application snapshot.</p>
pub fn set_snapshot_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_snapshot_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplication`.
///
/// <p>Deletes the specified application. Kinesis Data Analytics halts application execution and deletes the application.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_input::Builder,
}
impl DeleteApplication {
/// Creates a new `DeleteApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application to delete.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application to delete.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>Use the <code>DescribeApplication</code> operation to get this value.</p>
pub fn create_timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.create_timestamp(input);
self
}
/// <p>Use the <code>DescribeApplication</code> operation to get this value.</p>
pub fn set_create_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_create_timestamp(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplicationCloudWatchLoggingOption`.
///
/// <p>Deletes an Amazon CloudWatch log stream from an Kinesis Data Analytics application. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplicationCloudWatchLoggingOption {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_cloud_watch_logging_option_input::Builder,
}
impl DeleteApplicationCloudWatchLoggingOption {
/// Creates a new `DeleteApplicationCloudWatchLoggingOption`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationCloudWatchLoggingOptionOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteApplicationCloudWatchLoggingOptionError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The application name.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The application name.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The version ID of the application. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The version ID of the application. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The <code>CloudWatchLoggingOptionId</code> of the Amazon CloudWatch logging option to delete. You can get the <code>CloudWatchLoggingOptionId</code> by using the <code>DescribeApplication</code> operation. </p>
pub fn cloud_watch_logging_option_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.cloud_watch_logging_option_id(input.into());
self
}
/// <p>The <code>CloudWatchLoggingOptionId</code> of the Amazon CloudWatch logging option to delete. You can get the <code>CloudWatchLoggingOptionId</code> by using the <code>DescribeApplication</code> operation. </p>
pub fn set_cloud_watch_logging_option_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_cloud_watch_logging_option_id(input);
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn conditional_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.conditional_token(input.into());
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_conditional_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_conditional_token(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplicationInputProcessingConfiguration`.
///
/// <p>Deletes an <code>InputProcessingConfiguration</code> from an input.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplicationInputProcessingConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_input_processing_configuration_input::Builder,
}
impl DeleteApplicationInputProcessingConfiguration {
/// Creates a new `DeleteApplicationInputProcessingConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationInputProcessingConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteApplicationInputProcessingConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The ID of the input configuration from which to delete the input processing configuration. You can get a list of the input IDs for an application by using the <code>DescribeApplication</code> operation.</p>
pub fn input_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.input_id(input.into());
self
}
/// <p>The ID of the input configuration from which to delete the input processing configuration. You can get a list of the input IDs for an application by using the <code>DescribeApplication</code> operation.</p>
pub fn set_input_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_input_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplicationOutput`.
///
/// <p>Deletes the output destination configuration from your SQL-based Kinesis Data Analytics application's configuration. Kinesis Data Analytics will no longer write data from the corresponding in-application stream to the external output destination.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplicationOutput {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_output_input::Builder,
}
impl DeleteApplicationOutput {
/// Creates a new `DeleteApplicationOutput`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationOutputOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteApplicationOutputError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The application name.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The application name.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned. </p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The ID of the configuration to delete. Each output configuration that is added to the application (either when the application is created or later) using the <code>AddApplicationOutput</code> operation has a unique ID. You need to provide the ID to uniquely identify the output configuration that you want to delete from the application configuration. You can use the <code>DescribeApplication</code> operation to get the specific <code>OutputId</code>. </p>
pub fn output_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.output_id(input.into());
self
}
/// <p>The ID of the configuration to delete. Each output configuration that is added to the application (either when the application is created or later) using the <code>AddApplicationOutput</code> operation has a unique ID. You need to provide the ID to uniquely identify the output configuration that you want to delete from the application configuration. You can use the <code>DescribeApplication</code> operation to get the specific <code>OutputId</code>. </p>
pub fn set_output_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_output_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplicationReferenceDataSource`.
///
/// <p>Deletes a reference data source configuration from the specified SQL-based Kinesis Data Analytics application's configuration.</p>
/// <p>If the application is running, Kinesis Data Analytics immediately removes the in-application table that you created using the <code>AddApplicationReferenceDataSource</code> operation. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplicationReferenceDataSource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_reference_data_source_input::Builder,
}
impl DeleteApplicationReferenceDataSource {
/// Creates a new `DeleteApplicationReferenceDataSource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationReferenceDataSourceOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteApplicationReferenceDataSourceError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The current application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The current application version. You can use the <code>DescribeApplication</code> operation to get the current application version. If the version specified is not the current version, the <code>ConcurrentModificationException</code> is returned.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The ID of the reference data source. When you add a reference data source to your application using the <code>AddApplicationReferenceDataSource</code>, Kinesis Data Analytics assigns an ID. You can use the <code>DescribeApplication</code> operation to get the reference ID. </p>
pub fn reference_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.reference_id(input.into());
self
}
/// <p>The ID of the reference data source. When you add a reference data source to your application using the <code>AddApplicationReferenceDataSource</code>, Kinesis Data Analytics assigns an ID. You can use the <code>DescribeApplication</code> operation to get the reference ID. </p>
pub fn set_reference_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_reference_id(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplicationSnapshot`.
///
/// <p>Deletes a snapshot of application state.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplicationSnapshot {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_snapshot_input::Builder,
}
impl DeleteApplicationSnapshot {
/// Creates a new `DeleteApplicationSnapshot`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationSnapshotOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteApplicationSnapshotError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The identifier for the snapshot delete.</p>
pub fn snapshot_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.snapshot_name(input.into());
self
}
/// <p>The identifier for the snapshot delete.</p>
pub fn set_snapshot_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_snapshot_name(input);
self
}
/// <p>The creation timestamp of the application snapshot to delete. You can retrieve this value using or .</p>
pub fn snapshot_creation_timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.snapshot_creation_timestamp(input);
self
}
/// <p>The creation timestamp of the application snapshot to delete. You can retrieve this value using or .</p>
pub fn set_snapshot_creation_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_snapshot_creation_timestamp(input);
self
}
}
/// Fluent builder constructing a request to `DeleteApplicationVpcConfiguration`.
///
/// <p>Removes a VPC configuration from a Kinesis Data Analytics application.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteApplicationVpcConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_application_vpc_configuration_input::Builder,
}
impl DeleteApplicationVpcConfiguration {
/// Creates a new `DeleteApplicationVpcConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteApplicationVpcConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteApplicationVpcConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The current application version ID. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The current application version ID. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>The ID of the VPC configuration to delete.</p>
pub fn vpc_configuration_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_configuration_id(input.into());
self
}
/// <p>The ID of the VPC configuration to delete.</p>
pub fn set_vpc_configuration_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_configuration_id(input);
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn conditional_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.conditional_token(input.into());
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_conditional_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_conditional_token(input);
self
}
}
/// Fluent builder constructing a request to `DescribeApplication`.
///
/// <p>Returns information about a specific Kinesis Data Analytics application.</p>
/// <p>If you want to retrieve a list of all applications in your account, use the <code>ListApplications</code> operation.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_application_input::Builder,
}
impl DescribeApplication {
/// Creates a new `DescribeApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>Displays verbose information about a Kinesis Data Analytics application, including the application's job plan.</p>
pub fn include_additional_details(mut self, input: bool) -> Self {
self.inner = self.inner.include_additional_details(input);
self
}
/// <p>Displays verbose information about a Kinesis Data Analytics application, including the application's job plan.</p>
pub fn set_include_additional_details(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_include_additional_details(input);
self
}
}
/// Fluent builder constructing a request to `DescribeApplicationSnapshot`.
///
/// <p>Returns information about a snapshot of application state data.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeApplicationSnapshot {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_application_snapshot_input::Builder,
}
impl DescribeApplicationSnapshot {
/// Creates a new `DescribeApplicationSnapshot`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeApplicationSnapshotOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeApplicationSnapshotError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The identifier of an application snapshot. You can retrieve this value using .</p>
pub fn snapshot_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.snapshot_name(input.into());
self
}
/// <p>The identifier of an application snapshot. You can retrieve this value using .</p>
pub fn set_snapshot_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_snapshot_name(input);
self
}
}
/// Fluent builder constructing a request to `DescribeApplicationVersion`.
///
/// <p>Provides a detailed description of a specified version of the application. To see a list of all the versions of an application, invoke the <code>ListApplicationVersions</code> operation.</p> <note>
/// <p>This operation is supported only for Amazon Kinesis Data Analytics for Apache Flink.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeApplicationVersion {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_application_version_input::Builder,
}
impl DescribeApplicationVersion {
/// Creates a new `DescribeApplicationVersion`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeApplicationVersionOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeApplicationVersionError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application for which you want to get the version description.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application for which you want to get the version description.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The ID of the application version for which you want to get the description.</p>
pub fn application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.application_version_id(input);
self
}
/// <p>The ID of the application version for which you want to get the description.</p>
pub fn set_application_version_id(mut self, input: std::option::Option<i64>) -> Self {
self.inner = self.inner.set_application_version_id(input);
self
}
}
/// Fluent builder constructing a request to `DiscoverInputSchema`.
///
/// <p>Infers a schema for a SQL-based Kinesis Data Analytics application by evaluating sample records on the specified streaming source (Kinesis data stream or Kinesis Data Firehose delivery stream) or Amazon S3 object. In the response, the operation returns the inferred schema and also the sample records that the operation used to infer the schema.</p>
/// <p> You can use the inferred schema when configuring a streaming source for your application. When you create an application using the Kinesis Data Analytics console, the console uses this operation to infer a schema and show it in the console user interface. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DiscoverInputSchema {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::discover_input_schema_input::Builder,
}
impl DiscoverInputSchema {
/// Creates a new `DiscoverInputSchema`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DiscoverInputSchemaOutput,
aws_smithy_http::result::SdkError<crate::error::DiscoverInputSchemaError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the streaming source.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the streaming source.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// <p>The ARN of the role that is used to access the streaming source.</p>
pub fn service_execution_role(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_execution_role(input.into());
self
}
/// <p>The ARN of the role that is used to access the streaming source.</p>
pub fn set_service_execution_role(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_service_execution_role(input);
self
}
/// <p>The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source discovery purposes.</p>
pub fn input_starting_position_configuration(
mut self,
input: crate::model::InputStartingPositionConfiguration,
) -> Self {
self.inner = self.inner.input_starting_position_configuration(input);
self
}
/// <p>The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source discovery purposes.</p>
pub fn set_input_starting_position_configuration(
mut self,
input: std::option::Option<crate::model::InputStartingPositionConfiguration>,
) -> Self {
self.inner = self.inner.set_input_starting_position_configuration(input);
self
}
/// <p>Specify this parameter to discover a schema from data in an Amazon S3 object.</p>
pub fn s3_configuration(mut self, input: crate::model::S3Configuration) -> Self {
self.inner = self.inner.s3_configuration(input);
self
}
/// <p>Specify this parameter to discover a schema from data in an Amazon S3 object.</p>
pub fn set_s3_configuration(
mut self,
input: std::option::Option<crate::model::S3Configuration>,
) -> Self {
self.inner = self.inner.set_s3_configuration(input);
self
}
/// <p>The <code>InputProcessingConfiguration</code> to use to preprocess the records before discovering the schema of the records.</p>
pub fn input_processing_configuration(
mut self,
input: crate::model::InputProcessingConfiguration,
) -> Self {
self.inner = self.inner.input_processing_configuration(input);
self
}
/// <p>The <code>InputProcessingConfiguration</code> to use to preprocess the records before discovering the schema of the records.</p>
pub fn set_input_processing_configuration(
mut self,
input: std::option::Option<crate::model::InputProcessingConfiguration>,
) -> Self {
self.inner = self.inner.set_input_processing_configuration(input);
self
}
}
/// Fluent builder constructing a request to `ListApplications`.
///
/// <p>Returns a list of Kinesis Data Analytics applications in your account. For each application, the response includes the application name, Amazon Resource Name (ARN), and status. </p>
/// <p>If you want detailed information about a specific application, use <code>DescribeApplication</code>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListApplications {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_applications_input::Builder,
}
impl ListApplications {
/// Creates a new `ListApplications`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListApplicationsOutput,
aws_smithy_http::result::SdkError<crate::error::ListApplicationsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The maximum number of applications to list.</p>
pub fn limit(mut self, input: i32) -> Self {
self.inner = self.inner.limit(input);
self
}
/// <p>The maximum number of applications to list.</p>
pub fn set_limit(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_limit(input);
self
}
/// <p>If a previous command returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>If a previous command returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListApplicationSnapshots`.
///
/// <p>Lists information about the current application snapshots.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListApplicationSnapshots {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_application_snapshots_input::Builder,
}
impl ListApplicationSnapshots {
/// Creates a new `ListApplicationSnapshots`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListApplicationSnapshotsOutput,
aws_smithy_http::result::SdkError<crate::error::ListApplicationSnapshotsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of an existing application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an existing application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The maximum number of application snapshots to list.</p>
pub fn limit(mut self, input: i32) -> Self {
self.inner = self.inner.limit(input);
self
}
/// <p>The maximum number of application snapshots to list.</p>
pub fn set_limit(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_limit(input);
self
}
/// <p>Use this parameter if you receive a <code>NextToken</code> response in a previous request that indicates that there is more output available. Set it to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from. </p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>Use this parameter if you receive a <code>NextToken</code> response in a previous request that indicates that there is more output available. Set it to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from. </p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListApplicationVersions`.
///
/// <p>Lists all the versions for the specified application, including versions that were rolled back. The response also includes a summary of the configuration associated with each version.</p>
/// <p>To get the complete description of a specific application version, invoke the <code>DescribeApplicationVersion</code> operation.</p> <note>
/// <p>This operation is supported only for Amazon Kinesis Data Analytics for Apache Flink.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListApplicationVersions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_application_versions_input::Builder,
}
impl ListApplicationVersions {
/// Creates a new `ListApplicationVersions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListApplicationVersionsOutput,
aws_smithy_http::result::SdkError<crate::error::ListApplicationVersionsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application for which you want to list all versions.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application for which you want to list all versions.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The maximum number of versions to list in this invocation of the operation.</p>
pub fn limit(mut self, input: i32) -> Self {
self.inner = self.inner.limit(input);
self
}
/// <p>The maximum number of versions to list in this invocation of the operation.</p>
pub fn set_limit(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_limit(input);
self
}
/// <p>If a previous invocation of this operation returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>If a previous invocation of this operation returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListTagsForResource`.
///
/// <p>Retrieves the list of key-value tags assigned to the application. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTagsForResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_tags_for_resource_input::Builder,
}
impl ListTagsForResource {
/// Creates a new `ListTagsForResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListTagsForResourceOutput,
aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ARN of the application for which to retrieve tags.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The ARN of the application for which to retrieve tags.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
}
/// Fluent builder constructing a request to `RollbackApplication`.
///
/// <p>Reverts the application to the previous running version. You can roll back an application if you suspect it is stuck in a transient status. </p>
/// <p>You can roll back an application only if it is in the <code>UPDATING</code> or <code>AUTOSCALING</code> status.</p>
/// <p>When you rollback an application, it loads state data from the last successful snapshot. If the application has no snapshots, Kinesis Data Analytics rejects the rollback request.</p>
/// <p>This action is not supported for Kinesis Data Analytics for SQL applications.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct RollbackApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::rollback_application_input::Builder,
}
impl RollbackApplication {
/// Creates a new `RollbackApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::RollbackApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::RollbackApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The current application version ID. You can retrieve the application version ID using <code>DescribeApplication</code>.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The current application version ID. You can retrieve the application version ID using <code>DescribeApplication</code>.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
}
/// Fluent builder constructing a request to `StartApplication`.
///
/// <p>Starts the specified Kinesis Data Analytics application. After creating an application, you must exclusively call this operation to start your application.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::start_application_input::Builder,
}
impl StartApplication {
/// Creates a new `StartApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::StartApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>Identifies the run configuration (start parameters) of a Kinesis Data Analytics application.</p>
pub fn run_configuration(mut self, input: crate::model::RunConfiguration) -> Self {
self.inner = self.inner.run_configuration(input);
self
}
/// <p>Identifies the run configuration (start parameters) of a Kinesis Data Analytics application.</p>
pub fn set_run_configuration(
mut self,
input: std::option::Option<crate::model::RunConfiguration>,
) -> Self {
self.inner = self.inner.set_run_configuration(input);
self
}
}
/// Fluent builder constructing a request to `StopApplication`.
///
/// <p>Stops the application from processing data. You can stop an application only if it is in the running status, unless you set the <code>Force</code> parameter to <code>true</code>.</p>
/// <p>You can use the <code>DescribeApplication</code> operation to find the application status. </p>
/// <p>Kinesis Data Analytics takes a snapshot when the application is stopped, unless <code>Force</code> is set to <code>true</code>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StopApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::stop_application_input::Builder,
}
impl StopApplication {
/// Creates a new `StopApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StopApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::StopApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the running application to stop.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the running application to stop.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>Set to <code>true</code> to force the application to stop. If you set <code>Force</code> to <code>true</code>, Kinesis Data Analytics stops the application without taking a snapshot. </p> <note>
/// <p>Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.</p>
/// </note>
/// <p>You can only force stop a Flink-based Kinesis Data Analytics application. You can't force stop a SQL-based Kinesis Data Analytics application.</p>
/// <p>The application must be in the <code>STARTING</code>, <code>UPDATING</code>, <code>STOPPING</code>, <code>AUTOSCALING</code>, or <code>RUNNING</code> status. </p>
pub fn force(mut self, input: bool) -> Self {
self.inner = self.inner.force(input);
self
}
/// <p>Set to <code>true</code> to force the application to stop. If you set <code>Force</code> to <code>true</code>, Kinesis Data Analytics stops the application without taking a snapshot. </p> <note>
/// <p>Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.</p>
/// </note>
/// <p>You can only force stop a Flink-based Kinesis Data Analytics application. You can't force stop a SQL-based Kinesis Data Analytics application.</p>
/// <p>The application must be in the <code>STARTING</code>, <code>UPDATING</code>, <code>STOPPING</code>, <code>AUTOSCALING</code>, or <code>RUNNING</code> status. </p>
pub fn set_force(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_force(input);
self
}
}
/// Fluent builder constructing a request to `TagResource`.
///
/// <p>Adds one or more key-value tags to a Kinesis Data Analytics application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct TagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::tag_resource_input::Builder,
}
impl TagResource {
/// Creates a new `TagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::TagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::TagResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ARN of the application to assign the tags.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The ARN of the application to assign the tags.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The key-value tags to assign to the application.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>The key-value tags to assign to the application.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `UntagResource`.
///
/// <p>Removes one or more tags from a Kinesis Data Analytics application. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UntagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::untag_resource_input::Builder,
}
impl UntagResource {
/// Creates a new `UntagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UntagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The ARN of the Kinesis Data Analytics application from which to remove the tags.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The ARN of the Kinesis Data Analytics application from which to remove the tags.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// Appends an item to `TagKeys`.
///
/// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
///
/// <p>A list of keys of tags to remove from the specified application.</p>
pub fn tag_keys(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_keys(input.into());
self
}
/// <p>A list of keys of tags to remove from the specified application.</p>
pub fn set_tag_keys(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_keys(input);
self
}
}
/// Fluent builder constructing a request to `UpdateApplication`.
///
/// <p>Updates an existing Kinesis Data Analytics application. Using this operation, you can update application code, input configuration, and output configuration. </p>
/// <p>Kinesis Data Analytics updates the <code>ApplicationVersionId</code> each time you update your application. </p> <note>
/// <p>You cannot update the <code>RuntimeEnvironment</code> of an existing application. If you need to update an application's <code>RuntimeEnvironment</code>, you must delete the application and create it again.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateApplication {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_application_input::Builder,
}
impl UpdateApplication {
/// Creates a new `UpdateApplication`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateApplicationError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application to update.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application to update.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The current application version ID. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>.You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn current_application_version_id(mut self, input: i64) -> Self {
self.inner = self.inner.current_application_version_id(input);
self
}
/// <p>The current application version ID. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>.You can retrieve the application version ID using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_current_application_version_id(
mut self,
input: std::option::Option<i64>,
) -> Self {
self.inner = self.inner.set_current_application_version_id(input);
self
}
/// <p>Describes application configuration updates.</p>
pub fn application_configuration_update(
mut self,
input: crate::model::ApplicationConfigurationUpdate,
) -> Self {
self.inner = self.inner.application_configuration_update(input);
self
}
/// <p>Describes application configuration updates.</p>
pub fn set_application_configuration_update(
mut self,
input: std::option::Option<crate::model::ApplicationConfigurationUpdate>,
) -> Self {
self.inner = self.inner.set_application_configuration_update(input);
self
}
/// <p>Describes updates to the service execution role.</p>
pub fn service_execution_role_update(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.service_execution_role_update(input.into());
self
}
/// <p>Describes updates to the service execution role.</p>
pub fn set_service_execution_role_update(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_service_execution_role_update(input);
self
}
/// <p>Describes updates to the application's starting parameters.</p>
pub fn run_configuration_update(
mut self,
input: crate::model::RunConfigurationUpdate,
) -> Self {
self.inner = self.inner.run_configuration_update(input);
self
}
/// <p>Describes updates to the application's starting parameters.</p>
pub fn set_run_configuration_update(
mut self,
input: std::option::Option<crate::model::RunConfigurationUpdate>,
) -> Self {
self.inner = self.inner.set_run_configuration_update(input);
self
}
/// Appends an item to `CloudWatchLoggingOptionUpdates`.
///
/// To override the contents of this collection use [`set_cloud_watch_logging_option_updates`](Self::set_cloud_watch_logging_option_updates).
///
/// <p>Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use <code>AddApplicationCloudWatchLoggingOption</code>.</p>
pub fn cloud_watch_logging_option_updates(
mut self,
input: crate::model::CloudWatchLoggingOptionUpdate,
) -> Self {
self.inner = self.inner.cloud_watch_logging_option_updates(input);
self
}
/// <p>Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use <code>AddApplicationCloudWatchLoggingOption</code>.</p>
pub fn set_cloud_watch_logging_option_updates(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::CloudWatchLoggingOptionUpdate>>,
) -> Self {
self.inner = self.inner.set_cloud_watch_logging_option_updates(input);
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn conditional_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.conditional_token(input.into());
self
}
/// <p>A value you use to implement strong concurrency for application updates. You must provide the <code>CurrentApplicationVersionId</code> or the <code>ConditionalToken</code>. You get the application's current <code>ConditionalToken</code> using <code>DescribeApplication</code>. For better concurrency support, use the <code>ConditionalToken</code> parameter instead of <code>CurrentApplicationVersionId</code>.</p>
pub fn set_conditional_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_conditional_token(input);
self
}
}
/// Fluent builder constructing a request to `UpdateApplicationMaintenanceConfiguration`.
///
/// <p>Updates the maintenance configuration of the Kinesis Data Analytics application. </p>
/// <p>You can invoke this operation on an application that is in one of the two following states: <code>READY</code> or <code>RUNNING</code>. If you invoke it when the application is in a state other than these two states, it throws a <code>ResourceInUseException</code>. The service makes use of the updated configuration the next time it schedules maintenance for the application. If you invoke this operation after the service schedules maintenance, the service will apply the configuration update the next time it schedules maintenance for the application. This means that you might not see the maintenance configuration update applied to the maintenance process that follows a successful invocation of this operation, but to the following maintenance process instead.</p>
/// <p>To see the current maintenance configuration of your application, invoke the <code>DescribeApplication</code> operation.</p>
/// <p>For information about application maintenance, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/maintenance.html">Kinesis Data Analytics for Apache Flink Maintenance</a>.</p> <note>
/// <p>This operation is supported only for Amazon Kinesis Data Analytics for Apache Flink.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateApplicationMaintenanceConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_application_maintenance_configuration_input::Builder,
}
impl UpdateApplicationMaintenanceConfiguration {
/// Creates a new `UpdateApplicationMaintenanceConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateApplicationMaintenanceConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::UpdateApplicationMaintenanceConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the application for which you want to update the maintenance configuration.</p>
pub fn application_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of the application for which you want to update the maintenance configuration.</p>
pub fn set_application_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>Describes the application maintenance configuration update.</p>
pub fn application_maintenance_configuration_update(
mut self,
input: crate::model::ApplicationMaintenanceConfigurationUpdate,
) -> Self {
self.inner = self
.inner
.application_maintenance_configuration_update(input);
self
}
/// <p>Describes the application maintenance configuration update.</p>
pub fn set_application_maintenance_configuration_update(
mut self,
input: std::option::Option<crate::model::ApplicationMaintenanceConfigurationUpdate>,
) -> Self {
self.inner = self
.inner
.set_application_maintenance_configuration_update(input);
self
}
}
}
impl Client {
/// Creates a client with the given service config and connector override.
pub fn from_conf_conn<C, E>(conf: crate::Config, conn: C) -> Self
where
C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
E: Into<aws_smithy_http::result::ConnectorError>,
{
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::new()
.connector(aws_smithy_client::erase::DynConnector::new(conn))
.middleware(aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
));
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
/// Creates a new client from the service [`Config`](crate::Config).
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn from_conf(conf: crate::Config) -> Self {
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::dyn_https().middleware(
aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
),
);
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
// the builder maintains a try-state. To avoid suppressing the warning when sleep is unset,
// only set it if we actually have a sleep impl.
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
}