package awso-async
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
AWS client for Async (400+ services, auto-generated from botocore)
Install
dune-project
Dependency
Authors
Maintainers
Sources
awso-0.9.0.tbz
sha256=47224890900b1f5d2bd717000a02fa8918f92eafa99f702f7d59a1b053ff8e95
sha512=e187288f7c8fccb221f5417671732c8c8de95cdbacba1514db592b5700df2293468bde07956539bd44f3d460f6c75d38bd66ca161d0eae68a8b1b4e081882367
doc/src/awso-async.elasticache/cli.ml.html
Source file cli.ml
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(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *) open Core open Async let json_arg = Command.Arg_type.create Yojson.Safe.from_string let call ?endpoint_url ?profile ?region f m result_to_json error_to_json = let region = match region with | Some region -> Some (Awso.Region.of_string region) | None -> None in (Awso_async.Cfg.get_exn ?profile ?region ()) >>= (fun cfg -> (f ?endpoint_url ?cfg:(Some cfg) m) >>= (fun result -> match result with | Error err -> (match error_to_json with | None -> failwithf "endpoint error, but no error values defined in boto" () | Some to_json -> let s = (err |> to_json) |> Yojson.Safe.to_string in failwithf "AWS error: %s" s ()) | Ok result -> ((match result_to_json with | None -> print_endline "ok response from endpoint" | Some to_json -> ((result |> to_json) |> Yojson.Safe.to_string) |> print_endline); return ()))) let = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and resourceName = flag "resource-name" (required string) ~doc:"STRING String" and = flag "tags" (required json_arg) ~doc:"JSON TagList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.add_tags_to_resource (Values.AddTagsToResourceMessage.make ~resourceName ~tags:(Values.TagList.of_json tags) ()) (Some Values.TagListMessage.to_json) (Some Values.TagListMessage.error_to_json)]) let = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSecurityGroupName = flag "cache-security-group-name" (required string) ~doc:"STRING String" and eC2SecurityGroupName = flag "e-c2-security-group-name" (required string) ~doc:"STRING String" and eC2SecurityGroupOwnerId = flag "e-c2-security-group-owner-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.authorize_cache_security_group_ingress (Values.AuthorizeCacheSecurityGroupIngressMessage.make ~cacheSecurityGroupName ~eC2SecurityGroupName ~eC2SecurityGroupOwnerId ()) (Some Values.AuthorizeCacheSecurityGroupIngressResult.to_json) (Some Values.AuthorizeCacheSecurityGroupIngressResult.error_to_json)]) let batch_apply_update_action = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupIds = flag "replication-group-ids" (optional json_arg) ~doc:"JSON ReplicationGroupIdList" and cacheClusterIds = flag "cache-cluster-ids" (optional json_arg) ~doc:"JSON CacheClusterIdList" and serviceUpdateName = flag "service-update-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.batch_apply_update_action (Values.BatchApplyUpdateActionMessage.make ?replicationGroupIds:(Option.map ~f:Values.ReplicationGroupIdList.of_json replicationGroupIds) ?cacheClusterIds:(Option.map ~f:Values.CacheClusterIdList.of_json cacheClusterIds) ~serviceUpdateName ()) (Some Values.UpdateActionResultsMessage.to_json) (Some Values.UpdateActionResultsMessage.error_to_json)]) let batch_stop_update_action = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupIds = flag "replication-group-ids" (optional json_arg) ~doc:"JSON ReplicationGroupIdList" and cacheClusterIds = flag "cache-cluster-ids" (optional json_arg) ~doc:"JSON CacheClusterIdList" and serviceUpdateName = flag "service-update-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.batch_stop_update_action (Values.BatchStopUpdateActionMessage.make ?replicationGroupIds:(Option.map ~f:Values.ReplicationGroupIdList.of_json replicationGroupIds) ?cacheClusterIds:(Option.map ~f:Values.CacheClusterIdList.of_json cacheClusterIds) ~serviceUpdateName ()) (Some Values.UpdateActionResultsMessage.to_json) (Some Values.UpdateActionResultsMessage.error_to_json)]) let complete_migration = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and force = flag "force" (optional bool) ~doc:"BOOL Boolean" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.complete_migration (Values.CompleteMigrationMessage.make ?force ~replicationGroupId ()) (Some Values.CompleteMigrationResponse.to_json) (Some Values.CompleteMigrationResponse.error_to_json)]) let copy_serverless_cache_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and kmsKeyId = flag "kms-key-id" (optional string) ~doc:"STRING String" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and sourceServerlessCacheSnapshotName = flag "source-serverless-cache-snapshot-name" (required string) ~doc:"STRING String" and targetServerlessCacheSnapshotName = flag "target-serverless-cache-snapshot-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.copy_serverless_cache_snapshot (Values.CopyServerlessCacheSnapshotRequest.make ?kmsKeyId ?tags:(Option.map ~f:Values.TagList.of_json tags) ~sourceServerlessCacheSnapshotName ~targetServerlessCacheSnapshotName ()) (Some Values.CopyServerlessCacheSnapshotResponse.to_json) (Some Values.CopyServerlessCacheSnapshotResponse.error_to_json)]) let copy_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and targetBucket = flag "target-bucket" (optional string) ~doc:"STRING String" and kmsKeyId = flag "kms-key-id" (optional string) ~doc:"STRING String" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and sourceSnapshotName = flag "source-snapshot-name" (required string) ~doc:"STRING String" and targetSnapshotName = flag "target-snapshot-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.copy_snapshot (Values.CopySnapshotMessage.make ?targetBucket ?kmsKeyId ?tags:(Option.map ~f:Values.TagList.of_json tags) ~sourceSnapshotName ~targetSnapshotName ()) (Some Values.CopySnapshotResult.to_json) (Some Values.CopySnapshotResult.error_to_json)]) let create_cache_cluster = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (optional string) ~doc:"STRING String" and aZMode = flag "a-z-mode" (optional json_arg) ~doc:"JSON AZMode" and preferredAvailabilityZone = flag "preferred-availability-zone" (optional string) ~doc:"STRING String" and preferredAvailabilityZones = flag "preferred-availability-zones" (optional json_arg) ~doc:"JSON PreferredAvailabilityZoneList" and numCacheNodes = flag "num-cache-nodes" (optional int) ~doc:"INT IntegerOptional" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and engine = flag "engine" (optional string) ~doc:"STRING String" and engineVersion = flag "engine-version" (optional string) ~doc:"STRING String" and cacheParameterGroupName = flag "cache-parameter-group-name" (optional string) ~doc:"STRING String" and cacheSubnetGroupName = flag "cache-subnet-group-name" (optional string) ~doc:"STRING String" and cacheSecurityGroupNames = flag "cache-security-group-names" (optional json_arg) ~doc:"JSON CacheSecurityGroupNameList" and securityGroupIds = flag "security-group-ids" (optional json_arg) ~doc:"JSON SecurityGroupIdsList" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and snapshotArns = flag "snapshot-arns" (optional json_arg) ~doc:"JSON SnapshotArnsList" and snapshotName = flag "snapshot-name" (optional string) ~doc:"STRING String" and preferredMaintenanceWindow = flag "preferred-maintenance-window" (optional string) ~doc:"STRING String" and port = flag "port" (optional int) ~doc:"INT IntegerOptional" and notificationTopicArn = flag "notification-topic-arn" (optional string) ~doc:"STRING String" and autoMinorVersionUpgrade = flag "auto-minor-version-upgrade" (optional bool) ~doc:"BOOL BooleanOptional" and snapshotRetentionLimit = flag "snapshot-retention-limit" (optional int) ~doc:"INT IntegerOptional" and snapshotWindow = flag "snapshot-window" (optional string) ~doc:"STRING String" and authToken = flag "auth-token" (optional string) ~doc:"STRING String" and outpostMode = flag "outpost-mode" (optional json_arg) ~doc:"JSON OutpostMode" and preferredOutpostArn = flag "preferred-outpost-arn" (optional string) ~doc:"STRING String" and preferredOutpostArns = flag "preferred-outpost-arns" (optional json_arg) ~doc:"JSON PreferredOutpostArnList" and logDeliveryConfigurations = flag "log-delivery-configurations" (optional json_arg) ~doc:"JSON LogDeliveryConfigurationRequestList" and transitEncryptionEnabled = flag "transit-encryption-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and networkType = flag "network-type" (optional json_arg) ~doc:"JSON NetworkType" and ipDiscovery = flag "ip-discovery" (optional json_arg) ~doc:"JSON IpDiscovery" and cacheClusterId = flag "cache-cluster-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_cache_cluster (Values.CreateCacheClusterMessage.make ?replicationGroupId ?aZMode:(Option.map ~f:Values.AZMode.of_json aZMode) ?preferredAvailabilityZone ?preferredAvailabilityZones:(Option.map ~f:Values.PreferredAvailabilityZoneList.of_json preferredAvailabilityZones) ?numCacheNodes ?cacheNodeType ?engine ?engineVersion ?cacheParameterGroupName ?cacheSubnetGroupName ?cacheSecurityGroupNames:(Option.map ~f:Values.CacheSecurityGroupNameList.of_json cacheSecurityGroupNames) ?securityGroupIds:(Option.map ~f:Values.SecurityGroupIdsList.of_json securityGroupIds) ?tags:(Option.map ~f:Values.TagList.of_json tags) ?snapshotArns:(Option.map ~f:Values.SnapshotArnsList.of_json snapshotArns) ?snapshotName ?preferredMaintenanceWindow ?port ?notificationTopicArn ?autoMinorVersionUpgrade ?snapshotRetentionLimit ?snapshotWindow ?authToken ?outpostMode:(Option.map ~f:Values.OutpostMode.of_json outpostMode) ?preferredOutpostArn ?preferredOutpostArns:(Option.map ~f:Values.PreferredOutpostArnList.of_json preferredOutpostArns) ?logDeliveryConfigurations:(Option.map ~f:Values.LogDeliveryConfigurationRequestList.of_json logDeliveryConfigurations) ?transitEncryptionEnabled ?networkType:(Option.map ~f:Values.NetworkType.of_json networkType) ?ipDiscovery:(Option.map ~f:Values.IpDiscovery.of_json ipDiscovery) ~cacheClusterId ()) (Some Values.CreateCacheClusterResult.to_json) (Some Values.CreateCacheClusterResult.error_to_json)]) let create_cache_parameter_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and cacheParameterGroupName = flag "cache-parameter-group-name" (required string) ~doc:"STRING String" and cacheParameterGroupFamily = flag "cache-parameter-group-family" (required string) ~doc:"STRING String" and description = flag "description" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_cache_parameter_group (Values.CreateCacheParameterGroupMessage.make ?tags:(Option.map ~f:Values.TagList.of_json tags) ~cacheParameterGroupName ~cacheParameterGroupFamily ~description ()) (Some Values.CreateCacheParameterGroupResult.to_json) (Some Values.CreateCacheParameterGroupResult.error_to_json)]) let create_cache_security_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and cacheSecurityGroupName = flag "cache-security-group-name" (required string) ~doc:"STRING String" and description = flag "description" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_cache_security_group (Values.CreateCacheSecurityGroupMessage.make ?tags:(Option.map ~f:Values.TagList.of_json tags) ~cacheSecurityGroupName ~description ()) (Some Values.CreateCacheSecurityGroupResult.to_json) (Some Values.CreateCacheSecurityGroupResult.error_to_json)]) let create_cache_subnet_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and cacheSubnetGroupName = flag "cache-subnet-group-name" (required string) ~doc:"STRING String" and cacheSubnetGroupDescription = flag "cache-subnet-group-description" (required string) ~doc:"STRING String" and subnetIds = flag "subnet-ids" (required json_arg) ~doc:"JSON SubnetIdentifierList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_cache_subnet_group (Values.CreateCacheSubnetGroupMessage.make ?tags:(Option.map ~f:Values.TagList.of_json tags) ~cacheSubnetGroupName ~cacheSubnetGroupDescription ~subnetIds:(Values.SubnetIdentifierList.of_json subnetIds) ()) (Some Values.CreateCacheSubnetGroupResult.to_json) (Some Values.CreateCacheSubnetGroupResult.error_to_json)]) let create_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupDescription = flag "global-replication-group-description" (optional string) ~doc:"STRING String" and globalReplicationGroupIdSuffix = flag "global-replication-group-id-suffix" (required string) ~doc:"STRING String" and primaryReplicationGroupId = flag "primary-replication-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_global_replication_group (Values.CreateGlobalReplicationGroupMessage.make ?globalReplicationGroupDescription ~globalReplicationGroupIdSuffix ~primaryReplicationGroupId ()) (Some Values.CreateGlobalReplicationGroupResult.to_json) (Some Values.CreateGlobalReplicationGroupResult.error_to_json)]) let create_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupId = flag "global-replication-group-id" (optional string) ~doc:"STRING String" and primaryClusterId = flag "primary-cluster-id" (optional string) ~doc:"STRING String" and automaticFailoverEnabled = flag "automatic-failover-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and multiAZEnabled = flag "multi-a-z-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and numCacheClusters = flag "num-cache-clusters" (optional int) ~doc:"INT IntegerOptional" and preferredCacheClusterAZs = flag "preferred-cache-cluster-a-zs" (optional json_arg) ~doc:"JSON AvailabilityZonesList" and numNodeGroups = flag "num-node-groups" (optional int) ~doc:"INT IntegerOptional" and replicasPerNodeGroup = flag "replicas-per-node-group" (optional int) ~doc:"INT IntegerOptional" and nodeGroupConfiguration = flag "node-group-configuration" (optional json_arg) ~doc:"JSON NodeGroupConfigurationList" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and engine = flag "engine" (optional string) ~doc:"STRING String" and engineVersion = flag "engine-version" (optional string) ~doc:"STRING String" and cacheParameterGroupName = flag "cache-parameter-group-name" (optional string) ~doc:"STRING String" and cacheSubnetGroupName = flag "cache-subnet-group-name" (optional string) ~doc:"STRING String" and cacheSecurityGroupNames = flag "cache-security-group-names" (optional json_arg) ~doc:"JSON CacheSecurityGroupNameList" and securityGroupIds = flag "security-group-ids" (optional json_arg) ~doc:"JSON SecurityGroupIdsList" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and snapshotArns = flag "snapshot-arns" (optional json_arg) ~doc:"JSON SnapshotArnsList" and snapshotName = flag "snapshot-name" (optional string) ~doc:"STRING String" and preferredMaintenanceWindow = flag "preferred-maintenance-window" (optional string) ~doc:"STRING String" and port = flag "port" (optional int) ~doc:"INT IntegerOptional" and notificationTopicArn = flag "notification-topic-arn" (optional string) ~doc:"STRING String" and autoMinorVersionUpgrade = flag "auto-minor-version-upgrade" (optional bool) ~doc:"BOOL BooleanOptional" and snapshotRetentionLimit = flag "snapshot-retention-limit" (optional int) ~doc:"INT IntegerOptional" and snapshotWindow = flag "snapshot-window" (optional string) ~doc:"STRING String" and authToken = flag "auth-token" (optional string) ~doc:"STRING String" and transitEncryptionEnabled = flag "transit-encryption-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and atRestEncryptionEnabled = flag "at-rest-encryption-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and kmsKeyId = flag "kms-key-id" (optional string) ~doc:"STRING String" and userGroupIds = flag "user-group-ids" (optional json_arg) ~doc:"JSON UserGroupIdListInput" and logDeliveryConfigurations = flag "log-delivery-configurations" (optional json_arg) ~doc:"JSON LogDeliveryConfigurationRequestList" and dataTieringEnabled = flag "data-tiering-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and networkType = flag "network-type" (optional json_arg) ~doc:"JSON NetworkType" and ipDiscovery = flag "ip-discovery" (optional json_arg) ~doc:"JSON IpDiscovery" and transitEncryptionMode = flag "transit-encryption-mode" (optional json_arg) ~doc:"JSON TransitEncryptionMode" and clusterMode = flag "cluster-mode" (optional json_arg) ~doc:"JSON ClusterMode" and serverlessCacheSnapshotName = flag "serverless-cache-snapshot-name" (optional string) ~doc:"STRING String" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and replicationGroupDescription = flag "replication-group-description" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_replication_group (Values.CreateReplicationGroupMessage.make ?globalReplicationGroupId ?primaryClusterId ?automaticFailoverEnabled ?multiAZEnabled ?numCacheClusters ?preferredCacheClusterAZs:(Option.map ~f:Values.AvailabilityZonesList.of_json preferredCacheClusterAZs) ?numNodeGroups ?replicasPerNodeGroup ?nodeGroupConfiguration:(Option.map ~f:Values.NodeGroupConfigurationList.of_json nodeGroupConfiguration) ?cacheNodeType ?engine ?engineVersion ?cacheParameterGroupName ?cacheSubnetGroupName ?cacheSecurityGroupNames:(Option.map ~f:Values.CacheSecurityGroupNameList.of_json cacheSecurityGroupNames) ?securityGroupIds:(Option.map ~f:Values.SecurityGroupIdsList.of_json securityGroupIds) ?tags:(Option.map ~f:Values.TagList.of_json tags) ?snapshotArns:(Option.map ~f:Values.SnapshotArnsList.of_json snapshotArns) ?snapshotName ?preferredMaintenanceWindow ?port ?notificationTopicArn ?autoMinorVersionUpgrade ?snapshotRetentionLimit ?snapshotWindow ?authToken ?transitEncryptionEnabled ?atRestEncryptionEnabled ?kmsKeyId ?userGroupIds:(Option.map ~f:Values.UserGroupIdListInput.of_json userGroupIds) ?logDeliveryConfigurations:(Option.map ~f:Values.LogDeliveryConfigurationRequestList.of_json logDeliveryConfigurations) ?dataTieringEnabled ?networkType:(Option.map ~f:Values.NetworkType.of_json networkType) ?ipDiscovery:(Option.map ~f:Values.IpDiscovery.of_json ipDiscovery) ?transitEncryptionMode:(Option.map ~f:Values.TransitEncryptionMode.of_json transitEncryptionMode) ?clusterMode:(Option.map ~f:Values.ClusterMode.of_json clusterMode) ?serverlessCacheSnapshotName ~replicationGroupId ~replicationGroupDescription ()) (Some Values.CreateReplicationGroupResult.to_json) (Some Values.CreateReplicationGroupResult.error_to_json)]) let create_serverless_cache = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and description = flag "description" (optional string) ~doc:"STRING String" and majorEngineVersion = flag "major-engine-version" (optional string) ~doc:"STRING String" and cacheUsageLimits = flag "cache-usage-limits" (optional json_arg) ~doc:"JSON CacheUsageLimits" and kmsKeyId = flag "kms-key-id" (optional string) ~doc:"STRING String" and securityGroupIds = flag "security-group-ids" (optional json_arg) ~doc:"JSON SecurityGroupIdsList" and snapshotArnsToRestore = flag "snapshot-arns-to-restore" (optional json_arg) ~doc:"JSON SnapshotArnsList" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and userGroupId = flag "user-group-id" (optional string) ~doc:"STRING String" and subnetIds = flag "subnet-ids" (optional json_arg) ~doc:"JSON SubnetIdsList" and snapshotRetentionLimit = flag "snapshot-retention-limit" (optional int) ~doc:"INT IntegerOptional" and dailySnapshotTime = flag "daily-snapshot-time" (optional string) ~doc:"STRING String" and networkType = flag "network-type" (optional json_arg) ~doc:"JSON NetworkType" and serverlessCacheName = flag "serverless-cache-name" (required string) ~doc:"STRING String" and engine = flag "engine" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_serverless_cache (Values.CreateServerlessCacheRequest.make ?description ?majorEngineVersion ?cacheUsageLimits:(Option.map ~f:Values.CacheUsageLimits.of_json cacheUsageLimits) ?kmsKeyId ?securityGroupIds:(Option.map ~f:Values.SecurityGroupIdsList.of_json securityGroupIds) ?snapshotArnsToRestore:(Option.map ~f:Values.SnapshotArnsList.of_json snapshotArnsToRestore) ?tags:(Option.map ~f:Values.TagList.of_json tags) ?userGroupId ?subnetIds:(Option.map ~f:Values.SubnetIdsList.of_json subnetIds) ?snapshotRetentionLimit ?dailySnapshotTime ?networkType:(Option.map ~f:Values.NetworkType.of_json networkType) ~serverlessCacheName ~engine ()) (Some Values.CreateServerlessCacheResponse.to_json) (Some Values.CreateServerlessCacheResponse.error_to_json)]) let create_serverless_cache_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and kmsKeyId = flag "kms-key-id" (optional string) ~doc:"STRING String" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and serverlessCacheSnapshotName = flag "serverless-cache-snapshot-name" (required string) ~doc:"STRING String" and serverlessCacheName = flag "serverless-cache-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_serverless_cache_snapshot (Values.CreateServerlessCacheSnapshotRequest.make ?kmsKeyId ?tags:(Option.map ~f:Values.TagList.of_json tags) ~serverlessCacheSnapshotName ~serverlessCacheName ()) (Some Values.CreateServerlessCacheSnapshotResponse.to_json) (Some Values.CreateServerlessCacheSnapshotResponse.error_to_json)]) let create_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (optional string) ~doc:"STRING String" and cacheClusterId = flag "cache-cluster-id" (optional string) ~doc:"STRING String" and kmsKeyId = flag "kms-key-id" (optional string) ~doc:"STRING String" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and snapshotName = flag "snapshot-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_snapshot (Values.CreateSnapshotMessage.make ?replicationGroupId ?cacheClusterId ?kmsKeyId ?tags:(Option.map ~f:Values.TagList.of_json tags) ~snapshotName ()) (Some Values.CreateSnapshotResult.to_json) (Some Values.CreateSnapshotResult.error_to_json)]) let create_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and passwords = flag "passwords" (optional json_arg) ~doc:"JSON PasswordListInput" and noPasswordRequired = flag "no-password-required" (optional bool) ~doc:"BOOL BooleanOptional" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and authenticationMode = flag "authentication-mode" (optional json_arg) ~doc:"JSON AuthenticationMode" and userId = flag "user-id" (required string) ~doc:"STRING UserId" and userName = flag "user-name" (required string) ~doc:"STRING UserName" and engine = flag "engine" (required string) ~doc:"STRING EngineType" and accessString = flag "access-string" (required string) ~doc:"STRING AccessString" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_user (Values.CreateUserMessage.make ?passwords:(Option.map ~f:Values.PasswordListInput.of_json passwords) ?noPasswordRequired ?tags:(Option.map ~f:Values.TagList.of_json tags) ?authenticationMode:(Option.map ~f:Values.AuthenticationMode.of_json authenticationMode) ~userId ~userName ~engine ~accessString ()) (Some Values.User.to_json) (Some Values.User.error_to_json)]) let create_user_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and userIds = flag "user-ids" (optional json_arg) ~doc:"JSON UserIdListInput" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and userGroupId = flag "user-group-id" (required string) ~doc:"STRING String" and engine = flag "engine" (required string) ~doc:"STRING EngineType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_user_group (Values.CreateUserGroupMessage.make ?userIds:(Option.map ~f:Values.UserIdListInput.of_json userIds) ?tags:(Option.map ~f:Values.TagList.of_json tags) ~userGroupId ~engine ()) (Some Values.UserGroup.to_json) (Some Values.UserGroup.error_to_json)]) let decrease_node_groups_in_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalNodeGroupsToRemove = flag "global-node-groups-to-remove" (optional json_arg) ~doc:"JSON GlobalNodeGroupIdList" and globalNodeGroupsToRetain = flag "global-node-groups-to-retain" (optional json_arg) ~doc:"JSON GlobalNodeGroupIdList" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and nodeGroupCount = flag "node-group-count" (required int) ~doc:"INT Integer" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.decrease_node_groups_in_global_replication_group (Values.DecreaseNodeGroupsInGlobalReplicationGroupMessage.make ?globalNodeGroupsToRemove:(Option.map ~f:Values.GlobalNodeGroupIdList.of_json globalNodeGroupsToRemove) ?globalNodeGroupsToRetain:(Option.map ~f:Values.GlobalNodeGroupIdList.of_json globalNodeGroupsToRetain) ~globalReplicationGroupId ~nodeGroupCount ~applyImmediately ()) (Some Values.DecreaseNodeGroupsInGlobalReplicationGroupResult.to_json) (Some Values.DecreaseNodeGroupsInGlobalReplicationGroupResult.error_to_json)]) let decrease_replica_count = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and newReplicaCount = flag "new-replica-count" (optional int) ~doc:"INT IntegerOptional" and replicaConfiguration = flag "replica-configuration" (optional json_arg) ~doc:"JSON ReplicaConfigurationList" and replicasToRemove = flag "replicas-to-remove" (optional json_arg) ~doc:"JSON RemoveReplicasList" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.decrease_replica_count (Values.DecreaseReplicaCountMessage.make ?newReplicaCount ?replicaConfiguration:(Option.map ~f:Values.ReplicaConfigurationList.of_json replicaConfiguration) ?replicasToRemove:(Option.map ~f:Values.RemoveReplicasList.of_json replicasToRemove) ~replicationGroupId ~applyImmediately ()) (Some Values.DecreaseReplicaCountResult.to_json) (Some Values.DecreaseReplicaCountResult.error_to_json)]) let delete_cache_cluster = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and finalSnapshotIdentifier = flag "final-snapshot-identifier" (optional string) ~doc:"STRING String" and cacheClusterId = flag "cache-cluster-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_cache_cluster (Values.DeleteCacheClusterMessage.make ?finalSnapshotIdentifier ~cacheClusterId ()) (Some Values.DeleteCacheClusterResult.to_json) (Some Values.DeleteCacheClusterResult.error_to_json)]) let delete_cache_parameter_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheParameterGroupName = flag "cache-parameter-group-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_cache_parameter_group (Values.DeleteCacheParameterGroupMessage.make ~cacheParameterGroupName ()) None None]) let delete_cache_security_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSecurityGroupName = flag "cache-security-group-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_cache_security_group (Values.DeleteCacheSecurityGroupMessage.make ~cacheSecurityGroupName ()) None None]) let delete_cache_subnet_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSubnetGroupName = flag "cache-subnet-group-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_cache_subnet_group (Values.DeleteCacheSubnetGroupMessage.make ~cacheSubnetGroupName ()) None None]) let delete_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and retainPrimaryReplicationGroup = flag "retain-primary-replication-group" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_global_replication_group (Values.DeleteGlobalReplicationGroupMessage.make ~globalReplicationGroupId ~retainPrimaryReplicationGroup ()) (Some Values.DeleteGlobalReplicationGroupResult.to_json) (Some Values.DeleteGlobalReplicationGroupResult.error_to_json)]) let delete_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and retainPrimaryCluster = flag "retain-primary-cluster" (optional bool) ~doc:"BOOL BooleanOptional" and finalSnapshotIdentifier = flag "final-snapshot-identifier" (optional string) ~doc:"STRING String" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_replication_group (Values.DeleteReplicationGroupMessage.make ?retainPrimaryCluster ?finalSnapshotIdentifier ~replicationGroupId ()) (Some Values.DeleteReplicationGroupResult.to_json) (Some Values.DeleteReplicationGroupResult.error_to_json)]) let delete_serverless_cache = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and finalSnapshotName = flag "final-snapshot-name" (optional string) ~doc:"STRING String" and serverlessCacheName = flag "serverless-cache-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_serverless_cache (Values.DeleteServerlessCacheRequest.make ?finalSnapshotName ~serverlessCacheName ()) (Some Values.DeleteServerlessCacheResponse.to_json) (Some Values.DeleteServerlessCacheResponse.error_to_json)]) let delete_serverless_cache_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and serverlessCacheSnapshotName = flag "serverless-cache-snapshot-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_serverless_cache_snapshot (Values.DeleteServerlessCacheSnapshotRequest.make ~serverlessCacheSnapshotName ()) (Some Values.DeleteServerlessCacheSnapshotResponse.to_json) (Some Values.DeleteServerlessCacheSnapshotResponse.error_to_json)]) let delete_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and snapshotName = flag "snapshot-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_snapshot (Values.DeleteSnapshotMessage.make ~snapshotName ()) (Some Values.DeleteSnapshotResult.to_json) (Some Values.DeleteSnapshotResult.error_to_json)]) let delete_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and userId = flag "user-id" (required string) ~doc:"STRING UserId" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_user (Values.DeleteUserMessage.make ~userId ()) (Some Values.User.to_json) (Some Values.User.error_to_json)]) let delete_user_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and userGroupId = flag "user-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_user_group (Values.DeleteUserGroupMessage.make ~userGroupId ()) (Some Values.UserGroup.to_json) (Some Values.UserGroup.error_to_json)]) let describe_cache_clusters = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheClusterId = flag "cache-cluster-id" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" and showCacheNodeInfo = flag "show-cache-node-info" (optional bool) ~doc:"BOOL BooleanOptional" and showCacheClustersNotInReplicationGroups = flag "show-cache-clusters-not-in-replication-groups" (optional bool) ~doc:"BOOL BooleanOptional" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_cache_clusters (Values.DescribeCacheClustersMessage.make ?cacheClusterId ?maxRecords ?marker ?showCacheNodeInfo ?showCacheClustersNotInReplicationGroups ()) (Some Values.CacheClusterMessage.to_json) (Some Values.CacheClusterMessage.error_to_json)]) let describe_cache_engine_versions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and engine = flag "engine" (optional string) ~doc:"STRING String" and engineVersion = flag "engine-version" (optional string) ~doc:"STRING String" and cacheParameterGroupFamily = flag "cache-parameter-group-family" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" and defaultOnly = flag "default-only" (optional bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_cache_engine_versions (Values.DescribeCacheEngineVersionsMessage.make ?engine ?engineVersion ?cacheParameterGroupFamily ?maxRecords ?marker ?defaultOnly ()) (Some Values.CacheEngineVersionMessage.to_json) (Some Values.CacheEngineVersionMessage.error_to_json)]) let describe_cache_parameter_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheParameterGroupName = flag "cache-parameter-group-name" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_cache_parameter_groups (Values.DescribeCacheParameterGroupsMessage.make ?cacheParameterGroupName ?maxRecords ?marker ()) (Some Values.CacheParameterGroupsMessage.to_json) (Some Values.CacheParameterGroupsMessage.error_to_json)]) let describe_cache_parameters = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and source = flag "source" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" and cacheParameterGroupName = flag "cache-parameter-group-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_cache_parameters (Values.DescribeCacheParametersMessage.make ?source ?maxRecords ?marker ~cacheParameterGroupName ()) (Some Values.CacheParameterGroupDetails.to_json) (Some Values.CacheParameterGroupDetails.error_to_json)]) let describe_cache_security_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSecurityGroupName = flag "cache-security-group-name" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_cache_security_groups (Values.DescribeCacheSecurityGroupsMessage.make ?cacheSecurityGroupName ?maxRecords ?marker ()) (Some Values.CacheSecurityGroupMessage.to_json) (Some Values.CacheSecurityGroupMessage.error_to_json)]) let describe_cache_subnet_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSubnetGroupName = flag "cache-subnet-group-name" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_cache_subnet_groups (Values.DescribeCacheSubnetGroupsMessage.make ?cacheSubnetGroupName ?maxRecords ?marker ()) (Some Values.CacheSubnetGroupMessage.to_json) (Some Values.CacheSubnetGroupMessage.error_to_json)]) let describe_engine_default_parameters = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" and cacheParameterGroupFamily = flag "cache-parameter-group-family" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_engine_default_parameters (Values.DescribeEngineDefaultParametersMessage.make ?maxRecords ?marker ~cacheParameterGroupFamily ()) (Some Values.DescribeEngineDefaultParametersResult.to_json) (Some Values.DescribeEngineDefaultParametersResult.error_to_json)]) let describe_events = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and sourceIdentifier = flag "source-identifier" (optional string) ~doc:"STRING String" and sourceType = flag "source-type" (optional json_arg) ~doc:"JSON SourceType" and startTime = flag "start-time" (optional json_arg) ~doc:"JSON TStamp" and endTime = flag "end-time" (optional json_arg) ~doc:"JSON TStamp" and duration = flag "duration" (optional int) ~doc:"INT IntegerOptional" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_events (Values.DescribeEventsMessage.make ?sourceIdentifier ?sourceType:(Option.map ~f:Values.SourceType.of_json sourceType) ?startTime:(Option.map ~f:Values.TStamp.of_json startTime) ?endTime:(Option.map ~f:Values.TStamp.of_json endTime) ?duration ?maxRecords ?marker ()) (Some Values.EventsMessage.to_json) (Some Values.EventsMessage.error_to_json)]) let describe_global_replication_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupId = flag "global-replication-group-id" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" and showMemberInfo = flag "show-member-info" (optional bool) ~doc:"BOOL BooleanOptional" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_global_replication_groups (Values.DescribeGlobalReplicationGroupsMessage.make ?globalReplicationGroupId ?maxRecords ?marker ?showMemberInfo ()) (Some Values.DescribeGlobalReplicationGroupsResult.to_json) (Some Values.DescribeGlobalReplicationGroupsResult.error_to_json)]) let describe_replication_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_replication_groups (Values.DescribeReplicationGroupsMessage.make ?replicationGroupId ?maxRecords ?marker ()) (Some Values.ReplicationGroupMessage.to_json) (Some Values.ReplicationGroupMessage.error_to_json)]) let describe_reserved_cache_nodes = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and reservedCacheNodeId = flag "reserved-cache-node-id" (optional string) ~doc:"STRING String" and reservedCacheNodesOfferingId = flag "reserved-cache-nodes-offering-id" (optional string) ~doc:"STRING String" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and duration = flag "duration" (optional string) ~doc:"STRING String" and productDescription = flag "product-description" (optional string) ~doc:"STRING String" and offeringType = flag "offering-type" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_reserved_cache_nodes (Values.DescribeReservedCacheNodesMessage.make ?reservedCacheNodeId ?reservedCacheNodesOfferingId ?cacheNodeType ?duration ?productDescription ?offeringType ?maxRecords ?marker ()) (Some Values.ReservedCacheNodeMessage.to_json) (Some Values.ReservedCacheNodeMessage.error_to_json)]) let describe_reserved_cache_nodes_offerings = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and reservedCacheNodesOfferingId = flag "reserved-cache-nodes-offering-id" (optional string) ~doc:"STRING String" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and duration = flag "duration" (optional string) ~doc:"STRING String" and productDescription = flag "product-description" (optional string) ~doc:"STRING String" and offeringType = flag "offering-type" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_reserved_cache_nodes_offerings (Values.DescribeReservedCacheNodesOfferingsMessage.make ?reservedCacheNodesOfferingId ?cacheNodeType ?duration ?productDescription ?offeringType ?maxRecords ?marker ()) (Some Values.ReservedCacheNodesOfferingMessage.to_json) (Some Values.ReservedCacheNodesOfferingMessage.error_to_json)]) let describe_serverless_cache_snapshots = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and serverlessCacheName = flag "serverless-cache-name" (optional string) ~doc:"STRING String" and serverlessCacheSnapshotName = flag "serverless-cache-snapshot-name" (optional string) ~doc:"STRING String" and snapshotType = flag "snapshot-type" (optional string) ~doc:"STRING String" and nextToken = flag "next-token" (optional string) ~doc:"STRING String" and maxResults = flag "max-results" (optional int) ~doc:"INT IntegerOptional" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_serverless_cache_snapshots (Values.DescribeServerlessCacheSnapshotsRequest.make ?serverlessCacheName ?serverlessCacheSnapshotName ?snapshotType ?nextToken ?maxResults ()) (Some Values.DescribeServerlessCacheSnapshotsResponse.to_json) (Some Values.DescribeServerlessCacheSnapshotsResponse.error_to_json)]) let describe_serverless_caches = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and serverlessCacheName = flag "serverless-cache-name" (optional string) ~doc:"STRING String" and maxResults = flag "max-results" (optional int) ~doc:"INT IntegerOptional" and nextToken = flag "next-token" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_serverless_caches (Values.DescribeServerlessCachesRequest.make ?serverlessCacheName ?maxResults ?nextToken ()) (Some Values.DescribeServerlessCachesResponse.to_json) (Some Values.DescribeServerlessCachesResponse.error_to_json)]) let describe_service_updates = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and serviceUpdateName = flag "service-update-name" (optional string) ~doc:"STRING String" and serviceUpdateStatus = flag "service-update-status" (optional json_arg) ~doc:"JSON ServiceUpdateStatusList" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_service_updates (Values.DescribeServiceUpdatesMessage.make ?serviceUpdateName ?serviceUpdateStatus:(Option.map ~f:Values.ServiceUpdateStatusList.of_json serviceUpdateStatus) ?maxRecords ?marker ()) (Some Values.ServiceUpdatesMessage.to_json) (Some Values.ServiceUpdatesMessage.error_to_json)]) let describe_snapshots = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (optional string) ~doc:"STRING String" and cacheClusterId = flag "cache-cluster-id" (optional string) ~doc:"STRING String" and snapshotName = flag "snapshot-name" (optional string) ~doc:"STRING String" and snapshotSource = flag "snapshot-source" (optional string) ~doc:"STRING String" and marker = flag "marker" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and showNodeGroupConfig = flag "show-node-group-config" (optional bool) ~doc:"BOOL BooleanOptional" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_snapshots (Values.DescribeSnapshotsMessage.make ?replicationGroupId ?cacheClusterId ?snapshotName ?snapshotSource ?marker ?maxRecords ?showNodeGroupConfig ()) (Some Values.DescribeSnapshotsListMessage.to_json) (Some Values.DescribeSnapshotsListMessage.error_to_json)]) let describe_update_actions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and serviceUpdateName = flag "service-update-name" (optional string) ~doc:"STRING String" and replicationGroupIds = flag "replication-group-ids" (optional json_arg) ~doc:"JSON ReplicationGroupIdList" and cacheClusterIds = flag "cache-cluster-ids" (optional json_arg) ~doc:"JSON CacheClusterIdList" and engine = flag "engine" (optional string) ~doc:"STRING String" and serviceUpdateStatus = flag "service-update-status" (optional json_arg) ~doc:"JSON ServiceUpdateStatusList" and serviceUpdateTimeRange = flag "service-update-time-range" (optional json_arg) ~doc:"JSON TimeRangeFilter" and updateActionStatus = flag "update-action-status" (optional json_arg) ~doc:"JSON UpdateActionStatusList" and showNodeLevelUpdateStatus = flag "show-node-level-update-status" (optional bool) ~doc:"BOOL BooleanOptional" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_update_actions (Values.DescribeUpdateActionsMessage.make ?serviceUpdateName ?replicationGroupIds:(Option.map ~f:Values.ReplicationGroupIdList.of_json replicationGroupIds) ?cacheClusterIds:(Option.map ~f:Values.CacheClusterIdList.of_json cacheClusterIds) ?engine ?serviceUpdateStatus:(Option.map ~f:Values.ServiceUpdateStatusList.of_json serviceUpdateStatus) ?serviceUpdateTimeRange:(Option.map ~f:Values.TimeRangeFilter.of_json serviceUpdateTimeRange) ?updateActionStatus:(Option.map ~f:Values.UpdateActionStatusList.of_json updateActionStatus) ?showNodeLevelUpdateStatus ?maxRecords ?marker ()) (Some Values.UpdateActionsMessage.to_json) (Some Values.UpdateActionsMessage.error_to_json)]) let describe_user_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and userGroupId = flag "user-group-id" (optional string) ~doc:"STRING String" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_user_groups (Values.DescribeUserGroupsMessage.make ?userGroupId ?maxRecords ?marker ()) (Some Values.DescribeUserGroupsResult.to_json) (Some Values.DescribeUserGroupsResult.error_to_json)]) let describe_users = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and engine = flag "engine" (optional string) ~doc:"STRING EngineType" and userId = flag "user-id" (optional string) ~doc:"STRING UserId" and filters = flag "filters" (optional json_arg) ~doc:"JSON FilterList" and maxRecords = flag "max-records" (optional int) ~doc:"INT IntegerOptional" and marker = flag "marker" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_users (Values.DescribeUsersMessage.make ?engine ?userId ?filters:(Option.map ~f:Values.FilterList.of_json filters) ?maxRecords ?marker ()) (Some Values.DescribeUsersResult.to_json) (Some Values.DescribeUsersResult.error_to_json)]) let disassociate_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and replicationGroupRegion = flag "replication-group-region" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.disassociate_global_replication_group (Values.DisassociateGlobalReplicationGroupMessage.make ~globalReplicationGroupId ~replicationGroupId ~replicationGroupRegion ()) (Some Values.DisassociateGlobalReplicationGroupResult.to_json) (Some Values.DisassociateGlobalReplicationGroupResult.error_to_json)]) let export_serverless_cache_snapshot = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and serverlessCacheSnapshotName = flag "serverless-cache-snapshot-name" (required string) ~doc:"STRING String" and s3BucketName = flag "s3-bucket-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.export_serverless_cache_snapshot (Values.ExportServerlessCacheSnapshotRequest.make ~serverlessCacheSnapshotName ~s3BucketName ()) (Some Values.ExportServerlessCacheSnapshotResponse.to_json) (Some Values.ExportServerlessCacheSnapshotResponse.error_to_json)]) let failover_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and primaryRegion = flag "primary-region" (required string) ~doc:"STRING String" and primaryReplicationGroupId = flag "primary-replication-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.failover_global_replication_group (Values.FailoverGlobalReplicationGroupMessage.make ~globalReplicationGroupId ~primaryRegion ~primaryReplicationGroupId ()) (Some Values.FailoverGlobalReplicationGroupResult.to_json) (Some Values.FailoverGlobalReplicationGroupResult.error_to_json)]) let increase_node_groups_in_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and regionalConfigurations = flag "regional-configurations" (optional json_arg) ~doc:"JSON RegionalConfigurationList" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and nodeGroupCount = flag "node-group-count" (required int) ~doc:"INT Integer" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.increase_node_groups_in_global_replication_group (Values.IncreaseNodeGroupsInGlobalReplicationGroupMessage.make ?regionalConfigurations:(Option.map ~f:Values.RegionalConfigurationList.of_json regionalConfigurations) ~globalReplicationGroupId ~nodeGroupCount ~applyImmediately ()) (Some Values.IncreaseNodeGroupsInGlobalReplicationGroupResult.to_json) (Some Values.IncreaseNodeGroupsInGlobalReplicationGroupResult.error_to_json)]) let increase_replica_count = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and newReplicaCount = flag "new-replica-count" (optional int) ~doc:"INT IntegerOptional" and replicaConfiguration = flag "replica-configuration" (optional json_arg) ~doc:"JSON ReplicaConfigurationList" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.increase_replica_count (Values.IncreaseReplicaCountMessage.make ?newReplicaCount ?replicaConfiguration:(Option.map ~f:Values.ReplicaConfigurationList.of_json replicaConfiguration) ~replicationGroupId ~applyImmediately ()) (Some Values.IncreaseReplicaCountResult.to_json) (Some Values.IncreaseReplicaCountResult.error_to_json)]) let list_allowed_node_type_modifications = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheClusterId = flag "cache-cluster-id" (optional string) ~doc:"STRING String" and replicationGroupId = flag "replication-group-id" (optional string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.list_allowed_node_type_modifications (Values.ListAllowedNodeTypeModificationsMessage.make ?cacheClusterId ?replicationGroupId ()) (Some Values.AllowedNodeTypeModificationsMessage.to_json) (Some Values.AllowedNodeTypeModificationsMessage.error_to_json)]) let = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and resourceName = flag "resource-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.list_tags_for_resource (Values.ListTagsForResourceMessage.make ~resourceName ()) (Some Values.TagListMessage.to_json) (Some Values.TagListMessage.error_to_json)]) let modify_cache_cluster = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and numCacheNodes = flag "num-cache-nodes" (optional int) ~doc:"INT IntegerOptional" and cacheNodeIdsToRemove = flag "cache-node-ids-to-remove" (optional json_arg) ~doc:"JSON CacheNodeIdsList" and aZMode = flag "a-z-mode" (optional json_arg) ~doc:"JSON AZMode" and newAvailabilityZones = flag "new-availability-zones" (optional json_arg) ~doc:"JSON PreferredAvailabilityZoneList" and cacheSecurityGroupNames = flag "cache-security-group-names" (optional json_arg) ~doc:"JSON CacheSecurityGroupNameList" and securityGroupIds = flag "security-group-ids" (optional json_arg) ~doc:"JSON SecurityGroupIdsList" and preferredMaintenanceWindow = flag "preferred-maintenance-window" (optional string) ~doc:"STRING String" and notificationTopicArn = flag "notification-topic-arn" (optional string) ~doc:"STRING String" and cacheParameterGroupName = flag "cache-parameter-group-name" (optional string) ~doc:"STRING String" and notificationTopicStatus = flag "notification-topic-status" (optional string) ~doc:"STRING String" and applyImmediately = flag "apply-immediately" (optional bool) ~doc:"BOOL Boolean" and engine = flag "engine" (optional string) ~doc:"STRING String" and engineVersion = flag "engine-version" (optional string) ~doc:"STRING String" and autoMinorVersionUpgrade = flag "auto-minor-version-upgrade" (optional bool) ~doc:"BOOL BooleanOptional" and snapshotRetentionLimit = flag "snapshot-retention-limit" (optional int) ~doc:"INT IntegerOptional" and snapshotWindow = flag "snapshot-window" (optional string) ~doc:"STRING String" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and authToken = flag "auth-token" (optional string) ~doc:"STRING String" and authTokenUpdateStrategy = flag "auth-token-update-strategy" (optional json_arg) ~doc:"JSON AuthTokenUpdateStrategyType" and logDeliveryConfigurations = flag "log-delivery-configurations" (optional json_arg) ~doc:"JSON LogDeliveryConfigurationRequestList" and ipDiscovery = flag "ip-discovery" (optional json_arg) ~doc:"JSON IpDiscovery" and scaleConfig = flag "scale-config" (optional json_arg) ~doc:"JSON ScaleConfig" and cacheClusterId = flag "cache-cluster-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_cache_cluster (Values.ModifyCacheClusterMessage.make ?numCacheNodes ?cacheNodeIdsToRemove:(Option.map ~f:Values.CacheNodeIdsList.of_json cacheNodeIdsToRemove) ?aZMode:(Option.map ~f:Values.AZMode.of_json aZMode) ?newAvailabilityZones:(Option.map ~f:Values.PreferredAvailabilityZoneList.of_json newAvailabilityZones) ?cacheSecurityGroupNames:(Option.map ~f:Values.CacheSecurityGroupNameList.of_json cacheSecurityGroupNames) ?securityGroupIds:(Option.map ~f:Values.SecurityGroupIdsList.of_json securityGroupIds) ?preferredMaintenanceWindow ?notificationTopicArn ?cacheParameterGroupName ?notificationTopicStatus ?applyImmediately ?engine ?engineVersion ?autoMinorVersionUpgrade ?snapshotRetentionLimit ?snapshotWindow ?cacheNodeType ?authToken ?authTokenUpdateStrategy:(Option.map ~f:Values.AuthTokenUpdateStrategyType.of_json authTokenUpdateStrategy) ?logDeliveryConfigurations:(Option.map ~f:Values.LogDeliveryConfigurationRequestList.of_json logDeliveryConfigurations) ?ipDiscovery:(Option.map ~f:Values.IpDiscovery.of_json ipDiscovery) ?scaleConfig:(Option.map ~f:Values.ScaleConfig.of_json scaleConfig) ~cacheClusterId ()) (Some Values.ModifyCacheClusterResult.to_json) (Some Values.ModifyCacheClusterResult.error_to_json)]) let modify_cache_parameter_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheParameterGroupName = flag "cache-parameter-group-name" (required string) ~doc:"STRING String" and parameterNameValues = flag "parameter-name-values" (required json_arg) ~doc:"JSON ParameterNameValueList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_cache_parameter_group (Values.ModifyCacheParameterGroupMessage.make ~cacheParameterGroupName ~parameterNameValues:(Values.ParameterNameValueList.of_json parameterNameValues) ()) (Some Values.CacheParameterGroupNameMessage.to_json) (Some Values.CacheParameterGroupNameMessage.error_to_json)]) let modify_cache_subnet_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSubnetGroupDescription = flag "cache-subnet-group-description" (optional string) ~doc:"STRING String" and subnetIds = flag "subnet-ids" (optional json_arg) ~doc:"JSON SubnetIdentifierList" and cacheSubnetGroupName = flag "cache-subnet-group-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_cache_subnet_group (Values.ModifyCacheSubnetGroupMessage.make ?cacheSubnetGroupDescription ?subnetIds:(Option.map ~f:Values.SubnetIdentifierList.of_json subnetIds) ~cacheSubnetGroupName ()) (Some Values.ModifyCacheSubnetGroupResult.to_json) (Some Values.ModifyCacheSubnetGroupResult.error_to_json)]) let modify_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and engine = flag "engine" (optional string) ~doc:"STRING String" and engineVersion = flag "engine-version" (optional string) ~doc:"STRING String" and cacheParameterGroupName = flag "cache-parameter-group-name" (optional string) ~doc:"STRING String" and globalReplicationGroupDescription = flag "global-replication-group-description" (optional string) ~doc:"STRING String" and automaticFailoverEnabled = flag "automatic-failover-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_global_replication_group (Values.ModifyGlobalReplicationGroupMessage.make ?cacheNodeType ?engine ?engineVersion ?cacheParameterGroupName ?globalReplicationGroupDescription ?automaticFailoverEnabled ~globalReplicationGroupId ~applyImmediately ()) (Some Values.ModifyGlobalReplicationGroupResult.to_json) (Some Values.ModifyGlobalReplicationGroupResult.error_to_json)]) let modify_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupDescription = flag "replication-group-description" (optional string) ~doc:"STRING String" and primaryClusterId = flag "primary-cluster-id" (optional string) ~doc:"STRING String" and snapshottingClusterId = flag "snapshotting-cluster-id" (optional string) ~doc:"STRING String" and automaticFailoverEnabled = flag "automatic-failover-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and multiAZEnabled = flag "multi-a-z-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and nodeGroupId = flag "node-group-id" (optional string) ~doc:"STRING String" and cacheSecurityGroupNames = flag "cache-security-group-names" (optional json_arg) ~doc:"JSON CacheSecurityGroupNameList" and securityGroupIds = flag "security-group-ids" (optional json_arg) ~doc:"JSON SecurityGroupIdsList" and preferredMaintenanceWindow = flag "preferred-maintenance-window" (optional string) ~doc:"STRING String" and notificationTopicArn = flag "notification-topic-arn" (optional string) ~doc:"STRING String" and cacheParameterGroupName = flag "cache-parameter-group-name" (optional string) ~doc:"STRING String" and notificationTopicStatus = flag "notification-topic-status" (optional string) ~doc:"STRING String" and applyImmediately = flag "apply-immediately" (optional bool) ~doc:"BOOL Boolean" and engine = flag "engine" (optional string) ~doc:"STRING String" and engineVersion = flag "engine-version" (optional string) ~doc:"STRING String" and autoMinorVersionUpgrade = flag "auto-minor-version-upgrade" (optional bool) ~doc:"BOOL BooleanOptional" and snapshotRetentionLimit = flag "snapshot-retention-limit" (optional int) ~doc:"INT IntegerOptional" and snapshotWindow = flag "snapshot-window" (optional string) ~doc:"STRING String" and cacheNodeType = flag "cache-node-type" (optional string) ~doc:"STRING String" and authToken = flag "auth-token" (optional string) ~doc:"STRING String" and authTokenUpdateStrategy = flag "auth-token-update-strategy" (optional json_arg) ~doc:"JSON AuthTokenUpdateStrategyType" and userGroupIdsToAdd = flag "user-group-ids-to-add" (optional json_arg) ~doc:"JSON UserGroupIdList" and userGroupIdsToRemove = flag "user-group-ids-to-remove" (optional json_arg) ~doc:"JSON UserGroupIdList" and removeUserGroups = flag "remove-user-groups" (optional bool) ~doc:"BOOL BooleanOptional" and logDeliveryConfigurations = flag "log-delivery-configurations" (optional json_arg) ~doc:"JSON LogDeliveryConfigurationRequestList" and ipDiscovery = flag "ip-discovery" (optional json_arg) ~doc:"JSON IpDiscovery" and transitEncryptionEnabled = flag "transit-encryption-enabled" (optional bool) ~doc:"BOOL BooleanOptional" and transitEncryptionMode = flag "transit-encryption-mode" (optional json_arg) ~doc:"JSON TransitEncryptionMode" and clusterMode = flag "cluster-mode" (optional json_arg) ~doc:"JSON ClusterMode" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_replication_group (Values.ModifyReplicationGroupMessage.make ?replicationGroupDescription ?primaryClusterId ?snapshottingClusterId ?automaticFailoverEnabled ?multiAZEnabled ?nodeGroupId ?cacheSecurityGroupNames:(Option.map ~f:Values.CacheSecurityGroupNameList.of_json cacheSecurityGroupNames) ?securityGroupIds:(Option.map ~f:Values.SecurityGroupIdsList.of_json securityGroupIds) ?preferredMaintenanceWindow ?notificationTopicArn ?cacheParameterGroupName ?notificationTopicStatus ?applyImmediately ?engine ?engineVersion ?autoMinorVersionUpgrade ?snapshotRetentionLimit ?snapshotWindow ?cacheNodeType ?authToken ?authTokenUpdateStrategy:(Option.map ~f:Values.AuthTokenUpdateStrategyType.of_json authTokenUpdateStrategy) ?userGroupIdsToAdd:(Option.map ~f:Values.UserGroupIdList.of_json userGroupIdsToAdd) ?userGroupIdsToRemove:(Option.map ~f:Values.UserGroupIdList.of_json userGroupIdsToRemove) ?removeUserGroups ?logDeliveryConfigurations:(Option.map ~f:Values.LogDeliveryConfigurationRequestList.of_json logDeliveryConfigurations) ?ipDiscovery:(Option.map ~f:Values.IpDiscovery.of_json ipDiscovery) ?transitEncryptionEnabled ?transitEncryptionMode:(Option.map ~f:Values.TransitEncryptionMode.of_json transitEncryptionMode) ?clusterMode:(Option.map ~f:Values.ClusterMode.of_json clusterMode) ~replicationGroupId ()) (Some Values.ModifyReplicationGroupResult.to_json) (Some Values.ModifyReplicationGroupResult.error_to_json)]) let modify_replication_group_shard_configuration = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and reshardingConfiguration = flag "resharding-configuration" (optional json_arg) ~doc:"JSON ReshardingConfigurationList" and nodeGroupsToRemove = flag "node-groups-to-remove" (optional json_arg) ~doc:"JSON NodeGroupsToRemoveList" and nodeGroupsToRetain = flag "node-groups-to-retain" (optional json_arg) ~doc:"JSON NodeGroupsToRetainList" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and nodeGroupCount = flag "node-group-count" (required int) ~doc:"INT Integer" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_replication_group_shard_configuration (Values.ModifyReplicationGroupShardConfigurationMessage.make ?reshardingConfiguration:(Option.map ~f:Values.ReshardingConfigurationList.of_json reshardingConfiguration) ?nodeGroupsToRemove:(Option.map ~f:Values.NodeGroupsToRemoveList.of_json nodeGroupsToRemove) ?nodeGroupsToRetain:(Option.map ~f:Values.NodeGroupsToRetainList.of_json nodeGroupsToRetain) ~replicationGroupId ~nodeGroupCount ~applyImmediately ()) (Some Values.ModifyReplicationGroupShardConfigurationResult.to_json) (Some Values.ModifyReplicationGroupShardConfigurationResult.error_to_json)]) let modify_serverless_cache = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and description = flag "description" (optional string) ~doc:"STRING String" and cacheUsageLimits = flag "cache-usage-limits" (optional json_arg) ~doc:"JSON CacheUsageLimits" and removeUserGroup = flag "remove-user-group" (optional bool) ~doc:"BOOL BooleanOptional" and userGroupId = flag "user-group-id" (optional string) ~doc:"STRING String" and securityGroupIds = flag "security-group-ids" (optional json_arg) ~doc:"JSON SecurityGroupIdsList" and snapshotRetentionLimit = flag "snapshot-retention-limit" (optional int) ~doc:"INT IntegerOptional" and dailySnapshotTime = flag "daily-snapshot-time" (optional string) ~doc:"STRING String" and engine = flag "engine" (optional string) ~doc:"STRING String" and majorEngineVersion = flag "major-engine-version" (optional string) ~doc:"STRING String" and serverlessCacheName = flag "serverless-cache-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_serverless_cache (Values.ModifyServerlessCacheRequest.make ?description ?cacheUsageLimits:(Option.map ~f:Values.CacheUsageLimits.of_json cacheUsageLimits) ?removeUserGroup ?userGroupId ?securityGroupIds:(Option.map ~f:Values.SecurityGroupIdsList.of_json securityGroupIds) ?snapshotRetentionLimit ?dailySnapshotTime ?engine ?majorEngineVersion ~serverlessCacheName ()) (Some Values.ModifyServerlessCacheResponse.to_json) (Some Values.ModifyServerlessCacheResponse.error_to_json)]) let modify_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and accessString = flag "access-string" (optional string) ~doc:"STRING AccessString" and appendAccessString = flag "append-access-string" (optional string) ~doc:"STRING AccessString" and passwords = flag "passwords" (optional json_arg) ~doc:"JSON PasswordListInput" and noPasswordRequired = flag "no-password-required" (optional bool) ~doc:"BOOL BooleanOptional" and authenticationMode = flag "authentication-mode" (optional json_arg) ~doc:"JSON AuthenticationMode" and engine = flag "engine" (optional string) ~doc:"STRING EngineType" and userId = flag "user-id" (required string) ~doc:"STRING UserId" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_user (Values.ModifyUserMessage.make ?accessString ?appendAccessString ?passwords:(Option.map ~f:Values.PasswordListInput.of_json passwords) ?noPasswordRequired ?authenticationMode:(Option.map ~f:Values.AuthenticationMode.of_json authenticationMode) ?engine ~userId ()) (Some Values.User.to_json) (Some Values.User.error_to_json)]) let modify_user_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and userIdsToAdd = flag "user-ids-to-add" (optional json_arg) ~doc:"JSON UserIdListInput" and userIdsToRemove = flag "user-ids-to-remove" (optional json_arg) ~doc:"JSON UserIdListInput" and engine = flag "engine" (optional string) ~doc:"STRING EngineType" and userGroupId = flag "user-group-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.modify_user_group (Values.ModifyUserGroupMessage.make ?userIdsToAdd:(Option.map ~f:Values.UserIdListInput.of_json userIdsToAdd) ?userIdsToRemove:(Option.map ~f:Values.UserIdListInput.of_json userIdsToRemove) ?engine ~userGroupId ()) (Some Values.UserGroup.to_json) (Some Values.UserGroup.error_to_json)]) let purchase_reserved_cache_nodes_offering = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and reservedCacheNodeId = flag "reserved-cache-node-id" (optional string) ~doc:"STRING String" and cacheNodeCount = flag "cache-node-count" (optional int) ~doc:"INT IntegerOptional" and = flag "tags" (optional json_arg) ~doc:"JSON TagList" and reservedCacheNodesOfferingId = flag "reserved-cache-nodes-offering-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.purchase_reserved_cache_nodes_offering (Values.PurchaseReservedCacheNodesOfferingMessage.make ?reservedCacheNodeId ?cacheNodeCount ?tags:(Option.map ~f:Values.TagList.of_json tags) ~reservedCacheNodesOfferingId ()) (Some Values.PurchaseReservedCacheNodesOfferingResult.to_json) (Some Values.PurchaseReservedCacheNodesOfferingResult.error_to_json)]) let rebalance_slots_in_global_replication_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and globalReplicationGroupId = flag "global-replication-group-id" (required string) ~doc:"STRING String" and applyImmediately = flag "apply-immediately" (required bool) ~doc:"BOOL Boolean" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.rebalance_slots_in_global_replication_group (Values.RebalanceSlotsInGlobalReplicationGroupMessage.make ~globalReplicationGroupId ~applyImmediately ()) (Some Values.RebalanceSlotsInGlobalReplicationGroupResult.to_json) (Some Values.RebalanceSlotsInGlobalReplicationGroupResult.error_to_json)]) let reboot_cache_cluster = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheClusterId = flag "cache-cluster-id" (required string) ~doc:"STRING String" and cacheNodeIdsToReboot = flag "cache-node-ids-to-reboot" (required json_arg) ~doc:"JSON CacheNodeIdsList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.reboot_cache_cluster (Values.RebootCacheClusterMessage.make ~cacheClusterId ~cacheNodeIdsToReboot:(Values.CacheNodeIdsList.of_json cacheNodeIdsToReboot) ()) (Some Values.RebootCacheClusterResult.to_json) (Some Values.RebootCacheClusterResult.error_to_json)]) let = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and resourceName = flag "resource-name" (required string) ~doc:"STRING String" and tagKeys = flag "tag-keys" (required json_arg) ~doc:"JSON KeyList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.remove_tags_from_resource (Values.RemoveTagsFromResourceMessage.make ~resourceName ~tagKeys:(Values.KeyList.of_json tagKeys) ()) (Some Values.TagListMessage.to_json) (Some Values.TagListMessage.error_to_json)]) let reset_cache_parameter_group = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and resetAllParameters = flag "reset-all-parameters" (optional bool) ~doc:"BOOL Boolean" and parameterNameValues = flag "parameter-name-values" (optional json_arg) ~doc:"JSON ParameterNameValueList" and cacheParameterGroupName = flag "cache-parameter-group-name" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.reset_cache_parameter_group (Values.ResetCacheParameterGroupMessage.make ?resetAllParameters ?parameterNameValues:(Option.map ~f:Values.ParameterNameValueList.of_json parameterNameValues) ~cacheParameterGroupName ()) (Some Values.CacheParameterGroupNameMessage.to_json) (Some Values.CacheParameterGroupNameMessage.error_to_json)]) let revoke_cache_security_group_ingress = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and cacheSecurityGroupName = flag "cache-security-group-name" (required string) ~doc:"STRING String" and eC2SecurityGroupName = flag "e-c2-security-group-name" (required string) ~doc:"STRING String" and eC2SecurityGroupOwnerId = flag "e-c2-security-group-owner-id" (required string) ~doc:"STRING String" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.revoke_cache_security_group_ingress (Values.RevokeCacheSecurityGroupIngressMessage.make ~cacheSecurityGroupName ~eC2SecurityGroupName ~eC2SecurityGroupOwnerId ()) (Some Values.RevokeCacheSecurityGroupIngressResult.to_json) (Some Values.RevokeCacheSecurityGroupIngressResult.error_to_json)]) let start_migration = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and customerNodeEndpointList = flag "customer-node-endpoint-list" (required json_arg) ~doc:"JSON CustomerNodeEndpointList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.start_migration (Values.StartMigrationMessage.make ~replicationGroupId ~customerNodeEndpointList:(Values.CustomerNodeEndpointList.of_json customerNodeEndpointList) ()) (Some Values.StartMigrationResponse.to_json) (Some Values.StartMigrationResponse.error_to_json)]) let test_failover = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and nodeGroupId = flag "node-group-id" (required string) ~doc:"STRING AllowedNodeGroupId" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.test_failover (Values.TestFailoverMessage.make ~replicationGroupId ~nodeGroupId ()) (Some Values.TestFailoverResult.to_json) (Some Values.TestFailoverResult.error_to_json)]) let test_migration = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and replicationGroupId = flag "replication-group-id" (required string) ~doc:"STRING String" and customerNodeEndpointList = flag "customer-node-endpoint-list" (required json_arg) ~doc:"JSON CustomerNodeEndpointList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.test_migration (Values.TestMigrationMessage.make ~replicationGroupId ~customerNodeEndpointList:(Values.CustomerNodeEndpointList.of_json customerNodeEndpointList) ()) (Some Values.TestMigrationResponse.to_json) (Some Values.TestMigrationResponse.error_to_json)]) let main = Command.group ~summary:((Awso.Service.to_string Values.service) ^ " commands") [("add-tags-to-resource", add_tags_to_resource); ("authorize-cache-security-group-ingress", authorize_cache_security_group_ingress); ("batch-apply-update-action", batch_apply_update_action); ("batch-stop-update-action", batch_stop_update_action); ("complete-migration", complete_migration); ("copy-serverless-cache-snapshot", copy_serverless_cache_snapshot); ("copy-snapshot", copy_snapshot); ("create-cache-cluster", create_cache_cluster); ("create-cache-parameter-group", create_cache_parameter_group); ("create-cache-security-group", create_cache_security_group); ("create-cache-subnet-group", create_cache_subnet_group); ("create-global-replication-group", create_global_replication_group); ("create-replication-group", create_replication_group); ("create-serverless-cache", create_serverless_cache); ("create-serverless-cache-snapshot", create_serverless_cache_snapshot); ("create-snapshot", create_snapshot); ("create-user", create_user); ("create-user-group", create_user_group); ("decrease-node-groups-in-global-replication-group", decrease_node_groups_in_global_replication_group); ("decrease-replica-count", decrease_replica_count); ("delete-cache-cluster", delete_cache_cluster); ("delete-cache-parameter-group", delete_cache_parameter_group); ("delete-cache-security-group", delete_cache_security_group); ("delete-cache-subnet-group", delete_cache_subnet_group); ("delete-global-replication-group", delete_global_replication_group); ("delete-replication-group", delete_replication_group); ("delete-serverless-cache", delete_serverless_cache); ("delete-serverless-cache-snapshot", delete_serverless_cache_snapshot); ("delete-snapshot", delete_snapshot); ("delete-user", delete_user); ("delete-user-group", delete_user_group); ("describe-cache-clusters", describe_cache_clusters); ("describe-cache-engine-versions", describe_cache_engine_versions); ("describe-cache-parameter-groups", describe_cache_parameter_groups); ("describe-cache-parameters", describe_cache_parameters); ("describe-cache-security-groups", describe_cache_security_groups); ("describe-cache-subnet-groups", describe_cache_subnet_groups); ("describe-engine-default-parameters", describe_engine_default_parameters); ("describe-events", describe_events); ("describe-global-replication-groups", describe_global_replication_groups); ("describe-replication-groups", describe_replication_groups); ("describe-reserved-cache-nodes", describe_reserved_cache_nodes); ("describe-reserved-cache-nodes-offerings", describe_reserved_cache_nodes_offerings); ("describe-serverless-cache-snapshots", describe_serverless_cache_snapshots); ("describe-serverless-caches", describe_serverless_caches); ("describe-service-updates", describe_service_updates); ("describe-snapshots", describe_snapshots); ("describe-update-actions", describe_update_actions); ("describe-user-groups", describe_user_groups); ("describe-users", describe_users); ("disassociate-global-replication-group", disassociate_global_replication_group); ("export-serverless-cache-snapshot", export_serverless_cache_snapshot); ("failover-global-replication-group", failover_global_replication_group); ("increase-node-groups-in-global-replication-group", increase_node_groups_in_global_replication_group); ("increase-replica-count", increase_replica_count); ("list-allowed-node-type-modifications", list_allowed_node_type_modifications); ("list-tags-for-resource", list_tags_for_resource); ("modify-cache-cluster", modify_cache_cluster); ("modify-cache-parameter-group", modify_cache_parameter_group); ("modify-cache-subnet-group", modify_cache_subnet_group); ("modify-global-replication-group", modify_global_replication_group); ("modify-replication-group", modify_replication_group); ("modify-replication-group-shard-configuration", modify_replication_group_shard_configuration); ("modify-serverless-cache", modify_serverless_cache); ("modify-user", modify_user); ("modify-user-group", modify_user_group); ("purchase-reserved-cache-nodes-offering", purchase_reserved_cache_nodes_offering); ("rebalance-slots-in-global-replication-group", rebalance_slots_in_global_replication_group); ("reboot-cache-cluster", reboot_cache_cluster); ("remove-tags-from-resource", remove_tags_from_resource); ("reset-cache-parameter-group", reset_cache_parameter_group); ("revoke-cache-security-group-ingress", revoke_cache_security_group_ingress); ("start-migration", start_migration); ("test-failover", test_failover); ("test-migration", test_migration)]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>