package smaws-clients
Amazon Web Services SDK clients using EIO
Install
Dune Dependency
Authors
Maintainers
Sources
0.1.preview1.tar.gz
md5=18fb70dbc45e8d81a341b9bed6871bab
sha512=7607dc98acaeed5803b44c9ca32d90c88e7813d4b3e3ae4ec661a0bad16c88dc1476bc780877527ea4cd5a4b7398453c1bb600ce0db14d39afa05dc4762b5ba5
doc/src/smaws-clients.directory-service/deserializers.ml.html
Source file deserializers.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 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696
open Smaws_Lib.Json.DeserializeHelpers open Types let vpc_id_of_yojson = string_of_yojson let trust_id_of_yojson = string_of_yojson let verify_trust_result_of_yojson = fun tree path : verify_trust_result -> let _list = assoc_of_yojson tree path in let _res : verify_trust_result = { trust_id = option_of_yojson (value_for_key (trust_id_of_yojson) "TrustId") _list path; } in _res let verify_trust_request_of_yojson = fun tree path : verify_trust_request -> let _list = assoc_of_yojson tree path in let _res : verify_trust_request = { trust_id = value_for_key (trust_id_of_yojson) "TrustId" _list path; } in _res let exception_message_of_yojson = string_of_yojson let request_id_of_yojson = string_of_yojson let unsupported_operation_exception_of_yojson = fun tree path : unsupported_operation_exception -> let _list = assoc_of_yojson tree path in let _res : unsupported_operation_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let service_exception_of_yojson = fun tree path : service_exception -> let _list = assoc_of_yojson tree path in let _res : service_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let invalid_parameter_exception_of_yojson = fun tree path : invalid_parameter_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_parameter_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let entity_does_not_exist_exception_of_yojson = fun tree path : entity_does_not_exist_exception -> let _list = assoc_of_yojson tree path in let _res : entity_does_not_exist_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let client_exception_of_yojson = fun tree path : client_exception -> let _list = assoc_of_yojson tree path in let _res : client_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let user_password_of_yojson = string_of_yojson let user_name_of_yojson = string_of_yojson let user_does_not_exist_exception_of_yojson = fun tree path : user_does_not_exist_exception -> let _list = assoc_of_yojson tree path in let _res : user_does_not_exist_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let use_same_username_of_yojson = bool_of_yojson let base_unit_of_yojson = unit_of_yojson let os_version_of_yojson = fun (tree: t) path : os_version -> match tree with | `String "SERVER_2019" -> VERSION_2019 | `String "SERVER_2012" -> VERSION_2012 | `String value -> raise (deserialize_unknown_enum_value_error path "OSVersion" value) | _ -> raise (deserialize_wrong_type_error path "OSVersion") let os_update_settings_of_yojson = fun tree path : os_update_settings -> let _list = assoc_of_yojson tree path in let _res : os_update_settings = { os_version = option_of_yojson (value_for_key (os_version_of_yojson) "OSVersion") _list path; } in _res let update_value_of_yojson = fun tree path : update_value -> let _list = assoc_of_yojson tree path in let _res : update_value = { os_update_settings = option_of_yojson (value_for_key (os_update_settings_of_yojson) "OSUpdateSettings") _list path; } in _res let update_type_of_yojson = fun (tree: t) path : update_type -> match tree with | `String "OS" -> OS | `String value -> raise (deserialize_unknown_enum_value_error path "UpdateType" value) | _ -> raise (deserialize_wrong_type_error path "UpdateType") let update_trust_result_of_yojson = fun tree path : update_trust_result -> let _list = assoc_of_yojson tree path in let _res : update_trust_result = { trust_id = option_of_yojson (value_for_key (trust_id_of_yojson) "TrustId") _list path; request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; } in _res let selective_auth_of_yojson = fun (tree: t) path : selective_auth -> match tree with | `String "Disabled" -> DISABLED | `String "Enabled" -> ENABLED | `String value -> raise (deserialize_unknown_enum_value_error path "SelectiveAuth" value) | _ -> raise (deserialize_wrong_type_error path "SelectiveAuth") let update_trust_request_of_yojson = fun tree path : update_trust_request -> let _list = assoc_of_yojson tree path in let _res : update_trust_request = { selective_auth = option_of_yojson (value_for_key (selective_auth_of_yojson) "SelectiveAuth") _list path; trust_id = value_for_key (trust_id_of_yojson) "TrustId" _list path; } in _res let update_status_reason_of_yojson = string_of_yojson let update_status_of_yojson = fun (tree: t) path : update_status -> match tree with | `String "UpdateFailed" -> UPDATE_FAILED | `String "Updating" -> UPDATING | `String "Updated" -> UPDATED | `String value -> raise (deserialize_unknown_enum_value_error path "UpdateStatus" value) | _ -> raise (deserialize_wrong_type_error path "UpdateStatus") let directory_id_of_yojson = string_of_yojson let update_settings_result_of_yojson = fun tree path : update_settings_result -> let _list = assoc_of_yojson tree path in let _res : update_settings_result = { directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let directory_configuration_setting_name_of_yojson = string_of_yojson let directory_configuration_setting_value_of_yojson = string_of_yojson let setting_of_yojson = fun tree path : setting -> let _list = assoc_of_yojson tree path in let _res : setting = { value = value_for_key (directory_configuration_setting_value_of_yojson) "Value" _list path; name = value_for_key (directory_configuration_setting_name_of_yojson) "Name" _list path; } in _res let settings_of_yojson = fun tree path -> list_of_yojson setting_of_yojson tree path let update_settings_request_of_yojson = fun tree path : update_settings_request -> let _list = assoc_of_yojson tree path in let _res : update_settings_request = { settings = value_for_key (settings_of_yojson) "Settings" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let unsupported_settings_exception_of_yojson = fun tree path : unsupported_settings_exception -> let _list = assoc_of_yojson tree path in let _res : unsupported_settings_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let incompatible_settings_exception_of_yojson = fun tree path : incompatible_settings_exception -> let _list = assoc_of_yojson tree path in let _res : incompatible_settings_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let = fun tree path : directory_unavailable_exception -> let _list = assoc_of_yojson tree path in let _res : directory_unavailable_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let directory_does_not_exist_exception_of_yojson = fun tree path : directory_does_not_exist_exception -> let _list = assoc_of_yojson tree path in let _res : directory_does_not_exist_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let update_security_group_for_directory_controllers_of_yojson = bool_of_yojson let update_radius_result_of_yojson = fun tree path : update_radius_result -> let _list = assoc_of_yojson tree path in let _res : update_radius_result = () in _res let server_of_yojson = string_of_yojson let servers_of_yojson = fun tree path -> list_of_yojson server_of_yojson tree path let port_number_of_yojson = int_of_yojson let radius_timeout_of_yojson = int_of_yojson let radius_retries_of_yojson = int_of_yojson let = string_of_yojson let radius_authentication_protocol_of_yojson = fun (tree: t) path : radius_authentication_protocol -> match tree with | `String "MS-CHAPv2" -> MSCHAPV2 | `String "MS-CHAPv1" -> MSCHAPV1 | `String "CHAP" -> CHAP | `String "PAP" -> PAP | `String value -> raise (deserialize_unknown_enum_value_error path "RadiusAuthenticationProtocol" value) | _ -> raise (deserialize_wrong_type_error path "RadiusAuthenticationProtocol") let radius_display_label_of_yojson = string_of_yojson let radius_settings_of_yojson = fun tree path : radius_settings -> let _list = assoc_of_yojson tree path in let _res : radius_settings = { use_same_username = option_of_yojson (value_for_key (use_same_username_of_yojson) "UseSameUsername") _list path; display_label = option_of_yojson (value_for_key (radius_display_label_of_yojson) "DisplayLabel") _list path; authentication_protocol = option_of_yojson (value_for_key (radius_authentication_protocol_of_yojson) "AuthenticationProtocol") _list path; shared_secret = option_of_yojson (value_for_key (radius_shared_secret_of_yojson) "SharedSecret") _list path; radius_retries = option_of_yojson (value_for_key (radius_retries_of_yojson) "RadiusRetries") _list path; radius_timeout = option_of_yojson (value_for_key (radius_timeout_of_yojson) "RadiusTimeout") _list path; radius_port = option_of_yojson (value_for_key (port_number_of_yojson) "RadiusPort") _list path; radius_servers = option_of_yojson (value_for_key (servers_of_yojson) "RadiusServers") _list path; } in _res let update_radius_request_of_yojson = fun tree path : update_radius_request -> let _list = assoc_of_yojson tree path in let _res : update_radius_request = { radius_settings = value_for_key (radius_settings_of_yojson) "RadiusSettings" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let update_number_of_domain_controllers_result_of_yojson = fun tree path : update_number_of_domain_controllers_result -> let _list = assoc_of_yojson tree path in let _res : update_number_of_domain_controllers_result = () in _res let desired_number_of_domain_controllers_of_yojson = int_of_yojson let update_number_of_domain_controllers_request_of_yojson = fun tree path : update_number_of_domain_controllers_request -> let _list = assoc_of_yojson tree path in let _res : update_number_of_domain_controllers_request = { desired_number = value_for_key (desired_number_of_domain_controllers_of_yojson) "DesiredNumber" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let domain_controller_limit_exceeded_exception_of_yojson = fun tree path : domain_controller_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : domain_controller_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let region_name_of_yojson = string_of_yojson let initiated_by_of_yojson = string_of_yojson let start_date_time_of_yojson = timestamp_of_yojson let last_updated_date_time_of_yojson = timestamp_of_yojson let update_info_entry_of_yojson = fun tree path : update_info_entry -> let _list = assoc_of_yojson tree path in let _res : update_info_entry = { last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; start_time = option_of_yojson (value_for_key (start_date_time_of_yojson) "StartTime") _list path; previous_value = option_of_yojson (value_for_key (update_value_of_yojson) "PreviousValue") _list path; new_value = option_of_yojson (value_for_key (update_value_of_yojson) "NewValue") _list path; initiated_by = option_of_yojson (value_for_key (initiated_by_of_yojson) "InitiatedBy") _list path; status_reason = option_of_yojson (value_for_key (update_status_reason_of_yojson) "StatusReason") _list path; status = option_of_yojson (value_for_key (update_status_of_yojson) "Status") _list path; region = option_of_yojson (value_for_key (region_name_of_yojson) "Region") _list path; } in _res let update_directory_setup_result_of_yojson = fun tree path : update_directory_setup_result -> let _list = assoc_of_yojson tree path in let _res : update_directory_setup_result = () in _res let create_snapshot_before_update_of_yojson = bool_of_yojson let update_directory_setup_request_of_yojson = fun tree path : update_directory_setup_request -> let _list = assoc_of_yojson tree path in let _res : update_directory_setup_request = { create_snapshot_before_update = option_of_yojson (value_for_key (create_snapshot_before_update_of_yojson) "CreateSnapshotBeforeUpdate") _list path; os_update_settings = option_of_yojson (value_for_key (os_update_settings_of_yojson) "OSUpdateSettings") _list path; update_type = value_for_key (update_type_of_yojson) "UpdateType" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let snapshot_limit_exceeded_exception_of_yojson = fun tree path : snapshot_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : snapshot_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let directory_in_desired_state_exception_of_yojson = fun tree path : directory_in_desired_state_exception -> let _list = assoc_of_yojson tree path in let _res : directory_in_desired_state_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let access_denied_exception_of_yojson = fun tree path : access_denied_exception -> let _list = assoc_of_yojson tree path in let _res : access_denied_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let update_conditional_forwarder_result_of_yojson = fun tree path : update_conditional_forwarder_result -> let _list = assoc_of_yojson tree path in let _res : update_conditional_forwarder_result = () in _res let remote_domain_name_of_yojson = string_of_yojson let ip_addr_of_yojson = string_of_yojson let dns_ip_addrs_of_yojson = fun tree path -> list_of_yojson ip_addr_of_yojson tree path let update_conditional_forwarder_request_of_yojson = fun tree path : update_conditional_forwarder_request -> let _list = assoc_of_yojson tree path in let _res : update_conditional_forwarder_request = { dns_ip_addrs = value_for_key (dns_ip_addrs_of_yojson) "DnsIpAddrs" _list path; remote_domain_name = value_for_key (remote_domain_name_of_yojson) "RemoteDomainName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let update_activities_of_yojson = fun tree path -> list_of_yojson update_info_entry_of_yojson tree path let target_id_of_yojson = string_of_yojson let target_type_of_yojson = fun (tree: t) path : target_type -> match tree with | `String "ACCOUNT" -> ACCOUNT | `String value -> raise (deserialize_unknown_enum_value_error path "TargetType" value) | _ -> raise (deserialize_wrong_type_error path "TargetType") let = fun tree path : unshare_target -> let _list = assoc_of_yojson tree path in let _res : unshare_target = { type_ = value_for_key (target_type_of_yojson) "Type" _list path; id = value_for_key (target_id_of_yojson) "Id" _list path; } in _res let = fun tree path : unshare_directory_result -> let _list = assoc_of_yojson tree path in let _res : unshare_directory_result = { shared_directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "SharedDirectoryId") _list path; } in _res let = fun tree path : unshare_directory_request -> let _list = assoc_of_yojson tree path in let _res : unshare_directory_request = { unshare_target = value_for_key (unshare_target_of_yojson) "UnshareTarget" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let invalid_target_exception_of_yojson = fun tree path : invalid_target_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_target_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let = fun tree path : directory_not_shared_exception -> let _list = assoc_of_yojson tree path in let _res : directory_not_shared_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let trust_type_of_yojson = fun (tree: t) path : trust_type -> match tree with | `String "External" -> EXTERNAL | `String "Forest" -> FOREST | `String value -> raise (deserialize_unknown_enum_value_error path "TrustType" value) | _ -> raise (deserialize_wrong_type_error path "TrustType") let trust_direction_of_yojson = fun (tree: t) path : trust_direction -> match tree with | `String "Two-Way" -> TWO_WAY | `String "One-Way: Incoming" -> ONE_WAY_INCOMING | `String "One-Way: Outgoing" -> ONE_WAY_OUTGOING | `String value -> raise (deserialize_unknown_enum_value_error path "TrustDirection" value) | _ -> raise (deserialize_wrong_type_error path "TrustDirection") let trust_state_of_yojson = fun (tree: t) path : trust_state -> match tree with | `String "Failed" -> FAILED | `String "Deleted" -> DELETED | `String "Deleting" -> DELETING | `String "Updated" -> UPDATED | `String "UpdateFailed" -> UPDATE_FAILED | `String "Updating" -> UPDATING | `String "Verified" -> VERIFIED | `String "VerifyFailed" -> VERIFY_FAILED | `String "Verifying" -> VERIFYING | `String "Created" -> CREATED | `String "Creating" -> CREATING | `String value -> raise (deserialize_unknown_enum_value_error path "TrustState" value) | _ -> raise (deserialize_wrong_type_error path "TrustState") let created_date_time_of_yojson = timestamp_of_yojson let state_last_updated_date_time_of_yojson = timestamp_of_yojson let trust_state_reason_of_yojson = string_of_yojson let trust_of_yojson = fun tree path : trust -> let _list = assoc_of_yojson tree path in let _res : trust = { selective_auth = option_of_yojson (value_for_key (selective_auth_of_yojson) "SelectiveAuth") _list path; trust_state_reason = option_of_yojson (value_for_key (trust_state_reason_of_yojson) "TrustStateReason") _list path; state_last_updated_date_time = option_of_yojson (value_for_key (state_last_updated_date_time_of_yojson) "StateLastUpdatedDateTime") _list path; last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; created_date_time = option_of_yojson (value_for_key (created_date_time_of_yojson) "CreatedDateTime") _list path; trust_state = option_of_yojson (value_for_key (trust_state_of_yojson) "TrustState") _list path; trust_direction = option_of_yojson (value_for_key (trust_direction_of_yojson) "TrustDirection") _list path; trust_type = option_of_yojson (value_for_key (trust_type_of_yojson) "TrustType") _list path; remote_domain_name = option_of_yojson (value_for_key (remote_domain_name_of_yojson) "RemoteDomainName") _list path; trust_id = option_of_yojson (value_for_key (trust_id_of_yojson) "TrustId") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let trusts_of_yojson = fun tree path -> list_of_yojson trust_of_yojson tree path let trust_password_of_yojson = string_of_yojson let trust_ids_of_yojson = fun tree path -> list_of_yojson trust_id_of_yojson tree path let topic_status_of_yojson = fun (tree: t) path : topic_status -> match tree with | `String "Deleted" -> DELETED | `String "Failed" -> FAILED | `String "Topic not found" -> TOPIC_NOT_FOUND | `String "Registered" -> REGISTERED | `String value -> raise (deserialize_unknown_enum_value_error path "TopicStatus" value) | _ -> raise (deserialize_wrong_type_error path "TopicStatus") let topic_name_of_yojson = string_of_yojson let topic_names_of_yojson = fun tree path -> list_of_yojson topic_name_of_yojson tree path let topic_arn_of_yojson = string_of_yojson let tag_key_of_yojson = string_of_yojson let tag_value_of_yojson = string_of_yojson let tag_of_yojson = fun tree path : tag -> let _list = assoc_of_yojson tree path in let _res : tag = { value = value_for_key (tag_value_of_yojson) "Value" _list path; key = value_for_key (tag_key_of_yojson) "Key" _list path; } in _res let = fun tree path -> list_of_yojson tag_of_yojson tree path let tag_limit_exceeded_exception_of_yojson = fun tree path : tag_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : tag_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let tag_keys_of_yojson = fun tree path -> list_of_yojson tag_key_of_yojson tree path let subscription_created_date_time_of_yojson = timestamp_of_yojson let subnet_id_of_yojson = string_of_yojson let subnet_ids_of_yojson = fun tree path -> list_of_yojson subnet_id_of_yojson tree path let start_time_of_yojson = timestamp_of_yojson let schema_extension_id_of_yojson = string_of_yojson let start_schema_extension_result_of_yojson = fun tree path : start_schema_extension_result -> let _list = assoc_of_yojson tree path in let _res : start_schema_extension_result = { schema_extension_id = option_of_yojson (value_for_key (schema_extension_id_of_yojson) "SchemaExtensionId") _list path; } in _res let create_snapshot_before_schema_extension_of_yojson = bool_of_yojson let ldif_content_of_yojson = string_of_yojson let description_of_yojson = string_of_yojson let start_schema_extension_request_of_yojson = fun tree path : start_schema_extension_request -> let _list = assoc_of_yojson tree path in let _res : start_schema_extension_request = { description = value_for_key (description_of_yojson) "Description" _list path; ldif_content = value_for_key (ldif_content_of_yojson) "LdifContent" _list path; create_snapshot_before_schema_extension = value_for_key (create_snapshot_before_schema_extension_of_yojson) "CreateSnapshotBeforeSchemaExtension" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let stage_reason_of_yojson = string_of_yojson let sso_enabled_of_yojson = bool_of_yojson let snapshot_id_of_yojson = string_of_yojson let snapshot_type_of_yojson = fun (tree: t) path : snapshot_type -> match tree with | `String "Manual" -> MANUAL | `String "Auto" -> AUTO | `String value -> raise (deserialize_unknown_enum_value_error path "SnapshotType" value) | _ -> raise (deserialize_wrong_type_error path "SnapshotType") let snapshot_name_of_yojson = string_of_yojson let snapshot_status_of_yojson = fun (tree: t) path : snapshot_status -> match tree with | `String "Failed" -> FAILED | `String "Completed" -> COMPLETED | `String "Creating" -> CREATING | `String value -> raise (deserialize_unknown_enum_value_error path "SnapshotStatus" value) | _ -> raise (deserialize_wrong_type_error path "SnapshotStatus") let snapshot_of_yojson = fun tree path : snapshot -> let _list = assoc_of_yojson tree path in let _res : snapshot = { start_time = option_of_yojson (value_for_key (start_time_of_yojson) "StartTime") _list path; status = option_of_yojson (value_for_key (snapshot_status_of_yojson) "Status") _list path; name = option_of_yojson (value_for_key (snapshot_name_of_yojson) "Name") _list path; type_ = option_of_yojson (value_for_key (snapshot_type_of_yojson) "Type") _list path; snapshot_id = option_of_yojson (value_for_key (snapshot_id_of_yojson) "SnapshotId") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let snapshots_of_yojson = fun tree path -> list_of_yojson snapshot_of_yojson tree path let limit_of_yojson = int_of_yojson let manual_snapshots_limit_reached_of_yojson = bool_of_yojson let snapshot_limits_of_yojson = fun tree path : snapshot_limits -> let _list = assoc_of_yojson tree path in let _res : snapshot_limits = { manual_snapshots_limit_reached = option_of_yojson (value_for_key (manual_snapshots_limit_reached_of_yojson) "ManualSnapshotsLimitReached") _list path; manual_snapshots_current_count = option_of_yojson (value_for_key (limit_of_yojson) "ManualSnapshotsCurrentCount") _list path; manual_snapshots_limit = option_of_yojson (value_for_key (limit_of_yojson) "ManualSnapshotsLimit") _list path; } in _res let snapshot_ids_of_yojson = fun tree path -> list_of_yojson snapshot_id_of_yojson tree path let customer_id_of_yojson = string_of_yojson let = fun (tree: t) path : share_method -> match tree with | `String "HANDSHAKE" -> HANDSHAKE | `String "ORGANIZATIONS" -> ORGANIZATIONS | `String value -> raise (deserialize_unknown_enum_value_error path "ShareMethod" value) | _ -> raise (deserialize_wrong_type_error path "ShareMethod") let = fun (tree: t) path : share_status -> match tree with | `String "Deleting" -> DELETING | `String "Deleted" -> DELETED | `String "ShareFailed" -> SHARE_FAILED | `String "Sharing" -> SHARING | `String "RejectFailed" -> REJECT_FAILED | `String "Rejecting" -> REJECTING | `String "Rejected" -> REJECTED | `String "PendingAcceptance" -> PENDING_ACCEPTANCE | `String "Shared" -> SHARED | `String value -> raise (deserialize_unknown_enum_value_error path "ShareStatus" value) | _ -> raise (deserialize_wrong_type_error path "ShareStatus") let notes_of_yojson = string_of_yojson let = fun tree path : shared_directory -> let _list = assoc_of_yojson tree path in let _res : shared_directory = { last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; created_date_time = option_of_yojson (value_for_key (created_date_time_of_yojson) "CreatedDateTime") _list path; share_notes = option_of_yojson (value_for_key (notes_of_yojson) "ShareNotes") _list path; share_status = option_of_yojson (value_for_key (share_status_of_yojson) "ShareStatus") _list path; shared_directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "SharedDirectoryId") _list path; shared_account_id = option_of_yojson (value_for_key (customer_id_of_yojson) "SharedAccountId") _list path; share_method = option_of_yojson (value_for_key (share_method_of_yojson) "ShareMethod") _list path; owner_directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "OwnerDirectoryId") _list path; owner_account_id = option_of_yojson (value_for_key (customer_id_of_yojson) "OwnerAccountId") _list path; } in _res let = fun tree path -> list_of_yojson shared_directory_of_yojson tree path let = fun tree path : share_target -> let _list = assoc_of_yojson tree path in let _res : share_target = { type_ = value_for_key (target_type_of_yojson) "Type" _list path; id = value_for_key (target_id_of_yojson) "Id" _list path; } in _res let = fun tree path : share_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : share_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let = fun tree path : share_directory_result -> let _list = assoc_of_yojson tree path in let _res : share_directory_result = { shared_directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "SharedDirectoryId") _list path; } in _res let = fun tree path : share_directory_request -> let _list = assoc_of_yojson tree path in let _res : share_directory_request = { share_method = value_for_key (share_method_of_yojson) "ShareMethod" _list path; share_target = value_for_key (share_target_of_yojson) "ShareTarget" _list path; share_notes = option_of_yojson (value_for_key (notes_of_yojson) "ShareNotes") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let organizations_exception_of_yojson = fun tree path : organizations_exception -> let _list = assoc_of_yojson tree path in let _res : organizations_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let = fun tree path : directory_already_shared_exception -> let _list = assoc_of_yojson tree path in let _res : directory_already_shared_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let directory_configuration_setting_type_of_yojson = string_of_yojson let directory_configuration_setting_allowed_values_of_yojson = string_of_yojson let directory_configuration_status_of_yojson = fun (tree: t) path : directory_configuration_status -> match tree with | `String "Default" -> DEFAULT | `String "Failed" -> FAILED | `String "Updated" -> UPDATED | `String "Updating" -> UPDATING | `String "Requested" -> REQUESTED | `String value -> raise (deserialize_unknown_enum_value_error path "DirectoryConfigurationStatus" value) | _ -> raise (deserialize_wrong_type_error path "DirectoryConfigurationStatus") let directory_configuration_setting_request_detailed_status_of_yojson = fun tree path -> map_of_yojson directory_configuration_status_of_yojson tree path let directory_configuration_setting_request_status_message_of_yojson = string_of_yojson let directory_configuration_setting_last_updated_date_time_of_yojson = timestamp_of_yojson let directory_configuration_setting_last_requested_date_time_of_yojson = timestamp_of_yojson let directory_configuration_setting_data_type_of_yojson = string_of_yojson let setting_entry_of_yojson = fun tree path : setting_entry -> let _list = assoc_of_yojson tree path in let _res : setting_entry = { data_type = option_of_yojson (value_for_key (directory_configuration_setting_data_type_of_yojson) "DataType") _list path; last_requested_date_time = option_of_yojson (value_for_key (directory_configuration_setting_last_requested_date_time_of_yojson) "LastRequestedDateTime") _list path; last_updated_date_time = option_of_yojson (value_for_key (directory_configuration_setting_last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; request_status_message = option_of_yojson (value_for_key (directory_configuration_setting_request_status_message_of_yojson) "RequestStatusMessage") _list path; request_detailed_status = option_of_yojson (value_for_key (directory_configuration_setting_request_detailed_status_of_yojson) "RequestDetailedStatus") _list path; request_status = option_of_yojson (value_for_key (directory_configuration_status_of_yojson) "RequestStatus") _list path; requested_value = option_of_yojson (value_for_key (directory_configuration_setting_value_of_yojson) "RequestedValue") _list path; applied_value = option_of_yojson (value_for_key (directory_configuration_setting_value_of_yojson) "AppliedValue") _list path; allowed_values = option_of_yojson (value_for_key (directory_configuration_setting_allowed_values_of_yojson) "AllowedValues") _list path; name = option_of_yojson (value_for_key (directory_configuration_setting_name_of_yojson) "Name") _list path; type_ = option_of_yojson (value_for_key (directory_configuration_setting_type_of_yojson) "Type") _list path; } in _res let setting_entries_of_yojson = fun tree path -> list_of_yojson setting_entry_of_yojson tree path let security_group_id_of_yojson = string_of_yojson let schema_extension_status_of_yojson = fun (tree: t) path : schema_extension_status -> match tree with | `String "Completed" -> COMPLETED | `String "Failed" -> FAILED | `String "Cancelled" -> CANCELLED | `String "RollbackInProgress" -> ROLLBACK_IN_PROGRESS | `String "CancelInProgress" -> CANCEL_IN_PROGRESS | `String "Replicating" -> REPLICATING | `String "UpdatingSchema" -> UPDATING_SCHEMA | `String "CreatingSnapshot" -> CREATING_SNAPSHOT | `String "Initializing" -> INITIALIZING | `String value -> raise (deserialize_unknown_enum_value_error path "SchemaExtensionStatus" value) | _ -> raise (deserialize_wrong_type_error path "SchemaExtensionStatus") let schema_extension_status_reason_of_yojson = string_of_yojson let end_date_time_of_yojson = timestamp_of_yojson let schema_extension_info_of_yojson = fun tree path : schema_extension_info -> let _list = assoc_of_yojson tree path in let _res : schema_extension_info = { end_date_time = option_of_yojson (value_for_key (end_date_time_of_yojson) "EndDateTime") _list path; start_date_time = option_of_yojson (value_for_key (start_date_time_of_yojson) "StartDateTime") _list path; schema_extension_status_reason = option_of_yojson (value_for_key (schema_extension_status_reason_of_yojson) "SchemaExtensionStatusReason") _list path; schema_extension_status = option_of_yojson (value_for_key (schema_extension_status_of_yojson) "SchemaExtensionStatus") _list path; description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; schema_extension_id = option_of_yojson (value_for_key (schema_extension_id_of_yojson) "SchemaExtensionId") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let schema_extensions_info_of_yojson = fun tree path -> list_of_yojson schema_extension_info_of_yojson tree path let si_d_of_yojson = string_of_yojson let restore_from_snapshot_result_of_yojson = fun tree path : restore_from_snapshot_result -> let _list = assoc_of_yojson tree path in let _res : restore_from_snapshot_result = () in _res let restore_from_snapshot_request_of_yojson = fun tree path : restore_from_snapshot_request -> let _list = assoc_of_yojson tree path in let _res : restore_from_snapshot_request = { snapshot_id = value_for_key (snapshot_id_of_yojson) "SnapshotId" _list path; } in _res let resource_id_of_yojson = string_of_yojson let reset_user_password_result_of_yojson = fun tree path : reset_user_password_result -> let _list = assoc_of_yojson tree path in let _res : reset_user_password_result = () in _res let customer_user_name_of_yojson = string_of_yojson let reset_user_password_request_of_yojson = fun tree path : reset_user_password_request -> let _list = assoc_of_yojson tree path in let _res : reset_user_password_request = { new_password = value_for_key (user_password_of_yojson) "NewPassword" _list path; user_name = value_for_key (customer_user_name_of_yojson) "UserName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let invalid_password_exception_of_yojson = fun tree path : invalid_password_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_password_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let replication_scope_of_yojson = fun (tree: t) path : replication_scope -> match tree with | `String "Domain" -> Domain | `String value -> raise (deserialize_unknown_enum_value_error path "ReplicationScope" value) | _ -> raise (deserialize_wrong_type_error path "ReplicationScope") let = fun tree path : remove_tags_from_resource_result -> let _list = assoc_of_yojson tree path in let _res : remove_tags_from_resource_result = () in _res let = fun tree path : remove_tags_from_resource_request -> let _list = assoc_of_yojson tree path in let _res : remove_tags_from_resource_request = { tag_keys = value_for_key (tag_keys_of_yojson) "TagKeys" _list path; resource_id = value_for_key (resource_id_of_yojson) "ResourceId" _list path; } in _res let remove_region_result_of_yojson = fun tree path : remove_region_result -> let _list = assoc_of_yojson tree path in let _res : remove_region_result = () in _res let remove_region_request_of_yojson = fun tree path : remove_region_request -> let _list = assoc_of_yojson tree path in let _res : remove_region_request = { directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let remove_ip_routes_result_of_yojson = fun tree path : remove_ip_routes_result -> let _list = assoc_of_yojson tree path in let _res : remove_ip_routes_result = () in _res let cidr_ip_of_yojson = string_of_yojson let cidr_ips_of_yojson = fun tree path -> list_of_yojson cidr_ip_of_yojson tree path let remove_ip_routes_request_of_yojson = fun tree path : remove_ip_routes_request -> let _list = assoc_of_yojson tree path in let _res : remove_ip_routes_request = { cidr_ips = value_for_key (cidr_ips_of_yojson) "CidrIps" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let remote_domain_names_of_yojson = fun tree path -> list_of_yojson remote_domain_name_of_yojson tree path let = fun tree path : reject_shared_directory_result -> let _list = assoc_of_yojson tree path in let _res : reject_shared_directory_result = { shared_directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "SharedDirectoryId") _list path; } in _res let = fun tree path : reject_shared_directory_request -> let _list = assoc_of_yojson tree path in let _res : reject_shared_directory_request = { shared_directory_id = value_for_key (directory_id_of_yojson) "SharedDirectoryId" _list path; } in _res let register_event_topic_result_of_yojson = fun tree path : register_event_topic_result -> let _list = assoc_of_yojson tree path in let _res : register_event_topic_result = () in _res let register_event_topic_request_of_yojson = fun tree path : register_event_topic_request -> let _list = assoc_of_yojson tree path in let _res : register_event_topic_request = { topic_name = value_for_key (topic_name_of_yojson) "TopicName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let certificate_id_of_yojson = string_of_yojson let register_certificate_result_of_yojson = fun tree path : register_certificate_result -> let _list = assoc_of_yojson tree path in let _res : register_certificate_result = { certificate_id = option_of_yojson (value_for_key (certificate_id_of_yojson) "CertificateId") _list path; } in _res let certificate_data_of_yojson = string_of_yojson let certificate_type_of_yojson = fun (tree: t) path : certificate_type -> match tree with | `String "ClientLDAPS" -> CLIENT_LDAPS | `String "ClientCertAuth" -> CLIENT_CERT_AUTH | `String value -> raise (deserialize_unknown_enum_value_error path "CertificateType" value) | _ -> raise (deserialize_wrong_type_error path "CertificateType") let ocsp_url_of_yojson = string_of_yojson let client_cert_auth_settings_of_yojson = fun tree path : client_cert_auth_settings -> let _list = assoc_of_yojson tree path in let _res : client_cert_auth_settings = { ocsp_url = option_of_yojson (value_for_key (ocsp_url_of_yojson) "OCSPUrl") _list path; } in _res let register_certificate_request_of_yojson = fun tree path : register_certificate_request -> let _list = assoc_of_yojson tree path in let _res : register_certificate_request = { client_cert_auth_settings = option_of_yojson (value_for_key (client_cert_auth_settings_of_yojson) "ClientCertAuthSettings") _list path; type_ = option_of_yojson (value_for_key (certificate_type_of_yojson) "Type") _list path; certificate_data = value_for_key (certificate_data_of_yojson) "CertificateData" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let invalid_certificate_exception_of_yojson = fun tree path : invalid_certificate_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_certificate_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let certificate_limit_exceeded_exception_of_yojson = fun tree path : certificate_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : certificate_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let certificate_already_exists_exception_of_yojson = fun tree path : certificate_already_exists_exception -> let _list = assoc_of_yojson tree path in let _res : certificate_already_exists_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let additional_regions_of_yojson = fun tree path -> list_of_yojson region_name_of_yojson tree path let regions_info_of_yojson = fun tree path : regions_info -> let _list = assoc_of_yojson tree path in let _res : regions_info = { additional_regions = option_of_yojson (value_for_key (additional_regions_of_yojson) "AdditionalRegions") _list path; primary_region = option_of_yojson (value_for_key (region_name_of_yojson) "PrimaryRegion") _list path; } in _res let region_type_of_yojson = fun (tree: t) path : region_type -> match tree with | `String "Additional" -> ADDITIONAL | `String "Primary" -> PRIMARY | `String value -> raise (deserialize_unknown_enum_value_error path "RegionType" value) | _ -> raise (deserialize_wrong_type_error path "RegionType") let directory_stage_of_yojson = fun (tree: t) path : directory_stage -> match tree with | `String "Failed" -> FAILED | `String "Deleted" -> DELETED | `String "Deleting" -> DELETING | `String "RestoreFailed" -> RESTOREFAILED | `String "Restoring" -> RESTORING | `String "Impaired" -> IMPAIRED | `String "Inoperable" -> INOPERABLE | `String "Active" -> ACTIVE | `String "Created" -> CREATED | `String "Creating" -> CREATING | `String "Requested" -> REQUESTED | `String value -> raise (deserialize_unknown_enum_value_error path "DirectoryStage" value) | _ -> raise (deserialize_wrong_type_error path "DirectoryStage") let directory_vpc_settings_of_yojson = fun tree path : directory_vpc_settings -> let _list = assoc_of_yojson tree path in let _res : directory_vpc_settings = { subnet_ids = value_for_key (subnet_ids_of_yojson) "SubnetIds" _list path; vpc_id = value_for_key (vpc_id_of_yojson) "VpcId" _list path; } in _res let launch_time_of_yojson = timestamp_of_yojson let region_description_of_yojson = fun tree path : region_description -> let _list = assoc_of_yojson tree path in let _res : region_description = { last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; status_last_updated_date_time = option_of_yojson (value_for_key (state_last_updated_date_time_of_yojson) "StatusLastUpdatedDateTime") _list path; launch_time = option_of_yojson (value_for_key (launch_time_of_yojson) "LaunchTime") _list path; desired_number_of_domain_controllers = option_of_yojson (value_for_key (desired_number_of_domain_controllers_of_yojson) "DesiredNumberOfDomainControllers") _list path; vpc_settings = option_of_yojson (value_for_key (directory_vpc_settings_of_yojson) "VpcSettings") _list path; status = option_of_yojson (value_for_key (directory_stage_of_yojson) "Status") _list path; region_type = option_of_yojson (value_for_key (region_type_of_yojson) "RegionType") _list path; region_name = option_of_yojson (value_for_key (region_name_of_yojson) "RegionName") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let regions_description_of_yojson = fun tree path -> list_of_yojson region_description_of_yojson tree path let region_limit_exceeded_exception_of_yojson = fun tree path : region_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : region_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let radius_status_of_yojson = fun (tree: t) path : radius_status -> match tree with | `String "Failed" -> FAILED | `String "Completed" -> COMPLETED | `String "Creating" -> CREATING | `String value -> raise (deserialize_unknown_enum_value_error path "RadiusStatus" value) | _ -> raise (deserialize_wrong_type_error path "RadiusStatus") let password_of_yojson = string_of_yojson let page_limit_of_yojson = int_of_yojson let availability_zone_of_yojson = string_of_yojson let availability_zones_of_yojson = fun tree path -> list_of_yojson availability_zone_of_yojson tree path let directory_vpc_settings_description_of_yojson = fun tree path : directory_vpc_settings_description -> let _list = assoc_of_yojson tree path in let _res : directory_vpc_settings_description = { availability_zones = option_of_yojson (value_for_key (availability_zones_of_yojson) "AvailabilityZones") _list path; security_group_id = option_of_yojson (value_for_key (security_group_id_of_yojson) "SecurityGroupId") _list path; subnet_ids = option_of_yojson (value_for_key (subnet_ids_of_yojson) "SubnetIds") _list path; vpc_id = option_of_yojson (value_for_key (vpc_id_of_yojson) "VpcId") _list path; } in _res let owner_directory_description_of_yojson = fun tree path : owner_directory_description -> let _list = assoc_of_yojson tree path in let _res : owner_directory_description = { radius_status = option_of_yojson (value_for_key (radius_status_of_yojson) "RadiusStatus") _list path; radius_settings = option_of_yojson (value_for_key (radius_settings_of_yojson) "RadiusSettings") _list path; vpc_settings = option_of_yojson (value_for_key (directory_vpc_settings_description_of_yojson) "VpcSettings") _list path; dns_ip_addrs = option_of_yojson (value_for_key (dns_ip_addrs_of_yojson) "DnsIpAddrs") _list path; account_id = option_of_yojson (value_for_key (customer_id_of_yojson) "AccountId") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let organizational_unit_d_n_of_yojson = string_of_yojson let no_available_certificate_exception_of_yojson = fun tree path : no_available_certificate_exception -> let _list = assoc_of_yojson tree path in let _res : no_available_certificate_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let next_token_of_yojson = string_of_yojson let log_group_name_of_yojson = string_of_yojson let log_subscription_of_yojson = fun tree path : log_subscription -> let _list = assoc_of_yojson tree path in let _res : log_subscription = { subscription_created_date_time = option_of_yojson (value_for_key (subscription_created_date_time_of_yojson) "SubscriptionCreatedDateTime") _list path; log_group_name = option_of_yojson (value_for_key (log_group_name_of_yojson) "LogGroupName") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let log_subscriptions_of_yojson = fun tree path -> list_of_yojson log_subscription_of_yojson tree path let = fun tree path : list_tags_for_resource_result -> let _list = assoc_of_yojson tree path in let _res : list_tags_for_resource_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; tags = option_of_yojson (value_for_key (tags_of_yojson) "Tags") _list path; } in _res let = fun tree path : list_tags_for_resource_request -> let _list = assoc_of_yojson tree path in let _res : list_tags_for_resource_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; resource_id = value_for_key (resource_id_of_yojson) "ResourceId" _list path; } in _res let invalid_next_token_exception_of_yojson = fun tree path : invalid_next_token_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_next_token_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let list_schema_extensions_result_of_yojson = fun tree path : list_schema_extensions_result -> let _list = assoc_of_yojson tree path in let _res : list_schema_extensions_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; schema_extensions_info = option_of_yojson (value_for_key (schema_extensions_info_of_yojson) "SchemaExtensionsInfo") _list path; } in _res let list_schema_extensions_request_of_yojson = fun tree path : list_schema_extensions_request -> let _list = assoc_of_yojson tree path in let _res : list_schema_extensions_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let list_log_subscriptions_result_of_yojson = fun tree path : list_log_subscriptions_result -> let _list = assoc_of_yojson tree path in let _res : list_log_subscriptions_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; log_subscriptions = option_of_yojson (value_for_key (log_subscriptions_of_yojson) "LogSubscriptions") _list path; } in _res let list_log_subscriptions_request_of_yojson = fun tree path : list_log_subscriptions_request -> let _list = assoc_of_yojson tree path in let _res : list_log_subscriptions_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let ip_route_status_msg_of_yojson = fun (tree: t) path : ip_route_status_msg -> match tree with | `String "RemoveFailed" -> REMOVE_FAILED | `String "AddFailed" -> ADD_FAILED | `String "Removed" -> REMOVED | `String "Removing" -> REMOVING | `String "Added" -> ADDED | `String "Adding" -> ADDING | `String value -> raise (deserialize_unknown_enum_value_error path "IpRouteStatusMsg" value) | _ -> raise (deserialize_wrong_type_error path "IpRouteStatusMsg") let added_date_time_of_yojson = timestamp_of_yojson let ip_route_status_reason_of_yojson = string_of_yojson let ip_route_info_of_yojson = fun tree path : ip_route_info -> let _list = assoc_of_yojson tree path in let _res : ip_route_info = { description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; ip_route_status_reason = option_of_yojson (value_for_key (ip_route_status_reason_of_yojson) "IpRouteStatusReason") _list path; added_date_time = option_of_yojson (value_for_key (added_date_time_of_yojson) "AddedDateTime") _list path; ip_route_status_msg = option_of_yojson (value_for_key (ip_route_status_msg_of_yojson) "IpRouteStatusMsg") _list path; cidr_ip = option_of_yojson (value_for_key (cidr_ip_of_yojson) "CidrIp") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let ip_routes_info_of_yojson = fun tree path -> list_of_yojson ip_route_info_of_yojson tree path let list_ip_routes_result_of_yojson = fun tree path : list_ip_routes_result -> let _list = assoc_of_yojson tree path in let _res : list_ip_routes_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; ip_routes_info = option_of_yojson (value_for_key (ip_routes_info_of_yojson) "IpRoutesInfo") _list path; } in _res let list_ip_routes_request_of_yojson = fun tree path : list_ip_routes_request -> let _list = assoc_of_yojson tree path in let _res : list_ip_routes_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let certificate_c_n_of_yojson = string_of_yojson let certificate_state_of_yojson = fun (tree: t) path : certificate_state -> match tree with | `String "DeregisterFailed" -> DEREGISTER_FAILED | `String "Deregistered" -> DEREGISTERED | `String "Deregistering" -> DEREGISTERING | `String "RegisterFailed" -> REGISTER_FAILED | `String "Registered" -> REGISTERED | `String "Registering" -> REGISTERING | `String value -> raise (deserialize_unknown_enum_value_error path "CertificateState" value) | _ -> raise (deserialize_wrong_type_error path "CertificateState") let certificate_expiry_date_time_of_yojson = timestamp_of_yojson let certificate_info_of_yojson = fun tree path : certificate_info -> let _list = assoc_of_yojson tree path in let _res : certificate_info = { type_ = option_of_yojson (value_for_key (certificate_type_of_yojson) "Type") _list path; expiry_date_time = option_of_yojson (value_for_key (certificate_expiry_date_time_of_yojson) "ExpiryDateTime") _list path; state = option_of_yojson (value_for_key (certificate_state_of_yojson) "State") _list path; common_name = option_of_yojson (value_for_key (certificate_c_n_of_yojson) "CommonName") _list path; certificate_id = option_of_yojson (value_for_key (certificate_id_of_yojson) "CertificateId") _list path; } in _res let certificates_info_of_yojson = fun tree path -> list_of_yojson certificate_info_of_yojson tree path let list_certificates_result_of_yojson = fun tree path : list_certificates_result -> let _list = assoc_of_yojson tree path in let _res : list_certificates_result = { certificates_info = option_of_yojson (value_for_key (certificates_info_of_yojson) "CertificatesInfo") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; } in _res let list_certificates_request_of_yojson = fun tree path : list_certificates_request -> let _list = assoc_of_yojson tree path in let _res : list_certificates_request = { limit = option_of_yojson (value_for_key (page_limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let ldaps_type_of_yojson = fun (tree: t) path : ldaps_type -> match tree with | `String "Client" -> CLIENT | `String value -> raise (deserialize_unknown_enum_value_error path "LDAPSType" value) | _ -> raise (deserialize_wrong_type_error path "LDAPSType") let ldaps_status_reason_of_yojson = string_of_yojson let ldaps_status_of_yojson = fun (tree: t) path : ldaps_status -> match tree with | `String "Disabled" -> DISABLED | `String "EnableFailed" -> ENABLE_FAILED | `String "Enabled" -> ENABLED | `String "Enabling" -> ENABLING | `String value -> raise (deserialize_unknown_enum_value_error path "LDAPSStatus" value) | _ -> raise (deserialize_wrong_type_error path "LDAPSStatus") let ldaps_setting_info_of_yojson = fun tree path : ldaps_setting_info -> let _list = assoc_of_yojson tree path in let _res : ldaps_setting_info = { last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; ldaps_status_reason = option_of_yojson (value_for_key (ldaps_status_reason_of_yojson) "LDAPSStatusReason") _list path; ldaps_status = option_of_yojson (value_for_key (ldaps_status_of_yojson) "LDAPSStatus") _list path; } in _res let ldaps_settings_info_of_yojson = fun tree path -> list_of_yojson ldaps_setting_info_of_yojson tree path let ip_route_of_yojson = fun tree path : ip_route -> let _list = assoc_of_yojson tree path in let _res : ip_route = { description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; cidr_ip = option_of_yojson (value_for_key (cidr_ip_of_yojson) "CidrIp") _list path; } in _res let ip_routes_of_yojson = fun tree path -> list_of_yojson ip_route_of_yojson tree path let ip_route_limit_exceeded_exception_of_yojson = fun tree path : ip_route_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : ip_route_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let ip_addrs_of_yojson = fun tree path -> list_of_yojson ip_addr_of_yojson tree path let invalid_ldaps_status_exception_of_yojson = fun tree path : invalid_ldaps_status_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_ldaps_status_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let invalid_client_auth_status_exception_of_yojson = fun tree path : invalid_client_auth_status_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_client_auth_status_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let insufficient_permissions_exception_of_yojson = fun tree path : insufficient_permissions_exception -> let _list = assoc_of_yojson tree path in let _res : insufficient_permissions_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let get_snapshot_limits_result_of_yojson = fun tree path : get_snapshot_limits_result -> let _list = assoc_of_yojson tree path in let _res : get_snapshot_limits_result = { snapshot_limits = option_of_yojson (value_for_key (snapshot_limits_of_yojson) "SnapshotLimits") _list path; } in _res let get_snapshot_limits_request_of_yojson = fun tree path : get_snapshot_limits_request -> let _list = assoc_of_yojson tree path in let _res : get_snapshot_limits_request = { directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let cloud_only_directories_limit_reached_of_yojson = bool_of_yojson let connected_directories_limit_reached_of_yojson = bool_of_yojson let directory_limits_of_yojson = fun tree path : directory_limits -> let _list = assoc_of_yojson tree path in let _res : directory_limits = { connected_directories_limit_reached = option_of_yojson (value_for_key (connected_directories_limit_reached_of_yojson) "ConnectedDirectoriesLimitReached") _list path; connected_directories_current_count = option_of_yojson (value_for_key (limit_of_yojson) "ConnectedDirectoriesCurrentCount") _list path; connected_directories_limit = option_of_yojson (value_for_key (limit_of_yojson) "ConnectedDirectoriesLimit") _list path; cloud_only_microsoft_ad_limit_reached = option_of_yojson (value_for_key (cloud_only_directories_limit_reached_of_yojson) "CloudOnlyMicrosoftADLimitReached") _list path; cloud_only_microsoft_ad_current_count = option_of_yojson (value_for_key (limit_of_yojson) "CloudOnlyMicrosoftADCurrentCount") _list path; cloud_only_microsoft_ad_limit = option_of_yojson (value_for_key (limit_of_yojson) "CloudOnlyMicrosoftADLimit") _list path; cloud_only_directories_limit_reached = option_of_yojson (value_for_key (cloud_only_directories_limit_reached_of_yojson) "CloudOnlyDirectoriesLimitReached") _list path; cloud_only_directories_current_count = option_of_yojson (value_for_key (limit_of_yojson) "CloudOnlyDirectoriesCurrentCount") _list path; cloud_only_directories_limit = option_of_yojson (value_for_key (limit_of_yojson) "CloudOnlyDirectoriesLimit") _list path; } in _res let get_directory_limits_result_of_yojson = fun tree path : get_directory_limits_result -> let _list = assoc_of_yojson tree path in let _res : get_directory_limits_result = { directory_limits = option_of_yojson (value_for_key (directory_limits_of_yojson) "DirectoryLimits") _list path; } in _res let get_directory_limits_request_of_yojson = fun tree path : get_directory_limits_request -> let _list = assoc_of_yojson tree path in let _res : get_directory_limits_request = () in _res let event_topic_of_yojson = fun tree path : event_topic -> let _list = assoc_of_yojson tree path in let _res : event_topic = { status = option_of_yojson (value_for_key (topic_status_of_yojson) "Status") _list path; created_date_time = option_of_yojson (value_for_key (created_date_time_of_yojson) "CreatedDateTime") _list path; topic_arn = option_of_yojson (value_for_key (topic_arn_of_yojson) "TopicArn") _list path; topic_name = option_of_yojson (value_for_key (topic_name_of_yojson) "TopicName") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let event_topics_of_yojson = fun tree path -> list_of_yojson event_topic_of_yojson tree path let entity_already_exists_exception_of_yojson = fun tree path : entity_already_exists_exception -> let _list = assoc_of_yojson tree path in let _res : entity_already_exists_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let enable_sso_result_of_yojson = fun tree path : enable_sso_result -> let _list = assoc_of_yojson tree path in let _res : enable_sso_result = () in _res let connect_password_of_yojson = string_of_yojson let enable_sso_request_of_yojson = fun tree path : enable_sso_request -> let _list = assoc_of_yojson tree path in let _res : enable_sso_request = { password = option_of_yojson (value_for_key (connect_password_of_yojson) "Password") _list path; user_name = option_of_yojson (value_for_key (user_name_of_yojson) "UserName") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let authentication_failed_exception_of_yojson = fun tree path : authentication_failed_exception -> let _list = assoc_of_yojson tree path in let _res : authentication_failed_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let enable_radius_result_of_yojson = fun tree path : enable_radius_result -> let _list = assoc_of_yojson tree path in let _res : enable_radius_result = () in _res let enable_radius_request_of_yojson = fun tree path : enable_radius_request -> let _list = assoc_of_yojson tree path in let _res : enable_radius_request = { radius_settings = value_for_key (radius_settings_of_yojson) "RadiusSettings" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let enable_ldaps_result_of_yojson = fun tree path : enable_ldaps_result -> let _list = assoc_of_yojson tree path in let _res : enable_ldaps_result = () in _res let enable_ldaps_request_of_yojson = fun tree path : enable_ldaps_request -> let _list = assoc_of_yojson tree path in let _res : enable_ldaps_request = { type_ = value_for_key (ldaps_type_of_yojson) "Type" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let enable_client_authentication_result_of_yojson = fun tree path : enable_client_authentication_result -> let _list = assoc_of_yojson tree path in let _res : enable_client_authentication_result = () in _res let client_authentication_type_of_yojson = fun (tree: t) path : client_authentication_type -> match tree with | `String "SmartCardOrPassword" -> SMART_CARD_OR_PASSWORD | `String "SmartCard" -> SMART_CARD | `String value -> raise (deserialize_unknown_enum_value_error path "ClientAuthenticationType" value) | _ -> raise (deserialize_wrong_type_error path "ClientAuthenticationType") let enable_client_authentication_request_of_yojson = fun tree path : enable_client_authentication_request -> let _list = assoc_of_yojson tree path in let _res : enable_client_authentication_request = { type_ = value_for_key (client_authentication_type_of_yojson) "Type" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let domain_controller_id_of_yojson = string_of_yojson let domain_controller_status_of_yojson = fun (tree: t) path : domain_controller_status -> match tree with | `String "Failed" -> FAILED | `String "Deleted" -> DELETED | `String "Deleting" -> DELETING | `String "Restoring" -> RESTORING | `String "Impaired" -> IMPAIRED | `String "Active" -> ACTIVE | `String "Creating" -> CREATING | `String value -> raise (deserialize_unknown_enum_value_error path "DomainControllerStatus" value) | _ -> raise (deserialize_wrong_type_error path "DomainControllerStatus") let domain_controller_status_reason_of_yojson = string_of_yojson let domain_controller_of_yojson = fun tree path : domain_controller -> let _list = assoc_of_yojson tree path in let _res : domain_controller = { status_last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "StatusLastUpdatedDateTime") _list path; launch_time = option_of_yojson (value_for_key (launch_time_of_yojson) "LaunchTime") _list path; status_reason = option_of_yojson (value_for_key (domain_controller_status_reason_of_yojson) "StatusReason") _list path; status = option_of_yojson (value_for_key (domain_controller_status_of_yojson) "Status") _list path; availability_zone = option_of_yojson (value_for_key (availability_zone_of_yojson) "AvailabilityZone") _list path; subnet_id = option_of_yojson (value_for_key (subnet_id_of_yojson) "SubnetId") _list path; vpc_id = option_of_yojson (value_for_key (vpc_id_of_yojson) "VpcId") _list path; dns_ip_addr = option_of_yojson (value_for_key (ip_addr_of_yojson) "DnsIpAddr") _list path; domain_controller_id = option_of_yojson (value_for_key (domain_controller_id_of_yojson) "DomainControllerId") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let domain_controllers_of_yojson = fun tree path -> list_of_yojson domain_controller_of_yojson tree path let domain_controller_ids_of_yojson = fun tree path -> list_of_yojson domain_controller_id_of_yojson tree path let disable_sso_result_of_yojson = fun tree path : disable_sso_result -> let _list = assoc_of_yojson tree path in let _res : disable_sso_result = () in _res let disable_sso_request_of_yojson = fun tree path : disable_sso_request -> let _list = assoc_of_yojson tree path in let _res : disable_sso_request = { password = option_of_yojson (value_for_key (connect_password_of_yojson) "Password") _list path; user_name = option_of_yojson (value_for_key (user_name_of_yojson) "UserName") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let disable_radius_result_of_yojson = fun tree path : disable_radius_result -> let _list = assoc_of_yojson tree path in let _res : disable_radius_result = () in _res let disable_radius_request_of_yojson = fun tree path : disable_radius_request -> let _list = assoc_of_yojson tree path in let _res : disable_radius_request = { directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let disable_ldaps_result_of_yojson = fun tree path : disable_ldaps_result -> let _list = assoc_of_yojson tree path in let _res : disable_ldaps_result = () in _res let disable_ldaps_request_of_yojson = fun tree path : disable_ldaps_request -> let _list = assoc_of_yojson tree path in let _res : disable_ldaps_request = { type_ = value_for_key (ldaps_type_of_yojson) "Type" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let disable_client_authentication_result_of_yojson = fun tree path : disable_client_authentication_result -> let _list = assoc_of_yojson tree path in let _res : disable_client_authentication_result = () in _res let disable_client_authentication_request_of_yojson = fun tree path : disable_client_authentication_request -> let _list = assoc_of_yojson tree path in let _res : disable_client_authentication_request = { type_ = value_for_key (client_authentication_type_of_yojson) "Type" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let directory_type_of_yojson = fun (tree: t) path : directory_type -> match tree with | `String "SharedMicrosoftAD" -> SHARED_MICROSOFT_AD | `String "MicrosoftAD" -> MICROSOFT_AD | `String "ADConnector" -> AD_CONNECTOR | `String "SimpleAD" -> SIMPLE_AD | `String value -> raise (deserialize_unknown_enum_value_error path "DirectoryType" value) | _ -> raise (deserialize_wrong_type_error path "DirectoryType") let directory_size_of_yojson = fun (tree: t) path : directory_size -> match tree with | `String "Large" -> LARGE | `String "Small" -> SMALL | `String value -> raise (deserialize_unknown_enum_value_error path "DirectorySize" value) | _ -> raise (deserialize_wrong_type_error path "DirectorySize") let directory_short_name_of_yojson = string_of_yojson let describe_update_directory_result_of_yojson = fun tree path : describe_update_directory_result -> let _list = assoc_of_yojson tree path in let _res : describe_update_directory_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; update_activities = option_of_yojson (value_for_key (update_activities_of_yojson) "UpdateActivities") _list path; } in _res let describe_update_directory_request_of_yojson = fun tree path : describe_update_directory_request -> let _list = assoc_of_yojson tree path in let _res : describe_update_directory_request = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; region_name = option_of_yojson (value_for_key (region_name_of_yojson) "RegionName") _list path; update_type = value_for_key (update_type_of_yojson) "UpdateType" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let describe_trusts_result_of_yojson = fun tree path : describe_trusts_result -> let _list = assoc_of_yojson tree path in let _res : describe_trusts_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; trusts = option_of_yojson (value_for_key (trusts_of_yojson) "Trusts") _list path; } in _res let describe_trusts_request_of_yojson = fun tree path : describe_trusts_request -> let _list = assoc_of_yojson tree path in let _res : describe_trusts_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; trust_ids = option_of_yojson (value_for_key (trust_ids_of_yojson) "TrustIds") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let describe_snapshots_result_of_yojson = fun tree path : describe_snapshots_result -> let _list = assoc_of_yojson tree path in let _res : describe_snapshots_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; snapshots = option_of_yojson (value_for_key (snapshots_of_yojson) "Snapshots") _list path; } in _res let describe_snapshots_request_of_yojson = fun tree path : describe_snapshots_request -> let _list = assoc_of_yojson tree path in let _res : describe_snapshots_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; snapshot_ids = option_of_yojson (value_for_key (snapshot_ids_of_yojson) "SnapshotIds") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let = fun tree path : describe_shared_directories_result -> let _list = assoc_of_yojson tree path in let _res : describe_shared_directories_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; shared_directories = option_of_yojson (value_for_key (shared_directories_of_yojson) "SharedDirectories") _list path; } in _res let directory_ids_of_yojson = fun tree path -> list_of_yojson directory_id_of_yojson tree path let = fun tree path : describe_shared_directories_request -> let _list = assoc_of_yojson tree path in let _res : describe_shared_directories_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; shared_directory_ids = option_of_yojson (value_for_key (directory_ids_of_yojson) "SharedDirectoryIds") _list path; owner_directory_id = value_for_key (directory_id_of_yojson) "OwnerDirectoryId" _list path; } in _res let describe_settings_result_of_yojson = fun tree path : describe_settings_result -> let _list = assoc_of_yojson tree path in let _res : describe_settings_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; setting_entries = option_of_yojson (value_for_key (setting_entries_of_yojson) "SettingEntries") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let describe_settings_request_of_yojson = fun tree path : describe_settings_request -> let _list = assoc_of_yojson tree path in let _res : describe_settings_request = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; status = option_of_yojson (value_for_key (directory_configuration_status_of_yojson) "Status") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let describe_regions_result_of_yojson = fun tree path : describe_regions_result -> let _list = assoc_of_yojson tree path in let _res : describe_regions_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; regions_description = option_of_yojson (value_for_key (regions_description_of_yojson) "RegionsDescription") _list path; } in _res let describe_regions_request_of_yojson = fun tree path : describe_regions_request -> let _list = assoc_of_yojson tree path in let _res : describe_regions_request = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; region_name = option_of_yojson (value_for_key (region_name_of_yojson) "RegionName") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let describe_ldaps_settings_result_of_yojson = fun tree path : describe_ldaps_settings_result -> let _list = assoc_of_yojson tree path in let _res : describe_ldaps_settings_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; ldaps_settings_info = option_of_yojson (value_for_key (ldaps_settings_info_of_yojson) "LDAPSSettingsInfo") _list path; } in _res let describe_ldaps_settings_request_of_yojson = fun tree path : describe_ldaps_settings_request -> let _list = assoc_of_yojson tree path in let _res : describe_ldaps_settings_request = { limit = option_of_yojson (value_for_key (page_limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; type_ = option_of_yojson (value_for_key (ldaps_type_of_yojson) "Type") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let describe_event_topics_result_of_yojson = fun tree path : describe_event_topics_result -> let _list = assoc_of_yojson tree path in let _res : describe_event_topics_result = { event_topics = option_of_yojson (value_for_key (event_topics_of_yojson) "EventTopics") _list path; } in _res let describe_event_topics_request_of_yojson = fun tree path : describe_event_topics_request -> let _list = assoc_of_yojson tree path in let _res : describe_event_topics_request = { topic_names = option_of_yojson (value_for_key (topic_names_of_yojson) "TopicNames") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let describe_domain_controllers_result_of_yojson = fun tree path : describe_domain_controllers_result -> let _list = assoc_of_yojson tree path in let _res : describe_domain_controllers_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; domain_controllers = option_of_yojson (value_for_key (domain_controllers_of_yojson) "DomainControllers") _list path; } in _res let describe_domain_controllers_request_of_yojson = fun tree path : describe_domain_controllers_request -> let _list = assoc_of_yojson tree path in let _res : describe_domain_controllers_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; domain_controller_ids = option_of_yojson (value_for_key (domain_controller_ids_of_yojson) "DomainControllerIds") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let directory_name_of_yojson = string_of_yojson let directory_edition_of_yojson = fun (tree: t) path : directory_edition -> match tree with | `String "Standard" -> STANDARD | `String "Enterprise" -> ENTERPRISE | `String value -> raise (deserialize_unknown_enum_value_error path "DirectoryEdition" value) | _ -> raise (deserialize_wrong_type_error path "DirectoryEdition") let alias_name_of_yojson = string_of_yojson let access_url_of_yojson = string_of_yojson let directory_connect_settings_description_of_yojson = fun tree path : directory_connect_settings_description -> let _list = assoc_of_yojson tree path in let _res : directory_connect_settings_description = { connect_ips = option_of_yojson (value_for_key (ip_addrs_of_yojson) "ConnectIps") _list path; availability_zones = option_of_yojson (value_for_key (availability_zones_of_yojson) "AvailabilityZones") _list path; security_group_id = option_of_yojson (value_for_key (security_group_id_of_yojson) "SecurityGroupId") _list path; customer_user_name = option_of_yojson (value_for_key (user_name_of_yojson) "CustomerUserName") _list path; subnet_ids = option_of_yojson (value_for_key (subnet_ids_of_yojson) "SubnetIds") _list path; vpc_id = option_of_yojson (value_for_key (vpc_id_of_yojson) "VpcId") _list path; } in _res let directory_description_of_yojson = fun tree path : directory_description -> let _list = assoc_of_yojson tree path in let _res : directory_description = { os_version = option_of_yojson (value_for_key (os_version_of_yojson) "OsVersion") _list path; regions_info = option_of_yojson (value_for_key (regions_info_of_yojson) "RegionsInfo") _list path; owner_directory_description = option_of_yojson (value_for_key (owner_directory_description_of_yojson) "OwnerDirectoryDescription") _list path; desired_number_of_domain_controllers = option_of_yojson (value_for_key (desired_number_of_domain_controllers_of_yojson) "DesiredNumberOfDomainControllers") _list path; sso_enabled = option_of_yojson (value_for_key (sso_enabled_of_yojson) "SsoEnabled") _list path; stage_reason = option_of_yojson (value_for_key (stage_reason_of_yojson) "StageReason") _list path; radius_status = option_of_yojson (value_for_key (radius_status_of_yojson) "RadiusStatus") _list path; radius_settings = option_of_yojson (value_for_key (radius_settings_of_yojson) "RadiusSettings") _list path; connect_settings = option_of_yojson (value_for_key (directory_connect_settings_description_of_yojson) "ConnectSettings") _list path; vpc_settings = option_of_yojson (value_for_key (directory_vpc_settings_description_of_yojson) "VpcSettings") _list path; type_ = option_of_yojson (value_for_key (directory_type_of_yojson) "Type") _list path; stage_last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "StageLastUpdatedDateTime") _list path; launch_time = option_of_yojson (value_for_key (launch_time_of_yojson) "LaunchTime") _list path; share_notes = option_of_yojson (value_for_key (notes_of_yojson) "ShareNotes") _list path; share_method = option_of_yojson (value_for_key (share_method_of_yojson) "ShareMethod") _list path; share_status = option_of_yojson (value_for_key (share_status_of_yojson) "ShareStatus") _list path; stage = option_of_yojson (value_for_key (directory_stage_of_yojson) "Stage") _list path; dns_ip_addrs = option_of_yojson (value_for_key (dns_ip_addrs_of_yojson) "DnsIpAddrs") _list path; description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; access_url = option_of_yojson (value_for_key (access_url_of_yojson) "AccessUrl") _list path; alias = option_of_yojson (value_for_key (alias_name_of_yojson) "Alias") _list path; edition = option_of_yojson (value_for_key (directory_edition_of_yojson) "Edition") _list path; size = option_of_yojson (value_for_key (directory_size_of_yojson) "Size") _list path; short_name = option_of_yojson (value_for_key (directory_short_name_of_yojson) "ShortName") _list path; name = option_of_yojson (value_for_key (directory_name_of_yojson) "Name") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let directory_descriptions_of_yojson = fun tree path -> list_of_yojson directory_description_of_yojson tree path let describe_directories_result_of_yojson = fun tree path : describe_directories_result -> let _list = assoc_of_yojson tree path in let _res : describe_directories_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; directory_descriptions = option_of_yojson (value_for_key (directory_descriptions_of_yojson) "DirectoryDescriptions") _list path; } in _res let describe_directories_request_of_yojson = fun tree path : describe_directories_request -> let _list = assoc_of_yojson tree path in let _res : describe_directories_request = { limit = option_of_yojson (value_for_key (limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; directory_ids = option_of_yojson (value_for_key (directory_ids_of_yojson) "DirectoryIds") _list path; } in _res let conditional_forwarder_of_yojson = fun tree path : conditional_forwarder -> let _list = assoc_of_yojson tree path in let _res : conditional_forwarder = { replication_scope = option_of_yojson (value_for_key (replication_scope_of_yojson) "ReplicationScope") _list path; dns_ip_addrs = option_of_yojson (value_for_key (dns_ip_addrs_of_yojson) "DnsIpAddrs") _list path; remote_domain_name = option_of_yojson (value_for_key (remote_domain_name_of_yojson) "RemoteDomainName") _list path; } in _res let conditional_forwarders_of_yojson = fun tree path -> list_of_yojson conditional_forwarder_of_yojson tree path let describe_conditional_forwarders_result_of_yojson = fun tree path : describe_conditional_forwarders_result -> let _list = assoc_of_yojson tree path in let _res : describe_conditional_forwarders_result = { conditional_forwarders = option_of_yojson (value_for_key (conditional_forwarders_of_yojson) "ConditionalForwarders") _list path; } in _res let describe_conditional_forwarders_request_of_yojson = fun tree path : describe_conditional_forwarders_request -> let _list = assoc_of_yojson tree path in let _res : describe_conditional_forwarders_request = { remote_domain_names = option_of_yojson (value_for_key (remote_domain_names_of_yojson) "RemoteDomainNames") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let client_authentication_status_of_yojson = fun (tree: t) path : client_authentication_status -> match tree with | `String "Disabled" -> DISABLED | `String "Enabled" -> ENABLED | `String value -> raise (deserialize_unknown_enum_value_error path "ClientAuthenticationStatus" value) | _ -> raise (deserialize_wrong_type_error path "ClientAuthenticationStatus") let client_authentication_setting_info_of_yojson = fun tree path : client_authentication_setting_info -> let _list = assoc_of_yojson tree path in let _res : client_authentication_setting_info = { last_updated_date_time = option_of_yojson (value_for_key (last_updated_date_time_of_yojson) "LastUpdatedDateTime") _list path; status = option_of_yojson (value_for_key (client_authentication_status_of_yojson) "Status") _list path; type_ = option_of_yojson (value_for_key (client_authentication_type_of_yojson) "Type") _list path; } in _res let client_authentication_settings_info_of_yojson = fun tree path -> list_of_yojson client_authentication_setting_info_of_yojson tree path let describe_client_authentication_settings_result_of_yojson = fun tree path : describe_client_authentication_settings_result -> let _list = assoc_of_yojson tree path in let _res : describe_client_authentication_settings_result = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; client_authentication_settings_info = option_of_yojson (value_for_key (client_authentication_settings_info_of_yojson) "ClientAuthenticationSettingsInfo") _list path; } in _res let describe_client_authentication_settings_request_of_yojson = fun tree path : describe_client_authentication_settings_request -> let _list = assoc_of_yojson tree path in let _res : describe_client_authentication_settings_request = { limit = option_of_yojson (value_for_key (page_limit_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; type_ = option_of_yojson (value_for_key (client_authentication_type_of_yojson) "Type") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let certificate_does_not_exist_exception_of_yojson = fun tree path : certificate_does_not_exist_exception -> let _list = assoc_of_yojson tree path in let _res : certificate_does_not_exist_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let certificate_state_reason_of_yojson = string_of_yojson let certificate_registered_date_time_of_yojson = timestamp_of_yojson let certificate_of_yojson = fun tree path : certificate -> let _list = assoc_of_yojson tree path in let _res : certificate = { client_cert_auth_settings = option_of_yojson (value_for_key (client_cert_auth_settings_of_yojson) "ClientCertAuthSettings") _list path; type_ = option_of_yojson (value_for_key (certificate_type_of_yojson) "Type") _list path; expiry_date_time = option_of_yojson (value_for_key (certificate_expiry_date_time_of_yojson) "ExpiryDateTime") _list path; registered_date_time = option_of_yojson (value_for_key (certificate_registered_date_time_of_yojson) "RegisteredDateTime") _list path; common_name = option_of_yojson (value_for_key (certificate_c_n_of_yojson) "CommonName") _list path; state_reason = option_of_yojson (value_for_key (certificate_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (certificate_state_of_yojson) "State") _list path; certificate_id = option_of_yojson (value_for_key (certificate_id_of_yojson) "CertificateId") _list path; } in _res let describe_certificate_result_of_yojson = fun tree path : describe_certificate_result -> let _list = assoc_of_yojson tree path in let _res : describe_certificate_result = { certificate = option_of_yojson (value_for_key (certificate_of_yojson) "Certificate") _list path; } in _res let describe_certificate_request_of_yojson = fun tree path : describe_certificate_request -> let _list = assoc_of_yojson tree path in let _res : describe_certificate_request = { certificate_id = value_for_key (certificate_id_of_yojson) "CertificateId" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let deregister_event_topic_result_of_yojson = fun tree path : deregister_event_topic_result -> let _list = assoc_of_yojson tree path in let _res : deregister_event_topic_result = () in _res let deregister_event_topic_request_of_yojson = fun tree path : deregister_event_topic_request -> let _list = assoc_of_yojson tree path in let _res : deregister_event_topic_request = { topic_name = value_for_key (topic_name_of_yojson) "TopicName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let certificate_in_use_exception_of_yojson = fun tree path : certificate_in_use_exception -> let _list = assoc_of_yojson tree path in let _res : certificate_in_use_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let deregister_certificate_result_of_yojson = fun tree path : deregister_certificate_result -> let _list = assoc_of_yojson tree path in let _res : deregister_certificate_result = () in _res let deregister_certificate_request_of_yojson = fun tree path : deregister_certificate_request -> let _list = assoc_of_yojson tree path in let _res : deregister_certificate_request = { certificate_id = value_for_key (certificate_id_of_yojson) "CertificateId" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let delete_trust_result_of_yojson = fun tree path : delete_trust_result -> let _list = assoc_of_yojson tree path in let _res : delete_trust_result = { trust_id = option_of_yojson (value_for_key (trust_id_of_yojson) "TrustId") _list path; } in _res let delete_associated_conditional_forwarder_of_yojson = bool_of_yojson let delete_trust_request_of_yojson = fun tree path : delete_trust_request -> let _list = assoc_of_yojson tree path in let _res : delete_trust_request = { delete_associated_conditional_forwarder = option_of_yojson (value_for_key (delete_associated_conditional_forwarder_of_yojson) "DeleteAssociatedConditionalForwarder") _list path; trust_id = value_for_key (trust_id_of_yojson) "TrustId" _list path; } in _res let delete_snapshot_result_of_yojson = fun tree path : delete_snapshot_result -> let _list = assoc_of_yojson tree path in let _res : delete_snapshot_result = { snapshot_id = option_of_yojson (value_for_key (snapshot_id_of_yojson) "SnapshotId") _list path; } in _res let delete_snapshot_request_of_yojson = fun tree path : delete_snapshot_request -> let _list = assoc_of_yojson tree path in let _res : delete_snapshot_request = { snapshot_id = value_for_key (snapshot_id_of_yojson) "SnapshotId" _list path; } in _res let delete_log_subscription_result_of_yojson = fun tree path : delete_log_subscription_result -> let _list = assoc_of_yojson tree path in let _res : delete_log_subscription_result = () in _res let delete_log_subscription_request_of_yojson = fun tree path : delete_log_subscription_request -> let _list = assoc_of_yojson tree path in let _res : delete_log_subscription_request = { directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let delete_directory_result_of_yojson = fun tree path : delete_directory_result -> let _list = assoc_of_yojson tree path in let _res : delete_directory_result = { directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let delete_directory_request_of_yojson = fun tree path : delete_directory_request -> let _list = assoc_of_yojson tree path in let _res : delete_directory_request = { directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let delete_conditional_forwarder_result_of_yojson = fun tree path : delete_conditional_forwarder_result -> let _list = assoc_of_yojson tree path in let _res : delete_conditional_forwarder_result = () in _res let delete_conditional_forwarder_request_of_yojson = fun tree path : delete_conditional_forwarder_request -> let _list = assoc_of_yojson tree path in let _res : delete_conditional_forwarder_request = { remote_domain_name = value_for_key (remote_domain_name_of_yojson) "RemoteDomainName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let create_trust_result_of_yojson = fun tree path : create_trust_result -> let _list = assoc_of_yojson tree path in let _res : create_trust_result = { trust_id = option_of_yojson (value_for_key (trust_id_of_yojson) "TrustId") _list path; } in _res let create_trust_request_of_yojson = fun tree path : create_trust_request -> let _list = assoc_of_yojson tree path in let _res : create_trust_request = { selective_auth = option_of_yojson (value_for_key (selective_auth_of_yojson) "SelectiveAuth") _list path; conditional_forwarder_ip_addrs = option_of_yojson (value_for_key (dns_ip_addrs_of_yojson) "ConditionalForwarderIpAddrs") _list path; trust_type = option_of_yojson (value_for_key (trust_type_of_yojson) "TrustType") _list path; trust_direction = value_for_key (trust_direction_of_yojson) "TrustDirection" _list path; trust_password = value_for_key (trust_password_of_yojson) "TrustPassword" _list path; remote_domain_name = value_for_key (remote_domain_name_of_yojson) "RemoteDomainName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let create_snapshot_result_of_yojson = fun tree path : create_snapshot_result -> let _list = assoc_of_yojson tree path in let _res : create_snapshot_result = { snapshot_id = option_of_yojson (value_for_key (snapshot_id_of_yojson) "SnapshotId") _list path; } in _res let create_snapshot_request_of_yojson = fun tree path : create_snapshot_request -> let _list = assoc_of_yojson tree path in let _res : create_snapshot_request = { name = option_of_yojson (value_for_key (snapshot_name_of_yojson) "Name") _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let directory_limit_exceeded_exception_of_yojson = fun tree path : directory_limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : directory_limit_exceeded_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let create_microsoft_ad_result_of_yojson = fun tree path : create_microsoft_ad_result -> let _list = assoc_of_yojson tree path in let _res : create_microsoft_ad_result = { directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let create_microsoft_ad_request_of_yojson = fun tree path : create_microsoft_ad_request -> let _list = assoc_of_yojson tree path in let _res : create_microsoft_ad_request = { tags = option_of_yojson (value_for_key (tags_of_yojson) "Tags") _list path; edition = option_of_yojson (value_for_key (directory_edition_of_yojson) "Edition") _list path; vpc_settings = value_for_key (directory_vpc_settings_of_yojson) "VpcSettings" _list path; description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; password = value_for_key (password_of_yojson) "Password" _list path; short_name = option_of_yojson (value_for_key (directory_short_name_of_yojson) "ShortName") _list path; name = value_for_key (directory_name_of_yojson) "Name" _list path; } in _res let create_log_subscription_result_of_yojson = fun tree path : create_log_subscription_result -> let _list = assoc_of_yojson tree path in let _res : create_log_subscription_result = () in _res let create_log_subscription_request_of_yojson = fun tree path : create_log_subscription_request -> let _list = assoc_of_yojson tree path in let _res : create_log_subscription_request = { log_group_name = value_for_key (log_group_name_of_yojson) "LogGroupName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let create_directory_result_of_yojson = fun tree path : create_directory_result -> let _list = assoc_of_yojson tree path in let _res : create_directory_result = { directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let create_directory_request_of_yojson = fun tree path : create_directory_request -> let _list = assoc_of_yojson tree path in let _res : create_directory_request = { tags = option_of_yojson (value_for_key (tags_of_yojson) "Tags") _list path; vpc_settings = option_of_yojson (value_for_key (directory_vpc_settings_of_yojson) "VpcSettings") _list path; size = value_for_key (directory_size_of_yojson) "Size" _list path; description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; password = value_for_key (password_of_yojson) "Password" _list path; short_name = option_of_yojson (value_for_key (directory_short_name_of_yojson) "ShortName") _list path; name = value_for_key (directory_name_of_yojson) "Name" _list path; } in _res let create_conditional_forwarder_result_of_yojson = fun tree path : create_conditional_forwarder_result -> let _list = assoc_of_yojson tree path in let _res : create_conditional_forwarder_result = () in _res let create_conditional_forwarder_request_of_yojson = fun tree path : create_conditional_forwarder_request -> let _list = assoc_of_yojson tree path in let _res : create_conditional_forwarder_request = { dns_ip_addrs = value_for_key (dns_ip_addrs_of_yojson) "DnsIpAddrs" _list path; remote_domain_name = value_for_key (remote_domain_name_of_yojson) "RemoteDomainName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let computer_name_of_yojson = string_of_yojson let attribute_name_of_yojson = string_of_yojson let attribute_value_of_yojson = string_of_yojson let attribute_of_yojson = fun tree path : attribute -> let _list = assoc_of_yojson tree path in let _res : attribute = { value = option_of_yojson (value_for_key (attribute_value_of_yojson) "Value") _list path; name = option_of_yojson (value_for_key (attribute_name_of_yojson) "Name") _list path; } in _res let attributes_of_yojson = fun tree path -> list_of_yojson attribute_of_yojson tree path let computer_of_yojson = fun tree path : computer -> let _list = assoc_of_yojson tree path in let _res : computer = { computer_attributes = option_of_yojson (value_for_key (attributes_of_yojson) "ComputerAttributes") _list path; computer_name = option_of_yojson (value_for_key (computer_name_of_yojson) "ComputerName") _list path; computer_id = option_of_yojson (value_for_key (si_d_of_yojson) "ComputerId") _list path; } in _res let create_computer_result_of_yojson = fun tree path : create_computer_result -> let _list = assoc_of_yojson tree path in let _res : create_computer_result = { computer = option_of_yojson (value_for_key (computer_of_yojson) "Computer") _list path; } in _res let computer_password_of_yojson = string_of_yojson let create_computer_request_of_yojson = fun tree path : create_computer_request -> let _list = assoc_of_yojson tree path in let _res : create_computer_request = { computer_attributes = option_of_yojson (value_for_key (attributes_of_yojson) "ComputerAttributes") _list path; organizational_unit_distinguished_name = option_of_yojson (value_for_key (organizational_unit_d_n_of_yojson) "OrganizationalUnitDistinguishedName") _list path; password = value_for_key (computer_password_of_yojson) "Password" _list path; computer_name = value_for_key (computer_name_of_yojson) "ComputerName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let create_alias_result_of_yojson = fun tree path : create_alias_result -> let _list = assoc_of_yojson tree path in let _res : create_alias_result = { alias = option_of_yojson (value_for_key (alias_name_of_yojson) "Alias") _list path; directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let create_alias_request_of_yojson = fun tree path : create_alias_request -> let _list = assoc_of_yojson tree path in let _res : create_alias_request = { alias = value_for_key (alias_name_of_yojson) "Alias" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let connect_directory_result_of_yojson = fun tree path : connect_directory_result -> let _list = assoc_of_yojson tree path in let _res : connect_directory_result = { directory_id = option_of_yojson (value_for_key (directory_id_of_yojson) "DirectoryId") _list path; } in _res let directory_connect_settings_of_yojson = fun tree path : directory_connect_settings -> let _list = assoc_of_yojson tree path in let _res : directory_connect_settings = { customer_user_name = value_for_key (user_name_of_yojson) "CustomerUserName" _list path; customer_dns_ips = value_for_key (dns_ip_addrs_of_yojson) "CustomerDnsIps" _list path; subnet_ids = value_for_key (subnet_ids_of_yojson) "SubnetIds" _list path; vpc_id = value_for_key (vpc_id_of_yojson) "VpcId" _list path; } in _res let connect_directory_request_of_yojson = fun tree path : connect_directory_request -> let _list = assoc_of_yojson tree path in let _res : connect_directory_request = { tags = option_of_yojson (value_for_key (tags_of_yojson) "Tags") _list path; connect_settings = value_for_key (directory_connect_settings_of_yojson) "ConnectSettings" _list path; size = value_for_key (directory_size_of_yojson) "Size" _list path; description = option_of_yojson (value_for_key (description_of_yojson) "Description") _list path; password = value_for_key (connect_password_of_yojson) "Password" _list path; short_name = option_of_yojson (value_for_key (directory_short_name_of_yojson) "ShortName") _list path; name = value_for_key (directory_name_of_yojson) "Name" _list path; } in _res let cancel_schema_extension_result_of_yojson = fun tree path : cancel_schema_extension_result -> let _list = assoc_of_yojson tree path in let _res : cancel_schema_extension_result = () in _res let cancel_schema_extension_request_of_yojson = fun tree path : cancel_schema_extension_request -> let _list = assoc_of_yojson tree path in let _res : cancel_schema_extension_request = { schema_extension_id = value_for_key (schema_extension_id_of_yojson) "SchemaExtensionId" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let = fun tree path : add_tags_to_resource_result -> let _list = assoc_of_yojson tree path in let _res : add_tags_to_resource_result = () in _res let = fun tree path : add_tags_to_resource_request -> let _list = assoc_of_yojson tree path in let _res : add_tags_to_resource_request = { tags = value_for_key (tags_of_yojson) "Tags" _list path; resource_id = value_for_key (resource_id_of_yojson) "ResourceId" _list path; } in _res let directory_already_in_region_exception_of_yojson = fun tree path : directory_already_in_region_exception -> let _list = assoc_of_yojson tree path in let _res : directory_already_in_region_exception = { request_id = option_of_yojson (value_for_key (request_id_of_yojson) "RequestId") _list path; message = option_of_yojson (value_for_key (exception_message_of_yojson) "Message") _list path; } in _res let add_region_result_of_yojson = fun tree path : add_region_result -> let _list = assoc_of_yojson tree path in let _res : add_region_result = () in _res let add_region_request_of_yojson = fun tree path : add_region_request -> let _list = assoc_of_yojson tree path in let _res : add_region_request = { vpc_settings = value_for_key (directory_vpc_settings_of_yojson) "VPCSettings" _list path; region_name = value_for_key (region_name_of_yojson) "RegionName" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let add_ip_routes_result_of_yojson = fun tree path : add_ip_routes_result -> let _list = assoc_of_yojson tree path in let _res : add_ip_routes_result = () in _res let add_ip_routes_request_of_yojson = fun tree path : add_ip_routes_request -> let _list = assoc_of_yojson tree path in let _res : add_ip_routes_request = { update_security_group_for_directory_controllers = option_of_yojson (value_for_key (update_security_group_for_directory_controllers_of_yojson) "UpdateSecurityGroupForDirectoryControllers") _list path; ip_routes = value_for_key (ip_routes_of_yojson) "IpRoutes" _list path; directory_id = value_for_key (directory_id_of_yojson) "DirectoryId" _list path; } in _res let = fun tree path : accept_shared_directory_result -> let _list = assoc_of_yojson tree path in let _res : accept_shared_directory_result = { shared_directory = option_of_yojson (value_for_key (shared_directory_of_yojson) "SharedDirectory") _list path; } in _res let = fun tree path : accept_shared_directory_request -> let _list = assoc_of_yojson tree path in let _res : accept_shared_directory_request = { shared_directory_id = value_for_key (directory_id_of_yojson) "SharedDirectoryId" _list path; } in _res let base_string_of_yojson = string_of_yojson let base_boolean_of_yojson = bool_of_yojson let base_integer_of_yojson = int_of_yojson let base_timestamp_of_yojson = timestamp_of_yojson let base_long_of_yojson = long_of_yojson let base_document_of_yojson = json_of_yojson
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>