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
// ================================================================= // // * 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 Route53DomainsClient { fn new_signed_request(&self, http_method: &str, request_uri: &str) -> SignedRequest { let mut request = SignedRequest::new(http_method, "route53domains", &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>The AcceptDomainTransferFromAnotherAwsAccount request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct AcceptDomainTransferFromAnotherAwsAccountRequest { /// <p>The name of the domain that was specified when another AWS account submitted a <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>The password that was returned by the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p> #[serde(rename = "Password")] pub password: String, } /// <p>The AcceptDomainTransferFromAnotherAwsAccount response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct AcceptDomainTransferFromAnotherAwsAccountResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] #[serde(skip_serializing_if = "Option::is_none")] pub operation_id: Option<String>, } /// <p>Information for one billing record.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct BillingRecord { /// <p>The date that the operation was billed, in Unix format.</p> #[serde(rename = "BillDate")] #[serde(skip_serializing_if = "Option::is_none")] pub bill_date: Option<f64>, /// <p>The name of the domain that the billing record applies to. If the domain name contains characters other than a-z, 0-9, and - (hyphen), such as an internationalized domain name, then this value is in Punycode. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html">DNS Domain Name Format</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> #[serde(rename = "DomainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, /// <p>The ID of the invoice that is associated with the billing record.</p> #[serde(rename = "InvoiceId")] #[serde(skip_serializing_if = "Option::is_none")] pub invoice_id: Option<String>, /// <p>The operation that you were charged for.</p> #[serde(rename = "Operation")] #[serde(skip_serializing_if = "Option::is_none")] pub operation: Option<String>, /// <p>The price that you were charged for the operation, in US dollars.</p> <p>Example value: 12.0</p> #[serde(rename = "Price")] #[serde(skip_serializing_if = "Option::is_none")] pub price: Option<f64>, } /// <p>The CancelDomainTransferToAnotherAwsAccount request includes the following element.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CancelDomainTransferToAnotherAwsAccountRequest { /// <p>The name of the domain for which you want to cancel the transfer to another AWS account.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The <code>CancelDomainTransferToAnotherAwsAccount</code> response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CancelDomainTransferToAnotherAwsAccountResponse { /// <p>The identifier that <code>TransferDomainToAnotherAwsAccount</code> returned to track the progress of the request. Because the transfer request was canceled, the value is no longer valid, and you can't use <code>GetOperationDetail</code> to query the operation status.</p> #[serde(rename = "OperationId")] #[serde(skip_serializing_if = "Option::is_none")] pub operation_id: Option<String>, } /// <p>The CheckDomainAvailability request contains the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CheckDomainAvailabilityRequest { /// <p>The name of the domain that you want to get availability for. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul> <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting Internationalized Domain Names</a>. </p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>Reserved for future use.</p> #[serde(rename = "IdnLangCode")] #[serde(skip_serializing_if = "Option::is_none")] pub idn_lang_code: Option<String>, } /// <p>The CheckDomainAvailability response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CheckDomainAvailabilityResponse { /// <p><p>Whether the domain name is available for registering.</p> <note> <p>You can register only domains designated as <code>AVAILABLE</code>.</p> </note> <p>Valid values:</p> <dl> <dt>AVAILABLE</dt> <dd> <p>The domain name is available.</p> </dd> <dt>AVAILABLE<em>RESERVED</dt> <dd> <p>The domain name is reserved under specific conditions.</p> </dd> <dt>AVAILABLE</em>PREORDER</dt> <dd> <p>The domain name is available and can be preordered.</p> </dd> <dt>DONT<em>KNOW</dt> <dd> <p>The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.</p> </dd> <dt>PENDING</dt> <dd> <p>The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.</p> </dd> <dt>RESERVED</dt> <dd> <p>The domain name has been reserved for another person or organization.</p> </dd> <dt>UNAVAILABLE</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE</em>PREMIUM</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE_RESTRICTED</dt> <dd> <p>The domain name is forbidden.</p> </dd> </dl></p> #[serde(rename = "Availability")] pub availability: String, } /// <p>The CheckDomainTransferability request contains the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct CheckDomainTransferabilityRequest { /// <p>If the registrar for the top-level domain (TLD) requires an authorization code to transfer the domain, the code that you got from the current registrar for the domain.</p> #[serde(rename = "AuthCode")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_code: Option<String>, /// <p><p>The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul></p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The CheckDomainTransferability response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct CheckDomainTransferabilityResponse { /// <p>A complex type that contains information about whether the specified domain can be transferred to Route 53.</p> #[serde(rename = "Transferability")] pub transferability: DomainTransferability, } /// <p>ContactDetail includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct ContactDetail { /// <p>First line of the contact's address.</p> #[serde(rename = "AddressLine1")] #[serde(skip_serializing_if = "Option::is_none")] pub address_line_1: Option<String>, /// <p>Second line of contact's address, if any.</p> #[serde(rename = "AddressLine2")] #[serde(skip_serializing_if = "Option::is_none")] pub address_line_2: Option<String>, /// <p>The city of the contact's address.</p> #[serde(rename = "City")] #[serde(skip_serializing_if = "Option::is_none")] pub city: Option<String>, /// <p><p>Indicates whether the contact is a person, company, association, or public organization. Note the following:</p> <ul> <li> <p>If you specify a value other than <code>PERSON</code>, you must also specify a value for <code>OrganizationName</code>.</p> </li> <li> <p>For some TLDs, the privacy protection available depends on the value that you specify for <code>Contact Type</code>. For the privacy protection settings for your TLD, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i> </p> </li> <li> <p>For .es domains, if you specify <code>PERSON</code>, you must specify <code>INDIVIDUAL</code> for the value of <code>ES<em>LEGAL</em>FORM</code>.</p> </li> </ul></p> #[serde(rename = "ContactType")] #[serde(skip_serializing_if = "Option::is_none")] pub contact_type: Option<String>, /// <p>Code for the country of the contact's address.</p> #[serde(rename = "CountryCode")] #[serde(skip_serializing_if = "Option::is_none")] pub country_code: Option<String>, /// <p>Email address of the contact.</p> #[serde(rename = "Email")] #[serde(skip_serializing_if = "Option::is_none")] pub email: Option<String>, /// <p>A list of name-value pairs for parameters required by certain top-level domains.</p> #[serde(rename = "ExtraParams")] #[serde(skip_serializing_if = "Option::is_none")] pub extra_params: Option<Vec<ExtraParam>>, /// <p>Fax number of the contact.</p> <p>Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</p> #[serde(rename = "Fax")] #[serde(skip_serializing_if = "Option::is_none")] pub fax: Option<String>, /// <p>First name of contact.</p> #[serde(rename = "FirstName")] #[serde(skip_serializing_if = "Option::is_none")] pub first_name: Option<String>, /// <p>Last name of contact.</p> #[serde(rename = "LastName")] #[serde(skip_serializing_if = "Option::is_none")] pub last_name: Option<String>, /// <p>Name of the organization for contact types other than <code>PERSON</code>.</p> #[serde(rename = "OrganizationName")] #[serde(skip_serializing_if = "Option::is_none")] pub organization_name: Option<String>, /// <p>The phone number of the contact.</p> <p>Constraints: Phone number must be specified in the format "+[country dialing code].[number including any area code>]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</p> #[serde(rename = "PhoneNumber")] #[serde(skip_serializing_if = "Option::is_none")] pub phone_number: Option<String>, /// <p>The state or province of the contact's city.</p> #[serde(rename = "State")] #[serde(skip_serializing_if = "Option::is_none")] pub state: Option<String>, /// <p>The zip or postal code of the contact's address.</p> #[serde(rename = "ZipCode")] #[serde(skip_serializing_if = "Option::is_none")] pub zip_code: Option<String>, } /// <p>The DeleteTagsForDomainRequest includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DeleteTagsForDomainRequest { /// <p>The domain for which you want to delete one or more tags.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>A list of tag keys to delete.</p> #[serde(rename = "TagsToDelete")] pub tags_to_delete: Vec<String>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DeleteTagsForDomainResponse {} #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DisableDomainAutoRenewRequest { /// <p>The name of the domain that you want to disable automatic renewal for.</p> #[serde(rename = "DomainName")] pub domain_name: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DisableDomainAutoRenewResponse {} /// <p>The DisableDomainTransferLock request includes the following element.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct DisableDomainTransferLockRequest { /// <p>The name of the domain that you want to remove the transfer lock for.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The DisableDomainTransferLock response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DisableDomainTransferLockResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>Information about one suggested domain name.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DomainSuggestion { /// <p><p>Whether the domain name is available for registering.</p> <note> <p>You can register only the domains that are designated as <code>AVAILABLE</code>.</p> </note> <p>Valid values:</p> <dl> <dt>AVAILABLE</dt> <dd> <p>The domain name is available.</p> </dd> <dt>AVAILABLE<em>RESERVED</dt> <dd> <p>The domain name is reserved under specific conditions.</p> </dd> <dt>AVAILABLE</em>PREORDER</dt> <dd> <p>The domain name is available and can be preordered.</p> </dd> <dt>DONT<em>KNOW</dt> <dd> <p>The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.</p> </dd> <dt>PENDING</dt> <dd> <p>The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.</p> </dd> <dt>RESERVED</dt> <dd> <p>The domain name has been reserved for another person or organization.</p> </dd> <dt>UNAVAILABLE</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE</em>PREMIUM</dt> <dd> <p>The domain name is not available.</p> </dd> <dt>UNAVAILABLE_RESTRICTED</dt> <dd> <p>The domain name is forbidden.</p> </dd> </dl></p> #[serde(rename = "Availability")] #[serde(skip_serializing_if = "Option::is_none")] pub availability: Option<String>, /// <p>A suggested domain name.</p> #[serde(rename = "DomainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, } /// <p>Summary information about one domain.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DomainSummary { /// <p>Indicates whether the domain is automatically renewed upon expiration.</p> #[serde(rename = "AutoRenew")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_renew: Option<bool>, /// <p>The name of the domain that the summary information applies to.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>Expiration date of the domain in Unix time format and Coordinated Universal Time (UTC).</p> #[serde(rename = "Expiry")] #[serde(skip_serializing_if = "Option::is_none")] pub expiry: Option<f64>, /// <p>Indicates whether a domain is locked from unauthorized transfer to another party.</p> #[serde(rename = "TransferLock")] #[serde(skip_serializing_if = "Option::is_none")] pub transfer_lock: Option<bool>, } /// <p>A complex type that contains information about whether the specified domain can be transferred to Route 53.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct DomainTransferability { #[serde(rename = "Transferable")] #[serde(skip_serializing_if = "Option::is_none")] pub transferable: Option<String>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct EnableDomainAutoRenewRequest { /// <p>The name of the domain that you want to enable automatic renewal for.</p> #[serde(rename = "DomainName")] pub domain_name: String, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct EnableDomainAutoRenewResponse {} /// <p>A request to set the transfer lock for the specified domain.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct EnableDomainTransferLockRequest { /// <p>The name of the domain that you want to set the transfer lock for.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The EnableDomainTransferLock response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct EnableDomainTransferLockResponse { /// <p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>ExtraParam includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct ExtraParam { /// <p>The name of an additional parameter that is required by a top-level domain. Here are the top-level domains that require additional parameters and the names of the parameters that they require:</p> <dl> <dt>.com.au and .net.au</dt> <dd> <ul> <li> <p> <code>AU_ID_NUMBER</code> </p> </li> <li> <p> <code>AU_ID_TYPE</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>ABN</code> (Australian business number)</p> </li> <li> <p> <code>ACN</code> (Australian company number)</p> </li> <li> <p> <code>TM</code> (Trademark number)</p> </li> </ul> </li> </ul> </dd> <dt>.ca</dt> <dd> <ul> <li> <p> <code>BRAND_NUMBER</code> </p> </li> <li> <p> <code>CA_BUSINESS_ENTITY_TYPE</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>BANK</code> (Bank)</p> </li> <li> <p> <code>COMMERCIAL_COMPANY</code> (Commercial company)</p> </li> <li> <p> <code>COMPANY</code> (Company)</p> </li> <li> <p> <code>COOPERATION</code> (Cooperation)</p> </li> <li> <p> <code>COOPERATIVE</code> (Cooperative)</p> </li> <li> <p> <code>COOPRIX</code> (Cooprix)</p> </li> <li> <p> <code>CORP</code> (Corporation)</p> </li> <li> <p> <code>CREDIT_UNION</code> (Credit union)</p> </li> <li> <p> <code>FOMIA</code> (Federation of mutual insurance associations)</p> </li> <li> <p> <code>INC</code> (Incorporated)</p> </li> <li> <p> <code>LTD</code> (Limited)</p> </li> <li> <p> <code>LTEE</code> (Limitée)</p> </li> <li> <p> <code>LLC</code> (Limited liability corporation)</p> </li> <li> <p> <code>LLP</code> (Limited liability partnership)</p> </li> <li> <p> <code>LTE</code> (Lte.)</p> </li> <li> <p> <code>MBA</code> (Mutual benefit association)</p> </li> <li> <p> <code>MIC</code> (Mutual insurance company)</p> </li> <li> <p> <code>NFP</code> (Not-for-profit corporation)</p> </li> <li> <p> <code>SA</code> (S.A.)</p> </li> <li> <p> <code>SAVINGS_COMPANY</code> (Savings company)</p> </li> <li> <p> <code>SAVINGS_UNION</code> (Savings union)</p> </li> <li> <p> <code>SARL</code> (Société à responsabilité limitée)</p> </li> <li> <p> <code>TRUST</code> (Trust)</p> </li> <li> <p> <code>ULC</code> (Unlimited liability corporation)</p> </li> </ul> </li> <li> <p> <code>CA_LEGAL_TYPE</code> </p> <p>When <code>ContactType</code> is <code>PERSON</code>, valid values include the following:</p> <ul> <li> <p> <code>ABO</code> (Aboriginal Peoples indigenous to Canada)</p> </li> <li> <p> <code>CCT</code> (Canadian citizen)</p> </li> <li> <p> <code>LGR</code> (Legal Representative of a Canadian Citizen or Permanent Resident)</p> </li> <li> <p> <code>RES</code> (Permanent resident of Canada)</p> </li> </ul> <p>When <code>ContactType</code> is a value other than <code>PERSON</code>, valid values include the following:</p> <ul> <li> <p> <code>ASS</code> (Canadian unincorporated association)</p> </li> <li> <p> <code>CCO</code> (Canadian corporation)</p> </li> <li> <p> <code>EDU</code> (Canadian educational institution)</p> </li> <li> <p> <code>GOV</code> (Government or government entity in Canada)</p> </li> <li> <p> <code>HOP</code> (Canadian Hospital)</p> </li> <li> <p> <code>INB</code> (Indian Band recognized by the Indian Act of Canada)</p> </li> <li> <p> <code>LAM</code> (Canadian Library, Archive, or Museum)</p> </li> <li> <p> <code>MAJ</code> (Her/His Majesty the Queen/King)</p> </li> <li> <p> <code>OMK</code> (Official mark registered in Canada)</p> </li> <li> <p> <code>PLT</code> (Canadian Political Party)</p> </li> <li> <p> <code>PRT</code> (Partnership Registered in Canada)</p> </li> <li> <p> <code>TDM</code> (Trademark registered in Canada)</p> </li> <li> <p> <code>TRD</code> (Canadian Trade Union)</p> </li> <li> <p> <code>TRS</code> (Trust established in Canada)</p> </li> </ul> </li> </ul> </dd> <dt>.es</dt> <dd> <ul> <li> <p> <code>ES_IDENTIFICATION</code> </p> <p>Specify the applicable value:</p> <ul> <li> <p> <b>For contacts inside Spain:</b> Enter your passport ID.</p> </li> <li> <p> <b>For contacts outside of Spain:</b> Enter the VAT identification number for the company.</p> <note> <p>For .es domains, the value of <code>ContactType</code> must be <code>PERSON</code>.</p> </note> </li> </ul> </li> <li> <p> <code>ES_IDENTIFICATION_TYPE</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>DNI_AND_NIF</code> (For Spanish contacts)</p> </li> <li> <p> <code>NIE</code> (For foreigners with legal residence)</p> </li> <li> <p> <code>OTHER</code> (For contacts outside of Spain)</p> </li> </ul> </li> <li> <p> <code>ES_LEGAL_FORM</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>ASSOCIATION</code> </p> </li> <li> <p> <code>CENTRAL_GOVERNMENT_BODY</code> </p> </li> <li> <p> <code>CIVIL_SOCIETY</code> </p> </li> <li> <p> <code>COMMUNITY_OF_OWNERS</code> </p> </li> <li> <p> <code>COMMUNITY_PROPERTY</code> </p> </li> <li> <p> <code>CONSULATE</code> </p> </li> <li> <p> <code>COOPERATIVE</code> </p> </li> <li> <p> <code>DESIGNATION_OF_ORIGIN_SUPERVISORY_COUNCIL</code> </p> </li> <li> <p> <code>ECONOMIC_INTEREST_GROUP</code> </p> </li> <li> <p> <code>EMBASSY</code> </p> </li> <li> <p> <code>ENTITY_MANAGING_NATURAL_AREAS</code> </p> </li> <li> <p> <code>FARM_PARTNERSHIP</code> </p> </li> <li> <p> <code>FOUNDATION</code> </p> </li> <li> <p> <code>GENERAL_AND_LIMITED_PARTNERSHIP</code> </p> </li> <li> <p> <code>GENERAL_PARTNERSHIP</code> </p> </li> <li> <p> <code>INDIVIDUAL</code> </p> </li> <li> <p> <code>LIMITED_COMPANY</code> </p> </li> <li> <p> <code>LOCAL_AUTHORITY</code> </p> </li> <li> <p> <code>LOCAL_PUBLIC_ENTITY</code> </p> </li> <li> <p> <code>MUTUAL_INSURANCE_COMPANY</code> </p> </li> <li> <p> <code>NATIONAL_PUBLIC_ENTITY</code> </p> </li> <li> <p> <code>ORDER_OR_RELIGIOUS_INSTITUTION</code> </p> </li> <li> <p> <code>OTHERS (Only for contacts outside of Spain)</code> </p> </li> <li> <p> <code>POLITICAL_PARTY</code> </p> </li> <li> <p> <code>PROFESSIONAL_ASSOCIATION</code> </p> </li> <li> <p> <code>PUBLIC_LAW_ASSOCIATION</code> </p> </li> <li> <p> <code>PUBLIC_LIMITED_COMPANY</code> </p> </li> <li> <p> <code>REGIONAL_GOVERNMENT_BODY</code> </p> </li> <li> <p> <code>REGIONAL_PUBLIC_ENTITY</code> </p> </li> <li> <p> <code>SAVINGS_BANK</code> </p> </li> <li> <p> <code>SPANISH_OFFICE</code> </p> </li> <li> <p> <code>SPORTS_ASSOCIATION</code> </p> </li> <li> <p> <code>SPORTS_FEDERATION</code> </p> </li> <li> <p> <code>SPORTS_LIMITED_COMPANY</code> </p> </li> <li> <p> <code>TEMPORARY_ALLIANCE_OF_ENTERPRISES</code> </p> </li> <li> <p> <code>TRADE_UNION</code> </p> </li> <li> <p> <code>WORKER_OWNED_COMPANY</code> </p> </li> <li> <p> <code>WORKER_OWNED_LIMITED_COMPANY</code> </p> </li> </ul> </li> </ul> </dd> <dt>.fi</dt> <dd> <ul> <li> <p> <code>BIRTH_DATE_IN_YYYY_MM_DD</code> </p> </li> <li> <p> <code>FI_BUSINESS_NUMBER</code> </p> </li> <li> <p> <code>FI_ID_NUMBER</code> </p> </li> <li> <p> <code>FI_NATIONALITY</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>FINNISH</code> </p> </li> <li> <p> <code>NOT_FINNISH</code> </p> </li> </ul> </li> <li> <p> <code>FI_ORGANIZATION_TYPE</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>COMPANY</code> </p> </li> <li> <p> <code>CORPORATION</code> </p> </li> <li> <p> <code>GOVERNMENT</code> </p> </li> <li> <p> <code>INSTITUTION</code> </p> </li> <li> <p> <code>POLITICAL_PARTY</code> </p> </li> <li> <p> <code>PUBLIC_COMMUNITY</code> </p> </li> <li> <p> <code>TOWNSHIP</code> </p> </li> </ul> </li> </ul> </dd> <dt>.fr</dt> <dd> <ul> <li> <p> <code>BIRTH_CITY</code> </p> </li> <li> <p> <code>BIRTH_COUNTRY</code> </p> </li> <li> <p> <code>BIRTH_DATE_IN_YYYY_MM_DD</code> </p> </li> <li> <p> <code>BIRTH_DEPARTMENT</code>: Specify the INSEE code that corresponds with the department where the contact was born. If the contact was born somewhere other than France or its overseas departments, specify <code>99</code>. For more information, including a list of departments and the corresponding INSEE numbers, see the Wikipedia entry <a href="https://en.wikipedia.org/wiki/Departments_of_France">Departments of France</a>.</p> </li> <li> <p> <code>BRAND_NUMBER</code> </p> </li> </ul> </dd> <dt>.it</dt> <dd> <ul> <li> <p> <code>IT_NATIONALITY</code> </p> </li> <li> <p> <code>IT_PIN</code> </p> </li> <li> <p> <code>IT_REGISTRANT_ENTITY_TYPE</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>FOREIGNERS</code> </p> </li> <li> <p> <code>FREELANCE_WORKERS</code> (Freelance workers and professionals)</p> </li> <li> <p> <code>ITALIAN_COMPANIES</code> (Italian companies and one-person companies)</p> </li> <li> <p> <code>NON_PROFIT_ORGANIZATIONS</code> </p> </li> <li> <p> <code>OTHER_SUBJECTS</code> </p> </li> <li> <p> <code>PUBLIC_ORGANIZATIONS</code> </p> </li> </ul> </li> </ul> </dd> <dt>.ru</dt> <dd> <ul> <li> <p> <code>BIRTH_DATE_IN_YYYY_MM_DD</code> </p> </li> <li> <p> <code>RU_PASSPORT_DATA</code> </p> </li> </ul> </dd> <dt>.se</dt> <dd> <ul> <li> <p> <code>BIRTH_COUNTRY</code> </p> </li> <li> <p> <code>SE_ID_NUMBER</code> </p> </li> </ul> </dd> <dt>.sg</dt> <dd> <ul> <li> <p> <code>SG_ID_NUMBER</code> </p> </li> </ul> </dd> <dt>.co.uk, .me.uk, and .org.uk</dt> <dd> <ul> <li> <p> <code>UK_CONTACT_TYPE</code> </p> <p>Valid values include the following:</p> <ul> <li> <p> <code>CRC</code> (UK Corporation by Royal Charter)</p> </li> <li> <p> <code>FCORP</code> (Non-UK Corporation)</p> </li> <li> <p> <code>FIND</code> (Non-UK Individual, representing self)</p> </li> <li> <p> <code>FOTHER</code> (Non-UK Entity that does not fit into any other category)</p> </li> <li> <p> <code>GOV</code> (UK Government Body)</p> </li> <li> <p> <code>IND</code> (UK Individual (representing self))</p> </li> <li> <p> <code>IP</code> (UK Industrial/Provident Registered Company)</p> </li> <li> <p> <code>LLP</code> (UK Limited Liability Partnership)</p> </li> <li> <p> <code>LTD</code> (UK Limited Company)</p> </li> <li> <p> <code>OTHER</code> (UK Entity that does not fit into any other category)</p> </li> <li> <p> <code>PLC</code> (UK Public Limited Company)</p> </li> <li> <p> <code>PTNR</code> (UK Partnership)</p> </li> <li> <p> <code>RCHAR</code> (UK Registered Charity)</p> </li> <li> <p> <code>SCH</code> (UK School)</p> </li> <li> <p> <code>STAT</code> (UK Statutory Body)</p> </li> <li> <p> <code>STRA</code> (UK Sole Trader)</p> </li> </ul> </li> <li> <p> <code>UK_COMPANY_NUMBER</code> </p> </li> </ul> </dd> </dl> <p>In addition, many TLDs require a <code>VAT_NUMBER</code>.</p> #[serde(rename = "Name")] pub name: String, /// <p>The value that corresponds with the name of an extra parameter.</p> #[serde(rename = "Value")] pub value: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct GetContactReachabilityStatusRequest { /// <p>The name of the domain for which you want to know whether the registrant contact has confirmed that the email address is valid.</p> #[serde(rename = "domainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct GetContactReachabilityStatusResponse { /// <p>The domain name for which you requested the reachability status.</p> #[serde(rename = "domainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, /// <p><p>Whether the registrant contact has responded. Values include the following:</p> <dl> <dt>PENDING</dt> <dd> <p>We sent the confirmation email and haven't received a response yet.</p> </dd> <dt>DONE</dt> <dd> <p>We sent the email and got confirmation from the registrant contact.</p> </dd> <dt>EXPIRED</dt> <dd> <p>The time limit expired before the registrant contact responded.</p> </dd> </dl></p> #[serde(rename = "status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, } /// <p>The GetDomainDetail request includes the following element.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct GetDomainDetailRequest { /// <p>The name of the domain that you want to get detailed information about.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The GetDomainDetail response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct GetDomainDetailResponse { /// <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p> #[serde(rename = "AbuseContactEmail")] #[serde(skip_serializing_if = "Option::is_none")] pub abuse_contact_email: Option<String>, /// <p>Phone number for reporting abuse.</p> #[serde(rename = "AbuseContactPhone")] #[serde(skip_serializing_if = "Option::is_none")] pub abuse_contact_phone: Option<String>, /// <p>Provides details about the domain administrative contact.</p> #[serde(rename = "AdminContact")] pub admin_contact: ContactDetail, /// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> #[serde(rename = "AdminPrivacy")] #[serde(skip_serializing_if = "Option::is_none")] pub admin_privacy: Option<bool>, /// <p>Specifies whether the domain registration is set to renew automatically.</p> #[serde(rename = "AutoRenew")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_renew: Option<bool>, /// <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p> #[serde(rename = "CreationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub creation_date: Option<f64>, /// <p>Reserved for future use.</p> #[serde(rename = "DnsSec")] #[serde(skip_serializing_if = "Option::is_none")] pub dns_sec: Option<String>, /// <p>The name of a domain.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p> #[serde(rename = "ExpirationDate")] #[serde(skip_serializing_if = "Option::is_none")] pub expiration_date: Option<f64>, /// <p>The name of the domain.</p> #[serde(rename = "Nameservers")] pub nameservers: Vec<Nameserver>, /// <p>Provides details about the domain registrant.</p> #[serde(rename = "RegistrantContact")] pub registrant_contact: ContactDetail, /// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p> #[serde(rename = "RegistrantPrivacy")] #[serde(skip_serializing_if = "Option::is_none")] pub registrant_privacy: Option<bool>, /// <p>Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is <code>"GANDI SAS"</code>. </p> #[serde(rename = "RegistrarName")] #[serde(skip_serializing_if = "Option::is_none")] pub registrar_name: Option<String>, /// <p>Web address of the registrar.</p> #[serde(rename = "RegistrarUrl")] #[serde(skip_serializing_if = "Option::is_none")] pub registrar_url: Option<String>, /// <p>Reserved for future use.</p> #[serde(rename = "RegistryDomainId")] #[serde(skip_serializing_if = "Option::is_none")] pub registry_domain_id: Option<String>, /// <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller. </p> #[serde(rename = "Reseller")] #[serde(skip_serializing_if = "Option::is_none")] pub reseller: Option<String>, /// <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p> <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p> <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p> #[serde(rename = "StatusList")] #[serde(skip_serializing_if = "Option::is_none")] pub status_list: Option<Vec<String>>, /// <p>Provides details about the domain technical contact.</p> #[serde(rename = "TechContact")] pub tech_contact: ContactDetail, /// <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> #[serde(rename = "TechPrivacy")] #[serde(skip_serializing_if = "Option::is_none")] pub tech_privacy: Option<bool>, /// <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p> #[serde(rename = "UpdatedDate")] #[serde(skip_serializing_if = "Option::is_none")] pub updated_date: Option<f64>, /// <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p> #[serde(rename = "WhoIsServer")] #[serde(skip_serializing_if = "Option::is_none")] pub who_is_server: Option<String>, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct GetDomainSuggestionsRequest { /// <p>A domain name that you want to use as the basis for a list of possible domain names. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul> <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. </p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>If <code>OnlyAvailable</code> is <code>true</code>, Route 53 returns only domain names that are available. If <code>OnlyAvailable</code> is <code>false</code>, Route 53 returns domain names without checking whether they're available to be registered. To determine whether the domain is available, you can call <code>checkDomainAvailability</code> for each suggestion.</p> #[serde(rename = "OnlyAvailable")] pub only_available: bool, /// <p>The number of suggested domain names that you want Route 53 to return. Specify a value between 1 and 50.</p> #[serde(rename = "SuggestionCount")] pub suggestion_count: i64, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct GetDomainSuggestionsResponse { /// <p>A list of possible domain names. If you specified <code>true</code> for <code>OnlyAvailable</code> in the request, the list contains only domains that are available for registration.</p> #[serde(rename = "SuggestionsList")] #[serde(skip_serializing_if = "Option::is_none")] pub suggestions_list: Option<Vec<DomainSuggestion>>, } /// <p>The <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> request includes the following element.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct GetOperationDetailRequest { /// <p>The identifier for the operation for which you want to get the status. Route 53 returned the identifier in the response to the original request.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>The GetOperationDetail response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct GetOperationDetailResponse { /// <p>The name of a domain.</p> #[serde(rename = "DomainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, /// <p>Detailed information on the status including possible errors.</p> #[serde(rename = "Message")] #[serde(skip_serializing_if = "Option::is_none")] pub message: Option<String>, /// <p>The identifier for the operation.</p> #[serde(rename = "OperationId")] #[serde(skip_serializing_if = "Option::is_none")] pub operation_id: Option<String>, /// <p>The current status of the requested operation in the system.</p> #[serde(rename = "Status")] #[serde(skip_serializing_if = "Option::is_none")] pub status: Option<String>, /// <p>The date when the request was submitted.</p> #[serde(rename = "SubmittedDate")] #[serde(skip_serializing_if = "Option::is_none")] pub submitted_date: Option<f64>, /// <p>The type of operation that was requested.</p> #[serde(rename = "Type")] #[serde(skip_serializing_if = "Option::is_none")] pub type_: Option<String>, } /// <p>The ListDomains request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ListDomainsRequest { /// <p>For an initial request for a list of domains, omit this element. If the number of domains that are associated with the current AWS account is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional domains. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element.</p> <p>Constraints: The marker must match the value specified in the previous request.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>Number of domains to be returned.</p> <p>Default: 20</p> #[serde(rename = "MaxItems")] #[serde(skip_serializing_if = "Option::is_none")] pub max_items: Option<i64>, } /// <p>The ListDomains response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ListDomainsResponse { /// <p>A summary of domains.</p> #[serde(rename = "Domains")] pub domains: Vec<DomainSummary>, /// <p>If there are more domains than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p> #[serde(rename = "NextPageMarker")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_marker: Option<String>, } /// <p>The ListOperations request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ListOperationsRequest { /// <p>For an initial request for a list of operations, omit this element. If the number of operations that are not yet complete is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional operations. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>Number of domains to be returned.</p> <p>Default: 20</p> #[serde(rename = "MaxItems")] #[serde(skip_serializing_if = "Option::is_none")] pub max_items: Option<i64>, /// <p>An optional parameter that lets you get information about all the operations that you submitted after a specified date and time. Specify the date and time in Unix time format and Coordinated Universal time (UTC).</p> #[serde(rename = "SubmittedSince")] #[serde(skip_serializing_if = "Option::is_none")] pub submitted_since: Option<f64>, } /// <p>The ListOperations response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ListOperationsResponse { /// <p>If there are more operations than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p> #[serde(rename = "NextPageMarker")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_marker: Option<String>, /// <p>Lists summaries of the operations.</p> #[serde(rename = "Operations")] pub operations: Vec<OperationSummary>, } /// <p>The ListTagsForDomainRequest includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ListTagsForDomainRequest { /// <p>The domain for which you want to get a list of tags.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The ListTagsForDomain response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ListTagsForDomainResponse { /// <p>A list of the tags that are associated with the specified domain.</p> #[serde(rename = "TagList")] pub tag_list: Vec<Tag>, } /// <p>Nameserver includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct Nameserver { /// <p>Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a subdomain of the domain. For example, if your domain is example.com and the name server for the domain is ns.example.com, you need to specify the IP address for ns.example.com.</p> <p>Constraints: The list can contain only one IPv4 and one IPv6 address.</p> #[serde(rename = "GlueIps")] #[serde(skip_serializing_if = "Option::is_none")] pub glue_ips: Option<Vec<String>>, /// <p>The fully qualified host name of the name server.</p> <p>Constraint: Maximum 255 characters</p> #[serde(rename = "Name")] pub name: String, } /// <p>OperationSummary includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct OperationSummary { /// <p>Identifier returned to track the requested action.</p> #[serde(rename = "OperationId")] pub operation_id: String, /// <p>The current status of the requested operation in the system.</p> #[serde(rename = "Status")] pub status: String, /// <p>The date when the request was submitted.</p> #[serde(rename = "SubmittedDate")] pub submitted_date: f64, /// <p>Type of the action requested.</p> #[serde(rename = "Type")] pub type_: String, } /// <p>The RegisterDomain request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RegisterDomainRequest { /// <p>Provides detailed contact information. For information about the values that you specify for each element, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html">ContactDetail</a>.</p> #[serde(rename = "AdminContact")] pub admin_contact: ContactDetail, /// <p>Indicates whether the domain will be automatically renewed (<code>true</code>) or not (<code>false</code>). Autorenewal only takes effect after the account is charged.</p> <p>Default: <code>true</code> </p> #[serde(rename = "AutoRenew")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_renew: Option<bool>, /// <p>The domain name that you want to register. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul> <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting Internationalized Domain Names</a>. </p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain. For the range of valid values for your domain, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>Default: 1</p> #[serde(rename = "DurationInYears")] pub duration_in_years: i64, /// <p>Reserved for future use.</p> #[serde(rename = "IdnLangCode")] #[serde(skip_serializing_if = "Option::is_none")] pub idn_lang_code: Option<String>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> <p>Default: <code>true</code> </p> #[serde(rename = "PrivacyProtectAdminContact")] #[serde(skip_serializing_if = "Option::is_none")] pub privacy_protect_admin_contact: Option<bool>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (the domain owner).</p> <p>Default: <code>true</code> </p> #[serde(rename = "PrivacyProtectRegistrantContact")] #[serde(skip_serializing_if = "Option::is_none")] pub privacy_protect_registrant_contact: Option<bool>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> <p>Default: <code>true</code> </p> #[serde(rename = "PrivacyProtectTechContact")] #[serde(skip_serializing_if = "Option::is_none")] pub privacy_protect_tech_contact: Option<bool>, /// <p>Provides detailed contact information. For information about the values that you specify for each element, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html">ContactDetail</a>.</p> #[serde(rename = "RegistrantContact")] pub registrant_contact: ContactDetail, /// <p>Provides detailed contact information. For information about the values that you specify for each element, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html">ContactDetail</a>.</p> #[serde(rename = "TechContact")] pub tech_contact: ContactDetail, } /// <p>The RegisterDomain response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RegisterDomainResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>The RejectDomainTransferFromAnotherAwsAccount request includes the following element.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RejectDomainTransferFromAnotherAwsAccountRequest { /// <p>The name of the domain that was specified when another AWS account submitted a <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The RejectDomainTransferFromAnotherAwsAccount response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RejectDomainTransferFromAnotherAwsAccountResponse { /// <p>The identifier that <code>TransferDomainToAnotherAwsAccount</code> returned to track the progress of the request. Because the transfer request was rejected, the value is no longer valid, and you can't use <code>GetOperationDetail</code> to query the operation status.</p> #[serde(rename = "OperationId")] #[serde(skip_serializing_if = "Option::is_none")] pub operation_id: Option<String>, } /// <p>A <code>RenewDomain</code> request includes the number of years that you want to renew for and the current expiration year.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RenewDomainRequest { /// <p>The year when the registration for the domain is set to expire. This value must match the current expiration date for the domain.</p> #[serde(rename = "CurrentExpiryYear")] pub current_expiry_year: i64, /// <p>The name of the domain that you want to renew.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>The number of years that you want to renew the domain for. The maximum number of years depends on the top-level domain. For the range of valid values for your domain, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>Default: 1</p> #[serde(rename = "DurationInYears")] #[serde(skip_serializing_if = "Option::is_none")] pub duration_in_years: Option<i64>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RenewDomainResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] pub operation_id: String, } #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ResendContactReachabilityEmailRequest { /// <p>The name of the domain for which you want Route 53 to resend a confirmation email to the registrant contact.</p> #[serde(rename = "domainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ResendContactReachabilityEmailResponse { /// <p>The domain name for which you requested a confirmation email.</p> #[serde(rename = "domainName")] #[serde(skip_serializing_if = "Option::is_none")] pub domain_name: Option<String>, /// <p>The email address for the registrant contact at the time that we sent the verification email.</p> #[serde(rename = "emailAddress")] #[serde(skip_serializing_if = "Option::is_none")] pub email_address: Option<String>, /// <p> <code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p> #[serde(rename = "isAlreadyVerified")] #[serde(skip_serializing_if = "Option::is_none")] pub is_already_verified: Option<bool>, } /// <p>A request for the authorization code for the specified domain. To transfer a domain to another registrar, you provide this value to the new registrar.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct RetrieveDomainAuthCodeRequest { /// <p>The name of the domain that you want to get an authorization code for.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The RetrieveDomainAuthCode response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct RetrieveDomainAuthCodeResponse { /// <p>The authorization code for the domain.</p> #[serde(rename = "AuthCode")] pub auth_code: String, } /// <p>Each tag includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] pub struct Tag { /// <p>The key (name) of a tag.</p> <p>Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"</p> <p>Constraints: Each key can be 1-128 characters long.</p> #[serde(rename = "Key")] #[serde(skip_serializing_if = "Option::is_none")] pub key: Option<String>, /// <p>The value of a tag.</p> <p>Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"</p> <p>Constraints: Each value can be 0-256 characters long.</p> #[serde(rename = "Value")] #[serde(skip_serializing_if = "Option::is_none")] pub value: Option<String>, } /// <p>The TransferDomain request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct TransferDomainRequest { /// <p>Provides detailed contact information.</p> #[serde(rename = "AdminContact")] pub admin_contact: ContactDetail, /// <p>The authorization code for the domain. You get this value from the current registrar.</p> #[serde(rename = "AuthCode")] #[serde(skip_serializing_if = "Option::is_none")] pub auth_code: Option<String>, /// <p>Indicates whether the domain will be automatically renewed (true) or not (false). Autorenewal only takes effect after the account is charged.</p> <p>Default: true</p> #[serde(rename = "AutoRenew")] #[serde(skip_serializing_if = "Option::is_none")] pub auto_renew: Option<bool>, /// <p><p>The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul></p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain.</p> <p>Default: 1</p> #[serde(rename = "DurationInYears")] pub duration_in_years: i64, /// <p>Reserved for future use.</p> #[serde(rename = "IdnLangCode")] #[serde(skip_serializing_if = "Option::is_none")] pub idn_lang_code: Option<String>, /// <p>Contains details for the host and glue IP addresses.</p> #[serde(rename = "Nameservers")] #[serde(skip_serializing_if = "Option::is_none")] pub nameservers: Option<Vec<Nameserver>>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> <p>Default: <code>true</code> </p> #[serde(rename = "PrivacyProtectAdminContact")] #[serde(skip_serializing_if = "Option::is_none")] pub privacy_protect_admin_contact: Option<bool>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p> <p>Default: <code>true</code> </p> #[serde(rename = "PrivacyProtectRegistrantContact")] #[serde(skip_serializing_if = "Option::is_none")] pub privacy_protect_registrant_contact: Option<bool>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> <p>Default: <code>true</code> </p> #[serde(rename = "PrivacyProtectTechContact")] #[serde(skip_serializing_if = "Option::is_none")] pub privacy_protect_tech_contact: Option<bool>, /// <p>Provides detailed contact information.</p> #[serde(rename = "RegistrantContact")] pub registrant_contact: ContactDetail, /// <p>Provides detailed contact information.</p> #[serde(rename = "TechContact")] pub tech_contact: ContactDetail, } /// <p>The TransferDomain response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct TransferDomainResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>The TransferDomainToAnotherAwsAccount request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct TransferDomainToAnotherAwsAccountRequest { /// <p>The account ID of the AWS account that you want to transfer the domain to, for example, <code>111122223333</code>.</p> #[serde(rename = "AccountId")] pub account_id: String, /// <p>The name of the domain that you want to transfer from the current AWS account to another account.</p> #[serde(rename = "DomainName")] pub domain_name: String, } /// <p>The <code>TransferDomainToAnotherAwsAccount</code> response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct TransferDomainToAnotherAwsAccountResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] #[serde(skip_serializing_if = "Option::is_none")] pub operation_id: Option<String>, /// <p>To finish transferring a domain to another AWS account, the account that the domain is being transferred to must submit an <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a> request. The request must include the value of the <code>Password</code> element that was returned in the <code>TransferDomainToAnotherAwsAccount</code> response.</p> #[serde(rename = "Password")] #[serde(skip_serializing_if = "Option::is_none")] pub password: Option<String>, } /// <p>The UpdateDomainContactPrivacy request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct UpdateDomainContactPrivacyRequest { /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> #[serde(rename = "AdminPrivacy")] #[serde(skip_serializing_if = "Option::is_none")] pub admin_privacy: Option<bool>, /// <p>The name of the domain that you want to update the privacy setting for.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p> #[serde(rename = "RegistrantPrivacy")] #[serde(skip_serializing_if = "Option::is_none")] pub registrant_privacy: Option<bool>, /// <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> #[serde(rename = "TechPrivacy")] #[serde(skip_serializing_if = "Option::is_none")] pub tech_privacy: Option<bool>, } /// <p>The UpdateDomainContactPrivacy response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct UpdateDomainContactPrivacyResponse { /// <p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>The UpdateDomainContact request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct UpdateDomainContactRequest { /// <p>Provides detailed contact information.</p> #[serde(rename = "AdminContact")] #[serde(skip_serializing_if = "Option::is_none")] pub admin_contact: Option<ContactDetail>, /// <p>The name of the domain that you want to update contact information for.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>Provides detailed contact information.</p> #[serde(rename = "RegistrantContact")] #[serde(skip_serializing_if = "Option::is_none")] pub registrant_contact: Option<ContactDetail>, /// <p>Provides detailed contact information.</p> #[serde(rename = "TechContact")] #[serde(skip_serializing_if = "Option::is_none")] pub tech_contact: Option<ContactDetail>, } /// <p>The UpdateDomainContact response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct UpdateDomainContactResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>Replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.</p> <p>If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email. </p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct UpdateDomainNameserversRequest { /// <p>The name of the domain that you want to change name servers for.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>A list of new name servers for the domain.</p> #[serde(rename = "Nameservers")] pub nameservers: Vec<Nameserver>, } /// <p>The UpdateDomainNameservers response includes the following element.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct UpdateDomainNameserversResponse { /// <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p> #[serde(rename = "OperationId")] pub operation_id: String, } /// <p>The UpdateTagsForDomainRequest includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct UpdateTagsForDomainRequest { /// <p>The domain for which you want to add or update tags.</p> #[serde(rename = "DomainName")] pub domain_name: String, /// <p>A list of the tag keys and values that you want to add or update. If you specify a key that already exists, the corresponding value will be replaced.</p> #[serde(rename = "TagsToUpdate")] #[serde(skip_serializing_if = "Option::is_none")] pub tags_to_update: Option<Vec<Tag>>, } #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct UpdateTagsForDomainResponse {} /// <p>The ViewBilling request includes the following elements.</p> #[derive(Clone, Debug, Default, PartialEq, Serialize)] #[cfg_attr(feature = "deserialize_structs", derive(Deserialize))] pub struct ViewBillingRequest { /// <p>The end date and time for the time period for which you want a list of billing records. Specify the date and time in Unix time format and Coordinated Universal time (UTC).</p> #[serde(rename = "End")] #[serde(skip_serializing_if = "Option::is_none")] pub end: Option<f64>, /// <p>For an initial request for a list of billing records, omit this element. If the number of billing records that are associated with the current AWS account during the specified period is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional billing records. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element. </p> <p>Constraints: The marker must match the value of <code>NextPageMarker</code> that was returned in the previous response.</p> #[serde(rename = "Marker")] #[serde(skip_serializing_if = "Option::is_none")] pub marker: Option<String>, /// <p>The number of billing records to be returned.</p> <p>Default: 20</p> #[serde(rename = "MaxItems")] #[serde(skip_serializing_if = "Option::is_none")] pub max_items: Option<i64>, /// <p>The beginning date and time for the time period for which you want a list of billing records. Specify the date and time in Unix time format and Coordinated Universal time (UTC).</p> #[serde(rename = "Start")] #[serde(skip_serializing_if = "Option::is_none")] pub start: Option<f64>, } /// <p>The ViewBilling response includes the following elements.</p> #[derive(Clone, Debug, Default, Deserialize, PartialEq)] #[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))] pub struct ViewBillingResponse { /// <p>A summary of billing records.</p> #[serde(rename = "BillingRecords")] #[serde(skip_serializing_if = "Option::is_none")] pub billing_records: Option<Vec<BillingRecord>>, /// <p>If there are more billing records than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p> #[serde(rename = "NextPageMarker")] #[serde(skip_serializing_if = "Option::is_none")] pub next_page_marker: Option<String>, } /// Errors returned by AcceptDomainTransferFromAnotherAwsAccount #[derive(Debug, PartialEq)] pub enum AcceptDomainTransferFromAnotherAwsAccountError { /// <p>The number of domains has exceeded the allowed threshold for the account.</p> DomainLimitExceeded(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), } impl AcceptDomainTransferFromAnotherAwsAccountError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<AcceptDomainTransferFromAnotherAwsAccountError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DomainLimitExceeded" => { return RusotoError::Service( AcceptDomainTransferFromAnotherAwsAccountError::DomainLimitExceeded( err.msg, ), ) } "InvalidInput" => { return RusotoError::Service( AcceptDomainTransferFromAnotherAwsAccountError::InvalidInput(err.msg), ) } "OperationLimitExceeded" => { return RusotoError::Service( AcceptDomainTransferFromAnotherAwsAccountError::OperationLimitExceeded( err.msg, ), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for AcceptDomainTransferFromAnotherAwsAccountError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { AcceptDomainTransferFromAnotherAwsAccountError::DomainLimitExceeded(ref cause) => { write!(f, "{}", cause) } AcceptDomainTransferFromAnotherAwsAccountError::InvalidInput(ref cause) => { write!(f, "{}", cause) } AcceptDomainTransferFromAnotherAwsAccountError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } } } } impl Error for AcceptDomainTransferFromAnotherAwsAccountError {} /// Errors returned by CancelDomainTransferToAnotherAwsAccount #[derive(Debug, PartialEq)] pub enum CancelDomainTransferToAnotherAwsAccountError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), } impl CancelDomainTransferToAnotherAwsAccountError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CancelDomainTransferToAnotherAwsAccountError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service( CancelDomainTransferToAnotherAwsAccountError::InvalidInput(err.msg), ) } "OperationLimitExceeded" => { return RusotoError::Service( CancelDomainTransferToAnotherAwsAccountError::OperationLimitExceeded( err.msg, ), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CancelDomainTransferToAnotherAwsAccountError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CancelDomainTransferToAnotherAwsAccountError::InvalidInput(ref cause) => { write!(f, "{}", cause) } CancelDomainTransferToAnotherAwsAccountError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } } } } impl Error for CancelDomainTransferToAnotherAwsAccountError {} /// Errors returned by CheckDomainAvailability #[derive(Debug, PartialEq)] pub enum CheckDomainAvailabilityError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl CheckDomainAvailabilityError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CheckDomainAvailabilityError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(CheckDomainAvailabilityError::InvalidInput( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(CheckDomainAvailabilityError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CheckDomainAvailabilityError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CheckDomainAvailabilityError::InvalidInput(ref cause) => write!(f, "{}", cause), CheckDomainAvailabilityError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for CheckDomainAvailabilityError {} /// Errors returned by CheckDomainTransferability #[derive(Debug, PartialEq)] pub enum CheckDomainTransferabilityError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl CheckDomainTransferabilityError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CheckDomainTransferabilityError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(CheckDomainTransferabilityError::InvalidInput( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(CheckDomainTransferabilityError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for CheckDomainTransferabilityError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CheckDomainTransferabilityError::InvalidInput(ref cause) => write!(f, "{}", cause), CheckDomainTransferabilityError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for CheckDomainTransferabilityError {} /// Errors returned by DeleteTagsForDomain #[derive(Debug, PartialEq)] pub enum DeleteTagsForDomainError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl DeleteTagsForDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteTagsForDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(DeleteTagsForDomainError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(DeleteTagsForDomainError::OperationLimitExceeded( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(DeleteTagsForDomainError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DeleteTagsForDomainError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DeleteTagsForDomainError::InvalidInput(ref cause) => write!(f, "{}", cause), DeleteTagsForDomainError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), DeleteTagsForDomainError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for DeleteTagsForDomainError {} /// Errors returned by DisableDomainAutoRenew #[derive(Debug, PartialEq)] pub enum DisableDomainAutoRenewError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl DisableDomainAutoRenewError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DisableDomainAutoRenewError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(DisableDomainAutoRenewError::InvalidInput(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(DisableDomainAutoRenewError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DisableDomainAutoRenewError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DisableDomainAutoRenewError::InvalidInput(ref cause) => write!(f, "{}", cause), DisableDomainAutoRenewError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for DisableDomainAutoRenewError {} /// Errors returned by DisableDomainTransferLock #[derive(Debug, PartialEq)] pub enum DisableDomainTransferLockError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl DisableDomainTransferLockError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DisableDomainTransferLockError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service(DisableDomainTransferLockError::DuplicateRequest( err.msg, )) } "InvalidInput" => { return RusotoError::Service(DisableDomainTransferLockError::InvalidInput( err.msg, )) } "OperationLimitExceeded" => { return RusotoError::Service( DisableDomainTransferLockError::OperationLimitExceeded(err.msg), ) } "TLDRulesViolation" => { return RusotoError::Service(DisableDomainTransferLockError::TLDRulesViolation( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(DisableDomainTransferLockError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for DisableDomainTransferLockError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { DisableDomainTransferLockError::DuplicateRequest(ref cause) => write!(f, "{}", cause), DisableDomainTransferLockError::InvalidInput(ref cause) => write!(f, "{}", cause), DisableDomainTransferLockError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } DisableDomainTransferLockError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), DisableDomainTransferLockError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for DisableDomainTransferLockError {} /// Errors returned by EnableDomainAutoRenew #[derive(Debug, PartialEq)] pub enum EnableDomainAutoRenewError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl EnableDomainAutoRenewError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<EnableDomainAutoRenewError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(EnableDomainAutoRenewError::InvalidInput(err.msg)) } "TLDRulesViolation" => { return RusotoError::Service(EnableDomainAutoRenewError::TLDRulesViolation( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(EnableDomainAutoRenewError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for EnableDomainAutoRenewError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { EnableDomainAutoRenewError::InvalidInput(ref cause) => write!(f, "{}", cause), EnableDomainAutoRenewError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), EnableDomainAutoRenewError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for EnableDomainAutoRenewError {} /// Errors returned by EnableDomainTransferLock #[derive(Debug, PartialEq)] pub enum EnableDomainTransferLockError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl EnableDomainTransferLockError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<EnableDomainTransferLockError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service(EnableDomainTransferLockError::DuplicateRequest( err.msg, )) } "InvalidInput" => { return RusotoError::Service(EnableDomainTransferLockError::InvalidInput( err.msg, )) } "OperationLimitExceeded" => { return RusotoError::Service( EnableDomainTransferLockError::OperationLimitExceeded(err.msg), ) } "TLDRulesViolation" => { return RusotoError::Service(EnableDomainTransferLockError::TLDRulesViolation( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(EnableDomainTransferLockError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for EnableDomainTransferLockError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { EnableDomainTransferLockError::DuplicateRequest(ref cause) => write!(f, "{}", cause), EnableDomainTransferLockError::InvalidInput(ref cause) => write!(f, "{}", cause), EnableDomainTransferLockError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } EnableDomainTransferLockError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), EnableDomainTransferLockError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for EnableDomainTransferLockError {} /// Errors returned by GetContactReachabilityStatus #[derive(Debug, PartialEq)] pub enum GetContactReachabilityStatusError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl GetContactReachabilityStatusError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<GetContactReachabilityStatusError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(GetContactReachabilityStatusError::InvalidInput( err.msg, )) } "OperationLimitExceeded" => { return RusotoError::Service( GetContactReachabilityStatusError::OperationLimitExceeded(err.msg), ) } "UnsupportedTLD" => { return RusotoError::Service(GetContactReachabilityStatusError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for GetContactReachabilityStatusError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { GetContactReachabilityStatusError::InvalidInput(ref cause) => write!(f, "{}", cause), GetContactReachabilityStatusError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } GetContactReachabilityStatusError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for GetContactReachabilityStatusError {} /// Errors returned by GetDomainDetail #[derive(Debug, PartialEq)] pub enum GetDomainDetailError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl GetDomainDetailError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDomainDetailError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(GetDomainDetailError::InvalidInput(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(GetDomainDetailError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for GetDomainDetailError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { GetDomainDetailError::InvalidInput(ref cause) => write!(f, "{}", cause), GetDomainDetailError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for GetDomainDetailError {} /// Errors returned by GetDomainSuggestions #[derive(Debug, PartialEq)] pub enum GetDomainSuggestionsError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl GetDomainSuggestionsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDomainSuggestionsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(GetDomainSuggestionsError::InvalidInput(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(GetDomainSuggestionsError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for GetDomainSuggestionsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { GetDomainSuggestionsError::InvalidInput(ref cause) => write!(f, "{}", cause), GetDomainSuggestionsError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for GetDomainSuggestionsError {} /// Errors returned by GetOperationDetail #[derive(Debug, PartialEq)] pub enum GetOperationDetailError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), } impl GetOperationDetailError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOperationDetailError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(GetOperationDetailError::InvalidInput(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for GetOperationDetailError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { GetOperationDetailError::InvalidInput(ref cause) => write!(f, "{}", cause), } } } impl Error for GetOperationDetailError {} /// Errors returned by ListDomains #[derive(Debug, PartialEq)] pub enum ListDomainsError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), } impl ListDomainsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDomainsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(ListDomainsError::InvalidInput(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ListDomainsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ListDomainsError::InvalidInput(ref cause) => write!(f, "{}", cause), } } } impl Error for ListDomainsError {} /// Errors returned by ListOperations #[derive(Debug, PartialEq)] pub enum ListOperationsError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), } impl ListOperationsError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListOperationsError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(ListOperationsError::InvalidInput(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ListOperationsError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ListOperationsError::InvalidInput(ref cause) => write!(f, "{}", cause), } } } impl Error for ListOperationsError {} /// Errors returned by ListTagsForDomain #[derive(Debug, PartialEq)] pub enum ListTagsForDomainError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl ListTagsForDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(ListTagsForDomainError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(ListTagsForDomainError::OperationLimitExceeded( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(ListTagsForDomainError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ListTagsForDomainError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ListTagsForDomainError::InvalidInput(ref cause) => write!(f, "{}", cause), ListTagsForDomainError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), ListTagsForDomainError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for ListTagsForDomainError {} /// Errors returned by RegisterDomain #[derive(Debug, PartialEq)] pub enum RegisterDomainError { /// <p>The number of domains has exceeded the allowed threshold for the account.</p> DomainLimitExceeded(String), /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl RegisterDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RegisterDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DomainLimitExceeded" => { return RusotoError::Service(RegisterDomainError::DomainLimitExceeded(err.msg)) } "DuplicateRequest" => { return RusotoError::Service(RegisterDomainError::DuplicateRequest(err.msg)) } "InvalidInput" => { return RusotoError::Service(RegisterDomainError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(RegisterDomainError::OperationLimitExceeded( err.msg, )) } "TLDRulesViolation" => { return RusotoError::Service(RegisterDomainError::TLDRulesViolation(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(RegisterDomainError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RegisterDomainError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RegisterDomainError::DomainLimitExceeded(ref cause) => write!(f, "{}", cause), RegisterDomainError::DuplicateRequest(ref cause) => write!(f, "{}", cause), RegisterDomainError::InvalidInput(ref cause) => write!(f, "{}", cause), RegisterDomainError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), RegisterDomainError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), RegisterDomainError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for RegisterDomainError {} /// Errors returned by RejectDomainTransferFromAnotherAwsAccount #[derive(Debug, PartialEq)] pub enum RejectDomainTransferFromAnotherAwsAccountError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), } impl RejectDomainTransferFromAnotherAwsAccountError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<RejectDomainTransferFromAnotherAwsAccountError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service( RejectDomainTransferFromAnotherAwsAccountError::InvalidInput(err.msg), ) } "OperationLimitExceeded" => { return RusotoError::Service( RejectDomainTransferFromAnotherAwsAccountError::OperationLimitExceeded( err.msg, ), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RejectDomainTransferFromAnotherAwsAccountError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RejectDomainTransferFromAnotherAwsAccountError::InvalidInput(ref cause) => { write!(f, "{}", cause) } RejectDomainTransferFromAnotherAwsAccountError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } } } } impl Error for RejectDomainTransferFromAnotherAwsAccountError {} /// Errors returned by RenewDomain #[derive(Debug, PartialEq)] pub enum RenewDomainError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl RenewDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RenewDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service(RenewDomainError::DuplicateRequest(err.msg)) } "InvalidInput" => { return RusotoError::Service(RenewDomainError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(RenewDomainError::OperationLimitExceeded(err.msg)) } "TLDRulesViolation" => { return RusotoError::Service(RenewDomainError::TLDRulesViolation(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(RenewDomainError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RenewDomainError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RenewDomainError::DuplicateRequest(ref cause) => write!(f, "{}", cause), RenewDomainError::InvalidInput(ref cause) => write!(f, "{}", cause), RenewDomainError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), RenewDomainError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), RenewDomainError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for RenewDomainError {} /// Errors returned by ResendContactReachabilityEmail #[derive(Debug, PartialEq)] pub enum ResendContactReachabilityEmailError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl ResendContactReachabilityEmailError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<ResendContactReachabilityEmailError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(ResendContactReachabilityEmailError::InvalidInput( err.msg, )) } "OperationLimitExceeded" => { return RusotoError::Service( ResendContactReachabilityEmailError::OperationLimitExceeded(err.msg), ) } "UnsupportedTLD" => { return RusotoError::Service( ResendContactReachabilityEmailError::UnsupportedTLD(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ResendContactReachabilityEmailError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ResendContactReachabilityEmailError::InvalidInput(ref cause) => write!(f, "{}", cause), ResendContactReachabilityEmailError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } ResendContactReachabilityEmailError::UnsupportedTLD(ref cause) => { write!(f, "{}", cause) } } } } impl Error for ResendContactReachabilityEmailError {} /// Errors returned by RetrieveDomainAuthCode #[derive(Debug, PartialEq)] pub enum RetrieveDomainAuthCodeError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl RetrieveDomainAuthCodeError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RetrieveDomainAuthCodeError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(RetrieveDomainAuthCodeError::InvalidInput(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(RetrieveDomainAuthCodeError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for RetrieveDomainAuthCodeError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { RetrieveDomainAuthCodeError::InvalidInput(ref cause) => write!(f, "{}", cause), RetrieveDomainAuthCodeError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for RetrieveDomainAuthCodeError {} /// Errors returned by TransferDomain #[derive(Debug, PartialEq)] pub enum TransferDomainError { /// <p>The number of domains has exceeded the allowed threshold for the account.</p> DomainLimitExceeded(String), /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl TransferDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TransferDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DomainLimitExceeded" => { return RusotoError::Service(TransferDomainError::DomainLimitExceeded(err.msg)) } "DuplicateRequest" => { return RusotoError::Service(TransferDomainError::DuplicateRequest(err.msg)) } "InvalidInput" => { return RusotoError::Service(TransferDomainError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(TransferDomainError::OperationLimitExceeded( err.msg, )) } "TLDRulesViolation" => { return RusotoError::Service(TransferDomainError::TLDRulesViolation(err.msg)) } "UnsupportedTLD" => { return RusotoError::Service(TransferDomainError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for TransferDomainError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { TransferDomainError::DomainLimitExceeded(ref cause) => write!(f, "{}", cause), TransferDomainError::DuplicateRequest(ref cause) => write!(f, "{}", cause), TransferDomainError::InvalidInput(ref cause) => write!(f, "{}", cause), TransferDomainError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), TransferDomainError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), TransferDomainError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for TransferDomainError {} /// Errors returned by TransferDomainToAnotherAwsAccount #[derive(Debug, PartialEq)] pub enum TransferDomainToAnotherAwsAccountError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), } impl TransferDomainToAnotherAwsAccountError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<TransferDomainToAnotherAwsAccountError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service( TransferDomainToAnotherAwsAccountError::DuplicateRequest(err.msg), ) } "InvalidInput" => { return RusotoError::Service( TransferDomainToAnotherAwsAccountError::InvalidInput(err.msg), ) } "OperationLimitExceeded" => { return RusotoError::Service( TransferDomainToAnotherAwsAccountError::OperationLimitExceeded(err.msg), ) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for TransferDomainToAnotherAwsAccountError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { TransferDomainToAnotherAwsAccountError::DuplicateRequest(ref cause) => { write!(f, "{}", cause) } TransferDomainToAnotherAwsAccountError::InvalidInput(ref cause) => { write!(f, "{}", cause) } TransferDomainToAnotherAwsAccountError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } } } } impl Error for TransferDomainToAnotherAwsAccountError {} /// Errors returned by UpdateDomainContact #[derive(Debug, PartialEq)] pub enum UpdateDomainContactError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl UpdateDomainContactError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDomainContactError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service(UpdateDomainContactError::DuplicateRequest( err.msg, )) } "InvalidInput" => { return RusotoError::Service(UpdateDomainContactError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(UpdateDomainContactError::OperationLimitExceeded( err.msg, )) } "TLDRulesViolation" => { return RusotoError::Service(UpdateDomainContactError::TLDRulesViolation( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(UpdateDomainContactError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for UpdateDomainContactError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { UpdateDomainContactError::DuplicateRequest(ref cause) => write!(f, "{}", cause), UpdateDomainContactError::InvalidInput(ref cause) => write!(f, "{}", cause), UpdateDomainContactError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), UpdateDomainContactError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), UpdateDomainContactError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for UpdateDomainContactError {} /// Errors returned by UpdateDomainContactPrivacy #[derive(Debug, PartialEq)] pub enum UpdateDomainContactPrivacyError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl UpdateDomainContactPrivacyError { pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<UpdateDomainContactPrivacyError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service(UpdateDomainContactPrivacyError::DuplicateRequest( err.msg, )) } "InvalidInput" => { return RusotoError::Service(UpdateDomainContactPrivacyError::InvalidInput( err.msg, )) } "OperationLimitExceeded" => { return RusotoError::Service( UpdateDomainContactPrivacyError::OperationLimitExceeded(err.msg), ) } "TLDRulesViolation" => { return RusotoError::Service( UpdateDomainContactPrivacyError::TLDRulesViolation(err.msg), ) } "UnsupportedTLD" => { return RusotoError::Service(UpdateDomainContactPrivacyError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for UpdateDomainContactPrivacyError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { UpdateDomainContactPrivacyError::DuplicateRequest(ref cause) => write!(f, "{}", cause), UpdateDomainContactPrivacyError::InvalidInput(ref cause) => write!(f, "{}", cause), UpdateDomainContactPrivacyError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } UpdateDomainContactPrivacyError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), UpdateDomainContactPrivacyError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for UpdateDomainContactPrivacyError {} /// Errors returned by UpdateDomainNameservers #[derive(Debug, PartialEq)] pub enum UpdateDomainNameserversError { /// <p>The request is already in progress for the domain.</p> DuplicateRequest(String), /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>The top-level domain does not support this operation.</p> TLDRulesViolation(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl UpdateDomainNameserversError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDomainNameserversError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "DuplicateRequest" => { return RusotoError::Service(UpdateDomainNameserversError::DuplicateRequest( err.msg, )) } "InvalidInput" => { return RusotoError::Service(UpdateDomainNameserversError::InvalidInput( err.msg, )) } "OperationLimitExceeded" => { return RusotoError::Service( UpdateDomainNameserversError::OperationLimitExceeded(err.msg), ) } "TLDRulesViolation" => { return RusotoError::Service(UpdateDomainNameserversError::TLDRulesViolation( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(UpdateDomainNameserversError::UnsupportedTLD( err.msg, )) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for UpdateDomainNameserversError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { UpdateDomainNameserversError::DuplicateRequest(ref cause) => write!(f, "{}", cause), UpdateDomainNameserversError::InvalidInput(ref cause) => write!(f, "{}", cause), UpdateDomainNameserversError::OperationLimitExceeded(ref cause) => { write!(f, "{}", cause) } UpdateDomainNameserversError::TLDRulesViolation(ref cause) => write!(f, "{}", cause), UpdateDomainNameserversError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for UpdateDomainNameserversError {} /// Errors returned by UpdateTagsForDomain #[derive(Debug, PartialEq)] pub enum UpdateTagsForDomainError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), /// <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p> OperationLimitExceeded(String), /// <p>Amazon Route 53 does not support this top-level domain (TLD).</p> UnsupportedTLD(String), } impl UpdateTagsForDomainError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateTagsForDomainError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(UpdateTagsForDomainError::InvalidInput(err.msg)) } "OperationLimitExceeded" => { return RusotoError::Service(UpdateTagsForDomainError::OperationLimitExceeded( err.msg, )) } "UnsupportedTLD" => { return RusotoError::Service(UpdateTagsForDomainError::UnsupportedTLD(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for UpdateTagsForDomainError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { UpdateTagsForDomainError::InvalidInput(ref cause) => write!(f, "{}", cause), UpdateTagsForDomainError::OperationLimitExceeded(ref cause) => write!(f, "{}", cause), UpdateTagsForDomainError::UnsupportedTLD(ref cause) => write!(f, "{}", cause), } } } impl Error for UpdateTagsForDomainError {} /// Errors returned by ViewBilling #[derive(Debug, PartialEq)] pub enum ViewBillingError { /// <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p> InvalidInput(String), } impl ViewBillingError { pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ViewBillingError> { if let Some(err) = proto::json::Error::parse(&res) { match err.typ.as_str() { "InvalidInput" => { return RusotoError::Service(ViewBillingError::InvalidInput(err.msg)) } "ValidationException" => return RusotoError::Validation(err.msg), _ => {} } } RusotoError::Unknown(res) } } impl fmt::Display for ViewBillingError { #[allow(unused_variables)] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { ViewBillingError::InvalidInput(ref cause) => write!(f, "{}", cause), } } } impl Error for ViewBillingError {} /// Trait representing the capabilities of the Amazon Route 53 Domains API. Amazon Route 53 Domains clients implement this trait. #[async_trait] pub trait Route53Domains { /// <p>Accepts the transfer of a domain from another AWS account to the current AWS account. You initiate a transfer between AWS accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn accept_domain_transfer_from_another_aws_account( &self, input: AcceptDomainTransferFromAnotherAwsAccountRequest, ) -> Result< AcceptDomainTransferFromAnotherAwsAccountResponse, RusotoError<AcceptDomainTransferFromAnotherAwsAccountError>, >; /// <p>Cancels the transfer of a domain from the current AWS account to another AWS account. You initiate a transfer between AWS accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <important> <p>You must cancel the transfer before the other AWS account accepts the transfer using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a>.</p> </important> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn cancel_domain_transfer_to_another_aws_account( &self, input: CancelDomainTransferToAnotherAwsAccountRequest, ) -> Result< CancelDomainTransferToAnotherAwsAccountResponse, RusotoError<CancelDomainTransferToAnotherAwsAccountError>, >; /// <p>This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.</p> async fn check_domain_availability( &self, input: CheckDomainAvailabilityRequest, ) -> Result<CheckDomainAvailabilityResponse, RusotoError<CheckDomainAvailabilityError>>; /// <p>Checks whether a domain name can be transferred to Amazon Route 53. </p> async fn check_domain_transferability( &self, input: CheckDomainTransferabilityRequest, ) -> Result<CheckDomainTransferabilityResponse, RusotoError<CheckDomainTransferabilityError>>; /// <p>This operation deletes the specified tags for a domain.</p> <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p> async fn delete_tags_for_domain( &self, input: DeleteTagsForDomainRequest, ) -> Result<DeleteTagsForDomainResponse, RusotoError<DeleteTagsForDomainError>>; /// <p>This operation disables automatic renewal of domain registration for the specified domain.</p> async fn disable_domain_auto_renew( &self, input: DisableDomainAutoRenewRequest, ) -> Result<DisableDomainAutoRenewResponse, RusotoError<DisableDomainAutoRenewError>>; /// <p>This operation removes the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn disable_domain_transfer_lock( &self, input: DisableDomainTransferLockRequest, ) -> Result<DisableDomainTransferLockResponse, RusotoError<DisableDomainTransferLockError>>; /// <p>This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.</p> <p>The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains That You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>. Route 53 requires that you renew before the end of the renewal period so we can complete processing before the deadline.</p> async fn enable_domain_auto_renew( &self, input: EnableDomainAutoRenewRequest, ) -> Result<EnableDomainAutoRenewResponse, RusotoError<EnableDomainAutoRenewError>>; /// <p>This operation sets the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn enable_domain_transfer_lock( &self, input: EnableDomainTransferLockRequest, ) -> Result<EnableDomainTransferLockResponse, RusotoError<EnableDomainTransferLockError>>; /// <p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation returns information about whether the registrant contact has responded.</p> <p>If you want us to resend the email, use the <code>ResendContactReachabilityEmail</code> operation.</p> async fn get_contact_reachability_status( &self, input: GetContactReachabilityStatusRequest, ) -> Result<GetContactReachabilityStatusResponse, RusotoError<GetContactReachabilityStatusError>>; /// <p>This operation returns detailed information about a specified domain that is associated with the current AWS account. Contact information for the domain is also returned as part of the output.</p> async fn get_domain_detail( &self, input: GetDomainDetailRequest, ) -> Result<GetDomainDetailResponse, RusotoError<GetDomainDetailError>>; /// <p>The GetDomainSuggestions operation returns a list of suggested domain names.</p> async fn get_domain_suggestions( &self, input: GetDomainSuggestionsRequest, ) -> Result<GetDomainSuggestionsResponse, RusotoError<GetDomainSuggestionsError>>; /// <p>This operation returns the current status of an operation that is not completed.</p> async fn get_operation_detail( &self, input: GetOperationDetailRequest, ) -> Result<GetOperationDetailResponse, RusotoError<GetOperationDetailError>>; /// <p>This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.</p> async fn list_domains( &self, input: ListDomainsRequest, ) -> Result<ListDomainsResponse, RusotoError<ListDomainsError>>; /// <p>Returns information about all of the operations that return an operation ID and that have ever been performed on domains that were registered by the current account. </p> async fn list_operations( &self, input: ListOperationsRequest, ) -> Result<ListOperationsResponse, RusotoError<ListOperationsError>>; /// <p>This operation returns all of the tags that are associated with the specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p> async fn list_tags_for_domain( &self, input: ListTagsForDomainRequest, ) -> Result<ListTagsForDomainResponse, RusotoError<ListTagsForDomainError>>; /// <p><p>This operation registers a domain. Domains are registered either by Amazon Registrar (for .com, .net, and .org domains) or by our registrar associate, Gandi (for all other domains). For some top-level domains (TLDs), this operation requires extra parameters.</p> <p>When you register a domain, Amazon Route 53 does the following:</p> <ul> <li> <p>Creates a Route 53 hosted zone that has the same name as the domain. Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.</p> </li> <li> <p>Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.</p> </li> <li> <p>Optionally enables privacy protection, so WHOIS queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you don't enable privacy protection, WHOIS queries return the information that you entered for the registrant, admin, and tech contacts.</p> </li> <li> <p>If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.</p> </li> <li> <p>Charges your AWS account an amount based on the top-level domain. For more information, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p> </li> </ul></p> async fn register_domain( &self, input: RegisterDomainRequest, ) -> Result<RegisterDomainResponse, RusotoError<RegisterDomainError>>; /// <p>Rejects the transfer of a domain from another AWS account to the current AWS account. You initiate a transfer between AWS accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn reject_domain_transfer_from_another_aws_account( &self, input: RejectDomainTransferFromAnotherAwsAccountRequest, ) -> Result< RejectDomainTransferFromAnotherAwsAccountResponse, RusotoError<RejectDomainTransferFromAnotherAwsAccountError>, >; /// <p>This operation renews a domain for the specified number of years. The cost of renewing your domain is billed to your AWS account.</p> <p>We recommend that you renew your domain several weeks before the expiration date. Some TLD registries delete domains before the expiration date if you haven't renewed far enough in advance. For more information about renewing domain registration, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html">Renewing Registration for a Domain</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> async fn renew_domain( &self, input: RenewDomainRequest, ) -> Result<RenewDomainResponse, RusotoError<RenewDomainError>>; /// <p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.</p> async fn resend_contact_reachability_email( &self, input: ResendContactReachabilityEmailRequest, ) -> Result< ResendContactReachabilityEmailResponse, RusotoError<ResendContactReachabilityEmailError>, >; /// <p>This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.</p> async fn retrieve_domain_auth_code( &self, input: RetrieveDomainAuthCodeRequest, ) -> Result<RetrieveDomainAuthCodeResponse, RusotoError<RetrieveDomainAuthCodeError>>; /// <p>Transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered either with Amazon Registrar (for .com, .net, and .org domains) or with our registrar associate, Gandi (for all other TLDs).</p> <p>For more information about transferring domains, see the following topics:</p> <ul> <li> <p>For transfer requirements, a detailed procedure, and information about viewing the status of a domain that you're transferring to Route 53, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-to-route-53.html">Transferring Registration for a Domain to Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> <li> <p>For information about how to transfer a domain from one AWS account to another, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> </li> <li> <p>For information about how to transfer a domain to another domain registrar, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-from-route-53.html">Transferring a Domain from Amazon Route 53 to Another Registrar</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> </ul> <p>If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you transfer your DNS service to Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.</p> <important> <p>If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.</p> </important> <p>If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.</p> async fn transfer_domain( &self, input: TransferDomainRequest, ) -> Result<TransferDomainResponse, RusotoError<TransferDomainError>>; /// <p>Transfers a domain from the current AWS account to another AWS account. Note the following:</p> <ul> <li> <p>The AWS account that you're transferring the domain to must accept the transfer. If the other account doesn't accept the transfer within 3 days, we cancel the transfer. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a>. </p> </li> <li> <p>You can cancel the transfer before the other account accepts it. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_CancelDomainTransferToAnotherAwsAccount.html">CancelDomainTransferToAnotherAwsAccount</a>. </p> </li> <li> <p>The other account can reject the transfer. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_RejectDomainTransferFromAnotherAwsAccount.html">RejectDomainTransferFromAnotherAwsAccount</a>. </p> </li> </ul> <important> <p>When you transfer a domain from one AWS account to another, Route 53 doesn't transfer the hosted zone that is associated with the domain. DNS resolution isn't affected if the domain and the hosted zone are owned by separate accounts, so transferring the hosted zone is optional. For information about transferring the hosted zone to another AWS account, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html">Migrating a Hosted Zone to a Different AWS Account</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </important> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn transfer_domain_to_another_aws_account( &self, input: TransferDomainToAnotherAwsAccountRequest, ) -> Result< TransferDomainToAnotherAwsAccountResponse, RusotoError<TransferDomainToAnotherAwsAccountError>, >; /// <p>This operation updates the contact information for a particular domain. You must specify information for at least one contact: registrant, administrator, or technical.</p> <p>If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn update_domain_contact( &self, input: UpdateDomainContactRequest, ) -> Result<UpdateDomainContactResponse, RusotoError<UpdateDomainContactError>>; /// <p><p>This operation updates the specified domain contact's privacy setting. When privacy protection is enabled, contact information such as email address is replaced either with contact information for Amazon Registrar (for .com, .net, and .org domains) or with contact information for our registrar associate, Gandi.</p> <p>This operation affects only the contact information for the specified contact type (registrant, administrator, or tech). If the request succeeds, Amazon Route 53 returns an operation ID that you can use with <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to track the progress and completion of the action. If the request doesn't complete successfully, the domain registrant will be notified by email.</p> <important> <p>By disabling the privacy service via API, you consent to the publication of the contact information provided for this domain via the public WHOIS database. You certify that you are the registrant of this domain name and have the authority to make this decision. You may withdraw your consent at any time by enabling privacy protection using either <code>UpdateDomainContactPrivacy</code> or the Route 53 console. Enabling privacy protection removes the contact information provided for this domain from the WHOIS database. For more information on our privacy practices, see <a href="https://aws.amazon.com/privacy/">https://aws.amazon.com/privacy/</a>.</p> </important></p> async fn update_domain_contact_privacy( &self, input: UpdateDomainContactPrivacyRequest, ) -> Result<UpdateDomainContactPrivacyResponse, RusotoError<UpdateDomainContactPrivacyError>>; /// <p>This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.</p> <p>If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn update_domain_nameservers( &self, input: UpdateDomainNameserversRequest, ) -> Result<UpdateDomainNameserversResponse, RusotoError<UpdateDomainNameserversError>>; /// <p>This operation adds or updates tags for a specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p> async fn update_tags_for_domain( &self, input: UpdateTagsForDomainRequest, ) -> Result<UpdateTagsForDomainResponse, RusotoError<UpdateTagsForDomainError>>; /// <p>Returns all the domain-related billing records for the current AWS account for a specified period</p> async fn view_billing( &self, input: ViewBillingRequest, ) -> Result<ViewBillingResponse, RusotoError<ViewBillingError>>; } /// A client for the Amazon Route 53 Domains API. #[derive(Clone)] pub struct Route53DomainsClient { client: Client, region: region::Region, } impl Route53DomainsClient { /// 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) -> Route53DomainsClient { Route53DomainsClient { client: Client::shared(), region, } } pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: region::Region, ) -> Route53DomainsClient where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static, { Route53DomainsClient { client: Client::new_with(credentials_provider, request_dispatcher), region, } } pub fn new_with_client(client: Client, region: region::Region) -> Route53DomainsClient { Route53DomainsClient { client, region } } } #[async_trait] impl Route53Domains for Route53DomainsClient { /// <p>Accepts the transfer of a domain from another AWS account to the current AWS account. You initiate a transfer between AWS accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn accept_domain_transfer_from_another_aws_account( &self, input: AcceptDomainTransferFromAnotherAwsAccountRequest, ) -> Result< AcceptDomainTransferFromAnotherAwsAccountResponse, RusotoError<AcceptDomainTransferFromAnotherAwsAccountError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.AcceptDomainTransferFromAnotherAwsAccount", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, AcceptDomainTransferFromAnotherAwsAccountError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<AcceptDomainTransferFromAnotherAwsAccountResponse, _>() } /// <p>Cancels the transfer of a domain from the current AWS account to another AWS account. You initiate a transfer between AWS accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <important> <p>You must cancel the transfer before the other AWS account accepts the transfer using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a>.</p> </important> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn cancel_domain_transfer_to_another_aws_account( &self, input: CancelDomainTransferToAnotherAwsAccountRequest, ) -> Result< CancelDomainTransferToAnotherAwsAccountResponse, RusotoError<CancelDomainTransferToAnotherAwsAccountError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.CancelDomainTransferToAnotherAwsAccount", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, CancelDomainTransferToAnotherAwsAccountError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CancelDomainTransferToAnotherAwsAccountResponse, _>() } /// <p>This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.</p> async fn check_domain_availability( &self, input: CheckDomainAvailabilityRequest, ) -> Result<CheckDomainAvailabilityResponse, RusotoError<CheckDomainAvailabilityError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.CheckDomainAvailability", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CheckDomainAvailabilityError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CheckDomainAvailabilityResponse, _>() } /// <p>Checks whether a domain name can be transferred to Amazon Route 53. </p> async fn check_domain_transferability( &self, input: CheckDomainTransferabilityRequest, ) -> Result<CheckDomainTransferabilityResponse, RusotoError<CheckDomainTransferabilityError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.CheckDomainTransferability", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, CheckDomainTransferabilityError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<CheckDomainTransferabilityResponse, _>() } /// <p>This operation deletes the specified tags for a domain.</p> <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p> async fn delete_tags_for_domain( &self, input: DeleteTagsForDomainRequest, ) -> Result<DeleteTagsForDomainResponse, RusotoError<DeleteTagsForDomainError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.DeleteTagsForDomain", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DeleteTagsForDomainError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<DeleteTagsForDomainResponse, _>() } /// <p>This operation disables automatic renewal of domain registration for the specified domain.</p> async fn disable_domain_auto_renew( &self, input: DisableDomainAutoRenewRequest, ) -> Result<DisableDomainAutoRenewResponse, RusotoError<DisableDomainAutoRenewError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.DisableDomainAutoRenew", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DisableDomainAutoRenewError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DisableDomainAutoRenewResponse, _>() } /// <p>This operation removes the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn disable_domain_transfer_lock( &self, input: DisableDomainTransferLockRequest, ) -> Result<DisableDomainTransferLockResponse, RusotoError<DisableDomainTransferLockError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.DisableDomainTransferLock", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, DisableDomainTransferLockError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<DisableDomainTransferLockResponse, _>() } /// <p>This operation configures Amazon Route 53 to automatically renew the specified domain before the domain registration expires. The cost of renewing your domain registration is billed to your AWS account.</p> <p>The period during which you can renew a domain name varies by TLD. For a list of TLDs and their renewal policies, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains That You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>. Route 53 requires that you renew before the end of the renewal period so we can complete processing before the deadline.</p> async fn enable_domain_auto_renew( &self, input: EnableDomainAutoRenewRequest, ) -> Result<EnableDomainAutoRenewResponse, RusotoError<EnableDomainAutoRenewError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.EnableDomainAutoRenew", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, EnableDomainAutoRenewError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<EnableDomainAutoRenewResponse, _>() } /// <p>This operation sets the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to prevent domain transfers. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn enable_domain_transfer_lock( &self, input: EnableDomainTransferLockRequest, ) -> Result<EnableDomainTransferLockResponse, RusotoError<EnableDomainTransferLockError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.EnableDomainTransferLock", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, EnableDomainTransferLockError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<EnableDomainTransferLockResponse, _>() } /// <p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation returns information about whether the registrant contact has responded.</p> <p>If you want us to resend the email, use the <code>ResendContactReachabilityEmail</code> operation.</p> async fn get_contact_reachability_status( &self, input: GetContactReachabilityStatusRequest, ) -> Result<GetContactReachabilityStatusResponse, RusotoError<GetContactReachabilityStatusError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.GetContactReachabilityStatus", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, GetContactReachabilityStatusError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<GetContactReachabilityStatusResponse, _>() } /// <p>This operation returns detailed information about a specified domain that is associated with the current AWS account. Contact information for the domain is also returned as part of the output.</p> async fn get_domain_detail( &self, input: GetDomainDetailRequest, ) -> Result<GetDomainDetailResponse, RusotoError<GetDomainDetailError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.GetDomainDetail"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, GetDomainDetailError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<GetDomainDetailResponse, _>() } /// <p>The GetDomainSuggestions operation returns a list of suggested domain names.</p> async fn get_domain_suggestions( &self, input: GetDomainSuggestionsRequest, ) -> Result<GetDomainSuggestionsResponse, RusotoError<GetDomainSuggestionsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.GetDomainSuggestions", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, GetDomainSuggestionsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<GetDomainSuggestionsResponse, _>() } /// <p>This operation returns the current status of an operation that is not completed.</p> async fn get_operation_detail( &self, input: GetOperationDetailRequest, ) -> Result<GetOperationDetailResponse, RusotoError<GetOperationDetailError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.GetOperationDetail", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, GetOperationDetailError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<GetOperationDetailResponse, _>() } /// <p>This operation returns all the domain names registered with Amazon Route 53 for the current AWS account.</p> async fn list_domains( &self, input: ListDomainsRequest, ) -> Result<ListDomainsResponse, RusotoError<ListDomainsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.ListDomains"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ListDomainsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ListDomainsResponse, _>() } /// <p>Returns information about all of the operations that return an operation ID and that have ever been performed on domains that were registered by the current account. </p> async fn list_operations( &self, input: ListOperationsRequest, ) -> Result<ListOperationsResponse, RusotoError<ListOperationsError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.ListOperations"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ListOperationsError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ListOperationsResponse, _>() } /// <p>This operation returns all of the tags that are associated with the specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p> async fn list_tags_for_domain( &self, input: ListTagsForDomainRequest, ) -> Result<ListTagsForDomainResponse, RusotoError<ListTagsForDomainError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.ListTagsForDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ListTagsForDomainError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ListTagsForDomainResponse, _>() } /// <p><p>This operation registers a domain. Domains are registered either by Amazon Registrar (for .com, .net, and .org domains) or by our registrar associate, Gandi (for all other domains). For some top-level domains (TLDs), this operation requires extra parameters.</p> <p>When you register a domain, Amazon Route 53 does the following:</p> <ul> <li> <p>Creates a Route 53 hosted zone that has the same name as the domain. Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.</p> </li> <li> <p>Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.</p> </li> <li> <p>Optionally enables privacy protection, so WHOIS queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you don't enable privacy protection, WHOIS queries return the information that you entered for the registrant, admin, and tech contacts.</p> </li> <li> <p>If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.</p> </li> <li> <p>Charges your AWS account an amount based on the top-level domain. For more information, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p> </li> </ul></p> async fn register_domain( &self, input: RegisterDomainRequest, ) -> Result<RegisterDomainResponse, RusotoError<RegisterDomainError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.RegisterDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, RegisterDomainError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<RegisterDomainResponse, _>() } /// <p>Rejects the transfer of a domain from another AWS account to the current AWS account. You initiate a transfer between AWS accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn reject_domain_transfer_from_another_aws_account( &self, input: RejectDomainTransferFromAnotherAwsAccountRequest, ) -> Result< RejectDomainTransferFromAnotherAwsAccountResponse, RusotoError<RejectDomainTransferFromAnotherAwsAccountError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.RejectDomainTransferFromAnotherAwsAccount", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, RejectDomainTransferFromAnotherAwsAccountError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<RejectDomainTransferFromAnotherAwsAccountResponse, _>() } /// <p>This operation renews a domain for the specified number of years. The cost of renewing your domain is billed to your AWS account.</p> <p>We recommend that you renew your domain several weeks before the expiration date. Some TLD registries delete domains before the expiration date if you haven't renewed far enough in advance. For more information about renewing domain registration, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html">Renewing Registration for a Domain</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> async fn renew_domain( &self, input: RenewDomainRequest, ) -> Result<RenewDomainResponse, RusotoError<RenewDomainError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.RenewDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, RenewDomainError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<RenewDomainResponse, _>() } /// <p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.</p> async fn resend_contact_reachability_email( &self, input: ResendContactReachabilityEmailRequest, ) -> Result< ResendContactReachabilityEmailResponse, RusotoError<ResendContactReachabilityEmailError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.ResendContactReachabilityEmail", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ResendContactReachabilityEmailError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<ResendContactReachabilityEmailResponse, _>() } /// <p>This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.</p> async fn retrieve_domain_auth_code( &self, input: RetrieveDomainAuthCodeRequest, ) -> Result<RetrieveDomainAuthCodeResponse, RusotoError<RetrieveDomainAuthCodeError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.RetrieveDomainAuthCode", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, RetrieveDomainAuthCodeError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<RetrieveDomainAuthCodeResponse, _>() } /// <p>Transfers a domain from another registrar to Amazon Route 53. When the transfer is complete, the domain is registered either with Amazon Registrar (for .com, .net, and .org domains) or with our registrar associate, Gandi (for all other TLDs).</p> <p>For more information about transferring domains, see the following topics:</p> <ul> <li> <p>For transfer requirements, a detailed procedure, and information about viewing the status of a domain that you're transferring to Route 53, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-to-route-53.html">Transferring Registration for a Domain to Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> <li> <p>For information about how to transfer a domain from one AWS account to another, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> </li> <li> <p>For information about how to transfer a domain to another domain registrar, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-from-route-53.html">Transferring a Domain from Amazon Route 53 to Another Registrar</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </li> </ul> <p>If the registrar for your domain is also the DNS service provider for the domain, we highly recommend that you transfer your DNS service to Route 53 or to another DNS service provider before you transfer your registration. Some registrars provide free DNS service when you purchase a domain registration. When you transfer the registration, the previous registrar will not renew your domain registration and could end your DNS service at any time.</p> <important> <p>If the registrar for your domain is also the DNS service provider for the domain and you don't transfer DNS service to another provider, your website, email, and the web applications associated with the domain might become unavailable.</p> </important> <p>If the transfer is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the transfer doesn't complete successfully, the domain registrant will be notified by email.</p> async fn transfer_domain( &self, input: TransferDomainRequest, ) -> Result<TransferDomainResponse, RusotoError<TransferDomainError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.TransferDomain"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, TransferDomainError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<TransferDomainResponse, _>() } /// <p>Transfers a domain from the current AWS account to another AWS account. Note the following:</p> <ul> <li> <p>The AWS account that you're transferring the domain to must accept the transfer. If the other account doesn't accept the transfer within 3 days, we cancel the transfer. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a>. </p> </li> <li> <p>You can cancel the transfer before the other account accepts it. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_CancelDomainTransferToAnotherAwsAccount.html">CancelDomainTransferToAnotherAwsAccount</a>. </p> </li> <li> <p>The other account can reject the transfer. See <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_RejectDomainTransferFromAnotherAwsAccount.html">RejectDomainTransferFromAnotherAwsAccount</a>. </p> </li> </ul> <important> <p>When you transfer a domain from one AWS account to another, Route 53 doesn't transfer the hosted zone that is associated with the domain. DNS resolution isn't affected if the domain and the hosted zone are owned by separate accounts, so transferring the hosted zone is optional. For information about transferring the hosted zone to another AWS account, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-migrating.html">Migrating a Hosted Zone to a Different AWS Account</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> </important> <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p> async fn transfer_domain_to_another_aws_account( &self, input: TransferDomainToAnotherAwsAccountRequest, ) -> Result< TransferDomainToAnotherAwsAccountResponse, RusotoError<TransferDomainToAnotherAwsAccountError>, > { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.TransferDomainToAnotherAwsAccount", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch( request, TransferDomainToAnotherAwsAccountError::from_response, ) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<TransferDomainToAnotherAwsAccountResponse, _>() } /// <p>This operation updates the contact information for a particular domain. You must specify information for at least one contact: registrant, administrator, or technical.</p> <p>If the update is successful, this method returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn update_domain_contact( &self, input: UpdateDomainContactRequest, ) -> Result<UpdateDomainContactResponse, RusotoError<UpdateDomainContactError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.UpdateDomainContact", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, UpdateDomainContactError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<UpdateDomainContactResponse, _>() } /// <p><p>This operation updates the specified domain contact's privacy setting. When privacy protection is enabled, contact information such as email address is replaced either with contact information for Amazon Registrar (for .com, .net, and .org domains) or with contact information for our registrar associate, Gandi.</p> <p>This operation affects only the contact information for the specified contact type (registrant, administrator, or tech). If the request succeeds, Amazon Route 53 returns an operation ID that you can use with <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to track the progress and completion of the action. If the request doesn't complete successfully, the domain registrant will be notified by email.</p> <important> <p>By disabling the privacy service via API, you consent to the publication of the contact information provided for this domain via the public WHOIS database. You certify that you are the registrant of this domain name and have the authority to make this decision. You may withdraw your consent at any time by enabling privacy protection using either <code>UpdateDomainContactPrivacy</code> or the Route 53 console. Enabling privacy protection removes the contact information provided for this domain from the WHOIS database. For more information on our privacy practices, see <a href="https://aws.amazon.com/privacy/">https://aws.amazon.com/privacy/</a>.</p> </important></p> async fn update_domain_contact_privacy( &self, input: UpdateDomainContactPrivacyRequest, ) -> Result<UpdateDomainContactPrivacyResponse, RusotoError<UpdateDomainContactPrivacyError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.UpdateDomainContactPrivacy", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, UpdateDomainContactPrivacyError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<UpdateDomainContactPrivacyResponse, _>() } /// <p>This operation replaces the current set of name servers for the domain with the specified set of name servers. If you use Amazon Route 53 as your DNS service, specify the four name servers in the delegation set for the hosted zone for the domain.</p> <p>If successful, this operation returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p> async fn update_domain_nameservers( &self, input: UpdateDomainNameserversRequest, ) -> Result<UpdateDomainNameserversResponse, RusotoError<UpdateDomainNameserversError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.UpdateDomainNameservers", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, UpdateDomainNameserversError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response) .deserialize::<UpdateDomainNameserversResponse, _>() } /// <p>This operation adds or updates tags for a specified domain.</p> <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p> async fn update_tags_for_domain( &self, input: UpdateTagsForDomainRequest, ) -> Result<UpdateTagsForDomainResponse, RusotoError<UpdateTagsForDomainError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header( "x-amz-target", "Route53Domains_v20140515.UpdateTagsForDomain", ); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, UpdateTagsForDomainError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<UpdateTagsForDomainResponse, _>() } /// <p>Returns all the domain-related billing records for the current AWS account for a specified period</p> async fn view_billing( &self, input: ViewBillingRequest, ) -> Result<ViewBillingResponse, RusotoError<ViewBillingError>> { let mut request = self.new_signed_request("POST", "/"); request.add_header("x-amz-target", "Route53Domains_v20140515.ViewBilling"); let encoded = serde_json::to_string(&input).unwrap(); request.set_payload(Some(encoded)); let response = self .sign_and_dispatch(request, ViewBillingError::from_response) .await?; let mut response = response; let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?; proto::json::ResponsePayload::new(&response).deserialize::<ViewBillingResponse, _>() } }