1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PosixProfile {
/// <p>The POSIX user ID used for all EFS operations by this user.</p>
pub uid: std::option::Option<i64>,
/// <p>The POSIX group ID used for all EFS operations by this user.</p>
pub gid: std::option::Option<i64>,
/// <p>The secondary POSIX group IDs used for all EFS operations by this user.</p>
pub secondary_gids: std::option::Option<std::vec::Vec<i64>>,
}
impl PosixProfile {
/// <p>The POSIX user ID used for all EFS operations by this user.</p>
pub fn uid(&self) -> std::option::Option<i64> {
self.uid
}
/// <p>The POSIX group ID used for all EFS operations by this user.</p>
pub fn gid(&self) -> std::option::Option<i64> {
self.gid
}
/// <p>The secondary POSIX group IDs used for all EFS operations by this user.</p>
pub fn secondary_gids(&self) -> std::option::Option<&[i64]> {
self.secondary_gids.as_deref()
}
}
impl std::fmt::Debug for PosixProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PosixProfile");
formatter.field("uid", &self.uid);
formatter.field("gid", &self.gid);
formatter.field("secondary_gids", &self.secondary_gids);
formatter.finish()
}
}
/// See [`PosixProfile`](crate::model::PosixProfile)
pub mod posix_profile {
/// A builder for [`PosixProfile`](crate::model::PosixProfile)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) uid: std::option::Option<i64>,
pub(crate) gid: std::option::Option<i64>,
pub(crate) secondary_gids: std::option::Option<std::vec::Vec<i64>>,
}
impl Builder {
/// <p>The POSIX user ID used for all EFS operations by this user.</p>
pub fn uid(mut self, input: i64) -> Self {
self.uid = Some(input);
self
}
/// <p>The POSIX user ID used for all EFS operations by this user.</p>
pub fn set_uid(mut self, input: std::option::Option<i64>) -> Self {
self.uid = input;
self
}
/// <p>The POSIX group ID used for all EFS operations by this user.</p>
pub fn gid(mut self, input: i64) -> Self {
self.gid = Some(input);
self
}
/// <p>The POSIX group ID used for all EFS operations by this user.</p>
pub fn set_gid(mut self, input: std::option::Option<i64>) -> Self {
self.gid = input;
self
}
/// Appends an item to `secondary_gids`.
///
/// To override the contents of this collection use [`set_secondary_gids`](Self::set_secondary_gids).
///
/// <p>The secondary POSIX group IDs used for all EFS operations by this user.</p>
pub fn secondary_gids(mut self, input: i64) -> Self {
let mut v = self.secondary_gids.unwrap_or_default();
v.push(input);
self.secondary_gids = Some(v);
self
}
/// <p>The secondary POSIX group IDs used for all EFS operations by this user.</p>
pub fn set_secondary_gids(
mut self,
input: std::option::Option<std::vec::Vec<i64>>,
) -> Self {
self.secondary_gids = input;
self
}
/// Consumes the builder and constructs a [`PosixProfile`](crate::model::PosixProfile)
pub fn build(self) -> crate::model::PosixProfile {
crate::model::PosixProfile {
uid: self.uid,
gid: self.gid,
secondary_gids: self.secondary_gids,
}
}
}
}
impl PosixProfile {
/// Creates a new builder-style object to manufacture [`PosixProfile`](crate::model::PosixProfile)
pub fn builder() -> crate::model::posix_profile::Builder {
crate::model::posix_profile::Builder::default()
}
}
/// <p>Represents an object that contains entries and targets for <code>HomeDirectoryMappings</code>.</p>
/// <p>The following is an <code>Entry</code> and <code>Target</code> pair example for <code>chroot</code>.</p>
/// <p> <code>[ { "Entry:": "/", "Target": "/bucket_name/home/mydirectory" } ]</code> </p> <note>
/// <p>If the target of a logical directory entry does not exist in Amazon S3 or EFS, the entry is ignored. As a workaround, you can use the Amazon S3 API or EFS API to create 0 byte objects as place holders for your directory. If using the CLI, use the <code>s3api</code> or <code>efsapi</code> call instead of <code>s3</code> or <code>efs</code> so you can use the put-object operation. For example, you use the following: <code>aws s3api put-object --bucket bucketname --key path/to/folder/</code>. Make sure that the end of the key name ends in a <code>/</code> for it to be considered a folder.</p>
/// </note>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HomeDirectoryMapEntry {
/// <p>Represents an entry for <code>HomeDirectoryMappings</code>.</p>
pub entry: std::option::Option<std::string::String>,
/// <p>Represents the map target that is used in a <code>HomeDirectorymapEntry</code>.</p>
pub target: std::option::Option<std::string::String>,
}
impl HomeDirectoryMapEntry {
/// <p>Represents an entry for <code>HomeDirectoryMappings</code>.</p>
pub fn entry(&self) -> std::option::Option<&str> {
self.entry.as_deref()
}
/// <p>Represents the map target that is used in a <code>HomeDirectorymapEntry</code>.</p>
pub fn target(&self) -> std::option::Option<&str> {
self.target.as_deref()
}
}
impl std::fmt::Debug for HomeDirectoryMapEntry {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HomeDirectoryMapEntry");
formatter.field("entry", &self.entry);
formatter.field("target", &self.target);
formatter.finish()
}
}
/// See [`HomeDirectoryMapEntry`](crate::model::HomeDirectoryMapEntry)
pub mod home_directory_map_entry {
/// A builder for [`HomeDirectoryMapEntry`](crate::model::HomeDirectoryMapEntry)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) entry: std::option::Option<std::string::String>,
pub(crate) target: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Represents an entry for <code>HomeDirectoryMappings</code>.</p>
pub fn entry(mut self, input: impl Into<std::string::String>) -> Self {
self.entry = Some(input.into());
self
}
/// <p>Represents an entry for <code>HomeDirectoryMappings</code>.</p>
pub fn set_entry(mut self, input: std::option::Option<std::string::String>) -> Self {
self.entry = input;
self
}
/// <p>Represents the map target that is used in a <code>HomeDirectorymapEntry</code>.</p>
pub fn target(mut self, input: impl Into<std::string::String>) -> Self {
self.target = Some(input.into());
self
}
/// <p>Represents the map target that is used in a <code>HomeDirectorymapEntry</code>.</p>
pub fn set_target(mut self, input: std::option::Option<std::string::String>) -> Self {
self.target = input;
self
}
/// Consumes the builder and constructs a [`HomeDirectoryMapEntry`](crate::model::HomeDirectoryMapEntry)
pub fn build(self) -> crate::model::HomeDirectoryMapEntry {
crate::model::HomeDirectoryMapEntry {
entry: self.entry,
target: self.target,
}
}
}
}
impl HomeDirectoryMapEntry {
/// Creates a new builder-style object to manufacture [`HomeDirectoryMapEntry`](crate::model::HomeDirectoryMapEntry)
pub fn builder() -> crate::model::home_directory_map_entry::Builder {
crate::model::home_directory_map_entry::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum HomeDirectoryType {
#[allow(missing_docs)] // documentation missing in model
Logical,
#[allow(missing_docs)] // documentation missing in model
Path,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for HomeDirectoryType {
fn from(s: &str) -> Self {
match s {
"LOGICAL" => HomeDirectoryType::Logical,
"PATH" => HomeDirectoryType::Path,
other => HomeDirectoryType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for HomeDirectoryType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(HomeDirectoryType::from(s))
}
}
impl HomeDirectoryType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
HomeDirectoryType::Logical => "LOGICAL",
HomeDirectoryType::Path => "PATH",
HomeDirectoryType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["LOGICAL", "PATH"]
}
}
impl AsRef<str> for HomeDirectoryType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Container for the <code>WorkflowDetail</code> data type. It is used by actions that trigger a workflow to begin execution.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct WorkflowDetails {
/// <p>A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.</p>
pub on_upload: std::option::Option<std::vec::Vec<crate::model::WorkflowDetail>>,
}
impl WorkflowDetails {
/// <p>A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.</p>
pub fn on_upload(&self) -> std::option::Option<&[crate::model::WorkflowDetail]> {
self.on_upload.as_deref()
}
}
impl std::fmt::Debug for WorkflowDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("WorkflowDetails");
formatter.field("on_upload", &self.on_upload);
formatter.finish()
}
}
/// See [`WorkflowDetails`](crate::model::WorkflowDetails)
pub mod workflow_details {
/// A builder for [`WorkflowDetails`](crate::model::WorkflowDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) on_upload: std::option::Option<std::vec::Vec<crate::model::WorkflowDetail>>,
}
impl Builder {
/// Appends an item to `on_upload`.
///
/// To override the contents of this collection use [`set_on_upload`](Self::set_on_upload).
///
/// <p>A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.</p>
pub fn on_upload(mut self, input: crate::model::WorkflowDetail) -> Self {
let mut v = self.on_upload.unwrap_or_default();
v.push(input);
self.on_upload = Some(v);
self
}
/// <p>A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.</p>
pub fn set_on_upload(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::WorkflowDetail>>,
) -> Self {
self.on_upload = input;
self
}
/// Consumes the builder and constructs a [`WorkflowDetails`](crate::model::WorkflowDetails)
pub fn build(self) -> crate::model::WorkflowDetails {
crate::model::WorkflowDetails {
on_upload: self.on_upload,
}
}
}
}
impl WorkflowDetails {
/// Creates a new builder-style object to manufacture [`WorkflowDetails`](crate::model::WorkflowDetails)
pub fn builder() -> crate::model::workflow_details::Builder {
crate::model::workflow_details::Builder::default()
}
}
/// <p>Specifies the workflow ID for the workflow to assign and the execution role used for executing the workflow.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct WorkflowDetail {
/// <p>A unique identifier for the workflow.</p>
pub workflow_id: std::option::Option<std::string::String>,
/// <p>Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources</p>
pub execution_role: std::option::Option<std::string::String>,
}
impl WorkflowDetail {
/// <p>A unique identifier for the workflow.</p>
pub fn workflow_id(&self) -> std::option::Option<&str> {
self.workflow_id.as_deref()
}
/// <p>Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources</p>
pub fn execution_role(&self) -> std::option::Option<&str> {
self.execution_role.as_deref()
}
}
impl std::fmt::Debug for WorkflowDetail {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("WorkflowDetail");
formatter.field("workflow_id", &self.workflow_id);
formatter.field("execution_role", &self.execution_role);
formatter.finish()
}
}
/// See [`WorkflowDetail`](crate::model::WorkflowDetail)
pub mod workflow_detail {
/// A builder for [`WorkflowDetail`](crate::model::WorkflowDetail)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) workflow_id: std::option::Option<std::string::String>,
pub(crate) execution_role: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>A unique identifier for the workflow.</p>
pub fn workflow_id(mut self, input: impl Into<std::string::String>) -> Self {
self.workflow_id = Some(input.into());
self
}
/// <p>A unique identifier for the workflow.</p>
pub fn set_workflow_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.workflow_id = input;
self
}
/// <p>Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources</p>
pub fn execution_role(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_role = Some(input.into());
self
}
/// <p>Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources</p>
pub fn set_execution_role(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.execution_role = input;
self
}
/// Consumes the builder and constructs a [`WorkflowDetail`](crate::model::WorkflowDetail)
pub fn build(self) -> crate::model::WorkflowDetail {
crate::model::WorkflowDetail {
workflow_id: self.workflow_id,
execution_role: self.execution_role,
}
}
}
}
impl WorkflowDetail {
/// Creates a new builder-style object to manufacture [`WorkflowDetail`](crate::model::WorkflowDetail)
pub fn builder() -> crate::model::workflow_detail::Builder {
crate::model::workflow_detail::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Protocol {
#[allow(missing_docs)] // documentation missing in model
Ftp,
#[allow(missing_docs)] // documentation missing in model
Ftps,
#[allow(missing_docs)] // documentation missing in model
Sftp,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for Protocol {
fn from(s: &str) -> Self {
match s {
"FTP" => Protocol::Ftp,
"FTPS" => Protocol::Ftps,
"SFTP" => Protocol::Sftp,
other => Protocol::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for Protocol {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Protocol::from(s))
}
}
impl Protocol {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
Protocol::Ftp => "FTP",
Protocol::Ftps => "FTPS",
Protocol::Sftp => "SFTP",
Protocol::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["FTP", "FTPS", "SFTP"]
}
}
impl AsRef<str> for Protocol {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Returns information related to the type of user authentication that is in use for a file transfer protocol-enabled server's users. A server can have only one method of authentication.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IdentityProviderDetails {
/// <p>Provides the location of the service endpoint used to authenticate users.</p>
pub url: std::option::Option<std::string::String>,
/// <p>Provides the type of <code>InvocationRole</code> used to authenticate the user account.</p>
pub invocation_role: std::option::Option<std::string::String>,
/// <p>The identifier of the Amazon Web Services Directory Service directory that you want to stop sharing.</p>
pub directory_id: std::option::Option<std::string::String>,
/// <p>The ARN for a lambda function to use for the Identity provider.</p>
pub function: std::option::Option<std::string::String>,
}
impl IdentityProviderDetails {
/// <p>Provides the location of the service endpoint used to authenticate users.</p>
pub fn url(&self) -> std::option::Option<&str> {
self.url.as_deref()
}
/// <p>Provides the type of <code>InvocationRole</code> used to authenticate the user account.</p>
pub fn invocation_role(&self) -> std::option::Option<&str> {
self.invocation_role.as_deref()
}
/// <p>The identifier of the Amazon Web Services Directory Service directory that you want to stop sharing.</p>
pub fn directory_id(&self) -> std::option::Option<&str> {
self.directory_id.as_deref()
}
/// <p>The ARN for a lambda function to use for the Identity provider.</p>
pub fn function(&self) -> std::option::Option<&str> {
self.function.as_deref()
}
}
impl std::fmt::Debug for IdentityProviderDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IdentityProviderDetails");
formatter.field("url", &self.url);
formatter.field("invocation_role", &self.invocation_role);
formatter.field("directory_id", &self.directory_id);
formatter.field("function", &self.function);
formatter.finish()
}
}
/// See [`IdentityProviderDetails`](crate::model::IdentityProviderDetails)
pub mod identity_provider_details {
/// A builder for [`IdentityProviderDetails`](crate::model::IdentityProviderDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) url: std::option::Option<std::string::String>,
pub(crate) invocation_role: std::option::Option<std::string::String>,
pub(crate) directory_id: std::option::Option<std::string::String>,
pub(crate) function: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Provides the location of the service endpoint used to authenticate users.</p>
pub fn url(mut self, input: impl Into<std::string::String>) -> Self {
self.url = Some(input.into());
self
}
/// <p>Provides the location of the service endpoint used to authenticate users.</p>
pub fn set_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.url = input;
self
}
/// <p>Provides the type of <code>InvocationRole</code> used to authenticate the user account.</p>
pub fn invocation_role(mut self, input: impl Into<std::string::String>) -> Self {
self.invocation_role = Some(input.into());
self
}
/// <p>Provides the type of <code>InvocationRole</code> used to authenticate the user account.</p>
pub fn set_invocation_role(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.invocation_role = input;
self
}
/// <p>The identifier of the Amazon Web Services Directory Service directory that you want to stop sharing.</p>
pub fn directory_id(mut self, input: impl Into<std::string::String>) -> Self {
self.directory_id = Some(input.into());
self
}
/// <p>The identifier of the Amazon Web Services Directory Service directory that you want to stop sharing.</p>
pub fn set_directory_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.directory_id = input;
self
}
/// <p>The ARN for a lambda function to use for the Identity provider.</p>
pub fn function(mut self, input: impl Into<std::string::String>) -> Self {
self.function = Some(input.into());
self
}
/// <p>The ARN for a lambda function to use for the Identity provider.</p>
pub fn set_function(mut self, input: std::option::Option<std::string::String>) -> Self {
self.function = input;
self
}
/// Consumes the builder and constructs a [`IdentityProviderDetails`](crate::model::IdentityProviderDetails)
pub fn build(self) -> crate::model::IdentityProviderDetails {
crate::model::IdentityProviderDetails {
url: self.url,
invocation_role: self.invocation_role,
directory_id: self.directory_id,
function: self.function,
}
}
}
}
impl IdentityProviderDetails {
/// Creates a new builder-style object to manufacture [`IdentityProviderDetails`](crate::model::IdentityProviderDetails)
pub fn builder() -> crate::model::identity_provider_details::Builder {
crate::model::identity_provider_details::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum EndpointType {
#[allow(missing_docs)] // documentation missing in model
Public,
#[allow(missing_docs)] // documentation missing in model
Vpc,
#[allow(missing_docs)] // documentation missing in model
VpcEndpoint,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for EndpointType {
fn from(s: &str) -> Self {
match s {
"PUBLIC" => EndpointType::Public,
"VPC" => EndpointType::Vpc,
"VPC_ENDPOINT" => EndpointType::VpcEndpoint,
other => EndpointType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for EndpointType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(EndpointType::from(s))
}
}
impl EndpointType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
EndpointType::Public => "PUBLIC",
EndpointType::Vpc => "VPC",
EndpointType::VpcEndpoint => "VPC_ENDPOINT",
EndpointType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["PUBLIC", "VPC", "VPC_ENDPOINT"]
}
}
impl AsRef<str> for EndpointType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>The virtual private cloud (VPC) endpoint settings that are configured for your file transfer protocol-enabled server. With a VPC endpoint, you can restrict access to your server and resources only within your VPC. To control incoming internet traffic, invoke the <code>UpdateServer</code> API and attach an Elastic IP address to your server's endpoint.</p> <note>
/// <p> After May 19, 2021, you won't be able to create a server using <code>EndpointType=VPC_ENDPOINT</code> in your Amazon Web Servicesaccount if your account hasn't already done so before May 19, 2021. If you have already created servers with <code>EndpointType=VPC_ENDPOINT</code> in your Amazon Web Servicesaccount on or before May 19, 2021, you will not be affected. After this date, use <code>EndpointType</code>=<code>VPC</code>.</p>
/// <p>For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.</p>
/// </note>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EndpointDetails {
/// <p>A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code> and it is only valid in the <code>UpdateServer</code> API.</p>
/// </note>
pub address_allocation_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>A list of subnet IDs that are required to host your server endpoint in your VPC.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The ID of the VPC endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC_ENDPOINT</code>.</p>
/// <p>For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.</p>
/// </note>
pub vpc_endpoint_id: std::option::Option<std::string::String>,
/// <p>The VPC ID of the VPC in which a server's endpoint will be hosted.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub vpc_id: std::option::Option<std::string::String>,
/// <p>A list of security groups IDs that are available to attach to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// <p>You can edit the <code>SecurityGroupIds</code> property in the <a href="https://docs.aws.amazon.com/transfer/latest/userguide/API_UpdateServer.html">UpdateServer</a> API only if you are changing the <code>EndpointType</code> from <code>PUBLIC</code> or <code>VPC_ENDPOINT</code> to <code>VPC</code>. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyVpcEndpoint.html">ModifyVpcEndpoint</a> API.</p>
/// </note>
pub security_group_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl EndpointDetails {
/// <p>A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code> and it is only valid in the <code>UpdateServer</code> API.</p>
/// </note>
pub fn address_allocation_ids(&self) -> std::option::Option<&[std::string::String]> {
self.address_allocation_ids.as_deref()
}
/// <p>A list of subnet IDs that are required to host your server endpoint in your VPC.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub fn subnet_ids(&self) -> std::option::Option<&[std::string::String]> {
self.subnet_ids.as_deref()
}
/// <p>The ID of the VPC endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC_ENDPOINT</code>.</p>
/// <p>For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.</p>
/// </note>
pub fn vpc_endpoint_id(&self) -> std::option::Option<&str> {
self.vpc_endpoint_id.as_deref()
}
/// <p>The VPC ID of the VPC in which a server's endpoint will be hosted.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub fn vpc_id(&self) -> std::option::Option<&str> {
self.vpc_id.as_deref()
}
/// <p>A list of security groups IDs that are available to attach to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// <p>You can edit the <code>SecurityGroupIds</code> property in the <a href="https://docs.aws.amazon.com/transfer/latest/userguide/API_UpdateServer.html">UpdateServer</a> API only if you are changing the <code>EndpointType</code> from <code>PUBLIC</code> or <code>VPC_ENDPOINT</code> to <code>VPC</code>. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyVpcEndpoint.html">ModifyVpcEndpoint</a> API.</p>
/// </note>
pub fn security_group_ids(&self) -> std::option::Option<&[std::string::String]> {
self.security_group_ids.as_deref()
}
}
impl std::fmt::Debug for EndpointDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EndpointDetails");
formatter.field("address_allocation_ids", &self.address_allocation_ids);
formatter.field("subnet_ids", &self.subnet_ids);
formatter.field("vpc_endpoint_id", &self.vpc_endpoint_id);
formatter.field("vpc_id", &self.vpc_id);
formatter.field("security_group_ids", &self.security_group_ids);
formatter.finish()
}
}
/// See [`EndpointDetails`](crate::model::EndpointDetails)
pub mod endpoint_details {
/// A builder for [`EndpointDetails`](crate::model::EndpointDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) address_allocation_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) vpc_endpoint_id: std::option::Option<std::string::String>,
pub(crate) vpc_id: std::option::Option<std::string::String>,
pub(crate) security_group_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
/// Appends an item to `address_allocation_ids`.
///
/// To override the contents of this collection use [`set_address_allocation_ids`](Self::set_address_allocation_ids).
///
/// <p>A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code> and it is only valid in the <code>UpdateServer</code> API.</p>
/// </note>
pub fn address_allocation_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.address_allocation_ids.unwrap_or_default();
v.push(input.into());
self.address_allocation_ids = Some(v);
self
}
/// <p>A list of address allocation IDs that are required to attach an Elastic IP address to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code> and it is only valid in the <code>UpdateServer</code> API.</p>
/// </note>
pub fn set_address_allocation_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.address_allocation_ids = input;
self
}
/// Appends an item to `subnet_ids`.
///
/// To override the contents of this collection use [`set_subnet_ids`](Self::set_subnet_ids).
///
/// <p>A list of subnet IDs that are required to host your server endpoint in your VPC.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub fn subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.subnet_ids.unwrap_or_default();
v.push(input.into());
self.subnet_ids = Some(v);
self
}
/// <p>A list of subnet IDs that are required to host your server endpoint in your VPC.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub fn set_subnet_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.subnet_ids = input;
self
}
/// <p>The ID of the VPC endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC_ENDPOINT</code>.</p>
/// <p>For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.</p>
/// </note>
pub fn vpc_endpoint_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_endpoint_id = Some(input.into());
self
}
/// <p>The ID of the VPC endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC_ENDPOINT</code>.</p>
/// <p>For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.</p>
/// </note>
pub fn set_vpc_endpoint_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.vpc_endpoint_id = input;
self
}
/// <p>The VPC ID of the VPC in which a server's endpoint will be hosted.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub fn vpc_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_id = Some(input.into());
self
}
/// <p>The VPC ID of the VPC in which a server's endpoint will be hosted.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// </note>
pub fn set_vpc_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_id = input;
self
}
/// Appends an item to `security_group_ids`.
///
/// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
///
/// <p>A list of security groups IDs that are available to attach to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// <p>You can edit the <code>SecurityGroupIds</code> property in the <a href="https://docs.aws.amazon.com/transfer/latest/userguide/API_UpdateServer.html">UpdateServer</a> API only if you are changing the <code>EndpointType</code> from <code>PUBLIC</code> or <code>VPC_ENDPOINT</code> to <code>VPC</code>. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyVpcEndpoint.html">ModifyVpcEndpoint</a> API.</p>
/// </note>
pub fn security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.security_group_ids.unwrap_or_default();
v.push(input.into());
self.security_group_ids = Some(v);
self
}
/// <p>A list of security groups IDs that are available to attach to your server's endpoint.</p> <note>
/// <p>This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.</p>
/// <p>You can edit the <code>SecurityGroupIds</code> property in the <a href="https://docs.aws.amazon.com/transfer/latest/userguide/API_UpdateServer.html">UpdateServer</a> API only if you are changing the <code>EndpointType</code> from <code>PUBLIC</code> or <code>VPC_ENDPOINT</code> to <code>VPC</code>. To change security groups associated with your server's VPC endpoint after creation, use the Amazon EC2 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyVpcEndpoint.html">ModifyVpcEndpoint</a> API.</p>
/// </note>
pub fn set_security_group_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.security_group_ids = input;
self
}
/// Consumes the builder and constructs a [`EndpointDetails`](crate::model::EndpointDetails)
pub fn build(self) -> crate::model::EndpointDetails {
crate::model::EndpointDetails {
address_allocation_ids: self.address_allocation_ids,
subnet_ids: self.subnet_ids,
vpc_endpoint_id: self.vpc_endpoint_id,
vpc_id: self.vpc_id,
security_group_ids: self.security_group_ids,
}
}
}
}
impl EndpointDetails {
/// Creates a new builder-style object to manufacture [`EndpointDetails`](crate::model::EndpointDetails)
pub fn builder() -> crate::model::endpoint_details::Builder {
crate::model::endpoint_details::Builder::default()
}
}
/// <p> The protocol settings that are configured for your server. </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ProtocolDetails {
/// <p> Indicates passive mode, for FTP and FTPS protocols. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. For example: </p>
/// <p> <code> aws transfer update-server --protocol-details PassiveIp=<i>0.0.0.0</i> </code> </p>
/// <p>Replace <code> <i>0.0.0.0</i> </code> in the example above with the actual IP address you want to use.</p> <note>
/// <p> If you change the <code>PassiveIp</code> value, you must stop and then restart your Transfer server for the change to take effect. For details on using Passive IP (PASV) in a NAT environment, see <a href="http://aws.amazon.com/blogs/storage/configuring-your-ftps-server-behind-a-firewall-or-nat-with-aws-transfer-family/">Configuring your FTPS server behind a firewall or NAT with Amazon Web Services Transfer Family</a>. </p>
/// </note>
pub passive_ip: std::option::Option<std::string::String>,
/// <p>A property used with Transfer servers that use the FTPS protocol. TLS Session Resumption provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. <code>TlsSessionResumptionMode</code> determines whether or not the server resumes recent, negotiated sessions through a unique session ID. This property is available during <code>CreateServer</code> and <code>UpdateServer</code> calls. If a <code>TlsSessionResumptionMode</code> value is not specified during CreateServer, it is set to <code>ENFORCED</code> by default.</p>
/// <ul>
/// <li> <p> <code>DISABLED</code>: the server does not process TLS session resumption client requests and creates a new TLS session for each request. </p> </li>
/// <li> <p> <code>ENABLED</code>: the server processes and accepts clients that are performing TLS session resumption. The server doesn't reject client data connections that do not perform the TLS session resumption client processing.</p> </li>
/// <li> <p> <code>ENFORCED</code>: the server processes and accepts clients that are performing TLS session resumption. The server rejects client data connections that do not perform the TLS session resumption client processing. Before you set the value to <code>ENFORCED</code>, test your clients.</p> <note>
/// <p>Not all FTPS clients perform TLS session resumption. So, if you choose to enforce TLS session resumption, you prevent any connections from FTPS clients that don't perform the protocol negotiation. To determine whether or not you can use the <code>ENFORCED</code> value, you need to test your clients.</p>
/// </note> </li>
/// </ul>
pub tls_session_resumption_mode: std::option::Option<crate::model::TlsSessionResumptionMode>,
}
impl ProtocolDetails {
/// <p> Indicates passive mode, for FTP and FTPS protocols. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. For example: </p>
/// <p> <code> aws transfer update-server --protocol-details PassiveIp=<i>0.0.0.0</i> </code> </p>
/// <p>Replace <code> <i>0.0.0.0</i> </code> in the example above with the actual IP address you want to use.</p> <note>
/// <p> If you change the <code>PassiveIp</code> value, you must stop and then restart your Transfer server for the change to take effect. For details on using Passive IP (PASV) in a NAT environment, see <a href="http://aws.amazon.com/blogs/storage/configuring-your-ftps-server-behind-a-firewall-or-nat-with-aws-transfer-family/">Configuring your FTPS server behind a firewall or NAT with Amazon Web Services Transfer Family</a>. </p>
/// </note>
pub fn passive_ip(&self) -> std::option::Option<&str> {
self.passive_ip.as_deref()
}
/// <p>A property used with Transfer servers that use the FTPS protocol. TLS Session Resumption provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. <code>TlsSessionResumptionMode</code> determines whether or not the server resumes recent, negotiated sessions through a unique session ID. This property is available during <code>CreateServer</code> and <code>UpdateServer</code> calls. If a <code>TlsSessionResumptionMode</code> value is not specified during CreateServer, it is set to <code>ENFORCED</code> by default.</p>
/// <ul>
/// <li> <p> <code>DISABLED</code>: the server does not process TLS session resumption client requests and creates a new TLS session for each request. </p> </li>
/// <li> <p> <code>ENABLED</code>: the server processes and accepts clients that are performing TLS session resumption. The server doesn't reject client data connections that do not perform the TLS session resumption client processing.</p> </li>
/// <li> <p> <code>ENFORCED</code>: the server processes and accepts clients that are performing TLS session resumption. The server rejects client data connections that do not perform the TLS session resumption client processing. Before you set the value to <code>ENFORCED</code>, test your clients.</p> <note>
/// <p>Not all FTPS clients perform TLS session resumption. So, if you choose to enforce TLS session resumption, you prevent any connections from FTPS clients that don't perform the protocol negotiation. To determine whether or not you can use the <code>ENFORCED</code> value, you need to test your clients.</p>
/// </note> </li>
/// </ul>
pub fn tls_session_resumption_mode(
&self,
) -> std::option::Option<&crate::model::TlsSessionResumptionMode> {
self.tls_session_resumption_mode.as_ref()
}
}
impl std::fmt::Debug for ProtocolDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ProtocolDetails");
formatter.field("passive_ip", &self.passive_ip);
formatter.field(
"tls_session_resumption_mode",
&self.tls_session_resumption_mode,
);
formatter.finish()
}
}
/// See [`ProtocolDetails`](crate::model::ProtocolDetails)
pub mod protocol_details {
/// A builder for [`ProtocolDetails`](crate::model::ProtocolDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) passive_ip: std::option::Option<std::string::String>,
pub(crate) tls_session_resumption_mode:
std::option::Option<crate::model::TlsSessionResumptionMode>,
}
impl Builder {
/// <p> Indicates passive mode, for FTP and FTPS protocols. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. For example: </p>
/// <p> <code> aws transfer update-server --protocol-details PassiveIp=<i>0.0.0.0</i> </code> </p>
/// <p>Replace <code> <i>0.0.0.0</i> </code> in the example above with the actual IP address you want to use.</p> <note>
/// <p> If you change the <code>PassiveIp</code> value, you must stop and then restart your Transfer server for the change to take effect. For details on using Passive IP (PASV) in a NAT environment, see <a href="http://aws.amazon.com/blogs/storage/configuring-your-ftps-server-behind-a-firewall-or-nat-with-aws-transfer-family/">Configuring your FTPS server behind a firewall or NAT with Amazon Web Services Transfer Family</a>. </p>
/// </note>
pub fn passive_ip(mut self, input: impl Into<std::string::String>) -> Self {
self.passive_ip = Some(input.into());
self
}
/// <p> Indicates passive mode, for FTP and FTPS protocols. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. For example: </p>
/// <p> <code> aws transfer update-server --protocol-details PassiveIp=<i>0.0.0.0</i> </code> </p>
/// <p>Replace <code> <i>0.0.0.0</i> </code> in the example above with the actual IP address you want to use.</p> <note>
/// <p> If you change the <code>PassiveIp</code> value, you must stop and then restart your Transfer server for the change to take effect. For details on using Passive IP (PASV) in a NAT environment, see <a href="http://aws.amazon.com/blogs/storage/configuring-your-ftps-server-behind-a-firewall-or-nat-with-aws-transfer-family/">Configuring your FTPS server behind a firewall or NAT with Amazon Web Services Transfer Family</a>. </p>
/// </note>
pub fn set_passive_ip(mut self, input: std::option::Option<std::string::String>) -> Self {
self.passive_ip = input;
self
}
/// <p>A property used with Transfer servers that use the FTPS protocol. TLS Session Resumption provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. <code>TlsSessionResumptionMode</code> determines whether or not the server resumes recent, negotiated sessions through a unique session ID. This property is available during <code>CreateServer</code> and <code>UpdateServer</code> calls. If a <code>TlsSessionResumptionMode</code> value is not specified during CreateServer, it is set to <code>ENFORCED</code> by default.</p>
/// <ul>
/// <li> <p> <code>DISABLED</code>: the server does not process TLS session resumption client requests and creates a new TLS session for each request. </p> </li>
/// <li> <p> <code>ENABLED</code>: the server processes and accepts clients that are performing TLS session resumption. The server doesn't reject client data connections that do not perform the TLS session resumption client processing.</p> </li>
/// <li> <p> <code>ENFORCED</code>: the server processes and accepts clients that are performing TLS session resumption. The server rejects client data connections that do not perform the TLS session resumption client processing. Before you set the value to <code>ENFORCED</code>, test your clients.</p> <note>
/// <p>Not all FTPS clients perform TLS session resumption. So, if you choose to enforce TLS session resumption, you prevent any connections from FTPS clients that don't perform the protocol negotiation. To determine whether or not you can use the <code>ENFORCED</code> value, you need to test your clients.</p>
/// </note> </li>
/// </ul>
pub fn tls_session_resumption_mode(
mut self,
input: crate::model::TlsSessionResumptionMode,
) -> Self {
self.tls_session_resumption_mode = Some(input);
self
}
/// <p>A property used with Transfer servers that use the FTPS protocol. TLS Session Resumption provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. <code>TlsSessionResumptionMode</code> determines whether or not the server resumes recent, negotiated sessions through a unique session ID. This property is available during <code>CreateServer</code> and <code>UpdateServer</code> calls. If a <code>TlsSessionResumptionMode</code> value is not specified during CreateServer, it is set to <code>ENFORCED</code> by default.</p>
/// <ul>
/// <li> <p> <code>DISABLED</code>: the server does not process TLS session resumption client requests and creates a new TLS session for each request. </p> </li>
/// <li> <p> <code>ENABLED</code>: the server processes and accepts clients that are performing TLS session resumption. The server doesn't reject client data connections that do not perform the TLS session resumption client processing.</p> </li>
/// <li> <p> <code>ENFORCED</code>: the server processes and accepts clients that are performing TLS session resumption. The server rejects client data connections that do not perform the TLS session resumption client processing. Before you set the value to <code>ENFORCED</code>, test your clients.</p> <note>
/// <p>Not all FTPS clients perform TLS session resumption. So, if you choose to enforce TLS session resumption, you prevent any connections from FTPS clients that don't perform the protocol negotiation. To determine whether or not you can use the <code>ENFORCED</code> value, you need to test your clients.</p>
/// </note> </li>
/// </ul>
pub fn set_tls_session_resumption_mode(
mut self,
input: std::option::Option<crate::model::TlsSessionResumptionMode>,
) -> Self {
self.tls_session_resumption_mode = input;
self
}
/// Consumes the builder and constructs a [`ProtocolDetails`](crate::model::ProtocolDetails)
pub fn build(self) -> crate::model::ProtocolDetails {
crate::model::ProtocolDetails {
passive_ip: self.passive_ip,
tls_session_resumption_mode: self.tls_session_resumption_mode,
}
}
}
}
impl ProtocolDetails {
/// Creates a new builder-style object to manufacture [`ProtocolDetails`](crate::model::ProtocolDetails)
pub fn builder() -> crate::model::protocol_details::Builder {
crate::model::protocol_details::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum TlsSessionResumptionMode {
#[allow(missing_docs)] // documentation missing in model
Disabled,
#[allow(missing_docs)] // documentation missing in model
Enabled,
#[allow(missing_docs)] // documentation missing in model
Enforced,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for TlsSessionResumptionMode {
fn from(s: &str) -> Self {
match s {
"DISABLED" => TlsSessionResumptionMode::Disabled,
"ENABLED" => TlsSessionResumptionMode::Enabled,
"ENFORCED" => TlsSessionResumptionMode::Enforced,
other => TlsSessionResumptionMode::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for TlsSessionResumptionMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TlsSessionResumptionMode::from(s))
}
}
impl TlsSessionResumptionMode {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
TlsSessionResumptionMode::Disabled => "DISABLED",
TlsSessionResumptionMode::Enabled => "ENABLED",
TlsSessionResumptionMode::Enforced => "ENFORCED",
TlsSessionResumptionMode::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["DISABLED", "ENABLED", "ENFORCED"]
}
}
impl AsRef<str> for TlsSessionResumptionMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to servers, users, and roles. A tag key can take more than one value. For example, to group servers for accounting purposes, you might create a tag called <code>Group</code> and assign the values <code>Research</code> and <code>Accounting</code> to that group.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Tag {
/// <p>The name assigned to the tag that you create.</p>
pub key: std::option::Option<std::string::String>,
/// <p>Contains one or more values that you assigned to the key name you create.</p>
pub value: std::option::Option<std::string::String>,
}
impl Tag {
/// <p>The name assigned to the tag that you create.</p>
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
/// <p>Contains one or more values that you assigned to the key name you create.</p>
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
impl std::fmt::Debug for Tag {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Tag");
formatter.field("key", &self.key);
formatter.field("value", &self.value);
formatter.finish()
}
}
/// See [`Tag`](crate::model::Tag)
pub mod tag {
/// A builder for [`Tag`](crate::model::Tag)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The name assigned to the tag that you create.</p>
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
/// <p>The name assigned to the tag that you create.</p>
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
/// <p>Contains one or more values that you assigned to the key name you create.</p>
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
/// <p>Contains one or more values that you assigned to the key name you create.</p>
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
/// Consumes the builder and constructs a [`Tag`](crate::model::Tag)
pub fn build(self) -> crate::model::Tag {
crate::model::Tag {
key: self.key,
value: self.value,
}
}
}
}
impl Tag {
/// Creates a new builder-style object to manufacture [`Tag`](crate::model::Tag)
pub fn builder() -> crate::model::tag::Builder {
crate::model::tag::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum CustomStepStatus {
#[allow(missing_docs)] // documentation missing in model
Failure,
#[allow(missing_docs)] // documentation missing in model
Success,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for CustomStepStatus {
fn from(s: &str) -> Self {
match s {
"FAILURE" => CustomStepStatus::Failure,
"SUCCESS" => CustomStepStatus::Success,
other => CustomStepStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for CustomStepStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CustomStepStatus::from(s))
}
}
impl CustomStepStatus {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
CustomStepStatus::Failure => "FAILURE",
CustomStepStatus::Success => "SUCCESS",
CustomStepStatus::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["FAILURE", "SUCCESS"]
}
}
impl AsRef<str> for CustomStepStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Contains the ID, text description, and Amazon Resource Name (ARN) for the workflow.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedWorkflow {
/// <p>A unique identifier for the workflow.</p>
pub workflow_id: std::option::Option<std::string::String>,
/// <p>Specifies the text description for the workflow.</p>
pub description: std::option::Option<std::string::String>,
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub arn: std::option::Option<std::string::String>,
}
impl ListedWorkflow {
/// <p>A unique identifier for the workflow.</p>
pub fn workflow_id(&self) -> std::option::Option<&str> {
self.workflow_id.as_deref()
}
/// <p>Specifies the text description for the workflow.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
}
impl std::fmt::Debug for ListedWorkflow {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedWorkflow");
formatter.field("workflow_id", &self.workflow_id);
formatter.field("description", &self.description);
formatter.field("arn", &self.arn);
formatter.finish()
}
}
/// See [`ListedWorkflow`](crate::model::ListedWorkflow)
pub mod listed_workflow {
/// A builder for [`ListedWorkflow`](crate::model::ListedWorkflow)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) workflow_id: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>A unique identifier for the workflow.</p>
pub fn workflow_id(mut self, input: impl Into<std::string::String>) -> Self {
self.workflow_id = Some(input.into());
self
}
/// <p>A unique identifier for the workflow.</p>
pub fn set_workflow_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.workflow_id = input;
self
}
/// <p>Specifies the text description for the workflow.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>Specifies the text description for the workflow.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// Consumes the builder and constructs a [`ListedWorkflow`](crate::model::ListedWorkflow)
pub fn build(self) -> crate::model::ListedWorkflow {
crate::model::ListedWorkflow {
workflow_id: self.workflow_id,
description: self.description,
arn: self.arn,
}
}
}
}
impl ListedWorkflow {
/// Creates a new builder-style object to manufacture [`ListedWorkflow`](crate::model::ListedWorkflow)
pub fn builder() -> crate::model::listed_workflow::Builder {
crate::model::listed_workflow::Builder::default()
}
}
/// <p>Returns properties of the user that you specify.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedUser {
/// <p>Provides the unique Amazon Resource Name (ARN) for the user that you want to learn about.</p>
pub arn: std::option::Option<std::string::String>,
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub home_directory: std::option::Option<std::string::String>,
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p> <note>
/// <p>The IAM role that controls your users' access to your Amazon S3 bucket for servers with <code>Domain=S3</code>, or your EFS file system for servers with <code>Domain=EFS</code>. </p>
/// <p>The policies attached to this role determine the level of access you want to provide your users when transferring files into and out of your S3 buckets or EFS file systems.</p>
/// </note>
pub role: std::option::Option<std::string::String>,
/// <p>Specifies the number of SSH public keys stored for the user you specified.</p>
pub ssh_public_key_count: std::option::Option<i32>,
/// <p>Specifies the name of the user whose ARN was specified. User names are used for authentication purposes.</p>
pub user_name: std::option::Option<std::string::String>,
}
impl ListedUser {
/// <p>Provides the unique Amazon Resource Name (ARN) for the user that you want to learn about.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(&self) -> std::option::Option<&str> {
self.home_directory.as_deref()
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(&self) -> std::option::Option<&crate::model::HomeDirectoryType> {
self.home_directory_type.as_ref()
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p> <note>
/// <p>The IAM role that controls your users' access to your Amazon S3 bucket for servers with <code>Domain=S3</code>, or your EFS file system for servers with <code>Domain=EFS</code>. </p>
/// <p>The policies attached to this role determine the level of access you want to provide your users when transferring files into and out of your S3 buckets or EFS file systems.</p>
/// </note>
pub fn role(&self) -> std::option::Option<&str> {
self.role.as_deref()
}
/// <p>Specifies the number of SSH public keys stored for the user you specified.</p>
pub fn ssh_public_key_count(&self) -> std::option::Option<i32> {
self.ssh_public_key_count
}
/// <p>Specifies the name of the user whose ARN was specified. User names are used for authentication purposes.</p>
pub fn user_name(&self) -> std::option::Option<&str> {
self.user_name.as_deref()
}
}
impl std::fmt::Debug for ListedUser {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedUser");
formatter.field("arn", &self.arn);
formatter.field("home_directory", &self.home_directory);
formatter.field("home_directory_type", &self.home_directory_type);
formatter.field("role", &self.role);
formatter.field("ssh_public_key_count", &self.ssh_public_key_count);
formatter.field("user_name", &self.user_name);
formatter.finish()
}
}
/// See [`ListedUser`](crate::model::ListedUser)
pub mod listed_user {
/// A builder for [`ListedUser`](crate::model::ListedUser)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) home_directory: std::option::Option<std::string::String>,
pub(crate) home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
pub(crate) role: std::option::Option<std::string::String>,
pub(crate) ssh_public_key_count: std::option::Option<i32>,
pub(crate) user_name: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Provides the unique Amazon Resource Name (ARN) for the user that you want to learn about.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>Provides the unique Amazon Resource Name (ARN) for the user that you want to learn about.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(mut self, input: impl Into<std::string::String>) -> Self {
self.home_directory = Some(input.into());
self
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn set_home_directory(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.home_directory = input;
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(mut self, input: crate::model::HomeDirectoryType) -> Self {
self.home_directory_type = Some(input);
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn set_home_directory_type(
mut self,
input: std::option::Option<crate::model::HomeDirectoryType>,
) -> Self {
self.home_directory_type = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p> <note>
/// <p>The IAM role that controls your users' access to your Amazon S3 bucket for servers with <code>Domain=S3</code>, or your EFS file system for servers with <code>Domain=EFS</code>. </p>
/// <p>The policies attached to this role determine the level of access you want to provide your users when transferring files into and out of your S3 buckets or EFS file systems.</p>
/// </note>
pub fn role(mut self, input: impl Into<std::string::String>) -> Self {
self.role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p> <note>
/// <p>The IAM role that controls your users' access to your Amazon S3 bucket for servers with <code>Domain=S3</code>, or your EFS file system for servers with <code>Domain=EFS</code>. </p>
/// <p>The policies attached to this role determine the level of access you want to provide your users when transferring files into and out of your S3 buckets or EFS file systems.</p>
/// </note>
pub fn set_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role = input;
self
}
/// <p>Specifies the number of SSH public keys stored for the user you specified.</p>
pub fn ssh_public_key_count(mut self, input: i32) -> Self {
self.ssh_public_key_count = Some(input);
self
}
/// <p>Specifies the number of SSH public keys stored for the user you specified.</p>
pub fn set_ssh_public_key_count(mut self, input: std::option::Option<i32>) -> Self {
self.ssh_public_key_count = input;
self
}
/// <p>Specifies the name of the user whose ARN was specified. User names are used for authentication purposes.</p>
pub fn user_name(mut self, input: impl Into<std::string::String>) -> Self {
self.user_name = Some(input.into());
self
}
/// <p>Specifies the name of the user whose ARN was specified. User names are used for authentication purposes.</p>
pub fn set_user_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.user_name = input;
self
}
/// Consumes the builder and constructs a [`ListedUser`](crate::model::ListedUser)
pub fn build(self) -> crate::model::ListedUser {
crate::model::ListedUser {
arn: self.arn,
home_directory: self.home_directory,
home_directory_type: self.home_directory_type,
role: self.role,
ssh_public_key_count: self.ssh_public_key_count,
user_name: self.user_name,
}
}
}
}
impl ListedUser {
/// Creates a new builder-style object to manufacture [`ListedUser`](crate::model::ListedUser)
pub fn builder() -> crate::model::listed_user::Builder {
crate::model::listed_user::Builder::default()
}
}
/// <p>Returns properties of a file transfer protocol-enabled server that was specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedServer {
/// <p>Specifies the unique Amazon Resource Name (ARN) for a server to be listed.</p>
pub arn: std::option::Option<std::string::String>,
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub domain: std::option::Option<crate::model::Domain>,
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub identity_provider_type: std::option::Option<crate::model::IdentityProviderType>,
/// <p>Specifies the type of VPC endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub endpoint_type: std::option::Option<crate::model::EndpointType>,
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub logging_role: std::option::Option<std::string::String>,
/// <p>Specifies the unique system assigned identifier for the servers that were listed.</p>
pub server_id: std::option::Option<std::string::String>,
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub state: std::option::Option<crate::model::State>,
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub user_count: std::option::Option<i32>,
}
impl ListedServer {
/// <p>Specifies the unique Amazon Resource Name (ARN) for a server to be listed.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub fn domain(&self) -> std::option::Option<&crate::model::Domain> {
self.domain.as_ref()
}
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub fn identity_provider_type(
&self,
) -> std::option::Option<&crate::model::IdentityProviderType> {
self.identity_provider_type.as_ref()
}
/// <p>Specifies the type of VPC endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub fn endpoint_type(&self) -> std::option::Option<&crate::model::EndpointType> {
self.endpoint_type.as_ref()
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn logging_role(&self) -> std::option::Option<&str> {
self.logging_role.as_deref()
}
/// <p>Specifies the unique system assigned identifier for the servers that were listed.</p>
pub fn server_id(&self) -> std::option::Option<&str> {
self.server_id.as_deref()
}
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub fn state(&self) -> std::option::Option<&crate::model::State> {
self.state.as_ref()
}
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub fn user_count(&self) -> std::option::Option<i32> {
self.user_count
}
}
impl std::fmt::Debug for ListedServer {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedServer");
formatter.field("arn", &self.arn);
formatter.field("domain", &self.domain);
formatter.field("identity_provider_type", &self.identity_provider_type);
formatter.field("endpoint_type", &self.endpoint_type);
formatter.field("logging_role", &self.logging_role);
formatter.field("server_id", &self.server_id);
formatter.field("state", &self.state);
formatter.field("user_count", &self.user_count);
formatter.finish()
}
}
/// See [`ListedServer`](crate::model::ListedServer)
pub mod listed_server {
/// A builder for [`ListedServer`](crate::model::ListedServer)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) domain: std::option::Option<crate::model::Domain>,
pub(crate) identity_provider_type: std::option::Option<crate::model::IdentityProviderType>,
pub(crate) endpoint_type: std::option::Option<crate::model::EndpointType>,
pub(crate) logging_role: std::option::Option<std::string::String>,
pub(crate) server_id: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::State>,
pub(crate) user_count: std::option::Option<i32>,
}
impl Builder {
/// <p>Specifies the unique Amazon Resource Name (ARN) for a server to be listed.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>Specifies the unique Amazon Resource Name (ARN) for a server to be listed.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub fn domain(mut self, input: crate::model::Domain) -> Self {
self.domain = Some(input);
self
}
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub fn set_domain(mut self, input: std::option::Option<crate::model::Domain>) -> Self {
self.domain = input;
self
}
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub fn identity_provider_type(mut self, input: crate::model::IdentityProviderType) -> Self {
self.identity_provider_type = Some(input);
self
}
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub fn set_identity_provider_type(
mut self,
input: std::option::Option<crate::model::IdentityProviderType>,
) -> Self {
self.identity_provider_type = input;
self
}
/// <p>Specifies the type of VPC endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub fn endpoint_type(mut self, input: crate::model::EndpointType) -> Self {
self.endpoint_type = Some(input);
self
}
/// <p>Specifies the type of VPC endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub fn set_endpoint_type(
mut self,
input: std::option::Option<crate::model::EndpointType>,
) -> Self {
self.endpoint_type = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn logging_role(mut self, input: impl Into<std::string::String>) -> Self {
self.logging_role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn set_logging_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.logging_role = input;
self
}
/// <p>Specifies the unique system assigned identifier for the servers that were listed.</p>
pub fn server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.server_id = Some(input.into());
self
}
/// <p>Specifies the unique system assigned identifier for the servers that were listed.</p>
pub fn set_server_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_id = input;
self
}
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub fn state(mut self, input: crate::model::State) -> Self {
self.state = Some(input);
self
}
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub fn set_state(mut self, input: std::option::Option<crate::model::State>) -> Self {
self.state = input;
self
}
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub fn user_count(mut self, input: i32) -> Self {
self.user_count = Some(input);
self
}
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub fn set_user_count(mut self, input: std::option::Option<i32>) -> Self {
self.user_count = input;
self
}
/// Consumes the builder and constructs a [`ListedServer`](crate::model::ListedServer)
pub fn build(self) -> crate::model::ListedServer {
crate::model::ListedServer {
arn: self.arn,
domain: self.domain,
identity_provider_type: self.identity_provider_type,
endpoint_type: self.endpoint_type,
logging_role: self.logging_role,
server_id: self.server_id,
state: self.state,
user_count: self.user_count,
}
}
}
}
impl ListedServer {
/// Creates a new builder-style object to manufacture [`ListedServer`](crate::model::ListedServer)
pub fn builder() -> crate::model::listed_server::Builder {
crate::model::listed_server::Builder::default()
}
}
/// <p>Describes the condition of a file transfer protocol-enabled server with respect to its
/// ability to perform file operations. There are six possible states: <code>OFFLINE</code>,
/// <code>ONLINE</code>, <code>STARTING</code>, <code>STOPPING</code>,
/// <code>START_FAILED</code>, and <code>STOP_FAILED</code>.</p>
///
/// <p>
/// <code>OFFLINE</code> indicates that the server exists, but that it is not available for
/// file operations. <code>ONLINE</code> indicates that the server is available to perform file
/// operations. <code>STARTING</code> indicates that the server's was instantiated, but the
/// server is not yet available to perform file operations. Under normal conditions, it can take a
/// couple of minutes for the server to be completely operational. Both <code>START_FAILED</code>
/// and <code>STOP_FAILED</code> are error conditions.</p>
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum State {
#[allow(missing_docs)] // documentation missing in model
Offline,
#[allow(missing_docs)] // documentation missing in model
Online,
#[allow(missing_docs)] // documentation missing in model
Starting,
#[allow(missing_docs)] // documentation missing in model
StartFailed,
#[allow(missing_docs)] // documentation missing in model
Stopping,
#[allow(missing_docs)] // documentation missing in model
StopFailed,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for State {
fn from(s: &str) -> Self {
match s {
"OFFLINE" => State::Offline,
"ONLINE" => State::Online,
"STARTING" => State::Starting,
"START_FAILED" => State::StartFailed,
"STOPPING" => State::Stopping,
"STOP_FAILED" => State::StopFailed,
other => State::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for State {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(State::from(s))
}
}
impl State {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
State::Offline => "OFFLINE",
State::Online => "ONLINE",
State::Starting => "STARTING",
State::StartFailed => "START_FAILED",
State::Stopping => "STOPPING",
State::StopFailed => "STOP_FAILED",
State::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&[
"OFFLINE",
"ONLINE",
"STARTING",
"START_FAILED",
"STOPPING",
"STOP_FAILED",
]
}
}
impl AsRef<str> for State {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Returns information related to the type of user authentication that is in use for a file
/// transfer protocol-enabled server's users. For <code>AWS_DIRECTORY_SERVICE</code> or <code>SERVICE_MANAGED</code>
/// authentication, the Secure Shell (SSH) public keys are stored with a user on the server
/// instance. For <code>API_GATEWAY</code> authentication, your custom authentication method is
/// implemented by using an API call. The server can have only one method of
/// authentication.</p>
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum IdentityProviderType {
#[allow(missing_docs)] // documentation missing in model
ApiGateway,
#[allow(missing_docs)] // documentation missing in model
AwsDirectoryService,
#[allow(missing_docs)] // documentation missing in model
AwsLambda,
#[allow(missing_docs)] // documentation missing in model
ServiceManaged,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for IdentityProviderType {
fn from(s: &str) -> Self {
match s {
"API_GATEWAY" => IdentityProviderType::ApiGateway,
"AWS_DIRECTORY_SERVICE" => IdentityProviderType::AwsDirectoryService,
"AWS_LAMBDA" => IdentityProviderType::AwsLambda,
"SERVICE_MANAGED" => IdentityProviderType::ServiceManaged,
other => IdentityProviderType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for IdentityProviderType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(IdentityProviderType::from(s))
}
}
impl IdentityProviderType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
IdentityProviderType::ApiGateway => "API_GATEWAY",
IdentityProviderType::AwsDirectoryService => "AWS_DIRECTORY_SERVICE",
IdentityProviderType::AwsLambda => "AWS_LAMBDA",
IdentityProviderType::ServiceManaged => "SERVICE_MANAGED",
IdentityProviderType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&[
"API_GATEWAY",
"AWS_DIRECTORY_SERVICE",
"AWS_LAMBDA",
"SERVICE_MANAGED",
]
}
}
impl AsRef<str> for IdentityProviderType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Domain {
#[allow(missing_docs)] // documentation missing in model
Efs,
#[allow(missing_docs)] // documentation missing in model
S3,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for Domain {
fn from(s: &str) -> Self {
match s {
"EFS" => Domain::Efs,
"S3" => Domain::S3,
other => Domain::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for Domain {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Domain::from(s))
}
}
impl Domain {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
Domain::Efs => "EFS",
Domain::S3 => "S3",
Domain::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["EFS", "S3"]
}
}
impl AsRef<str> for Domain {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Returns properties of the execution that is specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedExecution {
/// <p>A unique identifier for the execution of a workflow.</p>
pub execution_id: std::option::Option<std::string::String>,
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub initial_file_location: std::option::Option<crate::model::FileLocation>,
/// <p>A container object for the session details associated with a workflow.</p>
pub service_metadata: std::option::Option<crate::model::ServiceMetadata>,
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception.</p>
pub status: std::option::Option<crate::model::ExecutionStatus>,
}
impl ListedExecution {
/// <p>A unique identifier for the execution of a workflow.</p>
pub fn execution_id(&self) -> std::option::Option<&str> {
self.execution_id.as_deref()
}
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub fn initial_file_location(&self) -> std::option::Option<&crate::model::FileLocation> {
self.initial_file_location.as_ref()
}
/// <p>A container object for the session details associated with a workflow.</p>
pub fn service_metadata(&self) -> std::option::Option<&crate::model::ServiceMetadata> {
self.service_metadata.as_ref()
}
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception.</p>
pub fn status(&self) -> std::option::Option<&crate::model::ExecutionStatus> {
self.status.as_ref()
}
}
impl std::fmt::Debug for ListedExecution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedExecution");
formatter.field("execution_id", &self.execution_id);
formatter.field("initial_file_location", &self.initial_file_location);
formatter.field("service_metadata", &self.service_metadata);
formatter.field("status", &self.status);
formatter.finish()
}
}
/// See [`ListedExecution`](crate::model::ListedExecution)
pub mod listed_execution {
/// A builder for [`ListedExecution`](crate::model::ListedExecution)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution_id: std::option::Option<std::string::String>,
pub(crate) initial_file_location: std::option::Option<crate::model::FileLocation>,
pub(crate) service_metadata: std::option::Option<crate::model::ServiceMetadata>,
pub(crate) status: std::option::Option<crate::model::ExecutionStatus>,
}
impl Builder {
/// <p>A unique identifier for the execution of a workflow.</p>
pub fn execution_id(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_id = Some(input.into());
self
}
/// <p>A unique identifier for the execution of a workflow.</p>
pub fn set_execution_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.execution_id = input;
self
}
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub fn initial_file_location(mut self, input: crate::model::FileLocation) -> Self {
self.initial_file_location = Some(input);
self
}
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub fn set_initial_file_location(
mut self,
input: std::option::Option<crate::model::FileLocation>,
) -> Self {
self.initial_file_location = input;
self
}
/// <p>A container object for the session details associated with a workflow.</p>
pub fn service_metadata(mut self, input: crate::model::ServiceMetadata) -> Self {
self.service_metadata = Some(input);
self
}
/// <p>A container object for the session details associated with a workflow.</p>
pub fn set_service_metadata(
mut self,
input: std::option::Option<crate::model::ServiceMetadata>,
) -> Self {
self.service_metadata = input;
self
}
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception.</p>
pub fn status(mut self, input: crate::model::ExecutionStatus) -> Self {
self.status = Some(input);
self
}
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ExecutionStatus>,
) -> Self {
self.status = input;
self
}
/// Consumes the builder and constructs a [`ListedExecution`](crate::model::ListedExecution)
pub fn build(self) -> crate::model::ListedExecution {
crate::model::ListedExecution {
execution_id: self.execution_id,
initial_file_location: self.initial_file_location,
service_metadata: self.service_metadata,
status: self.status,
}
}
}
}
impl ListedExecution {
/// Creates a new builder-style object to manufacture [`ListedExecution`](crate::model::ListedExecution)
pub fn builder() -> crate::model::listed_execution::Builder {
crate::model::listed_execution::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ExecutionStatus {
#[allow(missing_docs)] // documentation missing in model
Completed,
#[allow(missing_docs)] // documentation missing in model
Exception,
#[allow(missing_docs)] // documentation missing in model
HandlingException,
#[allow(missing_docs)] // documentation missing in model
InProgress,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for ExecutionStatus {
fn from(s: &str) -> Self {
match s {
"COMPLETED" => ExecutionStatus::Completed,
"EXCEPTION" => ExecutionStatus::Exception,
"HANDLING_EXCEPTION" => ExecutionStatus::HandlingException,
"IN_PROGRESS" => ExecutionStatus::InProgress,
other => ExecutionStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ExecutionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ExecutionStatus::from(s))
}
}
impl ExecutionStatus {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
ExecutionStatus::Completed => "COMPLETED",
ExecutionStatus::Exception => "EXCEPTION",
ExecutionStatus::HandlingException => "HANDLING_EXCEPTION",
ExecutionStatus::InProgress => "IN_PROGRESS",
ExecutionStatus::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&[
"COMPLETED",
"EXCEPTION",
"HANDLING_EXCEPTION",
"IN_PROGRESS",
]
}
}
impl AsRef<str> for ExecutionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>A container object for the session details associated with a workflow.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceMetadata {
/// <p>The Server ID (<code>ServerId</code>), Session ID (<code>SessionId</code>) and user (<code>UserName</code>) make up the <code>UserDetails</code>.</p>
pub user_details: std::option::Option<crate::model::UserDetails>,
}
impl ServiceMetadata {
/// <p>The Server ID (<code>ServerId</code>), Session ID (<code>SessionId</code>) and user (<code>UserName</code>) make up the <code>UserDetails</code>.</p>
pub fn user_details(&self) -> std::option::Option<&crate::model::UserDetails> {
self.user_details.as_ref()
}
}
impl std::fmt::Debug for ServiceMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceMetadata");
formatter.field("user_details", &self.user_details);
formatter.finish()
}
}
/// See [`ServiceMetadata`](crate::model::ServiceMetadata)
pub mod service_metadata {
/// A builder for [`ServiceMetadata`](crate::model::ServiceMetadata)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) user_details: std::option::Option<crate::model::UserDetails>,
}
impl Builder {
/// <p>The Server ID (<code>ServerId</code>), Session ID (<code>SessionId</code>) and user (<code>UserName</code>) make up the <code>UserDetails</code>.</p>
pub fn user_details(mut self, input: crate::model::UserDetails) -> Self {
self.user_details = Some(input);
self
}
/// <p>The Server ID (<code>ServerId</code>), Session ID (<code>SessionId</code>) and user (<code>UserName</code>) make up the <code>UserDetails</code>.</p>
pub fn set_user_details(
mut self,
input: std::option::Option<crate::model::UserDetails>,
) -> Self {
self.user_details = input;
self
}
/// Consumes the builder and constructs a [`ServiceMetadata`](crate::model::ServiceMetadata)
pub fn build(self) -> crate::model::ServiceMetadata {
crate::model::ServiceMetadata {
user_details: self.user_details,
}
}
}
}
impl ServiceMetadata {
/// Creates a new builder-style object to manufacture [`ServiceMetadata`](crate::model::ServiceMetadata)
pub fn builder() -> crate::model::service_metadata::Builder {
crate::model::service_metadata::Builder::default()
}
}
/// <p>Specifies the user name, server ID, and session ID for a workflow.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UserDetails {
/// <p>A unique string that identifies a user account associated with a server.</p>
pub user_name: std::option::Option<std::string::String>,
/// <p>The system-assigned unique identifier for a Transfer server instance. </p>
pub server_id: std::option::Option<std::string::String>,
/// <p>The system-assigned unique identifier for a session that corresponds to the workflow.</p>
pub session_id: std::option::Option<std::string::String>,
}
impl UserDetails {
/// <p>A unique string that identifies a user account associated with a server.</p>
pub fn user_name(&self) -> std::option::Option<&str> {
self.user_name.as_deref()
}
/// <p>The system-assigned unique identifier for a Transfer server instance. </p>
pub fn server_id(&self) -> std::option::Option<&str> {
self.server_id.as_deref()
}
/// <p>The system-assigned unique identifier for a session that corresponds to the workflow.</p>
pub fn session_id(&self) -> std::option::Option<&str> {
self.session_id.as_deref()
}
}
impl std::fmt::Debug for UserDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UserDetails");
formatter.field("user_name", &self.user_name);
formatter.field("server_id", &self.server_id);
formatter.field("session_id", &self.session_id);
formatter.finish()
}
}
/// See [`UserDetails`](crate::model::UserDetails)
pub mod user_details {
/// A builder for [`UserDetails`](crate::model::UserDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) user_name: std::option::Option<std::string::String>,
pub(crate) server_id: std::option::Option<std::string::String>,
pub(crate) session_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>A unique string that identifies a user account associated with a server.</p>
pub fn user_name(mut self, input: impl Into<std::string::String>) -> Self {
self.user_name = Some(input.into());
self
}
/// <p>A unique string that identifies a user account associated with a server.</p>
pub fn set_user_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.user_name = input;
self
}
/// <p>The system-assigned unique identifier for a Transfer server instance. </p>
pub fn server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.server_id = Some(input.into());
self
}
/// <p>The system-assigned unique identifier for a Transfer server instance. </p>
pub fn set_server_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_id = input;
self
}
/// <p>The system-assigned unique identifier for a session that corresponds to the workflow.</p>
pub fn session_id(mut self, input: impl Into<std::string::String>) -> Self {
self.session_id = Some(input.into());
self
}
/// <p>The system-assigned unique identifier for a session that corresponds to the workflow.</p>
pub fn set_session_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.session_id = input;
self
}
/// Consumes the builder and constructs a [`UserDetails`](crate::model::UserDetails)
pub fn build(self) -> crate::model::UserDetails {
crate::model::UserDetails {
user_name: self.user_name,
server_id: self.server_id,
session_id: self.session_id,
}
}
}
}
impl UserDetails {
/// Creates a new builder-style object to manufacture [`UserDetails`](crate::model::UserDetails)
pub fn builder() -> crate::model::user_details::Builder {
crate::model::user_details::Builder::default()
}
}
/// <p>Specifies the Amazon S3 or EFS file details to be used in the step.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FileLocation {
/// <p>Specifies the S3 details for the file being used, such as bucket, Etag, and so forth.</p>
pub s3_file_location: std::option::Option<crate::model::S3FileLocation>,
/// <p>Specifies the Amazon EFS ID and the path for the file being used.</p>
pub efs_file_location: std::option::Option<crate::model::EfsFileLocation>,
}
impl FileLocation {
/// <p>Specifies the S3 details for the file being used, such as bucket, Etag, and so forth.</p>
pub fn s3_file_location(&self) -> std::option::Option<&crate::model::S3FileLocation> {
self.s3_file_location.as_ref()
}
/// <p>Specifies the Amazon EFS ID and the path for the file being used.</p>
pub fn efs_file_location(&self) -> std::option::Option<&crate::model::EfsFileLocation> {
self.efs_file_location.as_ref()
}
}
impl std::fmt::Debug for FileLocation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FileLocation");
formatter.field("s3_file_location", &self.s3_file_location);
formatter.field("efs_file_location", &self.efs_file_location);
formatter.finish()
}
}
/// See [`FileLocation`](crate::model::FileLocation)
pub mod file_location {
/// A builder for [`FileLocation`](crate::model::FileLocation)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) s3_file_location: std::option::Option<crate::model::S3FileLocation>,
pub(crate) efs_file_location: std::option::Option<crate::model::EfsFileLocation>,
}
impl Builder {
/// <p>Specifies the S3 details for the file being used, such as bucket, Etag, and so forth.</p>
pub fn s3_file_location(mut self, input: crate::model::S3FileLocation) -> Self {
self.s3_file_location = Some(input);
self
}
/// <p>Specifies the S3 details for the file being used, such as bucket, Etag, and so forth.</p>
pub fn set_s3_file_location(
mut self,
input: std::option::Option<crate::model::S3FileLocation>,
) -> Self {
self.s3_file_location = input;
self
}
/// <p>Specifies the Amazon EFS ID and the path for the file being used.</p>
pub fn efs_file_location(mut self, input: crate::model::EfsFileLocation) -> Self {
self.efs_file_location = Some(input);
self
}
/// <p>Specifies the Amazon EFS ID and the path for the file being used.</p>
pub fn set_efs_file_location(
mut self,
input: std::option::Option<crate::model::EfsFileLocation>,
) -> Self {
self.efs_file_location = input;
self
}
/// Consumes the builder and constructs a [`FileLocation`](crate::model::FileLocation)
pub fn build(self) -> crate::model::FileLocation {
crate::model::FileLocation {
s3_file_location: self.s3_file_location,
efs_file_location: self.efs_file_location,
}
}
}
}
impl FileLocation {
/// Creates a new builder-style object to manufacture [`FileLocation`](crate::model::FileLocation)
pub fn builder() -> crate::model::file_location::Builder {
crate::model::file_location::Builder::default()
}
}
/// <p>Reserved for future use.</p>
/// <p> </p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EfsFileLocation {
/// <p>The ID of the file system, assigned by Amazon EFS.</p>
pub file_system_id: std::option::Option<std::string::String>,
/// <p>The pathname for the folder being used by a workflow.</p>
pub path: std::option::Option<std::string::String>,
}
impl EfsFileLocation {
/// <p>The ID of the file system, assigned by Amazon EFS.</p>
pub fn file_system_id(&self) -> std::option::Option<&str> {
self.file_system_id.as_deref()
}
/// <p>The pathname for the folder being used by a workflow.</p>
pub fn path(&self) -> std::option::Option<&str> {
self.path.as_deref()
}
}
impl std::fmt::Debug for EfsFileLocation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EfsFileLocation");
formatter.field("file_system_id", &self.file_system_id);
formatter.field("path", &self.path);
formatter.finish()
}
}
/// See [`EfsFileLocation`](crate::model::EfsFileLocation)
pub mod efs_file_location {
/// A builder for [`EfsFileLocation`](crate::model::EfsFileLocation)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) file_system_id: std::option::Option<std::string::String>,
pub(crate) path: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The ID of the file system, assigned by Amazon EFS.</p>
pub fn file_system_id(mut self, input: impl Into<std::string::String>) -> Self {
self.file_system_id = Some(input.into());
self
}
/// <p>The ID of the file system, assigned by Amazon EFS.</p>
pub fn set_file_system_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.file_system_id = input;
self
}
/// <p>The pathname for the folder being used by a workflow.</p>
pub fn path(mut self, input: impl Into<std::string::String>) -> Self {
self.path = Some(input.into());
self
}
/// <p>The pathname for the folder being used by a workflow.</p>
pub fn set_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.path = input;
self
}
/// Consumes the builder and constructs a [`EfsFileLocation`](crate::model::EfsFileLocation)
pub fn build(self) -> crate::model::EfsFileLocation {
crate::model::EfsFileLocation {
file_system_id: self.file_system_id,
path: self.path,
}
}
}
}
impl EfsFileLocation {
/// Creates a new builder-style object to manufacture [`EfsFileLocation`](crate::model::EfsFileLocation)
pub fn builder() -> crate::model::efs_file_location::Builder {
crate::model::efs_file_location::Builder::default()
}
}
/// <p>Specifies the details for the file location for the file being used in the workflow. Only applicable if you are using S3 storage.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3FileLocation {
/// <p>Specifies the S3 bucket that contains the file being used.</p>
pub bucket: std::option::Option<std::string::String>,
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub key: std::option::Option<std::string::String>,
/// <p>Specifies the file version.</p>
pub version_id: std::option::Option<std::string::String>,
/// <p>The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata.</p>
pub etag: std::option::Option<std::string::String>,
}
impl S3FileLocation {
/// <p>Specifies the S3 bucket that contains the file being used.</p>
pub fn bucket(&self) -> std::option::Option<&str> {
self.bucket.as_deref()
}
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
/// <p>Specifies the file version.</p>
pub fn version_id(&self) -> std::option::Option<&str> {
self.version_id.as_deref()
}
/// <p>The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata.</p>
pub fn etag(&self) -> std::option::Option<&str> {
self.etag.as_deref()
}
}
impl std::fmt::Debug for S3FileLocation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3FileLocation");
formatter.field("bucket", &self.bucket);
formatter.field("key", &self.key);
formatter.field("version_id", &self.version_id);
formatter.field("etag", &self.etag);
formatter.finish()
}
}
/// See [`S3FileLocation`](crate::model::S3FileLocation)
pub mod s3_file_location {
/// A builder for [`S3FileLocation`](crate::model::S3FileLocation)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket: std::option::Option<std::string::String>,
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) version_id: std::option::Option<std::string::String>,
pub(crate) etag: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Specifies the S3 bucket that contains the file being used.</p>
pub fn bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket = Some(input.into());
self
}
/// <p>Specifies the S3 bucket that contains the file being used.</p>
pub fn set_bucket(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket = input;
self
}
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
/// <p>Specifies the file version.</p>
pub fn version_id(mut self, input: impl Into<std::string::String>) -> Self {
self.version_id = Some(input.into());
self
}
/// <p>Specifies the file version.</p>
pub fn set_version_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.version_id = input;
self
}
/// <p>The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata.</p>
pub fn etag(mut self, input: impl Into<std::string::String>) -> Self {
self.etag = Some(input.into());
self
}
/// <p>The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata.</p>
pub fn set_etag(mut self, input: std::option::Option<std::string::String>) -> Self {
self.etag = input;
self
}
/// Consumes the builder and constructs a [`S3FileLocation`](crate::model::S3FileLocation)
pub fn build(self) -> crate::model::S3FileLocation {
crate::model::S3FileLocation {
bucket: self.bucket,
key: self.key,
version_id: self.version_id,
etag: self.etag,
}
}
}
}
impl S3FileLocation {
/// Creates a new builder-style object to manufacture [`S3FileLocation`](crate::model::S3FileLocation)
pub fn builder() -> crate::model::s3_file_location::Builder {
crate::model::s3_file_location::Builder::default()
}
}
/// <p>Lists the properties for one or more specified associated accesses.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedAccess {
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub home_directory: std::option::Option<std::string::String>,
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub role: std::option::Option<std::string::String>,
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub external_id: std::option::Option<std::string::String>,
}
impl ListedAccess {
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(&self) -> std::option::Option<&str> {
self.home_directory.as_deref()
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(&self) -> std::option::Option<&crate::model::HomeDirectoryType> {
self.home_directory_type.as_ref()
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn role(&self) -> std::option::Option<&str> {
self.role.as_deref()
}
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub fn external_id(&self) -> std::option::Option<&str> {
self.external_id.as_deref()
}
}
impl std::fmt::Debug for ListedAccess {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedAccess");
formatter.field("home_directory", &self.home_directory);
formatter.field("home_directory_type", &self.home_directory_type);
formatter.field("role", &self.role);
formatter.field("external_id", &self.external_id);
formatter.finish()
}
}
/// See [`ListedAccess`](crate::model::ListedAccess)
pub mod listed_access {
/// A builder for [`ListedAccess`](crate::model::ListedAccess)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) home_directory: std::option::Option<std::string::String>,
pub(crate) home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
pub(crate) role: std::option::Option<std::string::String>,
pub(crate) external_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(mut self, input: impl Into<std::string::String>) -> Self {
self.home_directory = Some(input.into());
self
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn set_home_directory(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.home_directory = input;
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(mut self, input: crate::model::HomeDirectoryType) -> Self {
self.home_directory_type = Some(input);
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn set_home_directory_type(
mut self,
input: std::option::Option<crate::model::HomeDirectoryType>,
) -> Self {
self.home_directory_type = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn role(mut self, input: impl Into<std::string::String>) -> Self {
self.role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn set_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role = input;
self
}
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub fn external_id(mut self, input: impl Into<std::string::String>) -> Self {
self.external_id = Some(input.into());
self
}
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub fn set_external_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.external_id = input;
self
}
/// Consumes the builder and constructs a [`ListedAccess`](crate::model::ListedAccess)
pub fn build(self) -> crate::model::ListedAccess {
crate::model::ListedAccess {
home_directory: self.home_directory,
home_directory_type: self.home_directory_type,
role: self.role,
external_id: self.external_id,
}
}
}
}
impl ListedAccess {
/// Creates a new builder-style object to manufacture [`ListedAccess`](crate::model::ListedAccess)
pub fn builder() -> crate::model::listed_access::Builder {
crate::model::listed_access::Builder::default()
}
}
/// <p>Describes the properties of the specified workflow</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedWorkflow {
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub arn: std::option::Option<std::string::String>,
/// <p>Specifies the text description for the workflow.</p>
pub description: std::option::Option<std::string::String>,
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub steps: std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub on_exception_steps: std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
/// <p>A unique identifier for the workflow.</p>
pub workflow_id: std::option::Option<std::string::String>,
/// <p>Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.</p>
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl DescribedWorkflow {
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>Specifies the text description for the workflow.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub fn steps(&self) -> std::option::Option<&[crate::model::WorkflowStep]> {
self.steps.as_deref()
}
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub fn on_exception_steps(&self) -> std::option::Option<&[crate::model::WorkflowStep]> {
self.on_exception_steps.as_deref()
}
/// <p>A unique identifier for the workflow.</p>
pub fn workflow_id(&self) -> std::option::Option<&str> {
self.workflow_id.as_deref()
}
/// <p>Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for DescribedWorkflow {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedWorkflow");
formatter.field("arn", &self.arn);
formatter.field("description", &self.description);
formatter.field("steps", &self.steps);
formatter.field("on_exception_steps", &self.on_exception_steps);
formatter.field("workflow_id", &self.workflow_id);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`DescribedWorkflow`](crate::model::DescribedWorkflow)
pub mod described_workflow {
/// A builder for [`DescribedWorkflow`](crate::model::DescribedWorkflow)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) steps: std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
pub(crate) on_exception_steps:
std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
pub(crate) workflow_id: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>Specifies the text description for the workflow.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>Specifies the text description for the workflow.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// Appends an item to `steps`.
///
/// To override the contents of this collection use [`set_steps`](Self::set_steps).
///
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub fn steps(mut self, input: crate::model::WorkflowStep) -> Self {
let mut v = self.steps.unwrap_or_default();
v.push(input);
self.steps = Some(v);
self
}
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub fn set_steps(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
) -> Self {
self.steps = input;
self
}
/// Appends an item to `on_exception_steps`.
///
/// To override the contents of this collection use [`set_on_exception_steps`](Self::set_on_exception_steps).
///
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub fn on_exception_steps(mut self, input: crate::model::WorkflowStep) -> Self {
let mut v = self.on_exception_steps.unwrap_or_default();
v.push(input);
self.on_exception_steps = Some(v);
self
}
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub fn set_on_exception_steps(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
) -> Self {
self.on_exception_steps = input;
self
}
/// <p>A unique identifier for the workflow.</p>
pub fn workflow_id(mut self, input: impl Into<std::string::String>) -> Self {
self.workflow_id = Some(input.into());
self
}
/// <p>A unique identifier for the workflow.</p>
pub fn set_workflow_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.workflow_id = input;
self
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
/// Consumes the builder and constructs a [`DescribedWorkflow`](crate::model::DescribedWorkflow)
pub fn build(self) -> crate::model::DescribedWorkflow {
crate::model::DescribedWorkflow {
arn: self.arn,
description: self.description,
steps: self.steps,
on_exception_steps: self.on_exception_steps,
workflow_id: self.workflow_id,
tags: self.tags,
}
}
}
}
impl DescribedWorkflow {
/// Creates a new builder-style object to manufacture [`DescribedWorkflow`](crate::model::DescribedWorkflow)
pub fn builder() -> crate::model::described_workflow::Builder {
crate::model::described_workflow::Builder::default()
}
}
/// <p>The basic building block of a workflow.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct WorkflowStep {
/// <p> Currently, the following step types are supported. </p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub r#type: std::option::Option<crate::model::WorkflowStepType>,
/// <p>Details for a step that performs a file copy.</p>
/// <p> Consists of the following values: </p>
/// <ul>
/// <li> <p>A description</p> </li>
/// <li> <p>An S3 location for the destination of the file copy.</p> </li>
/// <li> <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p> </li>
/// </ul>
pub copy_step_details: std::option::Option<crate::model::CopyStepDetails>,
/// <p>Details for a step that invokes a lambda function.</p>
/// <p> Consists of the lambda function name, target, and timeout (in seconds). </p>
pub custom_step_details: std::option::Option<crate::model::CustomStepDetails>,
/// <p>Details for a step that deletes the file.</p>
pub delete_step_details: std::option::Option<crate::model::DeleteStepDetails>,
/// <p>Details for a step that creates one or more tags.</p>
/// <p>You specify one or more tags: each tag contains a key/value pair.</p>
pub tag_step_details: std::option::Option<crate::model::TagStepDetails>,
}
impl WorkflowStep {
/// <p> Currently, the following step types are supported. </p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub fn r#type(&self) -> std::option::Option<&crate::model::WorkflowStepType> {
self.r#type.as_ref()
}
/// <p>Details for a step that performs a file copy.</p>
/// <p> Consists of the following values: </p>
/// <ul>
/// <li> <p>A description</p> </li>
/// <li> <p>An S3 location for the destination of the file copy.</p> </li>
/// <li> <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p> </li>
/// </ul>
pub fn copy_step_details(&self) -> std::option::Option<&crate::model::CopyStepDetails> {
self.copy_step_details.as_ref()
}
/// <p>Details for a step that invokes a lambda function.</p>
/// <p> Consists of the lambda function name, target, and timeout (in seconds). </p>
pub fn custom_step_details(&self) -> std::option::Option<&crate::model::CustomStepDetails> {
self.custom_step_details.as_ref()
}
/// <p>Details for a step that deletes the file.</p>
pub fn delete_step_details(&self) -> std::option::Option<&crate::model::DeleteStepDetails> {
self.delete_step_details.as_ref()
}
/// <p>Details for a step that creates one or more tags.</p>
/// <p>You specify one or more tags: each tag contains a key/value pair.</p>
pub fn tag_step_details(&self) -> std::option::Option<&crate::model::TagStepDetails> {
self.tag_step_details.as_ref()
}
}
impl std::fmt::Debug for WorkflowStep {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("WorkflowStep");
formatter.field("r#type", &self.r#type);
formatter.field("copy_step_details", &self.copy_step_details);
formatter.field("custom_step_details", &self.custom_step_details);
formatter.field("delete_step_details", &self.delete_step_details);
formatter.field("tag_step_details", &self.tag_step_details);
formatter.finish()
}
}
/// See [`WorkflowStep`](crate::model::WorkflowStep)
pub mod workflow_step {
/// A builder for [`WorkflowStep`](crate::model::WorkflowStep)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) r#type: std::option::Option<crate::model::WorkflowStepType>,
pub(crate) copy_step_details: std::option::Option<crate::model::CopyStepDetails>,
pub(crate) custom_step_details: std::option::Option<crate::model::CustomStepDetails>,
pub(crate) delete_step_details: std::option::Option<crate::model::DeleteStepDetails>,
pub(crate) tag_step_details: std::option::Option<crate::model::TagStepDetails>,
}
impl Builder {
/// <p> Currently, the following step types are supported. </p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub fn r#type(mut self, input: crate::model::WorkflowStepType) -> Self {
self.r#type = Some(input);
self
}
/// <p> Currently, the following step types are supported. </p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub fn set_type(
mut self,
input: std::option::Option<crate::model::WorkflowStepType>,
) -> Self {
self.r#type = input;
self
}
/// <p>Details for a step that performs a file copy.</p>
/// <p> Consists of the following values: </p>
/// <ul>
/// <li> <p>A description</p> </li>
/// <li> <p>An S3 location for the destination of the file copy.</p> </li>
/// <li> <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p> </li>
/// </ul>
pub fn copy_step_details(mut self, input: crate::model::CopyStepDetails) -> Self {
self.copy_step_details = Some(input);
self
}
/// <p>Details for a step that performs a file copy.</p>
/// <p> Consists of the following values: </p>
/// <ul>
/// <li> <p>A description</p> </li>
/// <li> <p>An S3 location for the destination of the file copy.</p> </li>
/// <li> <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p> </li>
/// </ul>
pub fn set_copy_step_details(
mut self,
input: std::option::Option<crate::model::CopyStepDetails>,
) -> Self {
self.copy_step_details = input;
self
}
/// <p>Details for a step that invokes a lambda function.</p>
/// <p> Consists of the lambda function name, target, and timeout (in seconds). </p>
pub fn custom_step_details(mut self, input: crate::model::CustomStepDetails) -> Self {
self.custom_step_details = Some(input);
self
}
/// <p>Details for a step that invokes a lambda function.</p>
/// <p> Consists of the lambda function name, target, and timeout (in seconds). </p>
pub fn set_custom_step_details(
mut self,
input: std::option::Option<crate::model::CustomStepDetails>,
) -> Self {
self.custom_step_details = input;
self
}
/// <p>Details for a step that deletes the file.</p>
pub fn delete_step_details(mut self, input: crate::model::DeleteStepDetails) -> Self {
self.delete_step_details = Some(input);
self
}
/// <p>Details for a step that deletes the file.</p>
pub fn set_delete_step_details(
mut self,
input: std::option::Option<crate::model::DeleteStepDetails>,
) -> Self {
self.delete_step_details = input;
self
}
/// <p>Details for a step that creates one or more tags.</p>
/// <p>You specify one or more tags: each tag contains a key/value pair.</p>
pub fn tag_step_details(mut self, input: crate::model::TagStepDetails) -> Self {
self.tag_step_details = Some(input);
self
}
/// <p>Details for a step that creates one or more tags.</p>
/// <p>You specify one or more tags: each tag contains a key/value pair.</p>
pub fn set_tag_step_details(
mut self,
input: std::option::Option<crate::model::TagStepDetails>,
) -> Self {
self.tag_step_details = input;
self
}
/// Consumes the builder and constructs a [`WorkflowStep`](crate::model::WorkflowStep)
pub fn build(self) -> crate::model::WorkflowStep {
crate::model::WorkflowStep {
r#type: self.r#type,
copy_step_details: self.copy_step_details,
custom_step_details: self.custom_step_details,
delete_step_details: self.delete_step_details,
tag_step_details: self.tag_step_details,
}
}
}
}
impl WorkflowStep {
/// Creates a new builder-style object to manufacture [`WorkflowStep`](crate::model::WorkflowStep)
pub fn builder() -> crate::model::workflow_step::Builder {
crate::model::workflow_step::Builder::default()
}
}
/// <p>Each step type has its own <code>StepDetails</code> structure.</p>
/// <p>The key/value pairs used to tag a file during the execution of a workflow step.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TagStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub name: std::option::Option<std::string::String>,
/// <p>Array that contains from 1 to 10 key/value pairs.</p>
pub tags: std::option::Option<std::vec::Vec<crate::model::S3Tag>>,
}
impl TagStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>Array that contains from 1 to 10 key/value pairs.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::S3Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for TagStepDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TagStepDetails");
formatter.field("name", &self.name);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`TagStepDetails`](crate::model::TagStepDetails)
pub mod tag_step_details {
/// A builder for [`TagStepDetails`](crate::model::TagStepDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::S3Tag>>,
}
impl Builder {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the step, used as an identifier.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Array that contains from 1 to 10 key/value pairs.</p>
pub fn tags(mut self, input: crate::model::S3Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>Array that contains from 1 to 10 key/value pairs.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::S3Tag>>,
) -> Self {
self.tags = input;
self
}
/// Consumes the builder and constructs a [`TagStepDetails`](crate::model::TagStepDetails)
pub fn build(self) -> crate::model::TagStepDetails {
crate::model::TagStepDetails {
name: self.name,
tags: self.tags,
}
}
}
}
impl TagStepDetails {
/// Creates a new builder-style object to manufacture [`TagStepDetails`](crate::model::TagStepDetails)
pub fn builder() -> crate::model::tag_step_details::Builder {
crate::model::tag_step_details::Builder::default()
}
}
/// <p>Specifies the key-value pair that are assigned to a file during the execution of a Tagging step.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3Tag {
/// <p>The name assigned to the tag that you create.</p>
pub key: std::option::Option<std::string::String>,
/// <p>The value that corresponds to the key.</p>
pub value: std::option::Option<std::string::String>,
}
impl S3Tag {
/// <p>The name assigned to the tag that you create.</p>
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
/// <p>The value that corresponds to the key.</p>
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
impl std::fmt::Debug for S3Tag {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3Tag");
formatter.field("key", &self.key);
formatter.field("value", &self.value);
formatter.finish()
}
}
/// See [`S3Tag`](crate::model::S3Tag)
pub mod s3_tag {
/// A builder for [`S3Tag`](crate::model::S3Tag)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The name assigned to the tag that you create.</p>
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
/// <p>The name assigned to the tag that you create.</p>
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
/// <p>The value that corresponds to the key.</p>
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
/// <p>The value that corresponds to the key.</p>
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
/// Consumes the builder and constructs a [`S3Tag`](crate::model::S3Tag)
pub fn build(self) -> crate::model::S3Tag {
crate::model::S3Tag {
key: self.key,
value: self.value,
}
}
}
}
impl S3Tag {
/// Creates a new builder-style object to manufacture [`S3Tag`](crate::model::S3Tag)
pub fn builder() -> crate::model::s3_tag::Builder {
crate::model::s3_tag::Builder::default()
}
}
/// <p>The name of the step, used to identify the delete step.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub name: std::option::Option<std::string::String>,
}
impl DeleteStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
impl std::fmt::Debug for DeleteStepDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteStepDetails");
formatter.field("name", &self.name);
formatter.finish()
}
}
/// See [`DeleteStepDetails`](crate::model::DeleteStepDetails)
pub mod delete_step_details {
/// A builder for [`DeleteStepDetails`](crate::model::DeleteStepDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the step, used as an identifier.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// Consumes the builder and constructs a [`DeleteStepDetails`](crate::model::DeleteStepDetails)
pub fn build(self) -> crate::model::DeleteStepDetails {
crate::model::DeleteStepDetails { name: self.name }
}
}
}
impl DeleteStepDetails {
/// Creates a new builder-style object to manufacture [`DeleteStepDetails`](crate::model::DeleteStepDetails)
pub fn builder() -> crate::model::delete_step_details::Builder {
crate::model::delete_step_details::Builder::default()
}
}
/// <p>Each step type has its own <code>StepDetails</code> structure.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CustomStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub name: std::option::Option<std::string::String>,
/// <p>The ARN for the lambda function that is being called.</p>
pub target: std::option::Option<std::string::String>,
/// <p>Timeout, in seconds, for the step.</p>
pub timeout_seconds: std::option::Option<i32>,
}
impl CustomStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The ARN for the lambda function that is being called.</p>
pub fn target(&self) -> std::option::Option<&str> {
self.target.as_deref()
}
/// <p>Timeout, in seconds, for the step.</p>
pub fn timeout_seconds(&self) -> std::option::Option<i32> {
self.timeout_seconds
}
}
impl std::fmt::Debug for CustomStepDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CustomStepDetails");
formatter.field("name", &self.name);
formatter.field("target", &self.target);
formatter.field("timeout_seconds", &self.timeout_seconds);
formatter.finish()
}
}
/// See [`CustomStepDetails`](crate::model::CustomStepDetails)
pub mod custom_step_details {
/// A builder for [`CustomStepDetails`](crate::model::CustomStepDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) target: std::option::Option<std::string::String>,
pub(crate) timeout_seconds: std::option::Option<i32>,
}
impl Builder {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the step, used as an identifier.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The ARN for the lambda function that is being called.</p>
pub fn target(mut self, input: impl Into<std::string::String>) -> Self {
self.target = Some(input.into());
self
}
/// <p>The ARN for the lambda function that is being called.</p>
pub fn set_target(mut self, input: std::option::Option<std::string::String>) -> Self {
self.target = input;
self
}
/// <p>Timeout, in seconds, for the step.</p>
pub fn timeout_seconds(mut self, input: i32) -> Self {
self.timeout_seconds = Some(input);
self
}
/// <p>Timeout, in seconds, for the step.</p>
pub fn set_timeout_seconds(mut self, input: std::option::Option<i32>) -> Self {
self.timeout_seconds = input;
self
}
/// Consumes the builder and constructs a [`CustomStepDetails`](crate::model::CustomStepDetails)
pub fn build(self) -> crate::model::CustomStepDetails {
crate::model::CustomStepDetails {
name: self.name,
target: self.target,
timeout_seconds: self.timeout_seconds,
}
}
}
}
impl CustomStepDetails {
/// Creates a new builder-style object to manufacture [`CustomStepDetails`](crate::model::CustomStepDetails)
pub fn builder() -> crate::model::custom_step_details::Builder {
crate::model::custom_step_details::Builder::default()
}
}
/// <p>Each step type has its own <code>StepDetails</code> structure.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CopyStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub name: std::option::Option<std::string::String>,
/// <p>Specifies the location for the file being copied. Only applicable for the Copy type of workflow steps.</p>
pub destination_file_location: std::option::Option<crate::model::InputFileLocation>,
/// <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p>
pub overwrite_existing: std::option::Option<crate::model::OverwriteExisting>,
}
impl CopyStepDetails {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>Specifies the location for the file being copied. Only applicable for the Copy type of workflow steps.</p>
pub fn destination_file_location(
&self,
) -> std::option::Option<&crate::model::InputFileLocation> {
self.destination_file_location.as_ref()
}
/// <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p>
pub fn overwrite_existing(&self) -> std::option::Option<&crate::model::OverwriteExisting> {
self.overwrite_existing.as_ref()
}
}
impl std::fmt::Debug for CopyStepDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CopyStepDetails");
formatter.field("name", &self.name);
formatter.field("destination_file_location", &self.destination_file_location);
formatter.field("overwrite_existing", &self.overwrite_existing);
formatter.finish()
}
}
/// See [`CopyStepDetails`](crate::model::CopyStepDetails)
pub mod copy_step_details {
/// A builder for [`CopyStepDetails`](crate::model::CopyStepDetails)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) destination_file_location: std::option::Option<crate::model::InputFileLocation>,
pub(crate) overwrite_existing: std::option::Option<crate::model::OverwriteExisting>,
}
impl Builder {
/// <p>The name of the step, used as an identifier.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the step, used as an identifier.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>Specifies the location for the file being copied. Only applicable for the Copy type of workflow steps.</p>
pub fn destination_file_location(mut self, input: crate::model::InputFileLocation) -> Self {
self.destination_file_location = Some(input);
self
}
/// <p>Specifies the location for the file being copied. Only applicable for the Copy type of workflow steps.</p>
pub fn set_destination_file_location(
mut self,
input: std::option::Option<crate::model::InputFileLocation>,
) -> Self {
self.destination_file_location = input;
self
}
/// <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p>
pub fn overwrite_existing(mut self, input: crate::model::OverwriteExisting) -> Self {
self.overwrite_existing = Some(input);
self
}
/// <p>A flag that indicates whether or not to overwrite an existing file of the same name. The default is <code>FALSE</code>.</p>
pub fn set_overwrite_existing(
mut self,
input: std::option::Option<crate::model::OverwriteExisting>,
) -> Self {
self.overwrite_existing = input;
self
}
/// Consumes the builder and constructs a [`CopyStepDetails`](crate::model::CopyStepDetails)
pub fn build(self) -> crate::model::CopyStepDetails {
crate::model::CopyStepDetails {
name: self.name,
destination_file_location: self.destination_file_location,
overwrite_existing: self.overwrite_existing,
}
}
}
}
impl CopyStepDetails {
/// Creates a new builder-style object to manufacture [`CopyStepDetails`](crate::model::CopyStepDetails)
pub fn builder() -> crate::model::copy_step_details::Builder {
crate::model::copy_step_details::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum OverwriteExisting {
#[allow(missing_docs)] // documentation missing in model
False,
#[allow(missing_docs)] // documentation missing in model
True,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for OverwriteExisting {
fn from(s: &str) -> Self {
match s {
"FALSE" => OverwriteExisting::False,
"TRUE" => OverwriteExisting::True,
other => OverwriteExisting::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for OverwriteExisting {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(OverwriteExisting::from(s))
}
}
impl OverwriteExisting {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
OverwriteExisting::False => "FALSE",
OverwriteExisting::True => "TRUE",
OverwriteExisting::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["FALSE", "TRUE"]
}
}
impl AsRef<str> for OverwriteExisting {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Specifies the location for the file being copied. Only applicable for the Copy type of workflow steps.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InputFileLocation {
/// <p>Specifies the details for the S3 file being copied.</p>
pub s3_file_location: std::option::Option<crate::model::S3InputFileLocation>,
/// <p>Reserved for future use.</p>
pub efs_file_location: std::option::Option<crate::model::EfsFileLocation>,
}
impl InputFileLocation {
/// <p>Specifies the details for the S3 file being copied.</p>
pub fn s3_file_location(&self) -> std::option::Option<&crate::model::S3InputFileLocation> {
self.s3_file_location.as_ref()
}
/// <p>Reserved for future use.</p>
pub fn efs_file_location(&self) -> std::option::Option<&crate::model::EfsFileLocation> {
self.efs_file_location.as_ref()
}
}
impl std::fmt::Debug for InputFileLocation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InputFileLocation");
formatter.field("s3_file_location", &self.s3_file_location);
formatter.field("efs_file_location", &self.efs_file_location);
formatter.finish()
}
}
/// See [`InputFileLocation`](crate::model::InputFileLocation)
pub mod input_file_location {
/// A builder for [`InputFileLocation`](crate::model::InputFileLocation)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) s3_file_location: std::option::Option<crate::model::S3InputFileLocation>,
pub(crate) efs_file_location: std::option::Option<crate::model::EfsFileLocation>,
}
impl Builder {
/// <p>Specifies the details for the S3 file being copied.</p>
pub fn s3_file_location(mut self, input: crate::model::S3InputFileLocation) -> Self {
self.s3_file_location = Some(input);
self
}
/// <p>Specifies the details for the S3 file being copied.</p>
pub fn set_s3_file_location(
mut self,
input: std::option::Option<crate::model::S3InputFileLocation>,
) -> Self {
self.s3_file_location = input;
self
}
/// <p>Reserved for future use.</p>
pub fn efs_file_location(mut self, input: crate::model::EfsFileLocation) -> Self {
self.efs_file_location = Some(input);
self
}
/// <p>Reserved for future use.</p>
pub fn set_efs_file_location(
mut self,
input: std::option::Option<crate::model::EfsFileLocation>,
) -> Self {
self.efs_file_location = input;
self
}
/// Consumes the builder and constructs a [`InputFileLocation`](crate::model::InputFileLocation)
pub fn build(self) -> crate::model::InputFileLocation {
crate::model::InputFileLocation {
s3_file_location: self.s3_file_location,
efs_file_location: self.efs_file_location,
}
}
}
}
impl InputFileLocation {
/// Creates a new builder-style object to manufacture [`InputFileLocation`](crate::model::InputFileLocation)
pub fn builder() -> crate::model::input_file_location::Builder {
crate::model::input_file_location::Builder::default()
}
}
/// <p>Specifies the customer input S3 file location. If it is used inside <code>copyStepDetails.DestinationFileLocation</code>, it should be the S3 copy destination.</p>
/// <p> You need to provide the bucket and key. The key can represent either a path or a file. This is determined by whether or not you end the key value with the forward slash (/) character. If the final character is "/", then your file is copied to the folder, and its name does not change. If, rather, the final character is alphanumeric, your uploaded file is renamed to the path value. In this case, if a file with that name already exists, it is overwritten. </p>
/// <p>For example, if your path is <code>shared-files/bob/</code>, your uploaded files are copied to the <code>shared-files/bob/</code>, folder. If your path is <code>shared-files/today</code>, each uploaded file is copied to the <code>shared-files</code> folder and named <code>today</code>: each upload overwrites the previous version of the <i>bob</i> file.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3InputFileLocation {
/// <p>Specifies the S3 bucket for the customer input file.</p>
pub bucket: std::option::Option<std::string::String>,
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub key: std::option::Option<std::string::String>,
}
impl S3InputFileLocation {
/// <p>Specifies the S3 bucket for the customer input file.</p>
pub fn bucket(&self) -> std::option::Option<&str> {
self.bucket.as_deref()
}
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
}
impl std::fmt::Debug for S3InputFileLocation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3InputFileLocation");
formatter.field("bucket", &self.bucket);
formatter.field("key", &self.key);
formatter.finish()
}
}
/// See [`S3InputFileLocation`](crate::model::S3InputFileLocation)
pub mod s3_input_file_location {
/// A builder for [`S3InputFileLocation`](crate::model::S3InputFileLocation)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket: std::option::Option<std::string::String>,
pub(crate) key: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Specifies the S3 bucket for the customer input file.</p>
pub fn bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket = Some(input.into());
self
}
/// <p>Specifies the S3 bucket for the customer input file.</p>
pub fn set_bucket(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket = input;
self
}
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
/// <p>The name assigned to the file when it was created in S3. You use the object key to retrieve the object.</p>
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
/// Consumes the builder and constructs a [`S3InputFileLocation`](crate::model::S3InputFileLocation)
pub fn build(self) -> crate::model::S3InputFileLocation {
crate::model::S3InputFileLocation {
bucket: self.bucket,
key: self.key,
}
}
}
}
impl S3InputFileLocation {
/// Creates a new builder-style object to manufacture [`S3InputFileLocation`](crate::model::S3InputFileLocation)
pub fn builder() -> crate::model::s3_input_file_location::Builder {
crate::model::s3_input_file_location::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum WorkflowStepType {
#[allow(missing_docs)] // documentation missing in model
Copy,
#[allow(missing_docs)] // documentation missing in model
Custom,
#[allow(missing_docs)] // documentation missing in model
Delete,
#[allow(missing_docs)] // documentation missing in model
Tag,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for WorkflowStepType {
fn from(s: &str) -> Self {
match s {
"COPY" => WorkflowStepType::Copy,
"CUSTOM" => WorkflowStepType::Custom,
"DELETE" => WorkflowStepType::Delete,
"TAG" => WorkflowStepType::Tag,
other => WorkflowStepType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for WorkflowStepType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(WorkflowStepType::from(s))
}
}
impl WorkflowStepType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
WorkflowStepType::Copy => "COPY",
WorkflowStepType::Custom => "CUSTOM",
WorkflowStepType::Delete => "DELETE",
WorkflowStepType::Tag => "TAG",
WorkflowStepType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["COPY", "CUSTOM", "DELETE", "TAG"]
}
}
impl AsRef<str> for WorkflowStepType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Describes the properties of a user that was specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedUser {
/// <p>Specifies the unique Amazon Resource Name (ARN) for the user that was requested to be described.</p>
pub arn: std::option::Option<std::string::String>,
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub home_directory: std::option::Option<std::string::String>,
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the HomeDirectory parameter value.</p>
pub home_directory_mappings:
std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub policy: std::option::Option<std::string::String>,
/// <p>Specifies the full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon Elastic File System (Amazon EFS) file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub posix_profile: std::option::Option<crate::model::PosixProfile>,
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub role: std::option::Option<std::string::String>,
/// <p>Specifies the public key portion of the Secure Shell (SSH) keys stored for the described user.</p>
pub ssh_public_keys: std::option::Option<std::vec::Vec<crate::model::SshPublicKey>>,
/// <p>Specifies the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.</p>
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
/// <p>Specifies the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your server.</p>
pub user_name: std::option::Option<std::string::String>,
}
impl DescribedUser {
/// <p>Specifies the unique Amazon Resource Name (ARN) for the user that was requested to be described.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(&self) -> std::option::Option<&str> {
self.home_directory.as_deref()
}
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the HomeDirectory parameter value.</p>
pub fn home_directory_mappings(
&self,
) -> std::option::Option<&[crate::model::HomeDirectoryMapEntry]> {
self.home_directory_mappings.as_deref()
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(&self) -> std::option::Option<&crate::model::HomeDirectoryType> {
self.home_directory_type.as_ref()
}
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub fn policy(&self) -> std::option::Option<&str> {
self.policy.as_deref()
}
/// <p>Specifies the full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon Elastic File System (Amazon EFS) file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn posix_profile(&self) -> std::option::Option<&crate::model::PosixProfile> {
self.posix_profile.as_ref()
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn role(&self) -> std::option::Option<&str> {
self.role.as_deref()
}
/// <p>Specifies the public key portion of the Secure Shell (SSH) keys stored for the described user.</p>
pub fn ssh_public_keys(&self) -> std::option::Option<&[crate::model::SshPublicKey]> {
self.ssh_public_keys.as_deref()
}
/// <p>Specifies the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
/// <p>Specifies the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your server.</p>
pub fn user_name(&self) -> std::option::Option<&str> {
self.user_name.as_deref()
}
}
impl std::fmt::Debug for DescribedUser {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedUser");
formatter.field("arn", &self.arn);
formatter.field("home_directory", &self.home_directory);
formatter.field("home_directory_mappings", &self.home_directory_mappings);
formatter.field("home_directory_type", &self.home_directory_type);
formatter.field("policy", &self.policy);
formatter.field("posix_profile", &self.posix_profile);
formatter.field("role", &self.role);
formatter.field("ssh_public_keys", &self.ssh_public_keys);
formatter.field("tags", &self.tags);
formatter.field("user_name", &self.user_name);
formatter.finish()
}
}
/// See [`DescribedUser`](crate::model::DescribedUser)
pub mod described_user {
/// A builder for [`DescribedUser`](crate::model::DescribedUser)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) home_directory: std::option::Option<std::string::String>,
pub(crate) home_directory_mappings:
std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
pub(crate) home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
pub(crate) policy: std::option::Option<std::string::String>,
pub(crate) posix_profile: std::option::Option<crate::model::PosixProfile>,
pub(crate) role: std::option::Option<std::string::String>,
pub(crate) ssh_public_keys: std::option::Option<std::vec::Vec<crate::model::SshPublicKey>>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
pub(crate) user_name: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Specifies the unique Amazon Resource Name (ARN) for the user that was requested to be described.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>Specifies the unique Amazon Resource Name (ARN) for the user that was requested to be described.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(mut self, input: impl Into<std::string::String>) -> Self {
self.home_directory = Some(input.into());
self
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn set_home_directory(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.home_directory = input;
self
}
/// Appends an item to `home_directory_mappings`.
///
/// To override the contents of this collection use [`set_home_directory_mappings`](Self::set_home_directory_mappings).
///
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the HomeDirectory parameter value.</p>
pub fn home_directory_mappings(
mut self,
input: crate::model::HomeDirectoryMapEntry,
) -> Self {
let mut v = self.home_directory_mappings.unwrap_or_default();
v.push(input);
self.home_directory_mappings = Some(v);
self
}
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the HomeDirectory parameter value.</p>
pub fn set_home_directory_mappings(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
) -> Self {
self.home_directory_mappings = input;
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(mut self, input: crate::model::HomeDirectoryType) -> Self {
self.home_directory_type = Some(input);
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn set_home_directory_type(
mut self,
input: std::option::Option<crate::model::HomeDirectoryType>,
) -> Self {
self.home_directory_type = input;
self
}
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub fn policy(mut self, input: impl Into<std::string::String>) -> Self {
self.policy = Some(input.into());
self
}
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub fn set_policy(mut self, input: std::option::Option<std::string::String>) -> Self {
self.policy = input;
self
}
/// <p>Specifies the full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon Elastic File System (Amazon EFS) file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn posix_profile(mut self, input: crate::model::PosixProfile) -> Self {
self.posix_profile = Some(input);
self
}
/// <p>Specifies the full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon Elastic File System (Amazon EFS) file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn set_posix_profile(
mut self,
input: std::option::Option<crate::model::PosixProfile>,
) -> Self {
self.posix_profile = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn role(mut self, input: impl Into<std::string::String>) -> Self {
self.role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn set_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role = input;
self
}
/// Appends an item to `ssh_public_keys`.
///
/// To override the contents of this collection use [`set_ssh_public_keys`](Self::set_ssh_public_keys).
///
/// <p>Specifies the public key portion of the Secure Shell (SSH) keys stored for the described user.</p>
pub fn ssh_public_keys(mut self, input: crate::model::SshPublicKey) -> Self {
let mut v = self.ssh_public_keys.unwrap_or_default();
v.push(input);
self.ssh_public_keys = Some(v);
self
}
/// <p>Specifies the public key portion of the Secure Shell (SSH) keys stored for the described user.</p>
pub fn set_ssh_public_keys(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SshPublicKey>>,
) -> Self {
self.ssh_public_keys = input;
self
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Specifies the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>Specifies the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
/// <p>Specifies the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your server.</p>
pub fn user_name(mut self, input: impl Into<std::string::String>) -> Self {
self.user_name = Some(input.into());
self
}
/// <p>Specifies the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your server.</p>
pub fn set_user_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.user_name = input;
self
}
/// Consumes the builder and constructs a [`DescribedUser`](crate::model::DescribedUser)
pub fn build(self) -> crate::model::DescribedUser {
crate::model::DescribedUser {
arn: self.arn,
home_directory: self.home_directory,
home_directory_mappings: self.home_directory_mappings,
home_directory_type: self.home_directory_type,
policy: self.policy,
posix_profile: self.posix_profile,
role: self.role,
ssh_public_keys: self.ssh_public_keys,
tags: self.tags,
user_name: self.user_name,
}
}
}
}
impl DescribedUser {
/// Creates a new builder-style object to manufacture [`DescribedUser`](crate::model::DescribedUser)
pub fn builder() -> crate::model::described_user::Builder {
crate::model::described_user::Builder::default()
}
}
/// <p>Provides information about the public Secure Shell (SSH) key that is associated with a user account for the specific file transfer protocol-enabled server (as identified by <code>ServerId</code>). The information returned includes the date the key was imported, the public key contents, and the public key ID. A user can store more than one SSH public key associated with their user name on a specific server.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SshPublicKey {
/// <p>Specifies the date that the public key was added to the user account.</p>
pub date_imported: std::option::Option<aws_smithy_types::DateTime>,
/// <p>Specifies the content of the SSH public key as specified by the <code>PublicKeyId</code>.</p>
pub ssh_public_key_body: std::option::Option<std::string::String>,
/// <p>Specifies the <code>SshPublicKeyId</code> parameter contains the identifier of the public key.</p>
pub ssh_public_key_id: std::option::Option<std::string::String>,
}
impl SshPublicKey {
/// <p>Specifies the date that the public key was added to the user account.</p>
pub fn date_imported(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_imported.as_ref()
}
/// <p>Specifies the content of the SSH public key as specified by the <code>PublicKeyId</code>.</p>
pub fn ssh_public_key_body(&self) -> std::option::Option<&str> {
self.ssh_public_key_body.as_deref()
}
/// <p>Specifies the <code>SshPublicKeyId</code> parameter contains the identifier of the public key.</p>
pub fn ssh_public_key_id(&self) -> std::option::Option<&str> {
self.ssh_public_key_id.as_deref()
}
}
impl std::fmt::Debug for SshPublicKey {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SshPublicKey");
formatter.field("date_imported", &self.date_imported);
formatter.field("ssh_public_key_body", &self.ssh_public_key_body);
formatter.field("ssh_public_key_id", &self.ssh_public_key_id);
formatter.finish()
}
}
/// See [`SshPublicKey`](crate::model::SshPublicKey)
pub mod ssh_public_key {
/// A builder for [`SshPublicKey`](crate::model::SshPublicKey)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) date_imported: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) ssh_public_key_body: std::option::Option<std::string::String>,
pub(crate) ssh_public_key_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Specifies the date that the public key was added to the user account.</p>
pub fn date_imported(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_imported = Some(input);
self
}
/// <p>Specifies the date that the public key was added to the user account.</p>
pub fn set_date_imported(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_imported = input;
self
}
/// <p>Specifies the content of the SSH public key as specified by the <code>PublicKeyId</code>.</p>
pub fn ssh_public_key_body(mut self, input: impl Into<std::string::String>) -> Self {
self.ssh_public_key_body = Some(input.into());
self
}
/// <p>Specifies the content of the SSH public key as specified by the <code>PublicKeyId</code>.</p>
pub fn set_ssh_public_key_body(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.ssh_public_key_body = input;
self
}
/// <p>Specifies the <code>SshPublicKeyId</code> parameter contains the identifier of the public key.</p>
pub fn ssh_public_key_id(mut self, input: impl Into<std::string::String>) -> Self {
self.ssh_public_key_id = Some(input.into());
self
}
/// <p>Specifies the <code>SshPublicKeyId</code> parameter contains the identifier of the public key.</p>
pub fn set_ssh_public_key_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.ssh_public_key_id = input;
self
}
/// Consumes the builder and constructs a [`SshPublicKey`](crate::model::SshPublicKey)
pub fn build(self) -> crate::model::SshPublicKey {
crate::model::SshPublicKey {
date_imported: self.date_imported,
ssh_public_key_body: self.ssh_public_key_body,
ssh_public_key_id: self.ssh_public_key_id,
}
}
}
}
impl SshPublicKey {
/// Creates a new builder-style object to manufacture [`SshPublicKey`](crate::model::SshPublicKey)
pub fn builder() -> crate::model::ssh_public_key::Builder {
crate::model::ssh_public_key::Builder::default()
}
}
/// <p>Describes the properties of a file transfer protocol-enabled server that was specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedServer {
/// <p>Specifies the unique Amazon Resource Name (ARN) of the server.</p>
pub arn: std::option::Option<std::string::String>,
/// <p>Specifies the ARN of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when <code>Protocols</code> is set to <code>FTPS</code>.</p>
pub certificate: std::option::Option<std::string::String>,
/// <p> The protocol settings that are configured for your server. </p>
/// <p> Use the <code>PassiveIp</code> parameter to indicate passive mode. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. </p>
pub protocol_details: std::option::Option<crate::model::ProtocolDetails>,
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub domain: std::option::Option<crate::model::Domain>,
/// <p>The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make it accessible only to resources within your VPC, or you can attach Elastic IP addresses and make it accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.</p>
pub endpoint_details: std::option::Option<crate::model::EndpointDetails>,
/// <p>Defines the type of endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub endpoint_type: std::option::Option<crate::model::EndpointType>,
/// <p>Specifies the Base64-encoded SHA256 fingerprint of the server's host key. This value is equivalent to the output of the <code>ssh-keygen -l -f my-new-server-key</code> command.</p>
pub host_key_fingerprint: std::option::Option<std::string::String>,
/// <p>Specifies information to call a customer-supplied authentication API. This field is not populated when the <code>IdentityProviderType</code> of a server is <code>AWS_DIRECTORY_SERVICE</code> or <code>SERVICE_MANAGED</code>.</p>
pub identity_provider_details: std::option::Option<crate::model::IdentityProviderDetails>,
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub identity_provider_type: std::option::Option<crate::model::IdentityProviderType>,
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub logging_role: std::option::Option<std::string::String>,
/// <p>Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:</p>
/// <ul>
/// <li> <p> <code>SFTP</code> (Secure Shell (SSH) File Transfer Protocol): File transfer over SSH</p> </li>
/// <li> <p> <code>FTPS</code> (File Transfer Protocol Secure): File transfer with TLS encryption</p> </li>
/// <li> <p> <code>FTP</code> (File Transfer Protocol): Unencrypted file transfer</p> </li>
/// </ul>
pub protocols: std::option::Option<std::vec::Vec<crate::model::Protocol>>,
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub security_policy_name: std::option::Option<std::string::String>,
/// <p>Specifies the unique system-assigned identifier for a server that you instantiate.</p>
pub server_id: std::option::Option<std::string::String>,
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub state: std::option::Option<crate::model::State>,
/// <p>Specifies the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.</p>
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub user_count: std::option::Option<i32>,
/// <p>Specifies the workflow ID for the workflow to assign and the execution role used for executing the workflow.</p>
pub workflow_details: std::option::Option<crate::model::WorkflowDetails>,
}
impl DescribedServer {
/// <p>Specifies the unique Amazon Resource Name (ARN) of the server.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>Specifies the ARN of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when <code>Protocols</code> is set to <code>FTPS</code>.</p>
pub fn certificate(&self) -> std::option::Option<&str> {
self.certificate.as_deref()
}
/// <p> The protocol settings that are configured for your server. </p>
/// <p> Use the <code>PassiveIp</code> parameter to indicate passive mode. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. </p>
pub fn protocol_details(&self) -> std::option::Option<&crate::model::ProtocolDetails> {
self.protocol_details.as_ref()
}
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub fn domain(&self) -> std::option::Option<&crate::model::Domain> {
self.domain.as_ref()
}
/// <p>The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make it accessible only to resources within your VPC, or you can attach Elastic IP addresses and make it accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.</p>
pub fn endpoint_details(&self) -> std::option::Option<&crate::model::EndpointDetails> {
self.endpoint_details.as_ref()
}
/// <p>Defines the type of endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub fn endpoint_type(&self) -> std::option::Option<&crate::model::EndpointType> {
self.endpoint_type.as_ref()
}
/// <p>Specifies the Base64-encoded SHA256 fingerprint of the server's host key. This value is equivalent to the output of the <code>ssh-keygen -l -f my-new-server-key</code> command.</p>
pub fn host_key_fingerprint(&self) -> std::option::Option<&str> {
self.host_key_fingerprint.as_deref()
}
/// <p>Specifies information to call a customer-supplied authentication API. This field is not populated when the <code>IdentityProviderType</code> of a server is <code>AWS_DIRECTORY_SERVICE</code> or <code>SERVICE_MANAGED</code>.</p>
pub fn identity_provider_details(
&self,
) -> std::option::Option<&crate::model::IdentityProviderDetails> {
self.identity_provider_details.as_ref()
}
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub fn identity_provider_type(
&self,
) -> std::option::Option<&crate::model::IdentityProviderType> {
self.identity_provider_type.as_ref()
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn logging_role(&self) -> std::option::Option<&str> {
self.logging_role.as_deref()
}
/// <p>Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:</p>
/// <ul>
/// <li> <p> <code>SFTP</code> (Secure Shell (SSH) File Transfer Protocol): File transfer over SSH</p> </li>
/// <li> <p> <code>FTPS</code> (File Transfer Protocol Secure): File transfer with TLS encryption</p> </li>
/// <li> <p> <code>FTP</code> (File Transfer Protocol): Unencrypted file transfer</p> </li>
/// </ul>
pub fn protocols(&self) -> std::option::Option<&[crate::model::Protocol]> {
self.protocols.as_deref()
}
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub fn security_policy_name(&self) -> std::option::Option<&str> {
self.security_policy_name.as_deref()
}
/// <p>Specifies the unique system-assigned identifier for a server that you instantiate.</p>
pub fn server_id(&self) -> std::option::Option<&str> {
self.server_id.as_deref()
}
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub fn state(&self) -> std::option::Option<&crate::model::State> {
self.state.as_ref()
}
/// <p>Specifies the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub fn user_count(&self) -> std::option::Option<i32> {
self.user_count
}
/// <p>Specifies the workflow ID for the workflow to assign and the execution role used for executing the workflow.</p>
pub fn workflow_details(&self) -> std::option::Option<&crate::model::WorkflowDetails> {
self.workflow_details.as_ref()
}
}
impl std::fmt::Debug for DescribedServer {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedServer");
formatter.field("arn", &self.arn);
formatter.field("certificate", &self.certificate);
formatter.field("protocol_details", &self.protocol_details);
formatter.field("domain", &self.domain);
formatter.field("endpoint_details", &self.endpoint_details);
formatter.field("endpoint_type", &self.endpoint_type);
formatter.field("host_key_fingerprint", &self.host_key_fingerprint);
formatter.field("identity_provider_details", &self.identity_provider_details);
formatter.field("identity_provider_type", &self.identity_provider_type);
formatter.field("logging_role", &self.logging_role);
formatter.field("protocols", &self.protocols);
formatter.field("security_policy_name", &self.security_policy_name);
formatter.field("server_id", &self.server_id);
formatter.field("state", &self.state);
formatter.field("tags", &self.tags);
formatter.field("user_count", &self.user_count);
formatter.field("workflow_details", &self.workflow_details);
formatter.finish()
}
}
/// See [`DescribedServer`](crate::model::DescribedServer)
pub mod described_server {
/// A builder for [`DescribedServer`](crate::model::DescribedServer)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) certificate: std::option::Option<std::string::String>,
pub(crate) protocol_details: std::option::Option<crate::model::ProtocolDetails>,
pub(crate) domain: std::option::Option<crate::model::Domain>,
pub(crate) endpoint_details: std::option::Option<crate::model::EndpointDetails>,
pub(crate) endpoint_type: std::option::Option<crate::model::EndpointType>,
pub(crate) host_key_fingerprint: std::option::Option<std::string::String>,
pub(crate) identity_provider_details:
std::option::Option<crate::model::IdentityProviderDetails>,
pub(crate) identity_provider_type: std::option::Option<crate::model::IdentityProviderType>,
pub(crate) logging_role: std::option::Option<std::string::String>,
pub(crate) protocols: std::option::Option<std::vec::Vec<crate::model::Protocol>>,
pub(crate) security_policy_name: std::option::Option<std::string::String>,
pub(crate) server_id: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::State>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
pub(crate) user_count: std::option::Option<i32>,
pub(crate) workflow_details: std::option::Option<crate::model::WorkflowDetails>,
}
impl Builder {
/// <p>Specifies the unique Amazon Resource Name (ARN) of the server.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>Specifies the unique Amazon Resource Name (ARN) of the server.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>Specifies the ARN of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when <code>Protocols</code> is set to <code>FTPS</code>.</p>
pub fn certificate(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate = Some(input.into());
self
}
/// <p>Specifies the ARN of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when <code>Protocols</code> is set to <code>FTPS</code>.</p>
pub fn set_certificate(mut self, input: std::option::Option<std::string::String>) -> Self {
self.certificate = input;
self
}
/// <p> The protocol settings that are configured for your server. </p>
/// <p> Use the <code>PassiveIp</code> parameter to indicate passive mode. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. </p>
pub fn protocol_details(mut self, input: crate::model::ProtocolDetails) -> Self {
self.protocol_details = Some(input);
self
}
/// <p> The protocol settings that are configured for your server. </p>
/// <p> Use the <code>PassiveIp</code> parameter to indicate passive mode. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. </p>
pub fn set_protocol_details(
mut self,
input: std::option::Option<crate::model::ProtocolDetails>,
) -> Self {
self.protocol_details = input;
self
}
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub fn domain(mut self, input: crate::model::Domain) -> Self {
self.domain = Some(input);
self
}
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
pub fn set_domain(mut self, input: std::option::Option<crate::model::Domain>) -> Self {
self.domain = input;
self
}
/// <p>The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make it accessible only to resources within your VPC, or you can attach Elastic IP addresses and make it accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.</p>
pub fn endpoint_details(mut self, input: crate::model::EndpointDetails) -> Self {
self.endpoint_details = Some(input);
self
}
/// <p>The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make it accessible only to resources within your VPC, or you can attach Elastic IP addresses and make it accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.</p>
pub fn set_endpoint_details(
mut self,
input: std::option::Option<crate::model::EndpointDetails>,
) -> Self {
self.endpoint_details = input;
self
}
/// <p>Defines the type of endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub fn endpoint_type(mut self, input: crate::model::EndpointType) -> Self {
self.endpoint_type = Some(input);
self
}
/// <p>Defines the type of endpoint that your server is connected to. If your server is connected to a VPC endpoint, your server isn't accessible over the public internet.</p>
pub fn set_endpoint_type(
mut self,
input: std::option::Option<crate::model::EndpointType>,
) -> Self {
self.endpoint_type = input;
self
}
/// <p>Specifies the Base64-encoded SHA256 fingerprint of the server's host key. This value is equivalent to the output of the <code>ssh-keygen -l -f my-new-server-key</code> command.</p>
pub fn host_key_fingerprint(mut self, input: impl Into<std::string::String>) -> Self {
self.host_key_fingerprint = Some(input.into());
self
}
/// <p>Specifies the Base64-encoded SHA256 fingerprint of the server's host key. This value is equivalent to the output of the <code>ssh-keygen -l -f my-new-server-key</code> command.</p>
pub fn set_host_key_fingerprint(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.host_key_fingerprint = input;
self
}
/// <p>Specifies information to call a customer-supplied authentication API. This field is not populated when the <code>IdentityProviderType</code> of a server is <code>AWS_DIRECTORY_SERVICE</code> or <code>SERVICE_MANAGED</code>.</p>
pub fn identity_provider_details(
mut self,
input: crate::model::IdentityProviderDetails,
) -> Self {
self.identity_provider_details = Some(input);
self
}
/// <p>Specifies information to call a customer-supplied authentication API. This field is not populated when the <code>IdentityProviderType</code> of a server is <code>AWS_DIRECTORY_SERVICE</code> or <code>SERVICE_MANAGED</code>.</p>
pub fn set_identity_provider_details(
mut self,
input: std::option::Option<crate::model::IdentityProviderDetails>,
) -> Self {
self.identity_provider_details = input;
self
}
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub fn identity_provider_type(mut self, input: crate::model::IdentityProviderType) -> Self {
self.identity_provider_type = Some(input);
self
}
/// <p>Specifies the mode of authentication for a server. The default value is <code>SERVICE_MANAGED</code>, which allows you to store and access user credentials within the Amazon Web Services Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connectors. This option also requires you to provide a Directory ID using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>API_GATEWAY</code> value to integrate with an identity provider of your choosing. The <code>API_GATEWAY</code> setting requires you to provide an API Gateway endpoint URL to call for authentication using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the <code>Function</code> parameter for the <code>IdentityProviderDetails</code> data type.</p>
pub fn set_identity_provider_type(
mut self,
input: std::option::Option<crate::model::IdentityProviderType>,
) -> Self {
self.identity_provider_type = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn logging_role(mut self, input: impl Into<std::string::String>) -> Self {
self.logging_role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn set_logging_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.logging_role = input;
self
}
/// Appends an item to `protocols`.
///
/// To override the contents of this collection use [`set_protocols`](Self::set_protocols).
///
/// <p>Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:</p>
/// <ul>
/// <li> <p> <code>SFTP</code> (Secure Shell (SSH) File Transfer Protocol): File transfer over SSH</p> </li>
/// <li> <p> <code>FTPS</code> (File Transfer Protocol Secure): File transfer with TLS encryption</p> </li>
/// <li> <p> <code>FTP</code> (File Transfer Protocol): Unencrypted file transfer</p> </li>
/// </ul>
pub fn protocols(mut self, input: crate::model::Protocol) -> Self {
let mut v = self.protocols.unwrap_or_default();
v.push(input);
self.protocols = Some(v);
self
}
/// <p>Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. The available protocols are:</p>
/// <ul>
/// <li> <p> <code>SFTP</code> (Secure Shell (SSH) File Transfer Protocol): File transfer over SSH</p> </li>
/// <li> <p> <code>FTPS</code> (File Transfer Protocol Secure): File transfer with TLS encryption</p> </li>
/// <li> <p> <code>FTP</code> (File Transfer Protocol): Unencrypted file transfer</p> </li>
/// </ul>
pub fn set_protocols(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Protocol>>,
) -> Self {
self.protocols = input;
self
}
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub fn security_policy_name(mut self, input: impl Into<std::string::String>) -> Self {
self.security_policy_name = Some(input.into());
self
}
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub fn set_security_policy_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.security_policy_name = input;
self
}
/// <p>Specifies the unique system-assigned identifier for a server that you instantiate.</p>
pub fn server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.server_id = Some(input.into());
self
}
/// <p>Specifies the unique system-assigned identifier for a server that you instantiate.</p>
pub fn set_server_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_id = input;
self
}
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub fn state(mut self, input: crate::model::State) -> Self {
self.state = Some(input);
self
}
/// <p>Specifies the condition of a server for the server that was described. A value of <code>ONLINE</code> indicates that the server can accept jobs and transfer files. A <code>State</code> value of <code>OFFLINE</code> means that the server cannot perform file transfer operations.</p>
/// <p>The states of <code>STARTING</code> and <code>STOPPING</code> indicate that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of <code>START_FAILED</code> or <code>STOP_FAILED</code> can indicate an error condition.</p>
pub fn set_state(mut self, input: std::option::Option<crate::model::State>) -> Self {
self.state = input;
self
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Specifies the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>Specifies the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub fn user_count(mut self, input: i32) -> Self {
self.user_count = Some(input);
self
}
/// <p>Specifies the number of users that are assigned to a server you specified with the <code>ServerId</code>.</p>
pub fn set_user_count(mut self, input: std::option::Option<i32>) -> Self {
self.user_count = input;
self
}
/// <p>Specifies the workflow ID for the workflow to assign and the execution role used for executing the workflow.</p>
pub fn workflow_details(mut self, input: crate::model::WorkflowDetails) -> Self {
self.workflow_details = Some(input);
self
}
/// <p>Specifies the workflow ID for the workflow to assign and the execution role used for executing the workflow.</p>
pub fn set_workflow_details(
mut self,
input: std::option::Option<crate::model::WorkflowDetails>,
) -> Self {
self.workflow_details = input;
self
}
/// Consumes the builder and constructs a [`DescribedServer`](crate::model::DescribedServer)
pub fn build(self) -> crate::model::DescribedServer {
crate::model::DescribedServer {
arn: self.arn,
certificate: self.certificate,
protocol_details: self.protocol_details,
domain: self.domain,
endpoint_details: self.endpoint_details,
endpoint_type: self.endpoint_type,
host_key_fingerprint: self.host_key_fingerprint,
identity_provider_details: self.identity_provider_details,
identity_provider_type: self.identity_provider_type,
logging_role: self.logging_role,
protocols: self.protocols,
security_policy_name: self.security_policy_name,
server_id: self.server_id,
state: self.state,
tags: self.tags,
user_count: self.user_count,
workflow_details: self.workflow_details,
}
}
}
}
impl DescribedServer {
/// Creates a new builder-style object to manufacture [`DescribedServer`](crate::model::DescribedServer)
pub fn builder() -> crate::model::described_server::Builder {
crate::model::described_server::Builder::default()
}
}
/// <p>Describes the properties of a security policy that was specified. For more information about security policies, see <a href="https://docs.aws.amazon.com/transfer/latest/userguide/security-policies.html">Working with security policies</a>.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedSecurityPolicy {
/// <p>Specifies whether this policy enables Federal Information Processing Standards (FIPS).</p>
pub fips: std::option::Option<bool>,
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub security_policy_name: std::option::Option<std::string::String>,
/// <p>Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub ssh_ciphers: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.</p>
pub ssh_kexs: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.</p>
pub ssh_macs: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub tls_ciphers: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribedSecurityPolicy {
/// <p>Specifies whether this policy enables Federal Information Processing Standards (FIPS).</p>
pub fn fips(&self) -> std::option::Option<bool> {
self.fips
}
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub fn security_policy_name(&self) -> std::option::Option<&str> {
self.security_policy_name.as_deref()
}
/// <p>Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub fn ssh_ciphers(&self) -> std::option::Option<&[std::string::String]> {
self.ssh_ciphers.as_deref()
}
/// <p>Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.</p>
pub fn ssh_kexs(&self) -> std::option::Option<&[std::string::String]> {
self.ssh_kexs.as_deref()
}
/// <p>Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.</p>
pub fn ssh_macs(&self) -> std::option::Option<&[std::string::String]> {
self.ssh_macs.as_deref()
}
/// <p>Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub fn tls_ciphers(&self) -> std::option::Option<&[std::string::String]> {
self.tls_ciphers.as_deref()
}
}
impl std::fmt::Debug for DescribedSecurityPolicy {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedSecurityPolicy");
formatter.field("fips", &self.fips);
formatter.field("security_policy_name", &self.security_policy_name);
formatter.field("ssh_ciphers", &self.ssh_ciphers);
formatter.field("ssh_kexs", &self.ssh_kexs);
formatter.field("ssh_macs", &self.ssh_macs);
formatter.field("tls_ciphers", &self.tls_ciphers);
formatter.finish()
}
}
/// See [`DescribedSecurityPolicy`](crate::model::DescribedSecurityPolicy)
pub mod described_security_policy {
/// A builder for [`DescribedSecurityPolicy`](crate::model::DescribedSecurityPolicy)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) fips: std::option::Option<bool>,
pub(crate) security_policy_name: std::option::Option<std::string::String>,
pub(crate) ssh_ciphers: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) ssh_kexs: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) ssh_macs: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) tls_ciphers: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
/// <p>Specifies whether this policy enables Federal Information Processing Standards (FIPS).</p>
pub fn fips(mut self, input: bool) -> Self {
self.fips = Some(input);
self
}
/// <p>Specifies whether this policy enables Federal Information Processing Standards (FIPS).</p>
pub fn set_fips(mut self, input: std::option::Option<bool>) -> Self {
self.fips = input;
self
}
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub fn security_policy_name(mut self, input: impl Into<std::string::String>) -> Self {
self.security_policy_name = Some(input.into());
self
}
/// <p>Specifies the name of the security policy that is attached to the server.</p>
pub fn set_security_policy_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.security_policy_name = input;
self
}
/// Appends an item to `ssh_ciphers`.
///
/// To override the contents of this collection use [`set_ssh_ciphers`](Self::set_ssh_ciphers).
///
/// <p>Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub fn ssh_ciphers(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.ssh_ciphers.unwrap_or_default();
v.push(input.into());
self.ssh_ciphers = Some(v);
self
}
/// <p>Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub fn set_ssh_ciphers(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ssh_ciphers = input;
self
}
/// Appends an item to `ssh_kexs`.
///
/// To override the contents of this collection use [`set_ssh_kexs`](Self::set_ssh_kexs).
///
/// <p>Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.</p>
pub fn ssh_kexs(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.ssh_kexs.unwrap_or_default();
v.push(input.into());
self.ssh_kexs = Some(v);
self
}
/// <p>Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.</p>
pub fn set_ssh_kexs(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ssh_kexs = input;
self
}
/// Appends an item to `ssh_macs`.
///
/// To override the contents of this collection use [`set_ssh_macs`](Self::set_ssh_macs).
///
/// <p>Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.</p>
pub fn ssh_macs(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.ssh_macs.unwrap_or_default();
v.push(input.into());
self.ssh_macs = Some(v);
self
}
/// <p>Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.</p>
pub fn set_ssh_macs(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ssh_macs = input;
self
}
/// Appends an item to `tls_ciphers`.
///
/// To override the contents of this collection use [`set_tls_ciphers`](Self::set_tls_ciphers).
///
/// <p>Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub fn tls_ciphers(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.tls_ciphers.unwrap_or_default();
v.push(input.into());
self.tls_ciphers = Some(v);
self
}
/// <p>Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.</p>
pub fn set_tls_ciphers(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.tls_ciphers = input;
self
}
/// Consumes the builder and constructs a [`DescribedSecurityPolicy`](crate::model::DescribedSecurityPolicy)
pub fn build(self) -> crate::model::DescribedSecurityPolicy {
crate::model::DescribedSecurityPolicy {
fips: self.fips,
security_policy_name: self.security_policy_name,
ssh_ciphers: self.ssh_ciphers,
ssh_kexs: self.ssh_kexs,
ssh_macs: self.ssh_macs,
tls_ciphers: self.tls_ciphers,
}
}
}
}
impl DescribedSecurityPolicy {
/// Creates a new builder-style object to manufacture [`DescribedSecurityPolicy`](crate::model::DescribedSecurityPolicy)
pub fn builder() -> crate::model::described_security_policy::Builder {
crate::model::described_security_policy::Builder::default()
}
}
/// <p>The details for an execution object.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedExecution {
/// <p>A unique identifier for the execution of a workflow.</p>
pub execution_id: std::option::Option<std::string::String>,
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub initial_file_location: std::option::Option<crate::model::FileLocation>,
/// <p>A container object for the session details associated with a workflow.</p>
pub service_metadata: std::option::Option<crate::model::ServiceMetadata>,
/// <p>The IAM role associated with the execution.</p>
pub execution_role: std::option::Option<std::string::String>,
/// <p>The IAM logging role associated with the execution.</p>
pub logging_configuration: std::option::Option<crate::model::LoggingConfiguration>,
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub posix_profile: std::option::Option<crate::model::PosixProfile>,
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception. </p>
pub status: std::option::Option<crate::model::ExecutionStatus>,
/// <p>A structure that describes the execution results. This includes a list of the steps along with the details of each step, error type and message (if any), and the <code>OnExceptionSteps</code> structure.</p>
pub results: std::option::Option<crate::model::ExecutionResults>,
}
impl DescribedExecution {
/// <p>A unique identifier for the execution of a workflow.</p>
pub fn execution_id(&self) -> std::option::Option<&str> {
self.execution_id.as_deref()
}
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub fn initial_file_location(&self) -> std::option::Option<&crate::model::FileLocation> {
self.initial_file_location.as_ref()
}
/// <p>A container object for the session details associated with a workflow.</p>
pub fn service_metadata(&self) -> std::option::Option<&crate::model::ServiceMetadata> {
self.service_metadata.as_ref()
}
/// <p>The IAM role associated with the execution.</p>
pub fn execution_role(&self) -> std::option::Option<&str> {
self.execution_role.as_deref()
}
/// <p>The IAM logging role associated with the execution.</p>
pub fn logging_configuration(
&self,
) -> std::option::Option<&crate::model::LoggingConfiguration> {
self.logging_configuration.as_ref()
}
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn posix_profile(&self) -> std::option::Option<&crate::model::PosixProfile> {
self.posix_profile.as_ref()
}
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception. </p>
pub fn status(&self) -> std::option::Option<&crate::model::ExecutionStatus> {
self.status.as_ref()
}
/// <p>A structure that describes the execution results. This includes a list of the steps along with the details of each step, error type and message (if any), and the <code>OnExceptionSteps</code> structure.</p>
pub fn results(&self) -> std::option::Option<&crate::model::ExecutionResults> {
self.results.as_ref()
}
}
impl std::fmt::Debug for DescribedExecution {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedExecution");
formatter.field("execution_id", &self.execution_id);
formatter.field("initial_file_location", &self.initial_file_location);
formatter.field("service_metadata", &self.service_metadata);
formatter.field("execution_role", &self.execution_role);
formatter.field("logging_configuration", &self.logging_configuration);
formatter.field("posix_profile", &self.posix_profile);
formatter.field("status", &self.status);
formatter.field("results", &self.results);
formatter.finish()
}
}
/// See [`DescribedExecution`](crate::model::DescribedExecution)
pub mod described_execution {
/// A builder for [`DescribedExecution`](crate::model::DescribedExecution)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution_id: std::option::Option<std::string::String>,
pub(crate) initial_file_location: std::option::Option<crate::model::FileLocation>,
pub(crate) service_metadata: std::option::Option<crate::model::ServiceMetadata>,
pub(crate) execution_role: std::option::Option<std::string::String>,
pub(crate) logging_configuration: std::option::Option<crate::model::LoggingConfiguration>,
pub(crate) posix_profile: std::option::Option<crate::model::PosixProfile>,
pub(crate) status: std::option::Option<crate::model::ExecutionStatus>,
pub(crate) results: std::option::Option<crate::model::ExecutionResults>,
}
impl Builder {
/// <p>A unique identifier for the execution of a workflow.</p>
pub fn execution_id(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_id = Some(input.into());
self
}
/// <p>A unique identifier for the execution of a workflow.</p>
pub fn set_execution_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.execution_id = input;
self
}
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub fn initial_file_location(mut self, input: crate::model::FileLocation) -> Self {
self.initial_file_location = Some(input);
self
}
/// <p>A structure that describes the Amazon S3 or EFS file location. This is the file location when the execution begins: if the file is being copied, this is the initial (as opposed to destination) file location.</p>
pub fn set_initial_file_location(
mut self,
input: std::option::Option<crate::model::FileLocation>,
) -> Self {
self.initial_file_location = input;
self
}
/// <p>A container object for the session details associated with a workflow.</p>
pub fn service_metadata(mut self, input: crate::model::ServiceMetadata) -> Self {
self.service_metadata = Some(input);
self
}
/// <p>A container object for the session details associated with a workflow.</p>
pub fn set_service_metadata(
mut self,
input: std::option::Option<crate::model::ServiceMetadata>,
) -> Self {
self.service_metadata = input;
self
}
/// <p>The IAM role associated with the execution.</p>
pub fn execution_role(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_role = Some(input.into());
self
}
/// <p>The IAM role associated with the execution.</p>
pub fn set_execution_role(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.execution_role = input;
self
}
/// <p>The IAM logging role associated with the execution.</p>
pub fn logging_configuration(mut self, input: crate::model::LoggingConfiguration) -> Self {
self.logging_configuration = Some(input);
self
}
/// <p>The IAM logging role associated with the execution.</p>
pub fn set_logging_configuration(
mut self,
input: std::option::Option<crate::model::LoggingConfiguration>,
) -> Self {
self.logging_configuration = input;
self
}
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn posix_profile(mut self, input: crate::model::PosixProfile) -> Self {
self.posix_profile = Some(input);
self
}
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn set_posix_profile(
mut self,
input: std::option::Option<crate::model::PosixProfile>,
) -> Self {
self.posix_profile = input;
self
}
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception. </p>
pub fn status(mut self, input: crate::model::ExecutionStatus) -> Self {
self.status = Some(input);
self
}
/// <p>The status is one of the execution. Can be in progress, completed, exception encountered, or handling the exception. </p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ExecutionStatus>,
) -> Self {
self.status = input;
self
}
/// <p>A structure that describes the execution results. This includes a list of the steps along with the details of each step, error type and message (if any), and the <code>OnExceptionSteps</code> structure.</p>
pub fn results(mut self, input: crate::model::ExecutionResults) -> Self {
self.results = Some(input);
self
}
/// <p>A structure that describes the execution results. This includes a list of the steps along with the details of each step, error type and message (if any), and the <code>OnExceptionSteps</code> structure.</p>
pub fn set_results(
mut self,
input: std::option::Option<crate::model::ExecutionResults>,
) -> Self {
self.results = input;
self
}
/// Consumes the builder and constructs a [`DescribedExecution`](crate::model::DescribedExecution)
pub fn build(self) -> crate::model::DescribedExecution {
crate::model::DescribedExecution {
execution_id: self.execution_id,
initial_file_location: self.initial_file_location,
service_metadata: self.service_metadata,
execution_role: self.execution_role,
logging_configuration: self.logging_configuration,
posix_profile: self.posix_profile,
status: self.status,
results: self.results,
}
}
}
}
impl DescribedExecution {
/// Creates a new builder-style object to manufacture [`DescribedExecution`](crate::model::DescribedExecution)
pub fn builder() -> crate::model::described_execution::Builder {
crate::model::described_execution::Builder::default()
}
}
/// <p>Specifies the steps in the workflow, as well as the steps to execute in case of any errors during workflow execution.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionResults {
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub steps: std::option::Option<std::vec::Vec<crate::model::ExecutionStepResult>>,
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub on_exception_steps: std::option::Option<std::vec::Vec<crate::model::ExecutionStepResult>>,
}
impl ExecutionResults {
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub fn steps(&self) -> std::option::Option<&[crate::model::ExecutionStepResult]> {
self.steps.as_deref()
}
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub fn on_exception_steps(&self) -> std::option::Option<&[crate::model::ExecutionStepResult]> {
self.on_exception_steps.as_deref()
}
}
impl std::fmt::Debug for ExecutionResults {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionResults");
formatter.field("steps", &self.steps);
formatter.field("on_exception_steps", &self.on_exception_steps);
formatter.finish()
}
}
/// See [`ExecutionResults`](crate::model::ExecutionResults)
pub mod execution_results {
/// A builder for [`ExecutionResults`](crate::model::ExecutionResults)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) steps: std::option::Option<std::vec::Vec<crate::model::ExecutionStepResult>>,
pub(crate) on_exception_steps:
std::option::Option<std::vec::Vec<crate::model::ExecutionStepResult>>,
}
impl Builder {
/// Appends an item to `steps`.
///
/// To override the contents of this collection use [`set_steps`](Self::set_steps).
///
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub fn steps(mut self, input: crate::model::ExecutionStepResult) -> Self {
let mut v = self.steps.unwrap_or_default();
v.push(input);
self.steps = Some(v);
self
}
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
pub fn set_steps(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ExecutionStepResult>>,
) -> Self {
self.steps = input;
self
}
/// Appends an item to `on_exception_steps`.
///
/// To override the contents of this collection use [`set_on_exception_steps`](Self::set_on_exception_steps).
///
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub fn on_exception_steps(mut self, input: crate::model::ExecutionStepResult) -> Self {
let mut v = self.on_exception_steps.unwrap_or_default();
v.push(input);
self.on_exception_steps = Some(v);
self
}
/// <p>Specifies the steps (actions) to take if errors are encountered during execution of the workflow.</p>
pub fn set_on_exception_steps(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ExecutionStepResult>>,
) -> Self {
self.on_exception_steps = input;
self
}
/// Consumes the builder and constructs a [`ExecutionResults`](crate::model::ExecutionResults)
pub fn build(self) -> crate::model::ExecutionResults {
crate::model::ExecutionResults {
steps: self.steps,
on_exception_steps: self.on_exception_steps,
}
}
}
}
impl ExecutionResults {
/// Creates a new builder-style object to manufacture [`ExecutionResults`](crate::model::ExecutionResults)
pub fn builder() -> crate::model::execution_results::Builder {
crate::model::execution_results::Builder::default()
}
}
/// <p>Specifies the following details for the step: error (if any), outputs (if any), and the step type.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionStepResult {
/// <p>One of the available step types.</p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub step_type: std::option::Option<crate::model::WorkflowStepType>,
/// <p>The values for the key/value pair applied as a tag to the file. Only applicable if the step type is <code>TAG</code>.</p>
pub outputs: std::option::Option<std::string::String>,
/// <p>Specifies the details for an error, if it occurred during execution of the specified workfow step.</p>
pub error: std::option::Option<crate::model::ExecutionError>,
}
impl ExecutionStepResult {
/// <p>One of the available step types.</p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub fn step_type(&self) -> std::option::Option<&crate::model::WorkflowStepType> {
self.step_type.as_ref()
}
/// <p>The values for the key/value pair applied as a tag to the file. Only applicable if the step type is <code>TAG</code>.</p>
pub fn outputs(&self) -> std::option::Option<&str> {
self.outputs.as_deref()
}
/// <p>Specifies the details for an error, if it occurred during execution of the specified workfow step.</p>
pub fn error(&self) -> std::option::Option<&crate::model::ExecutionError> {
self.error.as_ref()
}
}
impl std::fmt::Debug for ExecutionStepResult {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionStepResult");
formatter.field("step_type", &self.step_type);
formatter.field("outputs", &self.outputs);
formatter.field("error", &self.error);
formatter.finish()
}
}
/// See [`ExecutionStepResult`](crate::model::ExecutionStepResult)
pub mod execution_step_result {
/// A builder for [`ExecutionStepResult`](crate::model::ExecutionStepResult)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) step_type: std::option::Option<crate::model::WorkflowStepType>,
pub(crate) outputs: std::option::Option<std::string::String>,
pub(crate) error: std::option::Option<crate::model::ExecutionError>,
}
impl Builder {
/// <p>One of the available step types.</p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub fn step_type(mut self, input: crate::model::WorkflowStepType) -> Self {
self.step_type = Some(input);
self
}
/// <p>One of the available step types.</p>
/// <ul>
/// <li> <p> <i>Copy</i>: copy the file to another location</p> </li>
/// <li> <p> <i>Custom</i>: custom step with a lambda target</p> </li>
/// <li> <p> <i>Delete</i>: delete the file</p> </li>
/// <li> <p> <i>Tag</i>: add a tag to the file</p> </li>
/// </ul>
pub fn set_step_type(
mut self,
input: std::option::Option<crate::model::WorkflowStepType>,
) -> Self {
self.step_type = input;
self
}
/// <p>The values for the key/value pair applied as a tag to the file. Only applicable if the step type is <code>TAG</code>.</p>
pub fn outputs(mut self, input: impl Into<std::string::String>) -> Self {
self.outputs = Some(input.into());
self
}
/// <p>The values for the key/value pair applied as a tag to the file. Only applicable if the step type is <code>TAG</code>.</p>
pub fn set_outputs(mut self, input: std::option::Option<std::string::String>) -> Self {
self.outputs = input;
self
}
/// <p>Specifies the details for an error, if it occurred during execution of the specified workfow step.</p>
pub fn error(mut self, input: crate::model::ExecutionError) -> Self {
self.error = Some(input);
self
}
/// <p>Specifies the details for an error, if it occurred during execution of the specified workfow step.</p>
pub fn set_error(
mut self,
input: std::option::Option<crate::model::ExecutionError>,
) -> Self {
self.error = input;
self
}
/// Consumes the builder and constructs a [`ExecutionStepResult`](crate::model::ExecutionStepResult)
pub fn build(self) -> crate::model::ExecutionStepResult {
crate::model::ExecutionStepResult {
step_type: self.step_type,
outputs: self.outputs,
error: self.error,
}
}
}
}
impl ExecutionStepResult {
/// Creates a new builder-style object to manufacture [`ExecutionStepResult`](crate::model::ExecutionStepResult)
pub fn builder() -> crate::model::execution_step_result::Builder {
crate::model::execution_step_result::Builder::default()
}
}
/// <p>Specifies the error message and type, for an error that occurs during the execution of the workflow.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionError {
/// <p>Specifies the error type: currently, the only valid value is <code>PERMISSION_DENIED</code>, which occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p>
pub r#type: std::option::Option<crate::model::ExecutionErrorType>,
/// <p>Specifies the descriptive message that corresponds to the <code>ErrorType</code>.</p>
pub message: std::option::Option<std::string::String>,
}
impl ExecutionError {
/// <p>Specifies the error type: currently, the only valid value is <code>PERMISSION_DENIED</code>, which occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p>
pub fn r#type(&self) -> std::option::Option<&crate::model::ExecutionErrorType> {
self.r#type.as_ref()
}
/// <p>Specifies the descriptive message that corresponds to the <code>ErrorType</code>.</p>
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Debug for ExecutionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionError");
formatter.field("r#type", &self.r#type);
formatter.field("message", &self.message);
formatter.finish()
}
}
/// See [`ExecutionError`](crate::model::ExecutionError)
pub mod execution_error {
/// A builder for [`ExecutionError`](crate::model::ExecutionError)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) r#type: std::option::Option<crate::model::ExecutionErrorType>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Specifies the error type: currently, the only valid value is <code>PERMISSION_DENIED</code>, which occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p>
pub fn r#type(mut self, input: crate::model::ExecutionErrorType) -> Self {
self.r#type = Some(input);
self
}
/// <p>Specifies the error type: currently, the only valid value is <code>PERMISSION_DENIED</code>, which occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p>
pub fn set_type(
mut self,
input: std::option::Option<crate::model::ExecutionErrorType>,
) -> Self {
self.r#type = input;
self
}
/// <p>Specifies the descriptive message that corresponds to the <code>ErrorType</code>.</p>
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
/// <p>Specifies the descriptive message that corresponds to the <code>ErrorType</code>.</p>
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
/// Consumes the builder and constructs a [`ExecutionError`](crate::model::ExecutionError)
pub fn build(self) -> crate::model::ExecutionError {
crate::model::ExecutionError {
r#type: self.r#type,
message: self.message,
}
}
}
}
impl ExecutionError {
/// Creates a new builder-style object to manufacture [`ExecutionError`](crate::model::ExecutionError)
pub fn builder() -> crate::model::execution_error::Builder {
crate::model::execution_error::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ExecutionErrorType {
#[allow(missing_docs)] // documentation missing in model
PermissionDenied,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for ExecutionErrorType {
fn from(s: &str) -> Self {
match s {
"PERMISSION_DENIED" => ExecutionErrorType::PermissionDenied,
other => ExecutionErrorType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ExecutionErrorType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ExecutionErrorType::from(s))
}
}
impl ExecutionErrorType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
ExecutionErrorType::PermissionDenied => "PERMISSION_DENIED",
ExecutionErrorType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["PERMISSION_DENIED"]
}
}
impl AsRef<str> for ExecutionErrorType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Consists of the logging role and the log group name.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LoggingConfiguration {
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub logging_role: std::option::Option<std::string::String>,
/// <p>The name of the CloudWatch logging group for the Amazon Web Services Transfer server to which this workflow belongs.</p>
pub log_group_name: std::option::Option<std::string::String>,
}
impl LoggingConfiguration {
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn logging_role(&self) -> std::option::Option<&str> {
self.logging_role.as_deref()
}
/// <p>The name of the CloudWatch logging group for the Amazon Web Services Transfer server to which this workflow belongs.</p>
pub fn log_group_name(&self) -> std::option::Option<&str> {
self.log_group_name.as_deref()
}
}
impl std::fmt::Debug for LoggingConfiguration {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LoggingConfiguration");
formatter.field("logging_role", &self.logging_role);
formatter.field("log_group_name", &self.log_group_name);
formatter.finish()
}
}
/// See [`LoggingConfiguration`](crate::model::LoggingConfiguration)
pub mod logging_configuration {
/// A builder for [`LoggingConfiguration`](crate::model::LoggingConfiguration)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) logging_role: std::option::Option<std::string::String>,
pub(crate) log_group_name: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn logging_role(mut self, input: impl Into<std::string::String>) -> Self {
self.logging_role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your CloudWatch logs.</p>
pub fn set_logging_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.logging_role = input;
self
}
/// <p>The name of the CloudWatch logging group for the Amazon Web Services Transfer server to which this workflow belongs.</p>
pub fn log_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.log_group_name = Some(input.into());
self
}
/// <p>The name of the CloudWatch logging group for the Amazon Web Services Transfer server to which this workflow belongs.</p>
pub fn set_log_group_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.log_group_name = input;
self
}
/// Consumes the builder and constructs a [`LoggingConfiguration`](crate::model::LoggingConfiguration)
pub fn build(self) -> crate::model::LoggingConfiguration {
crate::model::LoggingConfiguration {
logging_role: self.logging_role,
log_group_name: self.log_group_name,
}
}
}
}
impl LoggingConfiguration {
/// Creates a new builder-style object to manufacture [`LoggingConfiguration`](crate::model::LoggingConfiguration)
pub fn builder() -> crate::model::logging_configuration::Builder {
crate::model::logging_configuration::Builder::default()
}
}
/// <p>Describes the properties of the access that was specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedAccess {
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub home_directory: std::option::Option<std::string::String>,
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock down the associated access to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the <code>HomeDirectory</code> parameter value.</p>
pub home_directory_mappings:
std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub policy: std::option::Option<std::string::String>,
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub posix_profile: std::option::Option<crate::model::PosixProfile>,
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub role: std::option::Option<std::string::String>,
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub external_id: std::option::Option<std::string::String>,
}
impl DescribedAccess {
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(&self) -> std::option::Option<&str> {
self.home_directory.as_deref()
}
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock down the associated access to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the <code>HomeDirectory</code> parameter value.</p>
pub fn home_directory_mappings(
&self,
) -> std::option::Option<&[crate::model::HomeDirectoryMapEntry]> {
self.home_directory_mappings.as_deref()
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(&self) -> std::option::Option<&crate::model::HomeDirectoryType> {
self.home_directory_type.as_ref()
}
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub fn policy(&self) -> std::option::Option<&str> {
self.policy.as_deref()
}
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn posix_profile(&self) -> std::option::Option<&crate::model::PosixProfile> {
self.posix_profile.as_ref()
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn role(&self) -> std::option::Option<&str> {
self.role.as_deref()
}
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub fn external_id(&self) -> std::option::Option<&str> {
self.external_id.as_deref()
}
}
impl std::fmt::Debug for DescribedAccess {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedAccess");
formatter.field("home_directory", &self.home_directory);
formatter.field("home_directory_mappings", &self.home_directory_mappings);
formatter.field("home_directory_type", &self.home_directory_type);
formatter.field("policy", &self.policy);
formatter.field("posix_profile", &self.posix_profile);
formatter.field("role", &self.role);
formatter.field("external_id", &self.external_id);
formatter.finish()
}
}
/// See [`DescribedAccess`](crate::model::DescribedAccess)
pub mod described_access {
/// A builder for [`DescribedAccess`](crate::model::DescribedAccess)
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) home_directory: std::option::Option<std::string::String>,
pub(crate) home_directory_mappings:
std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
pub(crate) home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
pub(crate) policy: std::option::Option<std::string::String>,
pub(crate) posix_profile: std::option::Option<crate::model::PosixProfile>,
pub(crate) role: std::option::Option<std::string::String>,
pub(crate) external_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn home_directory(mut self, input: impl Into<std::string::String>) -> Self {
self.home_directory = Some(input.into());
self
}
/// <p>The landing directory (folder) for a user when they log in to the server using the client.</p>
/// <p>A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.</p>
pub fn set_home_directory(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.home_directory = input;
self
}
/// Appends an item to `home_directory_mappings`.
///
/// To override the contents of this collection use [`set_home_directory_mappings`](Self::set_home_directory_mappings).
///
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock down the associated access to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the <code>HomeDirectory</code> parameter value.</p>
pub fn home_directory_mappings(
mut self,
input: crate::model::HomeDirectoryMapEntry,
) -> Self {
let mut v = self.home_directory_mappings.unwrap_or_default();
v.push(input);
self.home_directory_mappings = Some(v);
self
}
/// <p>Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Amazon Web Services Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can only be set when <code>HomeDirectoryType</code> is set to <i>LOGICAL</i>.</p>
/// <p>In most cases, you can use this value instead of the session policy to lock down the associated access to the designated home directory ("<code>chroot</code>"). To do this, you can set <code>Entry</code> to '/' and set <code>Target</code> to the <code>HomeDirectory</code> parameter value.</p>
pub fn set_home_directory_mappings(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
) -> Self {
self.home_directory_mappings = input;
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn home_directory_type(mut self, input: crate::model::HomeDirectoryType) -> Self {
self.home_directory_type = Some(input);
self
}
/// <p>The type of landing directory (folder) you want your users' home directory to be when they log into the server. If you set it to <code>PATH</code>, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set it <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or EFS paths visible to your users.</p>
pub fn set_home_directory_type(
mut self,
input: std::option::Option<crate::model::HomeDirectoryType>,
) -> Self {
self.home_directory_type = input;
self
}
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub fn policy(mut self, input: impl Into<std::string::String>) -> Self {
self.policy = Some(input.into());
self
}
/// <p>A session policy for your user so that you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.</p>
pub fn set_policy(mut self, input: std::option::Option<std::string::String>) -> Self {
self.policy = input;
self
}
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn posix_profile(mut self, input: crate::model::PosixProfile) -> Self {
self.posix_profile = Some(input);
self
}
/// <p>The full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users' access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.</p>
pub fn set_posix_profile(
mut self,
input: std::option::Option<crate::model::PosixProfile>,
) -> Self {
self.posix_profile = input;
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn role(mut self, input: impl Into<std::string::String>) -> Self {
self.role = Some(input.into());
self
}
/// <p>Specifies the Amazon Resource Name (ARN) of the IAM role that controls your users' access to your Amazon S3 bucket or EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users' transfer requests.</p>
pub fn set_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role = input;
self
}
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub fn external_id(mut self, input: impl Into<std::string::String>) -> Self {
self.external_id = Some(input.into());
self
}
/// <p>A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web Services Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.</p>
/// <p> <code>Get-ADGroup -Filter {samAccountName -like "<i>YourGroupName</i>*"} -Properties * | Select SamAccountName,ObjectSid</code> </p>
/// <p>In that command, replace <i>YourGroupName</i> with the name of your Active Directory group.</p>
/// <p>The regex used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-</p>
pub fn set_external_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.external_id = input;
self
}
/// Consumes the builder and constructs a [`DescribedAccess`](crate::model::DescribedAccess)
pub fn build(self) -> crate::model::DescribedAccess {
crate::model::DescribedAccess {
home_directory: self.home_directory,
home_directory_mappings: self.home_directory_mappings,
home_directory_type: self.home_directory_type,
policy: self.policy,
posix_profile: self.posix_profile,
role: self.role,
external_id: self.external_id,
}
}
}
}
impl DescribedAccess {
/// Creates a new builder-style object to manufacture [`DescribedAccess`](crate::model::DescribedAccess)
pub fn builder() -> crate::model::described_access::Builder {
crate::model::described_access::Builder::default()
}
}
