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 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509
// 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>
#[doc(hidden)]
pub uid: std::option::Option<i64>,
/// <p>The POSIX group ID used for all EFS operations by this user.</p>
#[doc(hidden)]
pub gid: std::option::Option<i64>,
/// <p>The secondary POSIX group IDs used for all EFS operations by this user.</p>
#[doc(hidden)]
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).
#[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>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HomeDirectoryMapEntry {
/// <p>Represents an entry for <code>HomeDirectoryMappings</code>.</p>
#[doc(hidden)]
pub entry: std::option::Option<std::string::String>,
/// <p>Represents the map target that is used in a <code>HomeDirectorymapEntry</code>.</p>
#[doc(hidden)]
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).
#[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>
/// <p>To remove an associated workflow from a server, you can provide an empty <code>OnUpload</code> object, as in the following example.</p>
/// <p> <code>aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'</code> </p>
#[doc(hidden)]
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>
/// <p>To remove an associated workflow from a server, you can provide an empty <code>OnUpload</code> object, as in the following example.</p>
/// <p> <code>aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'</code> </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).
#[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>
/// <p>To remove an associated workflow from a server, you can provide an empty <code>OnUpload</code> object, as in the following example.</p>
/// <p> <code>aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'</code> </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>
/// <p>To remove an associated workflow from a server, you can provide an empty <code>OnUpload</code> object, as in the following example.</p>
/// <p> <code>aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'</code> </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 that's 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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).
#[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
As2,
#[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 {
"AS2" => Protocol::As2,
"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::As2 => "AS2",
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] {
&["AS2", "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>
#[doc(hidden)]
pub url: std::option::Option<std::string::String>,
/// <p>Provides the type of <code>InvocationRole</code> used to authenticate the user account.</p>
#[doc(hidden)]
pub invocation_role: std::option::Option<std::string::String>,
/// <p>The identifier of the Directory Service directory that you want to stop sharing.</p>
#[doc(hidden)]
pub directory_id: std::option::Option<std::string::String>,
/// <p>The ARN for a lambda function to use for the Identity provider.</p>
#[doc(hidden)]
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 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).
#[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 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 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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).
#[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 IPv4 address, such as the public 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 Family server for the change to take effect. For details on using passive mode (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 Transfer Family</a>. </p>
/// </note>
#[doc(hidden)]
pub passive_ip: std::option::Option<std::string::String>,
/// <p>A property used with Transfer Family 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 <code>CreateServer</code>, 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>
#[doc(hidden)]
pub tls_session_resumption_mode: std::option::Option<crate::model::TlsSessionResumptionMode>,
/// <p>Use the <code>SetStatOption</code> to ignore the error that is generated when the client attempts to use <code>SETSTAT</code> on a file you are uploading to an S3 bucket.</p>
/// <p>Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as <code>SETSTAT</code> when uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.</p>
/// <p>Set the value to <code>ENABLE_NO_OP</code> to have the Transfer Family server ignore the <code>SETSTAT</code> command, and upload files without needing to make any changes to your SFTP client. While the <code>SetStatOption</code> <code>ENABLE_NO_OP</code> setting ignores the error, it does generate a log entry in Amazon CloudWatch Logs, so you can determine when the client is making a <code>SETSTAT</code> call.</p> <note>
/// <p>If you want to preserve the original timestamp for your file, and modify other file attributes using <code>SETSTAT</code>, you can use Amazon EFS as backend storage with Transfer Family.</p>
/// </note>
#[doc(hidden)]
pub set_stat_option: std::option::Option<crate::model::SetStatOption>,
/// <p>Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.</p>
#[doc(hidden)]
pub as2_transports: std::option::Option<std::vec::Vec<crate::model::As2Transport>>,
}
impl ProtocolDetails {
/// <p> Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public 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 Family server for the change to take effect. For details on using passive mode (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 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 Family 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 <code>CreateServer</code>, 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()
}
/// <p>Use the <code>SetStatOption</code> to ignore the error that is generated when the client attempts to use <code>SETSTAT</code> on a file you are uploading to an S3 bucket.</p>
/// <p>Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as <code>SETSTAT</code> when uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.</p>
/// <p>Set the value to <code>ENABLE_NO_OP</code> to have the Transfer Family server ignore the <code>SETSTAT</code> command, and upload files without needing to make any changes to your SFTP client. While the <code>SetStatOption</code> <code>ENABLE_NO_OP</code> setting ignores the error, it does generate a log entry in Amazon CloudWatch Logs, so you can determine when the client is making a <code>SETSTAT</code> call.</p> <note>
/// <p>If you want to preserve the original timestamp for your file, and modify other file attributes using <code>SETSTAT</code>, you can use Amazon EFS as backend storage with Transfer Family.</p>
/// </note>
pub fn set_stat_option(&self) -> std::option::Option<&crate::model::SetStatOption> {
self.set_stat_option.as_ref()
}
/// <p>Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.</p>
pub fn as2_transports(&self) -> std::option::Option<&[crate::model::As2Transport]> {
self.as2_transports.as_deref()
}
}
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.field("set_stat_option", &self.set_stat_option);
formatter.field("as2_transports", &self.as2_transports);
formatter.finish()
}
}
/// See [`ProtocolDetails`](crate::model::ProtocolDetails).
pub mod protocol_details {
/// A builder for [`ProtocolDetails`](crate::model::ProtocolDetails).
#[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>,
pub(crate) set_stat_option: std::option::Option<crate::model::SetStatOption>,
pub(crate) as2_transports: std::option::Option<std::vec::Vec<crate::model::As2Transport>>,
}
impl Builder {
/// <p> Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public 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 Family server for the change to take effect. For details on using passive mode (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 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 IPv4 address, such as the public 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 Family server for the change to take effect. For details on using passive mode (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 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 Family 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 <code>CreateServer</code>, 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 Family 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 <code>CreateServer</code>, 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
}
/// <p>Use the <code>SetStatOption</code> to ignore the error that is generated when the client attempts to use <code>SETSTAT</code> on a file you are uploading to an S3 bucket.</p>
/// <p>Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as <code>SETSTAT</code> when uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.</p>
/// <p>Set the value to <code>ENABLE_NO_OP</code> to have the Transfer Family server ignore the <code>SETSTAT</code> command, and upload files without needing to make any changes to your SFTP client. While the <code>SetStatOption</code> <code>ENABLE_NO_OP</code> setting ignores the error, it does generate a log entry in Amazon CloudWatch Logs, so you can determine when the client is making a <code>SETSTAT</code> call.</p> <note>
/// <p>If you want to preserve the original timestamp for your file, and modify other file attributes using <code>SETSTAT</code>, you can use Amazon EFS as backend storage with Transfer Family.</p>
/// </note>
pub fn set_stat_option(mut self, input: crate::model::SetStatOption) -> Self {
self.set_stat_option = Some(input);
self
}
/// <p>Use the <code>SetStatOption</code> to ignore the error that is generated when the client attempts to use <code>SETSTAT</code> on a file you are uploading to an S3 bucket.</p>
/// <p>Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as <code>SETSTAT</code> when uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.</p>
/// <p>Set the value to <code>ENABLE_NO_OP</code> to have the Transfer Family server ignore the <code>SETSTAT</code> command, and upload files without needing to make any changes to your SFTP client. While the <code>SetStatOption</code> <code>ENABLE_NO_OP</code> setting ignores the error, it does generate a log entry in Amazon CloudWatch Logs, so you can determine when the client is making a <code>SETSTAT</code> call.</p> <note>
/// <p>If you want to preserve the original timestamp for your file, and modify other file attributes using <code>SETSTAT</code>, you can use Amazon EFS as backend storage with Transfer Family.</p>
/// </note>
pub fn set_set_stat_option(
mut self,
input: std::option::Option<crate::model::SetStatOption>,
) -> Self {
self.set_stat_option = input;
self
}
/// Appends an item to `as2_transports`.
///
/// To override the contents of this collection use [`set_as2_transports`](Self::set_as2_transports).
///
/// <p>Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.</p>
pub fn as2_transports(mut self, input: crate::model::As2Transport) -> Self {
let mut v = self.as2_transports.unwrap_or_default();
v.push(input);
self.as2_transports = Some(v);
self
}
/// <p>Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.</p>
pub fn set_as2_transports(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::As2Transport>>,
) -> Self {
self.as2_transports = 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,
set_stat_option: self.set_stat_option,
as2_transports: self.as2_transports,
}
}
}
}
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 As2Transport {
#[allow(missing_docs)] // documentation missing in model
Http,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for As2Transport {
fn from(s: &str) -> Self {
match s {
"HTTP" => As2Transport::Http,
other => As2Transport::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for As2Transport {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(As2Transport::from(s))
}
}
impl As2Transport {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
As2Transport::Http => "HTTP",
As2Transport::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["HTTP"]
}
}
impl AsRef<str> for As2Transport {
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 SetStatOption {
#[allow(missing_docs)] // documentation missing in model
Default,
#[allow(missing_docs)] // documentation missing in model
EnableNoOp,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for SetStatOption {
fn from(s: &str) -> Self {
match s {
"DEFAULT" => SetStatOption::Default,
"ENABLE_NO_OP" => SetStatOption::EnableNoOp,
other => SetStatOption::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for SetStatOption {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SetStatOption::from(s))
}
}
impl SetStatOption {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
SetStatOption::Default => "DEFAULT",
SetStatOption::EnableNoOp => "ENABLE_NO_OP",
SetStatOption::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["DEFAULT", "ENABLE_NO_OP"]
}
}
impl AsRef<str> for SetStatOption {
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 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>Contains the details for a connector object. The connector object is used for AS2 outbound processes, to connect the Transfer Family customer with the trading partner.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct As2ConnectorConfig {
/// <p>A unique identifier for the AS2 process.</p>
#[doc(hidden)]
pub local_profile_id: std::option::Option<std::string::String>,
/// <p>A unique identifier for the partner for the connector.</p>
#[doc(hidden)]
pub partner_profile_id: std::option::Option<std::string::String>,
/// <p>A short description to help identify the connector.</p>
#[doc(hidden)]
pub message_subject: std::option::Option<std::string::String>,
/// <p>Specifies whether the AS2 file is compressed.</p>
#[doc(hidden)]
pub compression: std::option::Option<crate::model::CompressionEnum>,
/// <p>The algorithm that is used to encrypt the file.</p>
#[doc(hidden)]
pub encryption_algorithm: std::option::Option<crate::model::EncryptionAlg>,
/// <p>The algorithm that is used to sign the AS2 transfers for this partner profile.</p>
#[doc(hidden)]
pub signing_algorithm: std::option::Option<crate::model::SigningAlg>,
/// <p>The signing algorithm for the MDN response.</p>
#[doc(hidden)]
pub mdn_signing_algorithm: std::option::Option<crate::model::MdnSigningAlg>,
/// <p>Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:</p>
/// <ul>
/// <li> <p> <code>SYNC</code>: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not).</p> </li>
/// <li> <p> <code>NONE</code>: Specifies that no MDN response is required.</p> </li>
/// </ul>
#[doc(hidden)]
pub mdn_response: std::option::Option<crate::model::MdnResponse>,
}
impl As2ConnectorConfig {
/// <p>A unique identifier for the AS2 process.</p>
pub fn local_profile_id(&self) -> std::option::Option<&str> {
self.local_profile_id.as_deref()
}
/// <p>A unique identifier for the partner for the connector.</p>
pub fn partner_profile_id(&self) -> std::option::Option<&str> {
self.partner_profile_id.as_deref()
}
/// <p>A short description to help identify the connector.</p>
pub fn message_subject(&self) -> std::option::Option<&str> {
self.message_subject.as_deref()
}
/// <p>Specifies whether the AS2 file is compressed.</p>
pub fn compression(&self) -> std::option::Option<&crate::model::CompressionEnum> {
self.compression.as_ref()
}
/// <p>The algorithm that is used to encrypt the file.</p>
pub fn encryption_algorithm(&self) -> std::option::Option<&crate::model::EncryptionAlg> {
self.encryption_algorithm.as_ref()
}
/// <p>The algorithm that is used to sign the AS2 transfers for this partner profile.</p>
pub fn signing_algorithm(&self) -> std::option::Option<&crate::model::SigningAlg> {
self.signing_algorithm.as_ref()
}
/// <p>The signing algorithm for the MDN response.</p>
pub fn mdn_signing_algorithm(&self) -> std::option::Option<&crate::model::MdnSigningAlg> {
self.mdn_signing_algorithm.as_ref()
}
/// <p>Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:</p>
/// <ul>
/// <li> <p> <code>SYNC</code>: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not).</p> </li>
/// <li> <p> <code>NONE</code>: Specifies that no MDN response is required.</p> </li>
/// </ul>
pub fn mdn_response(&self) -> std::option::Option<&crate::model::MdnResponse> {
self.mdn_response.as_ref()
}
}
impl std::fmt::Debug for As2ConnectorConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("As2ConnectorConfig");
formatter.field("local_profile_id", &self.local_profile_id);
formatter.field("partner_profile_id", &self.partner_profile_id);
formatter.field("message_subject", &self.message_subject);
formatter.field("compression", &self.compression);
formatter.field("encryption_algorithm", &self.encryption_algorithm);
formatter.field("signing_algorithm", &self.signing_algorithm);
formatter.field("mdn_signing_algorithm", &self.mdn_signing_algorithm);
formatter.field("mdn_response", &self.mdn_response);
formatter.finish()
}
}
/// See [`As2ConnectorConfig`](crate::model::As2ConnectorConfig).
pub mod as2_connector_config {
/// A builder for [`As2ConnectorConfig`](crate::model::As2ConnectorConfig).
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) local_profile_id: std::option::Option<std::string::String>,
pub(crate) partner_profile_id: std::option::Option<std::string::String>,
pub(crate) message_subject: std::option::Option<std::string::String>,
pub(crate) compression: std::option::Option<crate::model::CompressionEnum>,
pub(crate) encryption_algorithm: std::option::Option<crate::model::EncryptionAlg>,
pub(crate) signing_algorithm: std::option::Option<crate::model::SigningAlg>,
pub(crate) mdn_signing_algorithm: std::option::Option<crate::model::MdnSigningAlg>,
pub(crate) mdn_response: std::option::Option<crate::model::MdnResponse>,
}
impl Builder {
/// <p>A unique identifier for the AS2 process.</p>
pub fn local_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.local_profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn set_local_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.local_profile_id = input;
self
}
/// <p>A unique identifier for the partner for the connector.</p>
pub fn partner_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.partner_profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the partner for the connector.</p>
pub fn set_partner_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.partner_profile_id = input;
self
}
/// <p>A short description to help identify the connector.</p>
pub fn message_subject(mut self, input: impl Into<std::string::String>) -> Self {
self.message_subject = Some(input.into());
self
}
/// <p>A short description to help identify the connector.</p>
pub fn set_message_subject(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.message_subject = input;
self
}
/// <p>Specifies whether the AS2 file is compressed.</p>
pub fn compression(mut self, input: crate::model::CompressionEnum) -> Self {
self.compression = Some(input);
self
}
/// <p>Specifies whether the AS2 file is compressed.</p>
pub fn set_compression(
mut self,
input: std::option::Option<crate::model::CompressionEnum>,
) -> Self {
self.compression = input;
self
}
/// <p>The algorithm that is used to encrypt the file.</p>
pub fn encryption_algorithm(mut self, input: crate::model::EncryptionAlg) -> Self {
self.encryption_algorithm = Some(input);
self
}
/// <p>The algorithm that is used to encrypt the file.</p>
pub fn set_encryption_algorithm(
mut self,
input: std::option::Option<crate::model::EncryptionAlg>,
) -> Self {
self.encryption_algorithm = input;
self
}
/// <p>The algorithm that is used to sign the AS2 transfers for this partner profile.</p>
pub fn signing_algorithm(mut self, input: crate::model::SigningAlg) -> Self {
self.signing_algorithm = Some(input);
self
}
/// <p>The algorithm that is used to sign the AS2 transfers for this partner profile.</p>
pub fn set_signing_algorithm(
mut self,
input: std::option::Option<crate::model::SigningAlg>,
) -> Self {
self.signing_algorithm = input;
self
}
/// <p>The signing algorithm for the MDN response.</p>
pub fn mdn_signing_algorithm(mut self, input: crate::model::MdnSigningAlg) -> Self {
self.mdn_signing_algorithm = Some(input);
self
}
/// <p>The signing algorithm for the MDN response.</p>
pub fn set_mdn_signing_algorithm(
mut self,
input: std::option::Option<crate::model::MdnSigningAlg>,
) -> Self {
self.mdn_signing_algorithm = input;
self
}
/// <p>Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:</p>
/// <ul>
/// <li> <p> <code>SYNC</code>: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not).</p> </li>
/// <li> <p> <code>NONE</code>: Specifies that no MDN response is required.</p> </li>
/// </ul>
pub fn mdn_response(mut self, input: crate::model::MdnResponse) -> Self {
self.mdn_response = Some(input);
self
}
/// <p>Used for outbound requests (from an Transfer Family server to a partner AS2 server) to determine whether the partner response for transfers is synchronous or asynchronous. Specify either of the following values:</p>
/// <ul>
/// <li> <p> <code>SYNC</code>: The system expects a synchronous MDN response, confirming that the file was transferred successfully (or not).</p> </li>
/// <li> <p> <code>NONE</code>: Specifies that no MDN response is required.</p> </li>
/// </ul>
pub fn set_mdn_response(
mut self,
input: std::option::Option<crate::model::MdnResponse>,
) -> Self {
self.mdn_response = input;
self
}
/// Consumes the builder and constructs a [`As2ConnectorConfig`](crate::model::As2ConnectorConfig).
pub fn build(self) -> crate::model::As2ConnectorConfig {
crate::model::As2ConnectorConfig {
local_profile_id: self.local_profile_id,
partner_profile_id: self.partner_profile_id,
message_subject: self.message_subject,
compression: self.compression,
encryption_algorithm: self.encryption_algorithm,
signing_algorithm: self.signing_algorithm,
mdn_signing_algorithm: self.mdn_signing_algorithm,
mdn_response: self.mdn_response,
}
}
}
}
impl As2ConnectorConfig {
/// Creates a new builder-style object to manufacture [`As2ConnectorConfig`](crate::model::As2ConnectorConfig).
pub fn builder() -> crate::model::as2_connector_config::Builder {
crate::model::as2_connector_config::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 MdnResponse {
#[allow(missing_docs)] // documentation missing in model
None,
#[allow(missing_docs)] // documentation missing in model
Sync,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for MdnResponse {
fn from(s: &str) -> Self {
match s {
"NONE" => MdnResponse::None,
"SYNC" => MdnResponse::Sync,
other => MdnResponse::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for MdnResponse {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MdnResponse::from(s))
}
}
impl MdnResponse {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
MdnResponse::None => "NONE",
MdnResponse::Sync => "SYNC",
MdnResponse::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["NONE", "SYNC"]
}
}
impl AsRef<str> for MdnResponse {
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 MdnSigningAlg {
#[allow(missing_docs)] // documentation missing in model
Default,
#[allow(missing_docs)] // documentation missing in model
None,
#[allow(missing_docs)] // documentation missing in model
Sha1,
#[allow(missing_docs)] // documentation missing in model
Sha256,
#[allow(missing_docs)] // documentation missing in model
Sha384,
#[allow(missing_docs)] // documentation missing in model
Sha512,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for MdnSigningAlg {
fn from(s: &str) -> Self {
match s {
"DEFAULT" => MdnSigningAlg::Default,
"NONE" => MdnSigningAlg::None,
"SHA1" => MdnSigningAlg::Sha1,
"SHA256" => MdnSigningAlg::Sha256,
"SHA384" => MdnSigningAlg::Sha384,
"SHA512" => MdnSigningAlg::Sha512,
other => MdnSigningAlg::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for MdnSigningAlg {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MdnSigningAlg::from(s))
}
}
impl MdnSigningAlg {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
MdnSigningAlg::Default => "DEFAULT",
MdnSigningAlg::None => "NONE",
MdnSigningAlg::Sha1 => "SHA1",
MdnSigningAlg::Sha256 => "SHA256",
MdnSigningAlg::Sha384 => "SHA384",
MdnSigningAlg::Sha512 => "SHA512",
MdnSigningAlg::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["DEFAULT", "NONE", "SHA1", "SHA256", "SHA384", "SHA512"]
}
}
impl AsRef<str> for MdnSigningAlg {
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 SigningAlg {
#[allow(missing_docs)] // documentation missing in model
None,
#[allow(missing_docs)] // documentation missing in model
Sha1,
#[allow(missing_docs)] // documentation missing in model
Sha256,
#[allow(missing_docs)] // documentation missing in model
Sha384,
#[allow(missing_docs)] // documentation missing in model
Sha512,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for SigningAlg {
fn from(s: &str) -> Self {
match s {
"NONE" => SigningAlg::None,
"SHA1" => SigningAlg::Sha1,
"SHA256" => SigningAlg::Sha256,
"SHA384" => SigningAlg::Sha384,
"SHA512" => SigningAlg::Sha512,
other => SigningAlg::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for SigningAlg {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SigningAlg::from(s))
}
}
impl SigningAlg {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
SigningAlg::None => "NONE",
SigningAlg::Sha1 => "SHA1",
SigningAlg::Sha256 => "SHA256",
SigningAlg::Sha384 => "SHA384",
SigningAlg::Sha512 => "SHA512",
SigningAlg::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["NONE", "SHA1", "SHA256", "SHA384", "SHA512"]
}
}
impl AsRef<str> for SigningAlg {
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 EncryptionAlg {
#[allow(missing_docs)] // documentation missing in model
Aes128Cbc,
#[allow(missing_docs)] // documentation missing in model
Aes192Cbc,
#[allow(missing_docs)] // documentation missing in model
Aes256Cbc,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for EncryptionAlg {
fn from(s: &str) -> Self {
match s {
"AES128_CBC" => EncryptionAlg::Aes128Cbc,
"AES192_CBC" => EncryptionAlg::Aes192Cbc,
"AES256_CBC" => EncryptionAlg::Aes256Cbc,
other => EncryptionAlg::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for EncryptionAlg {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(EncryptionAlg::from(s))
}
}
impl EncryptionAlg {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
EncryptionAlg::Aes128Cbc => "AES128_CBC",
EncryptionAlg::Aes192Cbc => "AES192_CBC",
EncryptionAlg::Aes256Cbc => "AES256_CBC",
EncryptionAlg::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["AES128_CBC", "AES192_CBC", "AES256_CBC"]
}
}
impl AsRef<str> for EncryptionAlg {
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 CompressionEnum {
#[allow(missing_docs)] // documentation missing in model
Disabled,
#[allow(missing_docs)] // documentation missing in model
Zlib,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for CompressionEnum {
fn from(s: &str) -> Self {
match s {
"DISABLED" => CompressionEnum::Disabled,
"ZLIB" => CompressionEnum::Zlib,
other => CompressionEnum::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for CompressionEnum {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CompressionEnum::from(s))
}
}
impl CompressionEnum {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
CompressionEnum::Disabled => "DISABLED",
CompressionEnum::Zlib => "ZLIB",
CompressionEnum::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["DISABLED", "ZLIB"]
}
}
impl AsRef<str> for CompressionEnum {
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 AgreementStatusType {
#[allow(missing_docs)] // documentation missing in model
Active,
#[allow(missing_docs)] // documentation missing in model
Inactive,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for AgreementStatusType {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => AgreementStatusType::Active,
"INACTIVE" => AgreementStatusType::Inactive,
other => AgreementStatusType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for AgreementStatusType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AgreementStatusType::from(s))
}
}
impl AgreementStatusType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
AgreementStatusType::Active => "ACTIVE",
AgreementStatusType::Inactive => "INACTIVE",
AgreementStatusType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["ACTIVE", "INACTIVE"]
}
}
impl AsRef<str> for AgreementStatusType {
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>
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
/// <p>Contains one or more values that you assigned to the key name you create.</p>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
pub workflow_id: std::option::Option<std::string::String>,
/// <p>Specifies the text description for the workflow.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>Specifies the unique Amazon Resource Name (ARN) for the workflow.</p>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub home_directory: std::option::Option<std::string::String>,
/// <p>The type of landing directory (folder) that you want your users' home directory to be when they log in to 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 Amazon EFS paths visible to your users.</p>
#[doc(hidden)]
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>
#[doc(hidden)]
pub role: std::option::Option<std::string::String>,
/// <p>Specifies the number of SSH public keys stored for the user you specified.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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) that you want your users' home directory to be when they log in to 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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).
#[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) that you want your users' home directory to be when they log in to 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 Amazon 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) that you want your users' home directory to be when they log in to 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
#[doc(hidden)]
pub domain: std::option::Option<crate::model::Domain>,
/// <p>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or the <code>IdentityProviderDetails</code> data type.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
pub endpoint_type: std::option::Option<crate::model::EndpointType>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.</p>
#[doc(hidden)]
pub logging_role: std::option::Option<std::string::String>,
/// <p>Specifies the unique system assigned identifier for the servers that were listed.</p>
#[doc(hidden)]
pub server_id: std::option::Option<std::string::String>,
/// <p>The condition of 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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>The condition of 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).
#[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>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or 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>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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>The condition of 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>The condition of 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 the properties of the profile that was specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedProfile {
/// <p>The Amazon Resource Name (ARN) of the specified profile.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>A unique identifier for the local or partner AS2 profile.</p>
#[doc(hidden)]
pub profile_id: std::option::Option<std::string::String>,
/// <p>The unique identifier for the AS2 process.</p>
#[doc(hidden)]
pub as2_id: std::option::Option<std::string::String>,
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
#[doc(hidden)]
pub profile_type: std::option::Option<crate::model::ProfileType>,
}
impl ListedProfile {
/// <p>The Amazon Resource Name (ARN) of the specified profile.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>A unique identifier for the local or partner AS2 profile.</p>
pub fn profile_id(&self) -> std::option::Option<&str> {
self.profile_id.as_deref()
}
/// <p>The unique identifier for the AS2 process.</p>
pub fn as2_id(&self) -> std::option::Option<&str> {
self.as2_id.as_deref()
}
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
pub fn profile_type(&self) -> std::option::Option<&crate::model::ProfileType> {
self.profile_type.as_ref()
}
}
impl std::fmt::Debug for ListedProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedProfile");
formatter.field("arn", &self.arn);
formatter.field("profile_id", &self.profile_id);
formatter.field("as2_id", &self.as2_id);
formatter.field("profile_type", &self.profile_type);
formatter.finish()
}
}
/// See [`ListedProfile`](crate::model::ListedProfile).
pub mod listed_profile {
/// A builder for [`ListedProfile`](crate::model::ListedProfile).
#[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) profile_id: std::option::Option<std::string::String>,
pub(crate) as2_id: std::option::Option<std::string::String>,
pub(crate) profile_type: std::option::Option<crate::model::ProfileType>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the specified profile.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the specified profile.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>A unique identifier for the local or partner AS2 profile.</p>
pub fn profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the local or partner AS2 profile.</p>
pub fn set_profile_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.profile_id = input;
self
}
/// <p>The unique identifier for the AS2 process.</p>
pub fn as2_id(mut self, input: impl Into<std::string::String>) -> Self {
self.as2_id = Some(input.into());
self
}
/// <p>The unique identifier for the AS2 process.</p>
pub fn set_as2_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.as2_id = input;
self
}
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
pub fn profile_type(mut self, input: crate::model::ProfileType) -> Self {
self.profile_type = Some(input);
self
}
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
pub fn set_profile_type(
mut self,
input: std::option::Option<crate::model::ProfileType>,
) -> Self {
self.profile_type = input;
self
}
/// Consumes the builder and constructs a [`ListedProfile`](crate::model::ListedProfile).
pub fn build(self) -> crate::model::ListedProfile {
crate::model::ListedProfile {
arn: self.arn,
profile_id: self.profile_id,
as2_id: self.as2_id,
profile_type: self.profile_type,
}
}
}
}
impl ListedProfile {
/// Creates a new builder-style object to manufacture [`ListedProfile`](crate::model::ListedProfile).
pub fn builder() -> crate::model::listed_profile::Builder {
crate::model::listed_profile::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 ProfileType {
#[allow(missing_docs)] // documentation missing in model
Local,
#[allow(missing_docs)] // documentation missing in model
Partner,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for ProfileType {
fn from(s: &str) -> Self {
match s {
"LOCAL" => ProfileType::Local,
"PARTNER" => ProfileType::Partner,
other => ProfileType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ProfileType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ProfileType::from(s))
}
}
impl ProfileType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
ProfileType::Local => "LOCAL",
ProfileType::Partner => "PARTNER",
ProfileType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["LOCAL", "PARTNER"]
}
}
impl AsRef<str> for ProfileType {
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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub initial_file_location: std::option::Option<crate::model::FileLocation>,
/// <p>A container object for the session details that are associated with a workflow.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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 that are 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).
#[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 that are 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 that are 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 that are 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>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
pub user_name: std::option::Option<std::string::String>,
/// <p>The system-assigned unique identifier for a Transfer server instance. </p>
#[doc(hidden)]
pub server_id: std::option::Option<std::string::String>,
/// <p>The system-assigned unique identifier for a session that corresponds to the workflow.</p>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
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>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
pub file_system_id: std::option::Option<std::string::String>,
/// <p>The pathname for the folder being used by a workflow.</p>
#[doc(hidden)]
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).
#[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 that's 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>
#[doc(hidden)]
pub bucket: std::option::Option<std::string::String>,
/// <p>The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.</p>
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
/// <p>Specifies the file version.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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 Amazon 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).
#[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 Amazon 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 Amazon 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>Returns details of the connector that is specified.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedConnector {
/// <p>The Amazon Resource Name (ARN) of the specified connector.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the connector.</p>
#[doc(hidden)]
pub connector_id: std::option::Option<std::string::String>,
/// <p>The URL of the partner's AS2 endpoint.</p>
#[doc(hidden)]
pub url: std::option::Option<std::string::String>,
}
impl ListedConnector {
/// <p>The Amazon Resource Name (ARN) of the specified connector.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The unique identifier for the connector.</p>
pub fn connector_id(&self) -> std::option::Option<&str> {
self.connector_id.as_deref()
}
/// <p>The URL of the partner's AS2 endpoint.</p>
pub fn url(&self) -> std::option::Option<&str> {
self.url.as_deref()
}
}
impl std::fmt::Debug for ListedConnector {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedConnector");
formatter.field("arn", &self.arn);
formatter.field("connector_id", &self.connector_id);
formatter.field("url", &self.url);
formatter.finish()
}
}
/// See [`ListedConnector`](crate::model::ListedConnector).
pub mod listed_connector {
/// A builder for [`ListedConnector`](crate::model::ListedConnector).
#[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) connector_id: std::option::Option<std::string::String>,
pub(crate) url: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the specified connector.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the specified connector.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The unique identifier for the connector.</p>
pub fn connector_id(mut self, input: impl Into<std::string::String>) -> Self {
self.connector_id = Some(input.into());
self
}
/// <p>The unique identifier for the connector.</p>
pub fn set_connector_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.connector_id = input;
self
}
/// <p>The URL of the partner's AS2 endpoint.</p>
pub fn url(mut self, input: impl Into<std::string::String>) -> Self {
self.url = Some(input.into());
self
}
/// <p>The URL of the partner's AS2 endpoint.</p>
pub fn set_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.url = input;
self
}
/// Consumes the builder and constructs a [`ListedConnector`](crate::model::ListedConnector).
pub fn build(self) -> crate::model::ListedConnector {
crate::model::ListedConnector {
arn: self.arn,
connector_id: self.connector_id,
url: self.url,
}
}
}
}
impl ListedConnector {
/// Creates a new builder-style object to manufacture [`ListedConnector`](crate::model::ListedConnector).
pub fn builder() -> crate::model::listed_connector::Builder {
crate::model::listed_connector::Builder::default()
}
}
/// <p>Describes the properties of a certificate.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedCertificate {
/// <p>The Amazon Resource Name (ARN) of the specified certificate.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
#[doc(hidden)]
pub certificate_id: std::option::Option<std::string::String>,
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
#[doc(hidden)]
pub usage: std::option::Option<crate::model::CertificateUsageType>,
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::CertificateStatusType>,
/// <p>An optional date that specifies when the certificate becomes active.</p>
#[doc(hidden)]
pub active_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
#[doc(hidden)]
pub inactive_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The type for the certificate. If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::CertificateType>,
/// <p>The name or short description that's used to identify the certificate.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
}
impl ListedCertificate {
/// <p>The Amazon Resource Name (ARN) of the specified certificate.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn certificate_id(&self) -> std::option::Option<&str> {
self.certificate_id.as_deref()
}
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
pub fn usage(&self) -> std::option::Option<&crate::model::CertificateUsageType> {
self.usage.as_ref()
}
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
pub fn status(&self) -> std::option::Option<&crate::model::CertificateStatusType> {
self.status.as_ref()
}
/// <p>An optional date that specifies when the certificate becomes active.</p>
pub fn active_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.active_date.as_ref()
}
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
pub fn inactive_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.inactive_date.as_ref()
}
/// <p>The type for the certificate. If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
pub fn r#type(&self) -> std::option::Option<&crate::model::CertificateType> {
self.r#type.as_ref()
}
/// <p>The name or short description that's used to identify the certificate.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
}
impl std::fmt::Debug for ListedCertificate {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedCertificate");
formatter.field("arn", &self.arn);
formatter.field("certificate_id", &self.certificate_id);
formatter.field("usage", &self.usage);
formatter.field("status", &self.status);
formatter.field("active_date", &self.active_date);
formatter.field("inactive_date", &self.inactive_date);
formatter.field("r#type", &self.r#type);
formatter.field("description", &self.description);
formatter.finish()
}
}
/// See [`ListedCertificate`](crate::model::ListedCertificate).
pub mod listed_certificate {
/// A builder for [`ListedCertificate`](crate::model::ListedCertificate).
#[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_id: std::option::Option<std::string::String>,
pub(crate) usage: std::option::Option<crate::model::CertificateUsageType>,
pub(crate) status: std::option::Option<crate::model::CertificateStatusType>,
pub(crate) active_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) inactive_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) r#type: std::option::Option<crate::model::CertificateType>,
pub(crate) description: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the specified certificate.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the specified certificate.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn certificate_id(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate_id = Some(input.into());
self
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn set_certificate_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.certificate_id = input;
self
}
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
pub fn usage(mut self, input: crate::model::CertificateUsageType) -> Self {
self.usage = Some(input);
self
}
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
pub fn set_usage(
mut self,
input: std::option::Option<crate::model::CertificateUsageType>,
) -> Self {
self.usage = input;
self
}
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
pub fn status(mut self, input: crate::model::CertificateStatusType) -> Self {
self.status = Some(input);
self
}
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::CertificateStatusType>,
) -> Self {
self.status = input;
self
}
/// <p>An optional date that specifies when the certificate becomes active.</p>
pub fn active_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.active_date = Some(input);
self
}
/// <p>An optional date that specifies when the certificate becomes active.</p>
pub fn set_active_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.active_date = input;
self
}
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
pub fn inactive_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inactive_date = Some(input);
self
}
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
pub fn set_inactive_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inactive_date = input;
self
}
/// <p>The type for the certificate. If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
pub fn r#type(mut self, input: crate::model::CertificateType) -> Self {
self.r#type = Some(input);
self
}
/// <p>The type for the certificate. If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
pub fn set_type(
mut self,
input: std::option::Option<crate::model::CertificateType>,
) -> Self {
self.r#type = input;
self
}
/// <p>The name or short description that's used to identify the certificate.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The name or short description that's used to identify the certificate.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// Consumes the builder and constructs a [`ListedCertificate`](crate::model::ListedCertificate).
pub fn build(self) -> crate::model::ListedCertificate {
crate::model::ListedCertificate {
arn: self.arn,
certificate_id: self.certificate_id,
usage: self.usage,
status: self.status,
active_date: self.active_date,
inactive_date: self.inactive_date,
r#type: self.r#type,
description: self.description,
}
}
}
}
impl ListedCertificate {
/// Creates a new builder-style object to manufacture [`ListedCertificate`](crate::model::ListedCertificate).
pub fn builder() -> crate::model::listed_certificate::Builder {
crate::model::listed_certificate::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 CertificateType {
#[allow(missing_docs)] // documentation missing in model
Certificate,
#[allow(missing_docs)] // documentation missing in model
CertificateWithPrivateKey,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for CertificateType {
fn from(s: &str) -> Self {
match s {
"CERTIFICATE" => CertificateType::Certificate,
"CERTIFICATE_WITH_PRIVATE_KEY" => CertificateType::CertificateWithPrivateKey,
other => CertificateType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for CertificateType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CertificateType::from(s))
}
}
impl CertificateType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
CertificateType::Certificate => "CERTIFICATE",
CertificateType::CertificateWithPrivateKey => "CERTIFICATE_WITH_PRIVATE_KEY",
CertificateType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["CERTIFICATE", "CERTIFICATE_WITH_PRIVATE_KEY"]
}
}
impl AsRef<str> for CertificateType {
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 CertificateStatusType {
#[allow(missing_docs)] // documentation missing in model
Active,
#[allow(missing_docs)] // documentation missing in model
Inactive,
#[allow(missing_docs)] // documentation missing in model
PendingRotation,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for CertificateStatusType {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => CertificateStatusType::Active,
"INACTIVE" => CertificateStatusType::Inactive,
"PENDING_ROTATION" => CertificateStatusType::PendingRotation,
other => CertificateStatusType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for CertificateStatusType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CertificateStatusType::from(s))
}
}
impl CertificateStatusType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
CertificateStatusType::Active => "ACTIVE",
CertificateStatusType::Inactive => "INACTIVE",
CertificateStatusType::PendingRotation => "PENDING_ROTATION",
CertificateStatusType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["ACTIVE", "INACTIVE", "PENDING_ROTATION"]
}
}
impl AsRef<str> for CertificateStatusType {
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 CertificateUsageType {
#[allow(missing_docs)] // documentation missing in model
Encryption,
#[allow(missing_docs)] // documentation missing in model
Signing,
/// Unknown contains new variants that have been added since this code was generated.
Unknown(String),
}
impl std::convert::From<&str> for CertificateUsageType {
fn from(s: &str) -> Self {
match s {
"ENCRYPTION" => CertificateUsageType::Encryption,
"SIGNING" => CertificateUsageType::Signing,
other => CertificateUsageType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for CertificateUsageType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(CertificateUsageType::from(s))
}
}
impl CertificateUsageType {
/// Returns the `&str` value of the enum member.
pub fn as_str(&self) -> &str {
match self {
CertificateUsageType::Encryption => "ENCRYPTION",
CertificateUsageType::Signing => "SIGNING",
CertificateUsageType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&["ENCRYPTION", "SIGNING"]
}
}
impl AsRef<str> for CertificateUsageType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
/// <p>Describes the properties of an agreement.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListedAgreement {
/// <p>The Amazon Resource Name (ARN) of the specified agreement.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
#[doc(hidden)]
pub agreement_id: std::option::Option<std::string::String>,
/// <p>The current description for the agreement. You can change it by calling the <code>UpdateAgreement</code> operation and providing a new description. </p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The agreement can be either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::AgreementStatusType>,
/// <p>The unique identifier for the agreement.</p>
#[doc(hidden)]
pub server_id: std::option::Option<std::string::String>,
/// <p>A unique identifier for the AS2 process.</p>
#[doc(hidden)]
pub local_profile_id: std::option::Option<std::string::String>,
/// <p>A unique identifier for the partner process.</p>
#[doc(hidden)]
pub partner_profile_id: std::option::Option<std::string::String>,
}
impl ListedAgreement {
/// <p>The Amazon Resource Name (ARN) of the specified agreement.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
pub fn agreement_id(&self) -> std::option::Option<&str> {
self.agreement_id.as_deref()
}
/// <p>The current description for the agreement. You can change it by calling the <code>UpdateAgreement</code> operation and providing a new description. </p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The agreement can be either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
pub fn status(&self) -> std::option::Option<&crate::model::AgreementStatusType> {
self.status.as_ref()
}
/// <p>The unique identifier for the agreement.</p>
pub fn server_id(&self) -> std::option::Option<&str> {
self.server_id.as_deref()
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn local_profile_id(&self) -> std::option::Option<&str> {
self.local_profile_id.as_deref()
}
/// <p>A unique identifier for the partner process.</p>
pub fn partner_profile_id(&self) -> std::option::Option<&str> {
self.partner_profile_id.as_deref()
}
}
impl std::fmt::Debug for ListedAgreement {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListedAgreement");
formatter.field("arn", &self.arn);
formatter.field("agreement_id", &self.agreement_id);
formatter.field("description", &self.description);
formatter.field("status", &self.status);
formatter.field("server_id", &self.server_id);
formatter.field("local_profile_id", &self.local_profile_id);
formatter.field("partner_profile_id", &self.partner_profile_id);
formatter.finish()
}
}
/// See [`ListedAgreement`](crate::model::ListedAgreement).
pub mod listed_agreement {
/// A builder for [`ListedAgreement`](crate::model::ListedAgreement).
#[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) agreement_id: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::AgreementStatusType>,
pub(crate) server_id: std::option::Option<std::string::String>,
pub(crate) local_profile_id: std::option::Option<std::string::String>,
pub(crate) partner_profile_id: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the specified agreement.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the specified agreement.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
pub fn agreement_id(mut self, input: impl Into<std::string::String>) -> Self {
self.agreement_id = Some(input.into());
self
}
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
pub fn set_agreement_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.agreement_id = input;
self
}
/// <p>The current description for the agreement. You can change it by calling the <code>UpdateAgreement</code> operation and providing a new description. </p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The current description for the agreement. You can change it by calling the <code>UpdateAgreement</code> operation and providing a new description. </p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The agreement can be either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
pub fn status(mut self, input: crate::model::AgreementStatusType) -> Self {
self.status = Some(input);
self
}
/// <p>The agreement can be either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::AgreementStatusType>,
) -> Self {
self.status = input;
self
}
/// <p>The unique identifier for the agreement.</p>
pub fn server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.server_id = Some(input.into());
self
}
/// <p>The unique identifier for the agreement.</p>
pub fn set_server_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_id = input;
self
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn local_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.local_profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn set_local_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.local_profile_id = input;
self
}
/// <p>A unique identifier for the partner process.</p>
pub fn partner_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.partner_profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the partner process.</p>
pub fn set_partner_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.partner_profile_id = input;
self
}
/// Consumes the builder and constructs a [`ListedAgreement`](crate::model::ListedAgreement).
pub fn build(self) -> crate::model::ListedAgreement {
crate::model::ListedAgreement {
arn: self.arn,
agreement_id: self.agreement_id,
description: self.description,
status: self.status,
server_id: self.server_id,
local_profile_id: self.local_profile_id,
partner_profile_id: self.partner_profile_id,
}
}
}
}
impl ListedAgreement {
/// Creates a new builder-style object to manufacture [`ListedAgreement`](crate::model::ListedAgreement).
pub fn builder() -> crate::model::listed_agreement::Builder {
crate::model::listed_agreement::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>
#[doc(hidden)]
pub home_directory: std::option::Option<std::string::String>,
/// <p>The type of landing directory (folder) that you want your users' home directory to be when they log in to 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 Amazon EFS paths visible to your users.</p>
#[doc(hidden)]
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>
#[doc(hidden)]
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 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 regular expression 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>
#[doc(hidden)]
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) that you want your users' home directory to be when they log in to 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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 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 regular expression 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).
#[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) that you want your users' home directory to be when they log in to 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 Amazon 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) that you want your users' home directory to be when they log in to 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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 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 regular expression 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 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 regular expression 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>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>Specifies the text description for the workflow.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>Specifies the details for the steps that are in the specified workflow.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
pub on_exception_steps: std::option::Option<std::vec::Vec<crate::model::WorkflowStep>>,
/// <p>A unique identifier for the workflow.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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).
#[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>: Perform a custom step with an Lambda function 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub custom_step_details: std::option::Option<crate::model::CustomStepDetails>,
/// <p>Details for a step that deletes the file.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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>: Perform a custom step with an Lambda function 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).
#[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>: Perform a custom step with an Lambda function 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>: Perform a custom step with an Lambda function 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>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>Array that contains from 1 to 10 key/value pairs.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::S3Tag>>,
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
#[doc(hidden)]
pub source_file_location: std::option::Option<std::string::String>,
}
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()
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(&self) -> std::option::Option<&str> {
self.source_file_location.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.field("source_file_location", &self.source_file_location);
formatter.finish()
}
}
/// See [`TagStepDetails`](crate::model::TagStepDetails).
pub mod tag_step_details {
/// A builder for [`TagStepDetails`](crate::model::TagStepDetails).
#[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>>,
pub(crate) source_file_location: 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
}
/// 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
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_location = Some(input.into());
self
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn set_source_file_location(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_location = 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,
source_file_location: self.source_file_location,
}
}
}
}
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>
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
/// <p>The value that corresponds to the key.</p>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
#[doc(hidden)]
pub source_file_location: 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()
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(&self) -> std::option::Option<&str> {
self.source_file_location.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.field("source_file_location", &self.source_file_location);
formatter.finish()
}
}
/// See [`DeleteStepDetails`](crate::model::DeleteStepDetails).
pub mod delete_step_details {
/// A builder for [`DeleteStepDetails`](crate::model::DeleteStepDetails).
#[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) source_file_location: 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
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_location = Some(input.into());
self
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn set_source_file_location(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_location = 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,
source_file_location: self.source_file_location,
}
}
}
}
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>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>The ARN for the lambda function that is being called.</p>
#[doc(hidden)]
pub target: std::option::Option<std::string::String>,
/// <p>Timeout, in seconds, for the step.</p>
#[doc(hidden)]
pub timeout_seconds: std::option::Option<i32>,
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
#[doc(hidden)]
pub source_file_location: std::option::Option<std::string::String>,
}
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
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(&self) -> std::option::Option<&str> {
self.source_file_location.as_deref()
}
}
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.field("source_file_location", &self.source_file_location);
formatter.finish()
}
}
/// See [`CustomStepDetails`](crate::model::CustomStepDetails).
pub mod custom_step_details {
/// A builder for [`CustomStepDetails`](crate::model::CustomStepDetails).
#[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>,
pub(crate) source_file_location: 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
}
/// <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
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_location = Some(input.into());
self
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn set_source_file_location(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_location = 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,
source_file_location: self.source_file_location,
}
}
}
}
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>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>Specifies the location for the file being copied. Only applicable for Copy type workflow steps. Use <code>${Transfer:username}</code> in this field to parametrize the destination prefix by username.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
pub overwrite_existing: std::option::Option<crate::model::OverwriteExisting>,
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
#[doc(hidden)]
pub source_file_location: std::option::Option<std::string::String>,
}
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 Copy type workflow steps. Use <code>${Transfer:username}</code> in this field to parametrize the destination prefix by username.</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()
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(&self) -> std::option::Option<&str> {
self.source_file_location.as_deref()
}
}
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.field("source_file_location", &self.source_file_location);
formatter.finish()
}
}
/// See [`CopyStepDetails`](crate::model::CopyStepDetails).
pub mod copy_step_details {
/// A builder for [`CopyStepDetails`](crate::model::CopyStepDetails).
#[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>,
pub(crate) source_file_location: 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
}
/// <p>Specifies the location for the file being copied. Only applicable for Copy type workflow steps. Use <code>${Transfer:username}</code> in this field to parametrize the destination prefix by username.</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 Copy type workflow steps. Use <code>${Transfer:username}</code> in this field to parametrize the destination prefix by username.</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
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn source_file_location(mut self, input: impl Into<std::string::String>) -> Self {
self.source_file_location = Some(input.into());
self
}
/// <p>Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow.</p>
/// <ul>
/// <li> <p>Enter <code>${previous.file}</code> to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value.</p> </li>
/// <li> <p>Enter <code>${original.file}</code> to use the originally-uploaded file location as input for this step.</p> </li>
/// </ul>
pub fn set_source_file_location(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.source_file_location = 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,
source_file_location: self.source_file_location,
}
}
}
}
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>
#[doc(hidden)]
pub s3_file_location: std::option::Option<crate::model::S3InputFileLocation>,
/// <p>Reserved for future use.</p>
#[doc(hidden)]
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).
#[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>
#[doc(hidden)]
pub bucket: std::option::Option<std::string::String>,
/// <p>The name assigned to the file when it was created in Amazon S3. You use the object key to retrieve the object.</p>
#[doc(hidden)]
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 Amazon 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).
#[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 Amazon 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 Amazon 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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>
#[doc(hidden)]
pub home_directory_mappings:
std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
/// <p>The type of landing directory (folder) that you want your users' home directory to be when they log in to 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 Amazon EFS paths visible to your users.</p>
#[doc(hidden)]
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub posix_profile: std::option::Option<crate::model::PosixProfile>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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) that you want your users' home directory to be when they log in to 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 Amazon 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 Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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).
#[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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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) that you want your users' home directory to be when they log in to 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 Amazon 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) that you want your users' home directory to be when they log in to 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 Amazon 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 Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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 Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>
#[doc(hidden)]
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>
/// <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
/// <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</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).
#[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>
/// <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</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>
/// <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</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>
#[doc(hidden)]
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>
#[doc(hidden)]
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 IPv4 address, such as the public IP address of a firewall, router, or load balancer. </p>
#[doc(hidden)]
pub protocol_details: std::option::Option<crate::model::ProtocolDetails>,
/// <p>Specifies the domain of the storage system that is used for file transfers.</p>
#[doc(hidden)]
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 your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub identity_provider_details: std::option::Option<crate::model::IdentityProviderDetails>,
/// <p>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or the <code>IdentityProviderDetails</code> data type.</p>
#[doc(hidden)]
pub identity_provider_type: std::option::Option<crate::model::IdentityProviderType>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.</p>
#[doc(hidden)]
pub logging_role: std::option::Option<std::string::String>,
/// <p>Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.</p> <note>
/// <p>The SFTP protocol does not support post-authentication display banners.</p>
/// </note>
#[doc(hidden)]
pub post_authentication_login_banner: std::option::Option<std::string::String>,
/// <p>Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:</p>
/// <p> <code>This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.</code> </p>
#[doc(hidden)]
pub pre_authentication_login_banner: 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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub security_policy_name: std::option::Option<std::string::String>,
/// <p>Specifies the unique system-assigned identifier for a server that you instantiate.</p>
#[doc(hidden)]
pub server_id: std::option::Option<std::string::String>,
/// <p>The condition of 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub user_count: std::option::Option<i32>,
/// <p>Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.</p>
#[doc(hidden)]
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 IPv4 address, such as the public 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 your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint 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>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.</p>
pub fn logging_role(&self) -> std::option::Option<&str> {
self.logging_role.as_deref()
}
/// <p>Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.</p> <note>
/// <p>The SFTP protocol does not support post-authentication display banners.</p>
/// </note>
pub fn post_authentication_login_banner(&self) -> std::option::Option<&str> {
self.post_authentication_login_banner.as_deref()
}
/// <p>Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:</p>
/// <p> <code>This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.</code> </p>
pub fn pre_authentication_login_banner(&self) -> std::option::Option<&str> {
self.pre_authentication_login_banner.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>The condition of 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 that's 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(
"post_authentication_login_banner",
&self.post_authentication_login_banner,
);
formatter.field(
"pre_authentication_login_banner",
&self.pre_authentication_login_banner,
);
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).
#[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) post_authentication_login_banner: std::option::Option<std::string::String>,
pub(crate) pre_authentication_login_banner: 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 IPv4 address, such as the public 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 IPv4 address, such as the public 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 your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint 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 your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint 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>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or 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>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 Transfer Family service.</p>
/// <p>Use <code>AWS_DIRECTORY_SERVICE</code> to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by 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 Amazon API Gateway endpoint URL to call for authentication by using the <code>IdentityProviderDetails</code> parameter.</p>
/// <p>Use the <code>AWS_LAMBDA</code> value to directly use an 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 or 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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 a string to display when users connect to a server. This string is displayed after the user authenticates.</p> <note>
/// <p>The SFTP protocol does not support post-authentication display banners.</p>
/// </note>
pub fn post_authentication_login_banner(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.post_authentication_login_banner = Some(input.into());
self
}
/// <p>Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.</p> <note>
/// <p>The SFTP protocol does not support post-authentication display banners.</p>
/// </note>
pub fn set_post_authentication_login_banner(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.post_authentication_login_banner = input;
self
}
/// <p>Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:</p>
/// <p> <code>This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.</code> </p>
pub fn pre_authentication_login_banner(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.pre_authentication_login_banner = Some(input.into());
self
}
/// <p>Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:</p>
/// <p> <code>This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.</code> </p>
pub fn set_pre_authentication_login_banner(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.pre_authentication_login_banner = 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>The condition of 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>The condition of 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 that's 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 that's 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,
post_authentication_login_banner: self.post_authentication_login_banner,
pre_authentication_login_banner: self.pre_authentication_login_banner,
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>
#[doc(hidden)]
pub fips: std::option::Option<bool>,
/// <p>Specifies the name of the security policy that is attached to the server.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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).
#[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 a local or partner AS2 profile. profile.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedProfile {
/// <p>The unique Amazon Resource Name (ARN) for the profile.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>A unique identifier for the local or partner AS2 profile.</p>
#[doc(hidden)]
pub profile_id: std::option::Option<std::string::String>,
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
#[doc(hidden)]
pub profile_type: std::option::Option<crate::model::ProfileType>,
/// <p>The unique identifier for the AS2 process.</p>
#[doc(hidden)]
pub as2_id: std::option::Option<std::string::String>,
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
#[doc(hidden)]
pub certificate_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>Key-value pairs that can be used to group and search for profiles.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl DescribedProfile {
/// <p>The unique Amazon Resource Name (ARN) for the profile.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>A unique identifier for the local or partner AS2 profile.</p>
pub fn profile_id(&self) -> std::option::Option<&str> {
self.profile_id.as_deref()
}
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
pub fn profile_type(&self) -> std::option::Option<&crate::model::ProfileType> {
self.profile_type.as_ref()
}
/// <p>The unique identifier for the AS2 process.</p>
pub fn as2_id(&self) -> std::option::Option<&str> {
self.as2_id.as_deref()
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn certificate_ids(&self) -> std::option::Option<&[std::string::String]> {
self.certificate_ids.as_deref()
}
/// <p>Key-value pairs that can be used to group and search for profiles.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for DescribedProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedProfile");
formatter.field("arn", &self.arn);
formatter.field("profile_id", &self.profile_id);
formatter.field("profile_type", &self.profile_type);
formatter.field("as2_id", &self.as2_id);
formatter.field("certificate_ids", &self.certificate_ids);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`DescribedProfile`](crate::model::DescribedProfile).
pub mod described_profile {
/// A builder for [`DescribedProfile`](crate::model::DescribedProfile).
#[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) profile_id: std::option::Option<std::string::String>,
pub(crate) profile_type: std::option::Option<crate::model::ProfileType>,
pub(crate) as2_id: std::option::Option<std::string::String>,
pub(crate) certificate_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// <p>The unique Amazon Resource Name (ARN) for the profile.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The unique Amazon Resource Name (ARN) for the profile.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>A unique identifier for the local or partner AS2 profile.</p>
pub fn profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the local or partner AS2 profile.</p>
pub fn set_profile_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.profile_id = input;
self
}
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
pub fn profile_type(mut self, input: crate::model::ProfileType) -> Self {
self.profile_type = Some(input);
self
}
/// <p>Indicates whether to list only <code>LOCAL</code> type profiles or only <code>PARTNER</code> type profiles. If not supplied in the request, the command lists all types of profiles.</p>
pub fn set_profile_type(
mut self,
input: std::option::Option<crate::model::ProfileType>,
) -> Self {
self.profile_type = input;
self
}
/// <p>The unique identifier for the AS2 process.</p>
pub fn as2_id(mut self, input: impl Into<std::string::String>) -> Self {
self.as2_id = Some(input.into());
self
}
/// <p>The unique identifier for the AS2 process.</p>
pub fn set_as2_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.as2_id = input;
self
}
/// Appends an item to `certificate_ids`.
///
/// To override the contents of this collection use [`set_certificate_ids`](Self::set_certificate_ids).
///
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn certificate_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.certificate_ids.unwrap_or_default();
v.push(input.into());
self.certificate_ids = Some(v);
self
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn set_certificate_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.certificate_ids = 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 profiles.</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 profiles.</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 [`DescribedProfile`](crate::model::DescribedProfile).
pub fn build(self) -> crate::model::DescribedProfile {
crate::model::DescribedProfile {
arn: self.arn,
profile_id: self.profile_id,
profile_type: self.profile_type,
as2_id: self.as2_id,
certificate_ids: self.certificate_ids,
tags: self.tags,
}
}
}
}
impl DescribedProfile {
/// Creates a new builder-style object to manufacture [`DescribedProfile`](crate::model::DescribedProfile).
pub fn builder() -> crate::model::described_profile::Builder {
crate::model::described_profile::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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub initial_file_location: std::option::Option<crate::model::FileLocation>,
/// <p>A container object for the session details that are associated with a workflow.</p>
#[doc(hidden)]
pub service_metadata: std::option::Option<crate::model::ServiceMetadata>,
/// <p>The IAM role associated with the execution.</p>
#[doc(hidden)]
pub execution_role: std::option::Option<std::string::String>,
/// <p>The IAM logging role associated with the execution.</p>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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>
#[doc(hidden)]
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 that are 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).
#[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 that are 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 that are 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>
#[doc(hidden)]
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>
#[doc(hidden)]
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).
#[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>: Perform a custom step with an Lambda function 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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub outputs: std::option::Option<std::string::String>,
/// <p>Specifies the details for an error, if it occurred during execution of the specified workflow step.</p>
#[doc(hidden)]
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>: Perform a custom step with an Lambda function 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 workflow 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).
#[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>: Perform a custom step with an Lambda function 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>: Perform a custom step with an Lambda function 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 workflow 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 workflow 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.</p>
/// <ul>
/// <li> <p> <code>ALREADY_EXISTS</code>: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location.</p> </li>
/// <li> <p> <code>BAD_REQUEST</code>: a general bad request: for example, a step that attempts to tag an EFS file returns <code>BAD_REQUEST</code>, as only S3 files can be tagged.</p> </li>
/// <li> <p> <code>CUSTOM_STEP_FAILED</code>: occurs when the custom step provided a callback that indicates failure.</p> </li>
/// <li> <p> <code>INTERNAL_SERVER_ERROR</code>: a catch-all error that can occur for a variety of reasons.</p> </li>
/// <li> <p> <code>NOT_FOUND</code>: occurs when a requested entity, for example a source file for a copy step, does not exist.</p> </li>
/// <li> <p> <code>PERMISSION_DENIED</code>: occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p> </li>
/// <li> <p> <code>TIMEOUT</code>: occurs when the execution times out.</p> <note>
/// <p> You can set the <code>TimeoutSeconds</code> for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). </p>
/// </note> </li>
/// <li> <p> <code>THROTTLED</code>: occurs if you exceed the new execution refill rate of one workflow per second.</p> </li>
/// </ul>
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::ExecutionErrorType>,
/// <p>Specifies the descriptive message that corresponds to the <code>ErrorType</code>.</p>
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ExecutionError {
/// <p>Specifies the error type.</p>
/// <ul>
/// <li> <p> <code>ALREADY_EXISTS</code>: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location.</p> </li>
/// <li> <p> <code>BAD_REQUEST</code>: a general bad request: for example, a step that attempts to tag an EFS file returns <code>BAD_REQUEST</code>, as only S3 files can be tagged.</p> </li>
/// <li> <p> <code>CUSTOM_STEP_FAILED</code>: occurs when the custom step provided a callback that indicates failure.</p> </li>
/// <li> <p> <code>INTERNAL_SERVER_ERROR</code>: a catch-all error that can occur for a variety of reasons.</p> </li>
/// <li> <p> <code>NOT_FOUND</code>: occurs when a requested entity, for example a source file for a copy step, does not exist.</p> </li>
/// <li> <p> <code>PERMISSION_DENIED</code>: occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p> </li>
/// <li> <p> <code>TIMEOUT</code>: occurs when the execution times out.</p> <note>
/// <p> You can set the <code>TimeoutSeconds</code> for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). </p>
/// </note> </li>
/// <li> <p> <code>THROTTLED</code>: occurs if you exceed the new execution refill rate of one workflow per second.</p> </li>
/// </ul>
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).
#[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.</p>
/// <ul>
/// <li> <p> <code>ALREADY_EXISTS</code>: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location.</p> </li>
/// <li> <p> <code>BAD_REQUEST</code>: a general bad request: for example, a step that attempts to tag an EFS file returns <code>BAD_REQUEST</code>, as only S3 files can be tagged.</p> </li>
/// <li> <p> <code>CUSTOM_STEP_FAILED</code>: occurs when the custom step provided a callback that indicates failure.</p> </li>
/// <li> <p> <code>INTERNAL_SERVER_ERROR</code>: a catch-all error that can occur for a variety of reasons.</p> </li>
/// <li> <p> <code>NOT_FOUND</code>: occurs when a requested entity, for example a source file for a copy step, does not exist.</p> </li>
/// <li> <p> <code>PERMISSION_DENIED</code>: occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p> </li>
/// <li> <p> <code>TIMEOUT</code>: occurs when the execution times out.</p> <note>
/// <p> You can set the <code>TimeoutSeconds</code> for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). </p>
/// </note> </li>
/// <li> <p> <code>THROTTLED</code>: occurs if you exceed the new execution refill rate of one workflow per second.</p> </li>
/// </ul>
pub fn r#type(mut self, input: crate::model::ExecutionErrorType) -> Self {
self.r#type = Some(input);
self
}
/// <p>Specifies the error type.</p>
/// <ul>
/// <li> <p> <code>ALREADY_EXISTS</code>: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location.</p> </li>
/// <li> <p> <code>BAD_REQUEST</code>: a general bad request: for example, a step that attempts to tag an EFS file returns <code>BAD_REQUEST</code>, as only S3 files can be tagged.</p> </li>
/// <li> <p> <code>CUSTOM_STEP_FAILED</code>: occurs when the custom step provided a callback that indicates failure.</p> </li>
/// <li> <p> <code>INTERNAL_SERVER_ERROR</code>: a catch-all error that can occur for a variety of reasons.</p> </li>
/// <li> <p> <code>NOT_FOUND</code>: occurs when a requested entity, for example a source file for a copy step, does not exist.</p> </li>
/// <li> <p> <code>PERMISSION_DENIED</code>: occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p> </li>
/// <li> <p> <code>TIMEOUT</code>: occurs when the execution times out.</p> <note>
/// <p> You can set the <code>TimeoutSeconds</code> for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). </p>
/// </note> </li>
/// <li> <p> <code>THROTTLED</code>: occurs if you exceed the new execution refill rate of one workflow per second.</p> </li>
/// </ul>
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
AlreadyExists,
#[allow(missing_docs)] // documentation missing in model
BadRequest,
#[allow(missing_docs)] // documentation missing in model
CustomStepFailed,
#[allow(missing_docs)] // documentation missing in model
InternalServerError,
#[allow(missing_docs)] // documentation missing in model
NotFound,
#[allow(missing_docs)] // documentation missing in model
PermissionDenied,
#[allow(missing_docs)] // documentation missing in model
Throttled,
#[allow(missing_docs)] // documentation missing in model
Timeout,
/// 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 {
"ALREADY_EXISTS" => ExecutionErrorType::AlreadyExists,
"BAD_REQUEST" => ExecutionErrorType::BadRequest,
"CUSTOM_STEP_FAILED" => ExecutionErrorType::CustomStepFailed,
"INTERNAL_SERVER_ERROR" => ExecutionErrorType::InternalServerError,
"NOT_FOUND" => ExecutionErrorType::NotFound,
"PERMISSION_DENIED" => ExecutionErrorType::PermissionDenied,
"THROTTLED" => ExecutionErrorType::Throttled,
"TIMEOUT" => ExecutionErrorType::Timeout,
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::AlreadyExists => "ALREADY_EXISTS",
ExecutionErrorType::BadRequest => "BAD_REQUEST",
ExecutionErrorType::CustomStepFailed => "CUSTOM_STEP_FAILED",
ExecutionErrorType::InternalServerError => "INTERNAL_SERVER_ERROR",
ExecutionErrorType::NotFound => "NOT_FOUND",
ExecutionErrorType::PermissionDenied => "PERMISSION_DENIED",
ExecutionErrorType::Throttled => "THROTTLED",
ExecutionErrorType::Timeout => "TIMEOUT",
ExecutionErrorType::Unknown(s) => s.as_ref(),
}
}
/// Returns all the `&str` values of the enum members.
pub fn values() -> &'static [&'static str] {
&[
"ALREADY_EXISTS",
"BAD_REQUEST",
"CUSTOM_STEP_FAILED",
"INTERNAL_SERVER_ERROR",
"NOT_FOUND",
"PERMISSION_DENIED",
"THROTTLED",
"TIMEOUT",
]
}
}
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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.</p>
#[doc(hidden)]
pub logging_role: std::option::Option<std::string::String>,
/// <p>The name of the CloudWatch logging group for the Transfer Family server to which this workflow belongs.</p>
#[doc(hidden)]
pub log_group_name: std::option::Option<std::string::String>,
}
impl LoggingConfiguration {
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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 Transfer Family 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).
#[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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity 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 Transfer Family 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 Transfer Family 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 parameters for the connector, as identified by the <code>ConnectorId</code>.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedConnector {
/// <p>The unique Amazon Resource Name (ARN) for the connector.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The unique identifier for the connector.</p>
#[doc(hidden)]
pub connector_id: std::option::Option<std::string::String>,
/// <p>The URL of the partner's AS2 endpoint.</p>
#[doc(hidden)]
pub url: std::option::Option<std::string::String>,
/// <p>A structure that contains the parameters for a connector object.</p>
#[doc(hidden)]
pub as2_config: std::option::Option<crate::model::As2ConnectorConfig>,
/// <p>With AS2, you can send files by calling <code>StartFileTransfer</code> and specifying the file paths in the request parameter, <code>SendFilePaths</code>. We use the file’s parent directory (for example, for <code>--send-file-paths /bucket/dir/file.txt</code>, parent directory is <code>/bucket/dir/</code>) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the <code>AccessRole</code> needs to provide read and write access to the parent directory of the file location used in the <code>StartFileTransfer</code> request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with <code>StartFileTransfer</code>.</p>
#[doc(hidden)]
pub access_role: std::option::Option<std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.</p>
#[doc(hidden)]
pub logging_role: std::option::Option<std::string::String>,
/// <p>Key-value pairs that can be used to group and search for connectors.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl DescribedConnector {
/// <p>The unique Amazon Resource Name (ARN) for the connector.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The unique identifier for the connector.</p>
pub fn connector_id(&self) -> std::option::Option<&str> {
self.connector_id.as_deref()
}
/// <p>The URL of the partner's AS2 endpoint.</p>
pub fn url(&self) -> std::option::Option<&str> {
self.url.as_deref()
}
/// <p>A structure that contains the parameters for a connector object.</p>
pub fn as2_config(&self) -> std::option::Option<&crate::model::As2ConnectorConfig> {
self.as2_config.as_ref()
}
/// <p>With AS2, you can send files by calling <code>StartFileTransfer</code> and specifying the file paths in the request parameter, <code>SendFilePaths</code>. We use the file’s parent directory (for example, for <code>--send-file-paths /bucket/dir/file.txt</code>, parent directory is <code>/bucket/dir/</code>) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the <code>AccessRole</code> needs to provide read and write access to the parent directory of the file location used in the <code>StartFileTransfer</code> request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with <code>StartFileTransfer</code>.</p>
pub fn access_role(&self) -> std::option::Option<&str> {
self.access_role.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.</p>
pub fn logging_role(&self) -> std::option::Option<&str> {
self.logging_role.as_deref()
}
/// <p>Key-value pairs that can be used to group and search for connectors.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for DescribedConnector {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedConnector");
formatter.field("arn", &self.arn);
formatter.field("connector_id", &self.connector_id);
formatter.field("url", &self.url);
formatter.field("as2_config", &self.as2_config);
formatter.field("access_role", &self.access_role);
formatter.field("logging_role", &self.logging_role);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`DescribedConnector`](crate::model::DescribedConnector).
pub mod described_connector {
/// A builder for [`DescribedConnector`](crate::model::DescribedConnector).
#[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) connector_id: std::option::Option<std::string::String>,
pub(crate) url: std::option::Option<std::string::String>,
pub(crate) as2_config: std::option::Option<crate::model::As2ConnectorConfig>,
pub(crate) access_role: std::option::Option<std::string::String>,
pub(crate) logging_role: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// <p>The unique Amazon Resource Name (ARN) for the connector.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The unique Amazon Resource Name (ARN) for the connector.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The unique identifier for the connector.</p>
pub fn connector_id(mut self, input: impl Into<std::string::String>) -> Self {
self.connector_id = Some(input.into());
self
}
/// <p>The unique identifier for the connector.</p>
pub fn set_connector_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.connector_id = input;
self
}
/// <p>The URL of the partner's AS2 endpoint.</p>
pub fn url(mut self, input: impl Into<std::string::String>) -> Self {
self.url = Some(input.into());
self
}
/// <p>The URL of the partner's AS2 endpoint.</p>
pub fn set_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.url = input;
self
}
/// <p>A structure that contains the parameters for a connector object.</p>
pub fn as2_config(mut self, input: crate::model::As2ConnectorConfig) -> Self {
self.as2_config = Some(input);
self
}
/// <p>A structure that contains the parameters for a connector object.</p>
pub fn set_as2_config(
mut self,
input: std::option::Option<crate::model::As2ConnectorConfig>,
) -> Self {
self.as2_config = input;
self
}
/// <p>With AS2, you can send files by calling <code>StartFileTransfer</code> and specifying the file paths in the request parameter, <code>SendFilePaths</code>. We use the file’s parent directory (for example, for <code>--send-file-paths /bucket/dir/file.txt</code>, parent directory is <code>/bucket/dir/</code>) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the <code>AccessRole</code> needs to provide read and write access to the parent directory of the file location used in the <code>StartFileTransfer</code> request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with <code>StartFileTransfer</code>.</p>
pub fn access_role(mut self, input: impl Into<std::string::String>) -> Self {
self.access_role = Some(input.into());
self
}
/// <p>With AS2, you can send files by calling <code>StartFileTransfer</code> and specifying the file paths in the request parameter, <code>SendFilePaths</code>. We use the file’s parent directory (for example, for <code>--send-file-paths /bucket/dir/file.txt</code>, parent directory is <code>/bucket/dir/</code>) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, the <code>AccessRole</code> needs to provide read and write access to the parent directory of the file location used in the <code>StartFileTransfer</code> request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send with <code>StartFileTransfer</code>.</p>
pub fn set_access_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_role = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity 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 `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 connectors.</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 connectors.</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 [`DescribedConnector`](crate::model::DescribedConnector).
pub fn build(self) -> crate::model::DescribedConnector {
crate::model::DescribedConnector {
arn: self.arn,
connector_id: self.connector_id,
url: self.url,
as2_config: self.as2_config,
access_role: self.access_role,
logging_role: self.logging_role,
tags: self.tags,
}
}
}
}
impl DescribedConnector {
/// Creates a new builder-style object to manufacture [`DescribedConnector`](crate::model::DescribedConnector).
pub fn builder() -> crate::model::described_connector::Builder {
crate::model::described_connector::Builder::default()
}
}
/// <p>Describes the properties of a certificate.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedCertificate {
/// <p>The unique Amazon Resource Name (ARN) for the certificate.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
#[doc(hidden)]
pub certificate_id: std::option::Option<std::string::String>,
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
#[doc(hidden)]
pub usage: std::option::Option<crate::model::CertificateUsageType>,
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::CertificateStatusType>,
/// <p>The file name for the certificate.</p>
#[doc(hidden)]
pub certificate: std::option::Option<std::string::String>,
/// <p>The list of certificates that make up the chain for the certificate.</p>
#[doc(hidden)]
pub certificate_chain: std::option::Option<std::string::String>,
/// <p>An optional date that specifies when the certificate becomes active.</p>
#[doc(hidden)]
pub active_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
#[doc(hidden)]
pub inactive_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The serial number for the certificate.</p>
#[doc(hidden)]
pub serial: std::option::Option<std::string::String>,
/// <p>The earliest date that the certificate is valid.</p>
#[doc(hidden)]
pub not_before_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The final date that the certificate is valid.</p>
#[doc(hidden)]
pub not_after_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::CertificateType>,
/// <p>The name or description that's used to identity the certificate. </p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>Key-value pairs that can be used to group and search for certificates.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl DescribedCertificate {
/// <p>The unique Amazon Resource Name (ARN) for the certificate.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn certificate_id(&self) -> std::option::Option<&str> {
self.certificate_id.as_deref()
}
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
pub fn usage(&self) -> std::option::Option<&crate::model::CertificateUsageType> {
self.usage.as_ref()
}
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
pub fn status(&self) -> std::option::Option<&crate::model::CertificateStatusType> {
self.status.as_ref()
}
/// <p>The file name for the certificate.</p>
pub fn certificate(&self) -> std::option::Option<&str> {
self.certificate.as_deref()
}
/// <p>The list of certificates that make up the chain for the certificate.</p>
pub fn certificate_chain(&self) -> std::option::Option<&str> {
self.certificate_chain.as_deref()
}
/// <p>An optional date that specifies when the certificate becomes active.</p>
pub fn active_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.active_date.as_ref()
}
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
pub fn inactive_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.inactive_date.as_ref()
}
/// <p>The serial number for the certificate.</p>
pub fn serial(&self) -> std::option::Option<&str> {
self.serial.as_deref()
}
/// <p>The earliest date that the certificate is valid.</p>
pub fn not_before_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.not_before_date.as_ref()
}
/// <p>The final date that the certificate is valid.</p>
pub fn not_after_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.not_after_date.as_ref()
}
/// <p>If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
pub fn r#type(&self) -> std::option::Option<&crate::model::CertificateType> {
self.r#type.as_ref()
}
/// <p>The name or description that's used to identity the certificate. </p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>Key-value pairs that can be used to group and search for certificates.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for DescribedCertificate {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedCertificate");
formatter.field("arn", &self.arn);
formatter.field("certificate_id", &self.certificate_id);
formatter.field("usage", &self.usage);
formatter.field("status", &self.status);
formatter.field("certificate", &"*** Sensitive Data Redacted ***");
formatter.field("certificate_chain", &"*** Sensitive Data Redacted ***");
formatter.field("active_date", &self.active_date);
formatter.field("inactive_date", &self.inactive_date);
formatter.field("serial", &self.serial);
formatter.field("not_before_date", &self.not_before_date);
formatter.field("not_after_date", &self.not_after_date);
formatter.field("r#type", &self.r#type);
formatter.field("description", &self.description);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`DescribedCertificate`](crate::model::DescribedCertificate).
pub mod described_certificate {
/// A builder for [`DescribedCertificate`](crate::model::DescribedCertificate).
#[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_id: std::option::Option<std::string::String>,
pub(crate) usage: std::option::Option<crate::model::CertificateUsageType>,
pub(crate) status: std::option::Option<crate::model::CertificateStatusType>,
pub(crate) certificate: std::option::Option<std::string::String>,
pub(crate) certificate_chain: std::option::Option<std::string::String>,
pub(crate) active_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) inactive_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) serial: std::option::Option<std::string::String>,
pub(crate) not_before_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) not_after_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) r#type: std::option::Option<crate::model::CertificateType>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// <p>The unique Amazon Resource Name (ARN) for the certificate.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The unique Amazon Resource Name (ARN) for the certificate.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn certificate_id(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate_id = Some(input.into());
self
}
/// <p>An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.</p>
pub fn set_certificate_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.certificate_id = input;
self
}
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
pub fn usage(mut self, input: crate::model::CertificateUsageType) -> Self {
self.usage = Some(input);
self
}
/// <p>Specifies whether this certificate is used for signing or encryption.</p>
pub fn set_usage(
mut self,
input: std::option::Option<crate::model::CertificateUsageType>,
) -> Self {
self.usage = input;
self
}
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
pub fn status(mut self, input: crate::model::CertificateStatusType) -> Self {
self.status = Some(input);
self
}
/// <p>The certificate can be either <code>ACTIVE</code>, <code>PENDING_ROTATION</code>, or <code>INACTIVE</code>. <code>PENDING_ROTATION</code> means that this certificate will replace the current certificate when it expires.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::CertificateStatusType>,
) -> Self {
self.status = input;
self
}
/// <p>The file name for the certificate.</p>
pub fn certificate(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate = Some(input.into());
self
}
/// <p>The file name for the certificate.</p>
pub fn set_certificate(mut self, input: std::option::Option<std::string::String>) -> Self {
self.certificate = input;
self
}
/// <p>The list of certificates that make up the chain for the certificate.</p>
pub fn certificate_chain(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate_chain = Some(input.into());
self
}
/// <p>The list of certificates that make up the chain for the certificate.</p>
pub fn set_certificate_chain(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.certificate_chain = input;
self
}
/// <p>An optional date that specifies when the certificate becomes active.</p>
pub fn active_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.active_date = Some(input);
self
}
/// <p>An optional date that specifies when the certificate becomes active.</p>
pub fn set_active_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.active_date = input;
self
}
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
pub fn inactive_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.inactive_date = Some(input);
self
}
/// <p>An optional date that specifies when the certificate becomes inactive.</p>
pub fn set_inactive_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.inactive_date = input;
self
}
/// <p>The serial number for the certificate.</p>
pub fn serial(mut self, input: impl Into<std::string::String>) -> Self {
self.serial = Some(input.into());
self
}
/// <p>The serial number for the certificate.</p>
pub fn set_serial(mut self, input: std::option::Option<std::string::String>) -> Self {
self.serial = input;
self
}
/// <p>The earliest date that the certificate is valid.</p>
pub fn not_before_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.not_before_date = Some(input);
self
}
/// <p>The earliest date that the certificate is valid.</p>
pub fn set_not_before_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.not_before_date = input;
self
}
/// <p>The final date that the certificate is valid.</p>
pub fn not_after_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.not_after_date = Some(input);
self
}
/// <p>The final date that the certificate is valid.</p>
pub fn set_not_after_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.not_after_date = input;
self
}
/// <p>If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
pub fn r#type(mut self, input: crate::model::CertificateType) -> Self {
self.r#type = Some(input);
self
}
/// <p>If a private key has been specified for the certificate, its type is <code>CERTIFICATE_WITH_PRIVATE_KEY</code>. If there is no private key, the type is <code>CERTIFICATE</code>.</p>
pub fn set_type(
mut self,
input: std::option::Option<crate::model::CertificateType>,
) -> Self {
self.r#type = input;
self
}
/// <p>The name or description that's used to identity the certificate. </p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The name or description that's used to identity the certificate. </p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = 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 certificates.</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 certificates.</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 [`DescribedCertificate`](crate::model::DescribedCertificate).
pub fn build(self) -> crate::model::DescribedCertificate {
crate::model::DescribedCertificate {
arn: self.arn,
certificate_id: self.certificate_id,
usage: self.usage,
status: self.status,
certificate: self.certificate,
certificate_chain: self.certificate_chain,
active_date: self.active_date,
inactive_date: self.inactive_date,
serial: self.serial,
not_before_date: self.not_before_date,
not_after_date: self.not_after_date,
r#type: self.r#type,
description: self.description,
tags: self.tags,
}
}
}
}
impl DescribedCertificate {
/// Creates a new builder-style object to manufacture [`DescribedCertificate`](crate::model::DescribedCertificate).
pub fn builder() -> crate::model::described_certificate::Builder {
crate::model::described_certificate::Builder::default()
}
}
/// <p>Describes the properties of an agreement.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribedAgreement {
/// <p>The unique Amazon Resource Name (ARN) for the agreement.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
#[doc(hidden)]
pub agreement_id: std::option::Option<std::string::String>,
/// <p>The name or short description that's used to identify the agreement.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The current status of the agreement, either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
#[doc(hidden)]
pub status: std::option::Option<crate::model::AgreementStatusType>,
/// <p>A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.</p>
#[doc(hidden)]
pub server_id: std::option::Option<std::string::String>,
/// <p>A unique identifier for the AS2 process.</p>
#[doc(hidden)]
pub local_profile_id: std::option::Option<std::string::String>,
/// <p>A unique identifier for the partner in the agreement.</p>
#[doc(hidden)]
pub partner_profile_id: std::option::Option<std::string::String>,
/// <p>The landing directory (folder) for files that are transferred by using the AS2 protocol.</p>
#[doc(hidden)]
pub base_directory: std::option::Option<std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that grants access to at least the <code>HomeDirectory</code> of your users' Amazon S3 buckets.</p>
#[doc(hidden)]
pub access_role: std::option::Option<std::string::String>,
/// <p>Key-value pairs that can be used to group and search for agreements.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl DescribedAgreement {
/// <p>The unique Amazon Resource Name (ARN) for the agreement.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
pub fn agreement_id(&self) -> std::option::Option<&str> {
self.agreement_id.as_deref()
}
/// <p>The name or short description that's used to identify the agreement.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The current status of the agreement, either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
pub fn status(&self) -> std::option::Option<&crate::model::AgreementStatusType> {
self.status.as_ref()
}
/// <p>A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.</p>
pub fn server_id(&self) -> std::option::Option<&str> {
self.server_id.as_deref()
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn local_profile_id(&self) -> std::option::Option<&str> {
self.local_profile_id.as_deref()
}
/// <p>A unique identifier for the partner in the agreement.</p>
pub fn partner_profile_id(&self) -> std::option::Option<&str> {
self.partner_profile_id.as_deref()
}
/// <p>The landing directory (folder) for files that are transferred by using the AS2 protocol.</p>
pub fn base_directory(&self) -> std::option::Option<&str> {
self.base_directory.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that grants access to at least the <code>HomeDirectory</code> of your users' Amazon S3 buckets.</p>
pub fn access_role(&self) -> std::option::Option<&str> {
self.access_role.as_deref()
}
/// <p>Key-value pairs that can be used to group and search for agreements.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
impl std::fmt::Debug for DescribedAgreement {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribedAgreement");
formatter.field("arn", &self.arn);
formatter.field("agreement_id", &self.agreement_id);
formatter.field("description", &self.description);
formatter.field("status", &self.status);
formatter.field("server_id", &self.server_id);
formatter.field("local_profile_id", &self.local_profile_id);
formatter.field("partner_profile_id", &self.partner_profile_id);
formatter.field("base_directory", &self.base_directory);
formatter.field("access_role", &self.access_role);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
/// See [`DescribedAgreement`](crate::model::DescribedAgreement).
pub mod described_agreement {
/// A builder for [`DescribedAgreement`](crate::model::DescribedAgreement).
#[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) agreement_id: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::AgreementStatusType>,
pub(crate) server_id: std::option::Option<std::string::String>,
pub(crate) local_profile_id: std::option::Option<std::string::String>,
pub(crate) partner_profile_id: std::option::Option<std::string::String>,
pub(crate) base_directory: std::option::Option<std::string::String>,
pub(crate) access_role: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// <p>The unique Amazon Resource Name (ARN) for the agreement.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The unique Amazon Resource Name (ARN) for the agreement.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
pub fn agreement_id(mut self, input: impl Into<std::string::String>) -> Self {
self.agreement_id = Some(input.into());
self
}
/// <p>A unique identifier for the agreement. This identifier is returned when you create an agreement.</p>
pub fn set_agreement_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.agreement_id = input;
self
}
/// <p>The name or short description that's used to identify the agreement.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The name or short description that's used to identify the agreement.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The current status of the agreement, either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
pub fn status(mut self, input: crate::model::AgreementStatusType) -> Self {
self.status = Some(input);
self
}
/// <p>The current status of the agreement, either <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
pub fn set_status(
mut self,
input: std::option::Option<crate::model::AgreementStatusType>,
) -> Self {
self.status = input;
self
}
/// <p>A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.</p>
pub fn server_id(mut self, input: impl Into<std::string::String>) -> Self {
self.server_id = Some(input.into());
self
}
/// <p>A system-assigned unique identifier for a server instance. This identifier indicates the specific server that the agreement uses.</p>
pub fn set_server_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.server_id = input;
self
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn local_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.local_profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the AS2 process.</p>
pub fn set_local_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.local_profile_id = input;
self
}
/// <p>A unique identifier for the partner in the agreement.</p>
pub fn partner_profile_id(mut self, input: impl Into<std::string::String>) -> Self {
self.partner_profile_id = Some(input.into());
self
}
/// <p>A unique identifier for the partner in the agreement.</p>
pub fn set_partner_profile_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.partner_profile_id = input;
self
}
/// <p>The landing directory (folder) for files that are transferred by using the AS2 protocol.</p>
pub fn base_directory(mut self, input: impl Into<std::string::String>) -> Self {
self.base_directory = Some(input.into());
self
}
/// <p>The landing directory (folder) for files that are transferred by using the AS2 protocol.</p>
pub fn set_base_directory(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.base_directory = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that grants access to at least the <code>HomeDirectory</code> of your users' Amazon S3 buckets.</p>
pub fn access_role(mut self, input: impl Into<std::string::String>) -> Self {
self.access_role = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that grants access to at least the <code>HomeDirectory</code> of your users' Amazon S3 buckets.</p>
pub fn set_access_role(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_role = 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 agreements.</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 agreements.</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 [`DescribedAgreement`](crate::model::DescribedAgreement).
pub fn build(self) -> crate::model::DescribedAgreement {
crate::model::DescribedAgreement {
arn: self.arn,
agreement_id: self.agreement_id,
description: self.description,
status: self.status,
server_id: self.server_id,
local_profile_id: self.local_profile_id,
partner_profile_id: self.partner_profile_id,
base_directory: self.base_directory,
access_role: self.access_role,
tags: self.tags,
}
}
}
}
impl DescribedAgreement {
/// Creates a new builder-style object to manufacture [`DescribedAgreement`](crate::model::DescribedAgreement).
pub fn builder() -> crate::model::described_agreement::Builder {
crate::model::described_agreement::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>
#[doc(hidden)]
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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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>
#[doc(hidden)]
pub home_directory_mappings:
std::option::Option<std::vec::Vec<crate::model::HomeDirectoryMapEntry>>,
/// <p>The type of landing directory (folder) that you want your users' home directory to be when they log in to 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 Amazon EFS paths visible to your users.</p>
#[doc(hidden)]
pub home_directory_type: std::option::Option<crate::model::HomeDirectoryType>,
/// <p>A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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>
#[doc(hidden)]
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>
#[doc(hidden)]
pub posix_profile: std::option::Option<crate::model::PosixProfile>,
/// <p>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>
#[doc(hidden)]
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 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 regular expression 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>
#[doc(hidden)]
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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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) that you want your users' home directory to be when they log in to 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 Amazon 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 Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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 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 regular expression 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).
#[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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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 Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only 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) that you want your users' home directory to be when they log in to 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 Amazon 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) that you want your users' home directory to be when they log in to 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 Amazon 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 Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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 Identity and Access Management (IAM) role across multiple users. This policy scopes down a user's 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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>The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users' access to your Amazon S3 bucket or Amazon 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 Amazon 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 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 regular expression 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 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 regular expression 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()
}
}