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.eventbridge/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
open Smaws_Lib.Json.DeserializeHelpers open Types let string__of_yojson = string_of_yojson let event_bus_name_of_yojson = string_of_yojson let kms_key_identifier_of_yojson = string_of_yojson let event_bus_description_of_yojson = string_of_yojson let resource_arn_of_yojson = string_of_yojson let dead_letter_config_of_yojson = fun tree path : dead_letter_config -> let _list = assoc_of_yojson tree path in let _res : dead_letter_config = { arn = option_of_yojson (value_for_key (resource_arn_of_yojson) "Arn") _list path; } in _res let update_event_bus_response_of_yojson = fun tree path : update_event_bus_response -> let _list = assoc_of_yojson tree path in let _res : update_event_bus_response = { dead_letter_config = option_of_yojson (value_for_key (dead_letter_config_of_yojson) "DeadLetterConfig") _list path; description = option_of_yojson (value_for_key (event_bus_description_of_yojson) "Description") _list path; kms_key_identifier = option_of_yojson (value_for_key (kms_key_identifier_of_yojson) "KmsKeyIdentifier") _list path; name = option_of_yojson (value_for_key (event_bus_name_of_yojson) "Name") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; } in _res let update_event_bus_request_of_yojson = fun tree path : update_event_bus_request -> let _list = assoc_of_yojson tree path in let _res : update_event_bus_request = { dead_letter_config = option_of_yojson (value_for_key (dead_letter_config_of_yojson) "DeadLetterConfig") _list path; description = option_of_yojson (value_for_key (event_bus_description_of_yojson) "Description") _list path; kms_key_identifier = option_of_yojson (value_for_key (kms_key_identifier_of_yojson) "KmsKeyIdentifier") _list path; name = option_of_yojson (value_for_key (event_bus_name_of_yojson) "Name") _list path; } in _res let error_message_of_yojson = string_of_yojson let resource_not_found_exception_of_yojson = fun tree path : resource_not_found_exception -> let _list = assoc_of_yojson tree path in let _res : resource_not_found_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let operation_disabled_exception_of_yojson = fun tree path : operation_disabled_exception -> let _list = assoc_of_yojson tree path in let _res : operation_disabled_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let internal_exception_of_yojson = fun tree path : internal_exception -> let _list = assoc_of_yojson tree path in let _res : internal_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let concurrent_modification_exception_of_yojson = fun tree path : concurrent_modification_exception -> let _list = assoc_of_yojson tree path in let _res : concurrent_modification_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let endpoint_name_of_yojson = string_of_yojson let endpoint_arn_of_yojson = string_of_yojson let health_check_of_yojson = string_of_yojson let primary_of_yojson = fun tree path : primary -> let _list = assoc_of_yojson tree path in let _res : primary = { health_check = value_for_key (health_check_of_yojson) "HealthCheck" _list path; } in _res let route_of_yojson = string_of_yojson let secondary_of_yojson = fun tree path : secondary -> let _list = assoc_of_yojson tree path in let _res : secondary = { route = value_for_key (route_of_yojson) "Route" _list path; } in _res let failover_config_of_yojson = fun tree path : failover_config -> let _list = assoc_of_yojson tree path in let _res : failover_config = { secondary = value_for_key (secondary_of_yojson) "Secondary" _list path; primary = value_for_key (primary_of_yojson) "Primary" _list path; } in _res let routing_config_of_yojson = fun tree path : routing_config -> let _list = assoc_of_yojson tree path in let _res : routing_config = { failover_config = value_for_key (failover_config_of_yojson) "FailoverConfig" _list path; } in _res let base_unit_of_yojson = unit_of_yojson let replication_state_of_yojson = fun (tree: t) path : replication_state -> match tree with | `String "DISABLED" -> DISABLED | `String "ENABLED" -> ENABLED | `String value -> raise (deserialize_unknown_enum_value_error path "ReplicationState" value) | _ -> raise (deserialize_wrong_type_error path "ReplicationState") let replication_config_of_yojson = fun tree path : replication_config -> let _list = assoc_of_yojson tree path in let _res : replication_config = { state = option_of_yojson (value_for_key (replication_state_of_yojson) "State") _list path; } in _res let non_partner_event_bus_arn_of_yojson = string_of_yojson let endpoint_event_bus_of_yojson = fun tree path : endpoint_event_bus -> let _list = assoc_of_yojson tree path in let _res : endpoint_event_bus = { event_bus_arn = value_for_key (non_partner_event_bus_arn_of_yojson) "EventBusArn" _list path; } in _res let endpoint_event_bus_list_of_yojson = fun tree path -> list_of_yojson endpoint_event_bus_of_yojson tree path let iam_role_arn_of_yojson = string_of_yojson let endpoint_id_of_yojson = string_of_yojson let endpoint_url_of_yojson = string_of_yojson let endpoint_state_of_yojson = fun (tree: t) path : endpoint_state -> match tree with | `String "DELETE_FAILED" -> DELETE_FAILED | `String "UPDATE_FAILED" -> UPDATE_FAILED | `String "CREATE_FAILED" -> CREATE_FAILED | `String "DELETING" -> DELETING | `String "UPDATING" -> UPDATING | `String "CREATING" -> CREATING | `String "ACTIVE" -> ACTIVE | `String value -> raise (deserialize_unknown_enum_value_error path "EndpointState" value) | _ -> raise (deserialize_wrong_type_error path "EndpointState") let update_endpoint_response_of_yojson = fun tree path : update_endpoint_response -> let _list = assoc_of_yojson tree path in let _res : update_endpoint_response = { state = option_of_yojson (value_for_key (endpoint_state_of_yojson) "State") _list path; endpoint_url = option_of_yojson (value_for_key (endpoint_url_of_yojson) "EndpointUrl") _list path; endpoint_id = option_of_yojson (value_for_key (endpoint_id_of_yojson) "EndpointId") _list path; role_arn = option_of_yojson (value_for_key (iam_role_arn_of_yojson) "RoleArn") _list path; event_buses = option_of_yojson (value_for_key (endpoint_event_bus_list_of_yojson) "EventBuses") _list path; replication_config = option_of_yojson (value_for_key (replication_config_of_yojson) "ReplicationConfig") _list path; routing_config = option_of_yojson (value_for_key (routing_config_of_yojson) "RoutingConfig") _list path; arn = option_of_yojson (value_for_key (endpoint_arn_of_yojson) "Arn") _list path; name = option_of_yojson (value_for_key (endpoint_name_of_yojson) "Name") _list path; } in _res let endpoint_description_of_yojson = string_of_yojson let update_endpoint_request_of_yojson = fun tree path : update_endpoint_request -> let _list = assoc_of_yojson tree path in let _res : update_endpoint_request = { role_arn = option_of_yojson (value_for_key (iam_role_arn_of_yojson) "RoleArn") _list path; event_buses = option_of_yojson (value_for_key (endpoint_event_bus_list_of_yojson) "EventBuses") _list path; replication_config = option_of_yojson (value_for_key (replication_config_of_yojson) "ReplicationConfig") _list path; routing_config = option_of_yojson (value_for_key (routing_config_of_yojson) "RoutingConfig") _list path; description = option_of_yojson (value_for_key (endpoint_description_of_yojson) "Description") _list path; name = value_for_key (endpoint_name_of_yojson) "Name" _list path; } in _res let connection_arn_of_yojson = string_of_yojson let connection_state_of_yojson = fun (tree: t) path : connection_state -> match tree with | `String "DEAUTHORIZING" -> DEAUTHORIZING | `String "AUTHORIZING" -> AUTHORIZING | `String "DEAUTHORIZED" -> DEAUTHORIZED | `String "AUTHORIZED" -> AUTHORIZED | `String "DELETING" -> DELETING | `String "UPDATING" -> UPDATING | `String "CREATING" -> CREATING | `String value -> raise (deserialize_unknown_enum_value_error path "ConnectionState" value) | _ -> raise (deserialize_wrong_type_error path "ConnectionState") let timestamp__of_yojson = timestamp_of_yojson let update_connection_response_of_yojson = fun tree path : update_connection_response -> let _list = assoc_of_yojson tree path in let _res : update_connection_response = { last_authorized_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastAuthorizedTime") _list path; last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; } in _res let connection_name_of_yojson = string_of_yojson let connection_description_of_yojson = string_of_yojson let = fun (tree: t) path : connection_authorization_type -> match tree with | `String "API_KEY" -> API_KEY | `String "OAUTH_CLIENT_CREDENTIALS" -> OAUTH_CLIENT_CREDENTIALS | `String "BASIC" -> BASIC | `String value -> raise (deserialize_unknown_enum_value_error path "ConnectionAuthorizationType" value) | _ -> raise (deserialize_wrong_type_error path "ConnectionAuthorizationType") let auth_header_parameters_of_yojson = string_of_yojson let auth_header_parameters_sensitive_of_yojson = string_of_yojson let update_connection_basic_auth_request_parameters_of_yojson = fun tree path : update_connection_basic_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : update_connection_basic_auth_request_parameters = { password = option_of_yojson (value_for_key (auth_header_parameters_sensitive_of_yojson) "Password") _list path; username = option_of_yojson (value_for_key (auth_header_parameters_of_yojson) "Username") _list path; } in _res let update_connection_o_auth_client_request_parameters_of_yojson = fun tree path : update_connection_o_auth_client_request_parameters -> let _list = assoc_of_yojson tree path in let _res : update_connection_o_auth_client_request_parameters = { client_secret = option_of_yojson (value_for_key (auth_header_parameters_sensitive_of_yojson) "ClientSecret") _list path; client_i_d = option_of_yojson (value_for_key (auth_header_parameters_of_yojson) "ClientID") _list path; } in _res let https_endpoint_of_yojson = string_of_yojson let connection_o_auth_http_method_of_yojson = fun (tree: t) path : connection_o_auth_http_method -> match tree with | `String "PUT" -> PUT | `String "POST" -> POST | `String "GET" -> GET | `String value -> raise (deserialize_unknown_enum_value_error path "ConnectionOAuthHttpMethod" value) | _ -> raise (deserialize_wrong_type_error path "ConnectionOAuthHttpMethod") let header_key_of_yojson = string_of_yojson let header_value_sensitive_of_yojson = string_of_yojson let boolean__of_yojson = bool_of_yojson let connection_header_parameter_of_yojson = fun tree path : connection_header_parameter -> let _list = assoc_of_yojson tree path in let _res : connection_header_parameter = { is_value_secret = option_of_yojson (value_for_key (boolean__of_yojson) "IsValueSecret") _list path; value = option_of_yojson (value_for_key (header_value_sensitive_of_yojson) "Value") _list path; key = option_of_yojson (value_for_key (header_key_of_yojson) "Key") _list path; } in _res let connection_header_parameters_list_of_yojson = fun tree path -> list_of_yojson connection_header_parameter_of_yojson tree path let query_string_key_of_yojson = string_of_yojson let query_string_value_sensitive_of_yojson = string_of_yojson let connection_query_string_parameter_of_yojson = fun tree path : connection_query_string_parameter -> let _list = assoc_of_yojson tree path in let _res : connection_query_string_parameter = { is_value_secret = option_of_yojson (value_for_key (boolean__of_yojson) "IsValueSecret") _list path; value = option_of_yojson (value_for_key (query_string_value_sensitive_of_yojson) "Value") _list path; key = option_of_yojson (value_for_key (query_string_key_of_yojson) "Key") _list path; } in _res let connection_query_string_parameters_list_of_yojson = fun tree path -> list_of_yojson connection_query_string_parameter_of_yojson tree path let sensitive_string_of_yojson = string_of_yojson let connection_body_parameter_of_yojson = fun tree path : connection_body_parameter -> let _list = assoc_of_yojson tree path in let _res : connection_body_parameter = { is_value_secret = option_of_yojson (value_for_key (boolean__of_yojson) "IsValueSecret") _list path; value = option_of_yojson (value_for_key (sensitive_string_of_yojson) "Value") _list path; key = option_of_yojson (value_for_key (string__of_yojson) "Key") _list path; } in _res let connection_body_parameters_list_of_yojson = fun tree path -> list_of_yojson connection_body_parameter_of_yojson tree path let connection_http_parameters_of_yojson = fun tree path : connection_http_parameters -> let _list = assoc_of_yojson tree path in let _res : connection_http_parameters = { body_parameters = option_of_yojson (value_for_key (connection_body_parameters_list_of_yojson) "BodyParameters") _list path; query_string_parameters = option_of_yojson (value_for_key (connection_query_string_parameters_list_of_yojson) "QueryStringParameters") _list path; header_parameters = option_of_yojson (value_for_key (connection_header_parameters_list_of_yojson) "HeaderParameters") _list path; } in _res let update_connection_o_auth_request_parameters_of_yojson = fun tree path : update_connection_o_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : update_connection_o_auth_request_parameters = { o_auth_http_parameters = option_of_yojson (value_for_key (connection_http_parameters_of_yojson) "OAuthHttpParameters") _list path; http_method = option_of_yojson (value_for_key (connection_o_auth_http_method_of_yojson) "HttpMethod") _list path; authorization_endpoint = option_of_yojson (value_for_key (https_endpoint_of_yojson) "AuthorizationEndpoint") _list path; client_parameters = option_of_yojson (value_for_key (update_connection_o_auth_client_request_parameters_of_yojson) "ClientParameters") _list path; } in _res let update_connection_api_key_auth_request_parameters_of_yojson = fun tree path : update_connection_api_key_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : update_connection_api_key_auth_request_parameters = { api_key_value = option_of_yojson (value_for_key (auth_header_parameters_sensitive_of_yojson) "ApiKeyValue") _list path; api_key_name = option_of_yojson (value_for_key (auth_header_parameters_of_yojson) "ApiKeyName") _list path; } in _res let update_connection_auth_request_parameters_of_yojson = fun tree path : update_connection_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : update_connection_auth_request_parameters = { invocation_http_parameters = option_of_yojson (value_for_key (connection_http_parameters_of_yojson) "InvocationHttpParameters") _list path; api_key_auth_parameters = option_of_yojson (value_for_key (update_connection_api_key_auth_request_parameters_of_yojson) "ApiKeyAuthParameters") _list path; o_auth_parameters = option_of_yojson (value_for_key (update_connection_o_auth_request_parameters_of_yojson) "OAuthParameters") _list path; basic_auth_parameters = option_of_yojson (value_for_key (update_connection_basic_auth_request_parameters_of_yojson) "BasicAuthParameters") _list path; } in _res let update_connection_request_of_yojson = fun tree path : update_connection_request -> let _list = assoc_of_yojson tree path in let _res : update_connection_request = { auth_parameters = option_of_yojson (value_for_key (update_connection_auth_request_parameters_of_yojson) "AuthParameters") _list path; authorization_type = option_of_yojson (value_for_key (connection_authorization_type_of_yojson) "AuthorizationType") _list path; description = option_of_yojson (value_for_key (connection_description_of_yojson) "Description") _list path; name = value_for_key (connection_name_of_yojson) "Name" _list path; } in _res let limit_exceeded_exception_of_yojson = fun tree path : limit_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : limit_exceeded_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let archive_arn_of_yojson = string_of_yojson let archive_state_of_yojson = fun (tree: t) path : archive_state -> match tree with | `String "UPDATE_FAILED" -> UPDATE_FAILED | `String "CREATE_FAILED" -> CREATE_FAILED | `String "UPDATING" -> UPDATING | `String "CREATING" -> CREATING | `String "DISABLED" -> DISABLED | `String "ENABLED" -> ENABLED | `String value -> raise (deserialize_unknown_enum_value_error path "ArchiveState" value) | _ -> raise (deserialize_wrong_type_error path "ArchiveState") let archive_state_reason_of_yojson = string_of_yojson let update_archive_response_of_yojson = fun tree path : update_archive_response -> let _list = assoc_of_yojson tree path in let _res : update_archive_response = { creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; state_reason = option_of_yojson (value_for_key (archive_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (archive_state_of_yojson) "State") _list path; archive_arn = option_of_yojson (value_for_key (archive_arn_of_yojson) "ArchiveArn") _list path; } in _res let archive_name_of_yojson = string_of_yojson let archive_description_of_yojson = string_of_yojson let event_pattern_of_yojson = string_of_yojson let retention_days_of_yojson = int_of_yojson let update_archive_request_of_yojson = fun tree path : update_archive_request -> let _list = assoc_of_yojson tree path in let _res : update_archive_request = { retention_days = option_of_yojson (value_for_key (retention_days_of_yojson) "RetentionDays") _list path; event_pattern = option_of_yojson (value_for_key (event_pattern_of_yojson) "EventPattern") _list path; description = option_of_yojson (value_for_key (archive_description_of_yojson) "Description") _list path; archive_name = value_for_key (archive_name_of_yojson) "ArchiveName" _list path; } in _res let invalid_event_pattern_exception_of_yojson = fun tree path : invalid_event_pattern_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_event_pattern_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let api_destination_arn_of_yojson = string_of_yojson let api_destination_state_of_yojson = fun (tree: t) path : api_destination_state -> match tree with | `String "INACTIVE" -> INACTIVE | `String "ACTIVE" -> ACTIVE | `String value -> raise (deserialize_unknown_enum_value_error path "ApiDestinationState" value) | _ -> raise (deserialize_wrong_type_error path "ApiDestinationState") let update_api_destination_response_of_yojson = fun tree path : update_api_destination_response -> let _list = assoc_of_yojson tree path in let _res : update_api_destination_response = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; api_destination_state = option_of_yojson (value_for_key (api_destination_state_of_yojson) "ApiDestinationState") _list path; api_destination_arn = option_of_yojson (value_for_key (api_destination_arn_of_yojson) "ApiDestinationArn") _list path; } in _res let api_destination_name_of_yojson = string_of_yojson let api_destination_description_of_yojson = string_of_yojson let api_destination_http_method_of_yojson = fun (tree: t) path : api_destination_http_method -> match tree with | `String "DELETE" -> DELETE | `String "PATCH" -> PATCH | `String "PUT" -> PUT | `String "OPTIONS" -> OPTIONS | `String "HEAD" -> HEAD | `String "GET" -> GET | `String "POST" -> POST | `String value -> raise (deserialize_unknown_enum_value_error path "ApiDestinationHttpMethod" value) | _ -> raise (deserialize_wrong_type_error path "ApiDestinationHttpMethod") let api_destination_invocation_rate_limit_per_second_of_yojson = int_of_yojson let update_api_destination_request_of_yojson = fun tree path : update_api_destination_request -> let _list = assoc_of_yojson tree path in let _res : update_api_destination_request = { invocation_rate_limit_per_second = option_of_yojson (value_for_key (api_destination_invocation_rate_limit_per_second_of_yojson) "InvocationRateLimitPerSecond") _list path; http_method = option_of_yojson (value_for_key (api_destination_http_method_of_yojson) "HttpMethod") _list path; invocation_endpoint = option_of_yojson (value_for_key (https_endpoint_of_yojson) "InvocationEndpoint") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; description = option_of_yojson (value_for_key (api_destination_description_of_yojson) "Description") _list path; name = value_for_key (api_destination_name_of_yojson) "Name" _list path; } in _res let untag_resource_response_of_yojson = fun tree path : untag_resource_response -> let _list = assoc_of_yojson tree path in let _res : untag_resource_response = () in _res let arn_of_yojson = string_of_yojson let tag_key_of_yojson = string_of_yojson let tag_key_list_of_yojson = fun tree path -> list_of_yojson tag_key_of_yojson tree path let untag_resource_request_of_yojson = fun tree path : untag_resource_request -> let _list = assoc_of_yojson tree path in let _res : untag_resource_request = { tag_keys = value_for_key (tag_key_list_of_yojson) "TagKeys" _list path; resource_ar_n = value_for_key (arn_of_yojson) "ResourceARN" _list path; } in _res let managed_rule_exception_of_yojson = fun tree path : managed_rule_exception -> let _list = assoc_of_yojson tree path in let _res : managed_rule_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let target_input_path_of_yojson = string_of_yojson let input_transformer_path_key_of_yojson = string_of_yojson let transformer_paths_of_yojson = fun tree path -> map_of_yojson target_input_path_of_yojson tree path let transformer_input_of_yojson = string_of_yojson let trace_header_of_yojson = string_of_yojson let test_event_pattern_response_of_yojson = fun tree path : test_event_pattern_response -> let _list = assoc_of_yojson tree path in let _res : test_event_pattern_response = { result = option_of_yojson (value_for_key (boolean__of_yojson) "Result") _list path; } in _res let test_event_pattern_request_of_yojson = fun tree path : test_event_pattern_request -> let _list = assoc_of_yojson tree path in let _res : test_event_pattern_request = { event = value_for_key (string__of_yojson) "Event" _list path; event_pattern = value_for_key (event_pattern_of_yojson) "EventPattern" _list path; } in _res let target_partition_key_path_of_yojson = string_of_yojson let target_id_of_yojson = string_of_yojson let target_arn_of_yojson = string_of_yojson let role_arn_of_yojson = string_of_yojson let target_input_of_yojson = string_of_yojson let input_transformer_of_yojson = fun tree path : input_transformer -> let _list = assoc_of_yojson tree path in let _res : input_transformer = { input_template = value_for_key (transformer_input_of_yojson) "InputTemplate" _list path; input_paths_map = option_of_yojson (value_for_key (transformer_paths_of_yojson) "InputPathsMap") _list path; } in _res let kinesis_parameters_of_yojson = fun tree path : kinesis_parameters -> let _list = assoc_of_yojson tree path in let _res : kinesis_parameters = { partition_key_path = value_for_key (target_partition_key_path_of_yojson) "PartitionKeyPath" _list path; } in _res let run_command_target_key_of_yojson = string_of_yojson let run_command_target_value_of_yojson = string_of_yojson let run_command_target_values_of_yojson = fun tree path -> list_of_yojson run_command_target_value_of_yojson tree path let run_command_target_of_yojson = fun tree path : run_command_target -> let _list = assoc_of_yojson tree path in let _res : run_command_target = { values = value_for_key (run_command_target_values_of_yojson) "Values" _list path; key = value_for_key (run_command_target_key_of_yojson) "Key" _list path; } in _res let run_command_targets_of_yojson = fun tree path -> list_of_yojson run_command_target_of_yojson tree path let run_command_parameters_of_yojson = fun tree path : run_command_parameters -> let _list = assoc_of_yojson tree path in let _res : run_command_parameters = { run_command_targets = value_for_key (run_command_targets_of_yojson) "RunCommandTargets" _list path; } in _res let limit_min1_of_yojson = int_of_yojson let launch_type_of_yojson = fun (tree: t) path : launch_type -> match tree with | `String "EXTERNAL" -> EXTERNAL | `String "FARGATE" -> FARGATE | `String "EC2" -> EC2 | `String value -> raise (deserialize_unknown_enum_value_error path "LaunchType" value) | _ -> raise (deserialize_wrong_type_error path "LaunchType") let string_list_of_yojson = fun tree path -> list_of_yojson string__of_yojson tree path let assign_public_ip_of_yojson = fun (tree: t) path : assign_public_ip -> match tree with | `String "DISABLED" -> DISABLED | `String "ENABLED" -> ENABLED | `String value -> raise (deserialize_unknown_enum_value_error path "AssignPublicIp" value) | _ -> raise (deserialize_wrong_type_error path "AssignPublicIp") let aws_vpc_configuration_of_yojson = fun tree path : aws_vpc_configuration -> let _list = assoc_of_yojson tree path in let _res : aws_vpc_configuration = { assign_public_ip = option_of_yojson (value_for_key (assign_public_ip_of_yojson) "AssignPublicIp") _list path; security_groups = option_of_yojson (value_for_key (string_list_of_yojson) "SecurityGroups") _list path; subnets = value_for_key (string_list_of_yojson) "Subnets" _list path; } in _res let network_configuration_of_yojson = fun tree path : network_configuration -> let _list = assoc_of_yojson tree path in let _res : network_configuration = { awsvpc_configuration = option_of_yojson (value_for_key (aws_vpc_configuration_of_yojson) "awsvpcConfiguration") _list path; } in _res let capacity_provider_of_yojson = string_of_yojson let capacity_provider_strategy_item_weight_of_yojson = int_of_yojson let capacity_provider_strategy_item_base_of_yojson = int_of_yojson let capacity_provider_strategy_item_of_yojson = fun tree path : capacity_provider_strategy_item -> let _list = assoc_of_yojson tree path in let _res : capacity_provider_strategy_item = { base = option_of_yojson (value_for_key (capacity_provider_strategy_item_base_of_yojson) "base") _list path; weight = option_of_yojson (value_for_key (capacity_provider_strategy_item_weight_of_yojson) "weight") _list path; capacity_provider = value_for_key (capacity_provider_of_yojson) "capacityProvider" _list path; } in _res let capacity_provider_strategy_of_yojson = fun tree path -> list_of_yojson capacity_provider_strategy_item_of_yojson tree path let placement_constraint_type_of_yojson = fun (tree: t) path : placement_constraint_type -> match tree with | `String "memberOf" -> MEMBER_OF | `String "distinctInstance" -> DISTINCT_INSTANCE | `String value -> raise (deserialize_unknown_enum_value_error path "PlacementConstraintType" value) | _ -> raise (deserialize_wrong_type_error path "PlacementConstraintType") let placement_constraint_expression_of_yojson = string_of_yojson let placement_constraint_of_yojson = fun tree path : placement_constraint -> let _list = assoc_of_yojson tree path in let _res : placement_constraint = { expression = option_of_yojson (value_for_key (placement_constraint_expression_of_yojson) "expression") _list path; type_ = option_of_yojson (value_for_key (placement_constraint_type_of_yojson) "type") _list path; } in _res let placement_constraints_of_yojson = fun tree path -> list_of_yojson placement_constraint_of_yojson tree path let placement_strategy_type_of_yojson = fun (tree: t) path : placement_strategy_type -> match tree with | `String "binpack" -> BINPACK | `String "spread" -> SPREAD | `String "random" -> RANDOM | `String value -> raise (deserialize_unknown_enum_value_error path "PlacementStrategyType" value) | _ -> raise (deserialize_wrong_type_error path "PlacementStrategyType") let placement_strategy_field_of_yojson = string_of_yojson let placement_strategy_of_yojson = fun tree path : placement_strategy -> let _list = assoc_of_yojson tree path in let _res : placement_strategy = { field = option_of_yojson (value_for_key (placement_strategy_field_of_yojson) "field") _list path; type_ = option_of_yojson (value_for_key (placement_strategy_type_of_yojson) "type") _list path; } in _res let placement_strategies_of_yojson = fun tree path -> list_of_yojson placement_strategy_of_yojson tree path let = fun (tree: t) path : propagate_tags -> match tree with | `String "TASK_DEFINITION" -> TASK_DEFINITION | `String value -> raise (deserialize_unknown_enum_value_error path "PropagateTags" value) | _ -> raise (deserialize_wrong_type_error path "PropagateTags") let reference_id_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 tag_list_of_yojson = fun tree path -> list_of_yojson tag_of_yojson tree path let ecs_parameters_of_yojson = fun tree path : ecs_parameters -> let _list = assoc_of_yojson tree path in let _res : ecs_parameters = { tags = option_of_yojson (value_for_key (tag_list_of_yojson) "Tags") _list path; reference_id = option_of_yojson (value_for_key (reference_id_of_yojson) "ReferenceId") _list path; propagate_tags = option_of_yojson (value_for_key (propagate_tags_of_yojson) "PropagateTags") _list path; placement_strategy = option_of_yojson (value_for_key (placement_strategies_of_yojson) "PlacementStrategy") _list path; placement_constraints = option_of_yojson (value_for_key (placement_constraints_of_yojson) "PlacementConstraints") _list path; enable_execute_command = option_of_yojson (value_for_key (boolean__of_yojson) "EnableExecuteCommand") _list path; enable_ecs_managed_tags = option_of_yojson (value_for_key (boolean__of_yojson) "EnableECSManagedTags") _list path; capacity_provider_strategy = option_of_yojson (value_for_key (capacity_provider_strategy_of_yojson) "CapacityProviderStrategy") _list path; group = option_of_yojson (value_for_key (string__of_yojson) "Group") _list path; platform_version = option_of_yojson (value_for_key (string__of_yojson) "PlatformVersion") _list path; network_configuration = option_of_yojson (value_for_key (network_configuration_of_yojson) "NetworkConfiguration") _list path; launch_type = option_of_yojson (value_for_key (launch_type_of_yojson) "LaunchType") _list path; task_count = option_of_yojson (value_for_key (limit_min1_of_yojson) "TaskCount") _list path; task_definition_arn = value_for_key (arn_of_yojson) "TaskDefinitionArn" _list path; } in _res let integer__of_yojson = int_of_yojson let batch_array_properties_of_yojson = fun tree path : batch_array_properties -> let _list = assoc_of_yojson tree path in let _res : batch_array_properties = { size = option_of_yojson (value_for_key (integer__of_yojson) "Size") _list path; } in _res let batch_retry_strategy_of_yojson = fun tree path : batch_retry_strategy -> let _list = assoc_of_yojson tree path in let _res : batch_retry_strategy = { attempts = option_of_yojson (value_for_key (integer__of_yojson) "Attempts") _list path; } in _res let batch_parameters_of_yojson = fun tree path : batch_parameters -> let _list = assoc_of_yojson tree path in let _res : batch_parameters = { retry_strategy = option_of_yojson (value_for_key (batch_retry_strategy_of_yojson) "RetryStrategy") _list path; array_properties = option_of_yojson (value_for_key (batch_array_properties_of_yojson) "ArrayProperties") _list path; job_name = value_for_key (string__of_yojson) "JobName" _list path; job_definition = value_for_key (string__of_yojson) "JobDefinition" _list path; } in _res let message_group_id_of_yojson = string_of_yojson let sqs_parameters_of_yojson = fun tree path : sqs_parameters -> let _list = assoc_of_yojson tree path in let _res : sqs_parameters = { message_group_id = option_of_yojson (value_for_key (message_group_id_of_yojson) "MessageGroupId") _list path; } in _res let path_parameter_of_yojson = string_of_yojson let path_parameter_list_of_yojson = fun tree path -> list_of_yojson path_parameter_of_yojson tree path let header_value_of_yojson = string_of_yojson let header_parameters_map_of_yojson = fun tree path -> map_of_yojson header_value_of_yojson tree path let query_string_value_of_yojson = string_of_yojson let query_string_parameters_map_of_yojson = fun tree path -> map_of_yojson query_string_value_of_yojson tree path let http_parameters_of_yojson = fun tree path : http_parameters -> let _list = assoc_of_yojson tree path in let _res : http_parameters = { query_string_parameters = option_of_yojson (value_for_key (query_string_parameters_map_of_yojson) "QueryStringParameters") _list path; header_parameters = option_of_yojson (value_for_key (header_parameters_map_of_yojson) "HeaderParameters") _list path; path_parameter_values = option_of_yojson (value_for_key (path_parameter_list_of_yojson) "PathParameterValues") _list path; } in _res let redshift_secret_manager_arn_of_yojson = string_of_yojson let database_of_yojson = string_of_yojson let db_user_of_yojson = string_of_yojson let sql_of_yojson = string_of_yojson let statement_name_of_yojson = string_of_yojson let sqls_of_yojson = fun tree path -> list_of_yojson sql_of_yojson tree path let redshift_data_parameters_of_yojson = fun tree path : redshift_data_parameters -> let _list = assoc_of_yojson tree path in let _res : redshift_data_parameters = { sqls = option_of_yojson (value_for_key (sqls_of_yojson) "Sqls") _list path; with_event = option_of_yojson (value_for_key (boolean__of_yojson) "WithEvent") _list path; statement_name = option_of_yojson (value_for_key (statement_name_of_yojson) "StatementName") _list path; sql = option_of_yojson (value_for_key (sql_of_yojson) "Sql") _list path; db_user = option_of_yojson (value_for_key (db_user_of_yojson) "DbUser") _list path; database = value_for_key (database_of_yojson) "Database" _list path; secret_manager_arn = option_of_yojson (value_for_key (redshift_secret_manager_arn_of_yojson) "SecretManagerArn") _list path; } in _res let sage_maker_pipeline_parameter_name_of_yojson = string_of_yojson let sage_maker_pipeline_parameter_value_of_yojson = string_of_yojson let sage_maker_pipeline_parameter_of_yojson = fun tree path : sage_maker_pipeline_parameter -> let _list = assoc_of_yojson tree path in let _res : sage_maker_pipeline_parameter = { value = value_for_key (sage_maker_pipeline_parameter_value_of_yojson) "Value" _list path; name = value_for_key (sage_maker_pipeline_parameter_name_of_yojson) "Name" _list path; } in _res let sage_maker_pipeline_parameter_list_of_yojson = fun tree path -> list_of_yojson sage_maker_pipeline_parameter_of_yojson tree path let sage_maker_pipeline_parameters_of_yojson = fun tree path : sage_maker_pipeline_parameters -> let _list = assoc_of_yojson tree path in let _res : sage_maker_pipeline_parameters = { pipeline_parameter_list = option_of_yojson (value_for_key (sage_maker_pipeline_parameter_list_of_yojson) "PipelineParameterList") _list path; } in _res let maximum_retry_attempts_of_yojson = int_of_yojson let maximum_event_age_in_seconds_of_yojson = int_of_yojson let retry_policy_of_yojson = fun tree path : retry_policy -> let _list = assoc_of_yojson tree path in let _res : retry_policy = { maximum_event_age_in_seconds = option_of_yojson (value_for_key (maximum_event_age_in_seconds_of_yojson) "MaximumEventAgeInSeconds") _list path; maximum_retry_attempts = option_of_yojson (value_for_key (maximum_retry_attempts_of_yojson) "MaximumRetryAttempts") _list path; } in _res let graph_ql_operation_of_yojson = string_of_yojson let app_sync_parameters_of_yojson = fun tree path : app_sync_parameters -> let _list = assoc_of_yojson tree path in let _res : app_sync_parameters = { graph_ql_operation = option_of_yojson (value_for_key (graph_ql_operation_of_yojson) "GraphQLOperation") _list path; } in _res let target_of_yojson = fun tree path : target -> let _list = assoc_of_yojson tree path in let _res : target = { app_sync_parameters = option_of_yojson (value_for_key (app_sync_parameters_of_yojson) "AppSyncParameters") _list path; retry_policy = option_of_yojson (value_for_key (retry_policy_of_yojson) "RetryPolicy") _list path; dead_letter_config = option_of_yojson (value_for_key (dead_letter_config_of_yojson) "DeadLetterConfig") _list path; sage_maker_pipeline_parameters = option_of_yojson (value_for_key (sage_maker_pipeline_parameters_of_yojson) "SageMakerPipelineParameters") _list path; redshift_data_parameters = option_of_yojson (value_for_key (redshift_data_parameters_of_yojson) "RedshiftDataParameters") _list path; http_parameters = option_of_yojson (value_for_key (http_parameters_of_yojson) "HttpParameters") _list path; sqs_parameters = option_of_yojson (value_for_key (sqs_parameters_of_yojson) "SqsParameters") _list path; batch_parameters = option_of_yojson (value_for_key (batch_parameters_of_yojson) "BatchParameters") _list path; ecs_parameters = option_of_yojson (value_for_key (ecs_parameters_of_yojson) "EcsParameters") _list path; run_command_parameters = option_of_yojson (value_for_key (run_command_parameters_of_yojson) "RunCommandParameters") _list path; kinesis_parameters = option_of_yojson (value_for_key (kinesis_parameters_of_yojson) "KinesisParameters") _list path; input_transformer = option_of_yojson (value_for_key (input_transformer_of_yojson) "InputTransformer") _list path; input_path = option_of_yojson (value_for_key (target_input_path_of_yojson) "InputPath") _list path; input = option_of_yojson (value_for_key (target_input_of_yojson) "Input") _list path; role_arn = option_of_yojson (value_for_key (role_arn_of_yojson) "RoleArn") _list path; arn = value_for_key (target_arn_of_yojson) "Arn" _list path; id = value_for_key (target_id_of_yojson) "Id" _list path; } in _res let target_list_of_yojson = fun tree path -> list_of_yojson target_of_yojson tree path let target_id_list_of_yojson = fun tree path -> list_of_yojson target_id_of_yojson tree path let tag_resource_response_of_yojson = fun tree path : tag_resource_response -> let _list = assoc_of_yojson tree path in let _res : tag_resource_response = () in _res let tag_resource_request_of_yojson = fun tree path : tag_resource_request -> let _list = assoc_of_yojson tree path in let _res : tag_resource_request = { tags = value_for_key (tag_list_of_yojson) "Tags" _list path; resource_ar_n = value_for_key (arn_of_yojson) "ResourceARN" _list path; } in _res let statement_id_of_yojson = string_of_yojson let replay_arn_of_yojson = string_of_yojson let replay_state_of_yojson = fun (tree: t) path : replay_state -> match tree with | `String "FAILED" -> FAILED | `String "CANCELLED" -> CANCELLED | `String "COMPLETED" -> COMPLETED | `String "CANCELLING" -> CANCELLING | `String "RUNNING" -> RUNNING | `String "STARTING" -> STARTING | `String value -> raise (deserialize_unknown_enum_value_error path "ReplayState" value) | _ -> raise (deserialize_wrong_type_error path "ReplayState") let replay_state_reason_of_yojson = string_of_yojson let start_replay_response_of_yojson = fun tree path : start_replay_response -> let _list = assoc_of_yojson tree path in let _res : start_replay_response = { replay_start_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ReplayStartTime") _list path; state_reason = option_of_yojson (value_for_key (replay_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (replay_state_of_yojson) "State") _list path; replay_arn = option_of_yojson (value_for_key (replay_arn_of_yojson) "ReplayArn") _list path; } in _res let replay_name_of_yojson = string_of_yojson let replay_description_of_yojson = string_of_yojson let replay_destination_filters_of_yojson = fun tree path -> list_of_yojson arn_of_yojson tree path let replay_destination_of_yojson = fun tree path : replay_destination -> let _list = assoc_of_yojson tree path in let _res : replay_destination = { filter_arns = option_of_yojson (value_for_key (replay_destination_filters_of_yojson) "FilterArns") _list path; arn = value_for_key (arn_of_yojson) "Arn" _list path; } in _res let start_replay_request_of_yojson = fun tree path : start_replay_request -> let _list = assoc_of_yojson tree path in let _res : start_replay_request = { destination = value_for_key (replay_destination_of_yojson) "Destination" _list path; event_end_time = value_for_key (timestamp__of_yojson) "EventEndTime" _list path; event_start_time = value_for_key (timestamp__of_yojson) "EventStartTime" _list path; event_source_arn = value_for_key (arn_of_yojson) "EventSourceArn" _list path; description = option_of_yojson (value_for_key (replay_description_of_yojson) "Description") _list path; replay_name = value_for_key (replay_name_of_yojson) "ReplayName" _list path; } in _res let resource_already_exists_exception_of_yojson = fun tree path : resource_already_exists_exception -> let _list = assoc_of_yojson tree path in let _res : resource_already_exists_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let secrets_manager_secret_arn_of_yojson = string_of_yojson let schedule_expression_of_yojson = string_of_yojson let rule_state_of_yojson = fun (tree: t) path : rule_state -> match tree with | `String "ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS" -> ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS | `String "DISABLED" -> DISABLED | `String "ENABLED" -> ENABLED | `String value -> raise (deserialize_unknown_enum_value_error path "RuleState" value) | _ -> raise (deserialize_wrong_type_error path "RuleState") let rule_name_of_yojson = string_of_yojson let rule_arn_of_yojson = string_of_yojson let rule_description_of_yojson = string_of_yojson let managed_by_of_yojson = string_of_yojson let rule_of_yojson = fun tree path : rule -> let _list = assoc_of_yojson tree path in let _res : rule = { event_bus_name = option_of_yojson (value_for_key (event_bus_name_of_yojson) "EventBusName") _list path; managed_by = option_of_yojson (value_for_key (managed_by_of_yojson) "ManagedBy") _list path; role_arn = option_of_yojson (value_for_key (role_arn_of_yojson) "RoleArn") _list path; schedule_expression = option_of_yojson (value_for_key (schedule_expression_of_yojson) "ScheduleExpression") _list path; description = option_of_yojson (value_for_key (rule_description_of_yojson) "Description") _list path; state = option_of_yojson (value_for_key (rule_state_of_yojson) "State") _list path; event_pattern = option_of_yojson (value_for_key (event_pattern_of_yojson) "EventPattern") _list path; arn = option_of_yojson (value_for_key (rule_arn_of_yojson) "Arn") _list path; name = option_of_yojson (value_for_key (rule_name_of_yojson) "Name") _list path; } in _res let rule_response_list_of_yojson = fun tree path -> list_of_yojson rule_of_yojson tree path let rule_name_list_of_yojson = fun tree path -> list_of_yojson rule_name_of_yojson tree path let replay_of_yojson = fun tree path : replay -> let _list = assoc_of_yojson tree path in let _res : replay = { replay_end_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ReplayEndTime") _list path; replay_start_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ReplayStartTime") _list path; event_last_replayed_time = option_of_yojson (value_for_key (timestamp__of_yojson) "EventLastReplayedTime") _list path; event_end_time = option_of_yojson (value_for_key (timestamp__of_yojson) "EventEndTime") _list path; event_start_time = option_of_yojson (value_for_key (timestamp__of_yojson) "EventStartTime") _list path; state_reason = option_of_yojson (value_for_key (replay_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (replay_state_of_yojson) "State") _list path; event_source_arn = option_of_yojson (value_for_key (arn_of_yojson) "EventSourceArn") _list path; replay_name = option_of_yojson (value_for_key (replay_name_of_yojson) "ReplayName") _list path; } in _res let replay_list_of_yojson = fun tree path -> list_of_yojson replay_of_yojson tree path let error_code_of_yojson = string_of_yojson let remove_targets_result_entry_of_yojson = fun tree path : remove_targets_result_entry -> let _list = assoc_of_yojson tree path in let _res : remove_targets_result_entry = { error_message = option_of_yojson (value_for_key (error_message_of_yojson) "ErrorMessage") _list path; error_code = option_of_yojson (value_for_key (error_code_of_yojson) "ErrorCode") _list path; target_id = option_of_yojson (value_for_key (target_id_of_yojson) "TargetId") _list path; } in _res let remove_targets_result_entry_list_of_yojson = fun tree path -> list_of_yojson remove_targets_result_entry_of_yojson tree path let remove_targets_response_of_yojson = fun tree path : remove_targets_response -> let _list = assoc_of_yojson tree path in let _res : remove_targets_response = { failed_entries = option_of_yojson (value_for_key (remove_targets_result_entry_list_of_yojson) "FailedEntries") _list path; failed_entry_count = option_of_yojson (value_for_key (integer__of_yojson) "FailedEntryCount") _list path; } in _res let event_bus_name_or_arn_of_yojson = string_of_yojson let remove_targets_request_of_yojson = fun tree path : remove_targets_request -> let _list = assoc_of_yojson tree path in let _res : remove_targets_request = { force = option_of_yojson (value_for_key (boolean__of_yojson) "Force") _list path; ids = value_for_key (target_id_list_of_yojson) "Ids" _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; rule = value_for_key (rule_name_of_yojson) "Rule" _list path; } in _res let non_partner_event_bus_name_of_yojson = string_of_yojson let remove_permission_request_of_yojson = fun tree path : remove_permission_request -> let _list = assoc_of_yojson tree path in let _res : remove_permission_request = { event_bus_name = option_of_yojson (value_for_key (non_partner_event_bus_name_of_yojson) "EventBusName") _list path; remove_all_permissions = option_of_yojson (value_for_key (boolean__of_yojson) "RemoveAllPermissions") _list path; statement_id = option_of_yojson (value_for_key (statement_id_of_yojson) "StatementId") _list path; } in _res let put_targets_result_entry_of_yojson = fun tree path : put_targets_result_entry -> let _list = assoc_of_yojson tree path in let _res : put_targets_result_entry = { error_message = option_of_yojson (value_for_key (error_message_of_yojson) "ErrorMessage") _list path; error_code = option_of_yojson (value_for_key (error_code_of_yojson) "ErrorCode") _list path; target_id = option_of_yojson (value_for_key (target_id_of_yojson) "TargetId") _list path; } in _res let put_targets_result_entry_list_of_yojson = fun tree path -> list_of_yojson put_targets_result_entry_of_yojson tree path let put_targets_response_of_yojson = fun tree path : put_targets_response -> let _list = assoc_of_yojson tree path in let _res : put_targets_response = { failed_entries = option_of_yojson (value_for_key (put_targets_result_entry_list_of_yojson) "FailedEntries") _list path; failed_entry_count = option_of_yojson (value_for_key (integer__of_yojson) "FailedEntryCount") _list path; } in _res let put_targets_request_of_yojson = fun tree path : put_targets_request -> let _list = assoc_of_yojson tree path in let _res : put_targets_request = { targets = value_for_key (target_list_of_yojson) "Targets" _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; rule = value_for_key (rule_name_of_yojson) "Rule" _list path; } in _res let put_rule_response_of_yojson = fun tree path : put_rule_response -> let _list = assoc_of_yojson tree path in let _res : put_rule_response = { rule_arn = option_of_yojson (value_for_key (rule_arn_of_yojson) "RuleArn") _list path; } in _res let put_rule_request_of_yojson = fun tree path : put_rule_request -> let _list = assoc_of_yojson tree path in let _res : put_rule_request = { event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; tags = option_of_yojson (value_for_key (tag_list_of_yojson) "Tags") _list path; role_arn = option_of_yojson (value_for_key (role_arn_of_yojson) "RoleArn") _list path; description = option_of_yojson (value_for_key (rule_description_of_yojson) "Description") _list path; state = option_of_yojson (value_for_key (rule_state_of_yojson) "State") _list path; event_pattern = option_of_yojson (value_for_key (event_pattern_of_yojson) "EventPattern") _list path; schedule_expression = option_of_yojson (value_for_key (schedule_expression_of_yojson) "ScheduleExpression") _list path; name = value_for_key (rule_name_of_yojson) "Name" _list path; } in _res let action_of_yojson = string_of_yojson let principal_of_yojson = string_of_yojson let condition_of_yojson = fun tree path : condition -> let _list = assoc_of_yojson tree path in let _res : condition = { value = value_for_key (string__of_yojson) "Value" _list path; key = value_for_key (string__of_yojson) "Key" _list path; type_ = value_for_key (string__of_yojson) "Type" _list path; } in _res let put_permission_request_of_yojson = fun tree path : put_permission_request -> let _list = assoc_of_yojson tree path in let _res : put_permission_request = { policy = option_of_yojson (value_for_key (string__of_yojson) "Policy") _list path; condition = option_of_yojson (value_for_key (condition_of_yojson) "Condition") _list path; statement_id = option_of_yojson (value_for_key (statement_id_of_yojson) "StatementId") _list path; principal = option_of_yojson (value_for_key (principal_of_yojson) "Principal") _list path; action = option_of_yojson (value_for_key (action_of_yojson) "Action") _list path; event_bus_name = option_of_yojson (value_for_key (non_partner_event_bus_name_of_yojson) "EventBusName") _list path; } in _res let policy_length_exceeded_exception_of_yojson = fun tree path : policy_length_exceeded_exception -> let _list = assoc_of_yojson tree path in let _res : policy_length_exceeded_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let event_id_of_yojson = string_of_yojson let put_partner_events_result_entry_of_yojson = fun tree path : put_partner_events_result_entry -> let _list = assoc_of_yojson tree path in let _res : put_partner_events_result_entry = { error_message = option_of_yojson (value_for_key (error_message_of_yojson) "ErrorMessage") _list path; error_code = option_of_yojson (value_for_key (error_code_of_yojson) "ErrorCode") _list path; event_id = option_of_yojson (value_for_key (event_id_of_yojson) "EventId") _list path; } in _res let put_partner_events_result_entry_list_of_yojson = fun tree path -> list_of_yojson put_partner_events_result_entry_of_yojson tree path let put_partner_events_response_of_yojson = fun tree path : put_partner_events_response -> let _list = assoc_of_yojson tree path in let _res : put_partner_events_response = { entries = option_of_yojson (value_for_key (put_partner_events_result_entry_list_of_yojson) "Entries") _list path; failed_entry_count = option_of_yojson (value_for_key (integer__of_yojson) "FailedEntryCount") _list path; } in _res let event_time_of_yojson = timestamp_of_yojson let event_source_name_of_yojson = string_of_yojson let event_resource_of_yojson = string_of_yojson let event_resource_list_of_yojson = fun tree path -> list_of_yojson event_resource_of_yojson tree path let put_partner_events_request_entry_of_yojson = fun tree path : put_partner_events_request_entry -> let _list = assoc_of_yojson tree path in let _res : put_partner_events_request_entry = { detail = option_of_yojson (value_for_key (string__of_yojson) "Detail") _list path; detail_type = option_of_yojson (value_for_key (string__of_yojson) "DetailType") _list path; resources = option_of_yojson (value_for_key (event_resource_list_of_yojson) "Resources") _list path; source = option_of_yojson (value_for_key (event_source_name_of_yojson) "Source") _list path; time = option_of_yojson (value_for_key (event_time_of_yojson) "Time") _list path; } in _res let put_partner_events_request_entry_list_of_yojson = fun tree path -> list_of_yojson put_partner_events_request_entry_of_yojson tree path let put_partner_events_request_of_yojson = fun tree path : put_partner_events_request -> let _list = assoc_of_yojson tree path in let _res : put_partner_events_request = { entries = value_for_key (put_partner_events_request_entry_list_of_yojson) "Entries" _list path; } in _res let put_events_result_entry_of_yojson = fun tree path : put_events_result_entry -> let _list = assoc_of_yojson tree path in let _res : put_events_result_entry = { error_message = option_of_yojson (value_for_key (error_message_of_yojson) "ErrorMessage") _list path; error_code = option_of_yojson (value_for_key (error_code_of_yojson) "ErrorCode") _list path; event_id = option_of_yojson (value_for_key (event_id_of_yojson) "EventId") _list path; } in _res let put_events_result_entry_list_of_yojson = fun tree path -> list_of_yojson put_events_result_entry_of_yojson tree path let put_events_response_of_yojson = fun tree path : put_events_response -> let _list = assoc_of_yojson tree path in let _res : put_events_response = { entries = option_of_yojson (value_for_key (put_events_result_entry_list_of_yojson) "Entries") _list path; failed_entry_count = option_of_yojson (value_for_key (integer__of_yojson) "FailedEntryCount") _list path; } in _res let non_partner_event_bus_name_or_arn_of_yojson = string_of_yojson let put_events_request_entry_of_yojson = fun tree path : put_events_request_entry -> let _list = assoc_of_yojson tree path in let _res : put_events_request_entry = { trace_header = option_of_yojson (value_for_key (trace_header_of_yojson) "TraceHeader") _list path; event_bus_name = option_of_yojson (value_for_key (non_partner_event_bus_name_or_arn_of_yojson) "EventBusName") _list path; detail = option_of_yojson (value_for_key (string__of_yojson) "Detail") _list path; detail_type = option_of_yojson (value_for_key (string__of_yojson) "DetailType") _list path; resources = option_of_yojson (value_for_key (event_resource_list_of_yojson) "Resources") _list path; source = option_of_yojson (value_for_key (string__of_yojson) "Source") _list path; time = option_of_yojson (value_for_key (event_time_of_yojson) "Time") _list path; } in _res let put_events_request_entry_list_of_yojson = fun tree path -> list_of_yojson put_events_request_entry_of_yojson tree path let put_events_request_of_yojson = fun tree path : put_events_request -> let _list = assoc_of_yojson tree path in let _res : put_events_request = { endpoint_id = option_of_yojson (value_for_key (endpoint_id_of_yojson) "EndpointId") _list path; entries = value_for_key (put_events_request_entry_list_of_yojson) "Entries" _list path; } in _res let partner_event_source_name_prefix_of_yojson = string_of_yojson let partner_event_source_of_yojson = fun tree path : partner_event_source -> let _list = assoc_of_yojson tree path in let _res : partner_event_source = { name = option_of_yojson (value_for_key (string__of_yojson) "Name") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; } in _res let partner_event_source_list_of_yojson = fun tree path -> list_of_yojson partner_event_source_of_yojson tree path let account_id_of_yojson = string_of_yojson let event_source_state_of_yojson = fun (tree: t) path : event_source_state -> match tree with | `String "DELETED" -> DELETED | `String "ACTIVE" -> ACTIVE | `String "PENDING" -> PENDING | `String value -> raise (deserialize_unknown_enum_value_error path "EventSourceState" value) | _ -> raise (deserialize_wrong_type_error path "EventSourceState") let partner_event_source_account_of_yojson = fun tree path : partner_event_source_account -> let _list = assoc_of_yojson tree path in let _res : partner_event_source_account = { state = option_of_yojson (value_for_key (event_source_state_of_yojson) "State") _list path; expiration_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ExpirationTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; account = option_of_yojson (value_for_key (account_id_of_yojson) "Account") _list path; } in _res let partner_event_source_account_list_of_yojson = fun tree path -> list_of_yojson partner_event_source_account_of_yojson tree path let next_token_of_yojson = string_of_yojson let long_of_yojson = long_of_yojson let list_targets_by_rule_response_of_yojson = fun tree path : list_targets_by_rule_response -> let _list = assoc_of_yojson tree path in let _res : list_targets_by_rule_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; targets = option_of_yojson (value_for_key (target_list_of_yojson) "Targets") _list path; } in _res let limit_max100_of_yojson = int_of_yojson let list_targets_by_rule_request_of_yojson = fun tree path : list_targets_by_rule_request -> let _list = assoc_of_yojson tree path in let _res : list_targets_by_rule_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; rule = value_for_key (rule_name_of_yojson) "Rule" _list path; } in _res let = fun tree path : list_tags_for_resource_response -> let _list = assoc_of_yojson tree path in let _res : list_tags_for_resource_response = { tags = option_of_yojson (value_for_key (tag_list_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 = { resource_ar_n = value_for_key (arn_of_yojson) "ResourceARN" _list path; } in _res let list_rules_response_of_yojson = fun tree path : list_rules_response -> let _list = assoc_of_yojson tree path in let _res : list_rules_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; rules = option_of_yojson (value_for_key (rule_response_list_of_yojson) "Rules") _list path; } in _res let list_rules_request_of_yojson = fun tree path : list_rules_request -> let _list = assoc_of_yojson tree path in let _res : list_rules_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; name_prefix = option_of_yojson (value_for_key (rule_name_of_yojson) "NamePrefix") _list path; } in _res let list_rule_names_by_target_response_of_yojson = fun tree path : list_rule_names_by_target_response -> let _list = assoc_of_yojson tree path in let _res : list_rule_names_by_target_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; rule_names = option_of_yojson (value_for_key (rule_name_list_of_yojson) "RuleNames") _list path; } in _res let list_rule_names_by_target_request_of_yojson = fun tree path : list_rule_names_by_target_request -> let _list = assoc_of_yojson tree path in let _res : list_rule_names_by_target_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; target_arn = value_for_key (target_arn_of_yojson) "TargetArn" _list path; } in _res let list_replays_response_of_yojson = fun tree path : list_replays_response -> let _list = assoc_of_yojson tree path in let _res : list_replays_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; replays = option_of_yojson (value_for_key (replay_list_of_yojson) "Replays") _list path; } in _res let list_replays_request_of_yojson = fun tree path : list_replays_request -> let _list = assoc_of_yojson tree path in let _res : list_replays_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_source_arn = option_of_yojson (value_for_key (arn_of_yojson) "EventSourceArn") _list path; state = option_of_yojson (value_for_key (replay_state_of_yojson) "State") _list path; name_prefix = option_of_yojson (value_for_key (replay_name_of_yojson) "NamePrefix") _list path; } in _res let list_partner_event_sources_response_of_yojson = fun tree path : list_partner_event_sources_response -> let _list = assoc_of_yojson tree path in let _res : list_partner_event_sources_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; partner_event_sources = option_of_yojson (value_for_key (partner_event_source_list_of_yojson) "PartnerEventSources") _list path; } in _res let list_partner_event_sources_request_of_yojson = fun tree path : list_partner_event_sources_request -> let _list = assoc_of_yojson tree path in let _res : list_partner_event_sources_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; name_prefix = value_for_key (partner_event_source_name_prefix_of_yojson) "NamePrefix" _list path; } in _res let list_partner_event_source_accounts_response_of_yojson = fun tree path : list_partner_event_source_accounts_response -> let _list = assoc_of_yojson tree path in let _res : list_partner_event_source_accounts_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; partner_event_source_accounts = option_of_yojson (value_for_key (partner_event_source_account_list_of_yojson) "PartnerEventSourceAccounts") _list path; } in _res let list_partner_event_source_accounts_request_of_yojson = fun tree path : list_partner_event_source_accounts_request -> let _list = assoc_of_yojson tree path in let _res : list_partner_event_source_accounts_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_source_name = value_for_key (event_source_name_of_yojson) "EventSourceName" _list path; } in _res let event_source_of_yojson = fun tree path : event_source -> let _list = assoc_of_yojson tree path in let _res : event_source = { state = option_of_yojson (value_for_key (event_source_state_of_yojson) "State") _list path; name = option_of_yojson (value_for_key (string__of_yojson) "Name") _list path; expiration_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ExpirationTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; created_by = option_of_yojson (value_for_key (string__of_yojson) "CreatedBy") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; } in _res let event_source_list_of_yojson = fun tree path -> list_of_yojson event_source_of_yojson tree path let list_event_sources_response_of_yojson = fun tree path : list_event_sources_response -> let _list = assoc_of_yojson tree path in let _res : list_event_sources_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_sources = option_of_yojson (value_for_key (event_source_list_of_yojson) "EventSources") _list path; } in _res let event_source_name_prefix_of_yojson = string_of_yojson let list_event_sources_request_of_yojson = fun tree path : list_event_sources_request -> let _list = assoc_of_yojson tree path in let _res : list_event_sources_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; name_prefix = option_of_yojson (value_for_key (event_source_name_prefix_of_yojson) "NamePrefix") _list path; } in _res let event_bus_of_yojson = fun tree path : event_bus -> let _list = assoc_of_yojson tree path in let _res : event_bus = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; policy = option_of_yojson (value_for_key (string__of_yojson) "Policy") _list path; description = option_of_yojson (value_for_key (event_bus_description_of_yojson) "Description") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; name = option_of_yojson (value_for_key (string__of_yojson) "Name") _list path; } in _res let event_bus_list_of_yojson = fun tree path -> list_of_yojson event_bus_of_yojson tree path let list_event_buses_response_of_yojson = fun tree path : list_event_buses_response -> let _list = assoc_of_yojson tree path in let _res : list_event_buses_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; event_buses = option_of_yojson (value_for_key (event_bus_list_of_yojson) "EventBuses") _list path; } in _res let list_event_buses_request_of_yojson = fun tree path : list_event_buses_request -> let _list = assoc_of_yojson tree path in let _res : list_event_buses_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; name_prefix = option_of_yojson (value_for_key (event_bus_name_of_yojson) "NamePrefix") _list path; } in _res let endpoint_state_reason_of_yojson = string_of_yojson let endpoint_of_yojson = fun tree path : endpoint -> let _list = assoc_of_yojson tree path in let _res : endpoint = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; state_reason = option_of_yojson (value_for_key (endpoint_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (endpoint_state_of_yojson) "State") _list path; endpoint_url = option_of_yojson (value_for_key (endpoint_url_of_yojson) "EndpointUrl") _list path; endpoint_id = option_of_yojson (value_for_key (endpoint_id_of_yojson) "EndpointId") _list path; role_arn = option_of_yojson (value_for_key (iam_role_arn_of_yojson) "RoleArn") _list path; event_buses = option_of_yojson (value_for_key (endpoint_event_bus_list_of_yojson) "EventBuses") _list path; replication_config = option_of_yojson (value_for_key (replication_config_of_yojson) "ReplicationConfig") _list path; routing_config = option_of_yojson (value_for_key (routing_config_of_yojson) "RoutingConfig") _list path; arn = option_of_yojson (value_for_key (endpoint_arn_of_yojson) "Arn") _list path; description = option_of_yojson (value_for_key (endpoint_description_of_yojson) "Description") _list path; name = option_of_yojson (value_for_key (endpoint_name_of_yojson) "Name") _list path; } in _res let endpoint_list_of_yojson = fun tree path -> list_of_yojson endpoint_of_yojson tree path let list_endpoints_response_of_yojson = fun tree path : list_endpoints_response -> let _list = assoc_of_yojson tree path in let _res : list_endpoints_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; endpoints = option_of_yojson (value_for_key (endpoint_list_of_yojson) "Endpoints") _list path; } in _res let home_region_of_yojson = string_of_yojson let list_endpoints_request_of_yojson = fun tree path : list_endpoints_request -> let _list = assoc_of_yojson tree path in let _res : list_endpoints_request = { max_results = option_of_yojson (value_for_key (limit_max100_of_yojson) "MaxResults") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; home_region = option_of_yojson (value_for_key (home_region_of_yojson) "HomeRegion") _list path; name_prefix = option_of_yojson (value_for_key (endpoint_name_of_yojson) "NamePrefix") _list path; } in _res let connection_state_reason_of_yojson = string_of_yojson let connection_of_yojson = fun tree path : connection -> let _list = assoc_of_yojson tree path in let _res : connection = { last_authorized_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastAuthorizedTime") _list path; last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; authorization_type = option_of_yojson (value_for_key (connection_authorization_type_of_yojson) "AuthorizationType") _list path; state_reason = option_of_yojson (value_for_key (connection_state_reason_of_yojson) "StateReason") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; name = option_of_yojson (value_for_key (connection_name_of_yojson) "Name") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; } in _res let connection_response_list_of_yojson = fun tree path -> list_of_yojson connection_of_yojson tree path let list_connections_response_of_yojson = fun tree path : list_connections_response -> let _list = assoc_of_yojson tree path in let _res : list_connections_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; connections = option_of_yojson (value_for_key (connection_response_list_of_yojson) "Connections") _list path; } in _res let list_connections_request_of_yojson = fun tree path : list_connections_request -> let _list = assoc_of_yojson tree path in let _res : list_connections_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; name_prefix = option_of_yojson (value_for_key (connection_name_of_yojson) "NamePrefix") _list path; } in _res let archive_of_yojson = fun tree path : archive -> let _list = assoc_of_yojson tree path in let _res : archive = { creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; event_count = option_of_yojson (value_for_key (long_of_yojson) "EventCount") _list path; size_bytes = option_of_yojson (value_for_key (long_of_yojson) "SizeBytes") _list path; retention_days = option_of_yojson (value_for_key (retention_days_of_yojson) "RetentionDays") _list path; state_reason = option_of_yojson (value_for_key (archive_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (archive_state_of_yojson) "State") _list path; event_source_arn = option_of_yojson (value_for_key (arn_of_yojson) "EventSourceArn") _list path; archive_name = option_of_yojson (value_for_key (archive_name_of_yojson) "ArchiveName") _list path; } in _res let archive_response_list_of_yojson = fun tree path -> list_of_yojson archive_of_yojson tree path let list_archives_response_of_yojson = fun tree path : list_archives_response -> let _list = assoc_of_yojson tree path in let _res : list_archives_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; archives = option_of_yojson (value_for_key (archive_response_list_of_yojson) "Archives") _list path; } in _res let list_archives_request_of_yojson = fun tree path : list_archives_request -> let _list = assoc_of_yojson tree path in let _res : list_archives_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; state = option_of_yojson (value_for_key (archive_state_of_yojson) "State") _list path; event_source_arn = option_of_yojson (value_for_key (arn_of_yojson) "EventSourceArn") _list path; name_prefix = option_of_yojson (value_for_key (archive_name_of_yojson) "NamePrefix") _list path; } in _res let api_destination_of_yojson = fun tree path : api_destination -> let _list = assoc_of_yojson tree path in let _res : api_destination = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; invocation_rate_limit_per_second = option_of_yojson (value_for_key (api_destination_invocation_rate_limit_per_second_of_yojson) "InvocationRateLimitPerSecond") _list path; http_method = option_of_yojson (value_for_key (api_destination_http_method_of_yojson) "HttpMethod") _list path; invocation_endpoint = option_of_yojson (value_for_key (https_endpoint_of_yojson) "InvocationEndpoint") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; api_destination_state = option_of_yojson (value_for_key (api_destination_state_of_yojson) "ApiDestinationState") _list path; name = option_of_yojson (value_for_key (api_destination_name_of_yojson) "Name") _list path; api_destination_arn = option_of_yojson (value_for_key (api_destination_arn_of_yojson) "ApiDestinationArn") _list path; } in _res let api_destination_response_list_of_yojson = fun tree path -> list_of_yojson api_destination_of_yojson tree path let list_api_destinations_response_of_yojson = fun tree path : list_api_destinations_response -> let _list = assoc_of_yojson tree path in let _res : list_api_destinations_response = { next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; api_destinations = option_of_yojson (value_for_key (api_destination_response_list_of_yojson) "ApiDestinations") _list path; } in _res let list_api_destinations_request_of_yojson = fun tree path : list_api_destinations_request -> let _list = assoc_of_yojson tree path in let _res : list_api_destinations_request = { limit = option_of_yojson (value_for_key (limit_max100_of_yojson) "Limit") _list path; next_token = option_of_yojson (value_for_key (next_token_of_yojson) "NextToken") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; name_prefix = option_of_yojson (value_for_key (api_destination_name_of_yojson) "NamePrefix") _list path; } in _res let invalid_state_exception_of_yojson = fun tree path : invalid_state_exception -> let _list = assoc_of_yojson tree path in let _res : invalid_state_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let illegal_status_exception_of_yojson = fun tree path : illegal_status_exception -> let _list = assoc_of_yojson tree path in let _res : illegal_status_exception = { message = option_of_yojson (value_for_key (error_message_of_yojson) "message") _list path; } in _res let enable_rule_request_of_yojson = fun tree path : enable_rule_request -> let _list = assoc_of_yojson tree path in let _res : enable_rule_request = { event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; name = value_for_key (rule_name_of_yojson) "Name" _list path; } in _res let disable_rule_request_of_yojson = fun tree path : disable_rule_request -> let _list = assoc_of_yojson tree path in let _res : disable_rule_request = { event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; name = value_for_key (rule_name_of_yojson) "Name" _list path; } in _res let created_by_of_yojson = string_of_yojson let describe_rule_response_of_yojson = fun tree path : describe_rule_response -> let _list = assoc_of_yojson tree path in let _res : describe_rule_response = { created_by = option_of_yojson (value_for_key (created_by_of_yojson) "CreatedBy") _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_of_yojson) "EventBusName") _list path; managed_by = option_of_yojson (value_for_key (managed_by_of_yojson) "ManagedBy") _list path; role_arn = option_of_yojson (value_for_key (role_arn_of_yojson) "RoleArn") _list path; description = option_of_yojson (value_for_key (rule_description_of_yojson) "Description") _list path; state = option_of_yojson (value_for_key (rule_state_of_yojson) "State") _list path; schedule_expression = option_of_yojson (value_for_key (schedule_expression_of_yojson) "ScheduleExpression") _list path; event_pattern = option_of_yojson (value_for_key (event_pattern_of_yojson) "EventPattern") _list path; arn = option_of_yojson (value_for_key (rule_arn_of_yojson) "Arn") _list path; name = option_of_yojson (value_for_key (rule_name_of_yojson) "Name") _list path; } in _res let describe_rule_request_of_yojson = fun tree path : describe_rule_request -> let _list = assoc_of_yojson tree path in let _res : describe_rule_request = { event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; name = value_for_key (rule_name_of_yojson) "Name" _list path; } in _res let describe_replay_response_of_yojson = fun tree path : describe_replay_response -> let _list = assoc_of_yojson tree path in let _res : describe_replay_response = { replay_end_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ReplayEndTime") _list path; replay_start_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ReplayStartTime") _list path; event_last_replayed_time = option_of_yojson (value_for_key (timestamp__of_yojson) "EventLastReplayedTime") _list path; event_end_time = option_of_yojson (value_for_key (timestamp__of_yojson) "EventEndTime") _list path; event_start_time = option_of_yojson (value_for_key (timestamp__of_yojson) "EventStartTime") _list path; destination = option_of_yojson (value_for_key (replay_destination_of_yojson) "Destination") _list path; event_source_arn = option_of_yojson (value_for_key (arn_of_yojson) "EventSourceArn") _list path; state_reason = option_of_yojson (value_for_key (replay_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (replay_state_of_yojson) "State") _list path; description = option_of_yojson (value_for_key (replay_description_of_yojson) "Description") _list path; replay_arn = option_of_yojson (value_for_key (replay_arn_of_yojson) "ReplayArn") _list path; replay_name = option_of_yojson (value_for_key (replay_name_of_yojson) "ReplayName") _list path; } in _res let describe_replay_request_of_yojson = fun tree path : describe_replay_request -> let _list = assoc_of_yojson tree path in let _res : describe_replay_request = { replay_name = value_for_key (replay_name_of_yojson) "ReplayName" _list path; } in _res let describe_partner_event_source_response_of_yojson = fun tree path : describe_partner_event_source_response -> let _list = assoc_of_yojson tree path in let _res : describe_partner_event_source_response = { name = option_of_yojson (value_for_key (string__of_yojson) "Name") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; } in _res let describe_partner_event_source_request_of_yojson = fun tree path : describe_partner_event_source_request -> let _list = assoc_of_yojson tree path in let _res : describe_partner_event_source_request = { name = value_for_key (event_source_name_of_yojson) "Name" _list path; } in _res let describe_event_source_response_of_yojson = fun tree path : describe_event_source_response -> let _list = assoc_of_yojson tree path in let _res : describe_event_source_response = { state = option_of_yojson (value_for_key (event_source_state_of_yojson) "State") _list path; name = option_of_yojson (value_for_key (string__of_yojson) "Name") _list path; expiration_time = option_of_yojson (value_for_key (timestamp__of_yojson) "ExpirationTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; created_by = option_of_yojson (value_for_key (string__of_yojson) "CreatedBy") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; } in _res let describe_event_source_request_of_yojson = fun tree path : describe_event_source_request -> let _list = assoc_of_yojson tree path in let _res : describe_event_source_request = { name = value_for_key (event_source_name_of_yojson) "Name" _list path; } in _res let describe_event_bus_response_of_yojson = fun tree path : describe_event_bus_response -> let _list = assoc_of_yojson tree path in let _res : describe_event_bus_response = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; policy = option_of_yojson (value_for_key (string__of_yojson) "Policy") _list path; dead_letter_config = option_of_yojson (value_for_key (dead_letter_config_of_yojson) "DeadLetterConfig") _list path; kms_key_identifier = option_of_yojson (value_for_key (kms_key_identifier_of_yojson) "KmsKeyIdentifier") _list path; description = option_of_yojson (value_for_key (event_bus_description_of_yojson) "Description") _list path; arn = option_of_yojson (value_for_key (string__of_yojson) "Arn") _list path; name = option_of_yojson (value_for_key (string__of_yojson) "Name") _list path; } in _res let describe_event_bus_request_of_yojson = fun tree path : describe_event_bus_request -> let _list = assoc_of_yojson tree path in let _res : describe_event_bus_request = { name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "Name") _list path; } in _res let describe_endpoint_response_of_yojson = fun tree path : describe_endpoint_response -> let _list = assoc_of_yojson tree path in let _res : describe_endpoint_response = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; state_reason = option_of_yojson (value_for_key (endpoint_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (endpoint_state_of_yojson) "State") _list path; endpoint_url = option_of_yojson (value_for_key (endpoint_url_of_yojson) "EndpointUrl") _list path; endpoint_id = option_of_yojson (value_for_key (endpoint_id_of_yojson) "EndpointId") _list path; role_arn = option_of_yojson (value_for_key (iam_role_arn_of_yojson) "RoleArn") _list path; event_buses = option_of_yojson (value_for_key (endpoint_event_bus_list_of_yojson) "EventBuses") _list path; replication_config = option_of_yojson (value_for_key (replication_config_of_yojson) "ReplicationConfig") _list path; routing_config = option_of_yojson (value_for_key (routing_config_of_yojson) "RoutingConfig") _list path; arn = option_of_yojson (value_for_key (endpoint_arn_of_yojson) "Arn") _list path; description = option_of_yojson (value_for_key (endpoint_description_of_yojson) "Description") _list path; name = option_of_yojson (value_for_key (endpoint_name_of_yojson) "Name") _list path; } in _res let describe_endpoint_request_of_yojson = fun tree path : describe_endpoint_request -> let _list = assoc_of_yojson tree path in let _res : describe_endpoint_request = { home_region = option_of_yojson (value_for_key (home_region_of_yojson) "HomeRegion") _list path; name = value_for_key (endpoint_name_of_yojson) "Name" _list path; } in _res let connection_basic_auth_response_parameters_of_yojson = fun tree path : connection_basic_auth_response_parameters -> let _list = assoc_of_yojson tree path in let _res : connection_basic_auth_response_parameters = { username = option_of_yojson (value_for_key (auth_header_parameters_of_yojson) "Username") _list path; } in _res let connection_o_auth_client_response_parameters_of_yojson = fun tree path : connection_o_auth_client_response_parameters -> let _list = assoc_of_yojson tree path in let _res : connection_o_auth_client_response_parameters = { client_i_d = option_of_yojson (value_for_key (auth_header_parameters_of_yojson) "ClientID") _list path; } in _res let connection_o_auth_response_parameters_of_yojson = fun tree path : connection_o_auth_response_parameters -> let _list = assoc_of_yojson tree path in let _res : connection_o_auth_response_parameters = { o_auth_http_parameters = option_of_yojson (value_for_key (connection_http_parameters_of_yojson) "OAuthHttpParameters") _list path; http_method = option_of_yojson (value_for_key (connection_o_auth_http_method_of_yojson) "HttpMethod") _list path; authorization_endpoint = option_of_yojson (value_for_key (https_endpoint_of_yojson) "AuthorizationEndpoint") _list path; client_parameters = option_of_yojson (value_for_key (connection_o_auth_client_response_parameters_of_yojson) "ClientParameters") _list path; } in _res let connection_api_key_auth_response_parameters_of_yojson = fun tree path : connection_api_key_auth_response_parameters -> let _list = assoc_of_yojson tree path in let _res : connection_api_key_auth_response_parameters = { api_key_name = option_of_yojson (value_for_key (auth_header_parameters_of_yojson) "ApiKeyName") _list path; } in _res let connection_auth_response_parameters_of_yojson = fun tree path : connection_auth_response_parameters -> let _list = assoc_of_yojson tree path in let _res : connection_auth_response_parameters = { invocation_http_parameters = option_of_yojson (value_for_key (connection_http_parameters_of_yojson) "InvocationHttpParameters") _list path; api_key_auth_parameters = option_of_yojson (value_for_key (connection_api_key_auth_response_parameters_of_yojson) "ApiKeyAuthParameters") _list path; o_auth_parameters = option_of_yojson (value_for_key (connection_o_auth_response_parameters_of_yojson) "OAuthParameters") _list path; basic_auth_parameters = option_of_yojson (value_for_key (connection_basic_auth_response_parameters_of_yojson) "BasicAuthParameters") _list path; } in _res let describe_connection_response_of_yojson = fun tree path : describe_connection_response -> let _list = assoc_of_yojson tree path in let _res : describe_connection_response = { last_authorized_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastAuthorizedTime") _list path; last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; auth_parameters = option_of_yojson (value_for_key (connection_auth_response_parameters_of_yojson) "AuthParameters") _list path; secret_arn = option_of_yojson (value_for_key (secrets_manager_secret_arn_of_yojson) "SecretArn") _list path; authorization_type = option_of_yojson (value_for_key (connection_authorization_type_of_yojson) "AuthorizationType") _list path; state_reason = option_of_yojson (value_for_key (connection_state_reason_of_yojson) "StateReason") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; description = option_of_yojson (value_for_key (connection_description_of_yojson) "Description") _list path; name = option_of_yojson (value_for_key (connection_name_of_yojson) "Name") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; } in _res let describe_connection_request_of_yojson = fun tree path : describe_connection_request -> let _list = assoc_of_yojson tree path in let _res : describe_connection_request = { name = value_for_key (connection_name_of_yojson) "Name" _list path; } in _res let describe_archive_response_of_yojson = fun tree path : describe_archive_response -> let _list = assoc_of_yojson tree path in let _res : describe_archive_response = { creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; event_count = option_of_yojson (value_for_key (long_of_yojson) "EventCount") _list path; size_bytes = option_of_yojson (value_for_key (long_of_yojson) "SizeBytes") _list path; retention_days = option_of_yojson (value_for_key (retention_days_of_yojson) "RetentionDays") _list path; state_reason = option_of_yojson (value_for_key (archive_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (archive_state_of_yojson) "State") _list path; event_pattern = option_of_yojson (value_for_key (event_pattern_of_yojson) "EventPattern") _list path; description = option_of_yojson (value_for_key (archive_description_of_yojson) "Description") _list path; event_source_arn = option_of_yojson (value_for_key (arn_of_yojson) "EventSourceArn") _list path; archive_name = option_of_yojson (value_for_key (archive_name_of_yojson) "ArchiveName") _list path; archive_arn = option_of_yojson (value_for_key (archive_arn_of_yojson) "ArchiveArn") _list path; } in _res let describe_archive_request_of_yojson = fun tree path : describe_archive_request -> let _list = assoc_of_yojson tree path in let _res : describe_archive_request = { archive_name = value_for_key (archive_name_of_yojson) "ArchiveName" _list path; } in _res let describe_api_destination_response_of_yojson = fun tree path : describe_api_destination_response -> let _list = assoc_of_yojson tree path in let _res : describe_api_destination_response = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; invocation_rate_limit_per_second = option_of_yojson (value_for_key (api_destination_invocation_rate_limit_per_second_of_yojson) "InvocationRateLimitPerSecond") _list path; http_method = option_of_yojson (value_for_key (api_destination_http_method_of_yojson) "HttpMethod") _list path; invocation_endpoint = option_of_yojson (value_for_key (https_endpoint_of_yojson) "InvocationEndpoint") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; api_destination_state = option_of_yojson (value_for_key (api_destination_state_of_yojson) "ApiDestinationState") _list path; description = option_of_yojson (value_for_key (api_destination_description_of_yojson) "Description") _list path; name = option_of_yojson (value_for_key (api_destination_name_of_yojson) "Name") _list path; api_destination_arn = option_of_yojson (value_for_key (api_destination_arn_of_yojson) "ApiDestinationArn") _list path; } in _res let describe_api_destination_request_of_yojson = fun tree path : describe_api_destination_request -> let _list = assoc_of_yojson tree path in let _res : describe_api_destination_request = { name = value_for_key (api_destination_name_of_yojson) "Name" _list path; } in _res let delete_rule_request_of_yojson = fun tree path : delete_rule_request -> let _list = assoc_of_yojson tree path in let _res : delete_rule_request = { force = option_of_yojson (value_for_key (boolean__of_yojson) "Force") _list path; event_bus_name = option_of_yojson (value_for_key (event_bus_name_or_arn_of_yojson) "EventBusName") _list path; name = value_for_key (rule_name_of_yojson) "Name" _list path; } in _res let delete_partner_event_source_request_of_yojson = fun tree path : delete_partner_event_source_request -> let _list = assoc_of_yojson tree path in let _res : delete_partner_event_source_request = { account = value_for_key (account_id_of_yojson) "Account" _list path; name = value_for_key (event_source_name_of_yojson) "Name" _list path; } in _res let delete_event_bus_request_of_yojson = fun tree path : delete_event_bus_request -> let _list = assoc_of_yojson tree path in let _res : delete_event_bus_request = { name = value_for_key (event_bus_name_of_yojson) "Name" _list path; } in _res let delete_endpoint_response_of_yojson = fun tree path : delete_endpoint_response -> let _list = assoc_of_yojson tree path in let _res : delete_endpoint_response = () in _res let delete_endpoint_request_of_yojson = fun tree path : delete_endpoint_request -> let _list = assoc_of_yojson tree path in let _res : delete_endpoint_request = { name = value_for_key (endpoint_name_of_yojson) "Name" _list path; } in _res let delete_connection_response_of_yojson = fun tree path : delete_connection_response -> let _list = assoc_of_yojson tree path in let _res : delete_connection_response = { last_authorized_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastAuthorizedTime") _list path; last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; } in _res let delete_connection_request_of_yojson = fun tree path : delete_connection_request -> let _list = assoc_of_yojson tree path in let _res : delete_connection_request = { name = value_for_key (connection_name_of_yojson) "Name" _list path; } in _res let delete_archive_response_of_yojson = fun tree path : delete_archive_response -> let _list = assoc_of_yojson tree path in let _res : delete_archive_response = () in _res let delete_archive_request_of_yojson = fun tree path : delete_archive_request -> let _list = assoc_of_yojson tree path in let _res : delete_archive_request = { archive_name = value_for_key (archive_name_of_yojson) "ArchiveName" _list path; } in _res let delete_api_destination_response_of_yojson = fun tree path : delete_api_destination_response -> let _list = assoc_of_yojson tree path in let _res : delete_api_destination_response = () in _res let delete_api_destination_request_of_yojson = fun tree path : delete_api_destination_request -> let _list = assoc_of_yojson tree path in let _res : delete_api_destination_request = { name = value_for_key (api_destination_name_of_yojson) "Name" _list path; } in _res let = fun tree path : deauthorize_connection_response -> let _list = assoc_of_yojson tree path in let _res : deauthorize_connection_response = { last_authorized_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastAuthorizedTime") _list path; last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; } in _res let = fun tree path : deauthorize_connection_request -> let _list = assoc_of_yojson tree path in let _res : deauthorize_connection_request = { name = value_for_key (connection_name_of_yojson) "Name" _list path; } in _res let deactivate_event_source_request_of_yojson = fun tree path : deactivate_event_source_request -> let _list = assoc_of_yojson tree path in let _res : deactivate_event_source_request = { name = value_for_key (event_source_name_of_yojson) "Name" _list path; } in _res let create_partner_event_source_response_of_yojson = fun tree path : create_partner_event_source_response -> let _list = assoc_of_yojson tree path in let _res : create_partner_event_source_response = { event_source_arn = option_of_yojson (value_for_key (string__of_yojson) "EventSourceArn") _list path; } in _res let create_partner_event_source_request_of_yojson = fun tree path : create_partner_event_source_request -> let _list = assoc_of_yojson tree path in let _res : create_partner_event_source_request = { account = value_for_key (account_id_of_yojson) "Account" _list path; name = value_for_key (event_source_name_of_yojson) "Name" _list path; } in _res let create_event_bus_response_of_yojson = fun tree path : create_event_bus_response -> let _list = assoc_of_yojson tree path in let _res : create_event_bus_response = { dead_letter_config = option_of_yojson (value_for_key (dead_letter_config_of_yojson) "DeadLetterConfig") _list path; kms_key_identifier = option_of_yojson (value_for_key (kms_key_identifier_of_yojson) "KmsKeyIdentifier") _list path; description = option_of_yojson (value_for_key (event_bus_description_of_yojson) "Description") _list path; event_bus_arn = option_of_yojson (value_for_key (string__of_yojson) "EventBusArn") _list path; } in _res let create_event_bus_request_of_yojson = fun tree path : create_event_bus_request -> let _list = assoc_of_yojson tree path in let _res : create_event_bus_request = { tags = option_of_yojson (value_for_key (tag_list_of_yojson) "Tags") _list path; dead_letter_config = option_of_yojson (value_for_key (dead_letter_config_of_yojson) "DeadLetterConfig") _list path; kms_key_identifier = option_of_yojson (value_for_key (kms_key_identifier_of_yojson) "KmsKeyIdentifier") _list path; description = option_of_yojson (value_for_key (event_bus_description_of_yojson) "Description") _list path; event_source_name = option_of_yojson (value_for_key (event_source_name_of_yojson) "EventSourceName") _list path; name = value_for_key (event_bus_name_of_yojson) "Name" _list path; } in _res let create_endpoint_response_of_yojson = fun tree path : create_endpoint_response -> let _list = assoc_of_yojson tree path in let _res : create_endpoint_response = { state = option_of_yojson (value_for_key (endpoint_state_of_yojson) "State") _list path; role_arn = option_of_yojson (value_for_key (iam_role_arn_of_yojson) "RoleArn") _list path; event_buses = option_of_yojson (value_for_key (endpoint_event_bus_list_of_yojson) "EventBuses") _list path; replication_config = option_of_yojson (value_for_key (replication_config_of_yojson) "ReplicationConfig") _list path; routing_config = option_of_yojson (value_for_key (routing_config_of_yojson) "RoutingConfig") _list path; arn = option_of_yojson (value_for_key (endpoint_arn_of_yojson) "Arn") _list path; name = option_of_yojson (value_for_key (endpoint_name_of_yojson) "Name") _list path; } in _res let create_endpoint_request_of_yojson = fun tree path : create_endpoint_request -> let _list = assoc_of_yojson tree path in let _res : create_endpoint_request = { role_arn = option_of_yojson (value_for_key (iam_role_arn_of_yojson) "RoleArn") _list path; event_buses = value_for_key (endpoint_event_bus_list_of_yojson) "EventBuses" _list path; replication_config = option_of_yojson (value_for_key (replication_config_of_yojson) "ReplicationConfig") _list path; routing_config = value_for_key (routing_config_of_yojson) "RoutingConfig" _list path; description = option_of_yojson (value_for_key (endpoint_description_of_yojson) "Description") _list path; name = value_for_key (endpoint_name_of_yojson) "Name" _list path; } in _res let create_connection_response_of_yojson = fun tree path : create_connection_response -> let _list = assoc_of_yojson tree path in let _res : create_connection_response = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; connection_state = option_of_yojson (value_for_key (connection_state_of_yojson) "ConnectionState") _list path; connection_arn = option_of_yojson (value_for_key (connection_arn_of_yojson) "ConnectionArn") _list path; } in _res let create_connection_basic_auth_request_parameters_of_yojson = fun tree path : create_connection_basic_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : create_connection_basic_auth_request_parameters = { password = value_for_key (auth_header_parameters_sensitive_of_yojson) "Password" _list path; username = value_for_key (auth_header_parameters_of_yojson) "Username" _list path; } in _res let create_connection_o_auth_client_request_parameters_of_yojson = fun tree path : create_connection_o_auth_client_request_parameters -> let _list = assoc_of_yojson tree path in let _res : create_connection_o_auth_client_request_parameters = { client_secret = value_for_key (auth_header_parameters_sensitive_of_yojson) "ClientSecret" _list path; client_i_d = value_for_key (auth_header_parameters_of_yojson) "ClientID" _list path; } in _res let create_connection_o_auth_request_parameters_of_yojson = fun tree path : create_connection_o_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : create_connection_o_auth_request_parameters = { o_auth_http_parameters = option_of_yojson (value_for_key (connection_http_parameters_of_yojson) "OAuthHttpParameters") _list path; http_method = value_for_key (connection_o_auth_http_method_of_yojson) "HttpMethod" _list path; authorization_endpoint = value_for_key (https_endpoint_of_yojson) "AuthorizationEndpoint" _list path; client_parameters = value_for_key (create_connection_o_auth_client_request_parameters_of_yojson) "ClientParameters" _list path; } in _res let create_connection_api_key_auth_request_parameters_of_yojson = fun tree path : create_connection_api_key_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : create_connection_api_key_auth_request_parameters = { api_key_value = value_for_key (auth_header_parameters_sensitive_of_yojson) "ApiKeyValue" _list path; api_key_name = value_for_key (auth_header_parameters_of_yojson) "ApiKeyName" _list path; } in _res let create_connection_auth_request_parameters_of_yojson = fun tree path : create_connection_auth_request_parameters -> let _list = assoc_of_yojson tree path in let _res : create_connection_auth_request_parameters = { invocation_http_parameters = option_of_yojson (value_for_key (connection_http_parameters_of_yojson) "InvocationHttpParameters") _list path; api_key_auth_parameters = option_of_yojson (value_for_key (create_connection_api_key_auth_request_parameters_of_yojson) "ApiKeyAuthParameters") _list path; o_auth_parameters = option_of_yojson (value_for_key (create_connection_o_auth_request_parameters_of_yojson) "OAuthParameters") _list path; basic_auth_parameters = option_of_yojson (value_for_key (create_connection_basic_auth_request_parameters_of_yojson) "BasicAuthParameters") _list path; } in _res let create_connection_request_of_yojson = fun tree path : create_connection_request -> let _list = assoc_of_yojson tree path in let _res : create_connection_request = { auth_parameters = value_for_key (create_connection_auth_request_parameters_of_yojson) "AuthParameters" _list path; authorization_type = value_for_key (connection_authorization_type_of_yojson) "AuthorizationType" _list path; description = option_of_yojson (value_for_key (connection_description_of_yojson) "Description") _list path; name = value_for_key (connection_name_of_yojson) "Name" _list path; } in _res let create_archive_response_of_yojson = fun tree path : create_archive_response -> let _list = assoc_of_yojson tree path in let _res : create_archive_response = { creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; state_reason = option_of_yojson (value_for_key (archive_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (archive_state_of_yojson) "State") _list path; archive_arn = option_of_yojson (value_for_key (archive_arn_of_yojson) "ArchiveArn") _list path; } in _res let create_archive_request_of_yojson = fun tree path : create_archive_request -> let _list = assoc_of_yojson tree path in let _res : create_archive_request = { retention_days = option_of_yojson (value_for_key (retention_days_of_yojson) "RetentionDays") _list path; event_pattern = option_of_yojson (value_for_key (event_pattern_of_yojson) "EventPattern") _list path; description = option_of_yojson (value_for_key (archive_description_of_yojson) "Description") _list path; event_source_arn = value_for_key (arn_of_yojson) "EventSourceArn" _list path; archive_name = value_for_key (archive_name_of_yojson) "ArchiveName" _list path; } in _res let create_api_destination_response_of_yojson = fun tree path : create_api_destination_response -> let _list = assoc_of_yojson tree path in let _res : create_api_destination_response = { last_modified_time = option_of_yojson (value_for_key (timestamp__of_yojson) "LastModifiedTime") _list path; creation_time = option_of_yojson (value_for_key (timestamp__of_yojson) "CreationTime") _list path; api_destination_state = option_of_yojson (value_for_key (api_destination_state_of_yojson) "ApiDestinationState") _list path; api_destination_arn = option_of_yojson (value_for_key (api_destination_arn_of_yojson) "ApiDestinationArn") _list path; } in _res let create_api_destination_request_of_yojson = fun tree path : create_api_destination_request -> let _list = assoc_of_yojson tree path in let _res : create_api_destination_request = { invocation_rate_limit_per_second = option_of_yojson (value_for_key (api_destination_invocation_rate_limit_per_second_of_yojson) "InvocationRateLimitPerSecond") _list path; http_method = value_for_key (api_destination_http_method_of_yojson) "HttpMethod" _list path; invocation_endpoint = value_for_key (https_endpoint_of_yojson) "InvocationEndpoint" _list path; connection_arn = value_for_key (connection_arn_of_yojson) "ConnectionArn" _list path; description = option_of_yojson (value_for_key (api_destination_description_of_yojson) "Description") _list path; name = value_for_key (api_destination_name_of_yojson) "Name" _list path; } in _res let cancel_replay_response_of_yojson = fun tree path : cancel_replay_response -> let _list = assoc_of_yojson tree path in let _res : cancel_replay_response = { state_reason = option_of_yojson (value_for_key (replay_state_reason_of_yojson) "StateReason") _list path; state = option_of_yojson (value_for_key (replay_state_of_yojson) "State") _list path; replay_arn = option_of_yojson (value_for_key (replay_arn_of_yojson) "ReplayArn") _list path; } in _res let cancel_replay_request_of_yojson = fun tree path : cancel_replay_request -> let _list = assoc_of_yojson tree path in let _res : cancel_replay_request = { replay_name = value_for_key (replay_name_of_yojson) "ReplayName" _list path; } in _res let activate_event_source_request_of_yojson = fun tree path : activate_event_source_request -> let _list = assoc_of_yojson tree path in let _res : activate_event_source_request = { name = value_for_key (event_source_name_of_yojson) "Name" _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)"
>