1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340
// 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 AWS Lake Formation
///
/// Client for invoking operations on AWS Lake Formation. Each operation on AWS Lake Formation 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_lakeformation::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_lakeformation::config::Builder::from(&shared_config)
/// .retry_config(RetryConfig::disabled())
/// .build();
/// let client = aws_sdk_lakeformation::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 [`AddLFTagsToResource`](crate::client::fluent_builders::AddLFTagsToResource) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::AddLFTagsToResource::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::AddLFTagsToResource::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`resource(Resource)`](crate::client::fluent_builders::AddLFTagsToResource::resource) / [`set_resource(Option<Resource>)`](crate::client::fluent_builders::AddLFTagsToResource::set_resource): <p>The database, table, or column resource to which to attach an LF-tag.</p>
/// - [`lf_tags(Vec<LfTagPair>)`](crate::client::fluent_builders::AddLFTagsToResource::lf_tags) / [`set_lf_tags(Option<Vec<LfTagPair>>)`](crate::client::fluent_builders::AddLFTagsToResource::set_lf_tags): <p>The LF-tags to attach to the resource.</p>
/// - On success, responds with [`AddLfTagsToResourceOutput`](crate::output::AddLfTagsToResourceOutput) with field(s):
/// - [`failures(Option<Vec<LfTagError>>)`](crate::output::AddLfTagsToResourceOutput::failures): <p>A list of failures to tag the resource.</p>
/// - On failure, responds with [`SdkError<AddLFTagsToResourceError>`](crate::error::AddLFTagsToResourceError)
pub fn add_lf_tags_to_resource(&self) -> fluent_builders::AddLFTagsToResource {
fluent_builders::AddLFTagsToResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`BatchGrantPermissions`](crate::client::fluent_builders::BatchGrantPermissions) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::BatchGrantPermissions::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::BatchGrantPermissions::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`entries(Vec<BatchPermissionsRequestEntry>)`](crate::client::fluent_builders::BatchGrantPermissions::entries) / [`set_entries(Option<Vec<BatchPermissionsRequestEntry>>)`](crate::client::fluent_builders::BatchGrantPermissions::set_entries): <p>A list of up to 20 entries for resource permissions to be granted by batch operation to the principal.</p>
/// - On success, responds with [`BatchGrantPermissionsOutput`](crate::output::BatchGrantPermissionsOutput) with field(s):
/// - [`failures(Option<Vec<BatchPermissionsFailureEntry>>)`](crate::output::BatchGrantPermissionsOutput::failures): <p>A list of failures to grant permissions to the resources.</p>
/// - On failure, responds with [`SdkError<BatchGrantPermissionsError>`](crate::error::BatchGrantPermissionsError)
pub fn batch_grant_permissions(&self) -> fluent_builders::BatchGrantPermissions {
fluent_builders::BatchGrantPermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`BatchRevokePermissions`](crate::client::fluent_builders::BatchRevokePermissions) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::BatchRevokePermissions::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::BatchRevokePermissions::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`entries(Vec<BatchPermissionsRequestEntry>)`](crate::client::fluent_builders::BatchRevokePermissions::entries) / [`set_entries(Option<Vec<BatchPermissionsRequestEntry>>)`](crate::client::fluent_builders::BatchRevokePermissions::set_entries): <p>A list of up to 20 entries for resource permissions to be revoked by batch operation to the principal.</p>
/// - On success, responds with [`BatchRevokePermissionsOutput`](crate::output::BatchRevokePermissionsOutput) with field(s):
/// - [`failures(Option<Vec<BatchPermissionsFailureEntry>>)`](crate::output::BatchRevokePermissionsOutput::failures): <p>A list of failures to revoke permissions to the resources.</p>
/// - On failure, responds with [`SdkError<BatchRevokePermissionsError>`](crate::error::BatchRevokePermissionsError)
pub fn batch_revoke_permissions(&self) -> fluent_builders::BatchRevokePermissions {
fluent_builders::BatchRevokePermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CancelTransaction`](crate::client::fluent_builders::CancelTransaction) operation.
///
/// - The fluent builder is configurable:
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::CancelTransaction::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::CancelTransaction::set_transaction_id): <p>The transaction to cancel.</p>
/// - On success, responds with [`CancelTransactionOutput`](crate::output::CancelTransactionOutput)
/// - On failure, responds with [`SdkError<CancelTransactionError>`](crate::error::CancelTransactionError)
pub fn cancel_transaction(&self) -> fluent_builders::CancelTransaction {
fluent_builders::CancelTransaction::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CommitTransaction`](crate::client::fluent_builders::CommitTransaction) operation.
///
/// - The fluent builder is configurable:
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::CommitTransaction::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::CommitTransaction::set_transaction_id): <p>The transaction to commit.</p>
/// - On success, responds with [`CommitTransactionOutput`](crate::output::CommitTransactionOutput) with field(s):
/// - [`transaction_status(Option<TransactionStatus>)`](crate::output::CommitTransactionOutput::transaction_status): <p>The status of the transaction.</p>
/// - On failure, responds with [`SdkError<CommitTransactionError>`](crate::error::CommitTransactionError)
pub fn commit_transaction(&self) -> fluent_builders::CommitTransaction {
fluent_builders::CommitTransaction::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateDataCellsFilter`](crate::client::fluent_builders::CreateDataCellsFilter) operation.
///
/// - The fluent builder is configurable:
/// - [`table_data(DataCellsFilter)`](crate::client::fluent_builders::CreateDataCellsFilter::table_data) / [`set_table_data(Option<DataCellsFilter>)`](crate::client::fluent_builders::CreateDataCellsFilter::set_table_data): <p>A <code>DataCellsFilter</code> structure containing information about the data cells filter.</p>
/// - On success, responds with [`CreateDataCellsFilterOutput`](crate::output::CreateDataCellsFilterOutput)
/// - On failure, responds with [`SdkError<CreateDataCellsFilterError>`](crate::error::CreateDataCellsFilterError)
pub fn create_data_cells_filter(&self) -> fluent_builders::CreateDataCellsFilter {
fluent_builders::CreateDataCellsFilter::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateLFTag`](crate::client::fluent_builders::CreateLFTag) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::CreateLFTag::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::CreateLFTag::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`tag_key(impl Into<String>)`](crate::client::fluent_builders::CreateLFTag::tag_key) / [`set_tag_key(Option<String>)`](crate::client::fluent_builders::CreateLFTag::set_tag_key): <p>The key-name for the LF-tag.</p>
/// - [`tag_values(Vec<String>)`](crate::client::fluent_builders::CreateLFTag::tag_values) / [`set_tag_values(Option<Vec<String>>)`](crate::client::fluent_builders::CreateLFTag::set_tag_values): <p>A list of possible values an attribute can take.</p>
/// - On success, responds with [`CreateLfTagOutput`](crate::output::CreateLfTagOutput)
/// - On failure, responds with [`SdkError<CreateLFTagError>`](crate::error::CreateLFTagError)
pub fn create_lf_tag(&self) -> fluent_builders::CreateLFTag {
fluent_builders::CreateLFTag::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteDataCellsFilter`](crate::client::fluent_builders::DeleteDataCellsFilter) operation.
///
/// - The fluent builder is configurable:
/// - [`table_catalog_id(impl Into<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::table_catalog_id) / [`set_table_catalog_id(Option<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::set_table_catalog_id): <p>The ID of the catalog to which the table belongs.</p>
/// - [`database_name(impl Into<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::database_name) / [`set_database_name(Option<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::set_database_name): <p>A database in the Glue Data Catalog.</p>
/// - [`table_name(impl Into<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::table_name) / [`set_table_name(Option<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::set_table_name): <p>A table in the database.</p>
/// - [`name(impl Into<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::name) / [`set_name(Option<String>)`](crate::client::fluent_builders::DeleteDataCellsFilter::set_name): <p>The name given by the user to the data filter cell.</p>
/// - On success, responds with [`DeleteDataCellsFilterOutput`](crate::output::DeleteDataCellsFilterOutput)
/// - On failure, responds with [`SdkError<DeleteDataCellsFilterError>`](crate::error::DeleteDataCellsFilterError)
pub fn delete_data_cells_filter(&self) -> fluent_builders::DeleteDataCellsFilter {
fluent_builders::DeleteDataCellsFilter::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteLFTag`](crate::client::fluent_builders::DeleteLFTag) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::DeleteLFTag::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::DeleteLFTag::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`tag_key(impl Into<String>)`](crate::client::fluent_builders::DeleteLFTag::tag_key) / [`set_tag_key(Option<String>)`](crate::client::fluent_builders::DeleteLFTag::set_tag_key): <p>The key-name for the LF-tag to delete.</p>
/// - On success, responds with [`DeleteLfTagOutput`](crate::output::DeleteLfTagOutput)
/// - On failure, responds with [`SdkError<DeleteLFTagError>`](crate::error::DeleteLFTagError)
pub fn delete_lf_tag(&self) -> fluent_builders::DeleteLFTag {
fluent_builders::DeleteLFTag::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteObjectsOnCancel`](crate::client::fluent_builders::DeleteObjectsOnCancel) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::set_catalog_id): <p>The Glue data catalog that contains the governed table. Defaults to the current account ID.</p>
/// - [`database_name(impl Into<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::database_name) / [`set_database_name(Option<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::set_database_name): <p>The database that contains the governed table.</p>
/// - [`table_name(impl Into<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::table_name) / [`set_table_name(Option<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::set_table_name): <p>The name of the governed table.</p>
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::set_transaction_id): <p>ID of the transaction that the writes occur in.</p>
/// - [`objects(Vec<VirtualObject>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::objects) / [`set_objects(Option<Vec<VirtualObject>>)`](crate::client::fluent_builders::DeleteObjectsOnCancel::set_objects): <p>A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.</p>
/// - On success, responds with [`DeleteObjectsOnCancelOutput`](crate::output::DeleteObjectsOnCancelOutput)
/// - On failure, responds with [`SdkError<DeleteObjectsOnCancelError>`](crate::error::DeleteObjectsOnCancelError)
pub fn delete_objects_on_cancel(&self) -> fluent_builders::DeleteObjectsOnCancel {
fluent_builders::DeleteObjectsOnCancel::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeregisterResource`](crate::client::fluent_builders::DeregisterResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::DeregisterResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::DeregisterResource::set_resource_arn): <p>The Amazon Resource Name (ARN) of the resource that you want to deregister.</p>
/// - On success, responds with [`DeregisterResourceOutput`](crate::output::DeregisterResourceOutput)
/// - On failure, responds with [`SdkError<DeregisterResourceError>`](crate::error::DeregisterResourceError)
pub fn deregister_resource(&self) -> fluent_builders::DeregisterResource {
fluent_builders::DeregisterResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeResource`](crate::client::fluent_builders::DescribeResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::DescribeResource::set_resource_arn): <p>The resource ARN.</p>
/// - On success, responds with [`DescribeResourceOutput`](crate::output::DescribeResourceOutput) with field(s):
/// - [`resource_info(Option<ResourceInfo>)`](crate::output::DescribeResourceOutput::resource_info): <p>A structure containing information about an Lake Formation resource.</p>
/// - On failure, responds with [`SdkError<DescribeResourceError>`](crate::error::DescribeResourceError)
pub fn describe_resource(&self) -> fluent_builders::DescribeResource {
fluent_builders::DescribeResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeTransaction`](crate::client::fluent_builders::DescribeTransaction) operation.
///
/// - The fluent builder is configurable:
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::DescribeTransaction::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::DescribeTransaction::set_transaction_id): <p>The transaction for which to return status.</p>
/// - On success, responds with [`DescribeTransactionOutput`](crate::output::DescribeTransactionOutput) with field(s):
/// - [`transaction_description(Option<TransactionDescription>)`](crate::output::DescribeTransactionOutput::transaction_description): <p>Returns a <code>TransactionDescription</code> object containing information about the transaction.</p>
/// - On failure, responds with [`SdkError<DescribeTransactionError>`](crate::error::DescribeTransactionError)
pub fn describe_transaction(&self) -> fluent_builders::DescribeTransaction {
fluent_builders::DescribeTransaction::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ExtendTransaction`](crate::client::fluent_builders::ExtendTransaction) operation.
///
/// - The fluent builder is configurable:
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::ExtendTransaction::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::ExtendTransaction::set_transaction_id): <p>The transaction to extend.</p>
/// - On success, responds with [`ExtendTransactionOutput`](crate::output::ExtendTransactionOutput)
/// - On failure, responds with [`SdkError<ExtendTransactionError>`](crate::error::ExtendTransactionError)
pub fn extend_transaction(&self) -> fluent_builders::ExtendTransaction {
fluent_builders::ExtendTransaction::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetDataLakeSettings`](crate::client::fluent_builders::GetDataLakeSettings) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::GetDataLakeSettings::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::GetDataLakeSettings::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - On success, responds with [`GetDataLakeSettingsOutput`](crate::output::GetDataLakeSettingsOutput) with field(s):
/// - [`data_lake_settings(Option<DataLakeSettings>)`](crate::output::GetDataLakeSettingsOutput::data_lake_settings): <p>A structure representing a list of Lake Formation principals designated as data lake administrators.</p>
/// - On failure, responds with [`SdkError<GetDataLakeSettingsError>`](crate::error::GetDataLakeSettingsError)
pub fn get_data_lake_settings(&self) -> fluent_builders::GetDataLakeSettings {
fluent_builders::GetDataLakeSettings::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetEffectivePermissionsForPath`](crate::client::fluent_builders::GetEffectivePermissionsForPath) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::GetEffectivePermissionsForPath::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::set_resource_arn): <p>The Amazon Resource Name (ARN) of the resource for which you want to get permissions.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::set_next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::GetEffectivePermissionsForPath::set_max_results): <p>The maximum number of results to return.</p>
/// - On success, responds with [`GetEffectivePermissionsForPathOutput`](crate::output::GetEffectivePermissionsForPathOutput) with field(s):
/// - [`permissions(Option<Vec<PrincipalResourcePermissions>>)`](crate::output::GetEffectivePermissionsForPathOutput::permissions): <p>A list of the permissions for the specified table or database resource located at the path in Amazon S3.</p>
/// - [`next_token(Option<String>)`](crate::output::GetEffectivePermissionsForPathOutput::next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - On failure, responds with [`SdkError<GetEffectivePermissionsForPathError>`](crate::error::GetEffectivePermissionsForPathError)
pub fn get_effective_permissions_for_path(
&self,
) -> fluent_builders::GetEffectivePermissionsForPath {
fluent_builders::GetEffectivePermissionsForPath::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetLFTag`](crate::client::fluent_builders::GetLFTag) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::GetLFTag::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::GetLFTag::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`tag_key(impl Into<String>)`](crate::client::fluent_builders::GetLFTag::tag_key) / [`set_tag_key(Option<String>)`](crate::client::fluent_builders::GetLFTag::set_tag_key): <p>The key-name for the LF-tag.</p>
/// - On success, responds with [`GetLfTagOutput`](crate::output::GetLfTagOutput) with field(s):
/// - [`catalog_id(Option<String>)`](crate::output::GetLfTagOutput::catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`tag_key(Option<String>)`](crate::output::GetLfTagOutput::tag_key): <p>The key-name for the LF-tag.</p>
/// - [`tag_values(Option<Vec<String>>)`](crate::output::GetLfTagOutput::tag_values): <p>A list of possible values an attribute can take.</p>
/// - On failure, responds with [`SdkError<GetLFTagError>`](crate::error::GetLFTagError)
pub fn get_lf_tag(&self) -> fluent_builders::GetLFTag {
fluent_builders::GetLFTag::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetQueryState`](crate::client::fluent_builders::GetQueryState) operation.
///
/// - The fluent builder is configurable:
/// - [`query_id(impl Into<String>)`](crate::client::fluent_builders::GetQueryState::query_id) / [`set_query_id(Option<String>)`](crate::client::fluent_builders::GetQueryState::set_query_id): <p>The ID of the plan query operation.</p>
/// - On success, responds with [`GetQueryStateOutput`](crate::output::GetQueryStateOutput) with field(s):
/// - [`error(Option<String>)`](crate::output::GetQueryStateOutput::error): <p>An error message when the operation fails.</p>
/// - [`state(Option<QueryStateString>)`](crate::output::GetQueryStateOutput::state): <p>The state of a query previously submitted. The possible states are:</p> <ul> <li> <p>PENDING: the query is pending.</p> </li> <li> <p>WORKUNITS_AVAILABLE: some work units are ready for retrieval and execution.</p> </li> <li> <p>FINISHED: the query planning finished successfully, and all work units are ready for retrieval and execution.</p> </li> <li> <p>ERROR: an error occurred with the query, such as an invalid query ID or a backend error.</p> </li> </ul>
/// - On failure, responds with [`SdkError<GetQueryStateError>`](crate::error::GetQueryStateError)
pub fn get_query_state(&self) -> fluent_builders::GetQueryState {
fluent_builders::GetQueryState::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetQueryStatistics`](crate::client::fluent_builders::GetQueryStatistics) operation.
///
/// - The fluent builder is configurable:
/// - [`query_id(impl Into<String>)`](crate::client::fluent_builders::GetQueryStatistics::query_id) / [`set_query_id(Option<String>)`](crate::client::fluent_builders::GetQueryStatistics::set_query_id): <p>The ID of the plan query operation.</p>
/// - On success, responds with [`GetQueryStatisticsOutput`](crate::output::GetQueryStatisticsOutput) with field(s):
/// - [`execution_statistics(Option<ExecutionStatistics>)`](crate::output::GetQueryStatisticsOutput::execution_statistics): <p>An <code>ExecutionStatistics</code> structure containing execution statistics.</p>
/// - [`planning_statistics(Option<PlanningStatistics>)`](crate::output::GetQueryStatisticsOutput::planning_statistics): <p>A <code>PlanningStatistics</code> structure containing query planning statistics.</p>
/// - [`query_submission_time(Option<DateTime>)`](crate::output::GetQueryStatisticsOutput::query_submission_time): <p>The time that the query was submitted.</p>
/// - On failure, responds with [`SdkError<GetQueryStatisticsError>`](crate::error::GetQueryStatisticsError)
pub fn get_query_statistics(&self) -> fluent_builders::GetQueryStatistics {
fluent_builders::GetQueryStatistics::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetResourceLFTags`](crate::client::fluent_builders::GetResourceLFTags) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::GetResourceLFTags::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::GetResourceLFTags::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`resource(Resource)`](crate::client::fluent_builders::GetResourceLFTags::resource) / [`set_resource(Option<Resource>)`](crate::client::fluent_builders::GetResourceLFTags::set_resource): <p>The database, table, or column resource for which you want to return LF-tags.</p>
/// - [`show_assigned_lf_tags(bool)`](crate::client::fluent_builders::GetResourceLFTags::show_assigned_lf_tags) / [`set_show_assigned_lf_tags(Option<bool>)`](crate::client::fluent_builders::GetResourceLFTags::set_show_assigned_lf_tags): <p>Indicates whether to show the assigned LF-tags.</p>
/// - On success, responds with [`GetResourceLfTagsOutput`](crate::output::GetResourceLfTagsOutput) with field(s):
/// - [`lf_tag_on_database(Option<Vec<LfTagPair>>)`](crate::output::GetResourceLfTagsOutput::lf_tag_on_database): <p>A list of LF-tags applied to a database resource.</p>
/// - [`lf_tags_on_table(Option<Vec<LfTagPair>>)`](crate::output::GetResourceLfTagsOutput::lf_tags_on_table): <p>A list of LF-tags applied to a table resource.</p>
/// - [`lf_tags_on_columns(Option<Vec<ColumnLfTag>>)`](crate::output::GetResourceLfTagsOutput::lf_tags_on_columns): <p>A list of LF-tags applied to a column resource.</p>
/// - On failure, responds with [`SdkError<GetResourceLFTagsError>`](crate::error::GetResourceLFTagsError)
pub fn get_resource_lf_tags(&self) -> fluent_builders::GetResourceLFTags {
fluent_builders::GetResourceLFTags::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetTableObjects`](crate::client::fluent_builders::GetTableObjects) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::GetTableObjects::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::GetTableObjects::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::GetTableObjects::set_catalog_id): <p>The catalog containing the governed table. Defaults to the caller’s account.</p>
/// - [`database_name(impl Into<String>)`](crate::client::fluent_builders::GetTableObjects::database_name) / [`set_database_name(Option<String>)`](crate::client::fluent_builders::GetTableObjects::set_database_name): <p>The database containing the governed table.</p>
/// - [`table_name(impl Into<String>)`](crate::client::fluent_builders::GetTableObjects::table_name) / [`set_table_name(Option<String>)`](crate::client::fluent_builders::GetTableObjects::set_table_name): <p>The governed table for which to retrieve objects.</p>
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::GetTableObjects::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::GetTableObjects::set_transaction_id): <p>The transaction ID at which to read the governed table contents. If this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with <code>QueryAsOfTime</code>.</p>
/// - [`query_as_of_time(DateTime)`](crate::client::fluent_builders::GetTableObjects::query_as_of_time) / [`set_query_as_of_time(Option<DateTime>)`](crate::client::fluent_builders::GetTableObjects::set_query_as_of_time): <p>The time as of when to read the governed table contents. If not set, the most recent transaction commit time is used. Cannot be specified along with <code>TransactionId</code>.</p>
/// - [`partition_predicate(impl Into<String>)`](crate::client::fluent_builders::GetTableObjects::partition_predicate) / [`set_partition_predicate(Option<String>)`](crate::client::fluent_builders::GetTableObjects::set_partition_predicate): <p>A predicate to filter the objects returned based on the partition keys defined in the governed table.</p> <ul> <li> <p>The comparison operators supported are: =, >, <, >=, <=</p> </li> <li> <p>The logical operators supported are: AND</p> </li> <li> <p>The data types supported are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.</p> </li> </ul>
/// - [`max_results(i32)`](crate::client::fluent_builders::GetTableObjects::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::GetTableObjects::set_max_results): <p>Specifies how many values to return in a page.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::GetTableObjects::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::GetTableObjects::set_next_token): <p>A continuation token if this is not the first call to retrieve these objects.</p>
/// - On success, responds with [`GetTableObjectsOutput`](crate::output::GetTableObjectsOutput) with field(s):
/// - [`objects(Option<Vec<PartitionObjects>>)`](crate::output::GetTableObjectsOutput::objects): <p>A list of objects organized by partition keys.</p>
/// - [`next_token(Option<String>)`](crate::output::GetTableObjectsOutput::next_token): <p>A continuation token indicating whether additional data is available.</p>
/// - On failure, responds with [`SdkError<GetTableObjectsError>`](crate::error::GetTableObjectsError)
pub fn get_table_objects(&self) -> fluent_builders::GetTableObjects {
fluent_builders::GetTableObjects::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetTemporaryGluePartitionCredentials`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials) operation.
///
/// - The fluent builder is configurable:
/// - [`table_arn(impl Into<String>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::table_arn) / [`set_table_arn(Option<String>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::set_table_arn): <p>The ARN of the partitions' table.</p>
/// - [`partition(PartitionValueList)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::partition) / [`set_partition(Option<PartitionValueList>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::set_partition): <p>A list of partition values identifying a single partition.</p>
/// - [`permissions(Vec<Permission>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::permissions) / [`set_permissions(Option<Vec<Permission>>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::set_permissions): <p>Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).</p>
/// - [`duration_seconds(i32)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::duration_seconds) / [`set_duration_seconds(Option<i32>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::set_duration_seconds): <p>The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.</p>
/// - [`audit_context(AuditContext)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::audit_context) / [`set_audit_context(Option<AuditContext>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::set_audit_context): <p>A structure representing context to access a resource (column names, query ID, etc).</p>
/// - [`supported_permission_types(Vec<PermissionType>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::supported_permission_types) / [`set_supported_permission_types(Option<Vec<PermissionType>>)`](crate::client::fluent_builders::GetTemporaryGluePartitionCredentials::set_supported_permission_types): <p>A list of supported permission types for the partition. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.</p>
/// - On success, responds with [`GetTemporaryGluePartitionCredentialsOutput`](crate::output::GetTemporaryGluePartitionCredentialsOutput) with field(s):
/// - [`access_key_id(Option<String>)`](crate::output::GetTemporaryGluePartitionCredentialsOutput::access_key_id): <p>The access key ID for the temporary credentials.</p>
/// - [`secret_access_key(Option<String>)`](crate::output::GetTemporaryGluePartitionCredentialsOutput::secret_access_key): <p>The secret key for the temporary credentials.</p>
/// - [`session_token(Option<String>)`](crate::output::GetTemporaryGluePartitionCredentialsOutput::session_token): <p>The session token for the temporary credentials.</p>
/// - [`expiration(Option<DateTime>)`](crate::output::GetTemporaryGluePartitionCredentialsOutput::expiration): <p>The date and time when the temporary credentials expire.</p>
/// - On failure, responds with [`SdkError<GetTemporaryGluePartitionCredentialsError>`](crate::error::GetTemporaryGluePartitionCredentialsError)
pub fn get_temporary_glue_partition_credentials(
&self,
) -> fluent_builders::GetTemporaryGluePartitionCredentials {
fluent_builders::GetTemporaryGluePartitionCredentials::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetTemporaryGlueTableCredentials`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials) operation.
///
/// - The fluent builder is configurable:
/// - [`table_arn(impl Into<String>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::table_arn) / [`set_table_arn(Option<String>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::set_table_arn): <p>The ARN identifying a table in the Data Catalog for the temporary credentials request.</p>
/// - [`permissions(Vec<Permission>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::permissions) / [`set_permissions(Option<Vec<Permission>>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::set_permissions): <p>Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).</p>
/// - [`duration_seconds(i32)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::duration_seconds) / [`set_duration_seconds(Option<i32>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::set_duration_seconds): <p>The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.</p>
/// - [`audit_context(AuditContext)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::audit_context) / [`set_audit_context(Option<AuditContext>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::set_audit_context): <p>A structure representing context to access a resource (column names, query ID, etc).</p>
/// - [`supported_permission_types(Vec<PermissionType>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::supported_permission_types) / [`set_supported_permission_types(Option<Vec<PermissionType>>)`](crate::client::fluent_builders::GetTemporaryGlueTableCredentials::set_supported_permission_types): <p>A list of supported permission types for the table. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.</p>
/// - On success, responds with [`GetTemporaryGlueTableCredentialsOutput`](crate::output::GetTemporaryGlueTableCredentialsOutput) with field(s):
/// - [`access_key_id(Option<String>)`](crate::output::GetTemporaryGlueTableCredentialsOutput::access_key_id): <p>The access key ID for the temporary credentials.</p>
/// - [`secret_access_key(Option<String>)`](crate::output::GetTemporaryGlueTableCredentialsOutput::secret_access_key): <p>The secret key for the temporary credentials.</p>
/// - [`session_token(Option<String>)`](crate::output::GetTemporaryGlueTableCredentialsOutput::session_token): <p>The session token for the temporary credentials.</p>
/// - [`expiration(Option<DateTime>)`](crate::output::GetTemporaryGlueTableCredentialsOutput::expiration): <p>The date and time when the temporary credentials expire.</p>
/// - On failure, responds with [`SdkError<GetTemporaryGlueTableCredentialsError>`](crate::error::GetTemporaryGlueTableCredentialsError)
pub fn get_temporary_glue_table_credentials(
&self,
) -> fluent_builders::GetTemporaryGlueTableCredentials {
fluent_builders::GetTemporaryGlueTableCredentials::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetWorkUnitResults`](crate::client::fluent_builders::GetWorkUnitResults) operation.
///
/// - The fluent builder is configurable:
/// - [`query_id(impl Into<String>)`](crate::client::fluent_builders::GetWorkUnitResults::query_id) / [`set_query_id(Option<String>)`](crate::client::fluent_builders::GetWorkUnitResults::set_query_id): <p>The ID of the plan query operation for which to get results.</p>
/// - [`work_unit_id(i64)`](crate::client::fluent_builders::GetWorkUnitResults::work_unit_id) / [`set_work_unit_id(i64)`](crate::client::fluent_builders::GetWorkUnitResults::set_work_unit_id): <p>The work unit ID for which to get results. Value generated by enumerating <code>WorkUnitIdMin</code> to <code>WorkUnitIdMax</code> (inclusive) from the <code>WorkUnitRange</code> in the output of <code>GetWorkUnits</code>.</p>
/// - [`work_unit_token(impl Into<String>)`](crate::client::fluent_builders::GetWorkUnitResults::work_unit_token) / [`set_work_unit_token(Option<String>)`](crate::client::fluent_builders::GetWorkUnitResults::set_work_unit_token): <p>A work token used to query the execution service. Token output from <code>GetWorkUnits</code>.</p>
/// - On success, responds with [`GetWorkUnitResultsOutput`](crate::output::GetWorkUnitResultsOutput) with field(s):
/// - [`result_stream(byte_stream::ByteStream)`](crate::output::GetWorkUnitResultsOutput::result_stream): <p>Rows returned from the <code>GetWorkUnitResults</code> operation as a stream of Apache Arrow v1.0 messages.</p>
/// - On failure, responds with [`SdkError<GetWorkUnitResultsError>`](crate::error::GetWorkUnitResultsError)
pub fn get_work_unit_results(&self) -> fluent_builders::GetWorkUnitResults {
fluent_builders::GetWorkUnitResults::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetWorkUnits`](crate::client::fluent_builders::GetWorkUnits) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::GetWorkUnits::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::GetWorkUnits::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::GetWorkUnits::set_next_token): <p>A continuation token, if this is a continuation call.</p>
/// - [`page_size(i32)`](crate::client::fluent_builders::GetWorkUnits::page_size) / [`set_page_size(Option<i32>)`](crate::client::fluent_builders::GetWorkUnits::set_page_size): <p>The size of each page to get in the Amazon Web Services service call. This does not affect the number of items returned in the command's output. Setting a smaller page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out.</p>
/// - [`query_id(impl Into<String>)`](crate::client::fluent_builders::GetWorkUnits::query_id) / [`set_query_id(Option<String>)`](crate::client::fluent_builders::GetWorkUnits::set_query_id): <p>The ID of the plan query operation.</p>
/// - On success, responds with [`GetWorkUnitsOutput`](crate::output::GetWorkUnitsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::output::GetWorkUnitsOutput::next_token): <p>A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.</p>
/// - [`query_id(Option<String>)`](crate::output::GetWorkUnitsOutput::query_id): <p>The ID of the plan query operation.</p>
/// - [`work_unit_ranges(Option<Vec<WorkUnitRange>>)`](crate::output::GetWorkUnitsOutput::work_unit_ranges): <p>A <code>WorkUnitRangeList</code> object that specifies the valid range of work unit IDs for querying the execution service.</p>
/// - On failure, responds with [`SdkError<GetWorkUnitsError>`](crate::error::GetWorkUnitsError)
pub fn get_work_units(&self) -> fluent_builders::GetWorkUnits {
fluent_builders::GetWorkUnits::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GrantPermissions`](crate::client::fluent_builders::GrantPermissions) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::GrantPermissions::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::GrantPermissions::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`principal(DataLakePrincipal)`](crate::client::fluent_builders::GrantPermissions::principal) / [`set_principal(Option<DataLakePrincipal>)`](crate::client::fluent_builders::GrantPermissions::set_principal): <p>The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.</p> <p>Note that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted. </p>
/// - [`resource(Resource)`](crate::client::fluent_builders::GrantPermissions::resource) / [`set_resource(Option<Resource>)`](crate::client::fluent_builders::GrantPermissions::set_resource): <p>The resource to which permissions are to be granted. Resources in Lake Formation are the Data Catalog, databases, and tables.</p>
/// - [`permissions(Vec<Permission>)`](crate::client::fluent_builders::GrantPermissions::permissions) / [`set_permissions(Option<Vec<Permission>>)`](crate::client::fluent_builders::GrantPermissions::set_permissions): <p>The permissions granted to the principal on the resource. Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. Lake Formation requires that each principal be authorized to perform a specific task on Lake Formation resources. </p>
/// - [`permissions_with_grant_option(Vec<Permission>)`](crate::client::fluent_builders::GrantPermissions::permissions_with_grant_option) / [`set_permissions_with_grant_option(Option<Vec<Permission>>)`](crate::client::fluent_builders::GrantPermissions::set_permissions_with_grant_option): <p>Indicates a list of the granted permissions that the principal may pass to other users. These permissions may only be a subset of the permissions granted in the <code>Privileges</code>.</p>
/// - On success, responds with [`GrantPermissionsOutput`](crate::output::GrantPermissionsOutput)
/// - On failure, responds with [`SdkError<GrantPermissionsError>`](crate::error::GrantPermissionsError)
pub fn grant_permissions(&self) -> fluent_builders::GrantPermissions {
fluent_builders::GrantPermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListDataCellsFilter`](crate::client::fluent_builders::ListDataCellsFilter) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListDataCellsFilter::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`table(TableResource)`](crate::client::fluent_builders::ListDataCellsFilter::table) / [`set_table(Option<TableResource>)`](crate::client::fluent_builders::ListDataCellsFilter::set_table): <p>A table in the Glue Data Catalog.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListDataCellsFilter::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListDataCellsFilter::set_next_token): <p>A continuation token, if this is a continuation call.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListDataCellsFilter::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListDataCellsFilter::set_max_results): <p>The maximum size of the response.</p>
/// - On success, responds with [`ListDataCellsFilterOutput`](crate::output::ListDataCellsFilterOutput) with field(s):
/// - [`data_cells_filters(Option<Vec<DataCellsFilter>>)`](crate::output::ListDataCellsFilterOutput::data_cells_filters): <p>A list of <code>DataCellFilter</code> structures.</p>
/// - [`next_token(Option<String>)`](crate::output::ListDataCellsFilterOutput::next_token): <p>A continuation token, if not all requested data cell filters have been returned.</p>
/// - On failure, responds with [`SdkError<ListDataCellsFilterError>`](crate::error::ListDataCellsFilterError)
pub fn list_data_cells_filter(&self) -> fluent_builders::ListDataCellsFilter {
fluent_builders::ListDataCellsFilter::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListLFTags`](crate::client::fluent_builders::ListLFTags) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListLFTags::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::ListLFTags::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::ListLFTags::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`resource_share_type(ResourceShareType)`](crate::client::fluent_builders::ListLFTags::resource_share_type) / [`set_resource_share_type(Option<ResourceShareType>)`](crate::client::fluent_builders::ListLFTags::set_resource_share_type): <p>If resource share type is <code>ALL</code>, returns both in-account LF-tags and shared LF-tags that the requester has permission to view. If resource share type is <code>FOREIGN</code>, returns all share LF-tags that the requester can view. If no resource share type is passed, lists LF-tags in the given catalog ID that the requester has permission to view.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListLFTags::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListLFTags::set_max_results): <p>The maximum number of results to return.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListLFTags::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListLFTags::set_next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - On success, responds with [`ListLfTagsOutput`](crate::output::ListLfTagsOutput) with field(s):
/// - [`lf_tags(Option<Vec<LfTagPair>>)`](crate::output::ListLfTagsOutput::lf_tags): <p>A list of LF-tags that the requested has permission to view.</p>
/// - [`next_token(Option<String>)`](crate::output::ListLfTagsOutput::next_token): <p>A continuation token, present if the current list segment is not the last.</p>
/// - On failure, responds with [`SdkError<ListLFTagsError>`](crate::error::ListLFTagsError)
pub fn list_lf_tags(&self) -> fluent_builders::ListLFTags {
fluent_builders::ListLFTags::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListPermissions`](crate::client::fluent_builders::ListPermissions) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListPermissions::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::ListPermissions::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::ListPermissions::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`principal(DataLakePrincipal)`](crate::client::fluent_builders::ListPermissions::principal) / [`set_principal(Option<DataLakePrincipal>)`](crate::client::fluent_builders::ListPermissions::set_principal): <p>Specifies a principal to filter the permissions returned.</p>
/// - [`resource_type(DataLakeResourceType)`](crate::client::fluent_builders::ListPermissions::resource_type) / [`set_resource_type(Option<DataLakeResourceType>)`](crate::client::fluent_builders::ListPermissions::set_resource_type): <p>Specifies a resource type to filter the permissions returned.</p>
/// - [`resource(Resource)`](crate::client::fluent_builders::ListPermissions::resource) / [`set_resource(Option<Resource>)`](crate::client::fluent_builders::ListPermissions::set_resource): <p>A resource where you will get a list of the principal permissions.</p> <p>This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListPermissions::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListPermissions::set_next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListPermissions::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListPermissions::set_max_results): <p>The maximum number of results to return.</p>
/// - [`include_related(impl Into<String>)`](crate::client::fluent_builders::ListPermissions::include_related) / [`set_include_related(Option<String>)`](crate::client::fluent_builders::ListPermissions::set_include_related): <p>Indicates that related permissions should be included in the results.</p>
/// - On success, responds with [`ListPermissionsOutput`](crate::output::ListPermissionsOutput) with field(s):
/// - [`principal_resource_permissions(Option<Vec<PrincipalResourcePermissions>>)`](crate::output::ListPermissionsOutput::principal_resource_permissions): <p>A list of principals and their permissions on the resource for the specified principal and resource types.</p>
/// - [`next_token(Option<String>)`](crate::output::ListPermissionsOutput::next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - On failure, responds with [`SdkError<ListPermissionsError>`](crate::error::ListPermissionsError)
pub fn list_permissions(&self) -> fluent_builders::ListPermissions {
fluent_builders::ListPermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListResources`](crate::client::fluent_builders::ListResources) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListResources::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`filter_condition_list(Vec<FilterCondition>)`](crate::client::fluent_builders::ListResources::filter_condition_list) / [`set_filter_condition_list(Option<Vec<FilterCondition>>)`](crate::client::fluent_builders::ListResources::set_filter_condition_list): <p>Any applicable row-level and/or column-level filtering conditions for the resources.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListResources::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListResources::set_max_results): <p>The maximum number of resource results.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListResources::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListResources::set_next_token): <p>A continuation token, if this is not the first call to retrieve these resources.</p>
/// - On success, responds with [`ListResourcesOutput`](crate::output::ListResourcesOutput) with field(s):
/// - [`resource_info_list(Option<Vec<ResourceInfo>>)`](crate::output::ListResourcesOutput::resource_info_list): <p>A summary of the data lake resources.</p>
/// - [`next_token(Option<String>)`](crate::output::ListResourcesOutput::next_token): <p>A continuation token, if this is not the first call to retrieve these resources.</p>
/// - On failure, responds with [`SdkError<ListResourcesError>`](crate::error::ListResourcesError)
pub fn list_resources(&self) -> fluent_builders::ListResources {
fluent_builders::ListResources::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTableStorageOptimizers`](crate::client::fluent_builders::ListTableStorageOptimizers) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListTableStorageOptimizers::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::set_catalog_id): <p>The Catalog ID of the table.</p>
/// - [`database_name(impl Into<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::database_name) / [`set_database_name(Option<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::set_database_name): <p>Name of the database where the table is present.</p>
/// - [`table_name(impl Into<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::table_name) / [`set_table_name(Option<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::set_table_name): <p>Name of the table.</p>
/// - [`storage_optimizer_type(OptimizerType)`](crate::client::fluent_builders::ListTableStorageOptimizers::storage_optimizer_type) / [`set_storage_optimizer_type(Option<OptimizerType>)`](crate::client::fluent_builders::ListTableStorageOptimizers::set_storage_optimizer_type): <p>The specific type of storage optimizers to list. The supported value is <code>compaction</code>.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListTableStorageOptimizers::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListTableStorageOptimizers::set_max_results): <p>The number of storage optimizers to return on each call.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListTableStorageOptimizers::set_next_token): <p>A continuation token, if this is a continuation call.</p>
/// - On success, responds with [`ListTableStorageOptimizersOutput`](crate::output::ListTableStorageOptimizersOutput) with field(s):
/// - [`storage_optimizer_list(Option<Vec<StorageOptimizer>>)`](crate::output::ListTableStorageOptimizersOutput::storage_optimizer_list): <p>A list of the storage optimizers associated with a table.</p>
/// - [`next_token(Option<String>)`](crate::output::ListTableStorageOptimizersOutput::next_token): <p>A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.</p>
/// - On failure, responds with [`SdkError<ListTableStorageOptimizersError>`](crate::error::ListTableStorageOptimizersError)
pub fn list_table_storage_optimizers(&self) -> fluent_builders::ListTableStorageOptimizers {
fluent_builders::ListTableStorageOptimizers::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTransactions`](crate::client::fluent_builders::ListTransactions) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListTransactions::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::ListTransactions::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::ListTransactions::set_catalog_id): <p>The catalog for which to list transactions. Defaults to the account ID of the caller.</p>
/// - [`status_filter(TransactionStatusFilter)`](crate::client::fluent_builders::ListTransactions::status_filter) / [`set_status_filter(Option<TransactionStatusFilter>)`](crate::client::fluent_builders::ListTransactions::set_status_filter): <p> A filter indicating the status of transactions to return. Options are ALL | COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is <code>ALL</code>.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListTransactions::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListTransactions::set_max_results): <p>The maximum number of transactions to return in a single call.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListTransactions::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListTransactions::set_next_token): <p>A continuation token if this is not the first call to retrieve transactions.</p>
/// - On success, responds with [`ListTransactionsOutput`](crate::output::ListTransactionsOutput) with field(s):
/// - [`transactions(Option<Vec<TransactionDescription>>)`](crate::output::ListTransactionsOutput::transactions): <p>A list of transactions. The record for each transaction is a <code>TransactionDescription</code> object.</p>
/// - [`next_token(Option<String>)`](crate::output::ListTransactionsOutput::next_token): <p>A continuation token indicating whether additional data is available.</p>
/// - On failure, responds with [`SdkError<ListTransactionsError>`](crate::error::ListTransactionsError)
pub fn list_transactions(&self) -> fluent_builders::ListTransactions {
fluent_builders::ListTransactions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutDataLakeSettings`](crate::client::fluent_builders::PutDataLakeSettings) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::PutDataLakeSettings::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::PutDataLakeSettings::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`data_lake_settings(DataLakeSettings)`](crate::client::fluent_builders::PutDataLakeSettings::data_lake_settings) / [`set_data_lake_settings(Option<DataLakeSettings>)`](crate::client::fluent_builders::PutDataLakeSettings::set_data_lake_settings): <p>A structure representing a list of Lake Formation principals designated as data lake administrators.</p>
/// - On success, responds with [`PutDataLakeSettingsOutput`](crate::output::PutDataLakeSettingsOutput)
/// - On failure, responds with [`SdkError<PutDataLakeSettingsError>`](crate::error::PutDataLakeSettingsError)
pub fn put_data_lake_settings(&self) -> fluent_builders::PutDataLakeSettings {
fluent_builders::PutDataLakeSettings::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RegisterResource`](crate::client::fluent_builders::RegisterResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::RegisterResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::RegisterResource::set_resource_arn): <p>The Amazon Resource Name (ARN) of the resource that you want to register.</p>
/// - [`use_service_linked_role(bool)`](crate::client::fluent_builders::RegisterResource::use_service_linked_role) / [`set_use_service_linked_role(Option<bool>)`](crate::client::fluent_builders::RegisterResource::set_use_service_linked_role): <p>Designates an Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.</p> <p>For more information, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/service-linked-roles.html">Using Service-Linked Roles for Lake Formation</a>.</p>
/// - [`role_arn(impl Into<String>)`](crate::client::fluent_builders::RegisterResource::role_arn) / [`set_role_arn(Option<String>)`](crate::client::fluent_builders::RegisterResource::set_role_arn): <p>The identifier for the role that registers the resource.</p>
/// - On success, responds with [`RegisterResourceOutput`](crate::output::RegisterResourceOutput)
/// - On failure, responds with [`SdkError<RegisterResourceError>`](crate::error::RegisterResourceError)
pub fn register_resource(&self) -> fluent_builders::RegisterResource {
fluent_builders::RegisterResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RemoveLFTagsFromResource`](crate::client::fluent_builders::RemoveLFTagsFromResource) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::RemoveLFTagsFromResource::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::RemoveLFTagsFromResource::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`resource(Resource)`](crate::client::fluent_builders::RemoveLFTagsFromResource::resource) / [`set_resource(Option<Resource>)`](crate::client::fluent_builders::RemoveLFTagsFromResource::set_resource): <p>The database, table, or column resource where you want to remove an LF-tag.</p>
/// - [`lf_tags(Vec<LfTagPair>)`](crate::client::fluent_builders::RemoveLFTagsFromResource::lf_tags) / [`set_lf_tags(Option<Vec<LfTagPair>>)`](crate::client::fluent_builders::RemoveLFTagsFromResource::set_lf_tags): <p>The LF-tags to be removed from the resource.</p>
/// - On success, responds with [`RemoveLfTagsFromResourceOutput`](crate::output::RemoveLfTagsFromResourceOutput) with field(s):
/// - [`failures(Option<Vec<LfTagError>>)`](crate::output::RemoveLfTagsFromResourceOutput::failures): <p>A list of failures to untag a resource.</p>
/// - On failure, responds with [`SdkError<RemoveLFTagsFromResourceError>`](crate::error::RemoveLFTagsFromResourceError)
pub fn remove_lf_tags_from_resource(&self) -> fluent_builders::RemoveLFTagsFromResource {
fluent_builders::RemoveLFTagsFromResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RevokePermissions`](crate::client::fluent_builders::RevokePermissions) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::RevokePermissions::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::RevokePermissions::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`principal(DataLakePrincipal)`](crate::client::fluent_builders::RevokePermissions::principal) / [`set_principal(Option<DataLakePrincipal>)`](crate::client::fluent_builders::RevokePermissions::set_principal): <p>The principal to be revoked permissions on the resource.</p>
/// - [`resource(Resource)`](crate::client::fluent_builders::RevokePermissions::resource) / [`set_resource(Option<Resource>)`](crate::client::fluent_builders::RevokePermissions::set_resource): <p>The resource to which permissions are to be revoked.</p>
/// - [`permissions(Vec<Permission>)`](crate::client::fluent_builders::RevokePermissions::permissions) / [`set_permissions(Option<Vec<Permission>>)`](crate::client::fluent_builders::RevokePermissions::set_permissions): <p>The permissions revoked to the principal on the resource. For information about permissions, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html">Security and Access Control to Metadata and Data</a>.</p>
/// - [`permissions_with_grant_option(Vec<Permission>)`](crate::client::fluent_builders::RevokePermissions::permissions_with_grant_option) / [`set_permissions_with_grant_option(Option<Vec<Permission>>)`](crate::client::fluent_builders::RevokePermissions::set_permissions_with_grant_option): <p>Indicates a list of permissions for which to revoke the grant option allowing the principal to pass permissions to other principals.</p>
/// - On success, responds with [`RevokePermissionsOutput`](crate::output::RevokePermissionsOutput)
/// - On failure, responds with [`SdkError<RevokePermissionsError>`](crate::error::RevokePermissionsError)
pub fn revoke_permissions(&self) -> fluent_builders::RevokePermissions {
fluent_builders::RevokePermissions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SearchDatabasesByLFTags`](crate::client::fluent_builders::SearchDatabasesByLFTags) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::SearchDatabasesByLFTags::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::set_next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::SearchDatabasesByLFTags::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::set_max_results): <p>The maximum number of results to return.</p>
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`expression(Vec<LfTag>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::expression) / [`set_expression(Option<Vec<LfTag>>)`](crate::client::fluent_builders::SearchDatabasesByLFTags::set_expression): <p>A list of conditions (<code>LFTag</code> structures) to search for in database resources.</p>
/// - On success, responds with [`SearchDatabasesByLfTagsOutput`](crate::output::SearchDatabasesByLfTagsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::output::SearchDatabasesByLfTagsOutput::next_token): <p>A continuation token, present if the current list segment is not the last.</p>
/// - [`database_list(Option<Vec<TaggedDatabase>>)`](crate::output::SearchDatabasesByLfTagsOutput::database_list): <p>A list of databases that meet the LF-tag conditions.</p>
/// - On failure, responds with [`SdkError<SearchDatabasesByLFTagsError>`](crate::error::SearchDatabasesByLFTagsError)
pub fn search_databases_by_lf_tags(&self) -> fluent_builders::SearchDatabasesByLFTags {
fluent_builders::SearchDatabasesByLFTags::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SearchTablesByLFTags`](crate::client::fluent_builders::SearchTablesByLFTags) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::SearchTablesByLFTags::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::SearchTablesByLFTags::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::SearchTablesByLFTags::set_next_token): <p>A continuation token, if this is not the first call to retrieve this list.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::SearchTablesByLFTags::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::SearchTablesByLFTags::set_max_results): <p>The maximum number of results to return.</p>
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::SearchTablesByLFTags::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::SearchTablesByLFTags::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`expression(Vec<LfTag>)`](crate::client::fluent_builders::SearchTablesByLFTags::expression) / [`set_expression(Option<Vec<LfTag>>)`](crate::client::fluent_builders::SearchTablesByLFTags::set_expression): <p>A list of conditions (<code>LFTag</code> structures) to search for in table resources.</p>
/// - On success, responds with [`SearchTablesByLfTagsOutput`](crate::output::SearchTablesByLfTagsOutput) with field(s):
/// - [`next_token(Option<String>)`](crate::output::SearchTablesByLfTagsOutput::next_token): <p>A continuation token, present if the current list segment is not the last.</p>
/// - [`table_list(Option<Vec<TaggedTable>>)`](crate::output::SearchTablesByLfTagsOutput::table_list): <p>A list of tables that meet the LF-tag conditions.</p>
/// - On failure, responds with [`SdkError<SearchTablesByLFTagsError>`](crate::error::SearchTablesByLFTagsError)
pub fn search_tables_by_lf_tags(&self) -> fluent_builders::SearchTablesByLFTags {
fluent_builders::SearchTablesByLFTags::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`StartQueryPlanning`](crate::client::fluent_builders::StartQueryPlanning) operation.
///
/// - The fluent builder is configurable:
/// - [`query_planning_context(QueryPlanningContext)`](crate::client::fluent_builders::StartQueryPlanning::query_planning_context) / [`set_query_planning_context(Option<QueryPlanningContext>)`](crate::client::fluent_builders::StartQueryPlanning::set_query_planning_context): <p>A structure containing information about the query plan.</p>
/// - [`query_string(impl Into<String>)`](crate::client::fluent_builders::StartQueryPlanning::query_string) / [`set_query_string(Option<String>)`](crate::client::fluent_builders::StartQueryPlanning::set_query_string): <p>A PartiQL query statement used as an input to the planner service.</p>
/// - On success, responds with [`StartQueryPlanningOutput`](crate::output::StartQueryPlanningOutput) with field(s):
/// - [`query_id(Option<String>)`](crate::output::StartQueryPlanningOutput::query_id): <p>The ID of the plan query operation can be used to fetch the actual work unit descriptors that are produced as the result of the operation. The ID is also used to get the query state and as an input to the <code>Execute</code> operation.</p>
/// - On failure, responds with [`SdkError<StartQueryPlanningError>`](crate::error::StartQueryPlanningError)
pub fn start_query_planning(&self) -> fluent_builders::StartQueryPlanning {
fluent_builders::StartQueryPlanning::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`StartTransaction`](crate::client::fluent_builders::StartTransaction) operation.
///
/// - The fluent builder is configurable:
/// - [`transaction_type(TransactionType)`](crate::client::fluent_builders::StartTransaction::transaction_type) / [`set_transaction_type(Option<TransactionType>)`](crate::client::fluent_builders::StartTransaction::set_transaction_type): <p>Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed. </p>
/// - On success, responds with [`StartTransactionOutput`](crate::output::StartTransactionOutput) with field(s):
/// - [`transaction_id(Option<String>)`](crate::output::StartTransactionOutput::transaction_id): <p>An opaque identifier for the transaction.</p>
/// - On failure, responds with [`SdkError<StartTransactionError>`](crate::error::StartTransactionError)
pub fn start_transaction(&self) -> fluent_builders::StartTransaction {
fluent_builders::StartTransaction::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateLFTag`](crate::client::fluent_builders::UpdateLFTag) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::UpdateLFTag::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::UpdateLFTag::set_catalog_id): <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
/// - [`tag_key(impl Into<String>)`](crate::client::fluent_builders::UpdateLFTag::tag_key) / [`set_tag_key(Option<String>)`](crate::client::fluent_builders::UpdateLFTag::set_tag_key): <p>The key-name for the LF-tag for which to add or delete values.</p>
/// - [`tag_values_to_delete(Vec<String>)`](crate::client::fluent_builders::UpdateLFTag::tag_values_to_delete) / [`set_tag_values_to_delete(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateLFTag::set_tag_values_to_delete): <p>A list of LF-tag values to delete from the LF-tag.</p>
/// - [`tag_values_to_add(Vec<String>)`](crate::client::fluent_builders::UpdateLFTag::tag_values_to_add) / [`set_tag_values_to_add(Option<Vec<String>>)`](crate::client::fluent_builders::UpdateLFTag::set_tag_values_to_add): <p>A list of LF-tag values to add from the LF-tag.</p>
/// - On success, responds with [`UpdateLfTagOutput`](crate::output::UpdateLfTagOutput)
/// - On failure, responds with [`SdkError<UpdateLFTagError>`](crate::error::UpdateLFTagError)
pub fn update_lf_tag(&self) -> fluent_builders::UpdateLFTag {
fluent_builders::UpdateLFTag::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateResource`](crate::client::fluent_builders::UpdateResource) operation.
///
/// - The fluent builder is configurable:
/// - [`role_arn(impl Into<String>)`](crate::client::fluent_builders::UpdateResource::role_arn) / [`set_role_arn(Option<String>)`](crate::client::fluent_builders::UpdateResource::set_role_arn): <p>The new role to use for the given resource registered in Lake Formation.</p>
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::UpdateResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::UpdateResource::set_resource_arn): <p>The resource ARN.</p>
/// - On success, responds with [`UpdateResourceOutput`](crate::output::UpdateResourceOutput)
/// - On failure, responds with [`SdkError<UpdateResourceError>`](crate::error::UpdateResourceError)
pub fn update_resource(&self) -> fluent_builders::UpdateResource {
fluent_builders::UpdateResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateTableObjects`](crate::client::fluent_builders::UpdateTableObjects) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::UpdateTableObjects::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::UpdateTableObjects::set_catalog_id): <p>The catalog containing the governed table to update. Defaults to the caller’s account ID.</p>
/// - [`database_name(impl Into<String>)`](crate::client::fluent_builders::UpdateTableObjects::database_name) / [`set_database_name(Option<String>)`](crate::client::fluent_builders::UpdateTableObjects::set_database_name): <p>The database containing the governed table to update.</p>
/// - [`table_name(impl Into<String>)`](crate::client::fluent_builders::UpdateTableObjects::table_name) / [`set_table_name(Option<String>)`](crate::client::fluent_builders::UpdateTableObjects::set_table_name): <p>The governed table to update.</p>
/// - [`transaction_id(impl Into<String>)`](crate::client::fluent_builders::UpdateTableObjects::transaction_id) / [`set_transaction_id(Option<String>)`](crate::client::fluent_builders::UpdateTableObjects::set_transaction_id): <p>The transaction at which to do the write.</p>
/// - [`write_operations(Vec<WriteOperation>)`](crate::client::fluent_builders::UpdateTableObjects::write_operations) / [`set_write_operations(Option<Vec<WriteOperation>>)`](crate::client::fluent_builders::UpdateTableObjects::set_write_operations): <p>A list of <code>WriteOperation</code> objects that define an object to add to or delete from the manifest for a governed table.</p>
/// - On success, responds with [`UpdateTableObjectsOutput`](crate::output::UpdateTableObjectsOutput)
/// - On failure, responds with [`SdkError<UpdateTableObjectsError>`](crate::error::UpdateTableObjectsError)
pub fn update_table_objects(&self) -> fluent_builders::UpdateTableObjects {
fluent_builders::UpdateTableObjects::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateTableStorageOptimizer`](crate::client::fluent_builders::UpdateTableStorageOptimizer) operation.
///
/// - The fluent builder is configurable:
/// - [`catalog_id(impl Into<String>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::catalog_id) / [`set_catalog_id(Option<String>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::set_catalog_id): <p>The Catalog ID of the table.</p>
/// - [`database_name(impl Into<String>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::database_name) / [`set_database_name(Option<String>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::set_database_name): <p>Name of the database where the table is present.</p>
/// - [`table_name(impl Into<String>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::table_name) / [`set_table_name(Option<String>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::set_table_name): <p>Name of the table for which to enable the storage optimizer.</p>
/// - [`storage_optimizer_config(HashMap<OptimizerType, HashMap<String, String>>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::storage_optimizer_config) / [`set_storage_optimizer_config(Option<HashMap<OptimizerType, HashMap<String, String>>>)`](crate::client::fluent_builders::UpdateTableStorageOptimizer::set_storage_optimizer_config): <p>Name of the table for which to enable the storage optimizer.</p>
/// - On success, responds with [`UpdateTableStorageOptimizerOutput`](crate::output::UpdateTableStorageOptimizerOutput) with field(s):
/// - [`result(Option<String>)`](crate::output::UpdateTableStorageOptimizerOutput::result): <p>A response indicating the success of failure of the operation.</p>
/// - On failure, responds with [`SdkError<UpdateTableStorageOptimizerError>`](crate::error::UpdateTableStorageOptimizerError)
pub fn update_table_storage_optimizer(&self) -> fluent_builders::UpdateTableStorageOptimizer {
fluent_builders::UpdateTableStorageOptimizer::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 `AddLFTagsToResource`.
///
/// <p>Attaches one or more LF-tags to an existing resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AddLFTagsToResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::add_lf_tags_to_resource_input::Builder,
}
impl AddLFTagsToResource {
/// Creates a new `AddLFTagsToResource`.
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::AddLfTagsToResourceOutput,
aws_smithy_http::result::SdkError<crate::error::AddLFTagsToResourceError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The database, table, or column resource to which to attach an LF-tag.</p>
pub fn resource(mut self, input: crate::model::Resource) -> Self {
self.inner = self.inner.resource(input);
self
}
/// <p>The database, table, or column resource to which to attach an LF-tag.</p>
pub fn set_resource(mut self, input: std::option::Option<crate::model::Resource>) -> Self {
self.inner = self.inner.set_resource(input);
self
}
/// Appends an item to `LFTags`.
///
/// To override the contents of this collection use [`set_lf_tags`](Self::set_lf_tags).
///
/// <p>The LF-tags to attach to the resource.</p>
pub fn lf_tags(mut self, input: crate::model::LfTagPair) -> Self {
self.inner = self.inner.lf_tags(input);
self
}
/// <p>The LF-tags to attach to the resource.</p>
pub fn set_lf_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::LfTagPair>>,
) -> Self {
self.inner = self.inner.set_lf_tags(input);
self
}
}
/// Fluent builder constructing a request to `BatchGrantPermissions`.
///
/// <p>Batch operation to grant permissions to the principal.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct BatchGrantPermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::batch_grant_permissions_input::Builder,
}
impl BatchGrantPermissions {
/// Creates a new `BatchGrantPermissions`.
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::BatchGrantPermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::BatchGrantPermissionsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// Appends an item to `Entries`.
///
/// To override the contents of this collection use [`set_entries`](Self::set_entries).
///
/// <p>A list of up to 20 entries for resource permissions to be granted by batch operation to the principal.</p>
pub fn entries(mut self, input: crate::model::BatchPermissionsRequestEntry) -> Self {
self.inner = self.inner.entries(input);
self
}
/// <p>A list of up to 20 entries for resource permissions to be granted by batch operation to the principal.</p>
pub fn set_entries(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchPermissionsRequestEntry>>,
) -> Self {
self.inner = self.inner.set_entries(input);
self
}
}
/// Fluent builder constructing a request to `BatchRevokePermissions`.
///
/// <p>Batch operation to revoke permissions from the principal.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct BatchRevokePermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::batch_revoke_permissions_input::Builder,
}
impl BatchRevokePermissions {
/// Creates a new `BatchRevokePermissions`.
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::BatchRevokePermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::BatchRevokePermissionsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// Appends an item to `Entries`.
///
/// To override the contents of this collection use [`set_entries`](Self::set_entries).
///
/// <p>A list of up to 20 entries for resource permissions to be revoked by batch operation to the principal.</p>
pub fn entries(mut self, input: crate::model::BatchPermissionsRequestEntry) -> Self {
self.inner = self.inner.entries(input);
self
}
/// <p>A list of up to 20 entries for resource permissions to be revoked by batch operation to the principal.</p>
pub fn set_entries(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchPermissionsRequestEntry>>,
) -> Self {
self.inner = self.inner.set_entries(input);
self
}
}
/// Fluent builder constructing a request to `CancelTransaction`.
///
/// <p>Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CancelTransaction {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::cancel_transaction_input::Builder,
}
impl CancelTransaction {
/// Creates a new `CancelTransaction`.
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::CancelTransactionOutput,
aws_smithy_http::result::SdkError<crate::error::CancelTransactionError>,
> {
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 transaction to cancel.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>The transaction to cancel.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
}
/// Fluent builder constructing a request to `CommitTransaction`.
///
/// <p>Attempts to commit the specified transaction. Returns an exception if the transaction was previously aborted. This API action is idempotent if called multiple times for the same transaction.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CommitTransaction {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::commit_transaction_input::Builder,
}
impl CommitTransaction {
/// Creates a new `CommitTransaction`.
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::CommitTransactionOutput,
aws_smithy_http::result::SdkError<crate::error::CommitTransactionError>,
> {
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 transaction to commit.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>The transaction to commit.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
}
/// Fluent builder constructing a request to `CreateDataCellsFilter`.
///
/// <p>Creates a data cell filter to allow one to grant access to certain columns on certain rows.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateDataCellsFilter {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_data_cells_filter_input::Builder,
}
impl CreateDataCellsFilter {
/// Creates a new `CreateDataCellsFilter`.
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::CreateDataCellsFilterOutput,
aws_smithy_http::result::SdkError<crate::error::CreateDataCellsFilterError>,
> {
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>A <code>DataCellsFilter</code> structure containing information about the data cells filter.</p>
pub fn table_data(mut self, input: crate::model::DataCellsFilter) -> Self {
self.inner = self.inner.table_data(input);
self
}
/// <p>A <code>DataCellsFilter</code> structure containing information about the data cells filter.</p>
pub fn set_table_data(
mut self,
input: std::option::Option<crate::model::DataCellsFilter>,
) -> Self {
self.inner = self.inner.set_table_data(input);
self
}
}
/// Fluent builder constructing a request to `CreateLFTag`.
///
/// <p>Creates an LF-tag with the specified name and values.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateLFTag {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_lf_tag_input::Builder,
}
impl CreateLFTag {
/// Creates a new `CreateLFTag`.
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::CreateLfTagOutput,
aws_smithy_http::result::SdkError<crate::error::CreateLFTagError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The key-name for the LF-tag.</p>
pub fn tag_key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_key(input.into());
self
}
/// <p>The key-name for the LF-tag.</p>
pub fn set_tag_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_tag_key(input);
self
}
/// Appends an item to `TagValues`.
///
/// To override the contents of this collection use [`set_tag_values`](Self::set_tag_values).
///
/// <p>A list of possible values an attribute can take.</p>
pub fn tag_values(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_values(input.into());
self
}
/// <p>A list of possible values an attribute can take.</p>
pub fn set_tag_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_values(input);
self
}
}
/// Fluent builder constructing a request to `DeleteDataCellsFilter`.
///
/// <p>Deletes a data cell filter.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteDataCellsFilter {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_data_cells_filter_input::Builder,
}
impl DeleteDataCellsFilter {
/// Creates a new `DeleteDataCellsFilter`.
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::DeleteDataCellsFilterOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteDataCellsFilterError>,
> {
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 ID of the catalog to which the table belongs.</p>
pub fn table_catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_catalog_id(input.into());
self
}
/// <p>The ID of the catalog to which the table belongs.</p>
pub fn set_table_catalog_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_table_catalog_id(input);
self
}
/// <p>A database in the Glue Data Catalog.</p>
pub fn database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.database_name(input.into());
self
}
/// <p>A database in the Glue Data Catalog.</p>
pub fn set_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_database_name(input);
self
}
/// <p>A table in the database.</p>
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_name(input.into());
self
}
/// <p>A table in the database.</p>
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_name(input);
self
}
/// <p>The name given by the user to the data filter cell.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name given by the user to the data filter cell.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteLFTag`.
///
/// <p>Deletes the specified LF-tag key name. If the attribute key does not exist or the LF-tag does not exist, then the operation will not do anything. If the attribute key exists, then the operation checks if any resources are tagged with this attribute key, if yes, the API throws a 400 Exception with the message "Delete not allowed" as the LF-tag key is still attached with resources. You can consider untagging resources with this LF-tag key.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteLFTag {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_lf_tag_input::Builder,
}
impl DeleteLFTag {
/// Creates a new `DeleteLFTag`.
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::DeleteLfTagOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteLFTagError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The key-name for the LF-tag to delete.</p>
pub fn tag_key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_key(input.into());
self
}
/// <p>The key-name for the LF-tag to delete.</p>
pub fn set_tag_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_tag_key(input);
self
}
}
/// Fluent builder constructing a request to `DeleteObjectsOnCancel`.
///
/// <p>For a specific governed table, provides a list of Amazon S3 objects that will be written during the current transaction and that can be automatically deleted if the transaction is canceled. Without this call, no Amazon S3 objects are automatically deleted when a transaction cancels. </p>
/// <p> The Glue ETL library function <code>write_dynamic_frame.from_catalog()</code> includes an option to automatically call <code>DeleteObjectsOnCancel</code> before writes. For more information, see <a href="https://docs.aws.amazon.com/lake-formation/latest/dg/transactions-data-operations.html#rolling-back-writes">Rolling Back Amazon S3 Writes</a>. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteObjectsOnCancel {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_objects_on_cancel_input::Builder,
}
impl DeleteObjectsOnCancel {
/// Creates a new `DeleteObjectsOnCancel`.
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::DeleteObjectsOnCancelOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteObjectsOnCancelError>,
> {
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 Glue data catalog that contains the governed table. Defaults to the current account ID.</p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The Glue data catalog that contains the governed table. Defaults to the current account ID.</p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The database that contains the governed table.</p>
pub fn database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.database_name(input.into());
self
}
/// <p>The database that contains the governed table.</p>
pub fn set_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_database_name(input);
self
}
/// <p>The name of the governed table.</p>
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_name(input.into());
self
}
/// <p>The name of the governed table.</p>
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_name(input);
self
}
/// <p>ID of the transaction that the writes occur in.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>ID of the transaction that the writes occur in.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
/// Appends an item to `Objects`.
///
/// To override the contents of this collection use [`set_objects`](Self::set_objects).
///
/// <p>A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.</p>
pub fn objects(mut self, input: crate::model::VirtualObject) -> Self {
self.inner = self.inner.objects(input);
self
}
/// <p>A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.</p>
pub fn set_objects(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::VirtualObject>>,
) -> Self {
self.inner = self.inner.set_objects(input);
self
}
}
/// Fluent builder constructing a request to `DeregisterResource`.
///
/// <p>Deregisters the resource as managed by the Data Catalog.</p>
/// <p>When you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeregisterResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::deregister_resource_input::Builder,
}
impl DeregisterResource {
/// Creates a new `DeregisterResource`.
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::DeregisterResourceOutput,
aws_smithy_http::result::SdkError<crate::error::DeregisterResourceError>,
> {
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 resource that you want to deregister.</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 resource that you want to deregister.</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 `DescribeResource`.
///
/// <p>Retrieves the current data access role for the given resource registered in Lake Formation.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_resource_input::Builder,
}
impl DescribeResource {
/// Creates a new `DescribeResource`.
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::DescribeResourceOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeResourceError>,
> {
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 resource ARN.</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 resource ARN.</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 `DescribeTransaction`.
///
/// <p>Returns the details of a single transaction.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeTransaction {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_transaction_input::Builder,
}
impl DescribeTransaction {
/// Creates a new `DescribeTransaction`.
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::DescribeTransactionOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeTransactionError>,
> {
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 transaction for which to return status.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>The transaction for which to return status.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
}
/// Fluent builder constructing a request to `ExtendTransaction`.
///
/// <p>Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.</p>
/// <p>Write transactions that remain idle for a long period are automatically aborted unless explicitly extended.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ExtendTransaction {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::extend_transaction_input::Builder,
}
impl ExtendTransaction {
/// Creates a new `ExtendTransaction`.
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::ExtendTransactionOutput,
aws_smithy_http::result::SdkError<crate::error::ExtendTransactionError>,
> {
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 transaction to extend.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>The transaction to extend.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
}
/// Fluent builder constructing a request to `GetDataLakeSettings`.
///
/// <p>Retrieves the list of the data lake administrators of a Lake Formation-managed data lake. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetDataLakeSettings {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_data_lake_settings_input::Builder,
}
impl GetDataLakeSettings {
/// Creates a new `GetDataLakeSettings`.
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::GetDataLakeSettingsOutput,
aws_smithy_http::result::SdkError<crate::error::GetDataLakeSettingsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
}
/// Fluent builder constructing a request to `GetEffectivePermissionsForPath`.
///
/// <p>Returns the Lake Formation permissions for a specified table or database resource located at a path in Amazon S3. <code>GetEffectivePermissionsForPath</code> will not return databases and tables if the catalog is encrypted.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetEffectivePermissionsForPath {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_effective_permissions_for_path_input::Builder,
}
impl GetEffectivePermissionsForPath {
/// Creates a new `GetEffectivePermissionsForPath`.
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::GetEffectivePermissionsForPathOutput,
aws_smithy_http::result::SdkError<crate::error::GetEffectivePermissionsForPathError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::GetEffectivePermissionsForPathPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::GetEffectivePermissionsForPathPaginator {
crate::paginator::GetEffectivePermissionsForPathPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the resource for which you want to get permissions.</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 resource for which you want to get permissions.</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>A continuation token, if this is not the first call to retrieve this list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</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
}
/// <p>The maximum number of results to return.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `GetLFTag`.
///
/// <p>Returns an LF-tag definition.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetLFTag {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_lf_tag_input::Builder,
}
impl GetLFTag {
/// Creates a new `GetLFTag`.
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::GetLfTagOutput,
aws_smithy_http::result::SdkError<crate::error::GetLFTagError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The key-name for the LF-tag.</p>
pub fn tag_key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_key(input.into());
self
}
/// <p>The key-name for the LF-tag.</p>
pub fn set_tag_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_tag_key(input);
self
}
}
/// Fluent builder constructing a request to `GetQueryState`.
///
/// <p>Returns the state of a query previously submitted. Clients are expected to poll <code>GetQueryState</code> to monitor the current state of the planning before retrieving the work units. A query state is only visible to the principal that made the initial call to <code>StartQueryPlanning</code>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetQueryState {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_query_state_input::Builder,
}
impl GetQueryState {
/// Creates a new `GetQueryState`.
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::GetQueryStateOutput,
aws_smithy_http::result::SdkError<crate::error::GetQueryStateError>,
> {
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 ID of the plan query operation.</p>
pub fn query_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.query_id(input.into());
self
}
/// <p>The ID of the plan query operation.</p>
pub fn set_query_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_query_id(input);
self
}
}
/// Fluent builder constructing a request to `GetQueryStatistics`.
///
/// <p>Retrieves statistics on the planning and execution of a query.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetQueryStatistics {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_query_statistics_input::Builder,
}
impl GetQueryStatistics {
/// Creates a new `GetQueryStatistics`.
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::GetQueryStatisticsOutput,
aws_smithy_http::result::SdkError<crate::error::GetQueryStatisticsError>,
> {
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 ID of the plan query operation.</p>
pub fn query_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.query_id(input.into());
self
}
/// <p>The ID of the plan query operation.</p>
pub fn set_query_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_query_id(input);
self
}
}
/// Fluent builder constructing a request to `GetResourceLFTags`.
///
/// <p>Returns the LF-tags applied to a resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetResourceLFTags {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_resource_lf_tags_input::Builder,
}
impl GetResourceLFTags {
/// Creates a new `GetResourceLFTags`.
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::GetResourceLfTagsOutput,
aws_smithy_http::result::SdkError<crate::error::GetResourceLFTagsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The database, table, or column resource for which you want to return LF-tags.</p>
pub fn resource(mut self, input: crate::model::Resource) -> Self {
self.inner = self.inner.resource(input);
self
}
/// <p>The database, table, or column resource for which you want to return LF-tags.</p>
pub fn set_resource(mut self, input: std::option::Option<crate::model::Resource>) -> Self {
self.inner = self.inner.set_resource(input);
self
}
/// <p>Indicates whether to show the assigned LF-tags.</p>
pub fn show_assigned_lf_tags(mut self, input: bool) -> Self {
self.inner = self.inner.show_assigned_lf_tags(input);
self
}
/// <p>Indicates whether to show the assigned LF-tags.</p>
pub fn set_show_assigned_lf_tags(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_show_assigned_lf_tags(input);
self
}
}
/// Fluent builder constructing a request to `GetTableObjects`.
///
/// <p>Returns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetTableObjects {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_table_objects_input::Builder,
}
impl GetTableObjects {
/// Creates a new `GetTableObjects`.
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::GetTableObjectsOutput,
aws_smithy_http::result::SdkError<crate::error::GetTableObjectsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::GetTableObjectsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::GetTableObjectsPaginator {
crate::paginator::GetTableObjectsPaginator::new(self.handle, self.inner)
}
/// <p>The catalog containing the governed table. Defaults to the caller’s account.</p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The catalog containing the governed table. Defaults to the caller’s account.</p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The database containing the governed table.</p>
pub fn database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.database_name(input.into());
self
}
/// <p>The database containing the governed table.</p>
pub fn set_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_database_name(input);
self
}
/// <p>The governed table for which to retrieve objects.</p>
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_name(input.into());
self
}
/// <p>The governed table for which to retrieve objects.</p>
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_name(input);
self
}
/// <p>The transaction ID at which to read the governed table contents. If this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with <code>QueryAsOfTime</code>.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>The transaction ID at which to read the governed table contents. If this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with <code>QueryAsOfTime</code>.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
/// <p>The time as of when to read the governed table contents. If not set, the most recent transaction commit time is used. Cannot be specified along with <code>TransactionId</code>.</p>
pub fn query_as_of_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inner = self.inner.query_as_of_time(input);
self
}
/// <p>The time as of when to read the governed table contents. If not set, the most recent transaction commit time is used. Cannot be specified along with <code>TransactionId</code>.</p>
pub fn set_query_as_of_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inner = self.inner.set_query_as_of_time(input);
self
}
/// <p>A predicate to filter the objects returned based on the partition keys defined in the governed table.</p>
/// <ul>
/// <li> <p>The comparison operators supported are: =, >, <, >=, <=</p> </li>
/// <li> <p>The logical operators supported are: AND</p> </li>
/// <li> <p>The data types supported are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.</p> </li>
/// </ul>
pub fn partition_predicate(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.partition_predicate(input.into());
self
}
/// <p>A predicate to filter the objects returned based on the partition keys defined in the governed table.</p>
/// <ul>
/// <li> <p>The comparison operators supported are: =, >, <, >=, <=</p> </li>
/// <li> <p>The logical operators supported are: AND</p> </li>
/// <li> <p>The data types supported are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.</p> </li>
/// </ul>
pub fn set_partition_predicate(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_partition_predicate(input);
self
}
/// <p>Specifies how many values to return in a page.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>Specifies how many values to return in a page.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>A continuation token if this is not the first call to retrieve these objects.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token if this is not the first call to retrieve these objects.</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 `GetTemporaryGluePartitionCredentials`.
///
/// <p>This API is identical to <code>GetTemporaryTableCredentials</code> except that this is used when the target Data Catalog resource is of type Partition. Lake Formation restricts the permission of the vended credentials with the same scope down policy which restricts access to a single Amazon S3 prefix.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetTemporaryGluePartitionCredentials {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_temporary_glue_partition_credentials_input::Builder,
}
impl GetTemporaryGluePartitionCredentials {
/// Creates a new `GetTemporaryGluePartitionCredentials`.
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::GetTemporaryGluePartitionCredentialsOutput,
aws_smithy_http::result::SdkError<
crate::error::GetTemporaryGluePartitionCredentialsError,
>,
> {
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 partitions' table.</p>
pub fn table_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_arn(input.into());
self
}
/// <p>The ARN of the partitions' table.</p>
pub fn set_table_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_arn(input);
self
}
/// <p>A list of partition values identifying a single partition.</p>
pub fn partition(mut self, input: crate::model::PartitionValueList) -> Self {
self.inner = self.inner.partition(input);
self
}
/// <p>A list of partition values identifying a single partition.</p>
pub fn set_partition(
mut self,
input: std::option::Option<crate::model::PartitionValueList>,
) -> Self {
self.inner = self.inner.set_partition(input);
self
}
/// Appends an item to `Permissions`.
///
/// To override the contents of this collection use [`set_permissions`](Self::set_permissions).
///
/// <p>Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).</p>
pub fn permissions(mut self, input: crate::model::Permission) -> Self {
self.inner = self.inner.permissions(input);
self
}
/// <p>Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).</p>
pub fn set_permissions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Permission>>,
) -> Self {
self.inner = self.inner.set_permissions(input);
self
}
/// <p>The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.</p>
pub fn duration_seconds(mut self, input: i32) -> Self {
self.inner = self.inner.duration_seconds(input);
self
}
/// <p>The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.</p>
pub fn set_duration_seconds(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_duration_seconds(input);
self
}
/// <p>A structure representing context to access a resource (column names, query ID, etc).</p>
pub fn audit_context(mut self, input: crate::model::AuditContext) -> Self {
self.inner = self.inner.audit_context(input);
self
}
/// <p>A structure representing context to access a resource (column names, query ID, etc).</p>
pub fn set_audit_context(
mut self,
input: std::option::Option<crate::model::AuditContext>,
) -> Self {
self.inner = self.inner.set_audit_context(input);
self
}
/// Appends an item to `SupportedPermissionTypes`.
///
/// To override the contents of this collection use [`set_supported_permission_types`](Self::set_supported_permission_types).
///
/// <p>A list of supported permission types for the partition. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.</p>
pub fn supported_permission_types(mut self, input: crate::model::PermissionType) -> Self {
self.inner = self.inner.supported_permission_types(input);
self
}
/// <p>A list of supported permission types for the partition. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.</p>
pub fn set_supported_permission_types(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PermissionType>>,
) -> Self {
self.inner = self.inner.set_supported_permission_types(input);
self
}
}
/// Fluent builder constructing a request to `GetTemporaryGlueTableCredentials`.
///
/// <p>Allows a caller in a secure environment to assume a role with permission to access Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated with a registered location, for example an Amazon S3 bucket, with a scope down policy which restricts the access to a single prefix.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetTemporaryGlueTableCredentials {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_temporary_glue_table_credentials_input::Builder,
}
impl GetTemporaryGlueTableCredentials {
/// Creates a new `GetTemporaryGlueTableCredentials`.
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::GetTemporaryGlueTableCredentialsOutput,
aws_smithy_http::result::SdkError<crate::error::GetTemporaryGlueTableCredentialsError>,
> {
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 identifying a table in the Data Catalog for the temporary credentials request.</p>
pub fn table_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_arn(input.into());
self
}
/// <p>The ARN identifying a table in the Data Catalog for the temporary credentials request.</p>
pub fn set_table_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_arn(input);
self
}
/// Appends an item to `Permissions`.
///
/// To override the contents of this collection use [`set_permissions`](Self::set_permissions).
///
/// <p>Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).</p>
pub fn permissions(mut self, input: crate::model::Permission) -> Self {
self.inner = self.inner.permissions(input);
self
}
/// <p>Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).</p>
pub fn set_permissions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Permission>>,
) -> Self {
self.inner = self.inner.set_permissions(input);
self
}
/// <p>The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.</p>
pub fn duration_seconds(mut self, input: i32) -> Self {
self.inner = self.inner.duration_seconds(input);
self
}
/// <p>The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.</p>
pub fn set_duration_seconds(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_duration_seconds(input);
self
}
/// <p>A structure representing context to access a resource (column names, query ID, etc).</p>
pub fn audit_context(mut self, input: crate::model::AuditContext) -> Self {
self.inner = self.inner.audit_context(input);
self
}
/// <p>A structure representing context to access a resource (column names, query ID, etc).</p>
pub fn set_audit_context(
mut self,
input: std::option::Option<crate::model::AuditContext>,
) -> Self {
self.inner = self.inner.set_audit_context(input);
self
}
/// Appends an item to `SupportedPermissionTypes`.
///
/// To override the contents of this collection use [`set_supported_permission_types`](Self::set_supported_permission_types).
///
/// <p>A list of supported permission types for the table. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.</p>
pub fn supported_permission_types(mut self, input: crate::model::PermissionType) -> Self {
self.inner = self.inner.supported_permission_types(input);
self
}
/// <p>A list of supported permission types for the table. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.</p>
pub fn set_supported_permission_types(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PermissionType>>,
) -> Self {
self.inner = self.inner.set_supported_permission_types(input);
self
}
}
/// Fluent builder constructing a request to `GetWorkUnitResults`.
///
/// <p>Returns the work units resulting from the query. Work units can be executed in any order and in parallel. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetWorkUnitResults {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_work_unit_results_input::Builder,
}
impl GetWorkUnitResults {
/// Creates a new `GetWorkUnitResults`.
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::GetWorkUnitResultsOutput,
aws_smithy_http::result::SdkError<crate::error::GetWorkUnitResultsError>,
> {
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 ID of the plan query operation for which to get results.</p>
pub fn query_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.query_id(input.into());
self
}
/// <p>The ID of the plan query operation for which to get results.</p>
pub fn set_query_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_query_id(input);
self
}
/// <p>The work unit ID for which to get results. Value generated by enumerating <code>WorkUnitIdMin</code> to <code>WorkUnitIdMax</code> (inclusive) from the <code>WorkUnitRange</code> in the output of <code>GetWorkUnits</code>.</p>
pub fn work_unit_id(mut self, input: i64) -> Self {
self.inner = self.inner.work_unit_id(input);
self
}
/// <p>The work unit ID for which to get results. Value generated by enumerating <code>WorkUnitIdMin</code> to <code>WorkUnitIdMax</code> (inclusive) from the <code>WorkUnitRange</code> in the output of <code>GetWorkUnits</code>.</p>
pub fn set_work_unit_id(mut self, input: std::option::Option<i64>) -> Self {
self.inner = self.inner.set_work_unit_id(input);
self
}
/// <p>A work token used to query the execution service. Token output from <code>GetWorkUnits</code>.</p>
pub fn work_unit_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.work_unit_token(input.into());
self
}
/// <p>A work token used to query the execution service. Token output from <code>GetWorkUnits</code>.</p>
pub fn set_work_unit_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_work_unit_token(input);
self
}
}
/// Fluent builder constructing a request to `GetWorkUnits`.
///
/// <p>Retrieves the work units generated by the <code>StartQueryPlanning</code> operation.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetWorkUnits {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_work_units_input::Builder,
}
impl GetWorkUnits {
/// Creates a new `GetWorkUnits`.
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::GetWorkUnitsOutput,
aws_smithy_http::result::SdkError<crate::error::GetWorkUnitsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::GetWorkUnitsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::GetWorkUnitsPaginator {
crate::paginator::GetWorkUnitsPaginator::new(self.handle, self.inner)
}
/// <p>A continuation token, if this is a continuation call.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is a continuation call.</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
}
/// <p>The size of each page to get in the Amazon Web Services service call. This does not affect the number of items returned in the command's output. Setting a smaller page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out.</p>
pub fn page_size(mut self, input: i32) -> Self {
self.inner = self.inner.page_size(input);
self
}
/// <p>The size of each page to get in the Amazon Web Services service call. This does not affect the number of items returned in the command's output. Setting a smaller page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out.</p>
pub fn set_page_size(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_page_size(input);
self
}
/// <p>The ID of the plan query operation.</p>
pub fn query_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.query_id(input.into());
self
}
/// <p>The ID of the plan query operation.</p>
pub fn set_query_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_query_id(input);
self
}
}
/// Fluent builder constructing a request to `GrantPermissions`.
///
/// <p>Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.</p>
/// <p>For information about permissions, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html">Security and Access Control to Metadata and Data</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GrantPermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::grant_permissions_input::Builder,
}
impl GrantPermissions {
/// Creates a new `GrantPermissions`.
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::GrantPermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::GrantPermissionsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.</p>
/// <p>Note that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted. </p>
pub fn principal(mut self, input: crate::model::DataLakePrincipal) -> Self {
self.inner = self.inner.principal(input);
self
}
/// <p>The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.</p>
/// <p>Note that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted. </p>
pub fn set_principal(
mut self,
input: std::option::Option<crate::model::DataLakePrincipal>,
) -> Self {
self.inner = self.inner.set_principal(input);
self
}
/// <p>The resource to which permissions are to be granted. Resources in Lake Formation are the Data Catalog, databases, and tables.</p>
pub fn resource(mut self, input: crate::model::Resource) -> Self {
self.inner = self.inner.resource(input);
self
}
/// <p>The resource to which permissions are to be granted. Resources in Lake Formation are the Data Catalog, databases, and tables.</p>
pub fn set_resource(mut self, input: std::option::Option<crate::model::Resource>) -> Self {
self.inner = self.inner.set_resource(input);
self
}
/// Appends an item to `Permissions`.
///
/// To override the contents of this collection use [`set_permissions`](Self::set_permissions).
///
/// <p>The permissions granted to the principal on the resource. Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. Lake Formation requires that each principal be authorized to perform a specific task on Lake Formation resources. </p>
pub fn permissions(mut self, input: crate::model::Permission) -> Self {
self.inner = self.inner.permissions(input);
self
}
/// <p>The permissions granted to the principal on the resource. Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. Lake Formation requires that each principal be authorized to perform a specific task on Lake Formation resources. </p>
pub fn set_permissions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Permission>>,
) -> Self {
self.inner = self.inner.set_permissions(input);
self
}
/// Appends an item to `PermissionsWithGrantOption`.
///
/// To override the contents of this collection use [`set_permissions_with_grant_option`](Self::set_permissions_with_grant_option).
///
/// <p>Indicates a list of the granted permissions that the principal may pass to other users. These permissions may only be a subset of the permissions granted in the <code>Privileges</code>.</p>
pub fn permissions_with_grant_option(mut self, input: crate::model::Permission) -> Self {
self.inner = self.inner.permissions_with_grant_option(input);
self
}
/// <p>Indicates a list of the granted permissions that the principal may pass to other users. These permissions may only be a subset of the permissions granted in the <code>Privileges</code>.</p>
pub fn set_permissions_with_grant_option(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Permission>>,
) -> Self {
self.inner = self.inner.set_permissions_with_grant_option(input);
self
}
}
/// Fluent builder constructing a request to `ListDataCellsFilter`.
///
/// <p>Lists all the data cell filters on a table.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListDataCellsFilter {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_data_cells_filter_input::Builder,
}
impl ListDataCellsFilter {
/// Creates a new `ListDataCellsFilter`.
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::ListDataCellsFilterOutput,
aws_smithy_http::result::SdkError<crate::error::ListDataCellsFilterError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListDataCellsFilterPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListDataCellsFilterPaginator {
crate::paginator::ListDataCellsFilterPaginator::new(self.handle, self.inner)
}
/// <p>A table in the Glue Data Catalog.</p>
pub fn table(mut self, input: crate::model::TableResource) -> Self {
self.inner = self.inner.table(input);
self
}
/// <p>A table in the Glue Data Catalog.</p>
pub fn set_table(
mut self,
input: std::option::Option<crate::model::TableResource>,
) -> Self {
self.inner = self.inner.set_table(input);
self
}
/// <p>A continuation token, if this is a continuation call.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is a continuation call.</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
}
/// <p>The maximum size of the response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum size of the response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListLFTags`.
///
/// <p>Lists LF-tags that the requester has permission to view. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListLFTags {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_lf_tags_input::Builder,
}
impl ListLFTags {
/// Creates a new `ListLFTags`.
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::ListLfTagsOutput,
aws_smithy_http::result::SdkError<crate::error::ListLFTagsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListLfTagsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListLfTagsPaginator {
crate::paginator::ListLfTagsPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>If resource share type is <code>ALL</code>, returns both in-account LF-tags and shared LF-tags that the requester has permission to view. If resource share type is <code>FOREIGN</code>, returns all share LF-tags that the requester can view. If no resource share type is passed, lists LF-tags in the given catalog ID that the requester has permission to view.</p>
pub fn resource_share_type(mut self, input: crate::model::ResourceShareType) -> Self {
self.inner = self.inner.resource_share_type(input);
self
}
/// <p>If resource share type is <code>ALL</code>, returns both in-account LF-tags and shared LF-tags that the requester has permission to view. If resource share type is <code>FOREIGN</code>, returns all share LF-tags that the requester can view. If no resource share type is passed, lists LF-tags in the given catalog ID that the requester has permission to view.</p>
pub fn set_resource_share_type(
mut self,
input: std::option::Option<crate::model::ResourceShareType>,
) -> Self {
self.inner = self.inner.set_resource_share_type(input);
self
}
/// <p>The maximum number of results to return.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</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 `ListPermissions`.
///
/// <p>Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.</p>
/// <p>This operation returns only those permissions that have been explicitly granted.</p>
/// <p>For information about permissions, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html">Security and Access Control to Metadata and Data</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListPermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_permissions_input::Builder,
}
impl ListPermissions {
/// Creates a new `ListPermissions`.
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::ListPermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::ListPermissionsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListPermissionsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListPermissionsPaginator {
crate::paginator::ListPermissionsPaginator::new(self.handle, self.inner)
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>Specifies a principal to filter the permissions returned.</p>
pub fn principal(mut self, input: crate::model::DataLakePrincipal) -> Self {
self.inner = self.inner.principal(input);
self
}
/// <p>Specifies a principal to filter the permissions returned.</p>
pub fn set_principal(
mut self,
input: std::option::Option<crate::model::DataLakePrincipal>,
) -> Self {
self.inner = self.inner.set_principal(input);
self
}
/// <p>Specifies a resource type to filter the permissions returned.</p>
pub fn resource_type(mut self, input: crate::model::DataLakeResourceType) -> Self {
self.inner = self.inner.resource_type(input);
self
}
/// <p>Specifies a resource type to filter the permissions returned.</p>
pub fn set_resource_type(
mut self,
input: std::option::Option<crate::model::DataLakeResourceType>,
) -> Self {
self.inner = self.inner.set_resource_type(input);
self
}
/// <p>A resource where you will get a list of the principal permissions.</p>
/// <p>This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.</p>
pub fn resource(mut self, input: crate::model::Resource) -> Self {
self.inner = self.inner.resource(input);
self
}
/// <p>A resource where you will get a list of the principal permissions.</p>
/// <p>This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.</p>
pub fn set_resource(mut self, input: std::option::Option<crate::model::Resource>) -> Self {
self.inner = self.inner.set_resource(input);
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</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
}
/// <p>The maximum number of results to return.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>Indicates that related permissions should be included in the results.</p>
pub fn include_related(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.include_related(input.into());
self
}
/// <p>Indicates that related permissions should be included in the results.</p>
pub fn set_include_related(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_include_related(input);
self
}
}
/// Fluent builder constructing a request to `ListResources`.
///
/// <p>Lists the resources registered to be managed by the Data Catalog.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListResources {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_resources_input::Builder,
}
impl ListResources {
/// Creates a new `ListResources`.
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::ListResourcesOutput,
aws_smithy_http::result::SdkError<crate::error::ListResourcesError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListResourcesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListResourcesPaginator {
crate::paginator::ListResourcesPaginator::new(self.handle, self.inner)
}
/// Appends an item to `FilterConditionList`.
///
/// To override the contents of this collection use [`set_filter_condition_list`](Self::set_filter_condition_list).
///
/// <p>Any applicable row-level and/or column-level filtering conditions for the resources.</p>
pub fn filter_condition_list(mut self, input: crate::model::FilterCondition) -> Self {
self.inner = self.inner.filter_condition_list(input);
self
}
/// <p>Any applicable row-level and/or column-level filtering conditions for the resources.</p>
pub fn set_filter_condition_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::FilterCondition>>,
) -> Self {
self.inner = self.inner.set_filter_condition_list(input);
self
}
/// <p>The maximum number of resource results.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of resource results.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>A continuation token, if this is not the first call to retrieve these resources.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is not the first call to retrieve these resources.</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 `ListTableStorageOptimizers`.
///
/// <p>Returns the configuration of all storage optimizers associated with a specified table.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTableStorageOptimizers {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_table_storage_optimizers_input::Builder,
}
impl ListTableStorageOptimizers {
/// Creates a new `ListTableStorageOptimizers`.
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::ListTableStorageOptimizersOutput,
aws_smithy_http::result::SdkError<crate::error::ListTableStorageOptimizersError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListTableStorageOptimizersPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListTableStorageOptimizersPaginator {
crate::paginator::ListTableStorageOptimizersPaginator::new(self.handle, self.inner)
}
/// <p>The Catalog ID of the table.</p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The Catalog ID of the table.</p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>Name of the database where the table is present.</p>
pub fn database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.database_name(input.into());
self
}
/// <p>Name of the database where the table is present.</p>
pub fn set_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_database_name(input);
self
}
/// <p>Name of the table.</p>
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_name(input.into());
self
}
/// <p>Name of the table.</p>
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_name(input);
self
}
/// <p>The specific type of storage optimizers to list. The supported value is <code>compaction</code>.</p>
pub fn storage_optimizer_type(mut self, input: crate::model::OptimizerType) -> Self {
self.inner = self.inner.storage_optimizer_type(input);
self
}
/// <p>The specific type of storage optimizers to list. The supported value is <code>compaction</code>.</p>
pub fn set_storage_optimizer_type(
mut self,
input: std::option::Option<crate::model::OptimizerType>,
) -> Self {
self.inner = self.inner.set_storage_optimizer_type(input);
self
}
/// <p>The number of storage optimizers to return on each call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The number of storage optimizers to return on each call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>A continuation token, if this is a continuation call.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is a continuation call.</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 `ListTransactions`.
///
/// <p>Returns metadata about transactions and their status. To prevent the response from growing indefinitely, only uncommitted transactions and those available for time-travel queries are returned.</p>
/// <p>This operation can help you identify uncommitted transactions or to get information about transactions.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTransactions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_transactions_input::Builder,
}
impl ListTransactions {
/// Creates a new `ListTransactions`.
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::ListTransactionsOutput,
aws_smithy_http::result::SdkError<crate::error::ListTransactionsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListTransactionsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListTransactionsPaginator {
crate::paginator::ListTransactionsPaginator::new(self.handle, self.inner)
}
/// <p>The catalog for which to list transactions. Defaults to the account ID of the caller.</p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The catalog for which to list transactions. Defaults to the account ID of the caller.</p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p> A filter indicating the status of transactions to return. Options are ALL | COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is <code>ALL</code>.</p>
pub fn status_filter(mut self, input: crate::model::TransactionStatusFilter) -> Self {
self.inner = self.inner.status_filter(input);
self
}
/// <p> A filter indicating the status of transactions to return. Options are ALL | COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is <code>ALL</code>.</p>
pub fn set_status_filter(
mut self,
input: std::option::Option<crate::model::TransactionStatusFilter>,
) -> Self {
self.inner = self.inner.set_status_filter(input);
self
}
/// <p>The maximum number of transactions to return in a single call.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of transactions to return in a single call.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>A continuation token if this is not the first call to retrieve transactions.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token if this is not the first call to retrieve transactions.</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 `PutDataLakeSettings`.
///
/// <p>Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see <a href="https://docs.aws.amazon.com/lake-formation/latest/dg/lake-formation-permissions.html">Granting Lake Formation Permissions</a>.</p>
/// <p>This API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutDataLakeSettings {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_data_lake_settings_input::Builder,
}
impl PutDataLakeSettings {
/// Creates a new `PutDataLakeSettings`.
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::PutDataLakeSettingsOutput,
aws_smithy_http::result::SdkError<crate::error::PutDataLakeSettingsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>A structure representing a list of Lake Formation principals designated as data lake administrators.</p>
pub fn data_lake_settings(mut self, input: crate::model::DataLakeSettings) -> Self {
self.inner = self.inner.data_lake_settings(input);
self
}
/// <p>A structure representing a list of Lake Formation principals designated as data lake administrators.</p>
pub fn set_data_lake_settings(
mut self,
input: std::option::Option<crate::model::DataLakeSettings>,
) -> Self {
self.inner = self.inner.set_data_lake_settings(input);
self
}
}
/// Fluent builder constructing a request to `RegisterResource`.
///
/// <p>Registers the resource as managed by the Data Catalog.</p>
/// <p>To add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.</p>
/// <p>The following request registers a new location and gives Lake Formation permission to use the service-linked role to access that location.</p>
/// <p> <code>ResourceArn = arn:aws:s3:::my-bucket UseServiceLinkedRole = true</code> </p>
/// <p>If <code>UseServiceLinkedRole</code> is not set to true, you must provide or set the <code>RoleArn</code>:</p>
/// <p> <code>arn:aws:iam::12345:role/my-data-access-role</code> </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct RegisterResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::register_resource_input::Builder,
}
impl RegisterResource {
/// Creates a new `RegisterResource`.
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::RegisterResourceOutput,
aws_smithy_http::result::SdkError<crate::error::RegisterResourceError>,
> {
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 resource that you want to register.</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 resource that you want to register.</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>Designates an Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.</p>
/// <p>For more information, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/service-linked-roles.html">Using Service-Linked Roles for Lake Formation</a>.</p>
pub fn use_service_linked_role(mut self, input: bool) -> Self {
self.inner = self.inner.use_service_linked_role(input);
self
}
/// <p>Designates an Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.</p>
/// <p>For more information, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/service-linked-roles.html">Using Service-Linked Roles for Lake Formation</a>.</p>
pub fn set_use_service_linked_role(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_use_service_linked_role(input);
self
}
/// <p>The identifier for the role that registers the resource.</p>
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
/// <p>The identifier for the role that registers the resource.</p>
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
}
/// Fluent builder constructing a request to `RemoveLFTagsFromResource`.
///
/// <p>Removes an LF-tag from the resource. Only database, table, or tableWithColumns resource are allowed. To tag columns, use the column inclusion list in <code>tableWithColumns</code> to specify column input.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct RemoveLFTagsFromResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::remove_lf_tags_from_resource_input::Builder,
}
impl RemoveLFTagsFromResource {
/// Creates a new `RemoveLFTagsFromResource`.
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::RemoveLfTagsFromResourceOutput,
aws_smithy_http::result::SdkError<crate::error::RemoveLFTagsFromResourceError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The database, table, or column resource where you want to remove an LF-tag.</p>
pub fn resource(mut self, input: crate::model::Resource) -> Self {
self.inner = self.inner.resource(input);
self
}
/// <p>The database, table, or column resource where you want to remove an LF-tag.</p>
pub fn set_resource(mut self, input: std::option::Option<crate::model::Resource>) -> Self {
self.inner = self.inner.set_resource(input);
self
}
/// Appends an item to `LFTags`.
///
/// To override the contents of this collection use [`set_lf_tags`](Self::set_lf_tags).
///
/// <p>The LF-tags to be removed from the resource.</p>
pub fn lf_tags(mut self, input: crate::model::LfTagPair) -> Self {
self.inner = self.inner.lf_tags(input);
self
}
/// <p>The LF-tags to be removed from the resource.</p>
pub fn set_lf_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::LfTagPair>>,
) -> Self {
self.inner = self.inner.set_lf_tags(input);
self
}
}
/// Fluent builder constructing a request to `RevokePermissions`.
///
/// <p>Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct RevokePermissions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::revoke_permissions_input::Builder,
}
impl RevokePermissions {
/// Creates a new `RevokePermissions`.
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::RevokePermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::RevokePermissionsError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The principal to be revoked permissions on the resource.</p>
pub fn principal(mut self, input: crate::model::DataLakePrincipal) -> Self {
self.inner = self.inner.principal(input);
self
}
/// <p>The principal to be revoked permissions on the resource.</p>
pub fn set_principal(
mut self,
input: std::option::Option<crate::model::DataLakePrincipal>,
) -> Self {
self.inner = self.inner.set_principal(input);
self
}
/// <p>The resource to which permissions are to be revoked.</p>
pub fn resource(mut self, input: crate::model::Resource) -> Self {
self.inner = self.inner.resource(input);
self
}
/// <p>The resource to which permissions are to be revoked.</p>
pub fn set_resource(mut self, input: std::option::Option<crate::model::Resource>) -> Self {
self.inner = self.inner.set_resource(input);
self
}
/// Appends an item to `Permissions`.
///
/// To override the contents of this collection use [`set_permissions`](Self::set_permissions).
///
/// <p>The permissions revoked to the principal on the resource. For information about permissions, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html">Security and Access Control to Metadata and Data</a>.</p>
pub fn permissions(mut self, input: crate::model::Permission) -> Self {
self.inner = self.inner.permissions(input);
self
}
/// <p>The permissions revoked to the principal on the resource. For information about permissions, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html">Security and Access Control to Metadata and Data</a>.</p>
pub fn set_permissions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Permission>>,
) -> Self {
self.inner = self.inner.set_permissions(input);
self
}
/// Appends an item to `PermissionsWithGrantOption`.
///
/// To override the contents of this collection use [`set_permissions_with_grant_option`](Self::set_permissions_with_grant_option).
///
/// <p>Indicates a list of permissions for which to revoke the grant option allowing the principal to pass permissions to other principals.</p>
pub fn permissions_with_grant_option(mut self, input: crate::model::Permission) -> Self {
self.inner = self.inner.permissions_with_grant_option(input);
self
}
/// <p>Indicates a list of permissions for which to revoke the grant option allowing the principal to pass permissions to other principals.</p>
pub fn set_permissions_with_grant_option(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Permission>>,
) -> Self {
self.inner = self.inner.set_permissions_with_grant_option(input);
self
}
}
/// Fluent builder constructing a request to `SearchDatabasesByLFTags`.
///
/// <p>This operation allows a search on <code>DATABASE</code> resources by <code>TagCondition</code>. This operation is used by admins who want to grant user permissions on certain <code>TagConditions</code>. Before making a grant, the admin can use <code>SearchDatabasesByTags</code> to find all resources where the given <code>TagConditions</code> are valid to verify whether the returned resources can be shared.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SearchDatabasesByLFTags {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::search_databases_by_lf_tags_input::Builder,
}
impl SearchDatabasesByLFTags {
/// Creates a new `SearchDatabasesByLFTags`.
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::SearchDatabasesByLfTagsOutput,
aws_smithy_http::result::SdkError<crate::error::SearchDatabasesByLFTagsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::SearchDatabasesByLfTagsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::SearchDatabasesByLfTagsPaginator {
crate::paginator::SearchDatabasesByLfTagsPaginator::new(self.handle, self.inner)
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</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
}
/// <p>The maximum number of results to return.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// Appends an item to `Expression`.
///
/// To override the contents of this collection use [`set_expression`](Self::set_expression).
///
/// <p>A list of conditions (<code>LFTag</code> structures) to search for in database resources.</p>
pub fn expression(mut self, input: crate::model::LfTag) -> Self {
self.inner = self.inner.expression(input);
self
}
/// <p>A list of conditions (<code>LFTag</code> structures) to search for in database resources.</p>
pub fn set_expression(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::LfTag>>,
) -> Self {
self.inner = self.inner.set_expression(input);
self
}
}
/// Fluent builder constructing a request to `SearchTablesByLFTags`.
///
/// <p>This operation allows a search on <code>TABLE</code> resources by <code>LFTag</code>s. This will be used by admins who want to grant user permissions on certain LF-tags. Before making a grant, the admin can use <code>SearchTablesByLFTags</code> to find all resources where the given <code>LFTag</code>s are valid to verify whether the returned resources can be shared.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SearchTablesByLFTags {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::search_tables_by_lf_tags_input::Builder,
}
impl SearchTablesByLFTags {
/// Creates a new `SearchTablesByLFTags`.
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::SearchTablesByLfTagsOutput,
aws_smithy_http::result::SdkError<crate::error::SearchTablesByLFTagsError>,
> {
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
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::SearchTablesByLfTagsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::SearchTablesByLfTagsPaginator {
crate::paginator::SearchTablesByLfTagsPaginator::new(self.handle, self.inner)
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A continuation token, if this is not the first call to retrieve this list.</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
}
/// <p>The maximum number of results to return.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to return.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// Appends an item to `Expression`.
///
/// To override the contents of this collection use [`set_expression`](Self::set_expression).
///
/// <p>A list of conditions (<code>LFTag</code> structures) to search for in table resources.</p>
pub fn expression(mut self, input: crate::model::LfTag) -> Self {
self.inner = self.inner.expression(input);
self
}
/// <p>A list of conditions (<code>LFTag</code> structures) to search for in table resources.</p>
pub fn set_expression(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::LfTag>>,
) -> Self {
self.inner = self.inner.set_expression(input);
self
}
}
/// Fluent builder constructing a request to `StartQueryPlanning`.
///
/// <p>Submits a request to process a query statement.</p>
/// <p>This operation generates work units that can be retrieved with the <code>GetWorkUnits</code> operation as soon as the query state is WORKUNITS_AVAILABLE or FINISHED.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartQueryPlanning {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::start_query_planning_input::Builder,
}
impl StartQueryPlanning {
/// Creates a new `StartQueryPlanning`.
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::StartQueryPlanningOutput,
aws_smithy_http::result::SdkError<crate::error::StartQueryPlanningError>,
> {
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>A structure containing information about the query plan.</p>
pub fn query_planning_context(mut self, input: crate::model::QueryPlanningContext) -> Self {
self.inner = self.inner.query_planning_context(input);
self
}
/// <p>A structure containing information about the query plan.</p>
pub fn set_query_planning_context(
mut self,
input: std::option::Option<crate::model::QueryPlanningContext>,
) -> Self {
self.inner = self.inner.set_query_planning_context(input);
self
}
/// <p>A PartiQL query statement used as an input to the planner service.</p>
pub fn query_string(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.query_string(input.into());
self
}
/// <p>A PartiQL query statement used as an input to the planner service.</p>
pub fn set_query_string(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_query_string(input);
self
}
}
/// Fluent builder constructing a request to `StartTransaction`.
///
/// <p>Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartTransaction {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::start_transaction_input::Builder,
}
impl StartTransaction {
/// Creates a new `StartTransaction`.
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::StartTransactionOutput,
aws_smithy_http::result::SdkError<crate::error::StartTransactionError>,
> {
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>Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed. </p>
pub fn transaction_type(mut self, input: crate::model::TransactionType) -> Self {
self.inner = self.inner.transaction_type(input);
self
}
/// <p>Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed. </p>
pub fn set_transaction_type(
mut self,
input: std::option::Option<crate::model::TransactionType>,
) -> Self {
self.inner = self.inner.set_transaction_type(input);
self
}
}
/// Fluent builder constructing a request to `UpdateLFTag`.
///
/// <p>Updates the list of possible values for the specified LF-tag key. If the LF-tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - "Update not allowed". Untag the attribute before deleting the LF-tag key's value. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateLFTag {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_lf_tag_input::Builder,
}
impl UpdateLFTag {
/// Creates a new `UpdateLFTag`.
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::UpdateLfTagOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateLFTagError>,
> {
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 identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The key-name for the LF-tag for which to add or delete values.</p>
pub fn tag_key(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_key(input.into());
self
}
/// <p>The key-name for the LF-tag for which to add or delete values.</p>
pub fn set_tag_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_tag_key(input);
self
}
/// Appends an item to `TagValuesToDelete`.
///
/// To override the contents of this collection use [`set_tag_values_to_delete`](Self::set_tag_values_to_delete).
///
/// <p>A list of LF-tag values to delete from the LF-tag.</p>
pub fn tag_values_to_delete(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_values_to_delete(input.into());
self
}
/// <p>A list of LF-tag values to delete from the LF-tag.</p>
pub fn set_tag_values_to_delete(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_values_to_delete(input);
self
}
/// Appends an item to `TagValuesToAdd`.
///
/// To override the contents of this collection use [`set_tag_values_to_add`](Self::set_tag_values_to_add).
///
/// <p>A list of LF-tag values to add from the LF-tag.</p>
pub fn tag_values_to_add(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_values_to_add(input.into());
self
}
/// <p>A list of LF-tag values to add from the LF-tag.</p>
pub fn set_tag_values_to_add(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_values_to_add(input);
self
}
}
/// Fluent builder constructing a request to `UpdateResource`.
///
/// <p>Updates the data access role used for vending access to the given (registered) resource in Lake Formation. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_resource_input::Builder,
}
impl UpdateResource {
/// Creates a new `UpdateResource`.
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::UpdateResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateResourceError>,
> {
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 new role to use for the given resource registered in Lake Formation.</p>
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
/// <p>The new role to use for the given resource registered in Lake Formation.</p>
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
/// <p>The resource ARN.</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 resource ARN.</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 `UpdateTableObjects`.
///
/// <p>Updates the manifest of Amazon S3 objects that make up the specified governed table.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateTableObjects {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_table_objects_input::Builder,
}
impl UpdateTableObjects {
/// Creates a new `UpdateTableObjects`.
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::UpdateTableObjectsOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTableObjectsError>,
> {
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 catalog containing the governed table to update. Defaults to the caller’s account ID.</p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The catalog containing the governed table to update. Defaults to the caller’s account ID.</p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>The database containing the governed table to update.</p>
pub fn database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.database_name(input.into());
self
}
/// <p>The database containing the governed table to update.</p>
pub fn set_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_database_name(input);
self
}
/// <p>The governed table to update.</p>
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_name(input.into());
self
}
/// <p>The governed table to update.</p>
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_name(input);
self
}
/// <p>The transaction at which to do the write.</p>
pub fn transaction_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.transaction_id(input.into());
self
}
/// <p>The transaction at which to do the write.</p>
pub fn set_transaction_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_transaction_id(input);
self
}
/// Appends an item to `WriteOperations`.
///
/// To override the contents of this collection use [`set_write_operations`](Self::set_write_operations).
///
/// <p>A list of <code>WriteOperation</code> objects that define an object to add to or delete from the manifest for a governed table.</p>
pub fn write_operations(mut self, input: crate::model::WriteOperation) -> Self {
self.inner = self.inner.write_operations(input);
self
}
/// <p>A list of <code>WriteOperation</code> objects that define an object to add to or delete from the manifest for a governed table.</p>
pub fn set_write_operations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::WriteOperation>>,
) -> Self {
self.inner = self.inner.set_write_operations(input);
self
}
}
/// Fluent builder constructing a request to `UpdateTableStorageOptimizer`.
///
/// <p>Updates the configuration of the storage optimizers for a table.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateTableStorageOptimizer {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_table_storage_optimizer_input::Builder,
}
impl UpdateTableStorageOptimizer {
/// Creates a new `UpdateTableStorageOptimizer`.
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::UpdateTableStorageOptimizerOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTableStorageOptimizerError>,
> {
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 Catalog ID of the table.</p>
pub fn catalog_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.catalog_id(input.into());
self
}
/// <p>The Catalog ID of the table.</p>
pub fn set_catalog_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_catalog_id(input);
self
}
/// <p>Name of the database where the table is present.</p>
pub fn database_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.database_name(input.into());
self
}
/// <p>Name of the database where the table is present.</p>
pub fn set_database_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_database_name(input);
self
}
/// <p>Name of the table for which to enable the storage optimizer.</p>
pub fn table_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.table_name(input.into());
self
}
/// <p>Name of the table for which to enable the storage optimizer.</p>
pub fn set_table_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_table_name(input);
self
}
/// Adds a key-value pair to `StorageOptimizerConfig`.
///
/// To override the contents of this collection use [`set_storage_optimizer_config`](Self::set_storage_optimizer_config).
///
/// <p>Name of the table for which to enable the storage optimizer.</p>
pub fn storage_optimizer_config(
mut self,
k: crate::model::OptimizerType,
v: std::collections::HashMap<std::string::String, std::string::String>,
) -> Self {
self.inner = self.inner.storage_optimizer_config(k, v);
self
}
/// <p>Name of the table for which to enable the storage optimizer.</p>
pub fn set_storage_optimizer_config(
mut self,
input: std::option::Option<
std::collections::HashMap<
crate::model::OptimizerType,
std::collections::HashMap<std::string::String, std::string::String>,
>,
>,
) -> Self {
self.inner = self.inner.set_storage_optimizer_config(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 }),
}
}
}