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
// ================================================================= // // * WARNING * // // This file is generated! // // Changes made to this file will be overwritten. If changes are // required to the generated code, the service_crategen project // must be updated to generate the changes. // // ================================================================= use std::error::Error; use std::fmt; use async_trait::async_trait; use rusoto_core::credential::ProvideAwsCredentials; use rusoto_core::region; use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest}; use rusoto_core::{Client, RusotoError}; use rusoto_core::proto; use rusoto_core::request::HttpResponse; use rusoto_core::signature::SignedRequest; #[allow(unused_imports)] use serde::{Deserialize, Serialize}; impl DatabaseMigrationServiceClient { fn new_signed_request(&self, http_method: &str, request_uri: &str) -> SignedRequest { let mut request = SignedRequest::new(http_method, "dms", &self.region, request_uri); request.set_content_type("application/x-amz-json-1.1".to_owned()); request } async fn sign_and_dispatch<E>( &self, request: SignedRequest, from_response: fn(BufferedHttpResponse) -> RusotoError<E>, ) -> Result<HttpResponse, RusotoError<E>> { let mut response = self.client.sign_and_dispatch(request).await?; if !response.status.is_success() { let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; return Err(from_response(response)); } Ok(response) } } use serde_json; /// <p>Describes a quota for an AWS account, for example, the number of replication instances allowed.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct AccountQuota { /// <p>The name of the AWS DMS quota for this AWS account.</p> #[serde(rename = "AccountQuotaName")] #[serde(skip_serializing_if = "Option::is_none")] pub account_quota_name: Option<String>, /// <p>The maximum allowed value for the quota.</p> #[serde(rename = "Max")] #[serde(skip_serializing_if = "Option::is_none")] pub max: Option<i64>, /// <p>The amount currently used toward the quota maximum.</p> #[serde(rename = "Used")] #[serde(skip_serializing_if = "Option::is_none")] pub used: Option<i64>, } /// <p>Associates a set of tags with an AWS DMS resource.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct AddTagsToResourceMessage { /// <p>Identifies the AWS DMS resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN).</p> <p>For AWS DMS, you can tag a replication instance, an endpoint, or a replication task.</p> #[serde(rename = "ResourceArn")] pub resource_arn: String, /// <p>One or more tags to be assigned to the resource.</p> #[serde(rename = "Tags")] pub tags: Vec<Tag>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct AddTagsToResourceResponse {} /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ApplyPendingMaintenanceActionMessage { /// <p>The pending maintenance action to apply to this resource.</p> #[serde(rename = "ApplyAction")] pub apply_action: String, /// <p><p>A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request of type <code>immediate</code>.</p> <p>Valid values:</p> <ul> <li> <p> <code>immediate</code> - Apply the maintenance action immediately.</p> </li> <li> <p> <code>next-maintenance</code> - Apply the maintenance action during the next maintenance window for the resource.</p> </li> <li> <p> <code>undo-opt-in</code> - Cancel any existing <code>next-maintenance</code> opt-in requests.</p> </li> </ul></p> #[serde(rename = "OptInType")] pub opt_in_type: String, /// <p>The Amazon Resource Name (ARN) of the AWS DMS resource that the pending maintenance action applies to.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ApplyPendingMaintenanceActionResponse { /// <p>The AWS DMS resource that the pending maintenance action will be applied to.</p> #[serde(rename = "ResourcePendingMaintenanceActions")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_pending_maintenance_actions: Option<ResourcePendingMaintenanceActions>, } /// <p>The name of an Availability Zone for use during database migration. <code>AvailabilityZone</code> is an optional parameter to the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationInstance.html"> <code>CreateReplicationInstance</code> </a> operation, and it’s value relates to the AWS Region of an endpoint. For example, the availability zone of an endpoint in the us-east-1 region might be us-east-1a, us-east-1b, us-east-1c, or us-east-1d.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct AvailabilityZone { /// <p>The name of the Availability Zone.</p> #[serde(rename = "Name")] #[serde(skip_serializing_if = "Option::is_none")] pub name: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CancelReplicationTaskAssessmentRunMessage { /// <p>Amazon Resource Name (ARN) of the premigration assessment run to be canceled.</p> #[serde(rename = "ReplicationTaskAssessmentRunArn")] pub replication_task_assessment_run_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CancelReplicationTaskAssessmentRunResponse { /// <p>The <code>ReplicationTaskAssessmentRun</code> object for the canceled assessment run.</p> #[serde(rename = "ReplicationTaskAssessmentRun")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_run: Option<ReplicationTaskAssessmentRun>, } /// <p>The SSL certificate that can be used to encrypt connections between the endpoints and the replication instance.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Certificate { /// <p>The Amazon Resource Name (ARN) for the certificate.</p> #[serde(rename = "CertificateArn")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_arn: Option<String>, /// <p>The date that the certificate was created.</p> #[serde(rename = "CertificateCreationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_creation_date: Option<f64>, /// <p>A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p> #[serde(rename = "CertificateIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_identifier: Option<String>, /// <p>The owner of the certificate.</p> #[serde(rename = "CertificateOwner")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_owner: Option<String>, /// <p>The contents of a <code>.pem</code> file, which contains an X.509 certificate.</p> #[serde(rename = "CertificatePem")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_pem: Option<String>, /// <p>The location of an imported Oracle Wallet certificate for use with SSL.</p> #[serde(rename = "CertificateWallet")] #[serde( deserialize_with = "::rusoto_core::serialization::SerdeBlob::deserialize_blob", serialize_with = "::rusoto_core::serialization::SerdeBlob::serialize_blob", default )] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_wallet: Option<bytes::Bytes>, /// <p>The key length of the cryptographic algorithm being used.</p> #[serde(rename = "KeyLength")] #[serde(skip_serializing_if = "Option::is_none")] pub key_length: Option<i64>, /// <p>The signing algorithm for the certificate.</p> #[serde(rename = "SigningAlgorithm")] #[serde(skip_serializing_if = "Option::is_none")] pub signing_algorithm: Option<String>, /// <p>The beginning date that the certificate is valid.</p> #[serde(rename = "ValidFromDate")] #[serde(skip_serializing_if = "Option::is_none")] pub valid_from_date: Option<f64>, /// <p>The final date that the certificate is valid.</p> #[serde(rename = "ValidToDate")] #[serde(skip_serializing_if = "Option::is_none")] pub valid_to_date: Option<f64>, } /// <p>Status of the connection between an endpoint and a replication instance, including Amazon Resource Names (ARNs) and the last error message issued.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Connection { /// <p>The ARN string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_arn: Option<String>, /// <p>The identifier of the endpoint. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p> #[serde(rename = "EndpointIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_identifier: Option<String>, /// <p>The error message when the connection last failed.</p> #[serde(rename = "LastFailureMessage")] #[serde(skip_serializing_if = "Option::is_none")] pub last_failure_message: Option<String>, /// <p>The ARN of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, /// <p>The replication instance identifier. This parameter is stored as a lowercase string.</p> #[serde(rename = "ReplicationInstanceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_identifier: Option<String>, /// <p><p>The connection status. This parameter can return one of the following values:</p> <ul> <li> <p> <code>"successful"</code> </p> </li> <li> <p> <code>"testing"</code> </p> </li> <li> <p> <code>"failed"</code> </p> </li> <li> <p> <code>"deleting"</code> </p> </li> </ul></p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreateEndpointMessage { /// <p>The Amazon Resource Name (ARN) for the certificate.</p> #[serde(rename = "CertificateArn")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_arn: Option<String>, /// <p>The name of the endpoint database.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>The settings in JSON format for the DMS transfer type of source endpoint. </p> <p>Possible settings include the following:</p> <ul> <li> <p> <code>ServiceAccessRoleArn</code> - The IAM role that has permission to access the Amazon S3 bucket.</p> </li> <li> <p> <code>BucketName</code> - The name of the S3 bucket to use.</p> </li> <li> <p> <code>CompressionType</code> - An optional parameter to use GZIP to compress the target files. To use GZIP, set this value to <code>NONE</code> (the default). To keep the files uncompressed, don't use this value.</p> </li> </ul> <p>Shorthand syntax for these settings is as follows: <code>ServiceAccessRoleArn=string,BucketName=string,CompressionType=string</code> </p> <p>JSON syntax for these settings is as follows: <code>{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } </code> </p> #[serde(rename = "DmsTransferSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub dms_transfer_settings: Option<DmsTransferSettings>, #[serde(rename = "DocDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub doc_db_settings: Option<DocDbSettings>, /// <p>Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html">Using Object Mapping to Migrate Data to DynamoDB</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "DynamoDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub dynamo_db_settings: Option<DynamoDbSettings>, /// <p>Settings in JSON format for the target Elasticsearch endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration">Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide</i>.</p> #[serde(rename = "ElasticsearchSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub elasticsearch_settings: Option<ElasticsearchSettings>, /// <p>The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens.</p> #[serde(rename = "EndpointIdentifier")] pub endpoint_identifier: String, /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p> #[serde(rename = "EndpointType")] pub endpoint_type: String, /// <p>The type of engine for the endpoint. Valid values, depending on the <code>EndpointType</code> value, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"docdb"</code>, <code>"sqlserver"</code>, and <code>"neptune"</code>.</p> #[serde(rename = "EngineName")] pub engine_name: String, /// <p>The external table definition. </p> #[serde(rename = "ExternalTableDefinition")] #[serde(skip_serializing_if = "Option::is_none")] pub external_table_definition: Option<String>, /// <p>Additional attributes associated with the connection. Each attribute is specified as a name-value pair associated by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no additional white space. For information on the attributes available for connecting your source or target endpoint, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Endpoints.html">Working with AWS DMS Endpoints</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "ExtraConnectionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub extra_connection_attributes: Option<String>, /// <p>Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.html">Extra connection attributes when using Db2 LUW as a source for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "IBMDb2Settings")] #[serde(skip_serializing_if = "Option::is_none")] pub ibm_db_2_settings: Option<IBMDb2Settings>, /// <p>Settings in JSON format for the target Apache Kafka endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html">Using Apache Kafka as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "KafkaSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub kafka_settings: Option<KafkaSettings>, /// <p>Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html">Using Amazon Kinesis Data Streams as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "KinesisSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub kinesis_settings: Option<KinesisSettings>, /// <p>An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.</p> <p>If you don't specify a value for the <code>KmsKeyId</code> parameter, then AWS DMS uses your default encryption key.</p> <p>AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.</p> #[serde(rename = "KmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub kms_key_id: Option<String>, /// <p>Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html">Extra connection attributes when using SQL Server as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.html"> Extra connection attributes when using SQL Server as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "MicrosoftSQLServerSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub microsoft_sql_server_settings: Option<MicrosoftSQLServerSettings>, /// <p>Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration">Using MongoDB as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "MongoDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub mongo_db_settings: Option<MongoDbSettings>, /// <p>Settings in JSON format for the source and target MySQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html">Extra connection attributes when using MySQL as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html">Extra connection attributes when using a MySQL-compatible database as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "MySQLSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub my_sql_settings: Option<MySQLSettings>, /// <p>Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings">Specifying Endpoint Settings for Amazon Neptune as a Target</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "NeptuneSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub neptune_settings: Option<NeptuneSettings>, /// <p>Settings in JSON format for the source and target Oracle endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html">Extra connection attributes when using Oracle as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html"> Extra connection attributes when using Oracle as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "OracleSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub oracle_settings: Option<OracleSettings>, /// <p>The password to be used to log in to the endpoint database.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>The port used by the endpoint database.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p>Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html">Extra connection attributes when using PostgreSQL as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html"> Extra connection attributes when using PostgreSQL as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "PostgreSQLSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub postgre_sql_settings: Option<PostgreSQLSettings>, #[serde(rename = "RedshiftSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub redshift_settings: Option<RedshiftSettings>, /// <p>A friendly name for the resource identifier at the end of the <code>EndpointArn</code> response parameter that is returned in the created <code>Endpoint</code> object. The value for this parameter can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such as <code>Example-App-ARN1</code>. For example, this value might result in the <code>EndpointArn</code> value <code>arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1</code>. If you don't specify a <code>ResourceIdentifier</code> value, AWS DMS generates a default identifier value for the end of <code>EndpointArn</code>.</p> #[serde(rename = "ResourceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_identifier: Option<String>, /// <p>Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring">Extra Connection Attributes When Using Amazon S3 as a Target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "S3Settings")] #[serde(skip_serializing_if = "Option::is_none")] pub s3_settings: Option<S3Settings>, /// <p>The name of the server where the endpoint database resides.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p> The Amazon Resource Name (ARN) for the service access role that you want to use to create the endpoint. </p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p>The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default is <code>none</code> </p> #[serde(rename = "SslMode")] #[serde(skip_serializing_if = "Option::is_none")] pub ssl_mode: Option<String>, /// <p>Settings in JSON format for the source and target SAP ASE endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.html">Extra connection attributes when using SAP ASE as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.html">Extra connection attributes when using SAP ASE as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "SybaseSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub sybase_settings: Option<SybaseSettings>, /// <p>One or more tags to be assigned to the endpoint.</p> #[serde(rename = "Tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: Option<Vec<Tag>>, /// <p>The user name to be used to log in to the endpoint database.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateEndpointResponse { /// <p>The endpoint that was created.</p> #[serde(rename = "Endpoint")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint: Option<Endpoint>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreateEventSubscriptionMessage { /// <p> A Boolean value; set to <code>true</code> to activate the subscription, or set to <code>false</code> to create the subscription but not activate it. </p> #[serde(rename = "Enabled")] #[serde(skip_serializing_if = "Option::is_none")] pub enabled: Option<bool>, /// <p>A list of event categories for a source type that you want to subscribe to. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "EventCategories")] #[serde(skip_serializing_if = "Option::is_none")] pub event_categories: Option<Vec<String>>, /// <p> The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it. </p> #[serde(rename = "SnsTopicArn")] pub sns_topic_arn: String, /// <p>A list of identifiers for which AWS DMS provides notification events.</p> <p>If you don't specify a value, notifications are provided for all sources.</p> <p>If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.</p> #[serde(rename = "SourceIds")] #[serde(skip_serializing_if = "Option::is_none")] pub source_ids: Option<Vec<String>>, /// <p> The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to <code>replication-instance</code>. If this value isn't specified, all events are returned. </p> <p>Valid values: <code>replication-instance</code> | <code>replication-task</code> </p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, /// <p>The name of the AWS DMS event notification subscription. This name must be less than 255 characters.</p> #[serde(rename = "SubscriptionName")] pub subscription_name: String, /// <p>One or more tags to be assigned to the event subscription.</p> #[serde(rename = "Tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: Option<Vec<Tag>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateEventSubscriptionResponse { /// <p>The event subscription that was created.</p> #[serde(rename = "EventSubscription")] #[serde(skip_serializing_if = "Option::is_none")] pub event_subscription: Option<EventSubscription>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreateReplicationInstanceMessage { /// <p>The amount of storage (in gigabytes) to be initially allocated for the replication instance.</p> #[serde(rename = "AllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub allocated_storage: Option<i64>, /// <p>A value that indicates whether minor engine upgrades are applied automatically to the replication instance during the maintenance window. This parameter defaults to <code>true</code>.</p> <p>Default: <code>true</code> </p> #[serde(rename = "AutoMinorVersionUpgrade")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_minor_version_upgrade: Option<bool>, /// <p>The Availability Zone where the replication instance will be created. The default value is a random, system-chosen Availability Zone in the endpoint's AWS Region, for example: <code>us-east-1d</code> </p> #[serde(rename = "AvailabilityZone")] #[serde(skip_serializing_if = "Option::is_none")] pub availability_zone: Option<String>, /// <p>A list of custom DNS name servers supported for the replication instance to access your on-premise source or target database. This list overrides the default name servers supported by the replication instance. You can specify a comma-separated list of internet addresses for up to four on-premise DNS name servers. For example: <code>"1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4"</code> </p> #[serde(rename = "DnsNameServers")] #[serde(skip_serializing_if = "Option::is_none")] pub dns_name_servers: Option<String>, /// <p>The engine version number of the replication instance.</p> <p>If an engine version number is not specified when a replication instance is created, the default is the latest engine version available.</p> #[serde(rename = "EngineVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_version: Option<String>, /// <p>An AWS KMS key identifier that is used to encrypt the data on the replication instance.</p> <p>If you don't specify a value for the <code>KmsKeyId</code> parameter, then AWS DMS uses your default encryption key.</p> <p>AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.</p> #[serde(rename = "KmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub kms_key_id: Option<String>, /// <p> Specifies whether the replication instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the Multi-AZ parameter is set to <code>true</code>. </p> #[serde(rename = "MultiAZ")] #[serde(skip_serializing_if = "Option::is_none")] pub multi_az: Option<bool>, /// <p>The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).</p> <p> Format: <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>Default: A 30-minute window selected at random from an 8-hour block of time per AWS Region, occurring on a random day of the week.</p> <p>Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun</p> <p>Constraints: Minimum 30-minute window.</p> #[serde(rename = "PreferredMaintenanceWindow")] #[serde(skip_serializing_if = "Option::is_none")] pub preferred_maintenance_window: Option<String>, /// <p> Specifies the accessibility options for the replication instance. A value of <code>true</code> represents an instance with a public IP address. A value of <code>false</code> represents an instance with a private IP address. The default value is <code>true</code>. </p> #[serde(rename = "PubliclyAccessible")] #[serde(skip_serializing_if = "Option::is_none")] pub publicly_accessible: Option<bool>, /// <p>The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to <code>"dms.c4.large"</code>.</p> <p>For more information on the settings and capacities for the available replication instance classes, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth"> Selecting the right AWS DMS replication instance for your migration</a>. </p> #[serde(rename = "ReplicationInstanceClass")] pub replication_instance_class: String, /// <p>The replication instance identifier. This parameter is stored as a lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain 1-63 alphanumeric characters or hyphens.</p> </li> <li> <p>First character must be a letter.</p> </li> <li> <p>Can't end with a hyphen or contain two consecutive hyphens.</p> </li> </ul> <p>Example: <code>myrepinstance</code> </p> #[serde(rename = "ReplicationInstanceIdentifier")] pub replication_instance_identifier: String, /// <p>A subnet group to associate with the replication instance.</p> #[serde(rename = "ReplicationSubnetGroupIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group_identifier: Option<String>, /// <p>A friendly name for the resource identifier at the end of the <code>EndpointArn</code> response parameter that is returned in the created <code>Endpoint</code> object. The value for this parameter can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such as <code>Example-App-ARN1</code>. For example, this value might result in the <code>EndpointArn</code> value <code>arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1</code>. If you don't specify a <code>ResourceIdentifier</code> value, AWS DMS generates a default identifier value for the end of <code>EndpointArn</code>.</p> #[serde(rename = "ResourceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_identifier: Option<String>, /// <p>One or more tags to be assigned to the replication instance.</p> #[serde(rename = "Tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: Option<Vec<Tag>>, /// <p> Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance. </p> #[serde(rename = "VpcSecurityGroupIds")] #[serde(skip_serializing_if = "Option::is_none")] pub vpc_security_group_ids: Option<Vec<String>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateReplicationInstanceResponse { /// <p>The replication instance that was created.</p> #[serde(rename = "ReplicationInstance")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance: Option<ReplicationInstance>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreateReplicationSubnetGroupMessage { /// <p>The description for the subnet group.</p> #[serde(rename = "ReplicationSubnetGroupDescription")] pub replication_subnet_group_description: String, /// <p>The name for the replication subnet group. This value is stored as a lowercase string.</p> <p>Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be "default".</p> <p>Example: <code>mySubnetgroup</code> </p> #[serde(rename = "ReplicationSubnetGroupIdentifier")] pub replication_subnet_group_identifier: String, /// <p>One or more subnet IDs to be assigned to the subnet group.</p> #[serde(rename = "SubnetIds")] pub subnet_ids: Vec<String>, /// <p>One or more tags to be assigned to the subnet group.</p> #[serde(rename = "Tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: Option<Vec<Tag>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateReplicationSubnetGroupResponse { /// <p>The replication subnet group that was created.</p> #[serde(rename = "ReplicationSubnetGroup")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group: Option<ReplicationSubnetGroup>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CreateReplicationTaskMessage { /// <p><p>Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.</p> <p> The value can be in date, checkpoint, or LSN/SCN format.</p> <p>Date Example: --cdc-start-position “2018-03-08T12:12:12”</p> <p>Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"</p> <p>LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”</p> <note> <p>When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting the <code>slotName</code> extra connection attribute to the name of this logical replication slot. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib">Extra Connection Attributes When Using PostgreSQL as a Source for AWS DMS</a>.</p> </note></p> #[serde(rename = "CdcStartPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_position: Option<String>, /// <p>Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.</p> <p>Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”</p> #[serde(rename = "CdcStartTime")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_time: Option<f64>, /// <p>Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.</p> <p>Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12”</p> <p>Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 “</p> #[serde(rename = "CdcStopPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_stop_position: Option<String>, /// <p>The migration type. Valid values: <code>full-load</code> | <code>cdc</code> | <code>full-load-and-cdc</code> </p> #[serde(rename = "MigrationType")] pub migration_type: String, /// <p>The Amazon Resource Name (ARN) of a replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, /// <p><p>An identifier for the replication task.</p> <p>Constraints:</p> <ul> <li> <p>Must contain 1-255 alphanumeric characters or hyphens.</p> </li> <li> <p>First character must be a letter.</p> </li> <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul></p> #[serde(rename = "ReplicationTaskIdentifier")] pub replication_task_identifier: String, /// <p>Overall settings for the task, in JSON format. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html">Specifying Task Settings for AWS Database Migration Service Tasks</a> in the <i>AWS Database Migration User Guide.</i> </p> #[serde(rename = "ReplicationTaskSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_settings: Option<String>, /// <p>A friendly name for the resource identifier at the end of the <code>EndpointArn</code> response parameter that is returned in the created <code>Endpoint</code> object. The value for this parameter can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such as <code>Example-App-ARN1</code>. For example, this value might result in the <code>EndpointArn</code> value <code>arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1</code>. If you don't specify a <code>ResourceIdentifier</code> value, AWS DMS generates a default identifier value for the end of <code>EndpointArn</code>.</p> #[serde(rename = "ResourceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_identifier: Option<String>, /// <p>An Amazon Resource Name (ARN) that uniquely identifies the source endpoint.</p> #[serde(rename = "SourceEndpointArn")] pub source_endpoint_arn: String, /// <p>The table mappings for the task, in JSON format. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html">Using Table Mapping to Specify Task Settings</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "TableMappings")] pub table_mappings: String, /// <p>One or more tags to be assigned to the replication task.</p> #[serde(rename = "Tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: Option<Vec<Tag>>, /// <p>An Amazon Resource Name (ARN) that uniquely identifies the target endpoint.</p> #[serde(rename = "TargetEndpointArn")] pub target_endpoint_arn: String, /// <p>Supplemental information that the task requires to migrate the data for certain source and target endpoints. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html">Specifying Supplemental Data for Task Settings</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "TaskData")] #[serde(skip_serializing_if = "Option::is_none")] pub task_data: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CreateReplicationTaskResponse { /// <p>The replication task that was created.</p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteCertificateMessage { /// <p>The Amazon Resource Name (ARN) of the deleted certificate.</p> #[serde(rename = "CertificateArn")] pub certificate_arn: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteCertificateResponse { /// <p>The Secure Sockets Layer (SSL) certificate.</p> #[serde(rename = "Certificate")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate: Option<Certificate>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteConnectionMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteConnectionResponse { /// <p>The connection that is being deleted.</p> #[serde(rename = "Connection")] #[serde(skip_serializing_if = "Option::is_none")] pub connection: Option<Connection>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteEndpointMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteEndpointResponse { /// <p>The endpoint that was deleted.</p> #[serde(rename = "Endpoint")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint: Option<Endpoint>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteEventSubscriptionMessage { /// <p>The name of the DMS event notification subscription to be deleted.</p> #[serde(rename = "SubscriptionName")] pub subscription_name: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteEventSubscriptionResponse { /// <p>The event subscription that was deleted.</p> #[serde(rename = "EventSubscription")] #[serde(skip_serializing_if = "Option::is_none")] pub event_subscription: Option<EventSubscription>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteReplicationInstanceMessage { /// <p>The Amazon Resource Name (ARN) of the replication instance to be deleted.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteReplicationInstanceResponse { /// <p>The replication instance that was deleted.</p> #[serde(rename = "ReplicationInstance")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance: Option<ReplicationInstance>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteReplicationSubnetGroupMessage { /// <p>The subnet group name of the replication instance.</p> #[serde(rename = "ReplicationSubnetGroupIdentifier")] pub replication_subnet_group_identifier: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteReplicationSubnetGroupResponse {} /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteReplicationTaskAssessmentRunMessage { /// <p>Amazon Resource Name (ARN) of the premigration assessment run to be deleted.</p> #[serde(rename = "ReplicationTaskAssessmentRunArn")] pub replication_task_assessment_run_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteReplicationTaskAssessmentRunResponse { /// <p>The <code>ReplicationTaskAssessmentRun</code> object for the deleted assessment run.</p> #[serde(rename = "ReplicationTaskAssessmentRun")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_run: Option<ReplicationTaskAssessmentRun>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteReplicationTaskMessage { /// <p>The Amazon Resource Name (ARN) of the replication task to be deleted.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteReplicationTaskResponse { /// <p>The deleted replication task.</p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeAccountAttributesMessage {} /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeAccountAttributesResponse { /// <p>Account quota information.</p> #[serde(rename = "AccountQuotas")] #[serde(skip_serializing_if = "Option::is_none")] pub account_quotas: Option<Vec<AccountQuota>>, /// <p><p>A unique AWS DMS identifier for an account in a particular AWS Region. The value of this identifier has the following format: <code>c99999999999</code>. DMS uses this identifier to name artifacts. For example, DMS uses this identifier to name the default Amazon S3 bucket for storing task assessment reports in a given AWS Region. The format of this S3 bucket name is the following: <code>dms-<i>AccountNumber</i>-<i>UniqueAccountIdentifier</i>.</code> Here is an example name for this default S3 bucket: <code>dms-111122223333-c44445555666</code>.</p> <note> <p>AWS DMS supports the <code>UniqueAccountIdentifier</code> parameter in versions 3.1.4 and later.</p> </note></p> #[serde(rename = "UniqueAccountIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub unique_account_identifier: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeApplicableIndividualAssessmentsMessage { /// <p>Optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>Maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>Name of the migration type that each provided individual assessment must support.</p> #[serde(rename = "MigrationType")] #[serde(skip_serializing_if = "Option::is_none")] pub migration_type: Option<String>, /// <p>ARN of a replication instance on which you want to base the default list of individual assessments.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, /// <p>Amazon Resource Name (ARN) of a migration task on which you want to base the default list of individual assessments.</p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, /// <p>Name of a database engine that the specified replication instance supports as a source.</p> #[serde(rename = "SourceEngineName")] #[serde(skip_serializing_if = "Option::is_none")] pub source_engine_name: Option<String>, /// <p>Name of a database engine that the specified replication instance supports as a target.</p> #[serde(rename = "TargetEngineName")] #[serde(skip_serializing_if = "Option::is_none")] pub target_engine_name: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeApplicableIndividualAssessmentsResponse { /// <p>List of names for the individual assessments supported by the premigration assessment run that you start based on the specified request parameters. For more information on the available individual assessments, including compatibility with different migration task configurations, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html">Working with premigration assessment runs</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "IndividualAssessmentNames")] #[serde(skip_serializing_if = "Option::is_none")] pub individual_assessment_names: Option<Vec<String>>, /// <p>Pagination token returned for you to pass to a subsequent request. If you pass this token as the <code>Marker</code> value in a subsequent request, the response includes only records beyond the marker, up to the value specified in the request by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeCertificatesMessage { /// <p>Filters applied to the certificates described in the form of key-value pairs.</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 10</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeCertificatesResponse { /// <p>The Secure Sockets Layer (SSL) certificates associated with the replication instance.</p> #[serde(rename = "Certificates")] #[serde(skip_serializing_if = "Option::is_none")] pub certificates: Option<Vec<Certificate>>, /// <p>The pagination token.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeConnectionsMessage { /// <p>The filters applied to the connection.</p> <p>Valid filter names: endpoint-arn | replication-instance-arn</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeConnectionsResponse { /// <p>A description of the connections.</p> #[serde(rename = "Connections")] #[serde(skip_serializing_if = "Option::is_none")] pub connections: Option<Vec<Connection>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeEndpointTypesMessage { /// <p>Filters applied to the endpoint types.</p> <p>Valid filter names: engine-name | endpoint-type</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeEndpointTypesResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The types of endpoints that are supported.</p> #[serde(rename = "SupportedEndpointTypes")] #[serde(skip_serializing_if = "Option::is_none")] pub supported_endpoint_types: Option<Vec<SupportedEndpointType>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeEndpointsMessage { /// <p>Filters applied to the endpoints.</p> <p>Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeEndpointsResponse { /// <p>Endpoint description.</p> #[serde(rename = "Endpoints")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoints: Option<Vec<Endpoint>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeEventCategoriesMessage { /// <p>Filters applied to the event categories.</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> The type of AWS DMS resource that generates events. </p> <p>Valid values: replication-instance | replication-task</p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeEventCategoriesResponse { /// <p>A list of event categories.</p> #[serde(rename = "EventCategoryGroupList")] #[serde(skip_serializing_if = "Option::is_none")] pub event_category_group_list: Option<Vec<EventCategoryGroup>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeEventSubscriptionsMessage { /// <p>Filters applied to event subscriptions.</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>The name of the AWS DMS event subscription to be described.</p> #[serde(rename = "SubscriptionName")] #[serde(skip_serializing_if = "Option::is_none")] pub subscription_name: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeEventSubscriptionsResponse { /// <p>A list of event subscriptions.</p> #[serde(rename = "EventSubscriptionsList")] #[serde(skip_serializing_if = "Option::is_none")] pub event_subscriptions_list: Option<Vec<EventSubscription>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeEventsMessage { /// <p>The duration of the events to be listed.</p> #[serde(rename = "Duration")] #[serde(skip_serializing_if = "Option::is_none")] pub duration: Option<i64>, /// <p>The end time for the events to be listed.</p> #[serde(rename = "EndTime")] #[serde(skip_serializing_if = "Option::is_none")] pub end_time: Option<f64>, /// <p>A list of event categories for the source type that you've chosen.</p> #[serde(rename = "EventCategories")] #[serde(skip_serializing_if = "Option::is_none")] pub event_categories: Option<Vec<String>>, /// <p>Filters applied to events.</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p> The identifier of an event source.</p> #[serde(rename = "SourceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub source_identifier: Option<String>, /// <p>The type of AWS DMS resource that generates events.</p> <p>Valid values: replication-instance | replication-task</p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, /// <p>The start time for the events to be listed.</p> #[serde(rename = "StartTime")] #[serde(skip_serializing_if = "Option::is_none")] pub start_time: Option<f64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeEventsResponse { /// <p>The events described.</p> #[serde(rename = "Events")] #[serde(skip_serializing_if = "Option::is_none")] pub events: Option<Vec<Event>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeOrderableReplicationInstancesMessage { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeOrderableReplicationInstancesResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The order-able replication instances available.</p> #[serde(rename = "OrderableReplicationInstances")] #[serde(skip_serializing_if = "Option::is_none")] pub orderable_replication_instances: Option<Vec<OrderableReplicationInstance>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribePendingMaintenanceActionsMessage { /// <p><p/></p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribePendingMaintenanceActionsResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The pending maintenance action.</p> #[serde(rename = "PendingMaintenanceActions")] #[serde(skip_serializing_if = "Option::is_none")] pub pending_maintenance_actions: Option<Vec<ResourcePendingMaintenanceActions>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeRefreshSchemasStatusMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeRefreshSchemasStatusResponse { /// <p>The status of the schema.</p> #[serde(rename = "RefreshSchemasStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub refresh_schemas_status: Option<RefreshSchemasStatus>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationInstanceTaskLogsMessage { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationInstanceTaskLogsResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, /// <p>An array of replication task log metadata. Each member of the array contains the replication task name, ARN, and task log size (in bytes). </p> #[serde(rename = "ReplicationInstanceTaskLogs")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_task_logs: Option<Vec<ReplicationInstanceTaskLog>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationInstancesMessage { /// <p>Filters applied to replication instances.</p> <p>Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationInstancesResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The replication instances described.</p> #[serde(rename = "ReplicationInstances")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instances: Option<Vec<ReplicationInstance>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationSubnetGroupsMessage { /// <p>Filters applied to replication subnet groups.</p> <p>Valid filter names: replication-subnet-group-id</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationSubnetGroupsResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>A description of the replication subnet groups.</p> #[serde(rename = "ReplicationSubnetGroups")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_groups: Option<Vec<ReplicationSubnetGroup>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationTaskAssessmentResultsMessage { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the task. When this input parameter is specified, the API returns only one result and ignore the values of the <code>MaxRecords</code> and <code>Marker</code> parameters. </p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationTaskAssessmentResultsResponse { /// <p>- The Amazon S3 bucket where the task assessment report is located. </p> #[serde(rename = "BucketName")] #[serde(skip_serializing_if = "Option::is_none")] pub bucket_name: Option<String>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The task assessment report. </p> #[serde(rename = "ReplicationTaskAssessmentResults")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_results: Option<Vec<ReplicationTaskAssessmentResult>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationTaskAssessmentRunsMessage { /// <p>Filters applied to the premigration assessment runs described in the form of key-value pairs.</p> <p>Valid filter names: <code>replication-task-assessment-run-arn</code>, <code>replication-task-arn</code>, <code>replication-instance-arn</code>, <code>status</code> </p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationTaskAssessmentRunsResponse { /// <p>A pagination token returned for you to pass to a subsequent request. If you pass this token as the <code>Marker</code> value in a subsequent request, the response includes only records beyond the marker, up to the value specified in the request by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>One or more premigration assessment runs as specified by <code>Filters</code>.</p> #[serde(rename = "ReplicationTaskAssessmentRuns")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_runs: Option<Vec<ReplicationTaskAssessmentRun>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationTaskIndividualAssessmentsMessage { /// <p>Filters applied to the individual assessments described in the form of key-value pairs.</p> <p>Valid filter names: <code>replication-task-assessment-run-arn</code>, <code>replication-task-arn</code>, <code>status</code> </p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationTaskIndividualAssessmentsResponse { /// <p>A pagination token returned for you to pass to a subsequent request. If you pass this token as the <code>Marker</code> value in a subsequent request, the response includes only records beyond the marker, up to the value specified in the request by <code>MaxRecords</code>.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>One or more individual assessments as specified by <code>Filters</code>.</p> #[serde(rename = "ReplicationTaskIndividualAssessments")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_individual_assessments: Option<Vec<ReplicationTaskIndividualAssessment>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeReplicationTasksMessage { /// <p>Filters applied to replication tasks.</p> <p>Valid filter names: replication-task-arn | replication-task-id | migration-type | endpoint-arn | replication-instance-arn</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>An option to set to avoid returning information about settings. Use this to reduce overhead when setting information is too large. To use this option, choose <code>true</code>; otherwise, choose <code>false</code> (the default).</p> #[serde(rename = "WithoutSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub without_settings: Option<bool>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeReplicationTasksResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>A description of the replication tasks.</p> #[serde(rename = "ReplicationTasks")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_tasks: Option<Vec<ReplicationTask>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeSchemasMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeSchemasResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The described schema.</p> #[serde(rename = "Schemas")] #[serde(skip_serializing_if = "Option::is_none")] pub schemas: Option<Vec<String>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DescribeTableStatisticsMessage { /// <p>Filters applied to table statistics.</p> <p>Valid filter names: schema-name | table-name | table-state</p> <p>A combination of filters creates an AND condition where each record matches all specified filters.</p> #[serde(rename = "Filters")] #[serde(skip_serializing_if = "Option::is_none")] pub filters: Option<Vec<Filter>>, /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p> The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 500.</p> #[serde(rename = "MaxRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub max_records: Option<i64>, /// <p>The Amazon Resource Name (ARN) of the replication task.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DescribeTableStatisticsResponse { /// <p> An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication task.</p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, /// <p>The table statistics.</p> #[serde(rename = "TableStatistics")] #[serde(skip_serializing_if = "Option::is_none")] pub table_statistics: Option<Vec<TableStatistics>>, } /// <p> The settings in JSON format for the DMS Transfer type source endpoint. </p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct DmsTransferSettings { /// <p> The name of the S3 bucket to use. </p> #[serde(rename = "BucketName")] #[serde(skip_serializing_if = "Option::is_none")] pub bucket_name: Option<String>, /// <p> The IAM role that has permission to access the Amazon S3 bucket. </p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, } /// <p>Provides information that defines a DocumentDB endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct DocDbSettings { /// <p> The database name on the DocumentDB source endpoint. </p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p> Indicates the number of documents to preview to determine the document organization. Use this setting when <code>NestingLevel</code> is set to <code>"one"</code>. </p> <p>Must be a positive value greater than <code>0</code>. Default value is <code>1000</code>.</p> #[serde(rename = "DocsToInvestigate")] #[serde(skip_serializing_if = "Option::is_none")] pub docs_to_investigate: Option<i64>, /// <p> Specifies the document ID. Use this setting when <code>NestingLevel</code> is set to <code>"none"</code>. </p> <p>Default value is <code>"false"</code>. </p> #[serde(rename = "ExtractDocId")] #[serde(skip_serializing_if = "Option::is_none")] pub extract_doc_id: Option<bool>, /// <p>The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the <code>KmsKeyId</code> parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.</p> #[serde(rename = "KmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub kms_key_id: Option<String>, /// <p> Specifies either document or table mode. </p> <p>Default value is <code>"none"</code>. Specify <code>"none"</code> to use document mode. Specify <code>"one"</code> to use table mode.</p> #[serde(rename = "NestingLevel")] #[serde(skip_serializing_if = "Option::is_none")] pub nesting_level: Option<String>, /// <p> The password for the user account you use to access the DocumentDB source endpoint. </p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p> The port value for the DocumentDB source endpoint. </p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the DocumentDB endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the DocumentDB endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p> The name of the server on the DocumentDB source endpoint. </p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>The user name you use to access the DocumentDB source endpoint. </p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p>Provides the Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used to define an Amazon DynamoDB target endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct DynamoDbSettings { /// <p> The Amazon Resource Name (ARN) used by the service access IAM role. </p> #[serde(rename = "ServiceAccessRoleArn")] pub service_access_role_arn: String, } /// <p>Provides information that defines an Elasticsearch endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct ElasticsearchSettings { /// <p>The endpoint for the Elasticsearch cluster. AWS DMS uses HTTPS if a transport protocol (http/https) is not specified.</p> #[serde(rename = "EndpointUri")] pub endpoint_uri: String, /// <p>The maximum number of seconds for which DMS retries failed API requests to the Elasticsearch cluster.</p> #[serde(rename = "ErrorRetryDuration")] #[serde(skip_serializing_if = "Option::is_none")] pub error_retry_duration: Option<i64>, /// <p>The maximum percentage of records that can fail to be written before a full load operation stops.</p> <p>To avoid early failure, this counter is only effective after 1000 records are transferred. Elasticsearch also has the concept of error monitoring during the last 10 minutes of an Observation Window. If transfer of all records fail in the last 10 minutes, the full load operation stops. </p> #[serde(rename = "FullLoadErrorPercentage")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_error_percentage: Option<i64>, /// <p>The Amazon Resource Name (ARN) used by service to access the IAM role.</p> #[serde(rename = "ServiceAccessRoleArn")] pub service_access_role_arn: String, } /// <p><p>Describes an endpoint of a database instance in response to operations such as the following:</p> <ul> <li> <p> <code>CreateEndpoint</code> </p> </li> <li> <p> <code>DescribeEndpoint</code> </p> </li> <li> <p> <code>DescribeEndpointTypes</code> </p> </li> <li> <p> <code>ModifyEndpoint</code> </p> </li> </ul></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Endpoint { /// <p>The Amazon Resource Name (ARN) used for SSL connection to the endpoint.</p> #[serde(rename = "CertificateArn")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_arn: Option<String>, /// <p>The name of the database at the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>The settings in JSON format for the DMS transfer type of source endpoint. </p> <p>Possible settings include the following:</p> <ul> <li> <p> <code>ServiceAccessRoleArn</code> - The IAM role that has permission to access the Amazon S3 bucket.</p> </li> <li> <p> <code>BucketName</code> - The name of the S3 bucket to use.</p> </li> <li> <p> <code>CompressionType</code> - An optional parameter to use GZIP to compress the target files. To use GZIP, set this value to <code>NONE</code> (the default). To keep the files uncompressed, don't use this value.</p> </li> </ul> <p>Shorthand syntax for these settings is as follows: <code>ServiceAccessRoleArn=string,BucketName=string,CompressionType=string</code> </p> <p>JSON syntax for these settings is as follows: <code>{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } </code> </p> #[serde(rename = "DmsTransferSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub dms_transfer_settings: Option<DmsTransferSettings>, #[serde(rename = "DocDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub doc_db_settings: Option<DocDbSettings>, /// <p>The settings for the DynamoDB target endpoint. For more information, see the <code>DynamoDBSettings</code> structure.</p> #[serde(rename = "DynamoDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub dynamo_db_settings: Option<DynamoDbSettings>, /// <p>The settings for the Elasticsearch source endpoint. For more information, see the <code>ElasticsearchSettings</code> structure.</p> #[serde(rename = "ElasticsearchSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub elasticsearch_settings: Option<ElasticsearchSettings>, /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_arn: Option<String>, /// <p>The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p> #[serde(rename = "EndpointIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_identifier: Option<String>, /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p> #[serde(rename = "EndpointType")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_type: Option<String>, /// <p>The expanded name for the engine name. For example, if the <code>EngineName</code> parameter is "aurora," this value would be "Amazon Aurora MySQL."</p> #[serde(rename = "EngineDisplayName")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_display_name: Option<String>, /// <p>The database engine name. Valid values, depending on the EndpointType, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>, and <code>"neptune"</code>.</p> #[serde(rename = "EngineName")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_name: Option<String>, /// <p> Value returned by a call to CreateEndpoint that can be used for cross-account validation. Use it on a subsequent call to CreateEndpoint to create the endpoint with a cross-account. </p> #[serde(rename = "ExternalId")] #[serde(skip_serializing_if = "Option::is_none")] pub external_id: Option<String>, /// <p>The external table definition.</p> #[serde(rename = "ExternalTableDefinition")] #[serde(skip_serializing_if = "Option::is_none")] pub external_table_definition: Option<String>, /// <p>Additional connection attributes used to connect to the endpoint.</p> #[serde(rename = "ExtraConnectionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub extra_connection_attributes: Option<String>, /// <p>The settings for the IBM Db2 LUW source endpoint. For more information, see the <code>IBMDb2Settings</code> structure. </p> #[serde(rename = "IBMDb2Settings")] #[serde(skip_serializing_if = "Option::is_none")] pub ibm_db_2_settings: Option<IBMDb2Settings>, /// <p>The settings for the Apache Kafka target endpoint. For more information, see the <code>KafkaSettings</code> structure.</p> #[serde(rename = "KafkaSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub kafka_settings: Option<KafkaSettings>, /// <p>The settings for the Amazon Kinesis target endpoint. For more information, see the <code>KinesisSettings</code> structure.</p> #[serde(rename = "KinesisSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub kinesis_settings: Option<KinesisSettings>, /// <p>An AWS KMS key identifier that is used to encrypt the connection parameters for the endpoint.</p> <p>If you don't specify a value for the <code>KmsKeyId</code> parameter, then AWS DMS uses your default encryption key.</p> <p>AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.</p> #[serde(rename = "KmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub kms_key_id: Option<String>, /// <p>The settings for the Microsoft SQL Server source and target endpoint. For more information, see the <code>MicrosoftSQLServerSettings</code> structure.</p> #[serde(rename = "MicrosoftSQLServerSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub microsoft_sql_server_settings: Option<MicrosoftSQLServerSettings>, /// <p>The settings for the MongoDB source endpoint. For more information, see the <code>MongoDbSettings</code> structure.</p> #[serde(rename = "MongoDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub mongo_db_settings: Option<MongoDbSettings>, /// <p>The settings for the MySQL source and target endpoint. For more information, see the <code>MySQLSettings</code> structure.</p> #[serde(rename = "MySQLSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub my_sql_settings: Option<MySQLSettings>, /// <p>The settings for the Amazon Neptune target endpoint. For more information, see the <code>NeptuneSettings</code> structure.</p> #[serde(rename = "NeptuneSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub neptune_settings: Option<NeptuneSettings>, /// <p>The settings for the Oracle source and target endpoint. For more information, see the <code>OracleSettings</code> structure.</p> #[serde(rename = "OracleSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub oracle_settings: Option<OracleSettings>, /// <p>The port value used to access the endpoint.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p>The settings for the PostgreSQL source and target endpoint. For more information, see the <code>PostgreSQLSettings</code> structure.</p> #[serde(rename = "PostgreSQLSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub postgre_sql_settings: Option<PostgreSQLSettings>, /// <p>Settings for the Amazon Redshift endpoint.</p> #[serde(rename = "RedshiftSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub redshift_settings: Option<RedshiftSettings>, /// <p>The settings for the S3 target endpoint. For more information, see the <code>S3Settings</code> structure.</p> #[serde(rename = "S3Settings")] #[serde(skip_serializing_if = "Option::is_none")] pub s3_settings: Option<S3Settings>, /// <p>The name of the server at the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>The Amazon Resource Name (ARN) used by the service access IAM role.</p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p>The SSL mode used to connect to the endpoint. The default value is <code>none</code>.</p> #[serde(rename = "SslMode")] #[serde(skip_serializing_if = "Option::is_none")] pub ssl_mode: Option<String>, /// <p>The status of the endpoint.</p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, /// <p>The settings for the SAP ASE source and target endpoint. For more information, see the <code>SybaseSettings</code> structure.</p> #[serde(rename = "SybaseSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub sybase_settings: Option<SybaseSettings>, /// <p>The user name used to connect to the endpoint.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p>Describes an identifiable significant activity that affects a replication instance or task. This object can provide the message, the available event categories, the date and source of the event, and the AWS DMS resource type.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Event { /// <p>The date of the event.</p> #[serde(rename = "Date")] #[serde(skip_serializing_if = "Option::is_none")] pub date: Option<f64>, /// <p>The event categories available for the specified source type.</p> #[serde(rename = "EventCategories")] #[serde(skip_serializing_if = "Option::is_none")] pub event_categories: Option<Vec<String>>, /// <p>The event message.</p> #[serde(rename = "Message")] #[serde(skip_serializing_if = "Option::is_none")] pub message: Option<String>, /// <p> The identifier of an event source.</p> #[serde(rename = "SourceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub source_identifier: Option<String>, /// <p> The type of AWS DMS resource that generates events. </p> <p>Valid values: replication-instance | endpoint | replication-task</p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, } /// <p>Lists categories of events subscribed to, and generated by, the applicable AWS DMS resource type. This data type appears in response to the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_EventCategoryGroup.html"> <code>DescribeEventCategories</code> </a> action.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct EventCategoryGroup { /// <p> A list of event categories from a source type that you've chosen.</p> #[serde(rename = "EventCategories")] #[serde(skip_serializing_if = "Option::is_none")] pub event_categories: Option<Vec<String>>, /// <p> The type of AWS DMS resource that generates events. </p> <p>Valid values: replication-instance | replication-server | security-group | replication-task</p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, } /// <p>Describes an event notification subscription created by the <code>CreateEventSubscription</code> operation.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct EventSubscription { /// <p>The AWS DMS event notification subscription Id.</p> #[serde(rename = "CustSubscriptionId")] #[serde(skip_serializing_if = "Option::is_none")] pub cust_subscription_id: Option<String>, /// <p>The AWS customer account associated with the AWS DMS event notification subscription.</p> #[serde(rename = "CustomerAwsId")] #[serde(skip_serializing_if = "Option::is_none")] pub customer_aws_id: Option<String>, /// <p>Boolean value that indicates if the event subscription is enabled.</p> #[serde(rename = "Enabled")] #[serde(skip_serializing_if = "Option::is_none")] pub enabled: Option<bool>, /// <p>A lists of event categories.</p> #[serde(rename = "EventCategoriesList")] #[serde(skip_serializing_if = "Option::is_none")] pub event_categories_list: Option<Vec<String>>, /// <p>The topic ARN of the AWS DMS event notification subscription.</p> #[serde(rename = "SnsTopicArn")] #[serde(skip_serializing_if = "Option::is_none")] pub sns_topic_arn: Option<String>, /// <p>A list of source Ids for the event subscription.</p> #[serde(rename = "SourceIdsList")] #[serde(skip_serializing_if = "Option::is_none")] pub source_ids_list: Option<Vec<String>>, /// <p> The type of AWS DMS resource that generates events. </p> <p>Valid values: replication-instance | replication-server | security-group | replication-task</p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, /// <p>The status of the AWS DMS event notification subscription.</p> <p>Constraints:</p> <p>Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist</p> <p>The status "no-permission" indicates that AWS DMS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.</p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, /// <p>The time the AWS DMS event notification subscription was created.</p> #[serde(rename = "SubscriptionCreationTime")] #[serde(skip_serializing_if = "Option::is_none")] pub subscription_creation_time: Option<String>, } /// <p>Identifies the name and value of a filter object. This filter is used to limit the number and type of AWS DMS objects that are returned for a particular <code>Describe*</code> call or similar operation. Filters are used as an optional parameter for certain API operations. </p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct Filter { /// <p>The name of the filter as specified for a <code>Describe*</code> or similar operation.</p> #[serde(rename = "Name")] pub name: String, /// <p>The filter value, which can specify one or more values used to narrow the returned results.</p> #[serde(rename = "Values")] pub values: Vec<String>, } /// <p>Provides information that defines an IBM Db2 LUW endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct IBMDb2Settings { /// <p>For ongoing replication (CDC), use CurrentLSN to specify a log sequence number (LSN) where you want the replication to start.</p> #[serde(rename = "CurrentLsn")] #[serde(skip_serializing_if = "Option::is_none")] pub current_lsn: Option<String>, /// <p>Database name for the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.</p> #[serde(rename = "MaxKBytesPerRead")] #[serde(skip_serializing_if = "Option::is_none")] pub max_k_bytes_per_read: Option<i64>, /// <p>Endpoint connection password.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>Endpoint TCP port.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the Db2 LUW endpoint. </p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the Db2 LUW endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>Fully qualified domain name of the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>Enables ongoing replication (CDC) as a BOOLEAN value. The default is true.</p> #[serde(rename = "SetDataCaptureChanges")] #[serde(skip_serializing_if = "Option::is_none")] pub set_data_capture_changes: Option<bool>, /// <p>Endpoint connection user name.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ImportCertificateMessage { /// <p>A customer-assigned name for the certificate. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p> #[serde(rename = "CertificateIdentifier")] pub certificate_identifier: String, /// <p>The contents of a <code>.pem</code> file, which contains an X.509 certificate.</p> #[serde(rename = "CertificatePem")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_pem: Option<String>, /// <p>The location of an imported Oracle Wallet certificate for use with SSL.</p> #[serde(rename = "CertificateWallet")] #[serde( deserialize_with = "::rusoto_core::serialization::SerdeBlob::deserialize_blob", serialize_with = "::rusoto_core::serialization::SerdeBlob::serialize_blob", default )] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_wallet: Option<bytes::Bytes>, /// <p>The tags associated with the certificate.</p> #[serde(rename = "Tags")] #[serde(skip_serializing_if = "Option::is_none")] pub tags: Option<Vec<Tag>>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ImportCertificateResponse { /// <p>The certificate to be uploaded.</p> #[serde(rename = "Certificate")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate: Option<Certificate>, } /// <p>Provides information that describes an Apache Kafka endpoint. This information includes the output format of records applied to the endpoint and details of transaction and control table data information.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct KafkaSettings { /// <p>The broker location and port of the Kafka broker that hosts your Kafka instance. Specify the broker in the form <code> <i>broker-hostname-or-ip</i>:<i>port</i> </code>. For example, <code>"ec2-12-345-678-901.compute-1.amazonaws.com:2345"</code>.</p> #[serde(rename = "Broker")] #[serde(skip_serializing_if = "Option::is_none")] pub broker: Option<String>, /// <p>Shows detailed control information for table definition, column definition, and table and column changes in the Kafka message output. The default is <code>false</code>.</p> #[serde(rename = "IncludeControlDetails")] #[serde(skip_serializing_if = "Option::is_none")] pub include_control_details: Option<bool>, /// <p>Include NULL and empty columns for records migrated to the endpoint. The default is <code>false</code>.</p> #[serde(rename = "IncludeNullAndEmpty")] #[serde(skip_serializing_if = "Option::is_none")] pub include_null_and_empty: Option<bool>, /// <p>Shows the partition value within the Kafka message output, unless the partition type is <code>schema-table-type</code>. The default is <code>false</code>.</p> #[serde(rename = "IncludePartitionValue")] #[serde(skip_serializing_if = "Option::is_none")] pub include_partition_value: Option<bool>, /// <p>Includes any data definition language (DDL) operations that change the table in the control data, such as <code>rename-table</code>, <code>drop-table</code>, <code>add-column</code>, <code>drop-column</code>, and <code>rename-column</code>. The default is <code>false</code>.</p> #[serde(rename = "IncludeTableAlterOperations")] #[serde(skip_serializing_if = "Option::is_none")] pub include_table_alter_operations: Option<bool>, /// <p>Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values for <code>transaction_id</code>, previous <code>transaction_id</code>, and <code>transaction_record_id</code> (the record offset within a transaction). The default is <code>false</code>.</p> #[serde(rename = "IncludeTransactionDetails")] #[serde(skip_serializing_if = "Option::is_none")] pub include_transaction_details: Option<bool>, /// <p>The output format for the records created on the endpoint. The message format is <code>JSON</code> (default) or <code>JSON_UNFORMATTED</code> (a single line with no tab).</p> #[serde(rename = "MessageFormat")] #[serde(skip_serializing_if = "Option::is_none")] pub message_format: Option<String>, /// <p>The maximum size in bytes for records created on the endpoint The default is 1,000,000.</p> #[serde(rename = "MessageMaxBytes")] #[serde(skip_serializing_if = "Option::is_none")] pub message_max_bytes: Option<i64>, /// <p>Prefixes schema and table names to partition values, when the partition type is <code>primary-key-type</code>. Doing this increases data distribution among Kafka partitions. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same partition, which causes throttling. The default is <code>false</code>.</p> #[serde(rename = "PartitionIncludeSchemaTable")] #[serde(skip_serializing_if = "Option::is_none")] pub partition_include_schema_table: Option<bool>, /// <p>The topic to which you migrate the data. If you don't specify a topic, AWS DMS specifies <code>"kafka-default-topic"</code> as the migration topic.</p> #[serde(rename = "Topic")] #[serde(skip_serializing_if = "Option::is_none")] pub topic: Option<String>, } /// <p>Provides information that describes an Amazon Kinesis Data Stream endpoint. This information includes the output format of records applied to the endpoint and details of transaction and control table data information.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct KinesisSettings { /// <p>Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. The default is <code>false</code>.</p> #[serde(rename = "IncludeControlDetails")] #[serde(skip_serializing_if = "Option::is_none")] pub include_control_details: Option<bool>, /// <p>Include NULL and empty columns for records migrated to the endpoint. The default is <code>false</code>.</p> #[serde(rename = "IncludeNullAndEmpty")] #[serde(skip_serializing_if = "Option::is_none")] pub include_null_and_empty: Option<bool>, /// <p>Shows the partition value within the Kinesis message output, unless the partition type is <code>schema-table-type</code>. The default is <code>false</code>.</p> #[serde(rename = "IncludePartitionValue")] #[serde(skip_serializing_if = "Option::is_none")] pub include_partition_value: Option<bool>, /// <p>Includes any data definition language (DDL) operations that change the table in the control data, such as <code>rename-table</code>, <code>drop-table</code>, <code>add-column</code>, <code>drop-column</code>, and <code>rename-column</code>. The default is <code>false</code>.</p> #[serde(rename = "IncludeTableAlterOperations")] #[serde(skip_serializing_if = "Option::is_none")] pub include_table_alter_operations: Option<bool>, /// <p>Provides detailed transaction information from the source database. This information includes a commit timestamp, a log position, and values for <code>transaction_id</code>, previous <code>transaction_id</code>, and <code>transaction_record_id</code> (the record offset within a transaction). The default is <code>false</code>.</p> #[serde(rename = "IncludeTransactionDetails")] #[serde(skip_serializing_if = "Option::is_none")] pub include_transaction_details: Option<bool>, /// <p>The output format for the records created on the endpoint. The message format is <code>JSON</code> (default) or <code>JSON_UNFORMATTED</code> (a single line with no tab).</p> #[serde(rename = "MessageFormat")] #[serde(skip_serializing_if = "Option::is_none")] pub message_format: Option<String>, /// <p>Prefixes schema and table names to partition values, when the partition type is <code>primary-key-type</code>. Doing this increases data distribution among Kinesis shards. For example, suppose that a SysBench schema has thousands of tables and each table has only limited range for a primary key. In this case, the same primary key is sent from thousands of tables to the same shard, which causes throttling. The default is <code>false</code>.</p> #[serde(rename = "PartitionIncludeSchemaTable")] #[serde(skip_serializing_if = "Option::is_none")] pub partition_include_schema_table: Option<bool>, /// <p>The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role that AWS DMS uses to write to the Kinesis data stream.</p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p>The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.</p> #[serde(rename = "StreamArn")] #[serde(skip_serializing_if = "Option::is_none")] pub stream_arn: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ListTagsForResourceMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS resource.</p> #[serde(rename = "ResourceArn")] pub resource_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ListTagsForResourceResponse { /// <p>A list of tags for the resource.</p> #[serde(rename = "TagList")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_list: Option<Vec<Tag>>, } /// <p>Provides information that defines a Microsoft SQL Server endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct MicrosoftSQLServerSettings { /// <p>The maximum size of the packets (in bytes) used to transfer data using BCP.</p> #[serde(rename = "BcpPacketSize")] #[serde(skip_serializing_if = "Option::is_none")] pub bcp_packet_size: Option<i64>, /// <p>Specifies a file group for the AWS DMS internal tables. When the replication task starts, all the internal AWS DMS control tables (awsdms_ apply_exception, awsdms_apply, awsdms_changes) are created for the specified file group.</p> #[serde(rename = "ControlTablesFileGroup")] #[serde(skip_serializing_if = "Option::is_none")] pub control_tables_file_group: Option<String>, /// <p>Database name for the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>Endpoint connection password.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>Endpoint TCP port.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p>When this attribute is set to <code>Y</code>, AWS DMS only reads changes from transaction log backups and doesn't read from the active transaction log file during ongoing replication. Setting this parameter to <code>Y</code> enables you to control active transaction log file growth during full load and ongoing replication tasks. However, it can add some source latency to ongoing replication.</p> #[serde(rename = "ReadBackupOnly")] #[serde(skip_serializing_if = "Option::is_none")] pub read_backup_only: Option<bool>, /// <p>Use this attribute to minimize the need to access the backup log and enable AWS DMS to prevent truncation using one of the following two methods.</p> <p> <i>Start transactions in the database:</i> This is the default method. When this method is used, AWS DMS prevents TLOG truncation by mimicking a transaction in the database. As long as such a transaction is open, changes that appear after the transaction started aren't truncated. If you need Microsoft Replication to be enabled in your database, then you must choose this method.</p> <p> <i>Exclusively use sp_repldone within a single task</i>: When this method is used, AWS DMS reads the changes and then uses sp_repldone to mark the TLOG transactions as ready for truncation. Although this method doesn't involve any transactional activities, it can only be used when Microsoft Replication isn't running. Also, when using this method, only one AWS DMS task can access the database at any given time. Therefore, if you need to run parallel AWS DMS tasks against the same database, use the default method.</p> #[serde(rename = "SafeguardPolicy")] #[serde(skip_serializing_if = "Option::is_none")] pub safeguard_policy: Option<String>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the SQL Server endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the SQL Server endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>Fully qualified domain name of the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>Use this to attribute to transfer data for full-load operations using BCP. When the target table contains an identity column that does not exist in the source table, you must disable the use BCP for loading table option.</p> #[serde(rename = "UseBcpFullLoad")] #[serde(skip_serializing_if = "Option::is_none")] pub use_bcp_full_load: Option<bool>, /// <p>Endpoint connection user name.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ModifyEndpointMessage { /// <p>The Amazon Resource Name (ARN) of the certificate used for SSL connection.</p> #[serde(rename = "CertificateArn")] #[serde(skip_serializing_if = "Option::is_none")] pub certificate_arn: Option<String>, /// <p>The name of the endpoint database.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>The settings in JSON format for the DMS transfer type of source endpoint. </p> <p>Attributes include the following:</p> <ul> <li> <p>serviceAccessRoleArn - The AWS Identity and Access Management (IAM) role that has permission to access the Amazon S3 bucket.</p> </li> <li> <p>BucketName - The name of the S3 bucket to use.</p> </li> <li> <p>compressionType - An optional parameter to use GZIP to compress the target files. Either set this parameter to NONE (the default) or don't use it to leave the files uncompressed.</p> </li> </ul> <p>Shorthand syntax for these settings is as follows: <code>ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string</code> </p> <p>JSON syntax for these settings is as follows: <code>{ "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": "none"|"gzip" } </code> </p> #[serde(rename = "DmsTransferSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub dms_transfer_settings: Option<DmsTransferSettings>, /// <p>Settings in JSON format for the source DocumentDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DocumentDB.html"> Using DocumentDB as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "DocDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub doc_db_settings: Option<DocDbSettings>, /// <p>Settings in JSON format for the target Amazon DynamoDB endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html">Using Object Mapping to Migrate Data to DynamoDB</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "DynamoDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub dynamo_db_settings: Option<DynamoDbSettings>, /// <p>Settings in JSON format for the target Elasticsearch endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration">Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "ElasticsearchSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub elasticsearch_settings: Option<ElasticsearchSettings>, /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, /// <p>The database endpoint identifier. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.</p> #[serde(rename = "EndpointIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_identifier: Option<String>, /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p> #[serde(rename = "EndpointType")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_type: Option<String>, /// <p>The type of engine for the endpoint. Valid values, depending on the EndpointType, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>, and <code>"neptune"</code>.</p> #[serde(rename = "EngineName")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_name: Option<String>, /// <p>The external table definition.</p> #[serde(rename = "ExternalTableDefinition")] #[serde(skip_serializing_if = "Option::is_none")] pub external_table_definition: Option<String>, /// <p>Additional attributes associated with the connection. To reset this parameter, pass the empty string ("") as an argument.</p> #[serde(rename = "ExtraConnectionAttributes")] #[serde(skip_serializing_if = "Option::is_none")] pub extra_connection_attributes: Option<String>, /// <p>Settings in JSON format for the source IBM Db2 LUW endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.ConnectionAttrib">Extra connection attributes when using Db2 LUW as a source for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "IBMDb2Settings")] #[serde(skip_serializing_if = "Option::is_none")] pub ibm_db_2_settings: Option<IBMDb2Settings>, /// <p>Settings in JSON format for the target Apache Kafka endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html">Using Apache Kafka as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "KafkaSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub kafka_settings: Option<KafkaSettings>, /// <p>Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html">Using Amazon Kinesis Data Streams as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "KinesisSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub kinesis_settings: Option<KinesisSettings>, /// <p>Settings in JSON format for the source and target Microsoft SQL Server endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.ConnectionAttrib">Extra connection attributes when using SQL Server as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.ConnectionAttrib"> Extra connection attributes when using SQL Server as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "MicrosoftSQLServerSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub microsoft_sql_server_settings: Option<MicrosoftSQLServerSettings>, /// <p>Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html"> Using MongoDB as a Target for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "MongoDbSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub mongo_db_settings: Option<MongoDbSettings>, /// <p>Settings in JSON format for the source and target MySQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.ConnectionAttrib">Extra connection attributes when using MySQL as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.ConnectionAttrib">Extra connection attributes when using a MySQL-compatible database as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "MySQLSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub my_sql_settings: Option<MySQLSettings>, /// <p>Settings in JSON format for the target Amazon Neptune endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings">Specifying Endpoint Settings for Amazon Neptune as a Target</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "NeptuneSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub neptune_settings: Option<NeptuneSettings>, /// <p>Settings in JSON format for the source and target Oracle endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.ConnectionAttrib">Extra connection attributes when using Oracle as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.ConnectionAttrib"> Extra connection attributes when using Oracle as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "OracleSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub oracle_settings: Option<OracleSettings>, /// <p>The password to be used to login to the endpoint database.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>The port used by the endpoint database.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p>Settings in JSON format for the source and target PostgreSQL endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.ConnectionAttrib">Extra connection attributes when using PostgreSQL as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.ConnectionAttrib"> Extra connection attributes when using PostgreSQL as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "PostgreSQLSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub postgre_sql_settings: Option<PostgreSQLSettings>, #[serde(rename = "RedshiftSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub redshift_settings: Option<RedshiftSettings>, /// <p>Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring">Extra Connection Attributes When Using Amazon S3 as a Target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "S3Settings")] #[serde(skip_serializing_if = "Option::is_none")] pub s3_settings: Option<S3Settings>, /// <p>The name of the server where the endpoint database resides.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p> The Amazon Resource Name (ARN) for the service access role you want to use to modify the endpoint. </p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p>The SSL mode used to connect to the endpoint. The default value is <code>none</code>.</p> #[serde(rename = "SslMode")] #[serde(skip_serializing_if = "Option::is_none")] pub ssl_mode: Option<String>, /// <p>Settings in JSON format for the source and target SAP ASE endpoint. For information about other available settings, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a source for AWS DMS</a> and <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.ConnectionAttrib">Extra connection attributes when using SAP ASE as a target for AWS DMS</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "SybaseSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub sybase_settings: Option<SybaseSettings>, /// <p>The user name to be used to login to the endpoint database.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ModifyEndpointResponse { /// <p>The modified endpoint.</p> #[serde(rename = "Endpoint")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint: Option<Endpoint>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ModifyEventSubscriptionMessage { /// <p> A Boolean value; set to <b>true</b> to activate the subscription. </p> #[serde(rename = "Enabled")] #[serde(skip_serializing_if = "Option::is_none")] pub enabled: Option<bool>, /// <p> A list of event categories for a source type that you want to subscribe to. Use the <code>DescribeEventCategories</code> action to see a list of event categories. </p> #[serde(rename = "EventCategories")] #[serde(skip_serializing_if = "Option::is_none")] pub event_categories: Option<Vec<String>>, /// <p> The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.</p> #[serde(rename = "SnsTopicArn")] #[serde(skip_serializing_if = "Option::is_none")] pub sns_topic_arn: Option<String>, /// <p> The type of AWS DMS resource that generates the events you want to subscribe to. </p> <p>Valid values: replication-instance | replication-task</p> #[serde(rename = "SourceType")] #[serde(skip_serializing_if = "Option::is_none")] pub source_type: Option<String>, /// <p>The name of the AWS DMS event notification subscription to be modified.</p> #[serde(rename = "SubscriptionName")] pub subscription_name: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ModifyEventSubscriptionResponse { /// <p>The modified event subscription.</p> #[serde(rename = "EventSubscription")] #[serde(skip_serializing_if = "Option::is_none")] pub event_subscription: Option<EventSubscription>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ModifyReplicationInstanceMessage { /// <p>The amount of storage (in gigabytes) to be allocated for the replication instance.</p> #[serde(rename = "AllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub allocated_storage: Option<i64>, /// <p>Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the change is asynchronously applied as soon as possible.</p> <p>This parameter must be set to <code>true</code> when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the replication instance's current version.</p> #[serde(rename = "AllowMajorVersionUpgrade")] #[serde(skip_serializing_if = "Option::is_none")] pub allow_major_version_upgrade: Option<bool>, /// <p>Indicates whether the changes should be applied immediately or during the next maintenance window.</p> #[serde(rename = "ApplyImmediately")] #[serde(skip_serializing_if = "Option::is_none")] pub apply_immediately: Option<bool>, /// <p><p>A value that indicates that minor version upgrades are applied automatically to the replication instance during the maintenance window. Changing this parameter doesn't result in an outage, except in the case described following. The change is asynchronously applied as soon as possible. </p> <p>An outage does result if these factors apply: </p> <ul> <li> <p>This parameter is set to <code>true</code> during the maintenance window.</p> </li> <li> <p>A newer minor version is available. </p> </li> <li> <p>AWS DMS has enabled automatic patching for the given engine version. </p> </li> </ul></p> #[serde(rename = "AutoMinorVersionUpgrade")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_minor_version_upgrade: Option<bool>, /// <p>The engine version number of the replication instance.</p> <p>When modifying a major engine version of an instance, also set <code>AllowMajorVersionUpgrade</code> to <code>true</code>.</p> #[serde(rename = "EngineVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_version: Option<String>, /// <p> Specifies whether the replication instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the Multi-AZ parameter is set to <code>true</code>. </p> #[serde(rename = "MultiAZ")] #[serde(skip_serializing_if = "Option::is_none")] pub multi_az: Option<bool>, /// <p>The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied.</p> <p>Default: Uses existing setting</p> <p>Format: ddd:hh24:mi-ddd:hh24:mi</p> <p>Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun</p> <p>Constraints: Must be at least 30 minutes</p> #[serde(rename = "PreferredMaintenanceWindow")] #[serde(skip_serializing_if = "Option::is_none")] pub preferred_maintenance_window: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, /// <p>The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to <code>"dms.c4.large"</code>.</p> <p>For more information on the settings and capacities for the available replication instance classes, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth"> Selecting the right AWS DMS replication instance for your migration</a>. </p> #[serde(rename = "ReplicationInstanceClass")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_class: Option<String>, /// <p>The replication instance identifier. This parameter is stored as a lowercase string.</p> #[serde(rename = "ReplicationInstanceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_identifier: Option<String>, /// <p> Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance. </p> #[serde(rename = "VpcSecurityGroupIds")] #[serde(skip_serializing_if = "Option::is_none")] pub vpc_security_group_ids: Option<Vec<String>>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ModifyReplicationInstanceResponse { /// <p>The modified replication instance.</p> #[serde(rename = "ReplicationInstance")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance: Option<ReplicationInstance>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ModifyReplicationSubnetGroupMessage { /// <p>A description for the replication instance subnet group.</p> #[serde(rename = "ReplicationSubnetGroupDescription")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group_description: Option<String>, /// <p>The name of the replication instance subnet group.</p> #[serde(rename = "ReplicationSubnetGroupIdentifier")] pub replication_subnet_group_identifier: String, /// <p>A list of subnet IDs.</p> #[serde(rename = "SubnetIds")] pub subnet_ids: Vec<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ModifyReplicationSubnetGroupResponse { /// <p>The modified replication subnet group.</p> #[serde(rename = "ReplicationSubnetGroup")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group: Option<ReplicationSubnetGroup>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ModifyReplicationTaskMessage { /// <p><p>Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.</p> <p> The value can be in date, checkpoint, or LSN/SCN format.</p> <p>Date Example: --cdc-start-position “2018-03-08T12:12:12”</p> <p>Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"</p> <p>LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”</p> <note> <p>When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting the <code>slotName</code> extra connection attribute to the name of this logical replication slot. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib">Extra Connection Attributes When Using PostgreSQL as a Source for AWS DMS</a>.</p> </note></p> #[serde(rename = "CdcStartPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_position: Option<String>, /// <p>Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.</p> <p>Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”</p> #[serde(rename = "CdcStartTime")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_time: Option<f64>, /// <p>Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.</p> <p>Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12”</p> <p>Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 “</p> #[serde(rename = "CdcStopPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_stop_position: Option<String>, /// <p>The migration type. Valid values: <code>full-load</code> | <code>cdc</code> | <code>full-load-and-cdc</code> </p> #[serde(rename = "MigrationType")] #[serde(skip_serializing_if = "Option::is_none")] pub migration_type: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication task.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, /// <p><p>The replication task identifier.</p> <p>Constraints:</p> <ul> <li> <p>Must contain 1-255 alphanumeric characters or hyphens.</p> </li> <li> <p>First character must be a letter.</p> </li> <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul></p> #[serde(rename = "ReplicationTaskIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_identifier: Option<String>, /// <p>JSON file that contains settings for the task, such as task metadata settings.</p> #[serde(rename = "ReplicationTaskSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_settings: Option<String>, /// <p>When using the AWS CLI or boto3, provide the path of the JSON file that contains the table mappings. Precede the path with <code>file://</code>. When working with the DMS API, provide the JSON as the parameter value, for example: <code>--table-mappings file://mappingfile.json</code> </p> #[serde(rename = "TableMappings")] #[serde(skip_serializing_if = "Option::is_none")] pub table_mappings: Option<String>, /// <p>Supplemental information that the task requires to migrate the data for certain source and target endpoints. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html">Specifying Supplemental Data for Task Settings</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "TaskData")] #[serde(skip_serializing_if = "Option::is_none")] pub task_data: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ModifyReplicationTaskResponse { /// <p>The replication task that was modified.</p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } /// <p>Provides information that defines a MongoDB endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct MongoDbSettings { /// <p> The authentication mechanism you use to access the MongoDB source endpoint.</p> <p>For the default value, in MongoDB version 2.x, <code>"default"</code> is <code>"mongodb_cr"</code>. For MongoDB version 3.x or later, <code>"default"</code> is <code>"scram_sha_1"</code>. This setting isn't used when <code>AuthType</code> is set to <code>"no"</code>.</p> #[serde(rename = "AuthMechanism")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_mechanism: Option<String>, /// <p> The MongoDB database name. This setting isn't used when <code>AuthType</code> is set to <code>"no"</code>. </p> <p>The default is <code>"admin"</code>.</p> #[serde(rename = "AuthSource")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_source: Option<String>, /// <p> The authentication type you use to access the MongoDB source endpoint.</p> <p>When when set to <code>"no"</code>, user name and password parameters are not used and can be empty. </p> #[serde(rename = "AuthType")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_type: Option<String>, /// <p> The database name on the MongoDB source endpoint. </p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p> Indicates the number of documents to preview to determine the document organization. Use this setting when <code>NestingLevel</code> is set to <code>"one"</code>. </p> <p>Must be a positive value greater than <code>0</code>. Default value is <code>1000</code>.</p> #[serde(rename = "DocsToInvestigate")] #[serde(skip_serializing_if = "Option::is_none")] pub docs_to_investigate: Option<String>, /// <p> Specifies the document ID. Use this setting when <code>NestingLevel</code> is set to <code>"none"</code>. </p> <p>Default value is <code>"false"</code>. </p> #[serde(rename = "ExtractDocId")] #[serde(skip_serializing_if = "Option::is_none")] pub extract_doc_id: Option<String>, /// <p>The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the <code>KmsKeyId</code> parameter, then AWS DMS uses your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.</p> #[serde(rename = "KmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub kms_key_id: Option<String>, /// <p> Specifies either document or table mode. </p> <p>Default value is <code>"none"</code>. Specify <code>"none"</code> to use document mode. Specify <code>"one"</code> to use table mode.</p> #[serde(rename = "NestingLevel")] #[serde(skip_serializing_if = "Option::is_none")] pub nesting_level: Option<String>, /// <p> The password for the user account you use to access the MongoDB source endpoint. </p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p> The port value for the MongoDB source endpoint. </p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the MongoDB endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the MongoDB endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p> The name of the server on the MongoDB source endpoint. </p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>The user name you use to access the MongoDB source endpoint. </p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct MoveReplicationTaskMessage { /// <p>The Amazon Resource Name (ARN) of the task that you want to move.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, /// <p>The ARN of the replication instance where you want to move the task to.</p> #[serde(rename = "TargetReplicationInstanceArn")] pub target_replication_instance_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct MoveReplicationTaskResponse { /// <p>The replication task that was moved.</p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } /// <p>Provides information that defines a MySQL endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct MySQLSettings { /// <p>Specifies a script to run immediately after AWS DMS connects to the endpoint. The migration task continues running regardless if the SQL statement succeeds or fails.</p> #[serde(rename = "AfterConnectScript")] #[serde(skip_serializing_if = "Option::is_none")] pub after_connect_script: Option<String>, /// <p>Database name for the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>Specifies how often to check the binary log for new changes/events when the database is idle.</p> <p>Example: <code>eventsPollInterval=5;</code> </p> <p>In the example, AWS DMS checks for changes in the binary logs every five seconds.</p> #[serde(rename = "EventsPollInterval")] #[serde(skip_serializing_if = "Option::is_none")] pub events_poll_interval: Option<i64>, /// <p>Specifies the maximum size (in KB) of any .csv file used to transfer data to a MySQL-compatible database.</p> <p>Example: <code>maxFileSize=512</code> </p> #[serde(rename = "MaxFileSize")] #[serde(skip_serializing_if = "Option::is_none")] pub max_file_size: Option<i64>, /// <p>Improves performance when loading data into the MySQL-compatible target database. Specifies how many threads to use to load the data into the MySQL-compatible target database. Setting a large number of threads can have an adverse effect on database performance, because a separate connection is required for each thread.</p> <p>Example: <code>parallelLoadThreads=1</code> </p> #[serde(rename = "ParallelLoadThreads")] #[serde(skip_serializing_if = "Option::is_none")] pub parallel_load_threads: Option<i64>, /// <p>Endpoint connection password.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>Endpoint TCP port.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the MySQL endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the MySQL endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>Fully qualified domain name of the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>Specifies the time zone for the source MySQL database.</p> <p>Example: <code>serverTimezone=US/Pacific;</code> </p> <p>Note: Do not enclose time zones in single quotes.</p> #[serde(rename = "ServerTimezone")] #[serde(skip_serializing_if = "Option::is_none")] pub server_timezone: Option<String>, /// <p>Specifies where to migrate source tables on the target, either to a single database or multiple databases.</p> <p>Example: <code>targetDbType=MULTIPLE_DATABASES</code> </p> #[serde(rename = "TargetDbType")] #[serde(skip_serializing_if = "Option::is_none")] pub target_db_type: Option<String>, /// <p>Endpoint connection user name.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p>Provides information that defines an Amazon Neptune endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct NeptuneSettings { /// <p>The number of milliseconds for AWS DMS to wait to retry a bulk-load of migrated graph data to the Neptune target database before raising an error. The default is 250.</p> #[serde(rename = "ErrorRetryDuration")] #[serde(skip_serializing_if = "Option::is_none")] pub error_retry_duration: Option<i64>, /// <p>If you want AWS Identity and Access Management (IAM) authorization enabled for this endpoint, set this parameter to <code>true</code>. Then attach the appropriate IAM policy document to your service role specified by <code>ServiceAccessRoleArn</code>. The default is <code>false</code>.</p> #[serde(rename = "IamAuthEnabled")] #[serde(skip_serializing_if = "Option::is_none")] pub iam_auth_enabled: Option<bool>, /// <p>The maximum size in kilobytes of migrated graph data stored in a .csv file before AWS DMS bulk-loads the data to the Neptune target database. The default is 1,048,576 KB. If the bulk load is successful, AWS DMS clears the bucket, ready to store the next batch of migrated graph data.</p> #[serde(rename = "MaxFileSize")] #[serde(skip_serializing_if = "Option::is_none")] pub max_file_size: Option<i64>, /// <p>The number of times for AWS DMS to retry a bulk load of migrated graph data to the Neptune target database before raising an error. The default is 5.</p> #[serde(rename = "MaxRetryCount")] #[serde(skip_serializing_if = "Option::is_none")] pub max_retry_count: Option<i64>, /// <p>A folder path where you want AWS DMS to store migrated graph data in the S3 bucket specified by <code>S3BucketName</code> </p> #[serde(rename = "S3BucketFolder")] pub s3_bucket_folder: String, /// <p>The name of the Amazon S3 bucket where AWS DMS can temporarily store migrated graph data in .csv files before bulk-loading it to the Neptune target database. AWS DMS maps the SQL source data to graph data before storing it in these .csv files.</p> #[serde(rename = "S3BucketName")] pub s3_bucket_name: String, /// <p>The Amazon Resource Name (ARN) of the service role that you created for the Neptune target endpoint. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.ServiceRole">Creating an IAM Service Role for Accessing Amazon Neptune as a Target</a> in the <i>AWS Database Migration Service User Guide. </i> </p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, } /// <p>Provides information that defines an Oracle endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct OracleSettings { /// <p>Set this attribute to <code>false</code> in order to use the Binary Reader to capture change data for an Amazon RDS for Oracle as the source. This tells the DMS instance to not access redo logs through any specified path prefix replacement using direct file access.</p> #[serde(rename = "AccessAlternateDirectly")] #[serde(skip_serializing_if = "Option::is_none")] pub access_alternate_directly: Option<bool>, /// <p>Set this attribute to set up table-level supplemental logging for the Oracle database. This attribute enables PRIMARY KEY supplemental logging on all tables selected for a migration task.</p> <p>If you use this option, you still need to enable database-level supplemental logging.</p> #[serde(rename = "AddSupplementalLogging")] #[serde(skip_serializing_if = "Option::is_none")] pub add_supplemental_logging: Option<bool>, /// <p>Set this attribute with <code>archivedLogDestId</code> in a primary/ standby setup. This attribute is useful in the case of a switchover. In this case, AWS DMS needs to know which destination to get archive redo logs from to read changes. This need arises because the previous primary instance is now a standby instance after switchover.</p> #[serde(rename = "AdditionalArchivedLogDestId")] #[serde(skip_serializing_if = "Option::is_none")] pub additional_archived_log_dest_id: Option<i64>, /// <p>Set this attribute to <code>true</code> to enable replication of Oracle tables containing columns that are nested tables or defined types.</p> #[serde(rename = "AllowSelectNestedTables")] #[serde(skip_serializing_if = "Option::is_none")] pub allow_select_nested_tables: Option<bool>, /// <p>Specifies the destination of the archived redo logs. The value should be the same as the DEST_ID number in the v$archived_log table. When working with multiple log destinations (DEST_ID), we recommend that you to specify an archived redo logs location identifier. Doing this improves performance by ensuring that the correct logs are accessed from the outset.</p> #[serde(rename = "ArchivedLogDestId")] #[serde(skip_serializing_if = "Option::is_none")] pub archived_log_dest_id: Option<i64>, /// <p>When this field is set to <code>Y</code>, AWS DMS only accesses the archived redo logs. If the archived redo logs are stored on Oracle ASM only, the AWS DMS user account needs to be granted ASM privileges.</p> #[serde(rename = "ArchivedLogsOnly")] #[serde(skip_serializing_if = "Option::is_none")] pub archived_logs_only: Option<bool>, /// <p>For an Oracle source endpoint, your Oracle Automatic Storage Management (ASM) password. You can set this value from the <code> <i>asm_user_password</i> </code> value. You set this value as part of the comma-separated value that you set to the <code>Password</code> request parameter when you create the endpoint to access transaction logs using Binary Reader. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC.Configuration">Configuration for change data capture (CDC) on an Oracle source database</a>.</p> #[serde(rename = "AsmPassword")] #[serde(skip_serializing_if = "Option::is_none")] pub asm_password: Option<String>, /// <p>For an Oracle source endpoint, your ASM server address. You can set this value from the <code>asm_server</code> value. You set <code>asm_server</code> as part of the extra connection attribute string to access an Oracle server with Binary Reader that uses ASM. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC.Configuration">Configuration for change data capture (CDC) on an Oracle source database</a>.</p> #[serde(rename = "AsmServer")] #[serde(skip_serializing_if = "Option::is_none")] pub asm_server: Option<String>, /// <p>For an Oracle source endpoint, your ASM user name. You can set this value from the <code>asm_user</code> value. You set <code>asm_user</code> as part of the extra connection attribute string to access an Oracle server with Binary Reader that uses ASM. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC.Configuration">Configuration for change data capture (CDC) on an Oracle source database</a>.</p> #[serde(rename = "AsmUser")] #[serde(skip_serializing_if = "Option::is_none")] pub asm_user: Option<String>, /// <p>Specifies whether the length of a character column is in bytes or in characters. To indicate that the character column length is in characters, set this attribute to <code>CHAR</code>. Otherwise, the character column length is in bytes.</p> <p>Example: <code>charLengthSemantics=CHAR;</code> </p> #[serde(rename = "CharLengthSemantics")] #[serde(skip_serializing_if = "Option::is_none")] pub char_length_semantics: Option<String>, /// <p>Database name for the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>When set to <code>true</code>, this attribute helps to increase the commit rate on the Oracle target database by writing directly to tables and not writing a trail to database logs.</p> #[serde(rename = "DirectPathNoLog")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_path_no_log: Option<bool>, /// <p>When set to <code>true</code>, this attribute specifies a parallel load when <code>useDirectPathFullLoad</code> is set to <code>Y</code>. This attribute also only applies when you use the AWS DMS parallel load feature. Note that the target table cannot have any constraints or indexes.</p> #[serde(rename = "DirectPathParallelLoad")] #[serde(skip_serializing_if = "Option::is_none")] pub direct_path_parallel_load: Option<bool>, /// <p>Set this attribute to enable homogenous tablespace replication and create existing tables or indexes under the same tablespace on the target.</p> #[serde(rename = "EnableHomogenousTablespace")] #[serde(skip_serializing_if = "Option::is_none")] pub enable_homogenous_tablespace: Option<bool>, /// <p>When set to <code>true</code>, this attribute causes a task to fail if the actual size of an LOB column is greater than the specified <code>LobMaxSize</code>.</p> <p>If a task is set to limited LOB mode and this option is set to <code>true</code>, the task fails instead of truncating the LOB data.</p> #[serde(rename = "FailTasksOnLobTruncation")] #[serde(skip_serializing_if = "Option::is_none")] pub fail_tasks_on_lob_truncation: Option<bool>, /// <p>Specifies the number scale. You can select a scale up to 38, or you can select FLOAT. By default, the NUMBER data type is converted to precision 38, scale 10.</p> <p>Example: <code>numberDataTypeScale=12</code> </p> #[serde(rename = "NumberDatatypeScale")] #[serde(skip_serializing_if = "Option::is_none")] pub number_datatype_scale: Option<i64>, /// <p>Set this string attribute to the required value in order to use the Binary Reader to capture change data for an Amazon RDS for Oracle as the source. This value specifies the default Oracle root used to access the redo logs.</p> #[serde(rename = "OraclePathPrefix")] #[serde(skip_serializing_if = "Option::is_none")] pub oracle_path_prefix: Option<String>, /// <p>Set this attribute to change the number of threads that DMS configures to perform a Change Data Capture (CDC) load using Oracle Automatic Storage Management (ASM). You can specify an integer value between 2 (the default) and 8 (the maximum). Use this attribute together with the <code>readAheadBlocks</code> attribute.</p> #[serde(rename = "ParallelAsmReadThreads")] #[serde(skip_serializing_if = "Option::is_none")] pub parallel_asm_read_threads: Option<i64>, /// <p>Endpoint connection password.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>Endpoint TCP port.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p>Set this attribute to change the number of read-ahead blocks that DMS configures to perform a Change Data Capture (CDC) load using Oracle Automatic Storage Management (ASM). You can specify an integer value between 1000 (the default) and 200,000 (the maximum).</p> #[serde(rename = "ReadAheadBlocks")] #[serde(skip_serializing_if = "Option::is_none")] pub read_ahead_blocks: Option<i64>, /// <p>When set to <code>true</code>, this attribute supports tablespace replication.</p> #[serde(rename = "ReadTableSpaceName")] #[serde(skip_serializing_if = "Option::is_none")] pub read_table_space_name: Option<bool>, /// <p>Set this attribute to true in order to use the Binary Reader to capture change data for an Amazon RDS for Oracle as the source. This setting tells DMS instance to replace the default Oracle root with the specified <code>usePathPrefix</code> setting to access the redo logs.</p> #[serde(rename = "ReplacePathPrefix")] #[serde(skip_serializing_if = "Option::is_none")] pub replace_path_prefix: Option<bool>, /// <p>Specifies the number of seconds that the system waits before resending a query.</p> <p>Example: <code>retryInterval=6;</code> </p> #[serde(rename = "RetryInterval")] #[serde(skip_serializing_if = "Option::is_none")] pub retry_interval: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the Oracle endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the Oracle endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>For an Oracle source endpoint, the transparent data encryption (TDE) password required by AWM DMS to access Oracle redo logs encrypted by TDE using Binary Reader. It is also the <code> <i>TDE_Password</i> </code> part of the comma-separated value you set to the <code>Password</code> request parameter when you create the endpoint. The <code>SecurityDbEncryptian</code> setting is related to this <code>SecurityDbEncryptionName</code> setting. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.Encryption"> Supported encryption methods for using Oracle as a source for AWS DMS</a> in the <i>AWS Database Migration Service User Guide</i>. </p> #[serde(rename = "SecurityDbEncryption")] #[serde(skip_serializing_if = "Option::is_none")] pub security_db_encryption: Option<String>, /// <p>For an Oracle source endpoint, the name of a key used for the transparent data encryption (TDE) of the columns and tablespaces in an Oracle source database that is encrypted using TDE. The key value is the value of the <code>SecurityDbEncryption</code> setting. For more information on setting the key name value of <code>SecurityDbEncryptionName</code>, see the information and example for setting the <code>securityDbEncryptionName</code> extra connection attribute in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.Encryption"> Supported encryption methods for using Oracle as a source for AWS DMS</a> in the <i>AWS Database Migration Service User Guide</i>.</p> #[serde(rename = "SecurityDbEncryptionName")] #[serde(skip_serializing_if = "Option::is_none")] pub security_db_encryption_name: Option<String>, /// <p>Fully qualified domain name of the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>Set this attribute to <code>true</code> in order to use the Binary Reader to capture change data for an Amazon RDS for Oracle as the source. This tells the DMS instance to use any specified prefix replacement to access all online redo logs.</p> #[serde(rename = "UseAlternateFolderForOnline")] #[serde(skip_serializing_if = "Option::is_none")] pub use_alternate_folder_for_online: Option<bool>, /// <p>Set this string attribute to the required value in order to use the Binary Reader to capture change data for an Amazon RDS for Oracle as the source. This value specifies the path prefix used to replace the default Oracle root to access the redo logs.</p> #[serde(rename = "UsePathPrefix")] #[serde(skip_serializing_if = "Option::is_none")] pub use_path_prefix: Option<String>, /// <p>Endpoint connection user name.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p>In response to the <code>DescribeOrderableReplicationInstances</code> operation, this object describes an available replication instance. This description includes the replication instance's type, engine version, and allocated storage.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct OrderableReplicationInstance { /// <p>List of Availability Zones for this replication instance.</p> #[serde(rename = "AvailabilityZones")] #[serde(skip_serializing_if = "Option::is_none")] pub availability_zones: Option<Vec<String>>, /// <p>The default amount of storage (in gigabytes) that is allocated for the replication instance.</p> #[serde(rename = "DefaultAllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub default_allocated_storage: Option<i64>, /// <p>The version of the replication engine.</p> #[serde(rename = "EngineVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_version: Option<String>, /// <p>The amount of storage (in gigabytes) that is allocated for the replication instance.</p> #[serde(rename = "IncludedAllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub included_allocated_storage: Option<i64>, /// <p>The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.</p> #[serde(rename = "MaxAllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub max_allocated_storage: Option<i64>, /// <p>The minimum amount of storage (in gigabytes) that can be allocated for the replication instance.</p> #[serde(rename = "MinAllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub min_allocated_storage: Option<i64>, /// <p><p>The value returned when the specified <code>EngineVersion</code> of the replication instance is in Beta or test mode. This indicates some features might not work as expected.</p> <note> <p>AWS DMS supports the <code>ReleaseStatus</code> parameter in versions 3.1.4 and later.</p> </note></p> #[serde(rename = "ReleaseStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub release_status: Option<String>, /// <p>The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to <code>"dms.c4.large"</code>.</p> <p>For more information on the settings and capacities for the available replication instance classes, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth"> Selecting the right AWS DMS replication instance for your migration</a>. </p> #[serde(rename = "ReplicationInstanceClass")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_class: Option<String>, /// <p>The type of storage used by the replication instance.</p> #[serde(rename = "StorageType")] #[serde(skip_serializing_if = "Option::is_none")] pub storage_type: Option<String>, } /// <p>Describes a maintenance action pending for an AWS DMS resource, including when and how it will be applied. This data type is a response element to the <code>DescribePendingMaintenanceActions</code> operation.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct PendingMaintenanceAction { /// <p>The type of pending maintenance action that is available for the resource.</p> #[serde(rename = "Action")] #[serde(skip_serializing_if = "Option::is_none")] pub action: Option<String>, /// <p>The date of the maintenance window when the action is to be applied. The maintenance action is applied to the resource during its first maintenance window after this date. If this date is specified, any <code>next-maintenance</code> opt-in requests are ignored.</p> #[serde(rename = "AutoAppliedAfterDate")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_applied_after_date: Option<f64>, /// <p>The effective date when the pending maintenance action will be applied to the resource. This date takes into account opt-in requests received from the <code>ApplyPendingMaintenanceAction</code> API operation, and also the <code>AutoAppliedAfterDate</code> and <code>ForcedApplyDate</code> parameter values. This value is blank if an opt-in request has not been received and nothing has been specified for <code>AutoAppliedAfterDate</code> or <code>ForcedApplyDate</code>.</p> #[serde(rename = "CurrentApplyDate")] #[serde(skip_serializing_if = "Option::is_none")] pub current_apply_date: Option<f64>, /// <p>A description providing more detail about the maintenance action.</p> #[serde(rename = "Description")] #[serde(skip_serializing_if = "Option::is_none")] pub description: Option<String>, /// <p>The date when the maintenance action will be automatically applied. The maintenance action is applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any <code>immediate</code> opt-in requests are ignored.</p> #[serde(rename = "ForcedApplyDate")] #[serde(skip_serializing_if = "Option::is_none")] pub forced_apply_date: Option<f64>, /// <p>The type of opt-in request that has been received for the resource.</p> #[serde(rename = "OptInStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub opt_in_status: Option<String>, } /// <p>Provides information that defines a PostgreSQL endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct PostgreSQLSettings { /// <p>For use with change data capture (CDC) only, this attribute has AWS DMS bypass foreign keys and user triggers to reduce the time it takes to bulk load data.</p> <p>Example: <code>afterConnectScript=SET session_replication_role='replica'</code> </p> #[serde(rename = "AfterConnectScript")] #[serde(skip_serializing_if = "Option::is_none")] pub after_connect_script: Option<String>, /// <p>To capture DDL events, AWS DMS creates various artifacts in the PostgreSQL database when the task starts. You can later remove these artifacts.</p> <p>If this value is set to <code>N</code>, you don't have to create tables or triggers on the source database.</p> #[serde(rename = "CaptureDdls")] #[serde(skip_serializing_if = "Option::is_none")] pub capture_ddls: Option<bool>, /// <p>Database name for the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>The schema in which the operational DDL database artifacts are created.</p> <p>Example: <code>ddlArtifactsSchema=xyzddlschema;</code> </p> #[serde(rename = "DdlArtifactsSchema")] #[serde(skip_serializing_if = "Option::is_none")] pub ddl_artifacts_schema: Option<String>, /// <p>Sets the client statement timeout for the PostgreSQL instance, in seconds. The default value is 60 seconds.</p> <p>Example: <code>executeTimeout=100;</code> </p> #[serde(rename = "ExecuteTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub execute_timeout: Option<i64>, /// <p>When set to <code>true</code>, this value causes a task to fail if the actual size of a LOB column is greater than the specified <code>LobMaxSize</code>.</p> <p>If task is set to Limited LOB mode and this option is set to true, the task fails instead of truncating the LOB data.</p> #[serde(rename = "FailTasksOnLobTruncation")] #[serde(skip_serializing_if = "Option::is_none")] pub fail_tasks_on_lob_truncation: Option<bool>, /// <p>Specifies the maximum size (in KB) of any .csv file used to transfer data to PostgreSQL.</p> <p>Example: <code>maxFileSize=512</code> </p> #[serde(rename = "MaxFileSize")] #[serde(skip_serializing_if = "Option::is_none")] pub max_file_size: Option<i64>, /// <p>Endpoint connection password.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>Endpoint TCP port.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the PostgreSQL endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the PostgreSQL endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>Fully qualified domain name of the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>Sets the name of a previously created logical replication slot for a CDC load of the PostgreSQL source instance.</p> <p>When used with the AWS DMS API <code>CdcStartPosition</code> request parameter, this attribute also enables using native CDC start points.</p> #[serde(rename = "SlotName")] #[serde(skip_serializing_if = "Option::is_none")] pub slot_name: Option<String>, /// <p>Endpoint connection user name.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RebootReplicationInstanceMessage { /// <p>If this parameter is <code>true</code>, the reboot is conducted through a Multi-AZ failover. (If the instance isn't configured for Multi-AZ, then you can't specify <code>true</code>.)</p> #[serde(rename = "ForceFailover")] #[serde(skip_serializing_if = "Option::is_none")] pub force_failover: Option<bool>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RebootReplicationInstanceResponse { /// <p>The replication instance that is being rebooted. </p> #[serde(rename = "ReplicationInstance")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance: Option<ReplicationInstance>, } /// <p>Provides information that defines an Amazon Redshift endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct RedshiftSettings { /// <p>A value that indicates to allow any date format, including invalid formats such as 00/00/00 00:00:00, to be loaded without generating an error. You can choose <code>true</code> or <code>false</code> (the default).</p> <p>This parameter applies only to TIMESTAMP and DATE columns. Always use ACCEPTANYDATE with the DATEFORMAT parameter. If the date format for the data doesn't match the DATEFORMAT specification, Amazon Redshift inserts a NULL value into that field. </p> #[serde(rename = "AcceptAnyDate")] #[serde(skip_serializing_if = "Option::is_none")] pub accept_any_date: Option<bool>, /// <p>Code to run after connecting. This parameter should contain the code itself, not the name of a file containing the code.</p> #[serde(rename = "AfterConnectScript")] #[serde(skip_serializing_if = "Option::is_none")] pub after_connect_script: Option<String>, /// <p>An S3 folder where the comma-separated-value (.csv) files are stored before being uploaded to the target Redshift cluster. </p> <p>For full load mode, AWS DMS converts source records into .csv files and loads them to the <i>BucketFolder/TableID</i> path. AWS DMS uses the Redshift <code>COPY</code> command to upload the .csv files to the target table. The files are deleted once the <code>COPY</code> operation has finished. For more information, see <a href="https://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html">COPY</a> in the <i>Amazon Redshift Database Developer Guide</i>.</p> <p>For change-data-capture (CDC) mode, AWS DMS creates a <i>NetChanges</i> table, and loads the .csv files to this <i>BucketFolder/NetChangesTableID</i> path.</p> #[serde(rename = "BucketFolder")] #[serde(skip_serializing_if = "Option::is_none")] pub bucket_folder: Option<String>, /// <p>The name of the intermediate S3 bucket used to store .csv files before uploading data to Redshift.</p> #[serde(rename = "BucketName")] #[serde(skip_serializing_if = "Option::is_none")] pub bucket_name: Option<String>, /// <p>If Amazon Redshift is configured to support case sensitive schema names, set <code>CaseSensitiveNames</code> to <code>true</code>. The default is <code>false</code>.</p> #[serde(rename = "CaseSensitiveNames")] #[serde(skip_serializing_if = "Option::is_none")] pub case_sensitive_names: Option<bool>, /// <p>If you set <code>CompUpdate</code> to <code>true</code> Amazon Redshift applies automatic compression if the table is empty. This applies even if the table columns already have encodings other than <code>RAW</code>. If you set <code>CompUpdate</code> to <code>false</code>, automatic compression is disabled and existing column encodings aren't changed. The default is <code>true</code>.</p> #[serde(rename = "CompUpdate")] #[serde(skip_serializing_if = "Option::is_none")] pub comp_update: Option<bool>, /// <p>A value that sets the amount of time to wait (in milliseconds) before timing out, beginning from when you initially establish a connection.</p> #[serde(rename = "ConnectionTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub connection_timeout: Option<i64>, /// <p>The name of the Amazon Redshift data warehouse (service) that you are working with.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>The date format that you are using. Valid values are <code>auto</code> (case-sensitive), your date format string enclosed in quotes, or NULL. If this parameter is left unset (NULL), it defaults to a format of 'YYYY-MM-DD'. Using <code>auto</code> recognizes most strings, even some that aren't supported when you use a date format string. </p> <p>If your date and time values use formats different from each other, set this to <code>auto</code>. </p> #[serde(rename = "DateFormat")] #[serde(skip_serializing_if = "Option::is_none")] pub date_format: Option<String>, /// <p>A value that specifies whether AWS DMS should migrate empty CHAR and VARCHAR fields as NULL. A value of <code>true</code> sets empty CHAR and VARCHAR fields to null. The default is <code>false</code>.</p> #[serde(rename = "EmptyAsNull")] #[serde(skip_serializing_if = "Option::is_none")] pub empty_as_null: Option<bool>, /// <p>The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either <code>SSE_S3</code> (the default) or <code>SSE_KMS</code>. </p> <note> <p>For the <code>ModifyEndpoint</code> operation, you can change the existing value of the <code>EncryptionMode</code> parameter from <code>SSE_KMS</code> to <code>SSE_S3</code>. But you can’t change the existing value from <code>SSE_S3</code> to <code>SSE_KMS</code>.</p> </note> <p>To use <code>SSE_S3</code>, create an AWS Identity and Access Management (IAM) role with a policy that allows <code>"arn:aws:s3:::*"</code> to use the following actions: <code>"s3:PutObject", "s3:ListBucket"</code> </p> #[serde(rename = "EncryptionMode")] #[serde(skip_serializing_if = "Option::is_none")] pub encryption_mode: Option<String>, /// <p>This setting is only valid for a full-load migration task. Set <code>ExplicitIds</code> to <code>true</code> to have tables with <code>IDENTITY</code> columns override their auto-generated values with explicit values loaded from the source data files used to populate the tables. The default is <code>false</code>.</p> #[serde(rename = "ExplicitIds")] #[serde(skip_serializing_if = "Option::is_none")] pub explicit_ids: Option<bool>, /// <p>The number of threads used to upload a single file. This parameter accepts a value from 1 through 64. It defaults to 10.</p> <p>The number of parallel streams used to upload a single .csv file to an S3 bucket using S3 Multipart Upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart upload overview</a>. </p> <p> <code>FileTransferUploadStreams</code> accepts a value from 1 through 64. It defaults to 10.</p> #[serde(rename = "FileTransferUploadStreams")] #[serde(skip_serializing_if = "Option::is_none")] pub file_transfer_upload_streams: Option<i64>, /// <p>The amount of time to wait (in milliseconds) before timing out of operations performed by AWS DMS on a Redshift cluster, such as Redshift COPY, INSERT, DELETE, and UPDATE.</p> #[serde(rename = "LoadTimeout")] #[serde(skip_serializing_if = "Option::is_none")] pub load_timeout: Option<i64>, /// <p>The maximum size (in KB) of any .csv file used to load data on an S3 bucket and transfer data to Amazon Redshift. It defaults to 1048576KB (1 GB).</p> #[serde(rename = "MaxFileSize")] #[serde(skip_serializing_if = "Option::is_none")] pub max_file_size: Option<i64>, /// <p>The password for the user named in the <code>username</code> property.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>The port number for Amazon Redshift. The default value is 5439.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p>A value that specifies to remove surrounding quotation marks from strings in the incoming data. All characters within the quotation marks, including delimiters, are retained. Choose <code>true</code> to remove quotation marks. The default is <code>false</code>.</p> #[serde(rename = "RemoveQuotes")] #[serde(skip_serializing_if = "Option::is_none")] pub remove_quotes: Option<bool>, /// <p>A value that specifies to replaces the invalid characters specified in <code>ReplaceInvalidChars</code>, substituting the specified characters instead. The default is <code>"?"</code>.</p> #[serde(rename = "ReplaceChars")] #[serde(skip_serializing_if = "Option::is_none")] pub replace_chars: Option<String>, /// <p>A list of characters that you want to replace. Use with <code>ReplaceChars</code>.</p> #[serde(rename = "ReplaceInvalidChars")] #[serde(skip_serializing_if = "Option::is_none")] pub replace_invalid_chars: Option<String>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the Amazon Redshift endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the Amazon Redshift endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>The name of the Amazon Redshift cluster you are using.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>The AWS KMS key ID. If you are using <code>SSE_KMS</code> for the <code>EncryptionMode</code>, provide this key ID. The key that you use needs an attached policy that enables IAM user permissions and allows use of the key.</p> #[serde(rename = "ServerSideEncryptionKmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub server_side_encryption_kms_key_id: Option<String>, /// <p>The Amazon Resource Name (ARN) of the IAM role that has access to the Amazon Redshift service.</p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p>The time format that you want to use. Valid values are <code>auto</code> (case-sensitive), <code>'timeformat_string'</code>, <code>'epochsecs'</code>, or <code>'epochmillisecs'</code>. It defaults to 10. Using <code>auto</code> recognizes most strings, even some that aren't supported when you use a time format string. </p> <p>If your date and time values use formats different from each other, set this parameter to <code>auto</code>. </p> #[serde(rename = "TimeFormat")] #[serde(skip_serializing_if = "Option::is_none")] pub time_format: Option<String>, /// <p>A value that specifies to remove the trailing white space characters from a VARCHAR string. This parameter applies only to columns with a VARCHAR data type. Choose <code>true</code> to remove unneeded white space. The default is <code>false</code>.</p> #[serde(rename = "TrimBlanks")] #[serde(skip_serializing_if = "Option::is_none")] pub trim_blanks: Option<bool>, /// <p>A value that specifies to truncate data in columns to the appropriate number of characters, so that the data fits in the column. This parameter applies only to columns with a VARCHAR or CHAR data type, and rows with a size of 4 MB or less. Choose <code>true</code> to truncate data. The default is <code>false</code>.</p> #[serde(rename = "TruncateColumns")] #[serde(skip_serializing_if = "Option::is_none")] pub truncate_columns: Option<bool>, /// <p>An Amazon Redshift user name for a registered user.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, /// <p>The size (in KB) of the in-memory file write buffer used when generating .csv files on the local disk at the DMS replication instance. The default value is 1000 (buffer size is 1000KB).</p> #[serde(rename = "WriteBufferSize")] #[serde(skip_serializing_if = "Option::is_none")] pub write_buffer_size: Option<i64>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RefreshSchemasMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RefreshSchemasResponse { /// <p>The status of the refreshed schema.</p> #[serde(rename = "RefreshSchemasStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub refresh_schemas_status: Option<RefreshSchemasStatus>, } /// <p>Provides information that describes status of a schema at an endpoint specified by the <code>DescribeRefreshSchemaStatus</code> operation.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RefreshSchemasStatus { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_arn: Option<String>, /// <p>The last failure message for the schema.</p> #[serde(rename = "LastFailureMessage")] #[serde(skip_serializing_if = "Option::is_none")] pub last_failure_message: Option<String>, /// <p>The date the schema was last refreshed.</p> #[serde(rename = "LastRefreshDate")] #[serde(skip_serializing_if = "Option::is_none")] pub last_refresh_date: Option<f64>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, /// <p>The status of the schema.</p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ReloadTablesMessage { /// <p>Options for reload. Specify <code>data-reload</code> to reload the data and re-validate it if validation is enabled. Specify <code>validate-only</code> to re-validate the table. This option applies only when validation is enabled for the task. </p> <p>Valid values: data-reload, validate-only</p> <p>Default value is data-reload.</p> #[serde(rename = "ReloadOption")] #[serde(skip_serializing_if = "Option::is_none")] pub reload_option: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication task. </p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, /// <p>The name and schema of the table to be reloaded. </p> #[serde(rename = "TablesToReload")] pub tables_to_reload: Vec<TableToReload>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReloadTablesResponse { /// <p>The Amazon Resource Name (ARN) of the replication task. </p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, } /// <p>Removes one or more tags from an AWS DMS resource.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RemoveTagsFromResourceMessage { /// <p>An AWS DMS resource from which you want to remove tag(s). The value for this parameter is an Amazon Resource Name (ARN).</p> #[serde(rename = "ResourceArn")] pub resource_arn: String, /// <p>The tag key (name) of the tag to be removed.</p> #[serde(rename = "TagKeys")] pub tag_keys: Vec<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RemoveTagsFromResourceResponse {} /// <p>Provides information that defines a replication instance.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationInstance { /// <p>The amount of storage (in gigabytes) that is allocated for the replication instance.</p> #[serde(rename = "AllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub allocated_storage: Option<i64>, /// <p>Boolean value indicating if minor version upgrades will be automatically applied to the instance.</p> #[serde(rename = "AutoMinorVersionUpgrade")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_minor_version_upgrade: Option<bool>, /// <p>The Availability Zone for the instance.</p> #[serde(rename = "AvailabilityZone")] #[serde(skip_serializing_if = "Option::is_none")] pub availability_zone: Option<String>, /// <p>The DNS name servers supported for the replication instance to access your on-premise source or target database.</p> #[serde(rename = "DnsNameServers")] #[serde(skip_serializing_if = "Option::is_none")] pub dns_name_servers: Option<String>, /// <p>The engine version number of the replication instance.</p> <p>If an engine version number is not specified when a replication instance is created, the default is the latest engine version available.</p> <p>When modifying a major engine version of an instance, also set <code>AllowMajorVersionUpgrade</code> to <code>true</code>.</p> #[serde(rename = "EngineVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_version: Option<String>, /// <p> The expiration date of the free replication instance that is part of the Free DMS program. </p> #[serde(rename = "FreeUntil")] #[serde(skip_serializing_if = "Option::is_none")] pub free_until: Option<f64>, /// <p>The time the replication instance was created.</p> #[serde(rename = "InstanceCreateTime")] #[serde(skip_serializing_if = "Option::is_none")] pub instance_create_time: Option<f64>, /// <p>An AWS KMS key identifier that is used to encrypt the data on the replication instance.</p> <p>If you don't specify a value for the <code>KmsKeyId</code> parameter, then AWS DMS uses your default encryption key.</p> <p>AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.</p> #[serde(rename = "KmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub kms_key_id: Option<String>, /// <p> Specifies whether the replication instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the Multi-AZ parameter is set to <code>true</code>. </p> #[serde(rename = "MultiAZ")] #[serde(skip_serializing_if = "Option::is_none")] pub multi_az: Option<bool>, /// <p>The pending modification values.</p> #[serde(rename = "PendingModifiedValues")] #[serde(skip_serializing_if = "Option::is_none")] pub pending_modified_values: Option<ReplicationPendingModifiedValues>, /// <p>The maintenance window times for the replication instance. Any pending upgrades to the replication instance are performed during this time.</p> #[serde(rename = "PreferredMaintenanceWindow")] #[serde(skip_serializing_if = "Option::is_none")] pub preferred_maintenance_window: Option<String>, /// <p> Specifies the accessibility options for the replication instance. A value of <code>true</code> represents an instance with a public IP address. A value of <code>false</code> represents an instance with a private IP address. The default value is <code>true</code>. </p> #[serde(rename = "PubliclyAccessible")] #[serde(skip_serializing_if = "Option::is_none")] pub publicly_accessible: Option<bool>, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, /// <p>The compute and memory capacity of the replication instance as defined for the specified replication instance class. It is a required parameter, although a defualt value is pre-selected in the DMS console.</p> <p>For more information on the settings and capacities for the available replication instance classes, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth"> Selecting the right AWS DMS replication instance for your migration</a>. </p> #[serde(rename = "ReplicationInstanceClass")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_class: Option<String>, /// <p>The replication instance identifier is a required parameter. This parameter is stored as a lowercase string.</p> <p>Constraints:</p> <ul> <li> <p>Must contain 1-63 alphanumeric characters or hyphens.</p> </li> <li> <p>First character must be a letter.</p> </li> <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul> <p>Example: <code>myrepinstance</code> </p> #[serde(rename = "ReplicationInstanceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_identifier: Option<String>, /// <p>One or more private IP addresses for the replication instance.</p> #[serde(rename = "ReplicationInstancePrivateIpAddresses")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_private_ip_addresses: Option<Vec<String>>, /// <p>One or more public IP addresses for the replication instance.</p> #[serde(rename = "ReplicationInstancePublicIpAddresses")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_public_ip_addresses: Option<Vec<String>>, /// <p><p>The status of the replication instance. The possible return values include:</p> <ul> <li> <p> <code>"available"</code> </p> </li> <li> <p> <code>"creating"</code> </p> </li> <li> <p> <code>"deleted"</code> </p> </li> <li> <p> <code>"deleting"</code> </p> </li> <li> <p> <code>"failed"</code> </p> </li> <li> <p> <code>"modifying"</code> </p> </li> <li> <p> <code>"upgrading"</code> </p> </li> <li> <p> <code>"rebooting"</code> </p> </li> <li> <p> <code>"resetting-master-credentials"</code> </p> </li> <li> <p> <code>"storage-full"</code> </p> </li> <li> <p> <code>"incompatible-credentials"</code> </p> </li> <li> <p> <code>"incompatible-network"</code> </p> </li> <li> <p> <code>"maintenance"</code> </p> </li> </ul></p> #[serde(rename = "ReplicationInstanceStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_status: Option<String>, /// <p>The subnet group for the replication instance.</p> #[serde(rename = "ReplicationSubnetGroup")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group: Option<ReplicationSubnetGroup>, /// <p>The Availability Zone of the standby replication instance in a Multi-AZ deployment.</p> #[serde(rename = "SecondaryAvailabilityZone")] #[serde(skip_serializing_if = "Option::is_none")] pub secondary_availability_zone: Option<String>, /// <p>The VPC security group for the instance.</p> #[serde(rename = "VpcSecurityGroups")] #[serde(skip_serializing_if = "Option::is_none")] pub vpc_security_groups: Option<Vec<VpcSecurityGroupMembership>>, } /// <p>Contains metadata for a replication instance task log.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationInstanceTaskLog { /// <p>The size, in bytes, of the replication task log.</p> #[serde(rename = "ReplicationInstanceTaskLogSize")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_task_log_size: Option<i64>, /// <p>The Amazon Resource Name (ARN) of the replication task.</p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, /// <p>The name of the replication task.</p> #[serde(rename = "ReplicationTaskName")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_name: Option<String>, } /// <p>Provides information about the values of pending modifications to a replication instance. This data type is an object of the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_ReplicationInstance.html"> <code>ReplicationInstance</code> </a> user-defined data type. </p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationPendingModifiedValues { /// <p>The amount of storage (in gigabytes) that is allocated for the replication instance.</p> #[serde(rename = "AllocatedStorage")] #[serde(skip_serializing_if = "Option::is_none")] pub allocated_storage: Option<i64>, /// <p>The engine version number of the replication instance.</p> #[serde(rename = "EngineVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_version: Option<String>, /// <p> Specifies whether the replication instance is a Multi-AZ deployment. You can't set the <code>AvailabilityZone</code> parameter if the Multi-AZ parameter is set to <code>true</code>. </p> #[serde(rename = "MultiAZ")] #[serde(skip_serializing_if = "Option::is_none")] pub multi_az: Option<bool>, /// <p>The compute and memory capacity of the replication instance as defined for the specified replication instance class.</p> <p>For more information on the settings and capacities for the available replication instance classes, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth"> Selecting the right AWS DMS replication instance for your migration</a>. </p> #[serde(rename = "ReplicationInstanceClass")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_class: Option<String>, } /// <p>Describes a subnet group in response to a request by the <code>DescribeReplicationSubnetGroups</code> operation.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationSubnetGroup { /// <p>A description for the replication subnet group.</p> #[serde(rename = "ReplicationSubnetGroupDescription")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group_description: Option<String>, /// <p>The identifier of the replication instance subnet group.</p> #[serde(rename = "ReplicationSubnetGroupIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_subnet_group_identifier: Option<String>, /// <p>The status of the subnet group.</p> #[serde(rename = "SubnetGroupStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub subnet_group_status: Option<String>, /// <p>The subnets that are in the subnet group.</p> #[serde(rename = "Subnets")] #[serde(skip_serializing_if = "Option::is_none")] pub subnets: Option<Vec<Subnet>>, /// <p>The ID of the VPC.</p> #[serde(rename = "VpcId")] #[serde(skip_serializing_if = "Option::is_none")] pub vpc_id: Option<String>, } /// <p>Provides information that describes a replication task created by the <code>CreateReplicationTask</code> operation.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationTask { /// <p>Indicates when you want a change data capture (CDC) operation to start. Use either <code>CdcStartPosition</code> or <code>CdcStartTime</code> to specify when you want the CDC operation to start. Specifying both values results in an error.</p> <p>The value can be in date, checkpoint, or LSN/SCN format.</p> <p>Date Example: --cdc-start-position “2018-03-08T12:12:12”</p> <p>Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"</p> <p>LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”</p> #[serde(rename = "CdcStartPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_position: Option<String>, /// <p>Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.</p> <p>Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12”</p> <p>Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 “</p> #[serde(rename = "CdcStopPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_stop_position: Option<String>, /// <p>The last error (failure) message generated for the replication task.</p> #[serde(rename = "LastFailureMessage")] #[serde(skip_serializing_if = "Option::is_none")] pub last_failure_message: Option<String>, /// <p>The type of migration.</p> #[serde(rename = "MigrationType")] #[serde(skip_serializing_if = "Option::is_none")] pub migration_type: Option<String>, /// <p>Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this value to the <code>CdcStartPosition</code> parameter to start a CDC operation that begins at that checkpoint.</p> #[serde(rename = "RecoveryCheckpoint")] #[serde(skip_serializing_if = "Option::is_none")] pub recovery_checkpoint: Option<String>, /// <p>The ARN of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_arn: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication task.</p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, /// <p>The date the replication task was created.</p> #[serde(rename = "ReplicationTaskCreationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_creation_date: Option<f64>, /// <p><p>The user-assigned replication task identifier or name.</p> <p>Constraints:</p> <ul> <li> <p>Must contain 1-255 alphanumeric characters or hyphens.</p> </li> <li> <p>First character must be a letter.</p> </li> <li> <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul></p> #[serde(rename = "ReplicationTaskIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_identifier: Option<String>, /// <p>The settings for the replication task.</p> #[serde(rename = "ReplicationTaskSettings")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_settings: Option<String>, /// <p>The date the replication task is scheduled to start.</p> #[serde(rename = "ReplicationTaskStartDate")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_start_date: Option<f64>, /// <p>The statistics for the task, including elapsed time, tables loaded, and table errors.</p> #[serde(rename = "ReplicationTaskStats")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_stats: Option<ReplicationTaskStats>, /// <p>The Amazon Resource Name (ARN) that uniquely identifies the endpoint.</p> #[serde(rename = "SourceEndpointArn")] #[serde(skip_serializing_if = "Option::is_none")] pub source_endpoint_arn: Option<String>, /// <p><p>The status of the replication task. This response parameter can return one of the following values:</p> <ul> <li> <p> <code>"moving"</code> – The task is being moved in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html"> <code>MoveReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"creating"</code> – The task is being created in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationTask.html"> <code>CreateReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"deleting"</code> – The task is being deleted in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html"> <code>DeleteReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"failed"</code> – The task failed to successfully complete the database migration in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html"> <code>StartReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"failed-move"</code> – The task failed to move in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html"> <code>MoveReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"modifying"</code> – The task definition is being modified in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html"> <code>ModifyReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"ready"</code> – The task is in a <code>ready</code> state where it can respond to other task operations, such as <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html"> <code>StartReplicationTask</code> </a> or <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_DeleteReplicationTask.html"> <code>DeleteReplicationTask</code> </a>. </p> </li> <li> <p> <code>"running"</code> – The task is performing a database migration in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html"> <code>StartReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"starting"</code> – The task is preparing to perform a database migration in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html"> <code>StartReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"stopped"</code> – The task has stopped in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html"> <code>StopReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"stopping"</code> – The task is preparing to stop in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StopReplicationTask.html"> <code>StopReplicationTask</code> </a> operation.</p> </li> <li> <p> <code>"testing"</code> – The database migration specified for this task is being tested in response to running either the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html"> <code>StartReplicationTaskAssessmentRun</code> </a> or the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html"> <code>StartReplicationTaskAssessment</code> </a> operation.</p> <note> <p> <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html"> <code>StartReplicationTaskAssessmentRun</code> </a> is an improved premigration task assessment operation. The <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessment.html"> <code>StartReplicationTaskAssessment</code> </a> operation assesses data type compatibility only between the source and target database of a given migration task. In contrast, <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTaskAssessmentRun.html"> <code>StartReplicationTaskAssessmentRun</code> </a> enables you to specify a variety of premigration task assessments in addition to data type compatibility. These assessments include ones for the validity of primary key definitions and likely issues with database migration performance, among others.</p> </note> </li> </ul></p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, /// <p><p>The reason the replication task was stopped. This response parameter can return one of the following values:</p> <ul> <li> <p> <code>"STOP<em>REASON</em>FULL<em>LOAD</em>COMPLETED"</code> – Full-load migration completed.</p> </li> <li> <p> <code>"STOP<em>REASON</em>CACHED<em>CHANGES</em>APPLIED"</code> – Change data capture (CDC) load completed.</p> </li> <li> <p> <code>"STOP<em>REASON</em>CACHED<em>CHANGES</em>NOT<em>APPLIED"</code> – In a full-load and CDC migration, the full load stopped as specified before starting the CDC migration.</p> </li> <li> <p> <code>"STOP</em>REASON<em>SERVER</em>TIME"</code> – The migration stopped at the specified server time.</p> </li> </ul></p> #[serde(rename = "StopReason")] #[serde(skip_serializing_if = "Option::is_none")] pub stop_reason: Option<String>, /// <p>Table mappings specified in the task.</p> #[serde(rename = "TableMappings")] #[serde(skip_serializing_if = "Option::is_none")] pub table_mappings: Option<String>, /// <p>The ARN that uniquely identifies the endpoint.</p> #[serde(rename = "TargetEndpointArn")] #[serde(skip_serializing_if = "Option::is_none")] pub target_endpoint_arn: Option<String>, /// <p>The ARN of the replication instance to which this task is moved in response to running the <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_MoveReplicationTask.html"> <code>MoveReplicationTask</code> </a> operation. Otherwise, this response parameter isn't a member of the <code>ReplicationTask</code> object.</p> #[serde(rename = "TargetReplicationInstanceArn")] #[serde(skip_serializing_if = "Option::is_none")] pub target_replication_instance_arn: Option<String>, /// <p>Supplemental information that the task requires to migrate the data for certain source and target endpoints. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html">Specifying Supplemental Data for Task Settings</a> in the <i>AWS Database Migration Service User Guide.</i> </p> #[serde(rename = "TaskData")] #[serde(skip_serializing_if = "Option::is_none")] pub task_data: Option<String>, } /// <p> The task assessment report in JSON format. </p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationTaskAssessmentResult { /// <p> The task assessment results in JSON format. </p> #[serde(rename = "AssessmentResults")] #[serde(skip_serializing_if = "Option::is_none")] pub assessment_results: Option<String>, /// <p> The file containing the results of the task assessment. </p> #[serde(rename = "AssessmentResultsFile")] #[serde(skip_serializing_if = "Option::is_none")] pub assessment_results_file: Option<String>, /// <p> The status of the task assessment. </p> #[serde(rename = "AssessmentStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub assessment_status: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication task. </p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, /// <p> The replication task identifier of the task on which the task assessment was run. </p> #[serde(rename = "ReplicationTaskIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_identifier: Option<String>, /// <p>The date the task assessment was completed. </p> #[serde(rename = "ReplicationTaskLastAssessmentDate")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_last_assessment_date: Option<f64>, /// <p> The URL of the S3 object containing the task assessment results. </p> #[serde(rename = "S3ObjectUrl")] #[serde(skip_serializing_if = "Option::is_none")] pub s3_object_url: Option<String>, } /// <p>Provides information that describes a premigration assessment run that you have started using the <code>StartReplicationTaskAssessmentRun</code> operation.</p> <p>Some of the information appears based on other operations that can return the <code>ReplicationTaskAssessmentRun</code> object.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationTaskAssessmentRun { /// <p>Indication of the completion progress for the individual assessments specified to run.</p> #[serde(rename = "AssessmentProgress")] #[serde(skip_serializing_if = "Option::is_none")] pub assessment_progress: Option<ReplicationTaskAssessmentRunProgress>, /// <p>Unique name of the assessment run.</p> #[serde(rename = "AssessmentRunName")] #[serde(skip_serializing_if = "Option::is_none")] pub assessment_run_name: Option<String>, /// <p>Last message generated by an individual assessment failure.</p> #[serde(rename = "LastFailureMessage")] #[serde(skip_serializing_if = "Option::is_none")] pub last_failure_message: Option<String>, /// <p>ARN of the migration task associated with this premigration assessment run.</p> #[serde(rename = "ReplicationTaskArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_arn: Option<String>, /// <p>Amazon Resource Name (ARN) of this assessment run.</p> #[serde(rename = "ReplicationTaskAssessmentRunArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_run_arn: Option<String>, /// <p>Date on which the assessment run was created using the <code>StartReplicationTaskAssessmentRun</code> operation.</p> #[serde(rename = "ReplicationTaskAssessmentRunCreationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_run_creation_date: Option<f64>, /// <p>Encryption mode used to encrypt the assessment run results.</p> #[serde(rename = "ResultEncryptionMode")] #[serde(skip_serializing_if = "Option::is_none")] pub result_encryption_mode: Option<String>, /// <p>ARN of the AWS KMS encryption key used to encrypt the assessment run results.</p> #[serde(rename = "ResultKmsKeyArn")] #[serde(skip_serializing_if = "Option::is_none")] pub result_kms_key_arn: Option<String>, /// <p>Amazon S3 bucket where AWS DMS stores the results of this assessment run.</p> #[serde(rename = "ResultLocationBucket")] #[serde(skip_serializing_if = "Option::is_none")] pub result_location_bucket: Option<String>, /// <p>Folder in an Amazon S3 bucket where AWS DMS stores the results of this assessment run.</p> #[serde(rename = "ResultLocationFolder")] #[serde(skip_serializing_if = "Option::is_none")] pub result_location_folder: Option<String>, /// <p>ARN of the service role used to start the assessment run using the <code>StartReplicationTaskAssessmentRun</code> operation.</p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p><p>Assessment run status. </p> <p>This status can have one of the following values:</p> <ul> <li> <p> <code>"cancelling"</code> – The assessment run was canceled by the <code>CancelReplicationTaskAssessmentRun</code> operation.</p> </li> <li> <p> <code>"deleting"</code> – The assessment run was deleted by the <code>DeleteReplicationTaskAssessmentRun</code> operation.</p> </li> <li> <p> <code>"failed"</code> – At least one individual assessment completed with a <code>failed</code> status.</p> </li> <li> <p> <code>"error-provisioning"</code> – An internal error occurred while resources were provisioned (during <code>provisioning</code> status).</p> </li> <li> <p> <code>"error-executing"</code> – An internal error occurred while individual assessments ran (during <code>running</code> status).</p> </li> <li> <p> <code>"invalid state"</code> – The assessment run is in an unknown state.</p> </li> <li> <p> <code>"passed"</code> – All individual assessments have completed, and none has a <code>failed</code> status.</p> </li> <li> <p> <code>"provisioning"</code> – Resources required to run individual assessments are being provisioned.</p> </li> <li> <p> <code>"running"</code> – Individual assessments are being run.</p> </li> <li> <p> <code>"starting"</code> – The assessment run is starting, but resources are not yet being provisioned for individual assessments.</p> </li> </ul></p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, } /// <p>The progress values reported by the <code>AssessmentProgress</code> response element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationTaskAssessmentRunProgress { /// <p>The number of individual assessments that have completed, successfully or not.</p> #[serde(rename = "IndividualAssessmentCompletedCount")] #[serde(skip_serializing_if = "Option::is_none")] pub individual_assessment_completed_count: Option<i64>, /// <p>The number of individual assessments that are specified to run.</p> #[serde(rename = "IndividualAssessmentCount")] #[serde(skip_serializing_if = "Option::is_none")] pub individual_assessment_count: Option<i64>, } /// <p>Provides information that describes an individual assessment from a premigration assessment run.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationTaskIndividualAssessment { /// <p>Name of this individual assessment.</p> #[serde(rename = "IndividualAssessmentName")] #[serde(skip_serializing_if = "Option::is_none")] pub individual_assessment_name: Option<String>, /// <p>ARN of the premigration assessment run that is created to run this individual assessment.</p> #[serde(rename = "ReplicationTaskAssessmentRunArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_run_arn: Option<String>, /// <p>Amazon Resource Name (ARN) of this individual assessment.</p> #[serde(rename = "ReplicationTaskIndividualAssessmentArn")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_individual_assessment_arn: Option<String>, /// <p>Date when this individual assessment was started as part of running the <code>StartReplicationTaskAssessmentRun</code> operation.</p> #[serde(rename = "ReplicationTaskIndividualAssessmentStartDate")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_individual_assessment_start_date: Option<f64>, /// <p><p>Individual assessment status.</p> <p>This status can have one of the following values:</p> <ul> <li> <p> <code>"cancelled"</code> </p> </li> <li> <p> <code>"error"</code> </p> </li> <li> <p> <code>"failed"</code> </p> </li> <li> <p> <code>"passed"</code> </p> </li> <li> <p> <code>"pending"</code> </p> </li> <li> <p> <code>"running"</code> </p> </li> </ul></p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, } /// <p>In response to a request by the <code>DescribeReplicationTasks</code> operation, this object provides a collection of statistics about a replication task.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ReplicationTaskStats { /// <p>The elapsed time of the task, in milliseconds.</p> #[serde(rename = "ElapsedTimeMillis")] #[serde(skip_serializing_if = "Option::is_none")] pub elapsed_time_millis: Option<i64>, /// <p>The date the replication task was started either with a fresh start or a target reload.</p> #[serde(rename = "FreshStartDate")] #[serde(skip_serializing_if = "Option::is_none")] pub fresh_start_date: Option<f64>, /// <p>The date the replication task full load was completed.</p> #[serde(rename = "FullLoadFinishDate")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_finish_date: Option<f64>, /// <p>The percent complete for the full load migration task.</p> #[serde(rename = "FullLoadProgressPercent")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_progress_percent: Option<i64>, /// <p>The date the replication task full load was started.</p> #[serde(rename = "FullLoadStartDate")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_start_date: Option<f64>, /// <p>The date the replication task was started either with a fresh start or a resume. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_StartReplicationTask.html#DMS-StartReplicationTask-request-StartReplicationTaskType">StartReplicationTaskType</a>.</p> #[serde(rename = "StartDate")] #[serde(skip_serializing_if = "Option::is_none")] pub start_date: Option<f64>, /// <p>The date the replication task was stopped.</p> #[serde(rename = "StopDate")] #[serde(skip_serializing_if = "Option::is_none")] pub stop_date: Option<f64>, /// <p>The number of errors that have occurred during this task.</p> #[serde(rename = "TablesErrored")] #[serde(skip_serializing_if = "Option::is_none")] pub tables_errored: Option<i64>, /// <p>The number of tables loaded for this task.</p> #[serde(rename = "TablesLoaded")] #[serde(skip_serializing_if = "Option::is_none")] pub tables_loaded: Option<i64>, /// <p>The number of tables currently loading for this task.</p> #[serde(rename = "TablesLoading")] #[serde(skip_serializing_if = "Option::is_none")] pub tables_loading: Option<i64>, /// <p>The number of tables queued for this task.</p> #[serde(rename = "TablesQueued")] #[serde(skip_serializing_if = "Option::is_none")] pub tables_queued: Option<i64>, } /// <p>Identifies an AWS DMS resource and any pending actions for it.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ResourcePendingMaintenanceActions { /// <p>Detailed information about the pending maintenance action.</p> #[serde(rename = "PendingMaintenanceActionDetails")] #[serde(skip_serializing_if = "Option::is_none")] pub pending_maintenance_action_details: Option<Vec<PendingMaintenanceAction>>, /// <p>The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. For information about creating an ARN, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Introduction.AWS.ARN.html"> Constructing an Amazon Resource Name (ARN) for AWS DMS</a> in the DMS documentation.</p> #[serde(rename = "ResourceIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub resource_identifier: Option<String>, } /// <p>Settings for exporting data to Amazon S3. </p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct S3Settings { /// <p> An optional parameter to set a folder name in the S3 bucket. If provided, tables are created in the path <code> <i>bucketFolder</i>/<i>schema_name</i>/<i>table_name</i>/</code>. If this parameter isn't specified, then the path used is <code> <i>schema_name</i>/<i>table_name</i>/</code>. </p> #[serde(rename = "BucketFolder")] #[serde(skip_serializing_if = "Option::is_none")] pub bucket_folder: Option<String>, /// <p> The name of the S3 bucket. </p> #[serde(rename = "BucketName")] #[serde(skip_serializing_if = "Option::is_none")] pub bucket_name: Option<String>, /// <p><p>A value that enables a change data capture (CDC) load to write INSERT and UPDATE operations to .csv or .parquet (columnar storage) output files. The default setting is <code>false</code>, but when <code>CdcInsertsAndUpdates</code> is set to <code>true</code> or <code>y</code>, only INSERTs and UPDATEs from the source database are migrated to the .csv or .parquet file. </p> <p>For .csv file format only, how these INSERTs and UPDATEs are recorded depends on the value of the <code>IncludeOpForFullLoad</code> parameter. If <code>IncludeOpForFullLoad</code> is set to <code>true</code>, the first field of every CDC record is set to either <code>I</code> or <code>U</code> to indicate INSERT and UPDATE operations at the source. But if <code>IncludeOpForFullLoad</code> is set to <code>false</code>, CDC records are written without an indication of INSERT or UPDATE operations at the source. For more information about how these settings work together, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring.InsertOps">Indicating Source DB Operations in Migrated S3 Data</a> in the <i>AWS Database Migration Service User Guide.</i>.</p> <note> <p>AWS DMS supports the use of the <code>CdcInsertsAndUpdates</code> parameter in versions 3.3.1 and later.</p> <p> <code>CdcInsertsOnly</code> and <code>CdcInsertsAndUpdates</code> can't both be set to <code>true</code> for the same endpoint. Set either <code>CdcInsertsOnly</code> or <code>CdcInsertsAndUpdates</code> to <code>true</code> for the same endpoint, but not both.</p> </note></p> #[serde(rename = "CdcInsertsAndUpdates")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_inserts_and_updates: Option<bool>, /// <p><p>A value that enables a change data capture (CDC) load to write only INSERT operations to .csv or columnar storage (.parquet) output files. By default (the <code>false</code> setting), the first field in a .csv or .parquet record contains the letter I (INSERT), U (UPDATE), or D (DELETE). These values indicate whether the row was inserted, updated, or deleted at the source database for a CDC load to the target.</p> <p>If <code>CdcInsertsOnly</code> is set to <code>true</code> or <code>y</code>, only INSERTs from the source database are migrated to the .csv or .parquet file. For .csv format only, how these INSERTs are recorded depends on the value of <code>IncludeOpForFullLoad</code>. If <code>IncludeOpForFullLoad</code> is set to <code>true</code>, the first field of every CDC record is set to I to indicate the INSERT operation at the source. If <code>IncludeOpForFullLoad</code> is set to <code>false</code>, every CDC record is written without a first field to indicate the INSERT operation at the source. For more information about how these settings work together, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring.InsertOps">Indicating Source DB Operations in Migrated S3 Data</a> in the <i>AWS Database Migration Service User Guide.</i>.</p> <note> <p>AWS DMS supports the interaction described preceding between the <code>CdcInsertsOnly</code> and <code>IncludeOpForFullLoad</code> parameters in versions 3.1.4 and later. </p> <p> <code>CdcInsertsOnly</code> and <code>CdcInsertsAndUpdates</code> can't both be set to <code>true</code> for the same endpoint. Set either <code>CdcInsertsOnly</code> or <code>CdcInsertsAndUpdates</code> to <code>true</code> for the same endpoint, but not both.</p> </note></p> #[serde(rename = "CdcInsertsOnly")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_inserts_only: Option<bool>, /// <p><p>Specifies the folder path of CDC files. For an S3 source, this setting is required if a task captures change data; otherwise, it's optional. If <code>CdcPath</code> is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. For an S3 target if you set <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_S3Settings.html#DMS-Type-S3Settings-PreserveTransactions"> <code>PreserveTransactions</code> </a> to <code>true</code>, AWS DMS verifies that you have set this parameter to a folder path on your S3 target where AWS DMS can save the transaction order for the CDC load. AWS DMS creates this CDC folder path in either your S3 target working directory or the S3 target location specified by <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_S3Settings.html#DMS-Type-S3Settings-BucketFolder"> <code>BucketFolder</code> </a> and <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_S3Settings.html#DMS-Type-S3Settings-BucketName"> <code>BucketName</code> </a>.</p> <p>For example, if you specify <code>CdcPath</code> as <code>MyChangedData</code>, and you specify <code>BucketName</code> as <code>MyTargetBucket</code> but do not specify <code>BucketFolder</code>, AWS DMS creates the CDC folder path following: <code>MyTargetBucket/MyChangedData</code>.</p> <p>If you specify the same <code>CdcPath</code>, and you specify <code>BucketName</code> as <code>MyTargetBucket</code> and <code>BucketFolder</code> as <code>MyTargetData</code>, AWS DMS creates the CDC folder path following: <code>MyTargetBucket/MyTargetData/MyChangedData</code>.</p> <p>For more information on CDC including transaction order on an S3 target, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.EndpointSettings.CdcPath">Capturing data changes (CDC) including transaction order on the S3 target</a>.</p> <note> <p>This setting is supported in AWS DMS versions 3.4.2 and later.</p> </note></p> #[serde(rename = "CdcPath")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_path: Option<String>, /// <p>An optional parameter to use GZIP to compress the target files. Set to GZIP to compress the target files. Either set this parameter to NONE (the default) or don't use it to leave the files uncompressed. This parameter applies to both .csv and .parquet file formats. </p> #[serde(rename = "CompressionType")] #[serde(skip_serializing_if = "Option::is_none")] pub compression_type: Option<String>, /// <p> The delimiter used to separate columns in the .csv file for both source and target. The default is a comma. </p> #[serde(rename = "CsvDelimiter")] #[serde(skip_serializing_if = "Option::is_none")] pub csv_delimiter: Option<String>, /// <p><p>This setting only applies if your Amazon S3 output files during a change data capture (CDC) load are written in .csv format. If <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_S3Settings.html#DMS-Type-S3Settings-UseCsvNoSupValue"> <code>UseCsvNoSupValue</code> </a> is set to true, specify a string value that you want AWS DMS to use for all columns not included in the supplemental log. If you do not specify a string value, AWS DMS uses the null value for these columns regardless of the <code>UseCsvNoSupValue</code> setting.</p> <note> <p>This setting is supported in AWS DMS versions 3.4.1 and later.</p> </note></p> #[serde(rename = "CsvNoSupValue")] #[serde(skip_serializing_if = "Option::is_none")] pub csv_no_sup_value: Option<String>, /// <p> The delimiter used to separate rows in the .csv file for both source and target. The default is a carriage return (<code>\n</code>). </p> #[serde(rename = "CsvRowDelimiter")] #[serde(skip_serializing_if = "Option::is_none")] pub csv_row_delimiter: Option<String>, /// <p><p>The format of the data that you want to use for output. You can choose one of the following: </p> <ul> <li> <p> <code>csv</code> : This is a row-based file format with comma-separated values (.csv). </p> </li> <li> <p> <code>parquet</code> : Apache Parquet (.parquet) is a columnar storage file format that features efficient compression and provides faster query response. </p> </li> </ul></p> #[serde(rename = "DataFormat")] #[serde(skip_serializing_if = "Option::is_none")] pub data_format: Option<String>, /// <p>The size of one data page in bytes. This parameter defaults to 1024 * 1024 bytes (1 MiB). This number is used for .parquet file format only. </p> #[serde(rename = "DataPageSize")] #[serde(skip_serializing_if = "Option::is_none")] pub data_page_size: Option<i64>, /// <p>Specifies a date separating delimiter to use during folder partitioning. The default value is <code>SLASH</code>. Use this parameter when <code>DatePartitionedEnabled</code> is set to <code>true</code>.</p> #[serde(rename = "DatePartitionDelimiter")] #[serde(skip_serializing_if = "Option::is_none")] pub date_partition_delimiter: Option<String>, /// <p>When set to <code>true</code>, this parameter partitions S3 bucket folders based on transaction commit dates. The default value is <code>false</code>. For more information about date-based folder partitoning, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.DatePartitioning">Using date-based folder partitioning</a>.</p> #[serde(rename = "DatePartitionEnabled")] #[serde(skip_serializing_if = "Option::is_none")] pub date_partition_enabled: Option<bool>, /// <p>Identifies the sequence of the date format to use during folder partitioning. The default value is <code>YYYYMMDD</code>. Use this parameter when <code>DatePartitionedEnabled</code> is set to <code>true</code>.</p> #[serde(rename = "DatePartitionSequence")] #[serde(skip_serializing_if = "Option::is_none")] pub date_partition_sequence: Option<String>, /// <p>The maximum size of an encoded dictionary page of a column. If the dictionary page exceeds this, this column is stored using an encoding type of <code>PLAIN</code>. This parameter defaults to 1024 * 1024 bytes (1 MiB), the maximum size of a dictionary page before it reverts to <code>PLAIN</code> encoding. This size is used for .parquet file format only. </p> #[serde(rename = "DictPageSizeLimit")] #[serde(skip_serializing_if = "Option::is_none")] pub dict_page_size_limit: Option<i64>, /// <p>A value that enables statistics for Parquet pages and row groups. Choose <code>true</code> to enable statistics, <code>false</code> to disable. Statistics include <code>NULL</code>, <code>DISTINCT</code>, <code>MAX</code>, and <code>MIN</code> values. This parameter defaults to <code>true</code>. This value is used for .parquet file format only.</p> #[serde(rename = "EnableStatistics")] #[serde(skip_serializing_if = "Option::is_none")] pub enable_statistics: Option<bool>, /// <p><p>The type of encoding you are using: </p> <ul> <li> <p> <code>RLE<em>DICTIONARY</code> uses a combination of bit-packing and run-length encoding to store repeated values more efficiently. This is the default.</p> </li> <li> <p> <code>PLAIN</code> doesn't use encoding at all. Values are stored as they are.</p> </li> <li> <p> <code>PLAIN</em>DICTIONARY</code> builds a dictionary of the values encountered in a given column. The dictionary is stored in a dictionary page for each column chunk.</p> </li> </ul></p> #[serde(rename = "EncodingType")] #[serde(skip_serializing_if = "Option::is_none")] pub encoding_type: Option<String>, /// <p><p>The type of server-side encryption that you want to use for your data. This encryption type is part of the endpoint settings or the extra connections attributes for Amazon S3. You can choose either <code>SSE<em>S3</code> (the default) or <code>SSE</em>KMS</code>. </p> <note> <p>For the <code>ModifyEndpoint</code> operation, you can change the existing value of the <code>EncryptionMode</code> parameter from <code>SSE<em>KMS</code> to <code>SSE</em>S3</code>. But you can’t change the existing value from <code>SSE<em>S3</code> to <code>SSE</em>KMS</code>.</p> </note> <p>To use <code>SSE_S3</code>, you need an AWS Identity and Access Management (IAM) role with permission to allow <code>"arn:aws:s3:::dms-*"</code> to use the following actions:</p> <ul> <li> <p> <code>s3:CreateBucket</code> </p> </li> <li> <p> <code>s3:ListBucket</code> </p> </li> <li> <p> <code>s3:DeleteBucket</code> </p> </li> <li> <p> <code>s3:GetBucketLocation</code> </p> </li> <li> <p> <code>s3:GetObject</code> </p> </li> <li> <p> <code>s3:PutObject</code> </p> </li> <li> <p> <code>s3:DeleteObject</code> </p> </li> <li> <p> <code>s3:GetObjectVersion</code> </p> </li> <li> <p> <code>s3:GetBucketPolicy</code> </p> </li> <li> <p> <code>s3:PutBucketPolicy</code> </p> </li> <li> <p> <code>s3:DeleteBucketPolicy</code> </p> </li> </ul></p> #[serde(rename = "EncryptionMode")] #[serde(skip_serializing_if = "Option::is_none")] pub encryption_mode: Option<String>, /// <p> Specifies how tables are defined in the S3 source files only. </p> #[serde(rename = "ExternalTableDefinition")] #[serde(skip_serializing_if = "Option::is_none")] pub external_table_definition: Option<String>, /// <p><p>A value that enables a full load to write INSERT operations to the comma-separated value (.csv) output files only to indicate how the rows were added to the source database.</p> <note> <p>AWS DMS supports the <code>IncludeOpForFullLoad</code> parameter in versions 3.1.4 and later.</p> </note> <p>For full load, records can only be inserted. By default (the <code>false</code> setting), no information is recorded in these output files for a full load to indicate that the rows were inserted at the source database. If <code>IncludeOpForFullLoad</code> is set to <code>true</code> or <code>y</code>, the INSERT is recorded as an I annotation in the first field of the .csv file. This allows the format of your target records from a full load to be consistent with the target records from a CDC load.</p> <note> <p>This setting works together with the <code>CdcInsertsOnly</code> and the <code>CdcInsertsAndUpdates</code> parameters for output to .csv files only. For more information about how these settings work together, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring.InsertOps">Indicating Source DB Operations in Migrated S3 Data</a> in the <i>AWS Database Migration Service User Guide.</i>.</p> </note></p> #[serde(rename = "IncludeOpForFullLoad")] #[serde(skip_serializing_if = "Option::is_none")] pub include_op_for_full_load: Option<bool>, /// <p><p>A value that specifies the precision of any <code>TIMESTAMP</code> column values that are written to an Amazon S3 object file in .parquet format.</p> <note> <p>AWS DMS supports the <code>ParquetTimestampInMillisecond</code> parameter in versions 3.1.4 and later.</p> </note> <p>When <code>ParquetTimestampInMillisecond</code> is set to <code>true</code> or <code>y</code>, AWS DMS writes all <code>TIMESTAMP</code> columns in a .parquet formatted file with millisecond precision. Otherwise, DMS writes them with microsecond precision.</p> <p>Currently, Amazon Athena and AWS Glue can handle only millisecond precision for <code>TIMESTAMP</code> values. Set this parameter to <code>true</code> for S3 endpoint object files that are .parquet formatted only if you plan to query or process the data with Athena or AWS Glue.</p> <note> <p>AWS DMS writes any <code>TIMESTAMP</code> column values written to an S3 file in .csv format with microsecond precision.</p> <p>Setting <code>ParquetTimestampInMillisecond</code> has no effect on the string format of the timestamp column value that is inserted by setting the <code>TimestampColumnName</code> parameter.</p> </note></p> #[serde(rename = "ParquetTimestampInMillisecond")] #[serde(skip_serializing_if = "Option::is_none")] pub parquet_timestamp_in_millisecond: Option<bool>, /// <p>The version of the Apache Parquet format that you want to use: <code>parquet_1_0</code> (the default) or <code>parquet_2_0</code>.</p> #[serde(rename = "ParquetVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub parquet_version: Option<String>, /// <p><p>If set to <code>true</code>, AWS DMS saves the transaction order for a change data capture (CDC) load on the Amazon S3 target specified by <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_S3Settings.html#DMS-Type-S3Settings-CdcPath"> <code>CdcPath</code> </a>. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.EndpointSettings.CdcPath">Capturing data changes (CDC) including transaction order on the S3 target</a>.</p> <note> <p>This setting is supported in AWS DMS versions 3.4.2 and later.</p> </note></p> #[serde(rename = "PreserveTransactions")] #[serde(skip_serializing_if = "Option::is_none")] pub preserve_transactions: Option<bool>, /// <p>The number of rows in a row group. A smaller row group size provides faster reads. But as the number of row groups grows, the slower writes become. This parameter defaults to 10,000 rows. This number is used for .parquet file format only. </p> <p>If you choose a value larger than the maximum, <code>RowGroupLength</code> is set to the max row group length in bytes (64 * 1024 * 1024). </p> #[serde(rename = "RowGroupLength")] #[serde(skip_serializing_if = "Option::is_none")] pub row_group_length: Option<i64>, /// <p>If you are using <code>SSE_KMS</code> for the <code>EncryptionMode</code>, provide the AWS KMS key ID. The key that you use needs an attached policy that enables AWS Identity and Access Management (IAM) user permissions and allows use of the key.</p> <p>Here is a CLI example: <code>aws dms create-endpoint --endpoint-identifier <i>value</i> --endpoint-type target --engine-name s3 --s3-settings ServiceAccessRoleArn=<i>value</i>,BucketFolder=<i>value</i>,BucketName=<i>value</i>,EncryptionMode=SSE_KMS,ServerSideEncryptionKmsKeyId=<i>value</i> </code> </p> #[serde(rename = "ServerSideEncryptionKmsKeyId")] #[serde(skip_serializing_if = "Option::is_none")] pub server_side_encryption_kms_key_id: Option<String>, /// <p> The Amazon Resource Name (ARN) used by the service access IAM role. It is a required parameter that enables DMS to write and read objects from an 3S bucket.</p> #[serde(rename = "ServiceAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub service_access_role_arn: Option<String>, /// <p>A value that when nonblank causes AWS DMS to add a column with timestamp information to the endpoint data for an Amazon S3 target.</p> <note> <p>AWS DMS supports the <code>TimestampColumnName</code> parameter in versions 3.1.4 and later.</p> </note> <p>DMS includes an additional <code>STRING</code> column in the .csv or .parquet object files of your migrated data when you set <code>TimestampColumnName</code> to a nonblank value.</p> <p>For a full load, each row of this timestamp column contains a timestamp for when the data was transferred from the source to the target by DMS. </p> <p>For a change data capture (CDC) load, each row of the timestamp column contains the timestamp for the commit of that row in the source database.</p> <p>The string format for this timestamp column value is <code>yyyy-MM-dd HH:mm:ss.SSSSSS</code>. By default, the precision of this value is in microseconds. For a CDC load, the rounding of the precision depends on the commit timestamp supported by DMS for the source database.</p> <p>When the <code>AddColumnName</code> parameter is set to <code>true</code>, DMS also includes a name for the timestamp column that you set with <code>TimestampColumnName</code>.</p> #[serde(rename = "TimestampColumnName")] #[serde(skip_serializing_if = "Option::is_none")] pub timestamp_column_name: Option<String>, /// <p><p>This setting applies if the S3 output files during a change data capture (CDC) load are written in .csv format. If set to <code>true</code> for columns not included in the supplemental log, AWS DMS uses the value specified by <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_S3Settings.html#DMS-Type-S3Settings-CsvNoSupValue"> <code>CsvNoSupValue</code> </a>. If not set or set to <code>false</code>, AWS DMS uses the null value for these columns.</p> <note> <p>This setting is supported in AWS DMS versions 3.4.1 and later.</p> </note></p> #[serde(rename = "UseCsvNoSupValue")] #[serde(skip_serializing_if = "Option::is_none")] pub use_csv_no_sup_value: Option<bool>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct StartReplicationTaskAssessmentMessage { /// <p> The Amazon Resource Name (ARN) of the replication task. </p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct StartReplicationTaskAssessmentResponse { /// <p> The assessed replication task. </p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct StartReplicationTaskAssessmentRunMessage { /// <p>Unique name to identify the assessment run.</p> #[serde(rename = "AssessmentRunName")] pub assessment_run_name: String, /// <p><p>Space-separated list of names for specific individual assessments that you want to exclude. These names come from the default list of individual assessments that AWS DMS supports for the associated migration task. This task is specified by <code>ReplicationTaskArn</code>.</p> <note> <p>You can't set a value for <code>Exclude</code> if you also set a value for <code>IncludeOnly</code> in the API operation.</p> <p>To identify the names of the default individual assessments that AWS DMS supports for the associated migration task, run the <code>DescribeApplicableIndividualAssessments</code> operation using its own <code>ReplicationTaskArn</code> request parameter.</p> </note></p> #[serde(rename = "Exclude")] #[serde(skip_serializing_if = "Option::is_none")] pub exclude: Option<Vec<String>>, /// <p><p>Space-separated list of names for specific individual assessments that you want to include. These names come from the default list of individual assessments that AWS DMS supports for the associated migration task. This task is specified by <code>ReplicationTaskArn</code>.</p> <note> <p>You can't set a value for <code>IncludeOnly</code> if you also set a value for <code>Exclude</code> in the API operation. </p> <p>To identify the names of the default individual assessments that AWS DMS supports for the associated migration task, run the <code>DescribeApplicableIndividualAssessments</code> operation using its own <code>ReplicationTaskArn</code> request parameter.</p> </note></p> #[serde(rename = "IncludeOnly")] #[serde(skip_serializing_if = "Option::is_none")] pub include_only: Option<Vec<String>>, /// <p>Amazon Resource Name (ARN) of the migration task associated with the premigration assessment run that you want to start.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, /// <p><p>Encryption mode that you can specify to encrypt the results of this assessment run. If you don't specify this request parameter, AWS DMS stores the assessment run results without encryption. You can specify one of the options following:</p> <ul> <li> <p> <code>"SSE<em>S3"</code> – The server-side encryption provided as a default by Amazon S3.</p> </li> <li> <p> <code>"SSE</em>KMS"</code> – AWS Key Management Service (AWS KMS) encryption. This encryption can use either a custom KMS encryption key that you specify or the default KMS encryption key that DMS provides.</p> </li> </ul></p> #[serde(rename = "ResultEncryptionMode")] #[serde(skip_serializing_if = "Option::is_none")] pub result_encryption_mode: Option<String>, /// <p>ARN of a custom KMS encryption key that you specify when you set <code>ResultEncryptionMode</code> to <code>"SSE_KMS</code>".</p> #[serde(rename = "ResultKmsKeyArn")] #[serde(skip_serializing_if = "Option::is_none")] pub result_kms_key_arn: Option<String>, /// <p>Amazon S3 bucket where you want AWS DMS to store the results of this assessment run.</p> #[serde(rename = "ResultLocationBucket")] pub result_location_bucket: String, /// <p>Folder within an Amazon S3 bucket where you want AWS DMS to store the results of this assessment run.</p> #[serde(rename = "ResultLocationFolder")] #[serde(skip_serializing_if = "Option::is_none")] pub result_location_folder: Option<String>, /// <p>ARN of a service role needed to start the assessment run.</p> #[serde(rename = "ServiceAccessRoleArn")] pub service_access_role_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct StartReplicationTaskAssessmentRunResponse { /// <p>The premigration assessment run that was started.</p> #[serde(rename = "ReplicationTaskAssessmentRun")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task_assessment_run: Option<ReplicationTaskAssessmentRun>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct StartReplicationTaskMessage { /// <p><p>Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.</p> <p> The value can be in date, checkpoint, or LSN/SCN format.</p> <p>Date Example: --cdc-start-position “2018-03-08T12:12:12”</p> <p>Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"</p> <p>LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”</p> <note> <p>When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting the <code>slotName</code> extra connection attribute to the name of this logical replication slot. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib">Extra Connection Attributes When Using PostgreSQL as a Source for AWS DMS</a>.</p> </note></p> #[serde(rename = "CdcStartPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_position: Option<String>, /// <p>Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.</p> <p>Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”</p> #[serde(rename = "CdcStartTime")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_start_time: Option<f64>, /// <p>Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.</p> <p>Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12”</p> <p>Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 “</p> #[serde(rename = "CdcStopPosition")] #[serde(skip_serializing_if = "Option::is_none")] pub cdc_stop_position: Option<String>, /// <p>The Amazon Resource Name (ARN) of the replication task to be started.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, /// <p>A type of replication task.</p> #[serde(rename = "StartReplicationTaskType")] pub start_replication_task_type: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct StartReplicationTaskResponse { /// <p>The replication task started.</p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct StopReplicationTaskMessage { /// <p>The Amazon Resource Name(ARN) of the replication task to be stopped.</p> #[serde(rename = "ReplicationTaskArn")] pub replication_task_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct StopReplicationTaskResponse { /// <p>The replication task stopped.</p> #[serde(rename = "ReplicationTask")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_task: Option<ReplicationTask>, } /// <p>In response to a request by the <code>DescribeReplicationSubnetGroups</code> operation, this object identifies a subnet by its given Availability Zone, subnet identifier, and status.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct Subnet { /// <p>The Availability Zone of the subnet.</p> #[serde(rename = "SubnetAvailabilityZone")] #[serde(skip_serializing_if = "Option::is_none")] pub subnet_availability_zone: Option<AvailabilityZone>, /// <p>The subnet identifier.</p> #[serde(rename = "SubnetIdentifier")] #[serde(skip_serializing_if = "Option::is_none")] pub subnet_identifier: Option<String>, /// <p>The status of the subnet.</p> #[serde(rename = "SubnetStatus")] #[serde(skip_serializing_if = "Option::is_none")] pub subnet_status: Option<String>, } /// <p>Provides information about types of supported endpoints in response to a request by the <code>DescribeEndpointTypes</code> operation. This information includes the type of endpoint, the database engine name, and whether change data capture (CDC) is supported.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct SupportedEndpointType { /// <p>The type of endpoint. Valid values are <code>source</code> and <code>target</code>.</p> #[serde(rename = "EndpointType")] #[serde(skip_serializing_if = "Option::is_none")] pub endpoint_type: Option<String>, /// <p>The expanded name for the engine name. For example, if the <code>EngineName</code> parameter is "aurora," this value would be "Amazon Aurora MySQL."</p> #[serde(rename = "EngineDisplayName")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_display_name: Option<String>, /// <p>The database engine name. Valid values, depending on the EndpointType, include <code>"mysql"</code>, <code>"oracle"</code>, <code>"postgres"</code>, <code>"mariadb"</code>, <code>"aurora"</code>, <code>"aurora-postgresql"</code>, <code>"redshift"</code>, <code>"s3"</code>, <code>"db2"</code>, <code>"azuredb"</code>, <code>"sybase"</code>, <code>"dynamodb"</code>, <code>"mongodb"</code>, <code>"kinesis"</code>, <code>"kafka"</code>, <code>"elasticsearch"</code>, <code>"documentdb"</code>, <code>"sqlserver"</code>, and <code>"neptune"</code>.</p> #[serde(rename = "EngineName")] #[serde(skip_serializing_if = "Option::is_none")] pub engine_name: Option<String>, /// <p>The earliest AWS DMS engine version that supports this endpoint engine. Note that endpoint engines released with AWS DMS versions earlier than 3.1.1 do not return a value for this parameter.</p> #[serde(rename = "ReplicationInstanceEngineMinimumVersion")] #[serde(skip_serializing_if = "Option::is_none")] pub replication_instance_engine_minimum_version: Option<String>, /// <p>Indicates if Change Data Capture (CDC) is supported.</p> #[serde(rename = "SupportsCDC")] #[serde(skip_serializing_if = "Option::is_none")] pub supports_cdc: Option<bool>, } /// <p>Provides information that defines a SAP ASE endpoint.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct SybaseSettings { /// <p>Database name for the endpoint.</p> #[serde(rename = "DatabaseName")] #[serde(skip_serializing_if = "Option::is_none")] pub database_name: Option<String>, /// <p>Endpoint connection password.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, /// <p>Endpoint TCP port.</p> #[serde(rename = "Port")] #[serde(skip_serializing_if = "Option::is_none")] pub port: Option<i64>, /// <p><p>The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value in <code>SecretsManagerSecret</code>. <code>SecretsManagerSecret</code> has the value of the AWS Secrets Manager secret that allows access to the SAP ASE endpoint.</p> <note> <p>You can specify one of two sets of values for these permissions. You can specify the values for this setting and <code>SecretsManagerSecretId</code>. Or you can specify clear-text values for <code>UserName</code>, <code>Password</code>, <code>ServerName</code>, and <code>Port</code>. You can't specify both. For more information on creating this <code>SecretsManagerSecret</code> and the <code>SecretsManagerAccessRoleArn</code> and <code>SecretsManagerSecretId</code> required to access it, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#security-iam-secretsmanager">Using secrets to access AWS Database Migration Service resources</a> in the <i>AWS Database Migration Service User Guide</i>.</p> </note></p> #[serde(rename = "SecretsManagerAccessRoleArn")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_access_role_arn: Option<String>, /// <p>The full ARN, partial ARN, or friendly name of the <code>SecretsManagerSecret</code> that contains the SAP SAE endpoint connection details.</p> #[serde(rename = "SecretsManagerSecretId")] #[serde(skip_serializing_if = "Option::is_none")] pub secrets_manager_secret_id: Option<String>, /// <p>Fully qualified domain name of the endpoint.</p> #[serde(rename = "ServerName")] #[serde(skip_serializing_if = "Option::is_none")] pub server_name: Option<String>, /// <p>Endpoint connection user name.</p> #[serde(rename = "Username")] #[serde(skip_serializing_if = "Option::is_none")] pub username: Option<String>, } /// <p>Provides a collection of table statistics in response to a request by the <code>DescribeTableStatistics</code> operation.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct TableStatistics { /// <p>The data definition language (DDL) used to build and modify the structure of your tables.</p> #[serde(rename = "Ddls")] #[serde(skip_serializing_if = "Option::is_none")] pub ddls: Option<i64>, /// <p>The number of delete actions performed on a table.</p> #[serde(rename = "Deletes")] #[serde(skip_serializing_if = "Option::is_none")] pub deletes: Option<i64>, /// <p>The number of rows that failed conditional checks during the full load operation (valid only for migrations where DynamoDB is the target).</p> #[serde(rename = "FullLoadCondtnlChkFailedRows")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_condtnl_chk_failed_rows: Option<i64>, /// <p>The time when the full load operation completed.</p> #[serde(rename = "FullLoadEndTime")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_end_time: Option<f64>, /// <p>The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB is the target).</p> #[serde(rename = "FullLoadErrorRows")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_error_rows: Option<i64>, /// <p>A value that indicates if the table was reloaded (<code>true</code>) or loaded as part of a new full load operation (<code>false</code>).</p> #[serde(rename = "FullLoadReloaded")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_reloaded: Option<bool>, /// <p>The number of rows added during the full load operation.</p> #[serde(rename = "FullLoadRows")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_rows: Option<i64>, /// <p>The time when the full load operation started.</p> #[serde(rename = "FullLoadStartTime")] #[serde(skip_serializing_if = "Option::is_none")] pub full_load_start_time: Option<f64>, /// <p>The number of insert actions performed on a table.</p> #[serde(rename = "Inserts")] #[serde(skip_serializing_if = "Option::is_none")] pub inserts: Option<i64>, /// <p>The last time a table was updated.</p> #[serde(rename = "LastUpdateTime")] #[serde(skip_serializing_if = "Option::is_none")] pub last_update_time: Option<f64>, /// <p>The schema name.</p> #[serde(rename = "SchemaName")] #[serde(skip_serializing_if = "Option::is_none")] pub schema_name: Option<String>, /// <p>The name of the table.</p> #[serde(rename = "TableName")] #[serde(skip_serializing_if = "Option::is_none")] pub table_name: Option<String>, /// <p>The state of the tables described.</p> <p>Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | Table all | Table updates | Table is being reloaded</p> #[serde(rename = "TableState")] #[serde(skip_serializing_if = "Option::is_none")] pub table_state: Option<String>, /// <p>The number of update actions performed on a table.</p> #[serde(rename = "Updates")] #[serde(skip_serializing_if = "Option::is_none")] pub updates: Option<i64>, /// <p>The number of records that failed validation.</p> #[serde(rename = "ValidationFailedRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub validation_failed_records: Option<i64>, /// <p>The number of records that have yet to be validated.</p> #[serde(rename = "ValidationPendingRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub validation_pending_records: Option<i64>, /// <p><p>The validation state of the table.</p> <p>This parameter can have the following values:</p> <ul> <li> <p>Not enabled – Validation isn't enabled for the table in the migration task.</p> </li> <li> <p>Pending records – Some records in the table are waiting for validation.</p> </li> <li> <p>Mismatched records – Some records in the table don't match between the source and target.</p> </li> <li> <p>Suspended records – Some records in the table couldn't be validated.</p> </li> <li> <p>No primary key –The table couldn't be validated because it has no primary key.</p> </li> <li> <p>Table error – The table wasn't validated because it's in an error state and some data wasn't migrated.</p> </li> <li> <p>Validated – All rows in the table are validated. If the table is updated, the status can change from Validated.</p> </li> <li> <p>Error – The table couldn't be validated because of an unexpected error.</p> </li> <li> <p>Pending validation – The table is waiting validation.</p> </li> <li> <p>Preparing table – Preparing the table enabled in the migration task for validation.</p> </li> <li> <p>Pending revalidation – All rows in the table are pending validation after the table was updated.</p> </li> </ul></p> #[serde(rename = "ValidationState")] #[serde(skip_serializing_if = "Option::is_none")] pub validation_state: Option<String>, /// <p>Additional details about the state of validation.</p> #[serde(rename = "ValidationStateDetails")] #[serde(skip_serializing_if = "Option::is_none")] pub validation_state_details: Option<String>, /// <p>The number of records that couldn't be validated.</p> #[serde(rename = "ValidationSuspendedRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub validation_suspended_records: Option<i64>, } /// <p>Provides the name of the schema and table to be reloaded.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct TableToReload { /// <p>The schema name of the table to be reloaded.</p> #[serde(rename = "SchemaName")] pub schema_name: String, /// <p>The table name of the table to be reloaded.</p> #[serde(rename = "TableName")] pub table_name: String, } /// <p><p>A user-defined key-value pair that describes metadata added to an AWS DMS resource and that is used by operations such as the following:</p> <ul> <li> <p> <code>AddTagsToResource</code> </p> </li> <li> <p> <code>ListTagsForResource</code> </p> </li> <li> <p> <code>RemoveTagsFromResource</code> </p> </li> </ul></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct Tag { /// <p>A key is the required name of the tag. The string value can be 1-128 Unicode characters in length and can't be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regular expressions: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").</p> #[serde(rename = "Key")] #[serde(skip_serializing_if = "Option::is_none")] pub key: Option<String>, /// <p>A value is the optional value of the tag. The string value can be 1-256 Unicode characters in length and can't be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regular expressions: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").</p> #[serde(rename = "Value")] #[serde(skip_serializing_if = "Option::is_none")] pub value: Option<String>, } /// <p><p/></p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct TestConnectionMessage { /// <p>The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.</p> #[serde(rename = "EndpointArn")] pub endpoint_arn: String, /// <p>The Amazon Resource Name (ARN) of the replication instance.</p> #[serde(rename = "ReplicationInstanceArn")] pub replication_instance_arn: String, } /// <p><p/></p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct TestConnectionResponse { /// <p>The connection tested.</p> #[serde(rename = "Connection")] #[serde(skip_serializing_if = "Option::is_none")] pub connection: Option<Connection>, } /// <p>Describes the status of a security group associated with the virtual private cloud (VPC) hosting your replication and DB instances.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct VpcSecurityGroupMembership { /// <p>The status of the VPC security group.</p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, /// <p>The VPC security group ID.</p> #[serde(rename = "VpcSecurityGroupId")] #[serde(skip_serializing_if = "Option::is_none")] pub vpc_security_group_id: Option<String>, } /// Errors returned by AddTagsToResource #[derive(Debug, PartialEq)] pub enum AddTagsToResourceError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl AddTagsToResourceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AddTagsToResourceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service(AddTagsToResourceError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for AddTagsToResourceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { AddTagsToResourceError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for AddTagsToResourceError {} /// Errors returned by ApplyPendingMaintenanceAction #[derive(Debug, PartialEq)] pub enum ApplyPendingMaintenanceActionError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl ApplyPendingMaintenanceActionError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<ApplyPendingMaintenanceActionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( ApplyPendingMaintenanceActionError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ApplyPendingMaintenanceActionError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ApplyPendingMaintenanceActionError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for ApplyPendingMaintenanceActionError {} /// Errors returned by CancelReplicationTaskAssessmentRun #[derive(Debug, PartialEq)] pub enum CancelReplicationTaskAssessmentRunError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl CancelReplicationTaskAssessmentRunError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CancelReplicationTaskAssessmentRunError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service( CancelReplicationTaskAssessmentRunError::AccessDeniedFault(err.msg), ) } "InvalidResourceStateFault" => { return RusotoError::Service( CancelReplicationTaskAssessmentRunError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( CancelReplicationTaskAssessmentRunError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CancelReplicationTaskAssessmentRunError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CancelReplicationTaskAssessmentRunError::AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } CancelReplicationTaskAssessmentRunError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } CancelReplicationTaskAssessmentRunError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for CancelReplicationTaskAssessmentRunError {} /// Errors returned by CreateEndpoint #[derive(Debug, PartialEq)] pub enum CreateEndpointError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), /// <p>Insufficient privileges are preventing access to an Amazon S3 object.</p> S3AccessDeniedFault(String), } impl CreateEndpointError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateEndpointError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(CreateEndpointError::AccessDeniedFault(err.msg)) } "InvalidResourceStateFault" => { return RusotoError::Service(CreateEndpointError::InvalidResourceStateFault( err.msg, )) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service(CreateEndpointError::KMSKeyNotAccessibleFault( err.msg, )) } "ResourceAlreadyExistsFault" => { return RusotoError::Service(CreateEndpointError::ResourceAlreadyExistsFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(CreateEndpointError::ResourceNotFoundFault( err.msg, )) } "ResourceQuotaExceededFault" => { return RusotoError::Service(CreateEndpointError::ResourceQuotaExceededFault( err.msg, )) } "S3AccessDeniedFault" => { return RusotoError::Service(CreateEndpointError::S3AccessDeniedFault(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CreateEndpointError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CreateEndpointError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), CreateEndpointError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), CreateEndpointError::KMSKeyNotAccessibleFault(ref cause) => write!(f, "{}", cause), CreateEndpointError::ResourceAlreadyExistsFault(ref cause) => write!(f, "{}", cause), CreateEndpointError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), CreateEndpointError::ResourceQuotaExceededFault(ref cause) => write!(f, "{}", cause), CreateEndpointError::S3AccessDeniedFault(ref cause) => write!(f, "{}", cause), } } } impl Error for CreateEndpointError {} /// Errors returned by CreateEventSubscription #[derive(Debug, PartialEq)] pub enum CreateEventSubscriptionError { /// <p>The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.</p> KMSAccessDeniedFault(String), /// <p>The specified master key (CMK) isn't enabled.</p> KMSDisabledFault(String), /// <p>The state of the specified AWS KMS resource isn't valid for this request.</p> KMSInvalidStateFault(String), /// <p>The specified AWS KMS entity or resource can't be found.</p> KMSNotFoundFault(String), /// <p>This request triggered AWS KMS request throttling.</p> KMSThrottlingFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), /// <p>The SNS topic is invalid.</p> SNSInvalidTopicFault(String), /// <p>You are not authorized for the SNS subscription.</p> SNSNoAuthorizationFault(String), } impl CreateEventSubscriptionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateEventSubscriptionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "KMSAccessDeniedFault" => { return RusotoError::Service( CreateEventSubscriptionError::KMSAccessDeniedFault(err.msg), ) } "KMSDisabledFault" => { return RusotoError::Service(CreateEventSubscriptionError::KMSDisabledFault( err.msg, )) } "KMSInvalidStateFault" => { return RusotoError::Service( CreateEventSubscriptionError::KMSInvalidStateFault(err.msg), ) } "KMSNotFoundFault" => { return RusotoError::Service(CreateEventSubscriptionError::KMSNotFoundFault( err.msg, )) } "KMSThrottlingFault" => { return RusotoError::Service(CreateEventSubscriptionError::KMSThrottlingFault( err.msg, )) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( CreateEventSubscriptionError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( CreateEventSubscriptionError::ResourceNotFoundFault(err.msg), ) } "ResourceQuotaExceededFault" => { return RusotoError::Service( CreateEventSubscriptionError::ResourceQuotaExceededFault(err.msg), ) } "SNSInvalidTopicFault" => { return RusotoError::Service( CreateEventSubscriptionError::SNSInvalidTopicFault(err.msg), ) } "SNSNoAuthorizationFault" => { return RusotoError::Service( CreateEventSubscriptionError::SNSNoAuthorizationFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CreateEventSubscriptionError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CreateEventSubscriptionError::KMSAccessDeniedFault(ref cause) => write!(f, "{}", cause), CreateEventSubscriptionError::KMSDisabledFault(ref cause) => write!(f, "{}", cause), CreateEventSubscriptionError::KMSInvalidStateFault(ref cause) => write!(f, "{}", cause), CreateEventSubscriptionError::KMSNotFoundFault(ref cause) => write!(f, "{}", cause), CreateEventSubscriptionError::KMSThrottlingFault(ref cause) => write!(f, "{}", cause), CreateEventSubscriptionError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } CreateEventSubscriptionError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } CreateEventSubscriptionError::ResourceQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } CreateEventSubscriptionError::SNSInvalidTopicFault(ref cause) => write!(f, "{}", cause), CreateEventSubscriptionError::SNSNoAuthorizationFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for CreateEventSubscriptionError {} /// Errors returned by CreateReplicationInstance #[derive(Debug, PartialEq)] pub enum CreateReplicationInstanceError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>There are not enough resources allocated to the database migration.</p> InsufficientResourceCapacityFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The subnet provided is invalid.</p> InvalidSubnet(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.</p> ReplicationSubnetGroupDoesNotCoverEnoughAZs(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), /// <p>The storage quota has been exceeded.</p> StorageQuotaExceededFault(String), } impl CreateReplicationInstanceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateReplicationInstanceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(CreateReplicationInstanceError::AccessDeniedFault( err.msg, )) } "InsufficientResourceCapacityFault" => { return RusotoError::Service( CreateReplicationInstanceError::InsufficientResourceCapacityFault(err.msg), ) } "InvalidResourceStateFault" => { return RusotoError::Service( CreateReplicationInstanceError::InvalidResourceStateFault(err.msg), ) } "InvalidSubnet" => { return RusotoError::Service(CreateReplicationInstanceError::InvalidSubnet( err.msg, )) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service( CreateReplicationInstanceError::KMSKeyNotAccessibleFault(err.msg), ) } "ReplicationSubnetGroupDoesNotCoverEnoughAZs" => { return RusotoError::Service( CreateReplicationInstanceError::ReplicationSubnetGroupDoesNotCoverEnoughAZs( err.msg, ), ) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( CreateReplicationInstanceError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( CreateReplicationInstanceError::ResourceNotFoundFault(err.msg), ) } "ResourceQuotaExceededFault" => { return RusotoError::Service( CreateReplicationInstanceError::ResourceQuotaExceededFault(err.msg), ) } "StorageQuotaExceededFault" => { return RusotoError::Service( CreateReplicationInstanceError::StorageQuotaExceededFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CreateReplicationInstanceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CreateReplicationInstanceError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), CreateReplicationInstanceError::InsufficientResourceCapacityFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationInstanceError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationInstanceError::InvalidSubnet(ref cause) => write!(f, "{}", cause), CreateReplicationInstanceError::KMSKeyNotAccessibleFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationInstanceError::ReplicationSubnetGroupDoesNotCoverEnoughAZs( ref cause, ) => write!(f, "{}", cause), CreateReplicationInstanceError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationInstanceError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationInstanceError::ResourceQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationInstanceError::StorageQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for CreateReplicationInstanceError {} /// Errors returned by CreateReplicationSubnetGroup #[derive(Debug, PartialEq)] pub enum CreateReplicationSubnetGroupError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The subnet provided is invalid.</p> InvalidSubnet(String), /// <p>The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.</p> ReplicationSubnetGroupDoesNotCoverEnoughAZs(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), } impl CreateReplicationSubnetGroupError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CreateReplicationSubnetGroupError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service( CreateReplicationSubnetGroupError::AccessDeniedFault(err.msg), ) } "InvalidSubnet" => { return RusotoError::Service(CreateReplicationSubnetGroupError::InvalidSubnet( err.msg, )) } "ReplicationSubnetGroupDoesNotCoverEnoughAZs" => return RusotoError::Service( CreateReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs( err.msg, ), ), "ResourceAlreadyExistsFault" => { return RusotoError::Service( CreateReplicationSubnetGroupError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( CreateReplicationSubnetGroupError::ResourceNotFoundFault(err.msg), ) } "ResourceQuotaExceededFault" => { return RusotoError::Service( CreateReplicationSubnetGroupError::ResourceQuotaExceededFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CreateReplicationSubnetGroupError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CreateReplicationSubnetGroupError::AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationSubnetGroupError::InvalidSubnet(ref cause) => write!(f, "{}", cause), CreateReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs( ref cause, ) => write!(f, "{}", cause), CreateReplicationSubnetGroupError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationSubnetGroupError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationSubnetGroupError::ResourceQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for CreateReplicationSubnetGroupError {} /// Errors returned by CreateReplicationTask #[derive(Debug, PartialEq)] pub enum CreateReplicationTaskError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), } impl CreateReplicationTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateReplicationTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(CreateReplicationTaskError::AccessDeniedFault( err.msg, )) } "InvalidResourceStateFault" => { return RusotoError::Service( CreateReplicationTaskError::InvalidResourceStateFault(err.msg), ) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service( CreateReplicationTaskError::KMSKeyNotAccessibleFault(err.msg), ) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( CreateReplicationTaskError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service(CreateReplicationTaskError::ResourceNotFoundFault( err.msg, )) } "ResourceQuotaExceededFault" => { return RusotoError::Service( CreateReplicationTaskError::ResourceQuotaExceededFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CreateReplicationTaskError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CreateReplicationTaskError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), CreateReplicationTaskError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationTaskError::KMSKeyNotAccessibleFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationTaskError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } CreateReplicationTaskError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), CreateReplicationTaskError::ResourceQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for CreateReplicationTaskError {} /// Errors returned by DeleteCertificate #[derive(Debug, PartialEq)] pub enum DeleteCertificateError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteCertificateError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteCertificateError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service(DeleteCertificateError::InvalidResourceStateFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(DeleteCertificateError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteCertificateError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteCertificateError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), DeleteCertificateError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DeleteCertificateError {} /// Errors returned by DeleteConnection #[derive(Debug, PartialEq)] pub enum DeleteConnectionError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteConnectionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteConnectionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(DeleteConnectionError::AccessDeniedFault(err.msg)) } "InvalidResourceStateFault" => { return RusotoError::Service(DeleteConnectionError::InvalidResourceStateFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(DeleteConnectionError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteConnectionError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteConnectionError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), DeleteConnectionError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), DeleteConnectionError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DeleteConnectionError {} /// Errors returned by DeleteEndpoint #[derive(Debug, PartialEq)] pub enum DeleteEndpointError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteEndpointError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteEndpointError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service(DeleteEndpointError::InvalidResourceStateFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(DeleteEndpointError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteEndpointError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteEndpointError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), DeleteEndpointError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DeleteEndpointError {} /// Errors returned by DeleteEventSubscription #[derive(Debug, PartialEq)] pub enum DeleteEventSubscriptionError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteEventSubscriptionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteEventSubscriptionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DeleteEventSubscriptionError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DeleteEventSubscriptionError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteEventSubscriptionError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteEventSubscriptionError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DeleteEventSubscriptionError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DeleteEventSubscriptionError {} /// Errors returned by DeleteReplicationInstance #[derive(Debug, PartialEq)] pub enum DeleteReplicationInstanceError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteReplicationInstanceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteReplicationInstanceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DeleteReplicationInstanceError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DeleteReplicationInstanceError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteReplicationInstanceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteReplicationInstanceError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DeleteReplicationInstanceError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DeleteReplicationInstanceError {} /// Errors returned by DeleteReplicationSubnetGroup #[derive(Debug, PartialEq)] pub enum DeleteReplicationSubnetGroupError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteReplicationSubnetGroupError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DeleteReplicationSubnetGroupError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DeleteReplicationSubnetGroupError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DeleteReplicationSubnetGroupError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteReplicationSubnetGroupError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteReplicationSubnetGroupError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DeleteReplicationSubnetGroupError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DeleteReplicationSubnetGroupError {} /// Errors returned by DeleteReplicationTask #[derive(Debug, PartialEq)] pub enum DeleteReplicationTaskError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteReplicationTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteReplicationTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DeleteReplicationTaskError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service(DeleteReplicationTaskError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteReplicationTaskError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteReplicationTaskError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DeleteReplicationTaskError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DeleteReplicationTaskError {} /// Errors returned by DeleteReplicationTaskAssessmentRun #[derive(Debug, PartialEq)] pub enum DeleteReplicationTaskAssessmentRunError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DeleteReplicationTaskAssessmentRunError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DeleteReplicationTaskAssessmentRunError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service( DeleteReplicationTaskAssessmentRunError::AccessDeniedFault(err.msg), ) } "InvalidResourceStateFault" => { return RusotoError::Service( DeleteReplicationTaskAssessmentRunError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DeleteReplicationTaskAssessmentRunError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteReplicationTaskAssessmentRunError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteReplicationTaskAssessmentRunError::AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } DeleteReplicationTaskAssessmentRunError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DeleteReplicationTaskAssessmentRunError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DeleteReplicationTaskAssessmentRunError {} /// Errors returned by DescribeAccountAttributes #[derive(Debug, PartialEq)] pub enum DescribeAccountAttributesError {} impl DescribeAccountAttributesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeAccountAttributesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeAccountAttributesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self {} } } impl Error for DescribeAccountAttributesError {} /// Errors returned by DescribeApplicableIndividualAssessments #[derive(Debug, PartialEq)] pub enum DescribeApplicableIndividualAssessmentsError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeApplicableIndividualAssessmentsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeApplicableIndividualAssessmentsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service( DescribeApplicableIndividualAssessmentsError::AccessDeniedFault(err.msg), ) } "InvalidResourceStateFault" => { return RusotoError::Service( DescribeApplicableIndividualAssessmentsError::InvalidResourceStateFault( err.msg, ), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DescribeApplicableIndividualAssessmentsError::ResourceNotFoundFault( err.msg, ), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeApplicableIndividualAssessmentsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeApplicableIndividualAssessmentsError::AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } DescribeApplicableIndividualAssessmentsError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DescribeApplicableIndividualAssessmentsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeApplicableIndividualAssessmentsError {} /// Errors returned by DescribeCertificates #[derive(Debug, PartialEq)] pub enum DescribeCertificatesError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeCertificatesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeCertificatesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service(DescribeCertificatesError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeCertificatesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeCertificatesError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DescribeCertificatesError {} /// Errors returned by DescribeConnections #[derive(Debug, PartialEq)] pub enum DescribeConnectionsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeConnectionsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeConnectionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service(DescribeConnectionsError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeConnectionsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeConnectionsError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DescribeConnectionsError {} /// Errors returned by DescribeEndpointTypes #[derive(Debug, PartialEq)] pub enum DescribeEndpointTypesError {} impl DescribeEndpointTypesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEndpointTypesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeEndpointTypesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self {} } } impl Error for DescribeEndpointTypesError {} /// Errors returned by DescribeEndpoints #[derive(Debug, PartialEq)] pub enum DescribeEndpointsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeEndpointsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEndpointsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service(DescribeEndpointsError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeEndpointsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeEndpointsError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DescribeEndpointsError {} /// Errors returned by DescribeEventCategories #[derive(Debug, PartialEq)] pub enum DescribeEventCategoriesError {} impl DescribeEventCategoriesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEventCategoriesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeEventCategoriesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self {} } } impl Error for DescribeEventCategoriesError {} /// Errors returned by DescribeEventSubscriptions #[derive(Debug, PartialEq)] pub enum DescribeEventSubscriptionsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeEventSubscriptionsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeEventSubscriptionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeEventSubscriptionsError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeEventSubscriptionsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeEventSubscriptionsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeEventSubscriptionsError {} /// Errors returned by DescribeEvents #[derive(Debug, PartialEq)] pub enum DescribeEventsError {} impl DescribeEventsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEventsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeEventsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self {} } } impl Error for DescribeEventsError {} /// Errors returned by DescribeOrderableReplicationInstances #[derive(Debug, PartialEq)] pub enum DescribeOrderableReplicationInstancesError {} impl DescribeOrderableReplicationInstancesError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeOrderableReplicationInstancesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeOrderableReplicationInstancesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self {} } } impl Error for DescribeOrderableReplicationInstancesError {} /// Errors returned by DescribePendingMaintenanceActions #[derive(Debug, PartialEq)] pub enum DescribePendingMaintenanceActionsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribePendingMaintenanceActionsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribePendingMaintenanceActionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribePendingMaintenanceActionsError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribePendingMaintenanceActionsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribePendingMaintenanceActionsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribePendingMaintenanceActionsError {} /// Errors returned by DescribeRefreshSchemasStatus #[derive(Debug, PartialEq)] pub enum DescribeRefreshSchemasStatusError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeRefreshSchemasStatusError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeRefreshSchemasStatusError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DescribeRefreshSchemasStatusError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DescribeRefreshSchemasStatusError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeRefreshSchemasStatusError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeRefreshSchemasStatusError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DescribeRefreshSchemasStatusError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeRefreshSchemasStatusError {} /// Errors returned by DescribeReplicationInstanceTaskLogs #[derive(Debug, PartialEq)] pub enum DescribeReplicationInstanceTaskLogsError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationInstanceTaskLogsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeReplicationInstanceTaskLogsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DescribeReplicationInstanceTaskLogsError::InvalidResourceStateFault( err.msg, ), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationInstanceTaskLogsError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationInstanceTaskLogsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationInstanceTaskLogsError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DescribeReplicationInstanceTaskLogsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationInstanceTaskLogsError {} /// Errors returned by DescribeReplicationInstances #[derive(Debug, PartialEq)] pub enum DescribeReplicationInstancesError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationInstancesError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeReplicationInstancesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationInstancesError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationInstancesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationInstancesError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationInstancesError {} /// Errors returned by DescribeReplicationSubnetGroups #[derive(Debug, PartialEq)] pub enum DescribeReplicationSubnetGroupsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationSubnetGroupsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeReplicationSubnetGroupsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationSubnetGroupsError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationSubnetGroupsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationSubnetGroupsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationSubnetGroupsError {} /// Errors returned by DescribeReplicationTaskAssessmentResults #[derive(Debug, PartialEq)] pub enum DescribeReplicationTaskAssessmentResultsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationTaskAssessmentResultsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeReplicationTaskAssessmentResultsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationTaskAssessmentResultsError::ResourceNotFoundFault( err.msg, ), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationTaskAssessmentResultsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationTaskAssessmentResultsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationTaskAssessmentResultsError {} /// Errors returned by DescribeReplicationTaskAssessmentRuns #[derive(Debug, PartialEq)] pub enum DescribeReplicationTaskAssessmentRunsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationTaskAssessmentRunsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeReplicationTaskAssessmentRunsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationTaskAssessmentRunsError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationTaskAssessmentRunsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationTaskAssessmentRunsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationTaskAssessmentRunsError {} /// Errors returned by DescribeReplicationTaskIndividualAssessments #[derive(Debug, PartialEq)] pub enum DescribeReplicationTaskIndividualAssessmentsError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationTaskIndividualAssessmentsError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<DescribeReplicationTaskIndividualAssessmentsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationTaskIndividualAssessmentsError::ResourceNotFoundFault( err.msg, ), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationTaskIndividualAssessmentsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationTaskIndividualAssessmentsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationTaskIndividualAssessmentsError {} /// Errors returned by DescribeReplicationTasks #[derive(Debug, PartialEq)] pub enum DescribeReplicationTasksError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeReplicationTasksError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeReplicationTasksError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( DescribeReplicationTasksError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeReplicationTasksError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeReplicationTasksError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeReplicationTasksError {} /// Errors returned by DescribeSchemas #[derive(Debug, PartialEq)] pub enum DescribeSchemasError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeSchemasError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeSchemasError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service(DescribeSchemasError::InvalidResourceStateFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(DescribeSchemasError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeSchemasError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeSchemasError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), DescribeSchemasError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for DescribeSchemasError {} /// Errors returned by DescribeTableStatistics #[derive(Debug, PartialEq)] pub enum DescribeTableStatisticsError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl DescribeTableStatisticsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeTableStatisticsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( DescribeTableStatisticsError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( DescribeTableStatisticsError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DescribeTableStatisticsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DescribeTableStatisticsError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } DescribeTableStatisticsError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for DescribeTableStatisticsError {} /// Errors returned by ImportCertificate #[derive(Debug, PartialEq)] pub enum ImportCertificateError { /// <p>The certificate was not valid.</p> InvalidCertificateFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), } impl ImportCertificateError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ImportCertificateError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidCertificateFault" => { return RusotoError::Service(ImportCertificateError::InvalidCertificateFault( err.msg, )) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( ImportCertificateError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceQuotaExceededFault" => { return RusotoError::Service( ImportCertificateError::ResourceQuotaExceededFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ImportCertificateError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ImportCertificateError::InvalidCertificateFault(ref cause) => write!(f, "{}", cause), ImportCertificateError::ResourceAlreadyExistsFault(ref cause) => write!(f, "{}", cause), ImportCertificateError::ResourceQuotaExceededFault(ref cause) => write!(f, "{}", cause), } } } impl Error for ImportCertificateError {} /// Errors returned by ListTagsForResource #[derive(Debug, PartialEq)] pub enum ListTagsForResourceError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl ListTagsForResourceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForResourceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service(ListTagsForResourceError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ListTagsForResourceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ListTagsForResourceError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for ListTagsForResourceError {} /// Errors returned by ModifyEndpoint #[derive(Debug, PartialEq)] pub enum ModifyEndpointError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl ModifyEndpointError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyEndpointError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(ModifyEndpointError::AccessDeniedFault(err.msg)) } "InvalidResourceStateFault" => { return RusotoError::Service(ModifyEndpointError::InvalidResourceStateFault( err.msg, )) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service(ModifyEndpointError::KMSKeyNotAccessibleFault( err.msg, )) } "ResourceAlreadyExistsFault" => { return RusotoError::Service(ModifyEndpointError::ResourceAlreadyExistsFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(ModifyEndpointError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ModifyEndpointError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ModifyEndpointError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), ModifyEndpointError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), ModifyEndpointError::KMSKeyNotAccessibleFault(ref cause) => write!(f, "{}", cause), ModifyEndpointError::ResourceAlreadyExistsFault(ref cause) => write!(f, "{}", cause), ModifyEndpointError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for ModifyEndpointError {} /// Errors returned by ModifyEventSubscription #[derive(Debug, PartialEq)] pub enum ModifyEventSubscriptionError { /// <p>The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.</p> KMSAccessDeniedFault(String), /// <p>The specified master key (CMK) isn't enabled.</p> KMSDisabledFault(String), /// <p>The state of the specified AWS KMS resource isn't valid for this request.</p> KMSInvalidStateFault(String), /// <p>The specified AWS KMS entity or resource can't be found.</p> KMSNotFoundFault(String), /// <p>This request triggered AWS KMS request throttling.</p> KMSThrottlingFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), /// <p>The SNS topic is invalid.</p> SNSInvalidTopicFault(String), /// <p>You are not authorized for the SNS subscription.</p> SNSNoAuthorizationFault(String), } impl ModifyEventSubscriptionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyEventSubscriptionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "KMSAccessDeniedFault" => { return RusotoError::Service( ModifyEventSubscriptionError::KMSAccessDeniedFault(err.msg), ) } "KMSDisabledFault" => { return RusotoError::Service(ModifyEventSubscriptionError::KMSDisabledFault( err.msg, )) } "KMSInvalidStateFault" => { return RusotoError::Service( ModifyEventSubscriptionError::KMSInvalidStateFault(err.msg), ) } "KMSNotFoundFault" => { return RusotoError::Service(ModifyEventSubscriptionError::KMSNotFoundFault( err.msg, )) } "KMSThrottlingFault" => { return RusotoError::Service(ModifyEventSubscriptionError::KMSThrottlingFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service( ModifyEventSubscriptionError::ResourceNotFoundFault(err.msg), ) } "ResourceQuotaExceededFault" => { return RusotoError::Service( ModifyEventSubscriptionError::ResourceQuotaExceededFault(err.msg), ) } "SNSInvalidTopicFault" => { return RusotoError::Service( ModifyEventSubscriptionError::SNSInvalidTopicFault(err.msg), ) } "SNSNoAuthorizationFault" => { return RusotoError::Service( ModifyEventSubscriptionError::SNSNoAuthorizationFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ModifyEventSubscriptionError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ModifyEventSubscriptionError::KMSAccessDeniedFault(ref cause) => write!(f, "{}", cause), ModifyEventSubscriptionError::KMSDisabledFault(ref cause) => write!(f, "{}", cause), ModifyEventSubscriptionError::KMSInvalidStateFault(ref cause) => write!(f, "{}", cause), ModifyEventSubscriptionError::KMSNotFoundFault(ref cause) => write!(f, "{}", cause), ModifyEventSubscriptionError::KMSThrottlingFault(ref cause) => write!(f, "{}", cause), ModifyEventSubscriptionError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } ModifyEventSubscriptionError::ResourceQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } ModifyEventSubscriptionError::SNSInvalidTopicFault(ref cause) => write!(f, "{}", cause), ModifyEventSubscriptionError::SNSNoAuthorizationFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for ModifyEventSubscriptionError {} /// Errors returned by ModifyReplicationInstance #[derive(Debug, PartialEq)] pub enum ModifyReplicationInstanceError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>There are not enough resources allocated to the database migration.</p> InsufficientResourceCapacityFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The storage quota has been exceeded.</p> StorageQuotaExceededFault(String), /// <p>An upgrade dependency is preventing the database migration.</p> UpgradeDependencyFailureFault(String), } impl ModifyReplicationInstanceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyReplicationInstanceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(ModifyReplicationInstanceError::AccessDeniedFault( err.msg, )) } "InsufficientResourceCapacityFault" => { return RusotoError::Service( ModifyReplicationInstanceError::InsufficientResourceCapacityFault(err.msg), ) } "InvalidResourceStateFault" => { return RusotoError::Service( ModifyReplicationInstanceError::InvalidResourceStateFault(err.msg), ) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( ModifyReplicationInstanceError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( ModifyReplicationInstanceError::ResourceNotFoundFault(err.msg), ) } "StorageQuotaExceededFault" => { return RusotoError::Service( ModifyReplicationInstanceError::StorageQuotaExceededFault(err.msg), ) } "UpgradeDependencyFailureFault" => { return RusotoError::Service( ModifyReplicationInstanceError::UpgradeDependencyFailureFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ModifyReplicationInstanceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ModifyReplicationInstanceError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), ModifyReplicationInstanceError::InsufficientResourceCapacityFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationInstanceError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationInstanceError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationInstanceError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationInstanceError::StorageQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationInstanceError::UpgradeDependencyFailureFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for ModifyReplicationInstanceError {} /// Errors returned by ModifyReplicationSubnetGroup #[derive(Debug, PartialEq)] pub enum ModifyReplicationSubnetGroupError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The subnet provided is invalid.</p> InvalidSubnet(String), /// <p>The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.</p> ReplicationSubnetGroupDoesNotCoverEnoughAZs(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), /// <p>The specified subnet is already in use.</p> SubnetAlreadyInUse(String), } impl ModifyReplicationSubnetGroupError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<ModifyReplicationSubnetGroupError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service( ModifyReplicationSubnetGroupError::AccessDeniedFault(err.msg), ) } "InvalidSubnet" => { return RusotoError::Service(ModifyReplicationSubnetGroupError::InvalidSubnet( err.msg, )) } "ReplicationSubnetGroupDoesNotCoverEnoughAZs" => return RusotoError::Service( ModifyReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs( err.msg, ), ), "ResourceNotFoundFault" => { return RusotoError::Service( ModifyReplicationSubnetGroupError::ResourceNotFoundFault(err.msg), ) } "ResourceQuotaExceededFault" => { return RusotoError::Service( ModifyReplicationSubnetGroupError::ResourceQuotaExceededFault(err.msg), ) } "SubnetAlreadyInUse" => { return RusotoError::Service( ModifyReplicationSubnetGroupError::SubnetAlreadyInUse(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ModifyReplicationSubnetGroupError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ModifyReplicationSubnetGroupError::AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationSubnetGroupError::InvalidSubnet(ref cause) => write!(f, "{}", cause), ModifyReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs( ref cause, ) => write!(f, "{}", cause), ModifyReplicationSubnetGroupError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationSubnetGroupError::ResourceQuotaExceededFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationSubnetGroupError::SubnetAlreadyInUse(ref cause) => { write!(f, "{}", cause) } } } } impl Error for ModifyReplicationSubnetGroupError {} /// Errors returned by ModifyReplicationTask #[derive(Debug, PartialEq)] pub enum ModifyReplicationTaskError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl ModifyReplicationTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyReplicationTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( ModifyReplicationTaskError::InvalidResourceStateFault(err.msg), ) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service( ModifyReplicationTaskError::KMSKeyNotAccessibleFault(err.msg), ) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( ModifyReplicationTaskError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service(ModifyReplicationTaskError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ModifyReplicationTaskError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ModifyReplicationTaskError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationTaskError::KMSKeyNotAccessibleFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationTaskError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } ModifyReplicationTaskError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for ModifyReplicationTaskError {} /// Errors returned by MoveReplicationTask #[derive(Debug, PartialEq)] pub enum MoveReplicationTaskError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl MoveReplicationTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<MoveReplicationTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(MoveReplicationTaskError::AccessDeniedFault( err.msg, )) } "InvalidResourceStateFault" => { return RusotoError::Service( MoveReplicationTaskError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service(MoveReplicationTaskError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for MoveReplicationTaskError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { MoveReplicationTaskError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), MoveReplicationTaskError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } MoveReplicationTaskError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for MoveReplicationTaskError {} /// Errors returned by RebootReplicationInstance #[derive(Debug, PartialEq)] pub enum RebootReplicationInstanceError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl RebootReplicationInstanceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RebootReplicationInstanceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( RebootReplicationInstanceError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( RebootReplicationInstanceError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RebootReplicationInstanceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RebootReplicationInstanceError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } RebootReplicationInstanceError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for RebootReplicationInstanceError {} /// Errors returned by RefreshSchemas #[derive(Debug, PartialEq)] pub enum RefreshSchemasError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), } impl RefreshSchemasError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RefreshSchemasError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service(RefreshSchemasError::InvalidResourceStateFault( err.msg, )) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service(RefreshSchemasError::KMSKeyNotAccessibleFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(RefreshSchemasError::ResourceNotFoundFault( err.msg, )) } "ResourceQuotaExceededFault" => { return RusotoError::Service(RefreshSchemasError::ResourceQuotaExceededFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RefreshSchemasError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RefreshSchemasError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), RefreshSchemasError::KMSKeyNotAccessibleFault(ref cause) => write!(f, "{}", cause), RefreshSchemasError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), RefreshSchemasError::ResourceQuotaExceededFault(ref cause) => write!(f, "{}", cause), } } } impl Error for RefreshSchemasError {} /// Errors returned by ReloadTables #[derive(Debug, PartialEq)] pub enum ReloadTablesError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl ReloadTablesError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ReloadTablesError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service(ReloadTablesError::InvalidResourceStateFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(ReloadTablesError::ResourceNotFoundFault(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ReloadTablesError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ReloadTablesError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), ReloadTablesError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for ReloadTablesError {} /// Errors returned by RemoveTagsFromResource #[derive(Debug, PartialEq)] pub enum RemoveTagsFromResourceError { /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl RemoveTagsFromResourceError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RemoveTagsFromResourceError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "ResourceNotFoundFault" => { return RusotoError::Service( RemoveTagsFromResourceError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RemoveTagsFromResourceError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RemoveTagsFromResourceError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for RemoveTagsFromResourceError {} /// Errors returned by StartReplicationTask #[derive(Debug, PartialEq)] pub enum StartReplicationTaskError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl StartReplicationTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartReplicationTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service(StartReplicationTaskError::AccessDeniedFault( err.msg, )) } "InvalidResourceStateFault" => { return RusotoError::Service( StartReplicationTaskError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service(StartReplicationTaskError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for StartReplicationTaskError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { StartReplicationTaskError::AccessDeniedFault(ref cause) => write!(f, "{}", cause), StartReplicationTaskError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for StartReplicationTaskError {} /// Errors returned by StartReplicationTaskAssessment #[derive(Debug, PartialEq)] pub enum StartReplicationTaskAssessmentError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl StartReplicationTaskAssessmentError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<StartReplicationTaskAssessmentError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( StartReplicationTaskAssessmentError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( StartReplicationTaskAssessmentError::ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for StartReplicationTaskAssessmentError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { StartReplicationTaskAssessmentError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for StartReplicationTaskAssessmentError {} /// Errors returned by StartReplicationTaskAssessmentRun #[derive(Debug, PartialEq)] pub enum StartReplicationTaskAssessmentRunError { /// <p>AWS DMS was denied access to the endpoint. Check that the role is correctly configured.</p> AccessDeniedFault(String), /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.</p> KMSAccessDeniedFault(String), /// <p>The specified master key (CMK) isn't enabled.</p> KMSDisabledFault(String), /// <p>An AWS Key Management Service (AWS KMS) error is preventing access to AWS KMS.</p> KMSFault(String), /// <p>The state of the specified AWS KMS resource isn't valid for this request.</p> KMSInvalidStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The specified AWS KMS entity or resource can't be found.</p> KMSNotFoundFault(String), /// <p>The resource you are attempting to create already exists.</p> ResourceAlreadyExistsFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>Insufficient privileges are preventing access to an Amazon S3 object.</p> S3AccessDeniedFault(String), /// <p>A specified Amazon S3 bucket, bucket folder, or other object can't be found.</p> S3ResourceNotFoundFault(String), } impl StartReplicationTaskAssessmentRunError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<StartReplicationTaskAssessmentRunError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "AccessDeniedFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::AccessDeniedFault(err.msg), ) } "InvalidResourceStateFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::InvalidResourceStateFault(err.msg), ) } "KMSAccessDeniedFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::KMSAccessDeniedFault(err.msg), ) } "KMSDisabledFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::KMSDisabledFault(err.msg), ) } "KMSFault" => { return RusotoError::Service(StartReplicationTaskAssessmentRunError::KMSFault( err.msg, )) } "KMSInvalidStateFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::KMSInvalidStateFault(err.msg), ) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::KMSKeyNotAccessibleFault(err.msg), ) } "KMSNotFoundFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::KMSNotFoundFault(err.msg), ) } "ResourceAlreadyExistsFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::ResourceAlreadyExistsFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::ResourceNotFoundFault(err.msg), ) } "S3AccessDeniedFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::S3AccessDeniedFault(err.msg), ) } "S3ResourceNotFoundFault" => { return RusotoError::Service( StartReplicationTaskAssessmentRunError::S3ResourceNotFoundFault(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for StartReplicationTaskAssessmentRunError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { StartReplicationTaskAssessmentRunError::AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::KMSAccessDeniedFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::KMSDisabledFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::KMSFault(ref cause) => write!(f, "{}", cause), StartReplicationTaskAssessmentRunError::KMSInvalidStateFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::KMSKeyNotAccessibleFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::KMSNotFoundFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::ResourceAlreadyExistsFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::S3AccessDeniedFault(ref cause) => { write!(f, "{}", cause) } StartReplicationTaskAssessmentRunError::S3ResourceNotFoundFault(ref cause) => { write!(f, "{}", cause) } } } } impl Error for StartReplicationTaskAssessmentRunError {} /// Errors returned by StopReplicationTask #[derive(Debug, PartialEq)] pub enum StopReplicationTaskError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), } impl StopReplicationTaskError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopReplicationTaskError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service( StopReplicationTaskError::InvalidResourceStateFault(err.msg), ) } "ResourceNotFoundFault" => { return RusotoError::Service(StopReplicationTaskError::ResourceNotFoundFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for StopReplicationTaskError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { StopReplicationTaskError::InvalidResourceStateFault(ref cause) => { write!(f, "{}", cause) } StopReplicationTaskError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), } } } impl Error for StopReplicationTaskError {} /// Errors returned by TestConnection #[derive(Debug, PartialEq)] pub enum TestConnectionError { /// <p>The resource is in a state that prevents it from being used for database migration.</p> InvalidResourceStateFault(String), /// <p>AWS DMS cannot access the AWS KMS key.</p> KMSKeyNotAccessibleFault(String), /// <p>The resource could not be found.</p> ResourceNotFoundFault(String), /// <p>The quota for this resource quota has been exceeded.</p> ResourceQuotaExceededFault(String), } impl TestConnectionError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TestConnectionError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidResourceStateFault" => { return RusotoError::Service(TestConnectionError::InvalidResourceStateFault( err.msg, )) } "KMSKeyNotAccessibleFault" => { return RusotoError::Service(TestConnectionError::KMSKeyNotAccessibleFault( err.msg, )) } "ResourceNotFoundFault" => { return RusotoError::Service(TestConnectionError::ResourceNotFoundFault( err.msg, )) } "ResourceQuotaExceededFault" => { return RusotoError::Service(TestConnectionError::ResourceQuotaExceededFault( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for TestConnectionError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { TestConnectionError::InvalidResourceStateFault(ref cause) => write!(f, "{}", cause), TestConnectionError::KMSKeyNotAccessibleFault(ref cause) => write!(f, "{}", cause), TestConnectionError::ResourceNotFoundFault(ref cause) => write!(f, "{}", cause), TestConnectionError::ResourceQuotaExceededFault(ref cause) => write!(f, "{}", cause), } } } impl Error for TestConnectionError {} /// Trait representing the capabilities of the AWS Database Migration Service API. AWS Database Migration Service clients implement this trait. #[async_trait] pub trait DatabaseMigrationService { /// <p>Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html"> <code>Tag</code> </a> data type description.</p> async fn add_tags_to_resource( &self, input: AddTagsToResourceMessage, ) -> Result<AddTagsToResourceResponse, RusotoError<AddTagsToResourceError>>; /// <p>Applies a pending maintenance action to a resource (for example, to a replication instance).</p> async fn apply_pending_maintenance_action( &self, input: ApplyPendingMaintenanceActionMessage, ) -> Result< ApplyPendingMaintenanceActionResponse, RusotoError<ApplyPendingMaintenanceActionError>, >; /// <p>Cancels a single premigration assessment run.</p> <p>This operation prevents any individual assessments from running if they haven't started running. It also attempts to cancel any individual assessments that are currently running.</p> async fn cancel_replication_task_assessment_run( &self, input: CancelReplicationTaskAssessmentRunMessage, ) -> Result< CancelReplicationTaskAssessmentRunResponse, RusotoError<CancelReplicationTaskAssessmentRunError>, >; /// <p>Creates an endpoint using the provided settings.</p> async fn create_endpoint( &self, input: CreateEndpointMessage, ) -> Result<CreateEndpointResponse, RusotoError<CreateEndpointError>>; /// <p> Creates an AWS DMS event notification subscription. </p> <p>You can specify the type of source (<code>SourceType</code>) you want to be notified of, provide a list of AWS DMS source IDs (<code>SourceIds</code>) that triggers the events, and provide a list of event categories (<code>EventCategories</code>) for events you want to be notified of. If you specify both the <code>SourceType</code> and <code>SourceIds</code>, such as <code>SourceType = replication-instance</code> and <code>SourceIdentifier = my-replinstance</code>, you will be notified of all the replication instance events for the specified source. If you specify a <code>SourceType</code> but don't specify a <code>SourceIdentifier</code>, you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either <code>SourceType</code> nor <code>SourceIdentifier</code>, you will be notified of events generated from all AWS DMS sources belonging to your customer account.</p> <p>For more information about AWS DMS events, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration Service User Guide.</i> </p> async fn create_event_subscription( &self, input: CreateEventSubscriptionMessage, ) -> Result<CreateEventSubscriptionResponse, RusotoError<CreateEventSubscriptionError>>; /// <p>Creates the replication instance using the specified parameters.</p> <p>AWS DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.APIRole">Creating the IAM Roles to Use With the AWS CLI and AWS DMS API</a>. For information on the required permissions, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.IAMPermissions">IAM Permissions Needed to Use AWS DMS</a>.</p> async fn create_replication_instance( &self, input: CreateReplicationInstanceMessage, ) -> Result<CreateReplicationInstanceResponse, RusotoError<CreateReplicationInstanceError>>; /// <p>Creates a replication subnet group given a list of the subnet IDs in a VPC.</p> async fn create_replication_subnet_group( &self, input: CreateReplicationSubnetGroupMessage, ) -> Result<CreateReplicationSubnetGroupResponse, RusotoError<CreateReplicationSubnetGroupError>>; /// <p>Creates a replication task using the specified parameters.</p> async fn create_replication_task( &self, input: CreateReplicationTaskMessage, ) -> Result<CreateReplicationTaskResponse, RusotoError<CreateReplicationTaskError>>; /// <p>Deletes the specified certificate. </p> async fn delete_certificate( &self, input: DeleteCertificateMessage, ) -> Result<DeleteCertificateResponse, RusotoError<DeleteCertificateError>>; /// <p>Deletes the connection between a replication instance and an endpoint.</p> async fn delete_connection( &self, input: DeleteConnectionMessage, ) -> Result<DeleteConnectionResponse, RusotoError<DeleteConnectionError>>; /// <p><p>Deletes the specified endpoint.</p> <note> <p>All tasks associated with the endpoint must be deleted before you can delete the endpoint.</p> </note> <p/></p> async fn delete_endpoint( &self, input: DeleteEndpointMessage, ) -> Result<DeleteEndpointResponse, RusotoError<DeleteEndpointError>>; /// <p> Deletes an AWS DMS event subscription. </p> async fn delete_event_subscription( &self, input: DeleteEventSubscriptionMessage, ) -> Result<DeleteEventSubscriptionResponse, RusotoError<DeleteEventSubscriptionError>>; /// <p><p>Deletes the specified replication instance.</p> <note> <p>You must delete any migration tasks that are associated with the replication instance before you can delete it.</p> </note> <p/></p> async fn delete_replication_instance( &self, input: DeleteReplicationInstanceMessage, ) -> Result<DeleteReplicationInstanceResponse, RusotoError<DeleteReplicationInstanceError>>; /// <p>Deletes a subnet group.</p> async fn delete_replication_subnet_group( &self, input: DeleteReplicationSubnetGroupMessage, ) -> Result<DeleteReplicationSubnetGroupResponse, RusotoError<DeleteReplicationSubnetGroupError>>; /// <p>Deletes the specified replication task.</p> async fn delete_replication_task( &self, input: DeleteReplicationTaskMessage, ) -> Result<DeleteReplicationTaskResponse, RusotoError<DeleteReplicationTaskError>>; /// <p>Deletes the record of a single premigration assessment run.</p> <p>This operation removes all metadata that AWS DMS maintains about this assessment run. However, the operation leaves untouched all information about this assessment run that is stored in your Amazon S3 bucket.</p> async fn delete_replication_task_assessment_run( &self, input: DeleteReplicationTaskAssessmentRunMessage, ) -> Result< DeleteReplicationTaskAssessmentRunResponse, RusotoError<DeleteReplicationTaskAssessmentRunError>, >; /// <p>Lists all of the AWS DMS attributes for a customer account. These attributes include AWS DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The description for each resource quota, includes the quota name, current usage toward that quota, and the quota's maximum value. DMS uses the unique account identifier to name each artifact used by DMS in the given region.</p> <p>This command does not take any parameters.</p> async fn describe_account_attributes( &self, ) -> Result<DescribeAccountAttributesResponse, RusotoError<DescribeAccountAttributesError>>; /// <p>Provides a list of individual assessments that you can specify for a new premigration assessment run, given one or more parameters.</p> <p>If you specify an existing migration task, this operation provides the default individual assessments you can specify for that task. Otherwise, the specified parameters model elements of a possible migration task on which to base a premigration assessment run.</p> <p>To use these migration task modeling parameters, you must specify an existing replication instance, a source database engine, a target database engine, and a migration type. This combination of parameters potentially limits the default individual assessments available for an assessment run created for a corresponding migration task.</p> <p>If you specify no parameters, this operation provides a list of all possible individual assessments that you can specify for an assessment run. If you specify any one of the task modeling parameters, you must specify all of them or the operation cannot provide a list of individual assessments. The only parameter that you can specify alone is for an existing migration task. The specified task definition then determines the default list of individual assessments that you can specify in an assessment run for the task.</p> async fn describe_applicable_individual_assessments( &self, input: DescribeApplicableIndividualAssessmentsMessage, ) -> Result< DescribeApplicableIndividualAssessmentsResponse, RusotoError<DescribeApplicableIndividualAssessmentsError>, >; /// <p>Provides a description of the certificate.</p> async fn describe_certificates( &self, input: DescribeCertificatesMessage, ) -> Result<DescribeCertificatesResponse, RusotoError<DescribeCertificatesError>>; /// <p>Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.</p> async fn describe_connections( &self, input: DescribeConnectionsMessage, ) -> Result<DescribeConnectionsResponse, RusotoError<DescribeConnectionsError>>; /// <p>Returns information about the type of endpoints available.</p> async fn describe_endpoint_types( &self, input: DescribeEndpointTypesMessage, ) -> Result<DescribeEndpointTypesResponse, RusotoError<DescribeEndpointTypesError>>; /// <p>Returns information about the endpoints for your account in the current region.</p> async fn describe_endpoints( &self, input: DescribeEndpointsMessage, ) -> Result<DescribeEndpointsResponse, RusotoError<DescribeEndpointsError>>; /// <p>Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration Service User Guide.</i> </p> async fn describe_event_categories( &self, input: DescribeEventCategoriesMessage, ) -> Result<DescribeEventCategoriesResponse, RusotoError<DescribeEventCategoriesError>>; /// <p>Lists all the event subscriptions for a customer account. The description of a subscription includes <code>SubscriptionName</code>, <code>SNSTopicARN</code>, <code>CustomerID</code>, <code>SourceType</code>, <code>SourceID</code>, <code>CreationTime</code>, and <code>Status</code>. </p> <p>If you specify <code>SubscriptionName</code>, this action lists the description for that subscription.</p> async fn describe_event_subscriptions( &self, input: DescribeEventSubscriptionsMessage, ) -> Result<DescribeEventSubscriptionsResponse, RusotoError<DescribeEventSubscriptionsError>>; /// <p> Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration User Guide.</i> </p> async fn describe_events( &self, input: DescribeEventsMessage, ) -> Result<DescribeEventsResponse, RusotoError<DescribeEventsError>>; /// <p>Returns information about the replication instance types that can be created in the specified region.</p> async fn describe_orderable_replication_instances( &self, input: DescribeOrderableReplicationInstancesMessage, ) -> Result< DescribeOrderableReplicationInstancesResponse, RusotoError<DescribeOrderableReplicationInstancesError>, >; /// <p>For internal use only</p> async fn describe_pending_maintenance_actions( &self, input: DescribePendingMaintenanceActionsMessage, ) -> Result< DescribePendingMaintenanceActionsResponse, RusotoError<DescribePendingMaintenanceActionsError>, >; /// <p>Returns the status of the RefreshSchemas operation.</p> async fn describe_refresh_schemas_status( &self, input: DescribeRefreshSchemasStatusMessage, ) -> Result<DescribeRefreshSchemasStatusResponse, RusotoError<DescribeRefreshSchemasStatusError>>; /// <p>Returns information about the task logs for the specified task.</p> async fn describe_replication_instance_task_logs( &self, input: DescribeReplicationInstanceTaskLogsMessage, ) -> Result< DescribeReplicationInstanceTaskLogsResponse, RusotoError<DescribeReplicationInstanceTaskLogsError>, >; /// <p>Returns information about replication instances for your account in the current region.</p> async fn describe_replication_instances( &self, input: DescribeReplicationInstancesMessage, ) -> Result<DescribeReplicationInstancesResponse, RusotoError<DescribeReplicationInstancesError>>; /// <p>Returns information about the replication subnet groups.</p> async fn describe_replication_subnet_groups( &self, input: DescribeReplicationSubnetGroupsMessage, ) -> Result< DescribeReplicationSubnetGroupsResponse, RusotoError<DescribeReplicationSubnetGroupsError>, >; /// <p>Returns the task assessment results from Amazon S3. This action always returns the latest results.</p> async fn describe_replication_task_assessment_results( &self, input: DescribeReplicationTaskAssessmentResultsMessage, ) -> Result< DescribeReplicationTaskAssessmentResultsResponse, RusotoError<DescribeReplicationTaskAssessmentResultsError>, >; /// <p><p>Returns a paginated list of premigration assessment runs based on filter settings.</p> <p>These filter settings can specify a combination of premigration assessment runs, migration tasks, replication instances, and assessment run status values.</p> <note> <p>This operation doesn't return information about individual assessments. For this information, see the <code>DescribeReplicationTaskIndividualAssessments</code> operation. </p> </note></p> async fn describe_replication_task_assessment_runs( &self, input: DescribeReplicationTaskAssessmentRunsMessage, ) -> Result< DescribeReplicationTaskAssessmentRunsResponse, RusotoError<DescribeReplicationTaskAssessmentRunsError>, >; /// <p>Returns a paginated list of individual assessments based on filter settings.</p> <p>These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values.</p> async fn describe_replication_task_individual_assessments( &self, input: DescribeReplicationTaskIndividualAssessmentsMessage, ) -> Result< DescribeReplicationTaskIndividualAssessmentsResponse, RusotoError<DescribeReplicationTaskIndividualAssessmentsError>, >; /// <p>Returns information about replication tasks for your account in the current region.</p> async fn describe_replication_tasks( &self, input: DescribeReplicationTasksMessage, ) -> Result<DescribeReplicationTasksResponse, RusotoError<DescribeReplicationTasksError>>; /// <p><p>Returns information about the schema for the specified endpoint.</p> <p/></p> async fn describe_schemas( &self, input: DescribeSchemasMessage, ) -> Result<DescribeSchemasResponse, RusotoError<DescribeSchemasError>>; /// <p>Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.</p> <p>Note that the "last updated" column the DMS console only indicates the time that AWS DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.</p> async fn describe_table_statistics( &self, input: DescribeTableStatisticsMessage, ) -> Result<DescribeTableStatisticsResponse, RusotoError<DescribeTableStatisticsError>>; /// <p>Uploads the specified certificate.</p> async fn import_certificate( &self, input: ImportCertificateMessage, ) -> Result<ImportCertificateResponse, RusotoError<ImportCertificateError>>; /// <p>Lists all metadata tags attached to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html"> <code>Tag</code> </a> data type description.</p> async fn list_tags_for_resource( &self, input: ListTagsForResourceMessage, ) -> Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>; /// <p>Modifies the specified endpoint.</p> async fn modify_endpoint( &self, input: ModifyEndpointMessage, ) -> Result<ModifyEndpointResponse, RusotoError<ModifyEndpointError>>; /// <p>Modifies an existing AWS DMS event notification subscription. </p> async fn modify_event_subscription( &self, input: ModifyEventSubscriptionMessage, ) -> Result<ModifyEventSubscriptionResponse, RusotoError<ModifyEventSubscriptionError>>; /// <p><p>Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.</p> <p>Some settings are applied during the maintenance window.</p> <p/></p> async fn modify_replication_instance( &self, input: ModifyReplicationInstanceMessage, ) -> Result<ModifyReplicationInstanceResponse, RusotoError<ModifyReplicationInstanceError>>; /// <p>Modifies the settings for the specified replication subnet group.</p> async fn modify_replication_subnet_group( &self, input: ModifyReplicationSubnetGroupMessage, ) -> Result<ModifyReplicationSubnetGroupResponse, RusotoError<ModifyReplicationSubnetGroupError>>; /// <p>Modifies the specified replication task.</p> <p>You can't modify the task endpoints. The task must be stopped before you can modify it. </p> <p>For more information about AWS DMS tasks, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html">Working with Migration Tasks</a> in the <i>AWS Database Migration Service User Guide</i>.</p> async fn modify_replication_task( &self, input: ModifyReplicationTaskMessage, ) -> Result<ModifyReplicationTaskResponse, RusotoError<ModifyReplicationTaskError>>; /// <p>Moves a replication task from its current replication instance to a different target replication instance using the specified parameters. The target replication instance must be created with the same or later AWS DMS version as the current replication instance.</p> async fn move_replication_task( &self, input: MoveReplicationTaskMessage, ) -> Result<MoveReplicationTaskResponse, RusotoError<MoveReplicationTaskError>>; /// <p>Reboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again.</p> async fn reboot_replication_instance( &self, input: RebootReplicationInstanceMessage, ) -> Result<RebootReplicationInstanceResponse, RusotoError<RebootReplicationInstanceError>>; /// <p>Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.</p> async fn refresh_schemas( &self, input: RefreshSchemasMessage, ) -> Result<RefreshSchemasResponse, RusotoError<RefreshSchemasError>>; /// <p>Reloads the target database table with the source data. </p> async fn reload_tables( &self, input: ReloadTablesMessage, ) -> Result<ReloadTablesResponse, RusotoError<ReloadTablesError>>; /// <p>Removes metadata tags from an AWS DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html"> <code>Tag</code> </a> data type description.</p> async fn remove_tags_from_resource( &self, input: RemoveTagsFromResourceMessage, ) -> Result<RemoveTagsFromResourceResponse, RusotoError<RemoveTagsFromResourceError>>; /// <p>Starts the replication task.</p> <p>For more information about AWS DMS tasks, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html">Working with Migration Tasks </a> in the <i>AWS Database Migration Service User Guide.</i> </p> async fn start_replication_task( &self, input: StartReplicationTaskMessage, ) -> Result<StartReplicationTaskResponse, RusotoError<StartReplicationTaskError>>; /// <p> Starts the replication task assessment for unsupported data types in the source database. </p> async fn start_replication_task_assessment( &self, input: StartReplicationTaskAssessmentMessage, ) -> Result< StartReplicationTaskAssessmentResponse, RusotoError<StartReplicationTaskAssessmentError>, >; /// <p>Starts a new premigration assessment run for one or more individual assessments of a migration task.</p> <p>The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task. To run this operation, your migration task must already be created. After you run this operation, you can review the status of each individual assessment. You can also run the migration task manually after the assessment run and its individual assessments complete.</p> async fn start_replication_task_assessment_run( &self, input: StartReplicationTaskAssessmentRunMessage, ) -> Result< StartReplicationTaskAssessmentRunResponse, RusotoError<StartReplicationTaskAssessmentRunError>, >; /// <p>Stops the replication task.</p> async fn stop_replication_task( &self, input: StopReplicationTaskMessage, ) -> Result<StopReplicationTaskResponse, RusotoError<StopReplicationTaskError>>; /// <p>Tests the connection between the replication instance and the endpoint.</p> async fn test_connection( &self, input: TestConnectionMessage, ) -> Result<TestConnectionResponse, RusotoError<TestConnectionError>>; } /// A client for the AWS Database Migration Service API. #[derive(Clone)] pub struct DatabaseMigrationServiceClient { client: Client, region: region::Region, } impl DatabaseMigrationServiceClient { /// Creates a client backed by the default tokio event loop. /// /// The client will use the default credentials provider and tls client. pub fn new(region: region::Region) -> DatabaseMigrationServiceClient { DatabaseMigrationServiceClient { client: Client::shared(), region, } } pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: region::Region, ) -> DatabaseMigrationServiceClient where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static, { DatabaseMigrationServiceClient { client: Client::new_with(credentials_provider, request_dispatcher), region, } } pub fn new_with_client( client: Client, region: region::Region, ) -> DatabaseMigrationServiceClient { DatabaseMigrationServiceClient { client, region } } } #[async_trait] impl DatabaseMigrationService for DatabaseMigrationServiceClient { /// <p>Adds metadata tags to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html"> <code>Tag</code> </a> data type description.</p> async fn add_tags_to_resource( &self, input: AddTagsToResourceMessage, ) -> Result<AddTagsToResourceResponse, RusotoError<AddTagsToResourceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.AddTagsToResource"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, AddTagsToResourceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<AddTagsToResourceResponse, _>() } /// <p>Applies a pending maintenance action to a resource (for example, to a replication instance).</p> async fn apply_pending_maintenance_action( &self, input: ApplyPendingMaintenanceActionMessage, ) -> Result< ApplyPendingMaintenanceActionResponse, RusotoError<ApplyPendingMaintenanceActionError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.ApplyPendingMaintenanceAction", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ApplyPendingMaintenanceActionError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<ApplyPendingMaintenanceActionResponse, _>() } /// <p>Cancels a single premigration assessment run.</p> <p>This operation prevents any individual assessments from running if they haven't started running. It also attempts to cancel any individual assessments that are currently running.</p> async fn cancel_replication_task_assessment_run( &self, input: CancelReplicationTaskAssessmentRunMessage, ) -> Result< CancelReplicationTaskAssessmentRunResponse, RusotoError<CancelReplicationTaskAssessmentRunError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.CancelReplicationTaskAssessmentRun", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, CancelReplicationTaskAssessmentRunError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CancelReplicationTaskAssessmentRunResponse, _>() } /// <p>Creates an endpoint using the provided settings.</p> async fn create_endpoint( &self, input: CreateEndpointMessage, ) -> Result<CreateEndpointResponse, RusotoError<CreateEndpointError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.CreateEndpoint"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CreateEndpointError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<CreateEndpointResponse, _>() } /// <p> Creates an AWS DMS event notification subscription. </p> <p>You can specify the type of source (<code>SourceType</code>) you want to be notified of, provide a list of AWS DMS source IDs (<code>SourceIds</code>) that triggers the events, and provide a list of event categories (<code>EventCategories</code>) for events you want to be notified of. If you specify both the <code>SourceType</code> and <code>SourceIds</code>, such as <code>SourceType = replication-instance</code> and <code>SourceIdentifier = my-replinstance</code>, you will be notified of all the replication instance events for the specified source. If you specify a <code>SourceType</code> but don't specify a <code>SourceIdentifier</code>, you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either <code>SourceType</code> nor <code>SourceIdentifier</code>, you will be notified of events generated from all AWS DMS sources belonging to your customer account.</p> <p>For more information about AWS DMS events, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration Service User Guide.</i> </p> async fn create_event_subscription( &self, input: CreateEventSubscriptionMessage, ) -> Result<CreateEventSubscriptionResponse, RusotoError<CreateEventSubscriptionError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.CreateEventSubscription"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CreateEventSubscriptionError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CreateEventSubscriptionResponse, _>() } /// <p>Creates the replication instance using the specified parameters.</p> <p>AWS DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.APIRole">Creating the IAM Roles to Use With the AWS CLI and AWS DMS API</a>. For information on the required permissions, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Security.html#CHAP_Security.IAMPermissions">IAM Permissions Needed to Use AWS DMS</a>.</p> async fn create_replication_instance( &self, input: CreateReplicationInstanceMessage, ) -> Result<CreateReplicationInstanceResponse, RusotoError<CreateReplicationInstanceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.CreateReplicationInstance", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CreateReplicationInstanceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CreateReplicationInstanceResponse, _>() } /// <p>Creates a replication subnet group given a list of the subnet IDs in a VPC.</p> async fn create_replication_subnet_group( &self, input: CreateReplicationSubnetGroupMessage, ) -> Result<CreateReplicationSubnetGroupResponse, RusotoError<CreateReplicationSubnetGroupError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.CreateReplicationSubnetGroup", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CreateReplicationSubnetGroupError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CreateReplicationSubnetGroupResponse, _>() } /// <p>Creates a replication task using the specified parameters.</p> async fn create_replication_task( &self, input: CreateReplicationTaskMessage, ) -> Result<CreateReplicationTaskResponse, RusotoError<CreateReplicationTaskError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.CreateReplicationTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CreateReplicationTaskError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CreateReplicationTaskResponse, _>() } /// <p>Deletes the specified certificate. </p> async fn delete_certificate( &self, input: DeleteCertificateMessage, ) -> Result<DeleteCertificateResponse, RusotoError<DeleteCertificateError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteCertificate"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteCertificateError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DeleteCertificateResponse, _>() } /// <p>Deletes the connection between a replication instance and an endpoint.</p> async fn delete_connection( &self, input: DeleteConnectionMessage, ) -> Result<DeleteConnectionResponse, RusotoError<DeleteConnectionError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteConnection"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteConnectionError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DeleteConnectionResponse, _>() } /// <p><p>Deletes the specified endpoint.</p> <note> <p>All tasks associated with the endpoint must be deleted before you can delete the endpoint.</p> </note> <p/></p> async fn delete_endpoint( &self, input: DeleteEndpointMessage, ) -> Result<DeleteEndpointResponse, RusotoError<DeleteEndpointError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteEndpoint"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteEndpointError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DeleteEndpointResponse, _>() } /// <p> Deletes an AWS DMS event subscription. </p> async fn delete_event_subscription( &self, input: DeleteEventSubscriptionMessage, ) -> Result<DeleteEventSubscriptionResponse, RusotoError<DeleteEventSubscriptionError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteEventSubscription"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteEventSubscriptionError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DeleteEventSubscriptionResponse, _>() } /// <p><p>Deletes the specified replication instance.</p> <note> <p>You must delete any migration tasks that are associated with the replication instance before you can delete it.</p> </note> <p/></p> async fn delete_replication_instance( &self, input: DeleteReplicationInstanceMessage, ) -> Result<DeleteReplicationInstanceResponse, RusotoError<DeleteReplicationInstanceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DeleteReplicationInstance", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteReplicationInstanceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DeleteReplicationInstanceResponse, _>() } /// <p>Deletes a subnet group.</p> async fn delete_replication_subnet_group( &self, input: DeleteReplicationSubnetGroupMessage, ) -> Result<DeleteReplicationSubnetGroupResponse, RusotoError<DeleteReplicationSubnetGroupError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DeleteReplicationSubnetGroup", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteReplicationSubnetGroupError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DeleteReplicationSubnetGroupResponse, _>() } /// <p>Deletes the specified replication task.</p> async fn delete_replication_task( &self, input: DeleteReplicationTaskMessage, ) -> Result<DeleteReplicationTaskResponse, RusotoError<DeleteReplicationTaskError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteReplicationTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteReplicationTaskError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DeleteReplicationTaskResponse, _>() } /// <p>Deletes the record of a single premigration assessment run.</p> <p>This operation removes all metadata that AWS DMS maintains about this assessment run. However, the operation leaves untouched all information about this assessment run that is stored in your Amazon S3 bucket.</p> async fn delete_replication_task_assessment_run( &self, input: DeleteReplicationTaskAssessmentRunMessage, ) -> Result< DeleteReplicationTaskAssessmentRunResponse, RusotoError<DeleteReplicationTaskAssessmentRunError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DeleteReplicationTaskAssessmentRun", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DeleteReplicationTaskAssessmentRunError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DeleteReplicationTaskAssessmentRunResponse, _>() } /// <p>Lists all of the AWS DMS attributes for a customer account. These attributes include AWS DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The description for each resource quota, includes the quota name, current usage toward that quota, and the quota's maximum value. DMS uses the unique account identifier to name each artifact used by DMS in the given region.</p> <p>This command does not take any parameters.</p> async fn describe_account_attributes( &self, ) -> Result<DescribeAccountAttributesResponse, RusotoError<DescribeAccountAttributesError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeAccountAttributes", ); request.set_payload(Some(bytes::Bytes::from_static(b"{}"))); let response = self .sign_and_dispatch(request, DescribeAccountAttributesError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeAccountAttributesResponse, _>() } /// <p>Provides a list of individual assessments that you can specify for a new premigration assessment run, given one or more parameters.</p> <p>If you specify an existing migration task, this operation provides the default individual assessments you can specify for that task. Otherwise, the specified parameters model elements of a possible migration task on which to base a premigration assessment run.</p> <p>To use these migration task modeling parameters, you must specify an existing replication instance, a source database engine, a target database engine, and a migration type. This combination of parameters potentially limits the default individual assessments available for an assessment run created for a corresponding migration task.</p> <p>If you specify no parameters, this operation provides a list of all possible individual assessments that you can specify for an assessment run. If you specify any one of the task modeling parameters, you must specify all of them or the operation cannot provide a list of individual assessments. The only parameter that you can specify alone is for an existing migration task. The specified task definition then determines the default list of individual assessments that you can specify in an assessment run for the task.</p> async fn describe_applicable_individual_assessments( &self, input: DescribeApplicableIndividualAssessmentsMessage, ) -> Result< DescribeApplicableIndividualAssessmentsResponse, RusotoError<DescribeApplicableIndividualAssessmentsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeApplicableIndividualAssessments", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribeApplicableIndividualAssessmentsError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeApplicableIndividualAssessmentsResponse, _>() } /// <p>Provides a description of the certificate.</p> async fn describe_certificates( &self, input: DescribeCertificatesMessage, ) -> Result<DescribeCertificatesResponse, RusotoError<DescribeCertificatesError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeCertificates"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeCertificatesError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeCertificatesResponse, _>() } /// <p>Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.</p> async fn describe_connections( &self, input: DescribeConnectionsMessage, ) -> Result<DescribeConnectionsResponse, RusotoError<DescribeConnectionsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeConnections"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeConnectionsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DescribeConnectionsResponse, _>() } /// <p>Returns information about the type of endpoints available.</p> async fn describe_endpoint_types( &self, input: DescribeEndpointTypesMessage, ) -> Result<DescribeEndpointTypesResponse, RusotoError<DescribeEndpointTypesError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEndpointTypes"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeEndpointTypesError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeEndpointTypesResponse, _>() } /// <p>Returns information about the endpoints for your account in the current region.</p> async fn describe_endpoints( &self, input: DescribeEndpointsMessage, ) -> Result<DescribeEndpointsResponse, RusotoError<DescribeEndpointsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEndpoints"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeEndpointsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DescribeEndpointsResponse, _>() } /// <p>Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration Service User Guide.</i> </p> async fn describe_event_categories( &self, input: DescribeEventCategoriesMessage, ) -> Result<DescribeEventCategoriesResponse, RusotoError<DescribeEventCategoriesError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEventCategories"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeEventCategoriesError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeEventCategoriesResponse, _>() } /// <p>Lists all the event subscriptions for a customer account. The description of a subscription includes <code>SubscriptionName</code>, <code>SNSTopicARN</code>, <code>CustomerID</code>, <code>SourceType</code>, <code>SourceID</code>, <code>CreationTime</code>, and <code>Status</code>. </p> <p>If you specify <code>SubscriptionName</code>, this action lists the description for that subscription.</p> async fn describe_event_subscriptions( &self, input: DescribeEventSubscriptionsMessage, ) -> Result<DescribeEventSubscriptionsResponse, RusotoError<DescribeEventSubscriptionsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeEventSubscriptions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeEventSubscriptionsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeEventSubscriptionsResponse, _>() } /// <p> Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html">Working with Events and Notifications</a> in the <i>AWS Database Migration User Guide.</i> </p> async fn describe_events( &self, input: DescribeEventsMessage, ) -> Result<DescribeEventsResponse, RusotoError<DescribeEventsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEvents"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeEventsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DescribeEventsResponse, _>() } /// <p>Returns information about the replication instance types that can be created in the specified region.</p> async fn describe_orderable_replication_instances( &self, input: DescribeOrderableReplicationInstancesMessage, ) -> Result< DescribeOrderableReplicationInstancesResponse, RusotoError<DescribeOrderableReplicationInstancesError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeOrderableReplicationInstances", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribeOrderableReplicationInstancesError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeOrderableReplicationInstancesResponse, _>() } /// <p>For internal use only</p> async fn describe_pending_maintenance_actions( &self, input: DescribePendingMaintenanceActionsMessage, ) -> Result< DescribePendingMaintenanceActionsResponse, RusotoError<DescribePendingMaintenanceActionsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribePendingMaintenanceActions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribePendingMaintenanceActionsError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribePendingMaintenanceActionsResponse, _>() } /// <p>Returns the status of the RefreshSchemas operation.</p> async fn describe_refresh_schemas_status( &self, input: DescribeRefreshSchemasStatusMessage, ) -> Result<DescribeRefreshSchemasStatusResponse, RusotoError<DescribeRefreshSchemasStatusError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeRefreshSchemasStatus", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeRefreshSchemasStatusError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeRefreshSchemasStatusResponse, _>() } /// <p>Returns information about the task logs for the specified task.</p> async fn describe_replication_instance_task_logs( &self, input: DescribeReplicationInstanceTaskLogsMessage, ) -> Result< DescribeReplicationInstanceTaskLogsResponse, RusotoError<DescribeReplicationInstanceTaskLogsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationInstanceTaskLogs", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribeReplicationInstanceTaskLogsError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationInstanceTaskLogsResponse, _>() } /// <p>Returns information about replication instances for your account in the current region.</p> async fn describe_replication_instances( &self, input: DescribeReplicationInstancesMessage, ) -> Result<DescribeReplicationInstancesResponse, RusotoError<DescribeReplicationInstancesError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationInstances", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeReplicationInstancesError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationInstancesResponse, _>() } /// <p>Returns information about the replication subnet groups.</p> async fn describe_replication_subnet_groups( &self, input: DescribeReplicationSubnetGroupsMessage, ) -> Result< DescribeReplicationSubnetGroupsResponse, RusotoError<DescribeReplicationSubnetGroupsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationSubnetGroups", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeReplicationSubnetGroupsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationSubnetGroupsResponse, _>() } /// <p>Returns the task assessment results from Amazon S3. This action always returns the latest results.</p> async fn describe_replication_task_assessment_results( &self, input: DescribeReplicationTaskAssessmentResultsMessage, ) -> Result< DescribeReplicationTaskAssessmentResultsResponse, RusotoError<DescribeReplicationTaskAssessmentResultsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationTaskAssessmentResults", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribeReplicationTaskAssessmentResultsError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationTaskAssessmentResultsResponse, _>() } /// <p><p>Returns a paginated list of premigration assessment runs based on filter settings.</p> <p>These filter settings can specify a combination of premigration assessment runs, migration tasks, replication instances, and assessment run status values.</p> <note> <p>This operation doesn't return information about individual assessments. For this information, see the <code>DescribeReplicationTaskIndividualAssessments</code> operation. </p> </note></p> async fn describe_replication_task_assessment_runs( &self, input: DescribeReplicationTaskAssessmentRunsMessage, ) -> Result< DescribeReplicationTaskAssessmentRunsResponse, RusotoError<DescribeReplicationTaskAssessmentRunsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationTaskAssessmentRuns", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribeReplicationTaskAssessmentRunsError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationTaskAssessmentRunsResponse, _>() } /// <p>Returns a paginated list of individual assessments based on filter settings.</p> <p>These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values.</p> async fn describe_replication_task_individual_assessments( &self, input: DescribeReplicationTaskIndividualAssessmentsMessage, ) -> Result< DescribeReplicationTaskIndividualAssessmentsResponse, RusotoError<DescribeReplicationTaskIndividualAssessmentsError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationTaskIndividualAssessments", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, DescribeReplicationTaskIndividualAssessmentsError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationTaskIndividualAssessmentsResponse, _>() } /// <p>Returns information about replication tasks for your account in the current region.</p> async fn describe_replication_tasks( &self, input: DescribeReplicationTasksMessage, ) -> Result<DescribeReplicationTasksResponse, RusotoError<DescribeReplicationTasksError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.DescribeReplicationTasks", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeReplicationTasksError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeReplicationTasksResponse, _>() } /// <p><p>Returns information about the schema for the specified endpoint.</p> <p/></p> async fn describe_schemas( &self, input: DescribeSchemasMessage, ) -> Result<DescribeSchemasResponse, RusotoError<DescribeSchemasError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeSchemas"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeSchemasError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DescribeSchemasResponse, _>() } /// <p>Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.</p> <p>Note that the "last updated" column the DMS console only indicates the time that AWS DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.</p> async fn describe_table_statistics( &self, input: DescribeTableStatisticsMessage, ) -> Result<DescribeTableStatisticsResponse, RusotoError<DescribeTableStatisticsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeTableStatistics"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DescribeTableStatisticsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DescribeTableStatisticsResponse, _>() } /// <p>Uploads the specified certificate.</p> async fn import_certificate( &self, input: ImportCertificateMessage, ) -> Result<ImportCertificateResponse, RusotoError<ImportCertificateError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.ImportCertificate"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ImportCertificateError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ImportCertificateResponse, _>() } /// <p>Lists all metadata tags attached to an AWS DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html"> <code>Tag</code> </a> data type description.</p> async fn list_tags_for_resource( &self, input: ListTagsForResourceMessage, ) -> Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.ListTagsForResource"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ListTagsForResourceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ListTagsForResourceResponse, _>() } /// <p>Modifies the specified endpoint.</p> async fn modify_endpoint( &self, input: ModifyEndpointMessage, ) -> Result<ModifyEndpointResponse, RusotoError<ModifyEndpointError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.ModifyEndpoint"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ModifyEndpointError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ModifyEndpointResponse, _>() } /// <p>Modifies an existing AWS DMS event notification subscription. </p> async fn modify_event_subscription( &self, input: ModifyEventSubscriptionMessage, ) -> Result<ModifyEventSubscriptionResponse, RusotoError<ModifyEventSubscriptionError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.ModifyEventSubscription"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ModifyEventSubscriptionError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<ModifyEventSubscriptionResponse, _>() } /// <p><p>Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.</p> <p>Some settings are applied during the maintenance window.</p> <p/></p> async fn modify_replication_instance( &self, input: ModifyReplicationInstanceMessage, ) -> Result<ModifyReplicationInstanceResponse, RusotoError<ModifyReplicationInstanceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.ModifyReplicationInstance", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ModifyReplicationInstanceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<ModifyReplicationInstanceResponse, _>() } /// <p>Modifies the settings for the specified replication subnet group.</p> async fn modify_replication_subnet_group( &self, input: ModifyReplicationSubnetGroupMessage, ) -> Result<ModifyReplicationSubnetGroupResponse, RusotoError<ModifyReplicationSubnetGroupError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.ModifyReplicationSubnetGroup", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ModifyReplicationSubnetGroupError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<ModifyReplicationSubnetGroupResponse, _>() } /// <p>Modifies the specified replication task.</p> <p>You can't modify the task endpoints. The task must be stopped before you can modify it. </p> <p>For more information about AWS DMS tasks, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html">Working with Migration Tasks</a> in the <i>AWS Database Migration Service User Guide</i>.</p> async fn modify_replication_task( &self, input: ModifyReplicationTaskMessage, ) -> Result<ModifyReplicationTaskResponse, RusotoError<ModifyReplicationTaskError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.ModifyReplicationTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ModifyReplicationTaskError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<ModifyReplicationTaskResponse, _>() } /// <p>Moves a replication task from its current replication instance to a different target replication instance using the specified parameters. The target replication instance must be created with the same or later AWS DMS version as the current replication instance.</p> async fn move_replication_task( &self, input: MoveReplicationTaskMessage, ) -> Result<MoveReplicationTaskResponse, RusotoError<MoveReplicationTaskError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.MoveReplicationTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, MoveReplicationTaskError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<MoveReplicationTaskResponse, _>() } /// <p>Reboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again.</p> async fn reboot_replication_instance( &self, input: RebootReplicationInstanceMessage, ) -> Result<RebootReplicationInstanceResponse, RusotoError<RebootReplicationInstanceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.RebootReplicationInstance", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, RebootReplicationInstanceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<RebootReplicationInstanceResponse, _>() } /// <p>Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.</p> async fn refresh_schemas( &self, input: RefreshSchemasMessage, ) -> Result<RefreshSchemasResponse, RusotoError<RefreshSchemasError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.RefreshSchemas"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, RefreshSchemasError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<RefreshSchemasResponse, _>() } /// <p>Reloads the target database table with the source data. </p> async fn reload_tables( &self, input: ReloadTablesMessage, ) -> Result<ReloadTablesResponse, RusotoError<ReloadTablesError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.ReloadTables"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ReloadTablesError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ReloadTablesResponse, _>() } /// <p>Removes metadata tags from an AWS DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see <a href="https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html"> <code>Tag</code> </a> data type description.</p> async fn remove_tags_from_resource( &self, input: RemoveTagsFromResourceMessage, ) -> Result<RemoveTagsFromResourceResponse, RusotoError<RemoveTagsFromResourceError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.RemoveTagsFromResource"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, RemoveTagsFromResourceError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<RemoveTagsFromResourceResponse, _>() } /// <p>Starts the replication task.</p> <p>For more information about AWS DMS tasks, see <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html">Working with Migration Tasks </a> in the <i>AWS Database Migration Service User Guide.</i> </p> async fn start_replication_task( &self, input: StartReplicationTaskMessage, ) -> Result<StartReplicationTaskResponse, RusotoError<StartReplicationTaskError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.StartReplicationTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, StartReplicationTaskError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<StartReplicationTaskResponse, _>() } /// <p> Starts the replication task assessment for unsupported data types in the source database. </p> async fn start_replication_task_assessment( &self, input: StartReplicationTaskAssessmentMessage, ) -> Result< StartReplicationTaskAssessmentResponse, RusotoError<StartReplicationTaskAssessmentError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.StartReplicationTaskAssessment", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, StartReplicationTaskAssessmentError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<StartReplicationTaskAssessmentResponse, _>() } /// <p>Starts a new premigration assessment run for one or more individual assessments of a migration task.</p> <p>The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task. To run this operation, your migration task must already be created. After you run this operation, you can review the status of each individual assessment. You can also run the migration task manually after the assessment run and its individual assessments complete.</p> async fn start_replication_task_assessment_run( &self, input: StartReplicationTaskAssessmentRunMessage, ) -> Result< StartReplicationTaskAssessmentRunResponse, RusotoError<StartReplicationTaskAssessmentRunError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "AmazonDMSv20160101.StartReplicationTaskAssessmentRun", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, StartReplicationTaskAssessmentRunError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<StartReplicationTaskAssessmentRunResponse, _>() } /// <p>Stops the replication task.</p> async fn stop_replication_task( &self, input: StopReplicationTaskMessage, ) -> Result<StopReplicationTaskResponse, RusotoError<StopReplicationTaskError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.StopReplicationTask"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, StopReplicationTaskError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<StopReplicationTaskResponse, _>() } /// <p>Tests the connection between the replication instance and the endpoint.</p> async fn test_connection( &self, input: TestConnectionMessage, ) -> Result<TestConnectionResponse, RusotoError<TestConnectionError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "AmazonDMSv20160101.TestConnection"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, TestConnectionError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<TestConnectionResponse, _>() } }