1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
pub(crate) conf: crate::Config,
}
/// Client for Amazon Simple Email Service
///
/// Client for invoking operations on Amazon Simple Email Service. Each operation on Amazon Simple Email Service is a method on this
/// this struct. `.send()` MUST be invoked on the generated operations to dispatch the request to the service.
///
/// # Examples
/// **Constructing a client and invoking an operation**
/// ```rust,no_run
/// # async fn docs() {
/// // create a shared configuration. This can be used & shared between multiple service clients.
/// let shared_config = aws_config::load_from_env().await;
/// let client = aws_sdk_ses::Client::new(&shared_config);
/// // invoke an operation
/// /* let rsp = client
/// .<operation_name>().
/// .<param>("some value")
/// .send().await; */
/// # }
/// ```
/// **Constructing a client with custom configuration**
/// ```rust,no_run
/// use aws_config::RetryConfig;
/// # async fn docs() {
/// let shared_config = aws_config::load_from_env().await;
/// let config = aws_sdk_ses::config::Builder::from(&shared_config)
/// .retry_config(RetryConfig::disabled())
/// .build();
/// let client = aws_sdk_ses::Client::from_conf(config);
/// # }
#[derive(std::fmt::Debug)]
pub struct Client {
handle: std::sync::Arc<Handle>,
}
impl std::clone::Clone for Client {
fn clone(&self) -> Self {
Self {
handle: self.handle.clone(),
}
}
}
#[doc(inline)]
pub use aws_smithy_client::Builder;
impl
From<
aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
> for Client
{
fn from(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
) -> Self {
Self::with_config(client, crate::Config::builder().build())
}
}
impl Client {
/// Creates a client with the given service configuration.
pub fn with_config(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
conf: crate::Config,
) -> Self {
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Returns the client's configuration.
pub fn conf(&self) -> &crate::Config {
&self.handle.conf
}
}
impl Client {
/// Constructs a fluent builder for the [`CloneReceiptRuleSet`](crate::client::fluent_builders::CloneReceiptRuleSet) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::CloneReceiptRuleSet::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::CloneReceiptRuleSet::set_rule_set_name): <p>The name of the rule set to create. The name must:</p> <ul> <li> <p>This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).</p> </li> <li> <p>Start and end with a letter or number.</p> </li> <li> <p>Contain less than 64 characters.</p> </li> </ul>
/// - [`original_rule_set_name(impl Into<String>)`](crate::client::fluent_builders::CloneReceiptRuleSet::original_rule_set_name) / [`set_original_rule_set_name(Option<String>)`](crate::client::fluent_builders::CloneReceiptRuleSet::set_original_rule_set_name): <p>The name of the rule set to clone.</p>
/// - On success, responds with [`CloneReceiptRuleSetOutput`](crate::output::CloneReceiptRuleSetOutput)
/// - On failure, responds with [`SdkError<CloneReceiptRuleSetError>`](crate::error::CloneReceiptRuleSetError)
pub fn clone_receipt_rule_set(&self) -> fluent_builders::CloneReceiptRuleSet {
fluent_builders::CloneReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateConfigurationSet`](crate::client::fluent_builders::CreateConfigurationSet) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set(ConfigurationSet)`](crate::client::fluent_builders::CreateConfigurationSet::configuration_set) / [`set_configuration_set(Option<ConfigurationSet>)`](crate::client::fluent_builders::CreateConfigurationSet::set_configuration_set): <p>A data structure that contains the name of the configuration set.</p>
/// - On success, responds with [`CreateConfigurationSetOutput`](crate::output::CreateConfigurationSetOutput)
/// - On failure, responds with [`SdkError<CreateConfigurationSetError>`](crate::error::CreateConfigurationSetError)
pub fn create_configuration_set(&self) -> fluent_builders::CreateConfigurationSet {
fluent_builders::CreateConfigurationSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateConfigurationSetEventDestination`](crate::client::fluent_builders::CreateConfigurationSetEventDestination) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::CreateConfigurationSetEventDestination::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::CreateConfigurationSetEventDestination::set_configuration_set_name): <p>The name of the configuration set that the event destination should be associated with.</p>
/// - [`event_destination(EventDestination)`](crate::client::fluent_builders::CreateConfigurationSetEventDestination::event_destination) / [`set_event_destination(Option<EventDestination>)`](crate::client::fluent_builders::CreateConfigurationSetEventDestination::set_event_destination): <p>An object that describes the AWS service that email sending event information will be published to.</p>
/// - On success, responds with [`CreateConfigurationSetEventDestinationOutput`](crate::output::CreateConfigurationSetEventDestinationOutput)
/// - On failure, responds with [`SdkError<CreateConfigurationSetEventDestinationError>`](crate::error::CreateConfigurationSetEventDestinationError)
pub fn create_configuration_set_event_destination(
&self,
) -> fluent_builders::CreateConfigurationSetEventDestination {
fluent_builders::CreateConfigurationSetEventDestination::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateConfigurationSetTrackingOptions`](crate::client::fluent_builders::CreateConfigurationSetTrackingOptions) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::CreateConfigurationSetTrackingOptions::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::CreateConfigurationSetTrackingOptions::set_configuration_set_name): <p>The name of the configuration set that the tracking options should be associated with.</p>
/// - [`tracking_options(TrackingOptions)`](crate::client::fluent_builders::CreateConfigurationSetTrackingOptions::tracking_options) / [`set_tracking_options(Option<TrackingOptions>)`](crate::client::fluent_builders::CreateConfigurationSetTrackingOptions::set_tracking_options): <p>A domain that is used to redirect email recipients to an Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES emails.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Configuring Custom Domains to Handle Open and Click Tracking</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// - On success, responds with [`CreateConfigurationSetTrackingOptionsOutput`](crate::output::CreateConfigurationSetTrackingOptionsOutput)
/// - On failure, responds with [`SdkError<CreateConfigurationSetTrackingOptionsError>`](crate::error::CreateConfigurationSetTrackingOptionsError)
pub fn create_configuration_set_tracking_options(
&self,
) -> fluent_builders::CreateConfigurationSetTrackingOptions {
fluent_builders::CreateConfigurationSetTrackingOptions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateCustomVerificationEmailTemplate`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::set_template_name): <p>The name of the custom verification email template.</p>
/// - [`from_email_address(impl Into<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::from_email_address) / [`set_from_email_address(Option<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::set_from_email_address): <p>The email address that the custom verification email is sent from.</p>
/// - [`template_subject(impl Into<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::template_subject) / [`set_template_subject(Option<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::set_template_subject): <p>The subject line of the custom verification email.</p>
/// - [`template_content(impl Into<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::template_content) / [`set_template_content(Option<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::set_template_content): <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// - [`success_redirection_url(impl Into<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::success_redirection_url) / [`set_success_redirection_url(Option<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::set_success_redirection_url): <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
/// - [`failure_redirection_url(impl Into<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::failure_redirection_url) / [`set_failure_redirection_url(Option<String>)`](crate::client::fluent_builders::CreateCustomVerificationEmailTemplate::set_failure_redirection_url): <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
/// - On success, responds with [`CreateCustomVerificationEmailTemplateOutput`](crate::output::CreateCustomVerificationEmailTemplateOutput)
/// - On failure, responds with [`SdkError<CreateCustomVerificationEmailTemplateError>`](crate::error::CreateCustomVerificationEmailTemplateError)
pub fn create_custom_verification_email_template(
&self,
) -> fluent_builders::CreateCustomVerificationEmailTemplate {
fluent_builders::CreateCustomVerificationEmailTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateReceiptFilter`](crate::client::fluent_builders::CreateReceiptFilter) operation.
///
/// - The fluent builder is configurable:
/// - [`filter(ReceiptFilter)`](crate::client::fluent_builders::CreateReceiptFilter::filter) / [`set_filter(Option<ReceiptFilter>)`](crate::client::fluent_builders::CreateReceiptFilter::set_filter): <p>A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.</p>
/// - On success, responds with [`CreateReceiptFilterOutput`](crate::output::CreateReceiptFilterOutput)
/// - On failure, responds with [`SdkError<CreateReceiptFilterError>`](crate::error::CreateReceiptFilterError)
pub fn create_receipt_filter(&self) -> fluent_builders::CreateReceiptFilter {
fluent_builders::CreateReceiptFilter::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateReceiptRule`](crate::client::fluent_builders::CreateReceiptRule) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::CreateReceiptRule::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::CreateReceiptRule::set_rule_set_name): <p>The name of the rule set that the receipt rule will be added to.</p>
/// - [`after(impl Into<String>)`](crate::client::fluent_builders::CreateReceiptRule::after) / [`set_after(Option<String>)`](crate::client::fluent_builders::CreateReceiptRule::set_after): <p>The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.</p>
/// - [`rule(ReceiptRule)`](crate::client::fluent_builders::CreateReceiptRule::rule) / [`set_rule(Option<ReceiptRule>)`](crate::client::fluent_builders::CreateReceiptRule::set_rule): <p>A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.</p>
/// - On success, responds with [`CreateReceiptRuleOutput`](crate::output::CreateReceiptRuleOutput)
/// - On failure, responds with [`SdkError<CreateReceiptRuleError>`](crate::error::CreateReceiptRuleError)
pub fn create_receipt_rule(&self) -> fluent_builders::CreateReceiptRule {
fluent_builders::CreateReceiptRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateReceiptRuleSet`](crate::client::fluent_builders::CreateReceiptRuleSet) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::CreateReceiptRuleSet::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::CreateReceiptRuleSet::set_rule_set_name): <p>The name of the rule set to create. The name must:</p> <ul> <li> <p>This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).</p> </li> <li> <p>Start and end with a letter or number.</p> </li> <li> <p>Contain less than 64 characters.</p> </li> </ul>
/// - On success, responds with [`CreateReceiptRuleSetOutput`](crate::output::CreateReceiptRuleSetOutput)
/// - On failure, responds with [`SdkError<CreateReceiptRuleSetError>`](crate::error::CreateReceiptRuleSetError)
pub fn create_receipt_rule_set(&self) -> fluent_builders::CreateReceiptRuleSet {
fluent_builders::CreateReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateTemplate`](crate::client::fluent_builders::CreateTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template(Template)`](crate::client::fluent_builders::CreateTemplate::template) / [`set_template(Option<Template>)`](crate::client::fluent_builders::CreateTemplate::set_template): <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
/// - On success, responds with [`CreateTemplateOutput`](crate::output::CreateTemplateOutput)
/// - On failure, responds with [`SdkError<CreateTemplateError>`](crate::error::CreateTemplateError)
pub fn create_template(&self) -> fluent_builders::CreateTemplate {
fluent_builders::CreateTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteConfigurationSet`](crate::client::fluent_builders::DeleteConfigurationSet) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::DeleteConfigurationSet::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::DeleteConfigurationSet::set_configuration_set_name): <p>The name of the configuration set to delete.</p>
/// - On success, responds with [`DeleteConfigurationSetOutput`](crate::output::DeleteConfigurationSetOutput)
/// - On failure, responds with [`SdkError<DeleteConfigurationSetError>`](crate::error::DeleteConfigurationSetError)
pub fn delete_configuration_set(&self) -> fluent_builders::DeleteConfigurationSet {
fluent_builders::DeleteConfigurationSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteConfigurationSetEventDestination`](crate::client::fluent_builders::DeleteConfigurationSetEventDestination) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::DeleteConfigurationSetEventDestination::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::DeleteConfigurationSetEventDestination::set_configuration_set_name): <p>The name of the configuration set from which to delete the event destination.</p>
/// - [`event_destination_name(impl Into<String>)`](crate::client::fluent_builders::DeleteConfigurationSetEventDestination::event_destination_name) / [`set_event_destination_name(Option<String>)`](crate::client::fluent_builders::DeleteConfigurationSetEventDestination::set_event_destination_name): <p>The name of the event destination to delete.</p>
/// - On success, responds with [`DeleteConfigurationSetEventDestinationOutput`](crate::output::DeleteConfigurationSetEventDestinationOutput)
/// - On failure, responds with [`SdkError<DeleteConfigurationSetEventDestinationError>`](crate::error::DeleteConfigurationSetEventDestinationError)
pub fn delete_configuration_set_event_destination(
&self,
) -> fluent_builders::DeleteConfigurationSetEventDestination {
fluent_builders::DeleteConfigurationSetEventDestination::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteConfigurationSetTrackingOptions`](crate::client::fluent_builders::DeleteConfigurationSetTrackingOptions) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::DeleteConfigurationSetTrackingOptions::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::DeleteConfigurationSetTrackingOptions::set_configuration_set_name): <p>The name of the configuration set from which you want to delete the tracking options.</p>
/// - On success, responds with [`DeleteConfigurationSetTrackingOptionsOutput`](crate::output::DeleteConfigurationSetTrackingOptionsOutput)
/// - On failure, responds with [`SdkError<DeleteConfigurationSetTrackingOptionsError>`](crate::error::DeleteConfigurationSetTrackingOptionsError)
pub fn delete_configuration_set_tracking_options(
&self,
) -> fluent_builders::DeleteConfigurationSetTrackingOptions {
fluent_builders::DeleteConfigurationSetTrackingOptions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteCustomVerificationEmailTemplate`](crate::client::fluent_builders::DeleteCustomVerificationEmailTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::DeleteCustomVerificationEmailTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::DeleteCustomVerificationEmailTemplate::set_template_name): <p>The name of the custom verification email template that you want to delete.</p>
/// - On success, responds with [`DeleteCustomVerificationEmailTemplateOutput`](crate::output::DeleteCustomVerificationEmailTemplateOutput)
/// - On failure, responds with [`SdkError<DeleteCustomVerificationEmailTemplateError>`](crate::error::DeleteCustomVerificationEmailTemplateError)
pub fn delete_custom_verification_email_template(
&self,
) -> fluent_builders::DeleteCustomVerificationEmailTemplate {
fluent_builders::DeleteCustomVerificationEmailTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteIdentity`](crate::client::fluent_builders::DeleteIdentity) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::DeleteIdentity::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::DeleteIdentity::set_identity): <p>The identity to be removed from the list of identities for the AWS Account.</p>
/// - On success, responds with [`DeleteIdentityOutput`](crate::output::DeleteIdentityOutput)
/// - On failure, responds with [`SdkError<DeleteIdentityError>`](crate::error::DeleteIdentityError)
pub fn delete_identity(&self) -> fluent_builders::DeleteIdentity {
fluent_builders::DeleteIdentity::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteIdentityPolicy`](crate::client::fluent_builders::DeleteIdentityPolicy) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::DeleteIdentityPolicy::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::DeleteIdentityPolicy::set_identity): <p>The identity that is associated with the policy that you want to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p> <p>To successfully call this API, you must own the identity.</p>
/// - [`policy_name(impl Into<String>)`](crate::client::fluent_builders::DeleteIdentityPolicy::policy_name) / [`set_policy_name(Option<String>)`](crate::client::fluent_builders::DeleteIdentityPolicy::set_policy_name): <p>The name of the policy to be deleted.</p>
/// - On success, responds with [`DeleteIdentityPolicyOutput`](crate::output::DeleteIdentityPolicyOutput)
/// - On failure, responds with [`SdkError<DeleteIdentityPolicyError>`](crate::error::DeleteIdentityPolicyError)
pub fn delete_identity_policy(&self) -> fluent_builders::DeleteIdentityPolicy {
fluent_builders::DeleteIdentityPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteReceiptFilter`](crate::client::fluent_builders::DeleteReceiptFilter) operation.
///
/// - The fluent builder is configurable:
/// - [`filter_name(impl Into<String>)`](crate::client::fluent_builders::DeleteReceiptFilter::filter_name) / [`set_filter_name(Option<String>)`](crate::client::fluent_builders::DeleteReceiptFilter::set_filter_name): <p>The name of the IP address filter to delete.</p>
/// - On success, responds with [`DeleteReceiptFilterOutput`](crate::output::DeleteReceiptFilterOutput)
/// - On failure, responds with [`SdkError<DeleteReceiptFilterError>`](crate::error::DeleteReceiptFilterError)
pub fn delete_receipt_filter(&self) -> fluent_builders::DeleteReceiptFilter {
fluent_builders::DeleteReceiptFilter::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteReceiptRule`](crate::client::fluent_builders::DeleteReceiptRule) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::DeleteReceiptRule::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::DeleteReceiptRule::set_rule_set_name): <p>The name of the receipt rule set that contains the receipt rule to delete.</p>
/// - [`rule_name(impl Into<String>)`](crate::client::fluent_builders::DeleteReceiptRule::rule_name) / [`set_rule_name(Option<String>)`](crate::client::fluent_builders::DeleteReceiptRule::set_rule_name): <p>The name of the receipt rule to delete.</p>
/// - On success, responds with [`DeleteReceiptRuleOutput`](crate::output::DeleteReceiptRuleOutput)
/// - On failure, responds with [`SdkError<DeleteReceiptRuleError>`](crate::error::DeleteReceiptRuleError)
pub fn delete_receipt_rule(&self) -> fluent_builders::DeleteReceiptRule {
fluent_builders::DeleteReceiptRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteReceiptRuleSet`](crate::client::fluent_builders::DeleteReceiptRuleSet) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::DeleteReceiptRuleSet::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::DeleteReceiptRuleSet::set_rule_set_name): <p>The name of the receipt rule set to delete.</p>
/// - On success, responds with [`DeleteReceiptRuleSetOutput`](crate::output::DeleteReceiptRuleSetOutput)
/// - On failure, responds with [`SdkError<DeleteReceiptRuleSetError>`](crate::error::DeleteReceiptRuleSetError)
pub fn delete_receipt_rule_set(&self) -> fluent_builders::DeleteReceiptRuleSet {
fluent_builders::DeleteReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteTemplate`](crate::client::fluent_builders::DeleteTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::DeleteTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::DeleteTemplate::set_template_name): <p>The name of the template to be deleted.</p>
/// - On success, responds with [`DeleteTemplateOutput`](crate::output::DeleteTemplateOutput)
/// - On failure, responds with [`SdkError<DeleteTemplateError>`](crate::error::DeleteTemplateError)
pub fn delete_template(&self) -> fluent_builders::DeleteTemplate {
fluent_builders::DeleteTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteVerifiedEmailAddress`](crate::client::fluent_builders::DeleteVerifiedEmailAddress) operation.
///
/// - The fluent builder is configurable:
/// - [`email_address(impl Into<String>)`](crate::client::fluent_builders::DeleteVerifiedEmailAddress::email_address) / [`set_email_address(Option<String>)`](crate::client::fluent_builders::DeleteVerifiedEmailAddress::set_email_address): <p>An email address to be removed from the list of verified addresses.</p>
/// - On success, responds with [`DeleteVerifiedEmailAddressOutput`](crate::output::DeleteVerifiedEmailAddressOutput)
/// - On failure, responds with [`SdkError<DeleteVerifiedEmailAddressError>`](crate::error::DeleteVerifiedEmailAddressError)
pub fn delete_verified_email_address(&self) -> fluent_builders::DeleteVerifiedEmailAddress {
fluent_builders::DeleteVerifiedEmailAddress::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeActiveReceiptRuleSet`](crate::client::fluent_builders::DescribeActiveReceiptRuleSet) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::DescribeActiveReceiptRuleSet::send) it.
/// - On success, responds with [`DescribeActiveReceiptRuleSetOutput`](crate::output::DescribeActiveReceiptRuleSetOutput) with field(s):
/// - [`metadata(Option<ReceiptRuleSetMetadata>)`](crate::output::DescribeActiveReceiptRuleSetOutput::metadata): <p>The metadata for the currently active receipt rule set. The metadata consists of the rule set name and a timestamp of when the rule set was created.</p>
/// - [`rules(Option<Vec<ReceiptRule>>)`](crate::output::DescribeActiveReceiptRuleSetOutput::rules): <p>The receipt rules that belong to the active rule set.</p>
/// - On failure, responds with [`SdkError<DescribeActiveReceiptRuleSetError>`](crate::error::DescribeActiveReceiptRuleSetError)
pub fn describe_active_receipt_rule_set(
&self,
) -> fluent_builders::DescribeActiveReceiptRuleSet {
fluent_builders::DescribeActiveReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeConfigurationSet`](crate::client::fluent_builders::DescribeConfigurationSet) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::DescribeConfigurationSet::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::DescribeConfigurationSet::set_configuration_set_name): <p>The name of the configuration set to describe.</p>
/// - [`configuration_set_attribute_names(Vec<ConfigurationSetAttribute>)`](crate::client::fluent_builders::DescribeConfigurationSet::configuration_set_attribute_names) / [`set_configuration_set_attribute_names(Option<Vec<ConfigurationSetAttribute>>)`](crate::client::fluent_builders::DescribeConfigurationSet::set_configuration_set_attribute_names): <p>A list of configuration set attributes to return.</p>
/// - On success, responds with [`DescribeConfigurationSetOutput`](crate::output::DescribeConfigurationSetOutput) with field(s):
/// - [`configuration_set(Option<ConfigurationSet>)`](crate::output::DescribeConfigurationSetOutput::configuration_set): <p>The configuration set object associated with the specified configuration set.</p>
/// - [`event_destinations(Option<Vec<EventDestination>>)`](crate::output::DescribeConfigurationSetOutput::event_destinations): <p>A list of event destinations associated with the configuration set. </p>
/// - [`tracking_options(Option<TrackingOptions>)`](crate::output::DescribeConfigurationSetOutput::tracking_options): <p>The name of the custom open and click tracking domain associated with the configuration set.</p>
/// - [`delivery_options(Option<DeliveryOptions>)`](crate::output::DescribeConfigurationSetOutput::delivery_options): <p>Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).</p>
/// - [`reputation_options(Option<ReputationOptions>)`](crate::output::DescribeConfigurationSetOutput::reputation_options): <p>An object that represents the reputation settings for the configuration set. </p>
/// - On failure, responds with [`SdkError<DescribeConfigurationSetError>`](crate::error::DescribeConfigurationSetError)
pub fn describe_configuration_set(&self) -> fluent_builders::DescribeConfigurationSet {
fluent_builders::DescribeConfigurationSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeReceiptRule`](crate::client::fluent_builders::DescribeReceiptRule) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::DescribeReceiptRule::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::DescribeReceiptRule::set_rule_set_name): <p>The name of the receipt rule set that the receipt rule belongs to.</p>
/// - [`rule_name(impl Into<String>)`](crate::client::fluent_builders::DescribeReceiptRule::rule_name) / [`set_rule_name(Option<String>)`](crate::client::fluent_builders::DescribeReceiptRule::set_rule_name): <p>The name of the receipt rule.</p>
/// - On success, responds with [`DescribeReceiptRuleOutput`](crate::output::DescribeReceiptRuleOutput) with field(s):
/// - [`rule(Option<ReceiptRule>)`](crate::output::DescribeReceiptRuleOutput::rule): <p>A data structure that contains the specified receipt rule's name, actions, recipients, domains, enabled status, scan status, and Transport Layer Security (TLS) policy.</p>
/// - On failure, responds with [`SdkError<DescribeReceiptRuleError>`](crate::error::DescribeReceiptRuleError)
pub fn describe_receipt_rule(&self) -> fluent_builders::DescribeReceiptRule {
fluent_builders::DescribeReceiptRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeReceiptRuleSet`](crate::client::fluent_builders::DescribeReceiptRuleSet) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::DescribeReceiptRuleSet::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::DescribeReceiptRuleSet::set_rule_set_name): <p>The name of the receipt rule set to describe.</p>
/// - On success, responds with [`DescribeReceiptRuleSetOutput`](crate::output::DescribeReceiptRuleSetOutput) with field(s):
/// - [`metadata(Option<ReceiptRuleSetMetadata>)`](crate::output::DescribeReceiptRuleSetOutput::metadata): <p>The metadata for the receipt rule set, which consists of the rule set name and the timestamp of when the rule set was created.</p>
/// - [`rules(Option<Vec<ReceiptRule>>)`](crate::output::DescribeReceiptRuleSetOutput::rules): <p>A list of the receipt rules that belong to the specified receipt rule set.</p>
/// - On failure, responds with [`SdkError<DescribeReceiptRuleSetError>`](crate::error::DescribeReceiptRuleSetError)
pub fn describe_receipt_rule_set(&self) -> fluent_builders::DescribeReceiptRuleSet {
fluent_builders::DescribeReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetAccountSendingEnabled`](crate::client::fluent_builders::GetAccountSendingEnabled) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::GetAccountSendingEnabled::send) it.
/// - On success, responds with [`GetAccountSendingEnabledOutput`](crate::output::GetAccountSendingEnabledOutput) with field(s):
/// - [`enabled(bool)`](crate::output::GetAccountSendingEnabledOutput::enabled): <p>Describes whether email sending is enabled or disabled for your Amazon SES account in the current AWS Region.</p>
/// - On failure, responds with [`SdkError<GetAccountSendingEnabledError>`](crate::error::GetAccountSendingEnabledError)
pub fn get_account_sending_enabled(&self) -> fluent_builders::GetAccountSendingEnabled {
fluent_builders::GetAccountSendingEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetCustomVerificationEmailTemplate`](crate::client::fluent_builders::GetCustomVerificationEmailTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::GetCustomVerificationEmailTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::GetCustomVerificationEmailTemplate::set_template_name): <p>The name of the custom verification email template that you want to retrieve.</p>
/// - On success, responds with [`GetCustomVerificationEmailTemplateOutput`](crate::output::GetCustomVerificationEmailTemplateOutput) with field(s):
/// - [`template_name(Option<String>)`](crate::output::GetCustomVerificationEmailTemplateOutput::template_name): <p>The name of the custom verification email template.</p>
/// - [`from_email_address(Option<String>)`](crate::output::GetCustomVerificationEmailTemplateOutput::from_email_address): <p>The email address that the custom verification email is sent from.</p>
/// - [`template_subject(Option<String>)`](crate::output::GetCustomVerificationEmailTemplateOutput::template_subject): <p>The subject line of the custom verification email.</p>
/// - [`template_content(Option<String>)`](crate::output::GetCustomVerificationEmailTemplateOutput::template_content): <p>The content of the custom verification email.</p>
/// - [`success_redirection_url(Option<String>)`](crate::output::GetCustomVerificationEmailTemplateOutput::success_redirection_url): <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
/// - [`failure_redirection_url(Option<String>)`](crate::output::GetCustomVerificationEmailTemplateOutput::failure_redirection_url): <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
/// - On failure, responds with [`SdkError<GetCustomVerificationEmailTemplateError>`](crate::error::GetCustomVerificationEmailTemplateError)
pub fn get_custom_verification_email_template(
&self,
) -> fluent_builders::GetCustomVerificationEmailTemplate {
fluent_builders::GetCustomVerificationEmailTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetIdentityDkimAttributes`](crate::client::fluent_builders::GetIdentityDkimAttributes) operation.
///
/// - The fluent builder is configurable:
/// - [`identities(Vec<String>)`](crate::client::fluent_builders::GetIdentityDkimAttributes::identities) / [`set_identities(Option<Vec<String>>)`](crate::client::fluent_builders::GetIdentityDkimAttributes::set_identities): <p>A list of one or more verified identities - email addresses, domains, or both.</p>
/// - On success, responds with [`GetIdentityDkimAttributesOutput`](crate::output::GetIdentityDkimAttributesOutput) with field(s):
/// - [`dkim_attributes(Option<HashMap<String, IdentityDkimAttributes>>)`](crate::output::GetIdentityDkimAttributesOutput::dkim_attributes): <p>The DKIM attributes for an email address or a domain.</p>
/// - On failure, responds with [`SdkError<GetIdentityDkimAttributesError>`](crate::error::GetIdentityDkimAttributesError)
pub fn get_identity_dkim_attributes(&self) -> fluent_builders::GetIdentityDkimAttributes {
fluent_builders::GetIdentityDkimAttributes::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetIdentityMailFromDomainAttributes`](crate::client::fluent_builders::GetIdentityMailFromDomainAttributes) operation.
///
/// - The fluent builder is configurable:
/// - [`identities(Vec<String>)`](crate::client::fluent_builders::GetIdentityMailFromDomainAttributes::identities) / [`set_identities(Option<Vec<String>>)`](crate::client::fluent_builders::GetIdentityMailFromDomainAttributes::set_identities): <p>A list of one or more identities.</p>
/// - On success, responds with [`GetIdentityMailFromDomainAttributesOutput`](crate::output::GetIdentityMailFromDomainAttributesOutput) with field(s):
/// - [`mail_from_domain_attributes(Option<HashMap<String, IdentityMailFromDomainAttributes>>)`](crate::output::GetIdentityMailFromDomainAttributesOutput::mail_from_domain_attributes): <p>A map of identities to custom MAIL FROM attributes.</p>
/// - On failure, responds with [`SdkError<GetIdentityMailFromDomainAttributesError>`](crate::error::GetIdentityMailFromDomainAttributesError)
pub fn get_identity_mail_from_domain_attributes(
&self,
) -> fluent_builders::GetIdentityMailFromDomainAttributes {
fluent_builders::GetIdentityMailFromDomainAttributes::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetIdentityNotificationAttributes`](crate::client::fluent_builders::GetIdentityNotificationAttributes) operation.
///
/// - The fluent builder is configurable:
/// - [`identities(Vec<String>)`](crate::client::fluent_builders::GetIdentityNotificationAttributes::identities) / [`set_identities(Option<Vec<String>>)`](crate::client::fluent_builders::GetIdentityNotificationAttributes::set_identities): <p>A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// - On success, responds with [`GetIdentityNotificationAttributesOutput`](crate::output::GetIdentityNotificationAttributesOutput) with field(s):
/// - [`notification_attributes(Option<HashMap<String, IdentityNotificationAttributes>>)`](crate::output::GetIdentityNotificationAttributesOutput::notification_attributes): <p>A map of Identity to IdentityNotificationAttributes.</p>
/// - On failure, responds with [`SdkError<GetIdentityNotificationAttributesError>`](crate::error::GetIdentityNotificationAttributesError)
pub fn get_identity_notification_attributes(
&self,
) -> fluent_builders::GetIdentityNotificationAttributes {
fluent_builders::GetIdentityNotificationAttributes::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetIdentityPolicies`](crate::client::fluent_builders::GetIdentityPolicies) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::GetIdentityPolicies::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::GetIdentityPolicies::set_identity): <p>The identity for which the policies will be retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p> <p>To successfully call this API, you must own the identity.</p>
/// - [`policy_names(Vec<String>)`](crate::client::fluent_builders::GetIdentityPolicies::policy_names) / [`set_policy_names(Option<Vec<String>>)`](crate::client::fluent_builders::GetIdentityPolicies::set_policy_names): <p>A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use <code>ListIdentityPolicies</code>.</p>
/// - On success, responds with [`GetIdentityPoliciesOutput`](crate::output::GetIdentityPoliciesOutput) with field(s):
/// - [`policies(Option<HashMap<String, String>>)`](crate::output::GetIdentityPoliciesOutput::policies): <p>A map of policy names to policies.</p>
/// - On failure, responds with [`SdkError<GetIdentityPoliciesError>`](crate::error::GetIdentityPoliciesError)
pub fn get_identity_policies(&self) -> fluent_builders::GetIdentityPolicies {
fluent_builders::GetIdentityPolicies::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetIdentityVerificationAttributes`](crate::client::fluent_builders::GetIdentityVerificationAttributes) operation.
///
/// - The fluent builder is configurable:
/// - [`identities(Vec<String>)`](crate::client::fluent_builders::GetIdentityVerificationAttributes::identities) / [`set_identities(Option<Vec<String>>)`](crate::client::fluent_builders::GetIdentityVerificationAttributes::set_identities): <p>A list of identities.</p>
/// - On success, responds with [`GetIdentityVerificationAttributesOutput`](crate::output::GetIdentityVerificationAttributesOutput) with field(s):
/// - [`verification_attributes(Option<HashMap<String, IdentityVerificationAttributes>>)`](crate::output::GetIdentityVerificationAttributesOutput::verification_attributes): <p>A map of Identities to IdentityVerificationAttributes objects.</p>
/// - On failure, responds with [`SdkError<GetIdentityVerificationAttributesError>`](crate::error::GetIdentityVerificationAttributesError)
pub fn get_identity_verification_attributes(
&self,
) -> fluent_builders::GetIdentityVerificationAttributes {
fluent_builders::GetIdentityVerificationAttributes::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetSendQuota`](crate::client::fluent_builders::GetSendQuota) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::GetSendQuota::send) it.
/// - On success, responds with [`GetSendQuotaOutput`](crate::output::GetSendQuotaOutput) with field(s):
/// - [`max24_hour_send(f64)`](crate::output::GetSendQuotaOutput::max24_hour_send): <p>The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.</p>
/// - [`max_send_rate(f64)`](crate::output::GetSendQuotaOutput::max_send_rate): <p>The maximum number of emails that Amazon SES can accept from the user's account per second.</p> <note> <p>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</p> </note>
/// - [`sent_last24_hours(f64)`](crate::output::GetSendQuotaOutput::sent_last24_hours): <p>The number of emails sent during the previous 24 hours.</p>
/// - On failure, responds with [`SdkError<GetSendQuotaError>`](crate::error::GetSendQuotaError)
pub fn get_send_quota(&self) -> fluent_builders::GetSendQuota {
fluent_builders::GetSendQuota::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetSendStatistics`](crate::client::fluent_builders::GetSendStatistics) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::GetSendStatistics::send) it.
/// - On success, responds with [`GetSendStatisticsOutput`](crate::output::GetSendStatisticsOutput) with field(s):
/// - [`send_data_points(Option<Vec<SendDataPoint>>)`](crate::output::GetSendStatisticsOutput::send_data_points): <p>A list of data points, each of which represents 15 minutes of activity.</p>
/// - On failure, responds with [`SdkError<GetSendStatisticsError>`](crate::error::GetSendStatisticsError)
pub fn get_send_statistics(&self) -> fluent_builders::GetSendStatistics {
fluent_builders::GetSendStatistics::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetTemplate`](crate::client::fluent_builders::GetTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::GetTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::GetTemplate::set_template_name): <p>The name of the template you want to retrieve.</p>
/// - On success, responds with [`GetTemplateOutput`](crate::output::GetTemplateOutput) with field(s):
/// - [`template(Option<Template>)`](crate::output::GetTemplateOutput::template): <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
/// - On failure, responds with [`SdkError<GetTemplateError>`](crate::error::GetTemplateError)
pub fn get_template(&self) -> fluent_builders::GetTemplate {
fluent_builders::GetTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListConfigurationSets`](crate::client::fluent_builders::ListConfigurationSets) operation.
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListConfigurationSets::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListConfigurationSets::set_next_token): <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position of the configuration set in the configuration set list.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ListConfigurationSets::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ListConfigurationSets::set_max_items): <p>The number of configuration sets to return.</p>
/// - On success, responds with [`ListConfigurationSetsOutput`](crate::output::ListConfigurationSetsOutput) with field(s):
/// - [`configuration_sets(Option<Vec<ConfigurationSet>>)`](crate::output::ListConfigurationSetsOutput::configuration_sets): <p>A list of configuration sets.</p>
/// - [`next_token(Option<String>)`](crate::output::ListConfigurationSetsOutput::next_token): <p>A token indicating that there are additional configuration sets available to be listed. Pass this token to successive calls of <code>ListConfigurationSets</code>. </p>
/// - On failure, responds with [`SdkError<ListConfigurationSetsError>`](crate::error::ListConfigurationSetsError)
pub fn list_configuration_sets(&self) -> fluent_builders::ListConfigurationSets {
fluent_builders::ListConfigurationSets::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListCustomVerificationEmailTemplates`](crate::client::fluent_builders::ListCustomVerificationEmailTemplates) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListCustomVerificationEmailTemplates::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListCustomVerificationEmailTemplates::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListCustomVerificationEmailTemplates::set_next_token): <p>An array the contains the name and creation time stamp for each template in your Amazon SES account.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListCustomVerificationEmailTemplates::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListCustomVerificationEmailTemplates::set_max_results): <p>The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation will return up to 50 results.</p>
/// - On success, responds with [`ListCustomVerificationEmailTemplatesOutput`](crate::output::ListCustomVerificationEmailTemplatesOutput) with field(s):
/// - [`custom_verification_email_templates(Option<Vec<CustomVerificationEmailTemplate>>)`](crate::output::ListCustomVerificationEmailTemplatesOutput::custom_verification_email_templates): <p>A list of the custom verification email templates that exist in your account.</p>
/// - [`next_token(Option<String>)`](crate::output::ListCustomVerificationEmailTemplatesOutput::next_token): <p>A token indicating that there are additional custom verification email templates available to be listed. Pass this token to a subsequent call to <code>ListTemplates</code> to retrieve the next 50 custom verification email templates.</p>
/// - On failure, responds with [`SdkError<ListCustomVerificationEmailTemplatesError>`](crate::error::ListCustomVerificationEmailTemplatesError)
pub fn list_custom_verification_email_templates(
&self,
) -> fluent_builders::ListCustomVerificationEmailTemplates {
fluent_builders::ListCustomVerificationEmailTemplates::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListIdentities`](crate::client::fluent_builders::ListIdentities) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListIdentities::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`identity_type(IdentityType)`](crate::client::fluent_builders::ListIdentities::identity_type) / [`set_identity_type(Option<IdentityType>)`](crate::client::fluent_builders::ListIdentities::set_identity_type): <p>The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListIdentities::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListIdentities::set_next_token): <p>The token to use for pagination.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ListIdentities::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ListIdentities::set_max_items): <p>The maximum number of identities per page. Possible values are 1-1000 inclusive.</p>
/// - On success, responds with [`ListIdentitiesOutput`](crate::output::ListIdentitiesOutput) with field(s):
/// - [`identities(Option<Vec<String>>)`](crate::output::ListIdentitiesOutput::identities): <p>A list of identities.</p>
/// - [`next_token(Option<String>)`](crate::output::ListIdentitiesOutput::next_token): <p>The token used for pagination.</p>
/// - On failure, responds with [`SdkError<ListIdentitiesError>`](crate::error::ListIdentitiesError)
pub fn list_identities(&self) -> fluent_builders::ListIdentities {
fluent_builders::ListIdentities::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListIdentityPolicies`](crate::client::fluent_builders::ListIdentityPolicies) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::ListIdentityPolicies::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::ListIdentityPolicies::set_identity): <p>The identity that is associated with the policy for which the policies will be listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p> <p>To successfully call this API, you must own the identity.</p>
/// - On success, responds with [`ListIdentityPoliciesOutput`](crate::output::ListIdentityPoliciesOutput) with field(s):
/// - [`policy_names(Option<Vec<String>>)`](crate::output::ListIdentityPoliciesOutput::policy_names): <p>A list of names of policies that apply to the specified identity.</p>
/// - On failure, responds with [`SdkError<ListIdentityPoliciesError>`](crate::error::ListIdentityPoliciesError)
pub fn list_identity_policies(&self) -> fluent_builders::ListIdentityPolicies {
fluent_builders::ListIdentityPolicies::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListReceiptFilters`](crate::client::fluent_builders::ListReceiptFilters) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::ListReceiptFilters::send) it.
/// - On success, responds with [`ListReceiptFiltersOutput`](crate::output::ListReceiptFiltersOutput) with field(s):
/// - [`filters(Option<Vec<ReceiptFilter>>)`](crate::output::ListReceiptFiltersOutput::filters): <p>A list of IP address filter data structures, which each consist of a name, an IP address range, and whether to allow or block mail from it.</p>
/// - On failure, responds with [`SdkError<ListReceiptFiltersError>`](crate::error::ListReceiptFiltersError)
pub fn list_receipt_filters(&self) -> fluent_builders::ListReceiptFilters {
fluent_builders::ListReceiptFilters::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListReceiptRuleSets`](crate::client::fluent_builders::ListReceiptRuleSets) operation.
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListReceiptRuleSets::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListReceiptRuleSets::set_next_token): <p>A token returned from a previous call to <code>ListReceiptRuleSets</code> to indicate the position in the receipt rule set list.</p>
/// - On success, responds with [`ListReceiptRuleSetsOutput`](crate::output::ListReceiptRuleSetsOutput) with field(s):
/// - [`rule_sets(Option<Vec<ReceiptRuleSetMetadata>>)`](crate::output::ListReceiptRuleSetsOutput::rule_sets): <p>The metadata for the currently active receipt rule set. The metadata consists of the rule set name and the timestamp of when the rule set was created.</p>
/// - [`next_token(Option<String>)`](crate::output::ListReceiptRuleSetsOutput::next_token): <p>A token indicating that there are additional receipt rule sets available to be listed. Pass this token to successive calls of <code>ListReceiptRuleSets</code> to retrieve up to 100 receipt rule sets at a time.</p>
/// - On failure, responds with [`SdkError<ListReceiptRuleSetsError>`](crate::error::ListReceiptRuleSetsError)
pub fn list_receipt_rule_sets(&self) -> fluent_builders::ListReceiptRuleSets {
fluent_builders::ListReceiptRuleSets::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTemplates`](crate::client::fluent_builders::ListTemplates) operation.
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListTemplates::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListTemplates::set_next_token): <p>A token returned from a previous call to <code>ListTemplates</code> to indicate the position in the list of email templates.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ListTemplates::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ListTemplates::set_max_items): <p>The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.</p>
/// - On success, responds with [`ListTemplatesOutput`](crate::output::ListTemplatesOutput) with field(s):
/// - [`templates_metadata(Option<Vec<TemplateMetadata>>)`](crate::output::ListTemplatesOutput::templates_metadata): <p>An array the contains the name and creation time stamp for each template in your Amazon SES account.</p>
/// - [`next_token(Option<String>)`](crate::output::ListTemplatesOutput::next_token): <p>A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent call to <code>ListTemplates</code> to retrieve the next 50 email templates.</p>
/// - On failure, responds with [`SdkError<ListTemplatesError>`](crate::error::ListTemplatesError)
pub fn list_templates(&self) -> fluent_builders::ListTemplates {
fluent_builders::ListTemplates::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListVerifiedEmailAddresses`](crate::client::fluent_builders::ListVerifiedEmailAddresses) operation.
///
/// - The fluent builder takes no input, just [`send`](crate::client::fluent_builders::ListVerifiedEmailAddresses::send) it.
/// - On success, responds with [`ListVerifiedEmailAddressesOutput`](crate::output::ListVerifiedEmailAddressesOutput) with field(s):
/// - [`verified_email_addresses(Option<Vec<String>>)`](crate::output::ListVerifiedEmailAddressesOutput::verified_email_addresses): <p>A list of email addresses that have been verified.</p>
/// - On failure, responds with [`SdkError<ListVerifiedEmailAddressesError>`](crate::error::ListVerifiedEmailAddressesError)
pub fn list_verified_email_addresses(&self) -> fluent_builders::ListVerifiedEmailAddresses {
fluent_builders::ListVerifiedEmailAddresses::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutConfigurationSetDeliveryOptions`](crate::client::fluent_builders::PutConfigurationSetDeliveryOptions) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::PutConfigurationSetDeliveryOptions::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::PutConfigurationSetDeliveryOptions::set_configuration_set_name): <p>The name of the configuration set that you want to specify the delivery options for.</p>
/// - [`delivery_options(DeliveryOptions)`](crate::client::fluent_builders::PutConfigurationSetDeliveryOptions::delivery_options) / [`set_delivery_options(Option<DeliveryOptions>)`](crate::client::fluent_builders::PutConfigurationSetDeliveryOptions::set_delivery_options): <p>Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).</p>
/// - On success, responds with [`PutConfigurationSetDeliveryOptionsOutput`](crate::output::PutConfigurationSetDeliveryOptionsOutput)
/// - On failure, responds with [`SdkError<PutConfigurationSetDeliveryOptionsError>`](crate::error::PutConfigurationSetDeliveryOptionsError)
pub fn put_configuration_set_delivery_options(
&self,
) -> fluent_builders::PutConfigurationSetDeliveryOptions {
fluent_builders::PutConfigurationSetDeliveryOptions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PutIdentityPolicy`](crate::client::fluent_builders::PutIdentityPolicy) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::PutIdentityPolicy::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::PutIdentityPolicy::set_identity): <p>The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p> <p>To successfully call this API, you must own the identity.</p>
/// - [`policy_name(impl Into<String>)`](crate::client::fluent_builders::PutIdentityPolicy::policy_name) / [`set_policy_name(Option<String>)`](crate::client::fluent_builders::PutIdentityPolicy::set_policy_name): <p>The name of the policy.</p> <p>The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.</p>
/// - [`policy(impl Into<String>)`](crate::client::fluent_builders::PutIdentityPolicy::policy) / [`set_policy(Option<String>)`](crate::client::fluent_builders::PutIdentityPolicy::set_policy): <p>The text of the policy in JSON format. The policy cannot exceed 4 KB.</p> <p>For information about the syntax of sending authorization policies, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html">Amazon SES Developer Guide</a>. </p>
/// - On success, responds with [`PutIdentityPolicyOutput`](crate::output::PutIdentityPolicyOutput)
/// - On failure, responds with [`SdkError<PutIdentityPolicyError>`](crate::error::PutIdentityPolicyError)
pub fn put_identity_policy(&self) -> fluent_builders::PutIdentityPolicy {
fluent_builders::PutIdentityPolicy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ReorderReceiptRuleSet`](crate::client::fluent_builders::ReorderReceiptRuleSet) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::ReorderReceiptRuleSet::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::ReorderReceiptRuleSet::set_rule_set_name): <p>The name of the receipt rule set to reorder.</p>
/// - [`rule_names(Vec<String>)`](crate::client::fluent_builders::ReorderReceiptRuleSet::rule_names) / [`set_rule_names(Option<Vec<String>>)`](crate::client::fluent_builders::ReorderReceiptRuleSet::set_rule_names): <p>A list of the specified receipt rule set's receipt rules in the order that you want to put them.</p>
/// - On success, responds with [`ReorderReceiptRuleSetOutput`](crate::output::ReorderReceiptRuleSetOutput)
/// - On failure, responds with [`SdkError<ReorderReceiptRuleSetError>`](crate::error::ReorderReceiptRuleSetError)
pub fn reorder_receipt_rule_set(&self) -> fluent_builders::ReorderReceiptRuleSet {
fluent_builders::ReorderReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SendBounce`](crate::client::fluent_builders::SendBounce) operation.
///
/// - The fluent builder is configurable:
/// - [`original_message_id(impl Into<String>)`](crate::client::fluent_builders::SendBounce::original_message_id) / [`set_original_message_id(Option<String>)`](crate::client::fluent_builders::SendBounce::set_original_message_id): <p>The message ID of the message to be bounced.</p>
/// - [`bounce_sender(impl Into<String>)`](crate::client::fluent_builders::SendBounce::bounce_sender) / [`set_bounce_sender(Option<String>)`](crate::client::fluent_builders::SendBounce::set_bounce_sender): <p>The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.</p>
/// - [`explanation(impl Into<String>)`](crate::client::fluent_builders::SendBounce::explanation) / [`set_explanation(Option<String>)`](crate::client::fluent_builders::SendBounce::set_explanation): <p>Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.</p>
/// - [`message_dsn(MessageDsn)`](crate::client::fluent_builders::SendBounce::message_dsn) / [`set_message_dsn(Option<MessageDsn>)`](crate::client::fluent_builders::SendBounce::set_message_dsn): <p>Message-related DSN fields. If not specified, Amazon SES will choose the values.</p>
/// - [`bounced_recipient_info_list(Vec<BouncedRecipientInfo>)`](crate::client::fluent_builders::SendBounce::bounced_recipient_info_list) / [`set_bounced_recipient_info_list(Option<Vec<BouncedRecipientInfo>>)`](crate::client::fluent_builders::SendBounce::set_bounced_recipient_info_list): <p>A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one <code>BouncedRecipientInfo</code> in the list.</p>
/// - [`bounce_sender_arn(impl Into<String>)`](crate::client::fluent_builders::SendBounce::bounce_sender_arn) / [`set_bounce_sender_arn(Option<String>)`](crate::client::fluent_builders::SendBounce::set_bounce_sender_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - On success, responds with [`SendBounceOutput`](crate::output::SendBounceOutput) with field(s):
/// - [`message_id(Option<String>)`](crate::output::SendBounceOutput::message_id): <p>The message ID of the bounce message.</p>
/// - On failure, responds with [`SdkError<SendBounceError>`](crate::error::SendBounceError)
pub fn send_bounce(&self) -> fluent_builders::SendBounce {
fluent_builders::SendBounce::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SendBulkTemplatedEmail`](crate::client::fluent_builders::SendBulkTemplatedEmail) operation.
///
/// - The fluent builder is configurable:
/// - [`source(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::source) / [`set_source(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_source): <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p> <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note> <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p> </note>
/// - [`source_arn(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::source_arn) / [`set_source_arn(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_source_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - [`reply_to_addresses(Vec<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::reply_to_addresses) / [`set_reply_to_addresses(Option<Vec<String>>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_reply_to_addresses): <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
/// - [`return_path(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::return_path) / [`set_return_path(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_return_path): <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
/// - [`return_path_arn(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::return_path_arn) / [`set_return_path_arn(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_return_path_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_configuration_set_name): <p>The name of the configuration set to use when you send an email using <code>SendBulkTemplatedEmail</code>.</p>
/// - [`default_tags(Vec<MessageTag>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::default_tags) / [`set_default_tags(Option<Vec<MessageTag>>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_default_tags): <p>A list of tags, in the form of name/value pairs, to apply to an email that you send to a destination using <code>SendBulkTemplatedEmail</code>.</p>
/// - [`template(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::template) / [`set_template(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_template): <p>The template to use when sending this email.</p>
/// - [`template_arn(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::template_arn) / [`set_template_arn(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_template_arn): <p>The ARN of the template to use when sending this email.</p>
/// - [`default_template_data(impl Into<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::default_template_data) / [`set_default_template_data(Option<String>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_default_template_data): <p>A list of replacement values to apply to the template when replacement data is not specified in a Destination object. These values act as a default or fallback option when no other data is available.</p> <p>The template data is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
/// - [`destinations(Vec<BulkEmailDestination>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::destinations) / [`set_destinations(Option<Vec<BulkEmailDestination>>)`](crate::client::fluent_builders::SendBulkTemplatedEmail::set_destinations): <p>One or more <code>Destination</code> objects. All of the recipients in a <code>Destination</code> will receive the same version of the email. You can specify up to 50 <code>Destination</code> objects within a <code>Destinations</code> array.</p>
/// - On success, responds with [`SendBulkTemplatedEmailOutput`](crate::output::SendBulkTemplatedEmailOutput) with field(s):
/// - [`status(Option<Vec<BulkEmailDestinationStatus>>)`](crate::output::SendBulkTemplatedEmailOutput::status): <p>The unique message identifier returned from the <code>SendBulkTemplatedEmail</code> action.</p>
/// - On failure, responds with [`SdkError<SendBulkTemplatedEmailError>`](crate::error::SendBulkTemplatedEmailError)
pub fn send_bulk_templated_email(&self) -> fluent_builders::SendBulkTemplatedEmail {
fluent_builders::SendBulkTemplatedEmail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SendCustomVerificationEmail`](crate::client::fluent_builders::SendCustomVerificationEmail) operation.
///
/// - The fluent builder is configurable:
/// - [`email_address(impl Into<String>)`](crate::client::fluent_builders::SendCustomVerificationEmail::email_address) / [`set_email_address(Option<String>)`](crate::client::fluent_builders::SendCustomVerificationEmail::set_email_address): <p>The email address to verify.</p>
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::SendCustomVerificationEmail::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::SendCustomVerificationEmail::set_template_name): <p>The name of the custom verification email template to use when sending the verification email.</p>
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::SendCustomVerificationEmail::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::SendCustomVerificationEmail::set_configuration_set_name): <p>Name of a configuration set to use when sending the verification email.</p>
/// - On success, responds with [`SendCustomVerificationEmailOutput`](crate::output::SendCustomVerificationEmailOutput) with field(s):
/// - [`message_id(Option<String>)`](crate::output::SendCustomVerificationEmailOutput::message_id): <p>The unique message identifier returned from the <code>SendCustomVerificationEmail</code> operation.</p>
/// - On failure, responds with [`SdkError<SendCustomVerificationEmailError>`](crate::error::SendCustomVerificationEmailError)
pub fn send_custom_verification_email(&self) -> fluent_builders::SendCustomVerificationEmail {
fluent_builders::SendCustomVerificationEmail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SendEmail`](crate::client::fluent_builders::SendEmail) operation.
///
/// - The fluent builder is configurable:
/// - [`source(impl Into<String>)`](crate::client::fluent_builders::SendEmail::source) / [`set_source(Option<String>)`](crate::client::fluent_builders::SendEmail::set_source): <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p> <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note> <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p> </note>
/// - [`destination(Destination)`](crate::client::fluent_builders::SendEmail::destination) / [`set_destination(Option<Destination>)`](crate::client::fluent_builders::SendEmail::set_destination): <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
/// - [`message(Message)`](crate::client::fluent_builders::SendEmail::message) / [`set_message(Option<Message>)`](crate::client::fluent_builders::SendEmail::set_message): <p>The message to be sent.</p>
/// - [`reply_to_addresses(Vec<String>)`](crate::client::fluent_builders::SendEmail::reply_to_addresses) / [`set_reply_to_addresses(Option<Vec<String>>)`](crate::client::fluent_builders::SendEmail::set_reply_to_addresses): <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
/// - [`return_path(impl Into<String>)`](crate::client::fluent_builders::SendEmail::return_path) / [`set_return_path(Option<String>)`](crate::client::fluent_builders::SendEmail::set_return_path): <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
/// - [`source_arn(impl Into<String>)`](crate::client::fluent_builders::SendEmail::source_arn) / [`set_source_arn(Option<String>)`](crate::client::fluent_builders::SendEmail::set_source_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - [`return_path_arn(impl Into<String>)`](crate::client::fluent_builders::SendEmail::return_path_arn) / [`set_return_path_arn(Option<String>)`](crate::client::fluent_builders::SendEmail::set_return_path_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - [`tags(Vec<MessageTag>)`](crate::client::fluent_builders::SendEmail::tags) / [`set_tags(Option<Vec<MessageTag>>)`](crate::client::fluent_builders::SendEmail::set_tags): <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::SendEmail::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::SendEmail::set_configuration_set_name): <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
/// - On success, responds with [`SendEmailOutput`](crate::output::SendEmailOutput) with field(s):
/// - [`message_id(Option<String>)`](crate::output::SendEmailOutput::message_id): <p>The unique message identifier returned from the <code>SendEmail</code> action. </p>
/// - On failure, responds with [`SdkError<SendEmailError>`](crate::error::SendEmailError)
pub fn send_email(&self) -> fluent_builders::SendEmail {
fluent_builders::SendEmail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SendRawEmail`](crate::client::fluent_builders::SendRawEmail) operation.
///
/// - The fluent builder is configurable:
/// - [`source(impl Into<String>)`](crate::client::fluent_builders::SendRawEmail::source) / [`set_source(Option<String>)`](crate::client::fluent_builders::SendRawEmail::set_source): <p>The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)</p> <note> <p>Amazon SES does not support the SMTPUTF8 extension, as described in<a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p> </note> <p>If you specify the <code>Source</code> parameter and have feedback forwarding enabled, then bounces and complaints will be sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.</p>
/// - [`destinations(Vec<String>)`](crate::client::fluent_builders::SendRawEmail::destinations) / [`set_destinations(Option<Vec<String>>)`](crate::client::fluent_builders::SendRawEmail::set_destinations): <p>A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.</p>
/// - [`raw_message(RawMessage)`](crate::client::fluent_builders::SendRawEmail::raw_message) / [`set_raw_message(Option<RawMessage>)`](crate::client::fluent_builders::SendRawEmail::set_raw_message): <p>The raw email message itself. The message has to meet the following criteria:</p> <ul> <li> <p>The message has to contain a header and a body, separated by a blank line.</p> </li> <li> <p>All of the required header fields must be present in the message.</p> </li> <li> <p>Each part of a multipart MIME message must be formatted properly.</p> </li> <li> <p>Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html">Unsupported Attachment Types</a> in the <i>Amazon SES Developer Guide</i>.</p> </li> <li> <p>The entire message must be base64-encoded.</p> </li> <li> <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html">Sending Raw Email</a> in the <i>Amazon SES Developer Guide</i>.</p> </li> <li> <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of text, including the <crlf> , must not exceed 1,000 characters. </crlf></p> </li> </ul>
/// - [`from_arn(impl Into<String>)`](crate::client::fluent_builders::SendRawEmail::from_arn) / [`set_from_arn(Option<String>)`](crate::client::fluent_builders::SendRawEmail::set_from_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular "From" address in the header of the raw email.</p> <p>Instead of using this parameter, you can use the X-header <code>X-SES-FROM-ARN</code> in the raw message of the email. If you use both the <code>FromArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>FromArn</code> parameter.</p> <note> <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p> </note>
/// - [`source_arn(impl Into<String>)`](crate::client::fluent_builders::SendRawEmail::source_arn) / [`set_source_arn(Option<String>)`](crate::client::fluent_builders::SendRawEmail::set_source_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p> <p>Instead of using this parameter, you can use the X-header <code>X-SES-SOURCE-ARN</code> in the raw message of the email. If you use both the <code>SourceArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>SourceArn</code> parameter.</p> <note> <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p> </note>
/// - [`return_path_arn(impl Into<String>)`](crate::client::fluent_builders::SendRawEmail::return_path_arn) / [`set_return_path_arn(Option<String>)`](crate::client::fluent_builders::SendRawEmail::set_return_path_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p> <p>Instead of using this parameter, you can use the X-header <code>X-SES-RETURN-PATH-ARN</code> in the raw message of the email. If you use both the <code>ReturnPathArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>ReturnPathArn</code> parameter.</p> <note> <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p> </note>
/// - [`tags(Vec<MessageTag>)`](crate::client::fluent_builders::SendRawEmail::tags) / [`set_tags(Option<Vec<MessageTag>>)`](crate::client::fluent_builders::SendRawEmail::set_tags): <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendRawEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::SendRawEmail::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::SendRawEmail::set_configuration_set_name): <p>The name of the configuration set to use when you send an email using <code>SendRawEmail</code>.</p>
/// - On success, responds with [`SendRawEmailOutput`](crate::output::SendRawEmailOutput) with field(s):
/// - [`message_id(Option<String>)`](crate::output::SendRawEmailOutput::message_id): <p>The unique message identifier returned from the <code>SendRawEmail</code> action. </p>
/// - On failure, responds with [`SdkError<SendRawEmailError>`](crate::error::SendRawEmailError)
pub fn send_raw_email(&self) -> fluent_builders::SendRawEmail {
fluent_builders::SendRawEmail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SendTemplatedEmail`](crate::client::fluent_builders::SendTemplatedEmail) operation.
///
/// - The fluent builder is configurable:
/// - [`source(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::source) / [`set_source(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_source): <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p> <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note> <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in<a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p> </note>
/// - [`destination(Destination)`](crate::client::fluent_builders::SendTemplatedEmail::destination) / [`set_destination(Option<Destination>)`](crate::client::fluent_builders::SendTemplatedEmail::set_destination): <p>The destination for this email, composed of To:, CC:, and BCC: fields. A Destination can include up to 50 recipients across these three fields.</p>
/// - [`reply_to_addresses(Vec<String>)`](crate::client::fluent_builders::SendTemplatedEmail::reply_to_addresses) / [`set_reply_to_addresses(Option<Vec<String>>)`](crate::client::fluent_builders::SendTemplatedEmail::set_reply_to_addresses): <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
/// - [`return_path(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::return_path) / [`set_return_path(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_return_path): <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
/// - [`source_arn(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::source_arn) / [`set_source_arn(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_source_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - [`return_path_arn(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::return_path_arn) / [`set_return_path_arn(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_return_path_arn): <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// - [`tags(Vec<MessageTag>)`](crate::client::fluent_builders::SendTemplatedEmail::tags) / [`set_tags(Option<Vec<MessageTag>>)`](crate::client::fluent_builders::SendTemplatedEmail::set_tags): <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendTemplatedEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_configuration_set_name): <p>The name of the configuration set to use when you send an email using <code>SendTemplatedEmail</code>.</p>
/// - [`template(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::template) / [`set_template(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_template): <p>The template to use when sending this email.</p>
/// - [`template_arn(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::template_arn) / [`set_template_arn(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_template_arn): <p>The ARN of the template to use when sending this email.</p>
/// - [`template_data(impl Into<String>)`](crate::client::fluent_builders::SendTemplatedEmail::template_data) / [`set_template_data(Option<String>)`](crate::client::fluent_builders::SendTemplatedEmail::set_template_data): <p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
/// - On success, responds with [`SendTemplatedEmailOutput`](crate::output::SendTemplatedEmailOutput) with field(s):
/// - [`message_id(Option<String>)`](crate::output::SendTemplatedEmailOutput::message_id): <p>The unique message identifier returned from the <code>SendTemplatedEmail</code> action. </p>
/// - On failure, responds with [`SdkError<SendTemplatedEmailError>`](crate::error::SendTemplatedEmailError)
pub fn send_templated_email(&self) -> fluent_builders::SendTemplatedEmail {
fluent_builders::SendTemplatedEmail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetActiveReceiptRuleSet`](crate::client::fluent_builders::SetActiveReceiptRuleSet) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::SetActiveReceiptRuleSet::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::SetActiveReceiptRuleSet::set_rule_set_name): <p>The name of the receipt rule set to make active. Setting this value to null disables all email receiving.</p>
/// - On success, responds with [`SetActiveReceiptRuleSetOutput`](crate::output::SetActiveReceiptRuleSetOutput)
/// - On failure, responds with [`SdkError<SetActiveReceiptRuleSetError>`](crate::error::SetActiveReceiptRuleSetError)
pub fn set_active_receipt_rule_set(&self) -> fluent_builders::SetActiveReceiptRuleSet {
fluent_builders::SetActiveReceiptRuleSet::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetIdentityDkimEnabled`](crate::client::fluent_builders::SetIdentityDkimEnabled) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::SetIdentityDkimEnabled::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::SetIdentityDkimEnabled::set_identity): <p>The identity for which DKIM signing should be enabled or disabled.</p>
/// - [`dkim_enabled(bool)`](crate::client::fluent_builders::SetIdentityDkimEnabled::dkim_enabled) / [`set_dkim_enabled(bool)`](crate::client::fluent_builders::SetIdentityDkimEnabled::set_dkim_enabled): <p>Sets whether DKIM signing is enabled for an identity. Set to <code>true</code> to enable DKIM signing for this identity; <code>false</code> to disable it. </p>
/// - On success, responds with [`SetIdentityDkimEnabledOutput`](crate::output::SetIdentityDkimEnabledOutput)
/// - On failure, responds with [`SdkError<SetIdentityDkimEnabledError>`](crate::error::SetIdentityDkimEnabledError)
pub fn set_identity_dkim_enabled(&self) -> fluent_builders::SetIdentityDkimEnabled {
fluent_builders::SetIdentityDkimEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetIdentityFeedbackForwardingEnabled`](crate::client::fluent_builders::SetIdentityFeedbackForwardingEnabled) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::SetIdentityFeedbackForwardingEnabled::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::SetIdentityFeedbackForwardingEnabled::set_identity): <p>The identity for which to set bounce and complaint notification forwarding. Examples: <code>user@example.com</code>, <code>example.com</code>.</p>
/// - [`forwarding_enabled(bool)`](crate::client::fluent_builders::SetIdentityFeedbackForwardingEnabled::forwarding_enabled) / [`set_forwarding_enabled(bool)`](crate::client::fluent_builders::SetIdentityFeedbackForwardingEnabled::set_forwarding_enabled): <p>Sets whether Amazon SES will forward bounce and complaint notifications as email. <code>true</code> specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. <code>false</code> specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to <code>false</code> when Amazon SNS topics are set for both <code>Bounce</code> and <code>Complaint</code> notification types.</p>
/// - On success, responds with [`SetIdentityFeedbackForwardingEnabledOutput`](crate::output::SetIdentityFeedbackForwardingEnabledOutput)
/// - On failure, responds with [`SdkError<SetIdentityFeedbackForwardingEnabledError>`](crate::error::SetIdentityFeedbackForwardingEnabledError)
pub fn set_identity_feedback_forwarding_enabled(
&self,
) -> fluent_builders::SetIdentityFeedbackForwardingEnabled {
fluent_builders::SetIdentityFeedbackForwardingEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetIdentityHeadersInNotificationsEnabled`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled::set_identity): <p>The identity for which to enable or disable headers in notifications. Examples: <code>user@example.com</code>, <code>example.com</code>.</p>
/// - [`notification_type(NotificationType)`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled::notification_type) / [`set_notification_type(Option<NotificationType>)`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled::set_notification_type): <p>The notification type for which to enable or disable headers in notifications. </p>
/// - [`enabled(bool)`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled::enabled) / [`set_enabled(bool)`](crate::client::fluent_builders::SetIdentityHeadersInNotificationsEnabled::set_enabled): <p>Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of <code>true</code> specifies that Amazon SES will include headers in notifications, and a value of <code>false</code> specifies that Amazon SES will not include headers in notifications.</p> <p>This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon SNS topic.</p>
/// - On success, responds with [`SetIdentityHeadersInNotificationsEnabledOutput`](crate::output::SetIdentityHeadersInNotificationsEnabledOutput)
/// - On failure, responds with [`SdkError<SetIdentityHeadersInNotificationsEnabledError>`](crate::error::SetIdentityHeadersInNotificationsEnabledError)
pub fn set_identity_headers_in_notifications_enabled(
&self,
) -> fluent_builders::SetIdentityHeadersInNotificationsEnabled {
fluent_builders::SetIdentityHeadersInNotificationsEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetIdentityMailFromDomain`](crate::client::fluent_builders::SetIdentityMailFromDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::SetIdentityMailFromDomain::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::SetIdentityMailFromDomain::set_identity): <p>The verified identity for which you want to enable or disable the specified custom MAIL FROM domain.</p>
/// - [`mail_from_domain(impl Into<String>)`](crate::client::fluent_builders::SetIdentityMailFromDomain::mail_from_domain) / [`set_mail_from_domain(Option<String>)`](crate::client::fluent_builders::SetIdentityMailFromDomain::set_mail_from_domain): <p>The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html">Amazon SES Developer Guide</a>), and 3) not be used to receive emails. A value of <code>null</code> disables the custom MAIL FROM setting for the identity.</p>
/// - [`behavior_on_mx_failure(BehaviorOnMxFailure)`](crate::client::fluent_builders::SetIdentityMailFromDomain::behavior_on_mx_failure) / [`set_behavior_on_mx_failure(Option<BehaviorOnMxFailure>)`](crate::client::fluent_builders::SetIdentityMailFromDomain::set_behavior_on_mx_failure): <p>The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will return a <code>MailFromDomainNotVerified</code> error and not send the email.</p> <p>The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup is in the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states.</p>
/// - On success, responds with [`SetIdentityMailFromDomainOutput`](crate::output::SetIdentityMailFromDomainOutput)
/// - On failure, responds with [`SdkError<SetIdentityMailFromDomainError>`](crate::error::SetIdentityMailFromDomainError)
pub fn set_identity_mail_from_domain(&self) -> fluent_builders::SetIdentityMailFromDomain {
fluent_builders::SetIdentityMailFromDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetIdentityNotificationTopic`](crate::client::fluent_builders::SetIdentityNotificationTopic) operation.
///
/// - The fluent builder is configurable:
/// - [`identity(impl Into<String>)`](crate::client::fluent_builders::SetIdentityNotificationTopic::identity) / [`set_identity(Option<String>)`](crate::client::fluent_builders::SetIdentityNotificationTopic::set_identity): <p>The identity (email address or domain) that you want to set the Amazon SNS topic for.</p> <important> <p>You can only specify a verified identity for this parameter.</p> </important> <p>You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: <code>sender@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// - [`notification_type(NotificationType)`](crate::client::fluent_builders::SetIdentityNotificationTopic::notification_type) / [`set_notification_type(Option<NotificationType>)`](crate::client::fluent_builders::SetIdentityNotificationTopic::set_notification_type): <p>The type of notifications that will be published to the specified Amazon SNS topic.</p>
/// - [`sns_topic(impl Into<String>)`](crate::client::fluent_builders::SetIdentityNotificationTopic::sns_topic) / [`set_sns_topic(Option<String>)`](crate::client::fluent_builders::SetIdentityNotificationTopic::set_sns_topic): <p>The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, <code>SnsTopic</code> is cleared and publishing is disabled.</p>
/// - On success, responds with [`SetIdentityNotificationTopicOutput`](crate::output::SetIdentityNotificationTopicOutput)
/// - On failure, responds with [`SdkError<SetIdentityNotificationTopicError>`](crate::error::SetIdentityNotificationTopicError)
pub fn set_identity_notification_topic(&self) -> fluent_builders::SetIdentityNotificationTopic {
fluent_builders::SetIdentityNotificationTopic::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`SetReceiptRulePosition`](crate::client::fluent_builders::SetReceiptRulePosition) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::SetReceiptRulePosition::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::SetReceiptRulePosition::set_rule_set_name): <p>The name of the receipt rule set that contains the receipt rule to reposition.</p>
/// - [`rule_name(impl Into<String>)`](crate::client::fluent_builders::SetReceiptRulePosition::rule_name) / [`set_rule_name(Option<String>)`](crate::client::fluent_builders::SetReceiptRulePosition::set_rule_name): <p>The name of the receipt rule to reposition.</p>
/// - [`after(impl Into<String>)`](crate::client::fluent_builders::SetReceiptRulePosition::after) / [`set_after(Option<String>)`](crate::client::fluent_builders::SetReceiptRulePosition::set_after): <p>The name of the receipt rule after which to place the specified receipt rule.</p>
/// - On success, responds with [`SetReceiptRulePositionOutput`](crate::output::SetReceiptRulePositionOutput)
/// - On failure, responds with [`SdkError<SetReceiptRulePositionError>`](crate::error::SetReceiptRulePositionError)
pub fn set_receipt_rule_position(&self) -> fluent_builders::SetReceiptRulePosition {
fluent_builders::SetReceiptRulePosition::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TestRenderTemplate`](crate::client::fluent_builders::TestRenderTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::TestRenderTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::TestRenderTemplate::set_template_name): <p>The name of the template that you want to render.</p>
/// - [`template_data(impl Into<String>)`](crate::client::fluent_builders::TestRenderTemplate::template_data) / [`set_template_data(Option<String>)`](crate::client::fluent_builders::TestRenderTemplate::set_template_data): <p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
/// - On success, responds with [`TestRenderTemplateOutput`](crate::output::TestRenderTemplateOutput) with field(s):
/// - [`rendered_template(Option<String>)`](crate::output::TestRenderTemplateOutput::rendered_template): <p>The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.</p>
/// - On failure, responds with [`SdkError<TestRenderTemplateError>`](crate::error::TestRenderTemplateError)
pub fn test_render_template(&self) -> fluent_builders::TestRenderTemplate {
fluent_builders::TestRenderTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateAccountSendingEnabled`](crate::client::fluent_builders::UpdateAccountSendingEnabled) operation.
///
/// - The fluent builder is configurable:
/// - [`enabled(bool)`](crate::client::fluent_builders::UpdateAccountSendingEnabled::enabled) / [`set_enabled(bool)`](crate::client::fluent_builders::UpdateAccountSendingEnabled::set_enabled): <p>Describes whether email sending is enabled or disabled for your Amazon SES account in the current AWS Region.</p>
/// - On success, responds with [`UpdateAccountSendingEnabledOutput`](crate::output::UpdateAccountSendingEnabledOutput)
/// - On failure, responds with [`SdkError<UpdateAccountSendingEnabledError>`](crate::error::UpdateAccountSendingEnabledError)
pub fn update_account_sending_enabled(&self) -> fluent_builders::UpdateAccountSendingEnabled {
fluent_builders::UpdateAccountSendingEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateConfigurationSetEventDestination`](crate::client::fluent_builders::UpdateConfigurationSetEventDestination) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::UpdateConfigurationSetEventDestination::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::UpdateConfigurationSetEventDestination::set_configuration_set_name): <p>The name of the configuration set that contains the event destination that you want to update.</p>
/// - [`event_destination(EventDestination)`](crate::client::fluent_builders::UpdateConfigurationSetEventDestination::event_destination) / [`set_event_destination(Option<EventDestination>)`](crate::client::fluent_builders::UpdateConfigurationSetEventDestination::set_event_destination): <p>The event destination object that you want to apply to the specified configuration set.</p>
/// - On success, responds with [`UpdateConfigurationSetEventDestinationOutput`](crate::output::UpdateConfigurationSetEventDestinationOutput)
/// - On failure, responds with [`SdkError<UpdateConfigurationSetEventDestinationError>`](crate::error::UpdateConfigurationSetEventDestinationError)
pub fn update_configuration_set_event_destination(
&self,
) -> fluent_builders::UpdateConfigurationSetEventDestination {
fluent_builders::UpdateConfigurationSetEventDestination::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateConfigurationSetReputationMetricsEnabled`](crate::client::fluent_builders::UpdateConfigurationSetReputationMetricsEnabled) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::UpdateConfigurationSetReputationMetricsEnabled::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::UpdateConfigurationSetReputationMetricsEnabled::set_configuration_set_name): <p>The name of the configuration set that you want to update.</p>
/// - [`enabled(bool)`](crate::client::fluent_builders::UpdateConfigurationSetReputationMetricsEnabled::enabled) / [`set_enabled(bool)`](crate::client::fluent_builders::UpdateConfigurationSetReputationMetricsEnabled::set_enabled): <p>Describes whether or not Amazon SES will publish reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch.</p>
/// - On success, responds with [`UpdateConfigurationSetReputationMetricsEnabledOutput`](crate::output::UpdateConfigurationSetReputationMetricsEnabledOutput)
/// - On failure, responds with [`SdkError<UpdateConfigurationSetReputationMetricsEnabledError>`](crate::error::UpdateConfigurationSetReputationMetricsEnabledError)
pub fn update_configuration_set_reputation_metrics_enabled(
&self,
) -> fluent_builders::UpdateConfigurationSetReputationMetricsEnabled {
fluent_builders::UpdateConfigurationSetReputationMetricsEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateConfigurationSetSendingEnabled`](crate::client::fluent_builders::UpdateConfigurationSetSendingEnabled) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::UpdateConfigurationSetSendingEnabled::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::UpdateConfigurationSetSendingEnabled::set_configuration_set_name): <p>The name of the configuration set that you want to update.</p>
/// - [`enabled(bool)`](crate::client::fluent_builders::UpdateConfigurationSetSendingEnabled::enabled) / [`set_enabled(bool)`](crate::client::fluent_builders::UpdateConfigurationSetSendingEnabled::set_enabled): <p>Describes whether email sending is enabled or disabled for the configuration set. </p>
/// - On success, responds with [`UpdateConfigurationSetSendingEnabledOutput`](crate::output::UpdateConfigurationSetSendingEnabledOutput)
/// - On failure, responds with [`SdkError<UpdateConfigurationSetSendingEnabledError>`](crate::error::UpdateConfigurationSetSendingEnabledError)
pub fn update_configuration_set_sending_enabled(
&self,
) -> fluent_builders::UpdateConfigurationSetSendingEnabled {
fluent_builders::UpdateConfigurationSetSendingEnabled::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateConfigurationSetTrackingOptions`](crate::client::fluent_builders::UpdateConfigurationSetTrackingOptions) operation.
///
/// - The fluent builder is configurable:
/// - [`configuration_set_name(impl Into<String>)`](crate::client::fluent_builders::UpdateConfigurationSetTrackingOptions::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::client::fluent_builders::UpdateConfigurationSetTrackingOptions::set_configuration_set_name): <p>The name of the configuration set for which you want to update the custom tracking domain.</p>
/// - [`tracking_options(TrackingOptions)`](crate::client::fluent_builders::UpdateConfigurationSetTrackingOptions::tracking_options) / [`set_tracking_options(Option<TrackingOptions>)`](crate::client::fluent_builders::UpdateConfigurationSetTrackingOptions::set_tracking_options): <p>A domain that is used to redirect email recipients to an Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES emails.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Configuring Custom Domains to Handle Open and Click Tracking</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// - On success, responds with [`UpdateConfigurationSetTrackingOptionsOutput`](crate::output::UpdateConfigurationSetTrackingOptionsOutput)
/// - On failure, responds with [`SdkError<UpdateConfigurationSetTrackingOptionsError>`](crate::error::UpdateConfigurationSetTrackingOptionsError)
pub fn update_configuration_set_tracking_options(
&self,
) -> fluent_builders::UpdateConfigurationSetTrackingOptions {
fluent_builders::UpdateConfigurationSetTrackingOptions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateCustomVerificationEmailTemplate`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template_name(impl Into<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::template_name) / [`set_template_name(Option<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::set_template_name): <p>The name of the custom verification email template that you want to update.</p>
/// - [`from_email_address(impl Into<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::from_email_address) / [`set_from_email_address(Option<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::set_from_email_address): <p>The email address that the custom verification email is sent from.</p>
/// - [`template_subject(impl Into<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::template_subject) / [`set_template_subject(Option<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::set_template_subject): <p>The subject line of the custom verification email.</p>
/// - [`template_content(impl Into<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::template_content) / [`set_template_content(Option<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::set_template_content): <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// - [`success_redirection_url(impl Into<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::success_redirection_url) / [`set_success_redirection_url(Option<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::set_success_redirection_url): <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
/// - [`failure_redirection_url(impl Into<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::failure_redirection_url) / [`set_failure_redirection_url(Option<String>)`](crate::client::fluent_builders::UpdateCustomVerificationEmailTemplate::set_failure_redirection_url): <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
/// - On success, responds with [`UpdateCustomVerificationEmailTemplateOutput`](crate::output::UpdateCustomVerificationEmailTemplateOutput)
/// - On failure, responds with [`SdkError<UpdateCustomVerificationEmailTemplateError>`](crate::error::UpdateCustomVerificationEmailTemplateError)
pub fn update_custom_verification_email_template(
&self,
) -> fluent_builders::UpdateCustomVerificationEmailTemplate {
fluent_builders::UpdateCustomVerificationEmailTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateReceiptRule`](crate::client::fluent_builders::UpdateReceiptRule) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_set_name(impl Into<String>)`](crate::client::fluent_builders::UpdateReceiptRule::rule_set_name) / [`set_rule_set_name(Option<String>)`](crate::client::fluent_builders::UpdateReceiptRule::set_rule_set_name): <p>The name of the receipt rule set that the receipt rule belongs to.</p>
/// - [`rule(ReceiptRule)`](crate::client::fluent_builders::UpdateReceiptRule::rule) / [`set_rule(Option<ReceiptRule>)`](crate::client::fluent_builders::UpdateReceiptRule::set_rule): <p>A data structure that contains the updated receipt rule information.</p>
/// - On success, responds with [`UpdateReceiptRuleOutput`](crate::output::UpdateReceiptRuleOutput)
/// - On failure, responds with [`SdkError<UpdateReceiptRuleError>`](crate::error::UpdateReceiptRuleError)
pub fn update_receipt_rule(&self) -> fluent_builders::UpdateReceiptRule {
fluent_builders::UpdateReceiptRule::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateTemplate`](crate::client::fluent_builders::UpdateTemplate) operation.
///
/// - The fluent builder is configurable:
/// - [`template(Template)`](crate::client::fluent_builders::UpdateTemplate::template) / [`set_template(Option<Template>)`](crate::client::fluent_builders::UpdateTemplate::set_template): <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
/// - On success, responds with [`UpdateTemplateOutput`](crate::output::UpdateTemplateOutput)
/// - On failure, responds with [`SdkError<UpdateTemplateError>`](crate::error::UpdateTemplateError)
pub fn update_template(&self) -> fluent_builders::UpdateTemplate {
fluent_builders::UpdateTemplate::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`VerifyDomainDkim`](crate::client::fluent_builders::VerifyDomainDkim) operation.
///
/// - The fluent builder is configurable:
/// - [`domain(impl Into<String>)`](crate::client::fluent_builders::VerifyDomainDkim::domain) / [`set_domain(Option<String>)`](crate::client::fluent_builders::VerifyDomainDkim::set_domain): <p>The name of the domain to be verified for Easy DKIM signing.</p>
/// - On success, responds with [`VerifyDomainDkimOutput`](crate::output::VerifyDomainDkimOutput) with field(s):
/// - [`dkim_tokens(Option<Vec<String>>)`](crate::output::VerifyDomainDkimOutput::dkim_tokens): <p>A set of character strings that represent the domain's identity. If the identity is an email address, the tokens represent the domain of that address.</p> <p>Using these tokens, you need to create DNS CNAME records that point to DKIM public keys that are hosted by Amazon SES. Amazon Web Services eventually detects that you've updated your DNS records. This detection process might take up to 72 hours. After successful detection, Amazon SES is able to DKIM-sign email originating from that domain. (This only applies to domain identities, not email address identities.)</p> <p>For more information about creating DNS records using DKIM tokens, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon SES Developer Guide</a>.</p>
/// - On failure, responds with [`SdkError<VerifyDomainDkimError>`](crate::error::VerifyDomainDkimError)
pub fn verify_domain_dkim(&self) -> fluent_builders::VerifyDomainDkim {
fluent_builders::VerifyDomainDkim::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`VerifyDomainIdentity`](crate::client::fluent_builders::VerifyDomainIdentity) operation.
///
/// - The fluent builder is configurable:
/// - [`domain(impl Into<String>)`](crate::client::fluent_builders::VerifyDomainIdentity::domain) / [`set_domain(Option<String>)`](crate::client::fluent_builders::VerifyDomainIdentity::set_domain): <p>The domain to be verified.</p>
/// - On success, responds with [`VerifyDomainIdentityOutput`](crate::output::VerifyDomainIdentityOutput) with field(s):
/// - [`verification_token(Option<String>)`](crate::output::VerifyDomainIdentityOutput::verification_token): <p>A TXT record that you must place in the DNS settings of the domain to complete domain verification with Amazon SES.</p> <p>As Amazon SES searches for the TXT record, the domain's verification status is "Pending". When Amazon SES detects the record, the domain's verification status changes to "Success". If Amazon SES is unable to detect the record within 72 hours, the domain's verification status changes to "Failed." In that case, if you still want to verify the domain, you must restart the verification process from the beginning.</p>
/// - On failure, responds with [`SdkError<VerifyDomainIdentityError>`](crate::error::VerifyDomainIdentityError)
pub fn verify_domain_identity(&self) -> fluent_builders::VerifyDomainIdentity {
fluent_builders::VerifyDomainIdentity::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`VerifyEmailAddress`](crate::client::fluent_builders::VerifyEmailAddress) operation.
///
/// - The fluent builder is configurable:
/// - [`email_address(impl Into<String>)`](crate::client::fluent_builders::VerifyEmailAddress::email_address) / [`set_email_address(Option<String>)`](crate::client::fluent_builders::VerifyEmailAddress::set_email_address): <p>The email address to be verified.</p>
/// - On success, responds with [`VerifyEmailAddressOutput`](crate::output::VerifyEmailAddressOutput)
/// - On failure, responds with [`SdkError<VerifyEmailAddressError>`](crate::error::VerifyEmailAddressError)
pub fn verify_email_address(&self) -> fluent_builders::VerifyEmailAddress {
fluent_builders::VerifyEmailAddress::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`VerifyEmailIdentity`](crate::client::fluent_builders::VerifyEmailIdentity) operation.
///
/// - The fluent builder is configurable:
/// - [`email_address(impl Into<String>)`](crate::client::fluent_builders::VerifyEmailIdentity::email_address) / [`set_email_address(Option<String>)`](crate::client::fluent_builders::VerifyEmailIdentity::set_email_address): <p>The email address to be verified.</p>
/// - On success, responds with [`VerifyEmailIdentityOutput`](crate::output::VerifyEmailIdentityOutput)
/// - On failure, responds with [`SdkError<VerifyEmailIdentityError>`](crate::error::VerifyEmailIdentityError)
pub fn verify_email_identity(&self) -> fluent_builders::VerifyEmailIdentity {
fluent_builders::VerifyEmailIdentity::new(self.handle.clone())
}
}
pub mod fluent_builders {
//!
//! Utilities to ergonomically construct a request to the service.
//!
//! Fluent builders are created through the [`Client`](crate::client::Client) by calling
//! one if its operation methods. After parameters are set using the builder methods,
//! the `send` method can be called to initiate the request.
//!
/// Fluent builder constructing a request to `CloneReceiptRuleSet`.
///
/// <p>Creates a receipt rule set by cloning an existing one. All receipt rules and configurations are copied to the new receipt rule set and are completely independent of the source rule set.</p>
/// <p>For information about setting up rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CloneReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::clone_receipt_rule_set_input::Builder,
}
impl CloneReceiptRuleSet {
/// Creates a new `CloneReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CloneReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::CloneReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the rule set to create. The name must:</p>
/// <ul>
/// <li> <p>This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).</p> </li>
/// <li> <p>Start and end with a letter or number.</p> </li>
/// <li> <p>Contain less than 64 characters.</p> </li>
/// </ul>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the rule set to create. The name must:</p>
/// <ul>
/// <li> <p>This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).</p> </li>
/// <li> <p>Start and end with a letter or number.</p> </li>
/// <li> <p>Contain less than 64 characters.</p> </li>
/// </ul>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// <p>The name of the rule set to clone.</p>
pub fn original_rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.original_rule_set_name(input.into());
self
}
/// <p>The name of the rule set to clone.</p>
pub fn set_original_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_original_rule_set_name(input);
self
}
}
/// Fluent builder constructing a request to `CreateConfigurationSet`.
///
/// <p>Creates a configuration set.</p>
/// <p>Configuration sets enable you to publish email sending events. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateConfigurationSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_configuration_set_input::Builder,
}
impl CreateConfigurationSet {
/// Creates a new `CreateConfigurationSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateConfigurationSetOutput,
aws_smithy_http::result::SdkError<crate::error::CreateConfigurationSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>A data structure that contains the name of the configuration set.</p>
pub fn configuration_set(mut self, input: crate::model::ConfigurationSet) -> Self {
self.inner = self.inner.configuration_set(input);
self
}
/// <p>A data structure that contains the name of the configuration set.</p>
pub fn set_configuration_set(
mut self,
input: std::option::Option<crate::model::ConfigurationSet>,
) -> Self {
self.inner = self.inner.set_configuration_set(input);
self
}
}
/// Fluent builder constructing a request to `CreateConfigurationSetEventDestination`.
///
/// <p>Creates a configuration set event destination.</p> <note>
/// <p>When you create or update an event destination, you must provide one, and only one, destination. The destination can be CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS).</p>
/// </note>
/// <p>An event destination is the AWS service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateConfigurationSetEventDestination {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_configuration_set_event_destination_input::Builder,
}
impl CreateConfigurationSetEventDestination {
/// Creates a new `CreateConfigurationSetEventDestination`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateConfigurationSetEventDestinationOutput,
aws_smithy_http::result::SdkError<
crate::error::CreateConfigurationSetEventDestinationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set that the event destination should be associated with.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set that the event destination should be associated with.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>An object that describes the AWS service that email sending event information will be published to.</p>
pub fn event_destination(mut self, input: crate::model::EventDestination) -> Self {
self.inner = self.inner.event_destination(input);
self
}
/// <p>An object that describes the AWS service that email sending event information will be published to.</p>
pub fn set_event_destination(
mut self,
input: std::option::Option<crate::model::EventDestination>,
) -> Self {
self.inner = self.inner.set_event_destination(input);
self
}
}
/// Fluent builder constructing a request to `CreateConfigurationSetTrackingOptions`.
///
/// <p>Creates an association between a configuration set and a custom domain for open and click event tracking. </p>
/// <p>By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateConfigurationSetTrackingOptions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_configuration_set_tracking_options_input::Builder,
}
impl CreateConfigurationSetTrackingOptions {
/// Creates a new `CreateConfigurationSetTrackingOptions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateConfigurationSetTrackingOptionsOutput,
aws_smithy_http::result::SdkError<
crate::error::CreateConfigurationSetTrackingOptionsError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set that the tracking options should be associated with.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set that the tracking options should be associated with.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>A domain that is used to redirect email recipients to an Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES emails.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Configuring Custom Domains to Handle Open and Click Tracking</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn tracking_options(mut self, input: crate::model::TrackingOptions) -> Self {
self.inner = self.inner.tracking_options(input);
self
}
/// <p>A domain that is used to redirect email recipients to an Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES emails.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Configuring Custom Domains to Handle Open and Click Tracking</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn set_tracking_options(
mut self,
input: std::option::Option<crate::model::TrackingOptions>,
) -> Self {
self.inner = self.inner.set_tracking_options(input);
self
}
}
/// Fluent builder constructing a request to `CreateCustomVerificationEmailTemplate`.
///
/// <p>Creates a new custom verification email template.</p>
/// <p>For more information about custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html">Using Custom Verification Email Templates</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateCustomVerificationEmailTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_custom_verification_email_template_input::Builder,
}
impl CreateCustomVerificationEmailTemplate {
/// Creates a new `CreateCustomVerificationEmailTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateCustomVerificationEmailTemplateOutput,
aws_smithy_http::result::SdkError<
crate::error::CreateCustomVerificationEmailTemplateError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the custom verification email template.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the custom verification email template.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
/// <p>The email address that the custom verification email is sent from.</p>
pub fn from_email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.from_email_address(input.into());
self
}
/// <p>The email address that the custom verification email is sent from.</p>
pub fn set_from_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_from_email_address(input);
self
}
/// <p>The subject line of the custom verification email.</p>
pub fn template_subject(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_subject(input.into());
self
}
/// <p>The subject line of the custom verification email.</p>
pub fn set_template_subject(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_subject(input);
self
}
/// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn template_content(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_content(input.into());
self
}
/// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn set_template_content(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_content(input);
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
pub fn success_redirection_url(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.success_redirection_url(input.into());
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
pub fn set_success_redirection_url(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_success_redirection_url(input);
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
pub fn failure_redirection_url(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.failure_redirection_url(input.into());
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
pub fn set_failure_redirection_url(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_failure_redirection_url(input);
self
}
}
/// Fluent builder constructing a request to `CreateReceiptFilter`.
///
/// <p>Creates a new IP address filter.</p>
/// <p>For information about setting up IP address filters, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateReceiptFilter {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_receipt_filter_input::Builder,
}
impl CreateReceiptFilter {
/// Creates a new `CreateReceiptFilter`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateReceiptFilterOutput,
aws_smithy_http::result::SdkError<crate::error::CreateReceiptFilterError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.</p>
pub fn filter(mut self, input: crate::model::ReceiptFilter) -> Self {
self.inner = self.inner.filter(input);
self
}
/// <p>A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.</p>
pub fn set_filter(
mut self,
input: std::option::Option<crate::model::ReceiptFilter>,
) -> Self {
self.inner = self.inner.set_filter(input);
self
}
}
/// Fluent builder constructing a request to `CreateReceiptRule`.
///
/// <p>Creates a receipt rule.</p>
/// <p>For information about setting up receipt rules, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateReceiptRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_receipt_rule_input::Builder,
}
impl CreateReceiptRule {
/// Creates a new `CreateReceiptRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateReceiptRuleOutput,
aws_smithy_http::result::SdkError<crate::error::CreateReceiptRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the rule set that the receipt rule will be added to.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the rule set that the receipt rule will be added to.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// <p>The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.</p>
pub fn after(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.after(input.into());
self
}
/// <p>The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.</p>
pub fn set_after(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_after(input);
self
}
/// <p>A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.</p>
pub fn rule(mut self, input: crate::model::ReceiptRule) -> Self {
self.inner = self.inner.rule(input);
self
}
/// <p>A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.</p>
pub fn set_rule(mut self, input: std::option::Option<crate::model::ReceiptRule>) -> Self {
self.inner = self.inner.set_rule(input);
self
}
}
/// Fluent builder constructing a request to `CreateReceiptRuleSet`.
///
/// <p>Creates an empty receipt rule set.</p>
/// <p>For information about setting up receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_receipt_rule_set_input::Builder,
}
impl CreateReceiptRuleSet {
/// Creates a new `CreateReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::CreateReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the rule set to create. The name must:</p>
/// <ul>
/// <li> <p>This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).</p> </li>
/// <li> <p>Start and end with a letter or number.</p> </li>
/// <li> <p>Contain less than 64 characters.</p> </li>
/// </ul>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the rule set to create. The name must:</p>
/// <ul>
/// <li> <p>This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).</p> </li>
/// <li> <p>Start and end with a letter or number.</p> </li>
/// <li> <p>Contain less than 64 characters.</p> </li>
/// </ul>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
}
/// Fluent builder constructing a request to `CreateTemplate`.
///
/// <p>Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_template_input::Builder,
}
impl CreateTemplate {
/// Creates a new `CreateTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
pub fn template(mut self, input: crate::model::Template) -> Self {
self.inner = self.inner.template(input);
self
}
/// <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
pub fn set_template(mut self, input: std::option::Option<crate::model::Template>) -> Self {
self.inner = self.inner.set_template(input);
self
}
}
/// Fluent builder constructing a request to `DeleteConfigurationSet`.
///
/// <p>Deletes a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteConfigurationSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_configuration_set_input::Builder,
}
impl DeleteConfigurationSet {
/// Creates a new `DeleteConfigurationSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteConfigurationSetOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteConfigurationSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set to delete.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set to delete.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteConfigurationSetEventDestination`.
///
/// <p>Deletes a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteConfigurationSetEventDestination {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_configuration_set_event_destination_input::Builder,
}
impl DeleteConfigurationSetEventDestination {
/// Creates a new `DeleteConfigurationSetEventDestination`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteConfigurationSetEventDestinationOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteConfigurationSetEventDestinationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set from which to delete the event destination.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set from which to delete the event destination.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>The name of the event destination to delete.</p>
pub fn event_destination_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.event_destination_name(input.into());
self
}
/// <p>The name of the event destination to delete.</p>
pub fn set_event_destination_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_event_destination_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteConfigurationSetTrackingOptions`.
///
/// <p>Deletes an association between a configuration set and a custom domain for open and click event tracking.</p>
/// <p>By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Deleting this kind of association will result in emails sent using the specified configuration set to capture open and click events using the standard, Amazon SES-operated domains.</p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteConfigurationSetTrackingOptions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_configuration_set_tracking_options_input::Builder,
}
impl DeleteConfigurationSetTrackingOptions {
/// Creates a new `DeleteConfigurationSetTrackingOptions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteConfigurationSetTrackingOptionsOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteConfigurationSetTrackingOptionsError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set from which you want to delete the tracking options.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set from which you want to delete the tracking options.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteCustomVerificationEmailTemplate`.
///
/// <p>Deletes an existing custom verification email template. </p>
/// <p>For more information about custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html">Using Custom Verification Email Templates</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteCustomVerificationEmailTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_custom_verification_email_template_input::Builder,
}
impl DeleteCustomVerificationEmailTemplate {
/// Creates a new `DeleteCustomVerificationEmailTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteCustomVerificationEmailTemplateOutput,
aws_smithy_http::result::SdkError<
crate::error::DeleteCustomVerificationEmailTemplateError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the custom verification email template that you want to delete.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the custom verification email template that you want to delete.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteIdentity`.
///
/// <p>Deletes the specified identity (an email address or a domain) from the list of verified identities.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteIdentity {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_identity_input::Builder,
}
impl DeleteIdentity {
/// Creates a new `DeleteIdentity`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteIdentityOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteIdentityError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity to be removed from the list of identities for the AWS Account.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity to be removed from the list of identities for the AWS Account.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
}
/// Fluent builder constructing a request to `DeleteIdentityPolicy`.
///
/// <p>Deletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist.</p> <note>
/// <p>This API is for the identity owner only. If you have not verified the identity, this API will return an error.</p>
/// </note>
/// <p>Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteIdentityPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_identity_policy_input::Builder,
}
impl DeleteIdentityPolicy {
/// Creates a new `DeleteIdentityPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteIdentityPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteIdentityPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity that is associated with the policy that you want to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity that is associated with the policy that you want to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>The name of the policy to be deleted.</p>
pub fn policy_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.policy_name(input.into());
self
}
/// <p>The name of the policy to be deleted.</p>
pub fn set_policy_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_policy_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteReceiptFilter`.
///
/// <p>Deletes the specified IP address filter.</p>
/// <p>For information about managing IP address filters, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteReceiptFilter {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_receipt_filter_input::Builder,
}
impl DeleteReceiptFilter {
/// Creates a new `DeleteReceiptFilter`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteReceiptFilterOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteReceiptFilterError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the IP address filter to delete.</p>
pub fn filter_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.filter_name(input.into());
self
}
/// <p>The name of the IP address filter to delete.</p>
pub fn set_filter_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_filter_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteReceiptRule`.
///
/// <p>Deletes the specified receipt rule.</p>
/// <p>For information about managing receipt rules, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteReceiptRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_receipt_rule_input::Builder,
}
impl DeleteReceiptRule {
/// Creates a new `DeleteReceiptRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteReceiptRuleOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteReceiptRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set that contains the receipt rule to delete.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set that contains the receipt rule to delete.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// <p>The name of the receipt rule to delete.</p>
pub fn rule_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_name(input.into());
self
}
/// <p>The name of the receipt rule to delete.</p>
pub fn set_rule_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_rule_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteReceiptRuleSet`.
///
/// <p>Deletes the specified receipt rule set and all of the receipt rules it contains.</p> <note>
/// <p>The currently active rule set cannot be deleted.</p>
/// </note>
/// <p>For information about managing receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_receipt_rule_set_input::Builder,
}
impl DeleteReceiptRuleSet {
/// Creates a new `DeleteReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set to delete.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set to delete.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteTemplate`.
///
/// <p>Deletes an email template.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_template_input::Builder,
}
impl DeleteTemplate {
/// Creates a new `DeleteTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the template to be deleted.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the template to be deleted.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteVerifiedEmailAddress`.
///
/// <p>Deprecated. Use the <code>DeleteIdentity</code> operation to delete email addresses and domains.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteVerifiedEmailAddress {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_verified_email_address_input::Builder,
}
impl DeleteVerifiedEmailAddress {
/// Creates a new `DeleteVerifiedEmailAddress`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteVerifiedEmailAddressOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteVerifiedEmailAddressError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>An email address to be removed from the list of verified addresses.</p>
pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.email_address(input.into());
self
}
/// <p>An email address to be removed from the list of verified addresses.</p>
pub fn set_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_email_address(input);
self
}
}
/// Fluent builder constructing a request to `DescribeActiveReceiptRuleSet`.
///
/// <p>Returns the metadata and receipt rules for the receipt rule set that is currently active.</p>
/// <p>For information about setting up receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeActiveReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_active_receipt_rule_set_input::Builder,
}
impl DescribeActiveReceiptRuleSet {
/// Creates a new `DescribeActiveReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeActiveReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeActiveReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `DescribeConfigurationSet`.
///
/// <p>Returns the details of the specified configuration set. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeConfigurationSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_configuration_set_input::Builder,
}
impl DescribeConfigurationSet {
/// Creates a new `DescribeConfigurationSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeConfigurationSetOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeConfigurationSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set to describe.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set to describe.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// Appends an item to `ConfigurationSetAttributeNames`.
///
/// To override the contents of this collection use [`set_configuration_set_attribute_names`](Self::set_configuration_set_attribute_names).
///
/// <p>A list of configuration set attributes to return.</p>
pub fn configuration_set_attribute_names(
mut self,
input: crate::model::ConfigurationSetAttribute,
) -> Self {
self.inner = self.inner.configuration_set_attribute_names(input);
self
}
/// <p>A list of configuration set attributes to return.</p>
pub fn set_configuration_set_attribute_names(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ConfigurationSetAttribute>>,
) -> Self {
self.inner = self.inner.set_configuration_set_attribute_names(input);
self
}
}
/// Fluent builder constructing a request to `DescribeReceiptRule`.
///
/// <p>Returns the details of the specified receipt rule.</p>
/// <p>For information about setting up receipt rules, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeReceiptRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_receipt_rule_input::Builder,
}
impl DescribeReceiptRule {
/// Creates a new `DescribeReceiptRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeReceiptRuleOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeReceiptRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set that the receipt rule belongs to.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set that the receipt rule belongs to.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// <p>The name of the receipt rule.</p>
pub fn rule_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_name(input.into());
self
}
/// <p>The name of the receipt rule.</p>
pub fn set_rule_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_rule_name(input);
self
}
}
/// Fluent builder constructing a request to `DescribeReceiptRuleSet`.
///
/// <p>Returns the details of the specified receipt rule set.</p>
/// <p>For information about managing receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_receipt_rule_set_input::Builder,
}
impl DescribeReceiptRuleSet {
/// Creates a new `DescribeReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set to describe.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set to describe.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
}
/// Fluent builder constructing a request to `GetAccountSendingEnabled`.
///
/// <p>Returns the email sending status of the Amazon SES account for the current region.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetAccountSendingEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_account_sending_enabled_input::Builder,
}
impl GetAccountSendingEnabled {
/// Creates a new `GetAccountSendingEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetAccountSendingEnabledOutput,
aws_smithy_http::result::SdkError<crate::error::GetAccountSendingEnabledError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `GetCustomVerificationEmailTemplate`.
///
/// <p>Returns the custom email verification template for the template name you specify.</p>
/// <p>For more information about custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html">Using Custom Verification Email Templates</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetCustomVerificationEmailTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_custom_verification_email_template_input::Builder,
}
impl GetCustomVerificationEmailTemplate {
/// Creates a new `GetCustomVerificationEmailTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetCustomVerificationEmailTemplateOutput,
aws_smithy_http::result::SdkError<
crate::error::GetCustomVerificationEmailTemplateError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the custom verification email template that you want to retrieve.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the custom verification email template that you want to retrieve.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
}
/// Fluent builder constructing a request to `GetIdentityDkimAttributes`.
///
/// <p>Returns the current status of Easy DKIM signing for an entity. For domain name identities, this operation also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.</p>
/// <p>This operation takes a list of identities as input and returns the following information for each:</p>
/// <ul>
/// <li> <p>Whether Easy DKIM signing is enabled or disabled.</p> </li>
/// <li> <p>A set of DKIM tokens that represent the identity. If the identity is an email address, the tokens represent the domain of that address.</p> </li>
/// <li> <p>Whether Amazon SES has successfully verified the DKIM tokens published in the domain's DNS. This information is only returned for domain name identities, not for email addresses.</p> </li>
/// </ul>
/// <p>This operation is throttled at one request per second and can only get DKIM attributes for up to 100 identities at a time.</p>
/// <p>For more information about creating DNS records using DKIM tokens, go to the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetIdentityDkimAttributes {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_identity_dkim_attributes_input::Builder,
}
impl GetIdentityDkimAttributes {
/// Creates a new `GetIdentityDkimAttributes`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetIdentityDkimAttributesOutput,
aws_smithy_http::result::SdkError<crate::error::GetIdentityDkimAttributesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Appends an item to `Identities`.
///
/// To override the contents of this collection use [`set_identities`](Self::set_identities).
///
/// <p>A list of one or more verified identities - email addresses, domains, or both.</p>
pub fn identities(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identities(input.into());
self
}
/// <p>A list of one or more verified identities - email addresses, domains, or both.</p>
pub fn set_identities(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_identities(input);
self
}
}
/// Fluent builder constructing a request to `GetIdentityMailFromDomainAttributes`.
///
/// <p>Returns the custom MAIL FROM attributes for a list of identities (email addresses : domains).</p>
/// <p>This operation is throttled at one request per second and can only get custom MAIL FROM attributes for up to 100 identities at a time.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetIdentityMailFromDomainAttributes {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_identity_mail_from_domain_attributes_input::Builder,
}
impl GetIdentityMailFromDomainAttributes {
/// Creates a new `GetIdentityMailFromDomainAttributes`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetIdentityMailFromDomainAttributesOutput,
aws_smithy_http::result::SdkError<
crate::error::GetIdentityMailFromDomainAttributesError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Appends an item to `Identities`.
///
/// To override the contents of this collection use [`set_identities`](Self::set_identities).
///
/// <p>A list of one or more identities.</p>
pub fn identities(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identities(input.into());
self
}
/// <p>A list of one or more identities.</p>
pub fn set_identities(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_identities(input);
self
}
}
/// Fluent builder constructing a request to `GetIdentityNotificationAttributes`.
///
/// <p>Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes.</p>
/// <p>This operation is throttled at one request per second and can only get notification attributes for up to 100 identities at a time.</p>
/// <p>For more information about using notifications with Amazon SES, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetIdentityNotificationAttributes {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_identity_notification_attributes_input::Builder,
}
impl GetIdentityNotificationAttributes {
/// Creates a new `GetIdentityNotificationAttributes`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetIdentityNotificationAttributesOutput,
aws_smithy_http::result::SdkError<crate::error::GetIdentityNotificationAttributesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Appends an item to `Identities`.
///
/// To override the contents of this collection use [`set_identities`](Self::set_identities).
///
/// <p>A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
pub fn identities(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identities(input.into());
self
}
/// <p>A list of one or more identities. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
pub fn set_identities(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_identities(input);
self
}
}
/// Fluent builder constructing a request to `GetIdentityPolicies`.
///
/// <p>Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.</p> <note>
/// <p>This API is for the identity owner only. If you have not verified the identity, this API will return an error.</p>
/// </note>
/// <p>Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetIdentityPolicies {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_identity_policies_input::Builder,
}
impl GetIdentityPolicies {
/// Creates a new `GetIdentityPolicies`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetIdentityPoliciesOutput,
aws_smithy_http::result::SdkError<crate::error::GetIdentityPoliciesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity for which the policies will be retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity for which the policies will be retrieved. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// Appends an item to `PolicyNames`.
///
/// To override the contents of this collection use [`set_policy_names`](Self::set_policy_names).
///
/// <p>A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use <code>ListIdentityPolicies</code>.</p>
pub fn policy_names(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.policy_names(input.into());
self
}
/// <p>A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use <code>ListIdentityPolicies</code>.</p>
pub fn set_policy_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_policy_names(input);
self
}
}
/// Fluent builder constructing a request to `GetIdentityVerificationAttributes`.
///
/// <p>Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity.</p>
/// <p>The verification status of an email address is "Pending" until the email address owner clicks the link within the verification email that Amazon SES sent to that address. If the email address owner clicks the link within 24 hours, the verification status of the email address changes to "Success". If the link is not clicked within 24 hours, the verification status changes to "Failed." In that case, if you still want to verify the email address, you must restart the verification process from the beginning.</p>
/// <p>For domain identities, the domain's verification status is "Pending" as Amazon SES searches for the required TXT record in the DNS settings of the domain. When Amazon SES detects the record, the domain's verification status changes to "Success". If Amazon SES is unable to detect the record within 72 hours, the domain's verification status changes to "Failed." In that case, if you still want to verify the domain, you must restart the verification process from the beginning.</p>
/// <p>This operation is throttled at one request per second and can only get verification attributes for up to 100 identities at a time.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetIdentityVerificationAttributes {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_identity_verification_attributes_input::Builder,
}
impl GetIdentityVerificationAttributes {
/// Creates a new `GetIdentityVerificationAttributes`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetIdentityVerificationAttributesOutput,
aws_smithy_http::result::SdkError<crate::error::GetIdentityVerificationAttributesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Appends an item to `Identities`.
///
/// To override the contents of this collection use [`set_identities`](Self::set_identities).
///
/// <p>A list of identities.</p>
pub fn identities(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identities(input.into());
self
}
/// <p>A list of identities.</p>
pub fn set_identities(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_identities(input);
self
}
}
/// Fluent builder constructing a request to `GetSendQuota`.
///
/// <p>Provides the sending limits for the Amazon SES account. </p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetSendQuota {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_send_quota_input::Builder,
}
impl GetSendQuota {
/// Creates a new `GetSendQuota`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetSendQuotaOutput,
aws_smithy_http::result::SdkError<crate::error::GetSendQuotaError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `GetSendStatistics`.
///
/// <p>Provides sending statistics for the current AWS Region. The result is a list of data points, representing the last two weeks of sending activity. Each data point in the list contains statistics for a 15-minute period of time.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetSendStatistics {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_send_statistics_input::Builder,
}
impl GetSendStatistics {
/// Creates a new `GetSendStatistics`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetSendStatisticsOutput,
aws_smithy_http::result::SdkError<crate::error::GetSendStatisticsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `GetTemplate`.
///
/// <p>Displays the template object (which includes the Subject line, HTML part and text part) for the template you specify.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct GetTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::get_template_input::Builder,
}
impl GetTemplate {
/// Creates a new `GetTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::GetTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the template you want to retrieve.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the template you want to retrieve.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
}
/// Fluent builder constructing a request to `ListConfigurationSets`.
///
/// <p>Provides a list of the configuration sets associated with your Amazon SES account in the current AWS Region. For information about using configuration sets, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Monitoring Your Amazon SES Sending Activity</a> in the <i>Amazon SES Developer Guide.</i> </p>
/// <p>You can execute this operation no more than once per second. This operation will return up to 1,000 configuration sets each time it is run. If your Amazon SES account has more than 1,000 configuration sets, this operation will also return a NextToken element. You can then execute the <code>ListConfigurationSets</code> operation again, passing the <code>NextToken</code> parameter and the value of the NextToken element to retrieve additional results.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListConfigurationSets {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_configuration_sets_input::Builder,
}
impl ListConfigurationSets {
/// Creates a new `ListConfigurationSets`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListConfigurationSetsOutput,
aws_smithy_http::result::SdkError<crate::error::ListConfigurationSetsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position of the configuration set in the configuration set list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position of the configuration set in the configuration set list.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The number of configuration sets to return.</p>
pub fn max_items(mut self, input: i32) -> Self {
self.inner = self.inner.max_items(input);
self
}
/// <p>The number of configuration sets to return.</p>
pub fn set_max_items(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_items(input);
self
}
}
/// Fluent builder constructing a request to `ListCustomVerificationEmailTemplates`.
///
/// <p>Lists the existing custom verification email templates for your account in the current AWS Region.</p>
/// <p>For more information about custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html">Using Custom Verification Email Templates</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListCustomVerificationEmailTemplates {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_custom_verification_email_templates_input::Builder,
}
impl ListCustomVerificationEmailTemplates {
/// Creates a new `ListCustomVerificationEmailTemplates`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListCustomVerificationEmailTemplatesOutput,
aws_smithy_http::result::SdkError<
crate::error::ListCustomVerificationEmailTemplatesError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListCustomVerificationEmailTemplatesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(
self,
) -> crate::paginator::ListCustomVerificationEmailTemplatesPaginator {
crate::paginator::ListCustomVerificationEmailTemplatesPaginator::new(
self.handle,
self.inner,
)
}
/// <p>An array the contains the name and creation time stamp for each template in your Amazon SES account.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>An array the contains the name and creation time stamp for each template in your Amazon SES account.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation will return up to 50 results.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation will return up to 50 results.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListIdentities`.
///
/// <p>Returns a list containing all of the identities (email addresses and domains) for your AWS account in the current AWS Region, regardless of verification status.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListIdentities {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_identities_input::Builder,
}
impl ListIdentities {
/// Creates a new `ListIdentities`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListIdentitiesOutput,
aws_smithy_http::result::SdkError<crate::error::ListIdentitiesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListIdentitiesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListIdentitiesPaginator {
crate::paginator::ListIdentitiesPaginator::new(self.handle, self.inner)
}
/// <p>The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.</p>
pub fn identity_type(mut self, input: crate::model::IdentityType) -> Self {
self.inner = self.inner.identity_type(input);
self
}
/// <p>The type of the identities to list. Possible values are "EmailAddress" and "Domain". If this parameter is omitted, then all identities will be listed.</p>
pub fn set_identity_type(
mut self,
input: std::option::Option<crate::model::IdentityType>,
) -> Self {
self.inner = self.inner.set_identity_type(input);
self
}
/// <p>The token to use for pagination.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>The token to use for pagination.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of identities per page. Possible values are 1-1000 inclusive.</p>
pub fn max_items(mut self, input: i32) -> Self {
self.inner = self.inner.max_items(input);
self
}
/// <p>The maximum number of identities per page. Possible values are 1-1000 inclusive.</p>
pub fn set_max_items(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_items(input);
self
}
}
/// Fluent builder constructing a request to `ListIdentityPolicies`.
///
/// <p>Returns a list of sending authorization policies that are attached to the given identity (an email address or a domain). This API returns only a list. If you want the actual policy content, you can use <code>GetIdentityPolicies</code>.</p> <note>
/// <p>This API is for the identity owner only. If you have not verified the identity, this API will return an error.</p>
/// </note>
/// <p>Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListIdentityPolicies {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_identity_policies_input::Builder,
}
impl ListIdentityPolicies {
/// Creates a new `ListIdentityPolicies`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListIdentityPoliciesOutput,
aws_smithy_http::result::SdkError<crate::error::ListIdentityPoliciesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity that is associated with the policy for which the policies will be listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity that is associated with the policy for which the policies will be listed. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
}
/// Fluent builder constructing a request to `ListReceiptFilters`.
///
/// <p>Lists the IP address filters associated with your AWS account in the current AWS Region.</p>
/// <p>For information about managing IP address filters, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListReceiptFilters {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_receipt_filters_input::Builder,
}
impl ListReceiptFilters {
/// Creates a new `ListReceiptFilters`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListReceiptFiltersOutput,
aws_smithy_http::result::SdkError<crate::error::ListReceiptFiltersError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `ListReceiptRuleSets`.
///
/// <p>Lists the receipt rule sets that exist under your AWS account in the current AWS Region. If there are additional receipt rule sets to be retrieved, you will receive a <code>NextToken</code> that you can provide to the next call to <code>ListReceiptRuleSets</code> to retrieve the additional entries.</p>
/// <p>For information about managing receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListReceiptRuleSets {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_receipt_rule_sets_input::Builder,
}
impl ListReceiptRuleSets {
/// Creates a new `ListReceiptRuleSets`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListReceiptRuleSetsOutput,
aws_smithy_http::result::SdkError<crate::error::ListReceiptRuleSetsError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>A token returned from a previous call to <code>ListReceiptRuleSets</code> to indicate the position in the receipt rule set list.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A token returned from a previous call to <code>ListReceiptRuleSets</code> to indicate the position in the receipt rule set list.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListTemplates`.
///
/// <p>Lists the email templates present in your Amazon SES account in the current AWS Region.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTemplates {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_templates_input::Builder,
}
impl ListTemplates {
/// Creates a new `ListTemplates`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListTemplatesOutput,
aws_smithy_http::result::SdkError<crate::error::ListTemplatesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>A token returned from a previous call to <code>ListTemplates</code> to indicate the position in the list of email templates.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>A token returned from a previous call to <code>ListTemplates</code> to indicate the position in the list of email templates.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.</p>
pub fn max_items(mut self, input: i32) -> Self {
self.inner = self.inner.max_items(input);
self
}
/// <p>The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.</p>
pub fn set_max_items(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_items(input);
self
}
}
/// Fluent builder constructing a request to `ListVerifiedEmailAddresses`.
///
/// <p>Deprecated. Use the <code>ListIdentities</code> operation to list the email addresses and domains associated with your account.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListVerifiedEmailAddresses {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_verified_email_addresses_input::Builder,
}
impl ListVerifiedEmailAddresses {
/// Creates a new `ListVerifiedEmailAddresses`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListVerifiedEmailAddressesOutput,
aws_smithy_http::result::SdkError<crate::error::ListVerifiedEmailAddressesError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
}
/// Fluent builder constructing a request to `PutConfigurationSetDeliveryOptions`.
///
/// <p>Adds or updates the delivery options for a configuration set.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutConfigurationSetDeliveryOptions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_configuration_set_delivery_options_input::Builder,
}
impl PutConfigurationSetDeliveryOptions {
/// Creates a new `PutConfigurationSetDeliveryOptions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutConfigurationSetDeliveryOptionsOutput,
aws_smithy_http::result::SdkError<
crate::error::PutConfigurationSetDeliveryOptionsError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set that you want to specify the delivery options for.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set that you want to specify the delivery options for.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).</p>
pub fn delivery_options(mut self, input: crate::model::DeliveryOptions) -> Self {
self.inner = self.inner.delivery_options(input);
self
}
/// <p>Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).</p>
pub fn set_delivery_options(
mut self,
input: std::option::Option<crate::model::DeliveryOptions>,
) -> Self {
self.inner = self.inner.set_delivery_options(input);
self
}
}
/// Fluent builder constructing a request to `PutIdentityPolicy`.
///
/// <p>Adds or updates a sending authorization policy for the specified identity (an email address or a domain).</p> <note>
/// <p>This API is for the identity owner only. If you have not verified the identity, this API will return an error.</p>
/// </note>
/// <p>Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PutIdentityPolicy {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::put_identity_policy_input::Builder,
}
impl PutIdentityPolicy {
/// Creates a new `PutIdentityPolicy`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutIdentityPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::PutIdentityPolicyError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
/// <p>To successfully call this API, you must own the identity.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>The name of the policy.</p>
/// <p>The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.</p>
pub fn policy_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.policy_name(input.into());
self
}
/// <p>The name of the policy.</p>
/// <p>The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.</p>
pub fn set_policy_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_policy_name(input);
self
}
/// <p>The text of the policy in JSON format. The policy cannot exceed 4 KB.</p>
/// <p>For information about the syntax of sending authorization policies, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html">Amazon SES Developer Guide</a>. </p>
pub fn policy(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.policy(input.into());
self
}
/// <p>The text of the policy in JSON format. The policy cannot exceed 4 KB.</p>
/// <p>For information about the syntax of sending authorization policies, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html">Amazon SES Developer Guide</a>. </p>
pub fn set_policy(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_policy(input);
self
}
}
/// Fluent builder constructing a request to `ReorderReceiptRuleSet`.
///
/// <p>Reorders the receipt rules within a receipt rule set.</p> <note>
/// <p>All of the rules in the rule set must be represented in this request. That is, this API will return an error if the reorder request doesn't explicitly position all of the rules.</p>
/// </note>
/// <p>For information about managing receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ReorderReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::reorder_receipt_rule_set_input::Builder,
}
impl ReorderReceiptRuleSet {
/// Creates a new `ReorderReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ReorderReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::ReorderReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set to reorder.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set to reorder.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// Appends an item to `RuleNames`.
///
/// To override the contents of this collection use [`set_rule_names`](Self::set_rule_names).
///
/// <p>A list of the specified receipt rule set's receipt rules in the order that you want to put them.</p>
pub fn rule_names(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_names(input.into());
self
}
/// <p>A list of the specified receipt rule set's receipt rules in the order that you want to put them.</p>
pub fn set_rule_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_rule_names(input);
self
}
}
/// Fluent builder constructing a request to `SendBounce`.
///
/// <p>Generates and sends a bounce message to the sender of an email you received through Amazon SES. You can only use this API on an email up to 24 hours after you receive it.</p> <note>
/// <p>You cannot use this API to send generic bounces for mail that was not received by Amazon SES.</p>
/// </note>
/// <p>For information about receiving email through Amazon SES, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SendBounce {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::send_bounce_input::Builder,
}
impl SendBounce {
/// Creates a new `SendBounce`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SendBounceOutput,
aws_smithy_http::result::SdkError<crate::error::SendBounceError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The message ID of the message to be bounced.</p>
pub fn original_message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.original_message_id(input.into());
self
}
/// <p>The message ID of the message to be bounced.</p>
pub fn set_original_message_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_original_message_id(input);
self
}
/// <p>The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.</p>
pub fn bounce_sender(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.bounce_sender(input.into());
self
}
/// <p>The address to use in the "From" header of the bounce message. This must be an identity that you have verified with Amazon SES.</p>
pub fn set_bounce_sender(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_bounce_sender(input);
self
}
/// <p>Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.</p>
pub fn explanation(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.explanation(input.into());
self
}
/// <p>Human-readable text for the bounce message to explain the failure. If not specified, the text will be auto-generated based on the bounced recipient information.</p>
pub fn set_explanation(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_explanation(input);
self
}
/// <p>Message-related DSN fields. If not specified, Amazon SES will choose the values.</p>
pub fn message_dsn(mut self, input: crate::model::MessageDsn) -> Self {
self.inner = self.inner.message_dsn(input);
self
}
/// <p>Message-related DSN fields. If not specified, Amazon SES will choose the values.</p>
pub fn set_message_dsn(
mut self,
input: std::option::Option<crate::model::MessageDsn>,
) -> Self {
self.inner = self.inner.set_message_dsn(input);
self
}
/// Appends an item to `BouncedRecipientInfoList`.
///
/// To override the contents of this collection use [`set_bounced_recipient_info_list`](Self::set_bounced_recipient_info_list).
///
/// <p>A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one <code>BouncedRecipientInfo</code> in the list.</p>
pub fn bounced_recipient_info_list(
mut self,
input: crate::model::BouncedRecipientInfo,
) -> Self {
self.inner = self.inner.bounced_recipient_info_list(input);
self
}
/// <p>A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one <code>BouncedRecipientInfo</code> in the list.</p>
pub fn set_bounced_recipient_info_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BouncedRecipientInfo>>,
) -> Self {
self.inner = self.inner.set_bounced_recipient_info_list(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn bounce_sender_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.bounce_sender_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the "From" header of the bounce. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_bounce_sender_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_bounce_sender_arn(input);
self
}
}
/// Fluent builder constructing a request to `SendBulkTemplatedEmail`.
///
/// <p>Composes an email message to multiple destinations. The message body is created using an email template.</p>
/// <p>In order to send email using the <code>SendBulkTemplatedEmail</code> operation, your call to the API must meet the following requirements:</p>
/// <ul>
/// <li> <p>The call must refer to an existing email template. You can create email templates using the <code>CreateTemplate</code> operation.</p> </li>
/// <li> <p>The message must be sent from a verified email address or domain.</p> </li>
/// <li> <p>If your account is still in the Amazon SES sandbox, you may only send to verified addresses or domains, or to email addresses associated with the Amazon SES Mailbox Simulator. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Verifying Email Addresses and Domains</a> in the <i>Amazon SES Developer Guide.</i> </p> </li>
/// <li> <p>The maximum message size is 10 MB.</p> </li>
/// <li> <p>Each <code>Destination</code> parameter must include at least one recipient email address. The recipient address can be a To: address, a CC: address, or a BCC: address. If a recipient email address is invalid (that is, it is not in the format <i>UserName@[SubDomain.]Domain.TopLevelDomain</i>), the entire message will be rejected, even if the message contains other recipients that are valid.</p> </li>
/// <li> <p>The message may not include more than 50 recipients, across the To:, CC: and BCC: fields. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call the <code>SendBulkTemplatedEmail</code> operation several times to send the message to each group.</p> </li>
/// <li> <p>The number of destinations you can contact in a single call to the API may be limited by your account's maximum sending rate.</p> </li>
/// </ul>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SendBulkTemplatedEmail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::send_bulk_templated_email_input::Builder,
}
impl SendBulkTemplatedEmail {
/// Creates a new `SendBulkTemplatedEmail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SendBulkTemplatedEmailOutput,
aws_smithy_http::result::SdkError<crate::error::SendBulkTemplatedEmailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p>
/// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
pub fn source(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source(input.into());
self
}
/// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p>
/// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
pub fn set_source(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn source_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_source_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source_arn(input);
self
}
/// Appends an item to `ReplyToAddresses`.
///
/// To override the contents of this collection use [`set_reply_to_addresses`](Self::set_reply_to_addresses).
///
/// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
pub fn reply_to_addresses(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.reply_to_addresses(input.into());
self
}
/// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
pub fn set_reply_to_addresses(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_reply_to_addresses(input);
self
}
/// <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
pub fn return_path(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path(input.into());
self
}
/// <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
pub fn set_return_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_return_path(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn return_path_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_return_path_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_return_path_arn(input);
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendBulkTemplatedEmail</code>.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendBulkTemplatedEmail</code>.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// Appends an item to `DefaultTags`.
///
/// To override the contents of this collection use [`set_default_tags`](Self::set_default_tags).
///
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send to a destination using <code>SendBulkTemplatedEmail</code>.</p>
pub fn default_tags(mut self, input: crate::model::MessageTag) -> Self {
self.inner = self.inner.default_tags(input);
self
}
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send to a destination using <code>SendBulkTemplatedEmail</code>.</p>
pub fn set_default_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::MessageTag>>,
) -> Self {
self.inner = self.inner.set_default_tags(input);
self
}
/// <p>The template to use when sending this email.</p>
pub fn template(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template(input.into());
self
}
/// <p>The template to use when sending this email.</p>
pub fn set_template(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_template(input);
self
}
/// <p>The ARN of the template to use when sending this email.</p>
pub fn template_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_arn(input.into());
self
}
/// <p>The ARN of the template to use when sending this email.</p>
pub fn set_template_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_template_arn(input);
self
}
/// <p>A list of replacement values to apply to the template when replacement data is not specified in a Destination object. These values act as a default or fallback option when no other data is available.</p>
/// <p>The template data is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
pub fn default_template_data(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.default_template_data(input.into());
self
}
/// <p>A list of replacement values to apply to the template when replacement data is not specified in a Destination object. These values act as a default or fallback option when no other data is available.</p>
/// <p>The template data is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
pub fn set_default_template_data(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_default_template_data(input);
self
}
/// Appends an item to `Destinations`.
///
/// To override the contents of this collection use [`set_destinations`](Self::set_destinations).
///
/// <p>One or more <code>Destination</code> objects. All of the recipients in a <code>Destination</code> will receive the same version of the email. You can specify up to 50 <code>Destination</code> objects within a <code>Destinations</code> array.</p>
pub fn destinations(mut self, input: crate::model::BulkEmailDestination) -> Self {
self.inner = self.inner.destinations(input);
self
}
/// <p>One or more <code>Destination</code> objects. All of the recipients in a <code>Destination</code> will receive the same version of the email. You can specify up to 50 <code>Destination</code> objects within a <code>Destinations</code> array.</p>
pub fn set_destinations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BulkEmailDestination>>,
) -> Self {
self.inner = self.inner.set_destinations(input);
self
}
}
/// Fluent builder constructing a request to `SendCustomVerificationEmail`.
///
/// <p>Adds an email address to the list of identities for your Amazon SES account in the current AWS Region and attempts to verify it. As a result of executing this operation, a customized verification email is sent to the specified address.</p>
/// <p>To use this operation, you must first create a custom verification email template. For more information about creating and using custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html">Using Custom Verification Email Templates</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SendCustomVerificationEmail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::send_custom_verification_email_input::Builder,
}
impl SendCustomVerificationEmail {
/// Creates a new `SendCustomVerificationEmail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SendCustomVerificationEmailOutput,
aws_smithy_http::result::SdkError<crate::error::SendCustomVerificationEmailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The email address to verify.</p>
pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.email_address(input.into());
self
}
/// <p>The email address to verify.</p>
pub fn set_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_email_address(input);
self
}
/// <p>The name of the custom verification email template to use when sending the verification email.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the custom verification email template to use when sending the verification email.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
/// <p>Name of a configuration set to use when sending the verification email.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>Name of a configuration set to use when sending the verification email.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
}
/// Fluent builder constructing a request to `SendEmail`.
///
/// <p>Composes an email message and immediately queues it for sending. In order to send email using the <code>SendEmail</code> operation, your message must meet the following requirements:</p>
/// <ul>
/// <li> <p>The message must be sent from a verified email address or domain. If you attempt to send email using a non-verified address or domain, the operation will result in an "Email address not verified" error. </p> </li>
/// <li> <p>If your account is still in the Amazon SES sandbox, you may only send to verified addresses or domains, or to email addresses associated with the Amazon SES Mailbox Simulator. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Verifying Email Addresses and Domains</a> in the <i>Amazon SES Developer Guide.</i> </p> </li>
/// <li> <p>The maximum message size is 10 MB.</p> </li>
/// <li> <p>The message must include at least one recipient email address. The recipient address can be a To: address, a CC: address, or a BCC: address. If a recipient email address is invalid (that is, it is not in the format <i>UserName@[SubDomain.]Domain.TopLevelDomain</i>), the entire message will be rejected, even if the message contains other recipients that are valid.</p> </li>
/// <li> <p>The message may not include more than 50 recipients, across the To:, CC: and BCC: fields. If you need to send an email message to a larger audience, you can divide your recipient list into groups of 50 or fewer, and then call the <code>SendEmail</code> operation several times to send the message to each group.</p> </li>
/// </ul> <important>
/// <p>For every message that you send, the total number of recipients (including each recipient in the To:, CC: and BCC: fields) is counted against the maximum number of emails you can send in a 24-hour period (your <i>sending quota</i>). For more information about sending quotas in Amazon SES, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html">Managing Your Amazon SES Sending Limits</a> in the <i>Amazon SES Developer Guide.</i> </p>
/// </important>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SendEmail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::send_email_input::Builder,
}
impl SendEmail {
/// Creates a new `SendEmail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SendEmailOutput,
aws_smithy_http::result::SdkError<crate::error::SendEmailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p>
/// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
pub fn source(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source(input.into());
self
}
/// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p>
/// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
pub fn set_source(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source(input);
self
}
/// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
pub fn destination(mut self, input: crate::model::Destination) -> Self {
self.inner = self.inner.destination(input);
self
}
/// <p>The destination for this email, composed of To:, CC:, and BCC: fields.</p>
pub fn set_destination(
mut self,
input: std::option::Option<crate::model::Destination>,
) -> Self {
self.inner = self.inner.set_destination(input);
self
}
/// <p>The message to be sent.</p>
pub fn message(mut self, input: crate::model::Message) -> Self {
self.inner = self.inner.message(input);
self
}
/// <p>The message to be sent.</p>
pub fn set_message(mut self, input: std::option::Option<crate::model::Message>) -> Self {
self.inner = self.inner.set_message(input);
self
}
/// Appends an item to `ReplyToAddresses`.
///
/// To override the contents of this collection use [`set_reply_to_addresses`](Self::set_reply_to_addresses).
///
/// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
pub fn reply_to_addresses(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.reply_to_addresses(input.into());
self
}
/// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
pub fn set_reply_to_addresses(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_reply_to_addresses(input);
self
}
/// <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
pub fn return_path(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path(input.into());
self
}
/// <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
pub fn set_return_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_return_path(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn source_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_source_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source_arn(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn return_path_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_return_path_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_return_path_arn(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
pub fn tags(mut self, input: crate::model::MessageTag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::MessageTag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
}
/// Fluent builder constructing a request to `SendRawEmail`.
///
/// <p>Composes an email message and immediately queues it for sending.</p>
/// <p>This operation is more flexible than the <code>SendEmail</code> API operation. When you use the <code>SendRawEmail</code> operation, you can specify the headers of the message as well as its content. This flexibility is useful, for example, when you want to send a multipart MIME email (such a message that contains both a text and an HTML version). You can also use this operation to send messages that include attachments.</p>
/// <p>The <code>SendRawEmail</code> operation has the following requirements:</p>
/// <ul>
/// <li> <p>You can only send email from <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">verified email addresses or domains</a>. If you try to send email from an address that isn't verified, the operation results in an "Email address not verified" error.</p> </li>
/// <li> <p>If your account is still in the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html">Amazon SES sandbox</a>, you can only send email to other verified addresses in your account, or to addresses that are associated with the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mailbox-simulator.html">Amazon SES mailbox simulator</a>.</p> </li>
/// <li> <p>The maximum message size, including attachments, is 10 MB.</p> </li>
/// <li> <p>Each message has to include at least one recipient address. A recipient address includes any address on the To:, CC:, or BCC: lines.</p> </li>
/// <li> <p>If you send a single message to more than one recipient address, and one of the recipient addresses isn't in a valid format (that is, it's not in the format <i>UserName@[SubDomain.]Domain.TopLevelDomain</i>), Amazon SES rejects the entire message, even if the other addresses are valid.</p> </li>
/// <li> <p>Each message can include up to 50 recipient addresses across the To:, CC:, or BCC: lines. If you need to send a single message to more than 50 recipients, you have to split the list of recipient addresses into groups of less than 50 recipients, and send separate messages to each group.</p> </li>
/// <li> <p>Amazon SES allows you to specify 8-bit Content-Transfer-Encoding for MIME message parts. However, if Amazon SES has to modify the contents of your message (for example, if you use open and click tracking), 8-bit content isn't preserved. For this reason, we highly recommend that you encode all content that isn't 7-bit ASCII. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html#send-email-mime-encoding">MIME Encoding</a> in the <i>Amazon SES Developer Guide</i>.</p> </li>
/// </ul>
/// <p>Additionally, keep the following considerations in mind when using the <code>SendRawEmail</code> operation:</p>
/// <ul>
/// <li> <p>Although you can customize the message headers when using the <code>SendRawEmail</code> operation, Amazon SES will automatically apply its own <code>Message-ID</code> and <code>Date</code> headers; if you passed these headers when creating the message, they will be overwritten by the values that Amazon SES provides.</p> </li>
/// <li> <p>If you are using sending authorization to send on behalf of another user, <code>SendRawEmail</code> enables you to specify the cross-account identity for the email's Source, From, and Return-Path parameters in one of two ways: you can pass optional parameters <code>SourceArn</code>, <code>FromArn</code>, and/or <code>ReturnPathArn</code> to the API, or you can include the following X-headers in the header of your raw email:</p>
/// <ul>
/// <li> <p> <code>X-SES-SOURCE-ARN</code> </p> </li>
/// <li> <p> <code>X-SES-FROM-ARN</code> </p> </li>
/// <li> <p> <code>X-SES-RETURN-PATH-ARN</code> </p> </li>
/// </ul> <important>
/// <p>Don't include these X-headers in the DKIM signature. Amazon SES removes these before it sends the email.</p>
/// </important> <p>If you only specify the <code>SourceIdentityArn</code> parameter, Amazon SES sets the From and Return-Path addresses to the same identity that you specified.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Using Sending Authorization with Amazon SES</a> in the <i>Amazon SES Developer Guide.</i> </p> </li>
/// <li> <p>For every message that you send, the total number of recipients (including each recipient in the To:, CC: and BCC: fields) is counted against the maximum number of emails you can send in a 24-hour period (your <i>sending quota</i>). For more information about sending quotas in Amazon SES, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html">Managing Your Amazon SES Sending Limits</a> in the <i>Amazon SES Developer Guide.</i> </p> </li>
/// </ul>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SendRawEmail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::send_raw_email_input::Builder,
}
impl SendRawEmail {
/// Creates a new `SendRawEmail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SendRawEmailOutput,
aws_smithy_http::result::SdkError<crate::error::SendRawEmailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in<a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
/// <p>If you specify the <code>Source</code> parameter and have feedback forwarding enabled, then bounces and complaints will be sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.</p>
pub fn source(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source(input.into());
self
}
/// <p>The identity's email address. If you do not provide a value for this parameter, you must specify a "From" address in the raw text of the message. (You can also specify both.)</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in<a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
/// <p>If you specify the <code>Source</code> parameter and have feedback forwarding enabled, then bounces and complaints will be sent to this email address. This takes precedence over any Return-Path header that you might include in the raw text of the message.</p>
pub fn set_source(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source(input);
self
}
/// Appends an item to `Destinations`.
///
/// To override the contents of this collection use [`set_destinations`](Self::set_destinations).
///
/// <p>A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.</p>
pub fn destinations(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.destinations(input.into());
self
}
/// <p>A list of destinations for the message, consisting of To:, CC:, and BCC: addresses.</p>
pub fn set_destinations(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_destinations(input);
self
}
/// <p>The raw email message itself. The message has to meet the following criteria:</p>
/// <ul>
/// <li> <p>The message has to contain a header and a body, separated by a blank line.</p> </li>
/// <li> <p>All of the required header fields must be present in the message.</p> </li>
/// <li> <p>Each part of a multipart MIME message must be formatted properly.</p> </li>
/// <li> <p>Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html">Unsupported Attachment Types</a> in the <i>Amazon SES Developer Guide</i>.</p> </li>
/// <li> <p>The entire message must be base64-encoded.</p> </li>
/// <li> <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html">Sending Raw Email</a> in the <i>Amazon SES Developer Guide</i>.</p> </li>
/// <li> <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of text, including the <crlf>
/// , must not exceed 1,000 characters.
/// </crlf></p> </li>
/// </ul>
pub fn raw_message(mut self, input: crate::model::RawMessage) -> Self {
self.inner = self.inner.raw_message(input);
self
}
/// <p>The raw email message itself. The message has to meet the following criteria:</p>
/// <ul>
/// <li> <p>The message has to contain a header and a body, separated by a blank line.</p> </li>
/// <li> <p>All of the required header fields must be present in the message.</p> </li>
/// <li> <p>Each part of a multipart MIME message must be formatted properly.</p> </li>
/// <li> <p>Attachments must be of a content type that Amazon SES supports. For a list on unsupported content types, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html">Unsupported Attachment Types</a> in the <i>Amazon SES Developer Guide</i>.</p> </li>
/// <li> <p>The entire message must be base64-encoded.</p> </li>
/// <li> <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, we highly recommend that you encode that content. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html">Sending Raw Email</a> in the <i>Amazon SES Developer Guide</i>.</p> </li>
/// <li> <p>Per <a href="https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6">RFC 5321</a>, the maximum length of each line of text, including the <crlf>
/// , must not exceed 1,000 characters.
/// </crlf></p> </li>
/// </ul>
pub fn set_raw_message(
mut self,
input: std::option::Option<crate::model::RawMessage>,
) -> Self {
self.inner = self.inner.set_raw_message(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular "From" address in the header of the raw email.</p>
/// <p>Instead of using this parameter, you can use the X-header <code>X-SES-FROM-ARN</code> in the raw message of the email. If you use both the <code>FromArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>FromArn</code> parameter.</p> <note>
/// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
/// </note>
pub fn from_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.from_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to specify a particular "From" address in the header of the raw email.</p>
/// <p>Instead of using this parameter, you can use the X-header <code>X-SES-FROM-ARN</code> in the raw message of the email. If you use both the <code>FromArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>FromArn</code> parameter.</p> <note>
/// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
/// </note>
pub fn set_from_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_from_arn(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>Instead of using this parameter, you can use the X-header <code>X-SES-SOURCE-ARN</code> in the raw message of the email. If you use both the <code>SourceArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>SourceArn</code> parameter.</p> <note>
/// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
/// </note>
pub fn source_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>Instead of using this parameter, you can use the X-header <code>X-SES-SOURCE-ARN</code> in the raw message of the email. If you use both the <code>SourceArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>SourceArn</code> parameter.</p> <note>
/// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
/// </note>
pub fn set_source_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source_arn(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>Instead of using this parameter, you can use the X-header <code>X-SES-RETURN-PATH-ARN</code> in the raw message of the email. If you use both the <code>ReturnPathArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>ReturnPathArn</code> parameter.</p> <note>
/// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
/// </note>
pub fn return_path_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>Instead of using this parameter, you can use the X-header <code>X-SES-RETURN-PATH-ARN</code> in the raw message of the email. If you use both the <code>ReturnPathArn</code> parameter and the corresponding X-header, Amazon SES uses the value of the <code>ReturnPathArn</code> parameter.</p> <note>
/// <p>For information about when to use this parameter, see the description of <code>SendRawEmail</code> in this guide, or see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html">Amazon SES Developer Guide</a>.</p>
/// </note>
pub fn set_return_path_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_return_path_arn(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendRawEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
pub fn tags(mut self, input: crate::model::MessageTag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendRawEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::MessageTag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendRawEmail</code>.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendRawEmail</code>.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
}
/// Fluent builder constructing a request to `SendTemplatedEmail`.
///
/// <p>Composes an email message using an email template and immediately queues it for sending.</p>
/// <p>In order to send email using the <code>SendTemplatedEmail</code> operation, your call to the API must meet the following requirements:</p>
/// <ul>
/// <li> <p>The call must refer to an existing email template. You can create email templates using the <code>CreateTemplate</code> operation.</p> </li>
/// <li> <p>The message must be sent from a verified email address or domain.</p> </li>
/// <li> <p>If your account is still in the Amazon SES sandbox, you may only send to verified addresses or domains, or to email addresses associated with the Amazon SES Mailbox Simulator. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Verifying Email Addresses and Domains</a> in the <i>Amazon SES Developer Guide.</i> </p> </li>
/// <li> <p>The maximum message size is 10 MB.</p> </li>
/// <li> <p>Calls to the <code>SendTemplatedEmail</code> operation may only include one <code>Destination</code> parameter. A destination is a set of recipients who will receive the same version of the email. The <code>Destination</code> parameter can include up to 50 recipients, across the To:, CC: and BCC: fields.</p> </li>
/// <li> <p>The <code>Destination</code> parameter must include at least one recipient email address. The recipient address can be a To: address, a CC: address, or a BCC: address. If a recipient email address is invalid (that is, it is not in the format <i>UserName@[SubDomain.]Domain.TopLevelDomain</i>), the entire message will be rejected, even if the message contains other recipients that are valid.</p> </li>
/// </ul> <important>
/// <p>If your call to the <code>SendTemplatedEmail</code> operation includes all of the required parameters, Amazon SES accepts it and returns a Message ID. However, if Amazon SES can't render the email because the template contains errors, it doesn't send the email. Additionally, because it already accepted the message, Amazon SES doesn't return a message stating that it was unable to send the email.</p>
/// <p>For these reasons, we highly recommend that you set up Amazon SES to send you notifications when Rendering Failure events occur. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html">Sending Personalized Email Using the Amazon SES API</a> in the <i>Amazon Simple Email Service Developer Guide</i>.</p>
/// </important>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SendTemplatedEmail {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::send_templated_email_input::Builder,
}
impl SendTemplatedEmail {
/// Creates a new `SendTemplatedEmail`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SendTemplatedEmailOutput,
aws_smithy_http::result::SdkError<crate::error::SendTemplatedEmailError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p>
/// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in<a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
pub fn source(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source(input.into());
self
}
/// <p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Amazon SES Developer Guide</a>.</p>
/// <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p> <note>
/// <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the <i>local part</i> of a source email address (the part of the email address that precedes the @ sign) may only contain <a href="https://en.wikipedia.org/wiki/Email_address#Local-part">7-bit ASCII characters</a>. If the <i>domain part</i> of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in <a href="https://tools.ietf.org/html/rfc3492.html">RFC3492</a>. The sender name (also known as the <i>friendly name</i>) may contain non-ASCII characters. These characters must be encoded using MIME encoded-word syntax, as described in<a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>. MIME encoded-word syntax uses the following form: <code>=?charset?encoding?encoded-text?=</code>.</p>
/// </note>
pub fn set_source(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source(input);
self
}
/// <p>The destination for this email, composed of To:, CC:, and BCC: fields. A Destination can include up to 50 recipients across these three fields.</p>
pub fn destination(mut self, input: crate::model::Destination) -> Self {
self.inner = self.inner.destination(input);
self
}
/// <p>The destination for this email, composed of To:, CC:, and BCC: fields. A Destination can include up to 50 recipients across these three fields.</p>
pub fn set_destination(
mut self,
input: std::option::Option<crate::model::Destination>,
) -> Self {
self.inner = self.inner.set_destination(input);
self
}
/// Appends an item to `ReplyToAddresses`.
///
/// To override the contents of this collection use [`set_reply_to_addresses`](Self::set_reply_to_addresses).
///
/// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
pub fn reply_to_addresses(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.reply_to_addresses(input.into());
self
}
/// <p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.</p>
pub fn set_reply_to_addresses(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_reply_to_addresses(input);
self
}
/// <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
pub fn return_path(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path(input.into());
self
}
/// <p>The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. </p>
pub fn set_return_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_return_path(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn source_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.source_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_source_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_source_arn(input);
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn return_path_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.return_path_arn(input.into());
self
}
/// <p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p>
/// <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p>
/// <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer Guide</a>.</p>
pub fn set_return_path_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_return_path_arn(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendTemplatedEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
pub fn tags(mut self, input: crate::model::MessageTag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendTemplatedEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::MessageTag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendTemplatedEmail</code>.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set to use when you send an email using <code>SendTemplatedEmail</code>.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>The template to use when sending this email.</p>
pub fn template(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template(input.into());
self
}
/// <p>The template to use when sending this email.</p>
pub fn set_template(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_template(input);
self
}
/// <p>The ARN of the template to use when sending this email.</p>
pub fn template_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_arn(input.into());
self
}
/// <p>The ARN of the template to use when sending this email.</p>
pub fn set_template_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_template_arn(input);
self
}
/// <p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
pub fn template_data(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_data(input.into());
self
}
/// <p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
pub fn set_template_data(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_data(input);
self
}
}
/// Fluent builder constructing a request to `SetActiveReceiptRuleSet`.
///
/// <p>Sets the specified receipt rule set as the active receipt rule set.</p> <note>
/// <p>To disable your email-receiving through Amazon SES completely, you can call this API with RuleSetName set to null.</p>
/// </note>
/// <p>For information about managing receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetActiveReceiptRuleSet {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_active_receipt_rule_set_input::Builder,
}
impl SetActiveReceiptRuleSet {
/// Creates a new `SetActiveReceiptRuleSet`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetActiveReceiptRuleSetOutput,
aws_smithy_http::result::SdkError<crate::error::SetActiveReceiptRuleSetError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set to make active. Setting this value to null disables all email receiving.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set to make active. Setting this value to null disables all email receiving.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
}
/// Fluent builder constructing a request to `SetIdentityDkimEnabled`.
///
/// <p>Enables or disables Easy DKIM signing of email sent from an identity. If Easy DKIM signing is enabled for a domain, then Amazon SES uses DKIM to sign all email that it sends from addresses on that domain. If Easy DKIM signing is enabled for an email address, then Amazon SES uses DKIM to sign all email it sends from that address.</p> <note>
/// <p>For email addresses (for example, <code>user@example.com</code>), you can only enable DKIM signing if the corresponding domain (in this case, <code>example.com</code>) has been set up to use Easy DKIM.</p>
/// </note>
/// <p>You can enable DKIM signing for an identity at any time after you start the verification process for the identity, even if the verification process isn't complete. </p>
/// <p>You can execute this operation no more than once per second.</p>
/// <p>For more information about Easy DKIM signing, go to the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetIdentityDkimEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_identity_dkim_enabled_input::Builder,
}
impl SetIdentityDkimEnabled {
/// Creates a new `SetIdentityDkimEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetIdentityDkimEnabledOutput,
aws_smithy_http::result::SdkError<crate::error::SetIdentityDkimEnabledError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity for which DKIM signing should be enabled or disabled.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity for which DKIM signing should be enabled or disabled.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>Sets whether DKIM signing is enabled for an identity. Set to <code>true</code> to enable DKIM signing for this identity; <code>false</code> to disable it. </p>
pub fn dkim_enabled(mut self, input: bool) -> Self {
self.inner = self.inner.dkim_enabled(input);
self
}
/// <p>Sets whether DKIM signing is enabled for an identity. Set to <code>true</code> to enable DKIM signing for this identity; <code>false</code> to disable it. </p>
pub fn set_dkim_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_dkim_enabled(input);
self
}
}
/// Fluent builder constructing a request to `SetIdentityFeedbackForwardingEnabled`.
///
/// <p>Given an identity (an email address or a domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints.</p> <note>
/// <p>Feedback forwarding does not apply to delivery notifications. Delivery notifications are only available through Amazon SNS.</p>
/// </note>
/// <p>You can execute this operation no more than once per second.</p>
/// <p>For more information about using notifications with Amazon SES, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetIdentityFeedbackForwardingEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_identity_feedback_forwarding_enabled_input::Builder,
}
impl SetIdentityFeedbackForwardingEnabled {
/// Creates a new `SetIdentityFeedbackForwardingEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetIdentityFeedbackForwardingEnabledOutput,
aws_smithy_http::result::SdkError<
crate::error::SetIdentityFeedbackForwardingEnabledError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity for which to set bounce and complaint notification forwarding. Examples: <code>user@example.com</code>, <code>example.com</code>.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity for which to set bounce and complaint notification forwarding. Examples: <code>user@example.com</code>, <code>example.com</code>.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>Sets whether Amazon SES will forward bounce and complaint notifications as email. <code>true</code> specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. <code>false</code> specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to <code>false</code> when Amazon SNS topics are set for both <code>Bounce</code> and <code>Complaint</code> notification types.</p>
pub fn forwarding_enabled(mut self, input: bool) -> Self {
self.inner = self.inner.forwarding_enabled(input);
self
}
/// <p>Sets whether Amazon SES will forward bounce and complaint notifications as email. <code>true</code> specifies that Amazon SES will forward bounce and complaint notifications as email, in addition to any Amazon SNS topic publishing otherwise specified. <code>false</code> specifies that Amazon SES will publish bounce and complaint notifications only through Amazon SNS. This value can only be set to <code>false</code> when Amazon SNS topics are set for both <code>Bounce</code> and <code>Complaint</code> notification types.</p>
pub fn set_forwarding_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_forwarding_enabled(input);
self
}
}
/// Fluent builder constructing a request to `SetIdentityHeadersInNotificationsEnabled`.
///
/// <p>Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type.</p>
/// <p>You can execute this operation no more than once per second.</p>
/// <p>For more information about using notifications with Amazon SES, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetIdentityHeadersInNotificationsEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_identity_headers_in_notifications_enabled_input::Builder,
}
impl SetIdentityHeadersInNotificationsEnabled {
/// Creates a new `SetIdentityHeadersInNotificationsEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetIdentityHeadersInNotificationsEnabledOutput,
aws_smithy_http::result::SdkError<
crate::error::SetIdentityHeadersInNotificationsEnabledError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity for which to enable or disable headers in notifications. Examples: <code>user@example.com</code>, <code>example.com</code>.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity for which to enable or disable headers in notifications. Examples: <code>user@example.com</code>, <code>example.com</code>.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>The notification type for which to enable or disable headers in notifications. </p>
pub fn notification_type(mut self, input: crate::model::NotificationType) -> Self {
self.inner = self.inner.notification_type(input);
self
}
/// <p>The notification type for which to enable or disable headers in notifications. </p>
pub fn set_notification_type(
mut self,
input: std::option::Option<crate::model::NotificationType>,
) -> Self {
self.inner = self.inner.set_notification_type(input);
self
}
/// <p>Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of <code>true</code> specifies that Amazon SES will include headers in notifications, and a value of <code>false</code> specifies that Amazon SES will not include headers in notifications.</p>
/// <p>This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon SNS topic.</p>
pub fn enabled(mut self, input: bool) -> Self {
self.inner = self.inner.enabled(input);
self
}
/// <p>Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of <code>true</code> specifies that Amazon SES will include headers in notifications, and a value of <code>false</code> specifies that Amazon SES will not include headers in notifications.</p>
/// <p>This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon SNS topic.</p>
pub fn set_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enabled(input);
self
}
}
/// Fluent builder constructing a request to `SetIdentityMailFromDomain`.
///
/// <p>Enables or disables the custom MAIL FROM domain setup for a verified identity (an email address or a domain).</p> <important>
/// <p>To send emails using the specified MAIL FROM domain, you must add an MX record to your MAIL FROM domain's DNS settings. If you want your emails to pass Sender Policy Framework (SPF) checks, you must also add or update an SPF record. For more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html">Amazon SES Developer Guide</a>.</p>
/// </important>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetIdentityMailFromDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_identity_mail_from_domain_input::Builder,
}
impl SetIdentityMailFromDomain {
/// Creates a new `SetIdentityMailFromDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetIdentityMailFromDomainOutput,
aws_smithy_http::result::SdkError<crate::error::SetIdentityMailFromDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The verified identity for which you want to enable or disable the specified custom MAIL FROM domain.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The verified identity for which you want to enable or disable the specified custom MAIL FROM domain.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html">Amazon SES Developer Guide</a>), and 3) not be used to receive emails. A value of <code>null</code> disables the custom MAIL FROM setting for the identity.</p>
pub fn mail_from_domain(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.mail_from_domain(input.into());
self
}
/// <p>The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html">Amazon SES Developer Guide</a>), and 3) not be used to receive emails. A value of <code>null</code> disables the custom MAIL FROM setting for the identity.</p>
pub fn set_mail_from_domain(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_mail_from_domain(input);
self
}
/// <p>The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will return a <code>MailFromDomainNotVerified</code> error and not send the email.</p>
/// <p>The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup is in the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states.</p>
pub fn behavior_on_mx_failure(mut self, input: crate::model::BehaviorOnMxFailure) -> Self {
self.inner = self.inner.behavior_on_mx_failure(input);
self
}
/// <p>The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will return a <code>MailFromDomainNotVerified</code> error and not send the email.</p>
/// <p>The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup is in the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states.</p>
pub fn set_behavior_on_mx_failure(
mut self,
input: std::option::Option<crate::model::BehaviorOnMxFailure>,
) -> Self {
self.inner = self.inner.set_behavior_on_mx_failure(input);
self
}
}
/// Fluent builder constructing a request to `SetIdentityNotificationTopic`.
///
/// <p>Sets an Amazon Simple Notification Service (Amazon SNS) topic to use when delivering notifications. When you use this operation, you specify a verified identity, such as an email address or domain. When you send an email that uses the chosen identity in the Source field, Amazon SES sends notifications to the topic you specified. You can send bounce, complaint, or delivery notifications (or any combination of the three) to the Amazon SNS topic that you specify.</p>
/// <p>You can execute this operation no more than once per second.</p>
/// <p>For more information about feedback notification, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetIdentityNotificationTopic {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_identity_notification_topic_input::Builder,
}
impl SetIdentityNotificationTopic {
/// Creates a new `SetIdentityNotificationTopic`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetIdentityNotificationTopicOutput,
aws_smithy_http::result::SdkError<crate::error::SetIdentityNotificationTopicError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The identity (email address or domain) that you want to set the Amazon SNS topic for.</p> <important>
/// <p>You can only specify a verified identity for this parameter.</p>
/// </important>
/// <p>You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: <code>sender@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
pub fn identity(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.identity(input.into());
self
}
/// <p>The identity (email address or domain) that you want to set the Amazon SNS topic for.</p> <important>
/// <p>You can only specify a verified identity for this parameter.</p>
/// </important>
/// <p>You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: <code>sender@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p>
pub fn set_identity(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_identity(input);
self
}
/// <p>The type of notifications that will be published to the specified Amazon SNS topic.</p>
pub fn notification_type(mut self, input: crate::model::NotificationType) -> Self {
self.inner = self.inner.notification_type(input);
self
}
/// <p>The type of notifications that will be published to the specified Amazon SNS topic.</p>
pub fn set_notification_type(
mut self,
input: std::option::Option<crate::model::NotificationType>,
) -> Self {
self.inner = self.inner.set_notification_type(input);
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, <code>SnsTopic</code> is cleared and publishing is disabled.</p>
pub fn sns_topic(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.sns_topic(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, <code>SnsTopic</code> is cleared and publishing is disabled.</p>
pub fn set_sns_topic(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_sns_topic(input);
self
}
}
/// Fluent builder constructing a request to `SetReceiptRulePosition`.
///
/// <p>Sets the position of the specified receipt rule in the receipt rule set.</p>
/// <p>For information about managing receipt rules, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct SetReceiptRulePosition {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::set_receipt_rule_position_input::Builder,
}
impl SetReceiptRulePosition {
/// Creates a new `SetReceiptRulePosition`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetReceiptRulePositionOutput,
aws_smithy_http::result::SdkError<crate::error::SetReceiptRulePositionError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set that contains the receipt rule to reposition.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set that contains the receipt rule to reposition.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// <p>The name of the receipt rule to reposition.</p>
pub fn rule_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_name(input.into());
self
}
/// <p>The name of the receipt rule to reposition.</p>
pub fn set_rule_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_rule_name(input);
self
}
/// <p>The name of the receipt rule after which to place the specified receipt rule.</p>
pub fn after(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.after(input.into());
self
}
/// <p>The name of the receipt rule after which to place the specified receipt rule.</p>
pub fn set_after(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_after(input);
self
}
}
/// Fluent builder constructing a request to `TestRenderTemplate`.
///
/// <p>Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct TestRenderTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::test_render_template_input::Builder,
}
impl TestRenderTemplate {
/// Creates a new `TestRenderTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::TestRenderTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::TestRenderTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the template that you want to render.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the template that you want to render.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
/// <p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
pub fn template_data(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_data(input.into());
self
}
/// <p>A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.</p>
pub fn set_template_data(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_data(input);
self
}
}
/// Fluent builder constructing a request to `UpdateAccountSendingEnabled`.
///
/// <p>Enables or disables email sending across your entire Amazon SES account in the current AWS Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending across your Amazon SES account in a given AWS Region when reputation metrics (such as your bounce or complaint rates) reach certain thresholds.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateAccountSendingEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_account_sending_enabled_input::Builder,
}
impl UpdateAccountSendingEnabled {
/// Creates a new `UpdateAccountSendingEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateAccountSendingEnabledOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateAccountSendingEnabledError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>Describes whether email sending is enabled or disabled for your Amazon SES account in the current AWS Region.</p>
pub fn enabled(mut self, input: bool) -> Self {
self.inner = self.inner.enabled(input);
self
}
/// <p>Describes whether email sending is enabled or disabled for your Amazon SES account in the current AWS Region.</p>
pub fn set_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enabled(input);
self
}
}
/// Fluent builder constructing a request to `UpdateConfigurationSetEventDestination`.
///
/// <p>Updates the event destination of a configuration set. Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html">Monitoring Your Amazon SES Sending Activity</a> in the <i>Amazon SES Developer Guide.</i> </p> <note>
/// <p>When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS).</p>
/// </note>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateConfigurationSetEventDestination {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_configuration_set_event_destination_input::Builder,
}
impl UpdateConfigurationSetEventDestination {
/// Creates a new `UpdateConfigurationSetEventDestination`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateConfigurationSetEventDestinationOutput,
aws_smithy_http::result::SdkError<
crate::error::UpdateConfigurationSetEventDestinationError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set that contains the event destination that you want to update.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set that contains the event destination that you want to update.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>The event destination object that you want to apply to the specified configuration set.</p>
pub fn event_destination(mut self, input: crate::model::EventDestination) -> Self {
self.inner = self.inner.event_destination(input);
self
}
/// <p>The event destination object that you want to apply to the specified configuration set.</p>
pub fn set_event_destination(
mut self,
input: std::option::Option<crate::model::EventDestination>,
) -> Self {
self.inner = self.inner.set_event_destination(input);
self
}
}
/// Fluent builder constructing a request to `UpdateConfigurationSetReputationMetricsEnabled`.
///
/// <p>Enables or disables the publishing of reputation metrics for emails sent using a specific configuration set in a given AWS Region. Reputation metrics include bounce and complaint rates. These metrics are published to Amazon CloudWatch. By using CloudWatch, you can create alarms when bounce or complaint rates exceed certain thresholds.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateConfigurationSetReputationMetricsEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_configuration_set_reputation_metrics_enabled_input::Builder,
}
impl UpdateConfigurationSetReputationMetricsEnabled {
/// Creates a new `UpdateConfigurationSetReputationMetricsEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateConfigurationSetReputationMetricsEnabledOutput,
aws_smithy_http::result::SdkError<
crate::error::UpdateConfigurationSetReputationMetricsEnabledError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set that you want to update.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set that you want to update.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>Describes whether or not Amazon SES will publish reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch.</p>
pub fn enabled(mut self, input: bool) -> Self {
self.inner = self.inner.enabled(input);
self
}
/// <p>Describes whether or not Amazon SES will publish reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch.</p>
pub fn set_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enabled(input);
self
}
}
/// Fluent builder constructing a request to `UpdateConfigurationSetSendingEnabled`.
///
/// <p>Enables or disables email sending for messages sent using a specific configuration set in a given AWS Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending for a configuration set when the reputation metrics for that configuration set (such as your bounce on complaint rate) exceed certain thresholds.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateConfigurationSetSendingEnabled {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_configuration_set_sending_enabled_input::Builder,
}
impl UpdateConfigurationSetSendingEnabled {
/// Creates a new `UpdateConfigurationSetSendingEnabled`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateConfigurationSetSendingEnabledOutput,
aws_smithy_http::result::SdkError<
crate::error::UpdateConfigurationSetSendingEnabledError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set that you want to update.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set that you want to update.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>Describes whether email sending is enabled or disabled for the configuration set. </p>
pub fn enabled(mut self, input: bool) -> Self {
self.inner = self.inner.enabled(input);
self
}
/// <p>Describes whether email sending is enabled or disabled for the configuration set. </p>
pub fn set_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enabled(input);
self
}
}
/// Fluent builder constructing a request to `UpdateConfigurationSetTrackingOptions`.
///
/// <p>Modifies an association between a configuration set and a custom domain for open and click event tracking. </p>
/// <p>By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Amazon SES Developer Guide</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateConfigurationSetTrackingOptions {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_configuration_set_tracking_options_input::Builder,
}
impl UpdateConfigurationSetTrackingOptions {
/// Creates a new `UpdateConfigurationSetTrackingOptions`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateConfigurationSetTrackingOptionsOutput,
aws_smithy_http::result::SdkError<
crate::error::UpdateConfigurationSetTrackingOptionsError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the configuration set for which you want to update the custom tracking domain.</p>
pub fn configuration_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.configuration_set_name(input.into());
self
}
/// <p>The name of the configuration set for which you want to update the custom tracking domain.</p>
pub fn set_configuration_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_configuration_set_name(input);
self
}
/// <p>A domain that is used to redirect email recipients to an Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES emails.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Configuring Custom Domains to Handle Open and Click Tracking</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn tracking_options(mut self, input: crate::model::TrackingOptions) -> Self {
self.inner = self.inner.tracking_options(input);
self
}
/// <p>A domain that is used to redirect email recipients to an Amazon SES-operated domain. This domain captures open and click events generated by Amazon SES emails.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-custom-open-click-domains.html">Configuring Custom Domains to Handle Open and Click Tracking</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn set_tracking_options(
mut self,
input: std::option::Option<crate::model::TrackingOptions>,
) -> Self {
self.inner = self.inner.set_tracking_options(input);
self
}
}
/// Fluent builder constructing a request to `UpdateCustomVerificationEmailTemplate`.
///
/// <p>Updates an existing custom verification email template.</p>
/// <p>For more information about custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html">Using Custom Verification Email Templates</a> in the <i>Amazon SES Developer Guide</i>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateCustomVerificationEmailTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_custom_verification_email_template_input::Builder,
}
impl UpdateCustomVerificationEmailTemplate {
/// Creates a new `UpdateCustomVerificationEmailTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateCustomVerificationEmailTemplateOutput,
aws_smithy_http::result::SdkError<
crate::error::UpdateCustomVerificationEmailTemplateError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the custom verification email template that you want to update.</p>
pub fn template_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_name(input.into());
self
}
/// <p>The name of the custom verification email template that you want to update.</p>
pub fn set_template_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_name(input);
self
}
/// <p>The email address that the custom verification email is sent from.</p>
pub fn from_email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.from_email_address(input.into());
self
}
/// <p>The email address that the custom verification email is sent from.</p>
pub fn set_from_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_from_email_address(input);
self
}
/// <p>The subject line of the custom verification email.</p>
pub fn template_subject(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_subject(input.into());
self
}
/// <p>The subject line of the custom verification email.</p>
pub fn set_template_subject(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_subject(input);
self
}
/// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn template_content(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.template_content(input.into());
self
}
/// <p>The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq">Custom Verification Email Frequently Asked Questions</a> in the <i>Amazon SES Developer Guide</i>.</p>
pub fn set_template_content(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_template_content(input);
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
pub fn success_redirection_url(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.success_redirection_url(input.into());
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is successfully verified.</p>
pub fn set_success_redirection_url(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_success_redirection_url(input);
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
pub fn failure_redirection_url(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.failure_redirection_url(input.into());
self
}
/// <p>The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.</p>
pub fn set_failure_redirection_url(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_failure_redirection_url(input);
self
}
}
/// Fluent builder constructing a request to `UpdateReceiptRule`.
///
/// <p>Updates a receipt rule.</p>
/// <p>For information about managing receipt rules, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateReceiptRule {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_receipt_rule_input::Builder,
}
impl UpdateReceiptRule {
/// Creates a new `UpdateReceiptRule`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateReceiptRuleOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateReceiptRuleError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the receipt rule set that the receipt rule belongs to.</p>
pub fn rule_set_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.rule_set_name(input.into());
self
}
/// <p>The name of the receipt rule set that the receipt rule belongs to.</p>
pub fn set_rule_set_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_rule_set_name(input);
self
}
/// <p>A data structure that contains the updated receipt rule information.</p>
pub fn rule(mut self, input: crate::model::ReceiptRule) -> Self {
self.inner = self.inner.rule(input);
self
}
/// <p>A data structure that contains the updated receipt rule information.</p>
pub fn set_rule(mut self, input: std::option::Option<crate::model::ReceiptRule>) -> Self {
self.inner = self.inner.set_rule(input);
self
}
}
/// Fluent builder constructing a request to `UpdateTemplate`.
///
/// <p>Updates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html">Amazon SES Developer Guide</a>.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateTemplate {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_template_input::Builder,
}
impl UpdateTemplate {
/// Creates a new `UpdateTemplate`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTemplateError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
pub fn template(mut self, input: crate::model::Template) -> Self {
self.inner = self.inner.template(input);
self
}
/// <p>The content of the email, composed of a subject line, an HTML part, and a text-only part.</p>
pub fn set_template(mut self, input: std::option::Option<crate::model::Template>) -> Self {
self.inner = self.inner.set_template(input);
self
}
}
/// Fluent builder constructing a request to `VerifyDomainDkim`.
///
/// <p>Returns a set of DKIM tokens for a domain identity.</p> <important>
/// <p>When you execute the <code>VerifyDomainDkim</code> operation, the domain that you specify is added to the list of identities that are associated with your account. This is true even if you haven't already associated the domain with your account by using the <code>VerifyDomainIdentity</code> operation. However, you can't send email from the domain until you either successfully <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html">verify it</a> or you successfully <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html">set up DKIM for it</a>.</p>
/// </important>
/// <p>You use the tokens that are generated by this operation to create CNAME records. When Amazon SES detects that you've added these records to the DNS configuration for a domain, you can start sending email from that domain. You can start sending email even if you haven't added the TXT record provided by the VerifyDomainIdentity operation to the DNS configuration for your domain. All email that you send from the domain is authenticated using DKIM.</p>
/// <p>To create the CNAME records for DKIM authentication, use the following values:</p>
/// <ul>
/// <li> <p> <b>Name</b>: <i>token</i>._domainkey.<i>example.com</i> </p> </li>
/// <li> <p> <b>Type</b>: CNAME</p> </li>
/// <li> <p> <b>Value</b>: <i>token</i>.dkim.amazonses.com</p> </li>
/// </ul>
/// <p>In the preceding example, replace <i>token</i> with one of the tokens that are generated when you execute this operation. Replace <i>example.com</i> with your domain. Repeat this process for each token that's generated by this operation.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct VerifyDomainDkim {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::verify_domain_dkim_input::Builder,
}
impl VerifyDomainDkim {
/// Creates a new `VerifyDomainDkim`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::VerifyDomainDkimOutput,
aws_smithy_http::result::SdkError<crate::error::VerifyDomainDkimError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the domain to be verified for Easy DKIM signing.</p>
pub fn domain(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain(input.into());
self
}
/// <p>The name of the domain to be verified for Easy DKIM signing.</p>
pub fn set_domain(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain(input);
self
}
}
/// Fluent builder constructing a request to `VerifyDomainIdentity`.
///
/// <p>Adds a domain to the list of identities for your Amazon SES account in the current AWS Region and attempts to verify it. For more information about verifying domains, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Verifying Email Addresses and Domains</a> in the <i>Amazon SES Developer Guide.</i> </p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct VerifyDomainIdentity {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::verify_domain_identity_input::Builder,
}
impl VerifyDomainIdentity {
/// Creates a new `VerifyDomainIdentity`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::VerifyDomainIdentityOutput,
aws_smithy_http::result::SdkError<crate::error::VerifyDomainIdentityError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The domain to be verified.</p>
pub fn domain(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain(input.into());
self
}
/// <p>The domain to be verified.</p>
pub fn set_domain(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain(input);
self
}
}
/// Fluent builder constructing a request to `VerifyEmailAddress`.
///
/// <p>Deprecated. Use the <code>VerifyEmailIdentity</code> operation to verify a new email address.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct VerifyEmailAddress {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::verify_email_address_input::Builder,
}
impl VerifyEmailAddress {
/// Creates a new `VerifyEmailAddress`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::VerifyEmailAddressOutput,
aws_smithy_http::result::SdkError<crate::error::VerifyEmailAddressError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The email address to be verified.</p>
pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.email_address(input.into());
self
}
/// <p>The email address to be verified.</p>
pub fn set_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_email_address(input);
self
}
}
/// Fluent builder constructing a request to `VerifyEmailIdentity`.
///
/// <p>Adds an email address to the list of identities for your Amazon SES account in the current AWS region and attempts to verify it. As a result of executing this operation, a verification email is sent to the specified address.</p>
/// <p>You can execute this operation no more than once per second.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct VerifyEmailIdentity {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::verify_email_identity_input::Builder,
}
impl VerifyEmailIdentity {
/// Creates a new `VerifyEmailIdentity`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::VerifyEmailIdentityOutput,
aws_smithy_http::result::SdkError<crate::error::VerifyEmailIdentityError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The email address to be verified.</p>
pub fn email_address(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.email_address(input.into());
self
}
/// <p>The email address to be verified.</p>
pub fn set_email_address(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_email_address(input);
self
}
}
}
impl Client {
/// Creates a client with the given service config and connector override.
pub fn from_conf_conn<C, E>(conf: crate::Config, conn: C) -> Self
where
C: aws_smithy_client::bounds::SmithyConnector<Error = E> + Send + 'static,
E: Into<aws_smithy_http::result::ConnectorError>,
{
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::new()
.connector(aws_smithy_client::erase::DynConnector::new(conn))
.middleware(aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
));
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Creates a new client from a shared config.
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
/// Creates a new client from the service [`Config`](crate::Config).
#[cfg(any(feature = "rustls", feature = "native-tls"))]
pub fn from_conf(conf: crate::Config) -> Self {
let retry_config = conf.retry_config.as_ref().cloned().unwrap_or_default();
let timeout_config = conf.timeout_config.as_ref().cloned().unwrap_or_default();
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::dyn_https().middleware(
aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
),
);
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
// the builder maintains a try-state. To avoid suppressing the warning when sleep is unset,
// only set it if we actually have a sleep impl.
if let Some(sleep_impl) = sleep_impl {
builder.set_sleep_impl(Some(sleep_impl));
}
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
}