1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
#[allow(warnings)]
        use hyper::Client;
        use hyper::status::StatusCode;
        use rusoto_core::request::DispatchSignedRequest;
        use rusoto_core::region;

        use std::fmt;
        use std::error::Error;
        use rusoto_core::request::HttpDispatchError;
        use rusoto_core::credential::{CredentialsError, ProvideAwsCredentials};
    
use serde_json;
        use rusoto_core::signature::SignedRequest;
        use serde_json::Value as SerdeJsonValue;
        use serde_json::from_str;
pub type AccessUrl = String;
#[derive(Default,Debug,Clone,Serialize)]
            pub struct AddIpRoutesRequest {
                #[doc="<p>Identifier (ID) of the directory to which to add the address block.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>IP address blocks, using CIDR format, of the traffic to route. This is often the IP address block of the DNS server used for your on-premises domain.</p>"]
#[serde(rename="IpRoutes")]
pub ip_routes: IpRoutes,
#[doc="<p>If set to true, updates the inbound and outbound rules of the security group that has the description: \"AWS created security group for <i>directory ID</i> directory controllers.\" Following are the new rules: </p> <p>Inbound:</p> <ul> <li> <p>Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0</p> </li> <li> <p>Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0</p> </li> <li> <p>Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0</p> </li> <li> <p>Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0</p> </li> <li> <p>Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0</p> </li> <li> <p>Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0</p> </li> </ul> <p/> <p>Outbound:</p> <ul> <li> <p>Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0</p> </li> </ul> <p>These security rules impact an internal network interface that is not exposed publicly.</p>"]
#[serde(rename="UpdateSecurityGroupForDirectoryControllers")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub update_security_group_for_directory_controllers: Option<UpdateSecurityGroupForDirectoryControllers>,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct AddIpRoutesResult;
            
#[derive(Default,Debug,Clone,Serialize)]
            pub struct AddTagsToResourceRequest {
                #[doc="<p>Identifier (ID) for the directory to which to add the tag.</p>"]
#[serde(rename="ResourceId")]
pub resource_id: ResourceId,
#[doc="<p>The tags to be assigned to the directory.</p>"]
#[serde(rename="Tags")]
pub tags: Tags,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct AddTagsToResourceResult;
            
pub type AddedDateTime = f64;
pub type AliasName = String;
#[doc="<p>Represents a named directory attribute.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
            pub struct Attribute {
                #[doc="<p>The name of the attribute.</p>"]
#[serde(rename="Name")]
pub name: Option<AttributeName>,
#[doc="<p>The value of the attribute.</p>"]
#[serde(rename="Value")]
pub value: Option<AttributeValue>,
            }
            
pub type AttributeName = String;
pub type AttributeValue = String;
pub type Attributes = Vec<Attribute>;
pub type AvailabilityZone = String;
pub type AvailabilityZones = Vec<AvailabilityZone>;
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CancelSchemaExtensionRequest {
                #[doc="<p>The identifier of the directory whose schema extension will be canceled.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The identifier of the schema extension that will be canceled.</p>"]
#[serde(rename="SchemaExtensionId")]
pub schema_extension_id: SchemaExtensionId,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CancelSchemaExtensionResult;
            
pub type CidrIp = String;
pub type CidrIps = Vec<CidrIp>;
pub type CloudOnlyDirectoriesLimitReached = bool;
#[doc="<p>Contains information about a computer account in a directory.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct Computer {
                #[doc="<p>An array of <a>Attribute</a> objects containing the LDAP attributes that belong to the computer account.</p>"]
#[serde(rename="ComputerAttributes")]
pub computer_attributes: Option<Attributes>,
#[doc="<p>The identifier of the computer.</p>"]
#[serde(rename="ComputerId")]
pub computer_id: Option<SID>,
#[doc="<p>The computer name.</p>"]
#[serde(rename="ComputerName")]
pub computer_name: Option<ComputerName>,
            }
            
pub type ComputerName = String;
pub type ComputerPassword = String;
#[doc="<p>Points to a remote domain with which you are setting up a trust relationship. Conditional forwarders are required in order to set up a trust relationship with another domain.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct ConditionalForwarder {
                #[doc="<p>The IP addresses of the remote DNS server associated with RemoteDomainName. This is the IP address of the DNS server that your conditional forwarder points to.</p>"]
#[serde(rename="DnsIpAddrs")]
pub dns_ip_addrs: Option<DnsIpAddrs>,
#[doc="<p>The fully qualified domain name (FQDN) of the remote domains pointed to by the conditional forwarder.</p>"]
#[serde(rename="RemoteDomainName")]
pub remote_domain_name: Option<RemoteDomainName>,
#[doc="<p>The replication scope of the conditional forwarder. The only allowed value is <code>Domain</code>, which will replicate the conditional forwarder to all of the domain controllers for your AWS directory.</p>"]
#[serde(rename="ReplicationScope")]
pub replication_scope: Option<ReplicationScope>,
            }
            
pub type ConditionalForwarders = Vec<ConditionalForwarder>;
#[doc="<p>Contains the inputs for the <a>ConnectDirectory</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct ConnectDirectoryRequest {
                #[doc="<p>A <a>DirectoryConnectSettings</a> object that contains additional information for the operation.</p>"]
#[serde(rename="ConnectSettings")]
pub connect_settings: DirectoryConnectSettings,
#[doc="<p>A textual description for the directory.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
#[doc="<p>The fully-qualified name of the on-premises directory, such as <code>corp.example.com</code>.</p>"]
#[serde(rename="Name")]
pub name: DirectoryName,
#[doc="<p>The password for the on-premises user account.</p>"]
#[serde(rename="Password")]
pub password: ConnectPassword,
#[doc="<p>The NetBIOS name of the on-premises directory, such as <code>CORP</code>.</p>"]
#[serde(rename="ShortName")]
pub short_name: Option<DirectoryShortName>,
#[doc="<p>The size of the directory.</p>"]
#[serde(rename="Size")]
pub size: DirectorySize,
            }
            
#[doc="<p>Contains the results of the <a>ConnectDirectory</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct ConnectDirectoryResult {
                #[doc="<p>The identifier of the new directory.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
            }
            
pub type ConnectPassword = String;
pub type ConnectedDirectoriesLimitReached = bool;
#[doc="<p>Contains the inputs for the <a>CreateAlias</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateAliasRequest {
                #[doc="<p>The requested alias.</p> <p>The alias must be unique amongst all aliases in AWS. This operation throws an <code>EntityAlreadyExistsException</code> error if the alias already exists.</p>"]
#[serde(rename="Alias")]
pub alias: AliasName,
#[doc="<p>The identifier of the directory for which to create the alias.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
            }
            
#[doc="<p>Contains the results of the <a>CreateAlias</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateAliasResult {
                #[doc="<p>The alias for the directory.</p>"]
#[serde(rename="Alias")]
pub alias: Option<AliasName>,
#[doc="<p>The identifier of the directory.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
            }
            
#[doc="<p>Contains the inputs for the <a>CreateComputer</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateComputerRequest {
                #[doc="<p>An array of <a>Attribute</a> objects that contain any LDAP attributes to apply to the computer account.</p>"]
#[serde(rename="ComputerAttributes")]
pub computer_attributes: Option<Attributes>,
#[doc="<p>The name of the computer account.</p>"]
#[serde(rename="ComputerName")]
pub computer_name: ComputerName,
#[doc="<p>The identifier of the directory in which to create the computer account.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The fully-qualified distinguished name of the organizational unit to place the computer account in.</p>"]
#[serde(rename="OrganizationalUnitDistinguishedName")]
pub organizational_unit_distinguished_name: Option<OrganizationalUnitDN>,
#[doc="<p>A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.</p>"]
#[serde(rename="Password")]
pub password: ComputerPassword,
            }
            
#[doc="<p>Contains the results for the <a>CreateComputer</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateComputerResult {
                #[doc="<p>A <a>Computer</a> object that represents the computer account.</p>"]
#[serde(rename="Computer")]
pub computer: Option<Computer>,
            }
            
#[doc="<p>Initiates the creation of a conditional forwarder for your AWS Directory Service for Microsoft Active Directory. Conditional forwarders are required in order to set up a trust relationship with another domain.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateConditionalForwarderRequest {
                #[doc="<p>The directory ID of the AWS directory for which you are creating the conditional forwarder.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The IP addresses of the remote DNS server associated with RemoteDomainName.</p>"]
#[serde(rename="DnsIpAddrs")]
pub dns_ip_addrs: DnsIpAddrs,
#[doc="<p>The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.</p>"]
#[serde(rename="RemoteDomainName")]
pub remote_domain_name: RemoteDomainName,
            }
            
#[doc="<p>The result of a CreateConditinalForwarder request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateConditionalForwarderResult;
            
#[doc="<p>Contains the inputs for the <a>CreateDirectory</a> operation. </p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateDirectoryRequest {
                #[doc="<p>A textual description for the directory.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
#[doc="<p>The fully qualified name for the directory, such as <code>corp.example.com</code>.</p>"]
#[serde(rename="Name")]
pub name: DirectoryName,
#[doc="<p>The password for the directory administrator. The directory creation process creates a directory administrator account with the username <code>Administrator</code> and this password.</p>"]
#[serde(rename="Password")]
pub password: Password,
#[doc="<p>The short name of the directory, such as <code>CORP</code>.</p>"]
#[serde(rename="ShortName")]
pub short_name: Option<DirectoryShortName>,
#[doc="<p>The size of the directory.</p>"]
#[serde(rename="Size")]
pub size: DirectorySize,
#[doc="<p>A <a>DirectoryVpcSettings</a> object that contains additional information for the operation.</p>"]
#[serde(rename="VpcSettings")]
pub vpc_settings: Option<DirectoryVpcSettings>,
            }
            
#[doc="<p>Contains the results of the <a>CreateDirectory</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateDirectoryResult {
                #[doc="<p>The identifier of the directory that was created.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
            }
            
#[doc="<p>Creates a Microsoft AD in the AWS cloud.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateMicrosoftADRequest {
                #[doc="<p>A textual description for the directory. This label will appear on the AWS console <code>Directory Details</code> page after the directory is created.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
#[doc="<p>The fully qualified domain name for the directory, such as <code>corp.example.com</code>. This name will resolve inside your VPC only. It does not need to be publicly resolvable.</p>"]
#[serde(rename="Name")]
pub name: DirectoryName,
#[doc="<p>The password for the default administrative user named <code>Admin</code>.</p>"]
#[serde(rename="Password")]
pub password: Password,
#[doc="<p>The NetBIOS name for your domain. A short identifier for your domain, such as <code>CORP</code>. If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, <code>CORP</code> for the directory DNS <code>corp.example.com</code>. </p>"]
#[serde(rename="ShortName")]
pub short_name: Option<DirectoryShortName>,
#[serde(rename="VpcSettings")]
pub vpc_settings: DirectoryVpcSettings,
            }
            
#[doc="<p>Result of a CreateMicrosoftAD request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateMicrosoftADResult {
                #[doc="<p>The identifier of the directory that was created.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
            }
            
pub type CreateSnapshotBeforeSchemaExtension = bool;
#[doc="<p>Contains the inputs for the <a>CreateSnapshot</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateSnapshotRequest {
                #[doc="<p>The identifier of the directory of which to take a snapshot.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The descriptive name to apply to the snapshot.</p>"]
#[serde(rename="Name")]
pub name: Option<SnapshotName>,
            }
            
#[doc="<p>Contains the results of the <a>CreateSnapshot</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateSnapshotResult {
                #[doc="<p>The identifier of the snapshot that was created.</p>"]
#[serde(rename="SnapshotId")]
pub snapshot_id: Option<SnapshotId>,
            }
            
#[doc="<p>AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.</p> <p>This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct CreateTrustRequest {
                #[doc="<p>The IP addresses of the remote DNS server associated with RemoteDomainName.</p>"]
#[serde(rename="ConditionalForwarderIpAddrs")]
pub conditional_forwarder_ip_addrs: Option<DnsIpAddrs>,
#[doc="<p>The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.</p>"]
#[serde(rename="RemoteDomainName")]
pub remote_domain_name: RemoteDomainName,
#[doc="<p>The direction of the trust relationship.</p>"]
#[serde(rename="TrustDirection")]
pub trust_direction: TrustDirection,
#[doc="<p>The trust password. The must be the same password that was used when creating the trust relationship on the external domain.</p>"]
#[serde(rename="TrustPassword")]
pub trust_password: TrustPassword,
#[doc="<p>The trust relationship type.</p>"]
#[serde(rename="TrustType")]
pub trust_type: Option<TrustType>,
            }
            
#[doc="<p>The result of a CreateTrust request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct CreateTrustResult {
                #[doc="<p>A unique identifier for the trust relationship that was created.</p>"]
#[serde(rename="TrustId")]
pub trust_id: Option<TrustId>,
            }
            
pub type CreatedDateTime = f64;
pub type DeleteAssociatedConditionalForwarder = bool;
#[doc="<p>Deletes a conditional forwarder.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DeleteConditionalForwarderRequest {
                #[doc="<p>The directory ID for which you are deleting the conditional forwarder.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The fully qualified domain name (FQDN) of the remote domain with which you are deleting the conditional forwarder.</p>"]
#[serde(rename="RemoteDomainName")]
pub remote_domain_name: RemoteDomainName,
            }
            
#[doc="<p>The result of a DeleteConditionalForwarder request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DeleteConditionalForwarderResult;
            
#[doc="<p>Contains the inputs for the <a>DeleteDirectory</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DeleteDirectoryRequest {
                #[doc="<p>The identifier of the directory to delete.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
            }
            
#[doc="<p>Contains the results of the <a>DeleteDirectory</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DeleteDirectoryResult {
                #[doc="<p>The directory identifier.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
            }
            
#[doc="<p>Contains the inputs for the <a>DeleteSnapshot</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DeleteSnapshotRequest {
                #[doc="<p>The identifier of the directory snapshot to be deleted.</p>"]
#[serde(rename="SnapshotId")]
pub snapshot_id: SnapshotId,
            }
            
#[doc="<p>Contains the results of the <a>DeleteSnapshot</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DeleteSnapshotResult {
                #[doc="<p>The identifier of the directory snapshot that was deleted.</p>"]
#[serde(rename="SnapshotId")]
pub snapshot_id: Option<SnapshotId>,
            }
            
#[doc="<p>Deletes the local side of an existing trust relationship between the Microsoft AD in the AWS cloud and the external domain.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DeleteTrustRequest {
                #[doc="<p>Delete a conditional forwarder as part of a DeleteTrustRequest.</p>"]
#[serde(rename="DeleteAssociatedConditionalForwarder")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub delete_associated_conditional_forwarder: Option<DeleteAssociatedConditionalForwarder>,
#[doc="<p>The Trust ID of the trust relationship to be deleted.</p>"]
#[serde(rename="TrustId")]
pub trust_id: TrustId,
            }
            
#[doc="<p>The result of a DeleteTrust request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DeleteTrustResult {
                #[doc="<p>The Trust ID of the trust relationship that was deleted.</p>"]
#[serde(rename="TrustId")]
pub trust_id: Option<TrustId>,
            }
            
#[doc="<p>Removes the specified directory as a publisher to the specified SNS topic.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DeregisterEventTopicRequest {
                #[doc="<p>The Directory ID to remove as a publisher. This directory will no longer send messages to the specified SNS topic.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The name of the SNS topic from which to remove the directory as a publisher.</p>"]
#[serde(rename="TopicName")]
pub topic_name: TopicName,
            }
            
#[doc="<p>The result of a DeregisterEventTopic request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DeregisterEventTopicResult;
            
#[doc="<p>Describes a conditional forwarder.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DescribeConditionalForwardersRequest {
                #[doc="<p>The directory ID for which to get the list of associated conditional forwarders.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The fully qualified domain names (FQDN) of the remote domains for which to get the list of associated conditional forwarders. If this member is null, all conditional forwarders are returned.</p>"]
#[serde(rename="RemoteDomainNames")]
pub remote_domain_names: Option<RemoteDomainNames>,
            }
            
#[doc="<p>The result of a DescribeConditionalForwarder request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DescribeConditionalForwardersResult {
                #[doc="<p>The list of conditional forwarders that have been created.</p>"]
#[serde(rename="ConditionalForwarders")]
pub conditional_forwarders: Option<ConditionalForwarders>,
            }
            
#[doc="<p>Contains the inputs for the <a>DescribeDirectories</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DescribeDirectoriesRequest {
                #[doc="<p>A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.</p> <p>An empty list results in an <code>InvalidParameterException</code> being thrown.</p>"]
#[serde(rename="DirectoryIds")]
pub directory_ids: Option<DirectoryIds>,
#[doc="<p>The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.</p>"]
#[serde(rename="Limit")]
pub limit: Option<Limit>,
#[doc="<p>The <i>DescribeDirectoriesResult.NextToken</i> value from a previous call to <a>DescribeDirectories</a>. Pass null if this is the first call.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
            }
            
#[doc="<p>Contains the results of the <a>DescribeDirectories</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DescribeDirectoriesResult {
                #[doc="<p>The list of <a>DirectoryDescription</a> objects that were retrieved.</p> <p>It is possible that this list contains less than the number of items specified in the <i>Limit</i> member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.</p>"]
#[serde(rename="DirectoryDescriptions")]
pub directory_descriptions: Option<DirectoryDescriptions>,
#[doc="<p>If not null, more results are available. Pass this value for the <i>NextToken</i> parameter in a subsequent call to <a>DescribeDirectories</a> to retrieve the next set of items.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
            }
            
#[doc="<p>Describes event topics.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DescribeEventTopicsRequest {
                #[doc="<p>The Directory ID for which to get the list of associated SNS topics. If this member is null, associations for all Directory IDs are returned.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>A list of SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.</p> <p>An empty list results in an <code>InvalidParameterException</code> being thrown.</p>"]
#[serde(rename="TopicNames")]
pub topic_names: Option<TopicNames>,
            }
            
#[doc="<p>The result of a DescribeEventTopic request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DescribeEventTopicsResult {
                #[doc="<p>A list of SNS topic names that receive status messages from the specified Directory ID.</p>"]
#[serde(rename="EventTopics")]
pub event_topics: Option<EventTopics>,
            }
            
#[doc="<p>Contains the inputs for the <a>DescribeSnapshots</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DescribeSnapshotsRequest {
                #[doc="<p>The identifier of the directory for which to retrieve snapshot information.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The maximum number of objects to return.</p>"]
#[serde(rename="Limit")]
pub limit: Option<Limit>,
#[doc="<p>The <i>DescribeSnapshotsResult.NextToken</i> value from a previous call to <a>DescribeSnapshots</a>. Pass null if this is the first call.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the <i>Limit</i> and <i>NextToken</i> members.</p>"]
#[serde(rename="SnapshotIds")]
pub snapshot_ids: Option<SnapshotIds>,
            }
            
#[doc="<p>Contains the results of the <a>DescribeSnapshots</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DescribeSnapshotsResult {
                #[doc="<p>If not null, more results are available. Pass this value in the <i>NextToken</i> member of a subsequent call to <a>DescribeSnapshots</a>.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>The list of <a>Snapshot</a> objects that were retrieved.</p> <p>It is possible that this list contains less than the number of items specified in the <i>Limit</i> member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.</p>"]
#[serde(rename="Snapshots")]
pub snapshots: Option<Snapshots>,
            }
            
#[doc="<p>Describes the trust relationships for a particular Microsoft AD in the AWS cloud. If no input parameters are are provided, such as directory ID or trust ID, this request describes all the trust relationships.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DescribeTrustsRequest {
                #[doc="<p>The Directory ID of the AWS directory that is a part of the requested trust relationship.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The maximum number of objects to return.</p>"]
#[serde(rename="Limit")]
pub limit: Option<Limit>,
#[doc="<p>The <i>DescribeTrustsResult.NextToken</i> value from a previous call to <a>DescribeTrusts</a>. Pass null if this is the first call.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.</p> <p>An empty list results in an <code>InvalidParameterException</code> being thrown.</p>"]
#[serde(rename="TrustIds")]
pub trust_ids: Option<TrustIds>,
            }
            
#[doc="<p>The result of a DescribeTrust request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DescribeTrustsResult {
                #[doc="<p>If not null, more results are available. Pass this value for the <i>NextToken</i> parameter in a subsequent call to <a>DescribeTrusts</a> to retrieve the next set of items.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>The list of Trust objects that were retrieved.</p> <p>It is possible that this list contains less than the number of items specified in the <i>Limit</i> member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.</p>"]
#[serde(rename="Trusts")]
pub trusts: Option<Trusts>,
            }
            
pub type Description = String;
#[doc="<p>Contains information for the <a>ConnectDirectory</a> operation when an AD Connector directory is being created.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DirectoryConnectSettings {
                #[doc="<p>A list of one or more IP addresses of DNS servers or domain controllers in the on-premises directory.</p>"]
#[serde(rename="CustomerDnsIps")]
pub customer_dns_ips: DnsIpAddrs,
#[doc="<p>The username of an account in the on-premises directory that is used to connect to the directory. This account must have the following privileges:</p> <ul> <li> <p>Read users and groups</p> </li> <li> <p>Create computer objects</p> </li> <li> <p>Join computers to the domain</p> </li> </ul>"]
#[serde(rename="CustomerUserName")]
pub customer_user_name: UserName,
#[doc="<p>A list of subnet identifiers in the VPC in which the AD Connector is created.</p>"]
#[serde(rename="SubnetIds")]
pub subnet_ids: SubnetIds,
#[doc="<p>The identifier of the VPC in which the AD Connector is created.</p>"]
#[serde(rename="VpcId")]
pub vpc_id: VpcId,
            }
            
#[doc="<p>Contains information about an AD Connector directory.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DirectoryConnectSettingsDescription {
                #[doc="<p>A list of the Availability Zones that the directory is in.</p>"]
#[serde(rename="AvailabilityZones")]
pub availability_zones: Option<AvailabilityZones>,
#[doc="<p>The IP addresses of the AD Connector servers.</p>"]
#[serde(rename="ConnectIps")]
pub connect_ips: Option<IpAddrs>,
#[doc="<p>The username of the service account in the on-premises directory.</p>"]
#[serde(rename="CustomerUserName")]
pub customer_user_name: Option<UserName>,
#[doc="<p>The security group identifier for the AD Connector directory.</p>"]
#[serde(rename="SecurityGroupId")]
pub security_group_id: Option<SecurityGroupId>,
#[doc="<p>A list of subnet identifiers in the VPC that the AD connector is in.</p>"]
#[serde(rename="SubnetIds")]
pub subnet_ids: Option<SubnetIds>,
#[doc="<p>The identifier of the VPC that the AD Connector is in.</p>"]
#[serde(rename="VpcId")]
pub vpc_id: Option<VpcId>,
            }
            
#[doc="<p>Contains information about an AWS Directory Service directory.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DirectoryDescription {
                #[doc="<p>The access URL for the directory, such as <code>http://&lt;alias&gt;.awsapps.com</code>. If no alias has been created for the directory, <code>&lt;alias&gt;</code> is the directory identifier, such as <code>d-XXXXXXXXXX</code>.</p>"]
#[serde(rename="AccessUrl")]
pub access_url: Option<AccessUrl>,
#[doc="<p>The alias for the directory. If no alias has been created for the directory, the alias is the directory identifier, such as <code>d-XXXXXXXXXX</code>.</p>"]
#[serde(rename="Alias")]
pub alias: Option<AliasName>,
#[doc="<p>A <a>DirectoryConnectSettingsDescription</a> object that contains additional information about an AD Connector directory. This member is only present if the directory is an AD Connector directory.</p>"]
#[serde(rename="ConnectSettings")]
pub connect_settings: Option<DirectoryConnectSettingsDescription>,
#[doc="<p>The textual description for the directory.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
#[doc="<p>The directory identifier.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The IP addresses of the DNS servers for the directory. For a Simple AD or Microsoft AD directory, these are the IP addresses of the Simple AD or Microsoft AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in the on-premises directory to which the AD Connector is connected.</p>"]
#[serde(rename="DnsIpAddrs")]
pub dns_ip_addrs: Option<DnsIpAddrs>,
#[doc="<p>Specifies when the directory was created.</p>"]
#[serde(rename="LaunchTime")]
pub launch_time: Option<LaunchTime>,
#[doc="<p>The fully-qualified name of the directory.</p>"]
#[serde(rename="Name")]
pub name: Option<DirectoryName>,
#[doc="<p>A <a>RadiusSettings</a> object that contains information about the RADIUS server configured for this directory.</p>"]
#[serde(rename="RadiusSettings")]
pub radius_settings: Option<RadiusSettings>,
#[doc="<p>The status of the RADIUS MFA server connection.</p>"]
#[serde(rename="RadiusStatus")]
pub radius_status: Option<RadiusStatus>,
#[doc="<p>The short name of the directory.</p>"]
#[serde(rename="ShortName")]
pub short_name: Option<DirectoryShortName>,
#[doc="<p>The directory size.</p>"]
#[serde(rename="Size")]
pub size: Option<DirectorySize>,
#[doc="<p>Indicates if single-sign on is enabled for the directory. For more information, see <a>EnableSso</a> and <a>DisableSso</a>.</p>"]
#[serde(rename="SsoEnabled")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub sso_enabled: Option<SsoEnabled>,
#[doc="<p>The current stage of the directory.</p>"]
#[serde(rename="Stage")]
pub stage: Option<DirectoryStage>,
#[doc="<p>The date and time that the stage was last updated.</p>"]
#[serde(rename="StageLastUpdatedDateTime")]
pub stage_last_updated_date_time: Option<LastUpdatedDateTime>,
#[doc="<p>Additional information about the directory stage.</p>"]
#[serde(rename="StageReason")]
pub stage_reason: Option<StageReason>,
#[doc="<p>The directory size.</p>"]
#[serde(rename="Type")]
pub type_: Option<DirectoryType>,
#[doc="<p>A <a>DirectoryVpcSettingsDescription</a> object that contains additional information about a directory. This member is only present if the directory is a Simple AD or Managed AD directory.</p>"]
#[serde(rename="VpcSettings")]
pub vpc_settings: Option<DirectoryVpcSettingsDescription>,
            }
            
#[doc="<p>A list of directory descriptions.</p>"]
pub type DirectoryDescriptions = Vec<DirectoryDescription>;
pub type DirectoryId = String;
#[doc="<p>A list of directory identifiers.</p>"]
pub type DirectoryIds = Vec<DirectoryId>;
#[doc="<p>Contains directory limit information for a region.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DirectoryLimits {
                #[doc="<p>The current number of cloud directories in the region.</p>"]
#[serde(rename="CloudOnlyDirectoriesCurrentCount")]
pub cloud_only_directories_current_count: Option<Limit>,
#[doc="<p>The maximum number of cloud directories allowed in the region.</p>"]
#[serde(rename="CloudOnlyDirectoriesLimit")]
pub cloud_only_directories_limit: Option<Limit>,
#[doc="<p>Indicates if the cloud directory limit has been reached.</p>"]
#[serde(rename="CloudOnlyDirectoriesLimitReached")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub cloud_only_directories_limit_reached: Option<CloudOnlyDirectoriesLimitReached>,
#[doc="<p>The current number of Microsoft AD directories in the region.</p>"]
#[serde(rename="CloudOnlyMicrosoftADCurrentCount")]
pub cloud_only_microsoft_ad_current_count: Option<Limit>,
#[doc="<p>The maximum number of Microsoft AD directories allowed in the region.</p>"]
#[serde(rename="CloudOnlyMicrosoftADLimit")]
pub cloud_only_microsoft_ad_limit: Option<Limit>,
#[doc="<p>Indicates if the Microsoft AD directory limit has been reached.</p>"]
#[serde(rename="CloudOnlyMicrosoftADLimitReached")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub cloud_only_microsoft_ad_limit_reached: Option<CloudOnlyDirectoriesLimitReached>,
#[doc="<p>The current number of connected directories in the region.</p>"]
#[serde(rename="ConnectedDirectoriesCurrentCount")]
pub connected_directories_current_count: Option<Limit>,
#[doc="<p>The maximum number of connected directories allowed in the region.</p>"]
#[serde(rename="ConnectedDirectoriesLimit")]
pub connected_directories_limit: Option<Limit>,
#[doc="<p>Indicates if the connected directory limit has been reached.</p>"]
#[serde(rename="ConnectedDirectoriesLimitReached")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub connected_directories_limit_reached: Option<ConnectedDirectoriesLimitReached>,
            }
            
pub type DirectoryName = String;
pub type DirectoryShortName = String;
pub type DirectorySize = String;
pub type DirectoryStage = String;
pub type DirectoryType = String;
#[doc="<p>Contains VPC information for the <a>CreateDirectory</a> or <a>CreateMicrosoftAD</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DirectoryVpcSettings {
                #[doc="<p>The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.</p>"]
#[serde(rename="SubnetIds")]
pub subnet_ids: SubnetIds,
#[doc="<p>The identifier of the VPC in which to create the directory.</p>"]
#[serde(rename="VpcId")]
pub vpc_id: VpcId,
            }
            
#[doc="<p>Contains information about the directory.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DirectoryVpcSettingsDescription {
                #[doc="<p>The list of Availability Zones that the directory is in.</p>"]
#[serde(rename="AvailabilityZones")]
pub availability_zones: Option<AvailabilityZones>,
#[doc="<p>The security group identifier for the directory. If the directory was created before 8/1/2014, this is the identifier of the directory members security group that was created when the directory was created. If the directory was created after this date, this value is null.</p>"]
#[serde(rename="SecurityGroupId")]
pub security_group_id: Option<SecurityGroupId>,
#[doc="<p>The identifiers of the subnets for the directory servers.</p>"]
#[serde(rename="SubnetIds")]
pub subnet_ids: Option<SubnetIds>,
#[doc="<p>The identifier of the VPC that the directory is in.</p>"]
#[serde(rename="VpcId")]
pub vpc_id: Option<VpcId>,
            }
            
#[doc="<p>Contains the inputs for the <a>DisableRadius</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DisableRadiusRequest {
                #[doc="<p>The identifier of the directory for which to disable MFA.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
            }
            
#[doc="<p>Contains the results of the <a>DisableRadius</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DisableRadiusResult;
            
#[doc="<p>Contains the inputs for the <a>DisableSso</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct DisableSsoRequest {
                #[doc="<p>The identifier of the directory for which to disable single-sign on.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The password of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. For more information, see the <i>UserName</i> parameter.</p>"]
#[serde(rename="Password")]
pub password: Option<ConnectPassword>,
#[doc="<p>The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principal name.</p> <p>If the AD Connector service account does not have privileges to remove a service principal name, you can specify an alternate account with the <i>UserName</i> and <i>Password</i> parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.</p>"]
#[serde(rename="UserName")]
pub user_name: Option<UserName>,
            }
            
#[doc="<p>Contains the results of the <a>DisableSso</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct DisableSsoResult;
            
pub type DnsIpAddrs = Vec<IpAddr>;
#[doc="<p>Contains the inputs for the <a>EnableRadius</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct EnableRadiusRequest {
                #[doc="<p>The identifier of the directory for which to enable MFA.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>A <a>RadiusSettings</a> object that contains information about the RADIUS server.</p>"]
#[serde(rename="RadiusSettings")]
pub radius_settings: RadiusSettings,
            }
            
#[doc="<p>Contains the results of the <a>EnableRadius</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct EnableRadiusResult;
            
#[doc="<p>Contains the inputs for the <a>EnableSso</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct EnableSsoRequest {
                #[doc="<p>The identifier of the directory for which to enable single-sign on.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The password of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. For more information, see the <i>UserName</i> parameter.</p>"]
#[serde(rename="Password")]
pub password: Option<ConnectPassword>,
#[doc="<p>The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principal name.</p> <p>If the AD Connector service account does not have privileges to add a service principal name, you can specify an alternate account with the <i>UserName</i> and <i>Password</i> parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.</p>"]
#[serde(rename="UserName")]
pub user_name: Option<UserName>,
            }
            
#[doc="<p>Contains the results of the <a>EnableSso</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct EnableSsoResult;
            
pub type EndDateTime = f64;
#[doc="<p>Information about SNS topic and AWS Directory Service directory associations.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct EventTopic {
                #[doc="<p>The date and time of when you associated your directory with the SNS topic.</p>"]
#[serde(rename="CreatedDateTime")]
pub created_date_time: Option<CreatedDateTime>,
#[doc="<p>The Directory ID of an AWS Directory Service directory that will publish status messages to an SNS topic.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The topic registration status.</p>"]
#[serde(rename="Status")]
pub status: Option<TopicStatus>,
#[doc="<p>The SNS topic ARN (Amazon Resource Name).</p>"]
#[serde(rename="TopicArn")]
pub topic_arn: Option<TopicArn>,
#[doc="<p>The name of an AWS SNS topic the receives status messages from the directory.</p>"]
#[serde(rename="TopicName")]
pub topic_name: Option<TopicName>,
            }
            
pub type EventTopics = Vec<EventTopic>;
#[doc="<p>The descriptive message for the exception.</p>"]
pub type ExceptionMessage = String;
#[doc="<p>Contains the inputs for the <a>GetDirectoryLimits</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct GetDirectoryLimitsRequest;
            
#[doc="<p>Contains the results of the <a>GetDirectoryLimits</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct GetDirectoryLimitsResult {
                #[doc="<p>A <a>DirectoryLimits</a> object that contains the directory limits for the current region.</p>"]
#[serde(rename="DirectoryLimits")]
pub directory_limits: Option<DirectoryLimits>,
            }
            
#[doc="<p>Contains the inputs for the <a>GetSnapshotLimits</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct GetSnapshotLimitsRequest {
                #[doc="<p>Contains the identifier of the directory to obtain the limits for.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
            }
            
#[doc="<p>Contains the results of the <a>GetSnapshotLimits</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct GetSnapshotLimitsResult {
                #[doc="<p>A <a>SnapshotLimits</a> object that contains the manual snapshot limits for the specified directory.</p>"]
#[serde(rename="SnapshotLimits")]
pub snapshot_limits: Option<SnapshotLimits>,
            }
            
pub type IpAddr = String;
pub type IpAddrs = Vec<IpAddr>;
#[doc="<p>IP address block. This is often the address block of the DNS server used for your on-premises domain. </p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct IpRoute {
                #[doc="<p>IP address block using CIDR format, for example 10.0.0.0/24. This is often the address block of the DNS server used for your on-premises domain. For a single IP address use a CIDR address block with /32. For example 10.0.0.0/32.</p>"]
#[serde(rename="CidrIp")]
pub cidr_ip: Option<CidrIp>,
#[doc="<p>Description of the address block.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
            }
            
#[doc="<p>Information about one or more IP address blocks.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct IpRouteInfo {
                #[doc="<p>The date and time the address block was added to the directory.</p>"]
#[serde(rename="AddedDateTime")]
pub added_date_time: Option<AddedDateTime>,
#[doc="<p>IP address block in the <a>IpRoute</a>.</p>"]
#[serde(rename="CidrIp")]
pub cidr_ip: Option<CidrIp>,
#[doc="<p>Description of the <a>IpRouteInfo</a>.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
#[doc="<p>Identifier (ID) of the directory associated with the IP addresses.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The status of the IP address block.</p>"]
#[serde(rename="IpRouteStatusMsg")]
pub ip_route_status_msg: Option<IpRouteStatusMsg>,
#[doc="<p>The reason for the IpRouteStatusMsg.</p>"]
#[serde(rename="IpRouteStatusReason")]
pub ip_route_status_reason: Option<IpRouteStatusReason>,
            }
            
pub type IpRouteStatusMsg = String;
pub type IpRouteStatusReason = String;
pub type IpRoutes = Vec<IpRoute>;
pub type IpRoutesInfo = Vec<IpRouteInfo>;
pub type LastUpdatedDateTime = f64;
pub type LaunchTime = f64;
pub type LdifContent = String;
pub type Limit = i64;
#[derive(Default,Debug,Clone,Serialize)]
            pub struct ListIpRoutesRequest {
                #[doc="<p>Identifier (ID) of the directory for which you want to retrieve the IP addresses.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>Maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.</p>"]
#[serde(rename="Limit")]
pub limit: Option<Limit>,
#[doc="<p>The <i>ListIpRoutes.NextToken</i> value from a previous call to <a>ListIpRoutes</a>. Pass null if this is the first call.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct ListIpRoutesResult {
                #[doc="<p>A list of <a>IpRoute</a>s.</p>"]
#[serde(rename="IpRoutesInfo")]
pub ip_routes_info: Option<IpRoutesInfo>,
#[doc="<p>If not null, more results are available. Pass this value for the <i>NextToken</i> parameter in a subsequent call to <a>ListIpRoutes</a> to retrieve the next set of items.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
            }
            
#[derive(Default,Debug,Clone,Serialize)]
            pub struct ListSchemaExtensionsRequest {
                #[doc="<p>The identifier of the directory from which to retrieve the schema extension information.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The maximum number of items to return.</p>"]
#[serde(rename="Limit")]
pub limit: Option<Limit>,
#[doc="<p>The <code>ListSchemaExtensions.NextToken</code> value from a previous call to <code>ListSchemaExtensions</code>. Pass null if this is the first call.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct ListSchemaExtensionsResult {
                #[doc="<p>If not null, more results are available. Pass this value for the <code>NextToken</code> parameter in a subsequent call to <code>ListSchemaExtensions</code> to retrieve the next set of items.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>Information about the schema extensions applied to the directory.</p>"]
#[serde(rename="SchemaExtensionsInfo")]
pub schema_extensions_info: Option<SchemaExtensionsInfo>,
            }
            
#[derive(Default,Debug,Clone,Serialize)]
            pub struct ListTagsForResourceRequest {
                #[doc="<p>Reserved for future use.</p>"]
#[serde(rename="Limit")]
pub limit: Option<Limit>,
#[doc="<p>Reserved for future use.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>Identifier (ID) of the directory for which you want to retrieve tags.</p>"]
#[serde(rename="ResourceId")]
pub resource_id: ResourceId,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct ListTagsForResourceResult {
                #[doc="<p>Reserved for future use.</p>"]
#[serde(rename="NextToken")]
pub next_token: Option<NextToken>,
#[doc="<p>List of tags returned by the ListTagsForResource operation.</p>"]
#[serde(rename="Tags")]
pub tags: Option<Tags>,
            }
            
pub type ManualSnapshotsLimitReached = bool;
pub type NextToken = String;
pub type OrganizationalUnitDN = String;
pub type Password = String;
pub type PortNumber = i64;
pub type RadiusAuthenticationProtocol = String;
pub type RadiusDisplayLabel = String;
pub type RadiusRetries = i64;
#[doc="<p>Contains information about a Remote Authentication Dial In User Service (RADIUS) server.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
            pub struct RadiusSettings {
                #[doc="<p>The protocol specified for your RADIUS endpoints.</p>"]
#[serde(rename="AuthenticationProtocol")]
pub authentication_protocol: Option<RadiusAuthenticationProtocol>,
#[doc="<p>Not currently used.</p>"]
#[serde(rename="DisplayLabel")]
pub display_label: Option<RadiusDisplayLabel>,
#[doc="<p>The port that your RADIUS server is using for communications. Your on-premises network must allow inbound traffic over this port from the AWS Directory Service servers.</p>"]
#[serde(rename="RadiusPort")]
pub radius_port: Option<PortNumber>,
#[doc="<p>The maximum number of times that communication with the RADIUS server is attempted.</p>"]
#[serde(rename="RadiusRetries")]
pub radius_retries: Option<RadiusRetries>,
#[doc="<p>An array of strings that contains the IP addresses of the RADIUS server endpoints, or the IP addresses of your RADIUS server load balancer.</p>"]
#[serde(rename="RadiusServers")]
pub radius_servers: Option<Servers>,
#[doc="<p>The amount of time, in seconds, to wait for the RADIUS server to respond.</p>"]
#[serde(rename="RadiusTimeout")]
pub radius_timeout: Option<RadiusTimeout>,
#[doc="<p>Not currently used.</p>"]
#[serde(rename="SharedSecret")]
pub shared_secret: Option<RadiusSharedSecret>,
#[doc="<p>Not currently used.</p>"]
#[serde(rename="UseSameUsername")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub use_same_username: Option<UseSameUsername>,
            }
            
pub type RadiusSharedSecret = String;
pub type RadiusStatus = String;
pub type RadiusTimeout = i64;
#[doc="<p>Registers a new event topic.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct RegisterEventTopicRequest {
                #[doc="<p>The Directory ID that will publish status messages to the SNS topic.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The SNS topic name to which the directory will publish status messages. This SNS topic must be in the same region as the specified Directory ID.</p>"]
#[serde(rename="TopicName")]
pub topic_name: TopicName,
            }
            
#[doc="<p>The result of a RegisterEventTopic request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct RegisterEventTopicResult;
            
pub type RemoteDomainName = String;
pub type RemoteDomainNames = Vec<RemoteDomainName>;
#[derive(Default,Debug,Clone,Serialize)]
            pub struct RemoveIpRoutesRequest {
                #[doc="<p>IP address blocks that you want to remove.</p>"]
#[serde(rename="CidrIps")]
pub cidr_ips: CidrIps,
#[doc="<p>Identifier (ID) of the directory from which you want to remove the IP addresses.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct RemoveIpRoutesResult;
            
#[derive(Default,Debug,Clone,Serialize)]
            pub struct RemoveTagsFromResourceRequest {
                #[doc="<p>Identifier (ID) of the directory from which to remove the tag.</p>"]
#[serde(rename="ResourceId")]
pub resource_id: ResourceId,
#[doc="<p>The tag key (name) of the tag to be removed.</p>"]
#[serde(rename="TagKeys")]
pub tag_keys: TagKeys,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct RemoveTagsFromResourceResult;
            
pub type ReplicationScope = String;
#[doc="<p>The AWS request identifier.</p>"]
pub type RequestId = String;
pub type ResourceId = String;
#[doc="<p>An object representing the inputs for the <a>RestoreFromSnapshot</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct RestoreFromSnapshotRequest {
                #[doc="<p>The identifier of the snapshot to restore from.</p>"]
#[serde(rename="SnapshotId")]
pub snapshot_id: SnapshotId,
            }
            
#[doc="<p>Contains the results of the <a>RestoreFromSnapshot</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct RestoreFromSnapshotResult;
            
pub type SID = String;
pub type SchemaExtensionId = String;
#[doc="<p>Information about a schema extension.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct SchemaExtensionInfo {
                #[doc="<p>A description of the schema extension.</p>"]
#[serde(rename="Description")]
pub description: Option<Description>,
#[doc="<p>The identifier of the directory to which the schema extension is applied.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The date and time that the schema extension was completed.</p>"]
#[serde(rename="EndDateTime")]
pub end_date_time: Option<EndDateTime>,
#[doc="<p>The identifier of the schema extension.</p>"]
#[serde(rename="SchemaExtensionId")]
pub schema_extension_id: Option<SchemaExtensionId>,
#[doc="<p>The current status of the schema extension.</p>"]
#[serde(rename="SchemaExtensionStatus")]
pub schema_extension_status: Option<SchemaExtensionStatus>,
#[doc="<p>The reason for the <code>SchemaExtensionStatus</code>.</p>"]
#[serde(rename="SchemaExtensionStatusReason")]
pub schema_extension_status_reason: Option<SchemaExtensionStatusReason>,
#[doc="<p>The date and time that the schema extension started being applied to the directory.</p>"]
#[serde(rename="StartDateTime")]
pub start_date_time: Option<StartDateTime>,
            }
            
pub type SchemaExtensionStatus = String;
pub type SchemaExtensionStatusReason = String;
pub type SchemaExtensionsInfo = Vec<SchemaExtensionInfo>;
pub type SecurityGroupId = String;
pub type Server = String;
pub type Servers = Vec<Server>;
#[doc="<p>Describes a directory snapshot.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct Snapshot {
                #[doc="<p>The directory identifier.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The descriptive name of the snapshot.</p>"]
#[serde(rename="Name")]
pub name: Option<SnapshotName>,
#[doc="<p>The snapshot identifier.</p>"]
#[serde(rename="SnapshotId")]
pub snapshot_id: Option<SnapshotId>,
#[doc="<p>The date and time that the snapshot was taken.</p>"]
#[serde(rename="StartTime")]
pub start_time: Option<StartTime>,
#[doc="<p>The snapshot status.</p>"]
#[serde(rename="Status")]
pub status: Option<SnapshotStatus>,
#[doc="<p>The snapshot type.</p>"]
#[serde(rename="Type")]
pub type_: Option<SnapshotType>,
            }
            
pub type SnapshotId = String;
#[doc="<p>A list of directory snapshot identifiers.</p>"]
pub type SnapshotIds = Vec<SnapshotId>;
#[doc="<p>Contains manual snapshot limit information for a directory.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct SnapshotLimits {
                #[doc="<p>The current number of manual snapshots of the directory.</p>"]
#[serde(rename="ManualSnapshotsCurrentCount")]
pub manual_snapshots_current_count: Option<Limit>,
#[doc="<p>The maximum number of manual snapshots allowed.</p>"]
#[serde(rename="ManualSnapshotsLimit")]
pub manual_snapshots_limit: Option<Limit>,
#[doc="<p>Indicates if the manual snapshot limit has been reached.</p>"]
#[serde(rename="ManualSnapshotsLimitReached")]
#[serde(skip_serializing_if="::std::option::Option::is_none")]
pub manual_snapshots_limit_reached: Option<ManualSnapshotsLimitReached>,
            }
            
pub type SnapshotName = String;
pub type SnapshotStatus = String;
pub type SnapshotType = String;
#[doc="<p>A list of descriptions of directory snapshots.</p>"]
pub type Snapshots = Vec<Snapshot>;
pub type SsoEnabled = bool;
pub type StageReason = String;
pub type StartDateTime = f64;
#[derive(Default,Debug,Clone,Serialize)]
            pub struct StartSchemaExtensionRequest {
                #[doc="<p>If true, creates a snapshot of the directory before applying the schema extension.</p>"]
#[serde(rename="CreateSnapshotBeforeSchemaExtension")]
pub create_snapshot_before_schema_extension: CreateSnapshotBeforeSchemaExtension,
#[doc="<p>A description of the schema extension.</p>"]
#[serde(rename="Description")]
pub description: Description,
#[doc="<p>The identifier of the directory for which the schema extension will be applied to.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be formatted in an ldif file with \\n. See the example request below for more details. The file size can be no larger than 1MB.</p>"]
#[serde(rename="LdifContent")]
pub ldif_content: LdifContent,
            }
            
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct StartSchemaExtensionResult {
                #[doc="<p>The identifier of the schema extension that will be applied.</p>"]
#[serde(rename="SchemaExtensionId")]
pub schema_extension_id: Option<SchemaExtensionId>,
            }
            
pub type StartTime = f64;
pub type StateLastUpdatedDateTime = f64;
pub type SubnetId = String;
pub type SubnetIds = Vec<SubnetId>;
#[doc="<p>Metadata assigned to a directory consisting of a key-value pair.</p>"]
#[derive(Default,Debug,Clone,Serialize,Deserialize)]
            pub struct Tag {
                #[doc="<p>Required name of the tag. The string value can be Unicode characters and cannot be prefixed with \"aws:\". The string can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").</p>"]
#[serde(rename="Key")]
pub key: TagKey,
#[doc="<p>The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\").</p>"]
#[serde(rename="Value")]
pub value: TagValue,
            }
            
pub type TagKey = String;
pub type TagKeys = Vec<TagKey>;
pub type TagValue = String;
pub type Tags = Vec<Tag>;
pub type TopicArn = String;
pub type TopicName = String;
pub type TopicNames = Vec<TopicName>;
pub type TopicStatus = String;
#[doc="<p>Describes a trust relationship between an Microsoft AD in the AWS cloud and an external domain.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct Trust {
                #[doc="<p>The date and time that the trust relationship was created.</p>"]
#[serde(rename="CreatedDateTime")]
pub created_date_time: Option<CreatedDateTime>,
#[doc="<p>The Directory ID of the AWS directory involved in the trust relationship.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: Option<DirectoryId>,
#[doc="<p>The date and time that the trust relationship was last updated.</p>"]
#[serde(rename="LastUpdatedDateTime")]
pub last_updated_date_time: Option<LastUpdatedDateTime>,
#[doc="<p>The Fully Qualified Domain Name (FQDN) of the external domain involved in the trust relationship.</p>"]
#[serde(rename="RemoteDomainName")]
pub remote_domain_name: Option<RemoteDomainName>,
#[doc="<p>The date and time that the TrustState was last updated.</p>"]
#[serde(rename="StateLastUpdatedDateTime")]
pub state_last_updated_date_time: Option<StateLastUpdatedDateTime>,
#[doc="<p>The trust relationship direction.</p>"]
#[serde(rename="TrustDirection")]
pub trust_direction: Option<TrustDirection>,
#[doc="<p>The unique ID of the trust relationship.</p>"]
#[serde(rename="TrustId")]
pub trust_id: Option<TrustId>,
#[doc="<p>The trust relationship state.</p>"]
#[serde(rename="TrustState")]
pub trust_state: Option<TrustState>,
#[doc="<p>The reason for the TrustState.</p>"]
#[serde(rename="TrustStateReason")]
pub trust_state_reason: Option<TrustStateReason>,
#[doc="<p>The trust relationship type.</p>"]
#[serde(rename="TrustType")]
pub trust_type: Option<TrustType>,
            }
            
pub type TrustDirection = String;
pub type TrustId = String;
pub type TrustIds = Vec<TrustId>;
pub type TrustPassword = String;
pub type TrustState = String;
pub type TrustStateReason = String;
pub type TrustType = String;
pub type Trusts = Vec<Trust>;
#[doc="<p>Updates a conditional forwarder.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct UpdateConditionalForwarderRequest {
                #[doc="<p>The directory ID of the AWS directory for which to update the conditional forwarder.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>The updated IP addresses of the remote DNS server associated with the conditional forwarder.</p>"]
#[serde(rename="DnsIpAddrs")]
pub dns_ip_addrs: DnsIpAddrs,
#[doc="<p>The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.</p>"]
#[serde(rename="RemoteDomainName")]
pub remote_domain_name: RemoteDomainName,
            }
            
#[doc="<p>The result of an UpdateConditionalForwarder request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct UpdateConditionalForwarderResult;
            
#[doc="<p>Contains the inputs for the <a>UpdateRadius</a> operation.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct UpdateRadiusRequest {
                #[doc="<p>The identifier of the directory for which to update the RADIUS server information.</p>"]
#[serde(rename="DirectoryId")]
pub directory_id: DirectoryId,
#[doc="<p>A <a>RadiusSettings</a> object that contains information about the RADIUS server.</p>"]
#[serde(rename="RadiusSettings")]
pub radius_settings: RadiusSettings,
            }
            
#[doc="<p>Contains the results of the <a>UpdateRadius</a> operation.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct UpdateRadiusResult;
            
pub type UpdateSecurityGroupForDirectoryControllers = bool;
pub type UseSameUsername = bool;
pub type UserName = String;
#[doc="<p>Initiates the verification of an existing trust relationship between a Microsoft AD in the AWS cloud and an external domain.</p>"]
#[derive(Default,Debug,Clone,Serialize)]
            pub struct VerifyTrustRequest {
                #[doc="<p>The unique Trust ID of the trust relationship to verify.</p>"]
#[serde(rename="TrustId")]
pub trust_id: TrustId,
            }
            
#[doc="<p>Result of a VerifyTrust request.</p>"]
#[derive(Default,Debug,Clone,Deserialize)]
            pub struct VerifyTrustResult {
                #[doc="<p>The unique Trust ID of the trust relationship that was verified.</p>"]
#[serde(rename="TrustId")]
pub trust_id: Option<TrustId>,
            }
            
pub type VpcId = String;
/// Errors returned by AddIpRoutes
                #[derive(Debug, PartialEq)]
                pub enum AddIpRoutesError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity already exists.</p>
EntityAlreadyExists(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>The maximum allowed number of IP addresses was exceeded. The default limit is 100 IP address blocks.</p>
IpRouteLimitExceeded(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl AddIpRoutesError {
                    pub fn from_body(body: &str) -> AddIpRoutesError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => AddIpRoutesError::Client(String::from(error_message)),
"DirectoryUnavailableException" => AddIpRoutesError::DirectoryUnavailable(String::from(error_message)),
"EntityAlreadyExistsException" => AddIpRoutesError::EntityAlreadyExists(String::from(error_message)),
"EntityDoesNotExistException" => AddIpRoutesError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => AddIpRoutesError::InvalidParameter(String::from(error_message)),
"IpRouteLimitExceededException" => AddIpRoutesError::IpRouteLimitExceeded(String::from(error_message)),
"ServiceException" => AddIpRoutesError::Service(String::from(error_message)),
"ValidationException" => AddIpRoutesError::Validation(error_message.to_string()),
_ => AddIpRoutesError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => AddIpRoutesError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for AddIpRoutesError {
                    fn from(err: serde_json::error::Error) -> AddIpRoutesError {
                        AddIpRoutesError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for AddIpRoutesError {
                    fn from(err: CredentialsError) -> AddIpRoutesError {
                        AddIpRoutesError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for AddIpRoutesError {
                    fn from(err: HttpDispatchError) -> AddIpRoutesError {
                        AddIpRoutesError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for AddIpRoutesError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for AddIpRoutesError {
                    fn description(&self) -> &str {
                        match *self {
                            AddIpRoutesError::Client(ref cause) => cause,
AddIpRoutesError::DirectoryUnavailable(ref cause) => cause,
AddIpRoutesError::EntityAlreadyExists(ref cause) => cause,
AddIpRoutesError::EntityDoesNotExist(ref cause) => cause,
AddIpRoutesError::InvalidParameter(ref cause) => cause,
AddIpRoutesError::IpRouteLimitExceeded(ref cause) => cause,
AddIpRoutesError::Service(ref cause) => cause,
AddIpRoutesError::Validation(ref cause) => cause,
AddIpRoutesError::Credentials(ref err) => err.description(),
AddIpRoutesError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
AddIpRoutesError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by AddTagsToResource
                #[derive(Debug, PartialEq)]
                pub enum AddTagsToResourceError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The maximum allowed number of tags was exceeded.</p>
TagLimitExceeded(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl AddTagsToResourceError {
                    pub fn from_body(body: &str) -> AddTagsToResourceError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => AddTagsToResourceError::Client(String::from(error_message)),
"EntityDoesNotExistException" => AddTagsToResourceError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => AddTagsToResourceError::InvalidParameter(String::from(error_message)),
"ServiceException" => AddTagsToResourceError::Service(String::from(error_message)),
"TagLimitExceededException" => AddTagsToResourceError::TagLimitExceeded(String::from(error_message)),
"ValidationException" => AddTagsToResourceError::Validation(error_message.to_string()),
_ => AddTagsToResourceError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => AddTagsToResourceError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for AddTagsToResourceError {
                    fn from(err: serde_json::error::Error) -> AddTagsToResourceError {
                        AddTagsToResourceError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for AddTagsToResourceError {
                    fn from(err: CredentialsError) -> AddTagsToResourceError {
                        AddTagsToResourceError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for AddTagsToResourceError {
                    fn from(err: HttpDispatchError) -> AddTagsToResourceError {
                        AddTagsToResourceError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for AddTagsToResourceError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for AddTagsToResourceError {
                    fn description(&self) -> &str {
                        match *self {
                            AddTagsToResourceError::Client(ref cause) => cause,
AddTagsToResourceError::EntityDoesNotExist(ref cause) => cause,
AddTagsToResourceError::InvalidParameter(ref cause) => cause,
AddTagsToResourceError::Service(ref cause) => cause,
AddTagsToResourceError::TagLimitExceeded(ref cause) => cause,
AddTagsToResourceError::Validation(ref cause) => cause,
AddTagsToResourceError::Credentials(ref err) => err.description(),
AddTagsToResourceError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
AddTagsToResourceError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CancelSchemaExtension
                #[derive(Debug, PartialEq)]
                pub enum CancelSchemaExtensionError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CancelSchemaExtensionError {
                    pub fn from_body(body: &str) -> CancelSchemaExtensionError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CancelSchemaExtensionError::Client(String::from(error_message)),
"EntityDoesNotExistException" => CancelSchemaExtensionError::EntityDoesNotExist(String::from(error_message)),
"ServiceException" => CancelSchemaExtensionError::Service(String::from(error_message)),
"ValidationException" => CancelSchemaExtensionError::Validation(error_message.to_string()),
_ => CancelSchemaExtensionError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CancelSchemaExtensionError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CancelSchemaExtensionError {
                    fn from(err: serde_json::error::Error) -> CancelSchemaExtensionError {
                        CancelSchemaExtensionError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CancelSchemaExtensionError {
                    fn from(err: CredentialsError) -> CancelSchemaExtensionError {
                        CancelSchemaExtensionError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CancelSchemaExtensionError {
                    fn from(err: HttpDispatchError) -> CancelSchemaExtensionError {
                        CancelSchemaExtensionError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CancelSchemaExtensionError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CancelSchemaExtensionError {
                    fn description(&self) -> &str {
                        match *self {
                            CancelSchemaExtensionError::Client(ref cause) => cause,
CancelSchemaExtensionError::EntityDoesNotExist(ref cause) => cause,
CancelSchemaExtensionError::Service(ref cause) => cause,
CancelSchemaExtensionError::Validation(ref cause) => cause,
CancelSchemaExtensionError::Credentials(ref err) => err.description(),
CancelSchemaExtensionError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CancelSchemaExtensionError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by ConnectDirectory
                #[derive(Debug, PartialEq)]
                pub enum ConnectDirectoryError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The maximum number of directories in the region has been reached. You can use the <a>GetDirectoryLimits</a> operation to determine your directory limits in the region.</p>
DirectoryLimitExceeded(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl ConnectDirectoryError {
                    pub fn from_body(body: &str) -> ConnectDirectoryError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => ConnectDirectoryError::Client(String::from(error_message)),
"DirectoryLimitExceededException" => ConnectDirectoryError::DirectoryLimitExceeded(String::from(error_message)),
"InvalidParameterException" => ConnectDirectoryError::InvalidParameter(String::from(error_message)),
"ServiceException" => ConnectDirectoryError::Service(String::from(error_message)),
"ValidationException" => ConnectDirectoryError::Validation(error_message.to_string()),
_ => ConnectDirectoryError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => ConnectDirectoryError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for ConnectDirectoryError {
                    fn from(err: serde_json::error::Error) -> ConnectDirectoryError {
                        ConnectDirectoryError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for ConnectDirectoryError {
                    fn from(err: CredentialsError) -> ConnectDirectoryError {
                        ConnectDirectoryError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for ConnectDirectoryError {
                    fn from(err: HttpDispatchError) -> ConnectDirectoryError {
                        ConnectDirectoryError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for ConnectDirectoryError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for ConnectDirectoryError {
                    fn description(&self) -> &str {
                        match *self {
                            ConnectDirectoryError::Client(ref cause) => cause,
ConnectDirectoryError::DirectoryLimitExceeded(ref cause) => cause,
ConnectDirectoryError::InvalidParameter(ref cause) => cause,
ConnectDirectoryError::Service(ref cause) => cause,
ConnectDirectoryError::Validation(ref cause) => cause,
ConnectDirectoryError::Credentials(ref err) => err.description(),
ConnectDirectoryError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
ConnectDirectoryError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateAlias
                #[derive(Debug, PartialEq)]
                pub enum CreateAliasError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity already exists.</p>
EntityAlreadyExists(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateAliasError {
                    pub fn from_body(body: &str) -> CreateAliasError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CreateAliasError::Client(String::from(error_message)),
"EntityAlreadyExistsException" => CreateAliasError::EntityAlreadyExists(String::from(error_message)),
"EntityDoesNotExistException" => CreateAliasError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => CreateAliasError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateAliasError::Service(String::from(error_message)),
"ValidationException" => CreateAliasError::Validation(error_message.to_string()),
_ => CreateAliasError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateAliasError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateAliasError {
                    fn from(err: serde_json::error::Error) -> CreateAliasError {
                        CreateAliasError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateAliasError {
                    fn from(err: CredentialsError) -> CreateAliasError {
                        CreateAliasError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateAliasError {
                    fn from(err: HttpDispatchError) -> CreateAliasError {
                        CreateAliasError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateAliasError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateAliasError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateAliasError::Client(ref cause) => cause,
CreateAliasError::EntityAlreadyExists(ref cause) => cause,
CreateAliasError::EntityDoesNotExist(ref cause) => cause,
CreateAliasError::InvalidParameter(ref cause) => cause,
CreateAliasError::Service(ref cause) => cause,
CreateAliasError::Validation(ref cause) => cause,
CreateAliasError::Credentials(ref err) => err.description(),
CreateAliasError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateAliasError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateComputer
                #[derive(Debug, PartialEq)]
                pub enum CreateComputerError {
                    
///<p>An authentication error occurred.</p>
AuthenticationFailed(String),
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity already exists.</p>
EntityAlreadyExists(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateComputerError {
                    pub fn from_body(body: &str) -> CreateComputerError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "AuthenticationFailedException" => CreateComputerError::AuthenticationFailed(String::from(error_message)),
"ClientException" => CreateComputerError::Client(String::from(error_message)),
"DirectoryUnavailableException" => CreateComputerError::DirectoryUnavailable(String::from(error_message)),
"EntityAlreadyExistsException" => CreateComputerError::EntityAlreadyExists(String::from(error_message)),
"EntityDoesNotExistException" => CreateComputerError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => CreateComputerError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateComputerError::Service(String::from(error_message)),
"UnsupportedOperationException" => CreateComputerError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => CreateComputerError::Validation(error_message.to_string()),
_ => CreateComputerError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateComputerError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateComputerError {
                    fn from(err: serde_json::error::Error) -> CreateComputerError {
                        CreateComputerError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateComputerError {
                    fn from(err: CredentialsError) -> CreateComputerError {
                        CreateComputerError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateComputerError {
                    fn from(err: HttpDispatchError) -> CreateComputerError {
                        CreateComputerError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateComputerError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateComputerError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateComputerError::AuthenticationFailed(ref cause) => cause,
CreateComputerError::Client(ref cause) => cause,
CreateComputerError::DirectoryUnavailable(ref cause) => cause,
CreateComputerError::EntityAlreadyExists(ref cause) => cause,
CreateComputerError::EntityDoesNotExist(ref cause) => cause,
CreateComputerError::InvalidParameter(ref cause) => cause,
CreateComputerError::Service(ref cause) => cause,
CreateComputerError::UnsupportedOperation(ref cause) => cause,
CreateComputerError::Validation(ref cause) => cause,
CreateComputerError::Credentials(ref err) => err.description(),
CreateComputerError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateComputerError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateConditionalForwarder
                #[derive(Debug, PartialEq)]
                pub enum CreateConditionalForwarderError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity already exists.</p>
EntityAlreadyExists(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateConditionalForwarderError {
                    pub fn from_body(body: &str) -> CreateConditionalForwarderError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CreateConditionalForwarderError::Client(String::from(error_message)),
"DirectoryUnavailableException" => CreateConditionalForwarderError::DirectoryUnavailable(String::from(error_message)),
"EntityAlreadyExistsException" => CreateConditionalForwarderError::EntityAlreadyExists(String::from(error_message)),
"EntityDoesNotExistException" => CreateConditionalForwarderError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => CreateConditionalForwarderError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateConditionalForwarderError::Service(String::from(error_message)),
"UnsupportedOperationException" => CreateConditionalForwarderError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => CreateConditionalForwarderError::Validation(error_message.to_string()),
_ => CreateConditionalForwarderError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateConditionalForwarderError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateConditionalForwarderError {
                    fn from(err: serde_json::error::Error) -> CreateConditionalForwarderError {
                        CreateConditionalForwarderError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateConditionalForwarderError {
                    fn from(err: CredentialsError) -> CreateConditionalForwarderError {
                        CreateConditionalForwarderError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateConditionalForwarderError {
                    fn from(err: HttpDispatchError) -> CreateConditionalForwarderError {
                        CreateConditionalForwarderError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateConditionalForwarderError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateConditionalForwarderError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateConditionalForwarderError::Client(ref cause) => cause,
CreateConditionalForwarderError::DirectoryUnavailable(ref cause) => cause,
CreateConditionalForwarderError::EntityAlreadyExists(ref cause) => cause,
CreateConditionalForwarderError::EntityDoesNotExist(ref cause) => cause,
CreateConditionalForwarderError::InvalidParameter(ref cause) => cause,
CreateConditionalForwarderError::Service(ref cause) => cause,
CreateConditionalForwarderError::UnsupportedOperation(ref cause) => cause,
CreateConditionalForwarderError::Validation(ref cause) => cause,
CreateConditionalForwarderError::Credentials(ref err) => err.description(),
CreateConditionalForwarderError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateConditionalForwarderError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateDirectory
                #[derive(Debug, PartialEq)]
                pub enum CreateDirectoryError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The maximum number of directories in the region has been reached. You can use the <a>GetDirectoryLimits</a> operation to determine your directory limits in the region.</p>
DirectoryLimitExceeded(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateDirectoryError {
                    pub fn from_body(body: &str) -> CreateDirectoryError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CreateDirectoryError::Client(String::from(error_message)),
"DirectoryLimitExceededException" => CreateDirectoryError::DirectoryLimitExceeded(String::from(error_message)),
"InvalidParameterException" => CreateDirectoryError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateDirectoryError::Service(String::from(error_message)),
"ValidationException" => CreateDirectoryError::Validation(error_message.to_string()),
_ => CreateDirectoryError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateDirectoryError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateDirectoryError {
                    fn from(err: serde_json::error::Error) -> CreateDirectoryError {
                        CreateDirectoryError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateDirectoryError {
                    fn from(err: CredentialsError) -> CreateDirectoryError {
                        CreateDirectoryError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateDirectoryError {
                    fn from(err: HttpDispatchError) -> CreateDirectoryError {
                        CreateDirectoryError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateDirectoryError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateDirectoryError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateDirectoryError::Client(ref cause) => cause,
CreateDirectoryError::DirectoryLimitExceeded(ref cause) => cause,
CreateDirectoryError::InvalidParameter(ref cause) => cause,
CreateDirectoryError::Service(ref cause) => cause,
CreateDirectoryError::Validation(ref cause) => cause,
CreateDirectoryError::Credentials(ref err) => err.description(),
CreateDirectoryError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateDirectoryError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateMicrosoftAD
                #[derive(Debug, PartialEq)]
                pub enum CreateMicrosoftADError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The maximum number of directories in the region has been reached. You can use the <a>GetDirectoryLimits</a> operation to determine your directory limits in the region.</p>
DirectoryLimitExceeded(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateMicrosoftADError {
                    pub fn from_body(body: &str) -> CreateMicrosoftADError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CreateMicrosoftADError::Client(String::from(error_message)),
"DirectoryLimitExceededException" => CreateMicrosoftADError::DirectoryLimitExceeded(String::from(error_message)),
"InvalidParameterException" => CreateMicrosoftADError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateMicrosoftADError::Service(String::from(error_message)),
"UnsupportedOperationException" => CreateMicrosoftADError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => CreateMicrosoftADError::Validation(error_message.to_string()),
_ => CreateMicrosoftADError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateMicrosoftADError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateMicrosoftADError {
                    fn from(err: serde_json::error::Error) -> CreateMicrosoftADError {
                        CreateMicrosoftADError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateMicrosoftADError {
                    fn from(err: CredentialsError) -> CreateMicrosoftADError {
                        CreateMicrosoftADError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateMicrosoftADError {
                    fn from(err: HttpDispatchError) -> CreateMicrosoftADError {
                        CreateMicrosoftADError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateMicrosoftADError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateMicrosoftADError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateMicrosoftADError::Client(ref cause) => cause,
CreateMicrosoftADError::DirectoryLimitExceeded(ref cause) => cause,
CreateMicrosoftADError::InvalidParameter(ref cause) => cause,
CreateMicrosoftADError::Service(ref cause) => cause,
CreateMicrosoftADError::UnsupportedOperation(ref cause) => cause,
CreateMicrosoftADError::Validation(ref cause) => cause,
CreateMicrosoftADError::Credentials(ref err) => err.description(),
CreateMicrosoftADError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateMicrosoftADError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateSnapshot
                #[derive(Debug, PartialEq)]
                pub enum CreateSnapshotError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The maximum number of manual snapshots for the directory has been reached. You can use the <a>GetSnapshotLimits</a> operation to determine the snapshot limits for a directory.</p>
SnapshotLimitExceeded(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateSnapshotError {
                    pub fn from_body(body: &str) -> CreateSnapshotError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CreateSnapshotError::Client(String::from(error_message)),
"EntityDoesNotExistException" => CreateSnapshotError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => CreateSnapshotError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateSnapshotError::Service(String::from(error_message)),
"SnapshotLimitExceededException" => CreateSnapshotError::SnapshotLimitExceeded(String::from(error_message)),
"ValidationException" => CreateSnapshotError::Validation(error_message.to_string()),
_ => CreateSnapshotError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateSnapshotError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateSnapshotError {
                    fn from(err: serde_json::error::Error) -> CreateSnapshotError {
                        CreateSnapshotError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateSnapshotError {
                    fn from(err: CredentialsError) -> CreateSnapshotError {
                        CreateSnapshotError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateSnapshotError {
                    fn from(err: HttpDispatchError) -> CreateSnapshotError {
                        CreateSnapshotError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateSnapshotError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateSnapshotError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateSnapshotError::Client(ref cause) => cause,
CreateSnapshotError::EntityDoesNotExist(ref cause) => cause,
CreateSnapshotError::InvalidParameter(ref cause) => cause,
CreateSnapshotError::Service(ref cause) => cause,
CreateSnapshotError::SnapshotLimitExceeded(ref cause) => cause,
CreateSnapshotError::Validation(ref cause) => cause,
CreateSnapshotError::Credentials(ref err) => err.description(),
CreateSnapshotError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateSnapshotError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by CreateTrust
                #[derive(Debug, PartialEq)]
                pub enum CreateTrustError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity already exists.</p>
EntityAlreadyExists(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl CreateTrustError {
                    pub fn from_body(body: &str) -> CreateTrustError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => CreateTrustError::Client(String::from(error_message)),
"EntityAlreadyExistsException" => CreateTrustError::EntityAlreadyExists(String::from(error_message)),
"EntityDoesNotExistException" => CreateTrustError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => CreateTrustError::InvalidParameter(String::from(error_message)),
"ServiceException" => CreateTrustError::Service(String::from(error_message)),
"UnsupportedOperationException" => CreateTrustError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => CreateTrustError::Validation(error_message.to_string()),
_ => CreateTrustError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => CreateTrustError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for CreateTrustError {
                    fn from(err: serde_json::error::Error) -> CreateTrustError {
                        CreateTrustError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for CreateTrustError {
                    fn from(err: CredentialsError) -> CreateTrustError {
                        CreateTrustError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for CreateTrustError {
                    fn from(err: HttpDispatchError) -> CreateTrustError {
                        CreateTrustError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for CreateTrustError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for CreateTrustError {
                    fn description(&self) -> &str {
                        match *self {
                            CreateTrustError::Client(ref cause) => cause,
CreateTrustError::EntityAlreadyExists(ref cause) => cause,
CreateTrustError::EntityDoesNotExist(ref cause) => cause,
CreateTrustError::InvalidParameter(ref cause) => cause,
CreateTrustError::Service(ref cause) => cause,
CreateTrustError::UnsupportedOperation(ref cause) => cause,
CreateTrustError::Validation(ref cause) => cause,
CreateTrustError::Credentials(ref err) => err.description(),
CreateTrustError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
CreateTrustError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DeleteConditionalForwarder
                #[derive(Debug, PartialEq)]
                pub enum DeleteConditionalForwarderError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DeleteConditionalForwarderError {
                    pub fn from_body(body: &str) -> DeleteConditionalForwarderError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DeleteConditionalForwarderError::Client(String::from(error_message)),
"DirectoryUnavailableException" => DeleteConditionalForwarderError::DirectoryUnavailable(String::from(error_message)),
"EntityDoesNotExistException" => DeleteConditionalForwarderError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => DeleteConditionalForwarderError::InvalidParameter(String::from(error_message)),
"ServiceException" => DeleteConditionalForwarderError::Service(String::from(error_message)),
"UnsupportedOperationException" => DeleteConditionalForwarderError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => DeleteConditionalForwarderError::Validation(error_message.to_string()),
_ => DeleteConditionalForwarderError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DeleteConditionalForwarderError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DeleteConditionalForwarderError {
                    fn from(err: serde_json::error::Error) -> DeleteConditionalForwarderError {
                        DeleteConditionalForwarderError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DeleteConditionalForwarderError {
                    fn from(err: CredentialsError) -> DeleteConditionalForwarderError {
                        DeleteConditionalForwarderError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DeleteConditionalForwarderError {
                    fn from(err: HttpDispatchError) -> DeleteConditionalForwarderError {
                        DeleteConditionalForwarderError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DeleteConditionalForwarderError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DeleteConditionalForwarderError {
                    fn description(&self) -> &str {
                        match *self {
                            DeleteConditionalForwarderError::Client(ref cause) => cause,
DeleteConditionalForwarderError::DirectoryUnavailable(ref cause) => cause,
DeleteConditionalForwarderError::EntityDoesNotExist(ref cause) => cause,
DeleteConditionalForwarderError::InvalidParameter(ref cause) => cause,
DeleteConditionalForwarderError::Service(ref cause) => cause,
DeleteConditionalForwarderError::UnsupportedOperation(ref cause) => cause,
DeleteConditionalForwarderError::Validation(ref cause) => cause,
DeleteConditionalForwarderError::Credentials(ref err) => err.description(),
DeleteConditionalForwarderError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DeleteConditionalForwarderError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DeleteDirectory
                #[derive(Debug, PartialEq)]
                pub enum DeleteDirectoryError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DeleteDirectoryError {
                    pub fn from_body(body: &str) -> DeleteDirectoryError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DeleteDirectoryError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DeleteDirectoryError::EntityDoesNotExist(String::from(error_message)),
"ServiceException" => DeleteDirectoryError::Service(String::from(error_message)),
"ValidationException" => DeleteDirectoryError::Validation(error_message.to_string()),
_ => DeleteDirectoryError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DeleteDirectoryError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DeleteDirectoryError {
                    fn from(err: serde_json::error::Error) -> DeleteDirectoryError {
                        DeleteDirectoryError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DeleteDirectoryError {
                    fn from(err: CredentialsError) -> DeleteDirectoryError {
                        DeleteDirectoryError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DeleteDirectoryError {
                    fn from(err: HttpDispatchError) -> DeleteDirectoryError {
                        DeleteDirectoryError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DeleteDirectoryError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DeleteDirectoryError {
                    fn description(&self) -> &str {
                        match *self {
                            DeleteDirectoryError::Client(ref cause) => cause,
DeleteDirectoryError::EntityDoesNotExist(ref cause) => cause,
DeleteDirectoryError::Service(ref cause) => cause,
DeleteDirectoryError::Validation(ref cause) => cause,
DeleteDirectoryError::Credentials(ref err) => err.description(),
DeleteDirectoryError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DeleteDirectoryError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DeleteSnapshot
                #[derive(Debug, PartialEq)]
                pub enum DeleteSnapshotError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DeleteSnapshotError {
                    pub fn from_body(body: &str) -> DeleteSnapshotError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DeleteSnapshotError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DeleteSnapshotError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => DeleteSnapshotError::InvalidParameter(String::from(error_message)),
"ServiceException" => DeleteSnapshotError::Service(String::from(error_message)),
"ValidationException" => DeleteSnapshotError::Validation(error_message.to_string()),
_ => DeleteSnapshotError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DeleteSnapshotError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DeleteSnapshotError {
                    fn from(err: serde_json::error::Error) -> DeleteSnapshotError {
                        DeleteSnapshotError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DeleteSnapshotError {
                    fn from(err: CredentialsError) -> DeleteSnapshotError {
                        DeleteSnapshotError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DeleteSnapshotError {
                    fn from(err: HttpDispatchError) -> DeleteSnapshotError {
                        DeleteSnapshotError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DeleteSnapshotError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DeleteSnapshotError {
                    fn description(&self) -> &str {
                        match *self {
                            DeleteSnapshotError::Client(ref cause) => cause,
DeleteSnapshotError::EntityDoesNotExist(ref cause) => cause,
DeleteSnapshotError::InvalidParameter(ref cause) => cause,
DeleteSnapshotError::Service(ref cause) => cause,
DeleteSnapshotError::Validation(ref cause) => cause,
DeleteSnapshotError::Credentials(ref err) => err.description(),
DeleteSnapshotError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DeleteSnapshotError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DeleteTrust
                #[derive(Debug, PartialEq)]
                pub enum DeleteTrustError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DeleteTrustError {
                    pub fn from_body(body: &str) -> DeleteTrustError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DeleteTrustError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DeleteTrustError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => DeleteTrustError::InvalidParameter(String::from(error_message)),
"ServiceException" => DeleteTrustError::Service(String::from(error_message)),
"UnsupportedOperationException" => DeleteTrustError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => DeleteTrustError::Validation(error_message.to_string()),
_ => DeleteTrustError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DeleteTrustError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DeleteTrustError {
                    fn from(err: serde_json::error::Error) -> DeleteTrustError {
                        DeleteTrustError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DeleteTrustError {
                    fn from(err: CredentialsError) -> DeleteTrustError {
                        DeleteTrustError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DeleteTrustError {
                    fn from(err: HttpDispatchError) -> DeleteTrustError {
                        DeleteTrustError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DeleteTrustError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DeleteTrustError {
                    fn description(&self) -> &str {
                        match *self {
                            DeleteTrustError::Client(ref cause) => cause,
DeleteTrustError::EntityDoesNotExist(ref cause) => cause,
DeleteTrustError::InvalidParameter(ref cause) => cause,
DeleteTrustError::Service(ref cause) => cause,
DeleteTrustError::UnsupportedOperation(ref cause) => cause,
DeleteTrustError::Validation(ref cause) => cause,
DeleteTrustError::Credentials(ref err) => err.description(),
DeleteTrustError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DeleteTrustError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DeregisterEventTopic
                #[derive(Debug, PartialEq)]
                pub enum DeregisterEventTopicError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DeregisterEventTopicError {
                    pub fn from_body(body: &str) -> DeregisterEventTopicError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DeregisterEventTopicError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DeregisterEventTopicError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => DeregisterEventTopicError::InvalidParameter(String::from(error_message)),
"ServiceException" => DeregisterEventTopicError::Service(String::from(error_message)),
"ValidationException" => DeregisterEventTopicError::Validation(error_message.to_string()),
_ => DeregisterEventTopicError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DeregisterEventTopicError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DeregisterEventTopicError {
                    fn from(err: serde_json::error::Error) -> DeregisterEventTopicError {
                        DeregisterEventTopicError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DeregisterEventTopicError {
                    fn from(err: CredentialsError) -> DeregisterEventTopicError {
                        DeregisterEventTopicError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DeregisterEventTopicError {
                    fn from(err: HttpDispatchError) -> DeregisterEventTopicError {
                        DeregisterEventTopicError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DeregisterEventTopicError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DeregisterEventTopicError {
                    fn description(&self) -> &str {
                        match *self {
                            DeregisterEventTopicError::Client(ref cause) => cause,
DeregisterEventTopicError::EntityDoesNotExist(ref cause) => cause,
DeregisterEventTopicError::InvalidParameter(ref cause) => cause,
DeregisterEventTopicError::Service(ref cause) => cause,
DeregisterEventTopicError::Validation(ref cause) => cause,
DeregisterEventTopicError::Credentials(ref err) => err.description(),
DeregisterEventTopicError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DeregisterEventTopicError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DescribeConditionalForwarders
                #[derive(Debug, PartialEq)]
                pub enum DescribeConditionalForwardersError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DescribeConditionalForwardersError {
                    pub fn from_body(body: &str) -> DescribeConditionalForwardersError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DescribeConditionalForwardersError::Client(String::from(error_message)),
"DirectoryUnavailableException" => DescribeConditionalForwardersError::DirectoryUnavailable(String::from(error_message)),
"EntityDoesNotExistException" => DescribeConditionalForwardersError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => DescribeConditionalForwardersError::InvalidParameter(String::from(error_message)),
"ServiceException" => DescribeConditionalForwardersError::Service(String::from(error_message)),
"UnsupportedOperationException" => DescribeConditionalForwardersError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => DescribeConditionalForwardersError::Validation(error_message.to_string()),
_ => DescribeConditionalForwardersError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DescribeConditionalForwardersError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DescribeConditionalForwardersError {
                    fn from(err: serde_json::error::Error) -> DescribeConditionalForwardersError {
                        DescribeConditionalForwardersError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DescribeConditionalForwardersError {
                    fn from(err: CredentialsError) -> DescribeConditionalForwardersError {
                        DescribeConditionalForwardersError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DescribeConditionalForwardersError {
                    fn from(err: HttpDispatchError) -> DescribeConditionalForwardersError {
                        DescribeConditionalForwardersError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DescribeConditionalForwardersError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DescribeConditionalForwardersError {
                    fn description(&self) -> &str {
                        match *self {
                            DescribeConditionalForwardersError::Client(ref cause) => cause,
DescribeConditionalForwardersError::DirectoryUnavailable(ref cause) => cause,
DescribeConditionalForwardersError::EntityDoesNotExist(ref cause) => cause,
DescribeConditionalForwardersError::InvalidParameter(ref cause) => cause,
DescribeConditionalForwardersError::Service(ref cause) => cause,
DescribeConditionalForwardersError::UnsupportedOperation(ref cause) => cause,
DescribeConditionalForwardersError::Validation(ref cause) => cause,
DescribeConditionalForwardersError::Credentials(ref err) => err.description(),
DescribeConditionalForwardersError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DescribeConditionalForwardersError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DescribeDirectories
                #[derive(Debug, PartialEq)]
                pub enum DescribeDirectoriesError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The <i>NextToken</i> value is not valid.</p>
InvalidNextToken(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DescribeDirectoriesError {
                    pub fn from_body(body: &str) -> DescribeDirectoriesError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DescribeDirectoriesError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DescribeDirectoriesError::EntityDoesNotExist(String::from(error_message)),
"InvalidNextTokenException" => DescribeDirectoriesError::InvalidNextToken(String::from(error_message)),
"InvalidParameterException" => DescribeDirectoriesError::InvalidParameter(String::from(error_message)),
"ServiceException" => DescribeDirectoriesError::Service(String::from(error_message)),
"ValidationException" => DescribeDirectoriesError::Validation(error_message.to_string()),
_ => DescribeDirectoriesError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DescribeDirectoriesError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DescribeDirectoriesError {
                    fn from(err: serde_json::error::Error) -> DescribeDirectoriesError {
                        DescribeDirectoriesError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DescribeDirectoriesError {
                    fn from(err: CredentialsError) -> DescribeDirectoriesError {
                        DescribeDirectoriesError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DescribeDirectoriesError {
                    fn from(err: HttpDispatchError) -> DescribeDirectoriesError {
                        DescribeDirectoriesError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DescribeDirectoriesError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DescribeDirectoriesError {
                    fn description(&self) -> &str {
                        match *self {
                            DescribeDirectoriesError::Client(ref cause) => cause,
DescribeDirectoriesError::EntityDoesNotExist(ref cause) => cause,
DescribeDirectoriesError::InvalidNextToken(ref cause) => cause,
DescribeDirectoriesError::InvalidParameter(ref cause) => cause,
DescribeDirectoriesError::Service(ref cause) => cause,
DescribeDirectoriesError::Validation(ref cause) => cause,
DescribeDirectoriesError::Credentials(ref err) => err.description(),
DescribeDirectoriesError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DescribeDirectoriesError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DescribeEventTopics
                #[derive(Debug, PartialEq)]
                pub enum DescribeEventTopicsError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DescribeEventTopicsError {
                    pub fn from_body(body: &str) -> DescribeEventTopicsError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DescribeEventTopicsError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DescribeEventTopicsError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => DescribeEventTopicsError::InvalidParameter(String::from(error_message)),
"ServiceException" => DescribeEventTopicsError::Service(String::from(error_message)),
"ValidationException" => DescribeEventTopicsError::Validation(error_message.to_string()),
_ => DescribeEventTopicsError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DescribeEventTopicsError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DescribeEventTopicsError {
                    fn from(err: serde_json::error::Error) -> DescribeEventTopicsError {
                        DescribeEventTopicsError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DescribeEventTopicsError {
                    fn from(err: CredentialsError) -> DescribeEventTopicsError {
                        DescribeEventTopicsError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DescribeEventTopicsError {
                    fn from(err: HttpDispatchError) -> DescribeEventTopicsError {
                        DescribeEventTopicsError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DescribeEventTopicsError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DescribeEventTopicsError {
                    fn description(&self) -> &str {
                        match *self {
                            DescribeEventTopicsError::Client(ref cause) => cause,
DescribeEventTopicsError::EntityDoesNotExist(ref cause) => cause,
DescribeEventTopicsError::InvalidParameter(ref cause) => cause,
DescribeEventTopicsError::Service(ref cause) => cause,
DescribeEventTopicsError::Validation(ref cause) => cause,
DescribeEventTopicsError::Credentials(ref err) => err.description(),
DescribeEventTopicsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DescribeEventTopicsError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DescribeSnapshots
                #[derive(Debug, PartialEq)]
                pub enum DescribeSnapshotsError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The <i>NextToken</i> value is not valid.</p>
InvalidNextToken(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DescribeSnapshotsError {
                    pub fn from_body(body: &str) -> DescribeSnapshotsError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DescribeSnapshotsError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DescribeSnapshotsError::EntityDoesNotExist(String::from(error_message)),
"InvalidNextTokenException" => DescribeSnapshotsError::InvalidNextToken(String::from(error_message)),
"InvalidParameterException" => DescribeSnapshotsError::InvalidParameter(String::from(error_message)),
"ServiceException" => DescribeSnapshotsError::Service(String::from(error_message)),
"ValidationException" => DescribeSnapshotsError::Validation(error_message.to_string()),
_ => DescribeSnapshotsError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DescribeSnapshotsError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DescribeSnapshotsError {
                    fn from(err: serde_json::error::Error) -> DescribeSnapshotsError {
                        DescribeSnapshotsError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DescribeSnapshotsError {
                    fn from(err: CredentialsError) -> DescribeSnapshotsError {
                        DescribeSnapshotsError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DescribeSnapshotsError {
                    fn from(err: HttpDispatchError) -> DescribeSnapshotsError {
                        DescribeSnapshotsError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DescribeSnapshotsError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DescribeSnapshotsError {
                    fn description(&self) -> &str {
                        match *self {
                            DescribeSnapshotsError::Client(ref cause) => cause,
DescribeSnapshotsError::EntityDoesNotExist(ref cause) => cause,
DescribeSnapshotsError::InvalidNextToken(ref cause) => cause,
DescribeSnapshotsError::InvalidParameter(ref cause) => cause,
DescribeSnapshotsError::Service(ref cause) => cause,
DescribeSnapshotsError::Validation(ref cause) => cause,
DescribeSnapshotsError::Credentials(ref err) => err.description(),
DescribeSnapshotsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DescribeSnapshotsError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DescribeTrusts
                #[derive(Debug, PartialEq)]
                pub enum DescribeTrustsError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The <i>NextToken</i> value is not valid.</p>
InvalidNextToken(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DescribeTrustsError {
                    pub fn from_body(body: &str) -> DescribeTrustsError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DescribeTrustsError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DescribeTrustsError::EntityDoesNotExist(String::from(error_message)),
"InvalidNextTokenException" => DescribeTrustsError::InvalidNextToken(String::from(error_message)),
"InvalidParameterException" => DescribeTrustsError::InvalidParameter(String::from(error_message)),
"ServiceException" => DescribeTrustsError::Service(String::from(error_message)),
"UnsupportedOperationException" => DescribeTrustsError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => DescribeTrustsError::Validation(error_message.to_string()),
_ => DescribeTrustsError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DescribeTrustsError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DescribeTrustsError {
                    fn from(err: serde_json::error::Error) -> DescribeTrustsError {
                        DescribeTrustsError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DescribeTrustsError {
                    fn from(err: CredentialsError) -> DescribeTrustsError {
                        DescribeTrustsError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DescribeTrustsError {
                    fn from(err: HttpDispatchError) -> DescribeTrustsError {
                        DescribeTrustsError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DescribeTrustsError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DescribeTrustsError {
                    fn description(&self) -> &str {
                        match *self {
                            DescribeTrustsError::Client(ref cause) => cause,
DescribeTrustsError::EntityDoesNotExist(ref cause) => cause,
DescribeTrustsError::InvalidNextToken(ref cause) => cause,
DescribeTrustsError::InvalidParameter(ref cause) => cause,
DescribeTrustsError::Service(ref cause) => cause,
DescribeTrustsError::UnsupportedOperation(ref cause) => cause,
DescribeTrustsError::Validation(ref cause) => cause,
DescribeTrustsError::Credentials(ref err) => err.description(),
DescribeTrustsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DescribeTrustsError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DisableRadius
                #[derive(Debug, PartialEq)]
                pub enum DisableRadiusError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DisableRadiusError {
                    pub fn from_body(body: &str) -> DisableRadiusError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => DisableRadiusError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DisableRadiusError::EntityDoesNotExist(String::from(error_message)),
"ServiceException" => DisableRadiusError::Service(String::from(error_message)),
"ValidationException" => DisableRadiusError::Validation(error_message.to_string()),
_ => DisableRadiusError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DisableRadiusError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DisableRadiusError {
                    fn from(err: serde_json::error::Error) -> DisableRadiusError {
                        DisableRadiusError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DisableRadiusError {
                    fn from(err: CredentialsError) -> DisableRadiusError {
                        DisableRadiusError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DisableRadiusError {
                    fn from(err: HttpDispatchError) -> DisableRadiusError {
                        DisableRadiusError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DisableRadiusError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DisableRadiusError {
                    fn description(&self) -> &str {
                        match *self {
                            DisableRadiusError::Client(ref cause) => cause,
DisableRadiusError::EntityDoesNotExist(ref cause) => cause,
DisableRadiusError::Service(ref cause) => cause,
DisableRadiusError::Validation(ref cause) => cause,
DisableRadiusError::Credentials(ref err) => err.description(),
DisableRadiusError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DisableRadiusError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by DisableSso
                #[derive(Debug, PartialEq)]
                pub enum DisableSsoError {
                    
///<p>An authentication error occurred.</p>
AuthenticationFailed(String),
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The account does not have sufficient permission to perform the operation.</p>
InsufficientPermissions(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl DisableSsoError {
                    pub fn from_body(body: &str) -> DisableSsoError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "AuthenticationFailedException" => DisableSsoError::AuthenticationFailed(String::from(error_message)),
"ClientException" => DisableSsoError::Client(String::from(error_message)),
"EntityDoesNotExistException" => DisableSsoError::EntityDoesNotExist(String::from(error_message)),
"InsufficientPermissionsException" => DisableSsoError::InsufficientPermissions(String::from(error_message)),
"ServiceException" => DisableSsoError::Service(String::from(error_message)),
"ValidationException" => DisableSsoError::Validation(error_message.to_string()),
_ => DisableSsoError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => DisableSsoError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for DisableSsoError {
                    fn from(err: serde_json::error::Error) -> DisableSsoError {
                        DisableSsoError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for DisableSsoError {
                    fn from(err: CredentialsError) -> DisableSsoError {
                        DisableSsoError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for DisableSsoError {
                    fn from(err: HttpDispatchError) -> DisableSsoError {
                        DisableSsoError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for DisableSsoError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for DisableSsoError {
                    fn description(&self) -> &str {
                        match *self {
                            DisableSsoError::AuthenticationFailed(ref cause) => cause,
DisableSsoError::Client(ref cause) => cause,
DisableSsoError::EntityDoesNotExist(ref cause) => cause,
DisableSsoError::InsufficientPermissions(ref cause) => cause,
DisableSsoError::Service(ref cause) => cause,
DisableSsoError::Validation(ref cause) => cause,
DisableSsoError::Credentials(ref err) => err.description(),
DisableSsoError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
DisableSsoError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by EnableRadius
                #[derive(Debug, PartialEq)]
                pub enum EnableRadiusError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity already exists.</p>
EntityAlreadyExists(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl EnableRadiusError {
                    pub fn from_body(body: &str) -> EnableRadiusError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => EnableRadiusError::Client(String::from(error_message)),
"EntityAlreadyExistsException" => EnableRadiusError::EntityAlreadyExists(String::from(error_message)),
"EntityDoesNotExistException" => EnableRadiusError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => EnableRadiusError::InvalidParameter(String::from(error_message)),
"ServiceException" => EnableRadiusError::Service(String::from(error_message)),
"ValidationException" => EnableRadiusError::Validation(error_message.to_string()),
_ => EnableRadiusError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => EnableRadiusError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for EnableRadiusError {
                    fn from(err: serde_json::error::Error) -> EnableRadiusError {
                        EnableRadiusError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for EnableRadiusError {
                    fn from(err: CredentialsError) -> EnableRadiusError {
                        EnableRadiusError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for EnableRadiusError {
                    fn from(err: HttpDispatchError) -> EnableRadiusError {
                        EnableRadiusError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for EnableRadiusError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for EnableRadiusError {
                    fn description(&self) -> &str {
                        match *self {
                            EnableRadiusError::Client(ref cause) => cause,
EnableRadiusError::EntityAlreadyExists(ref cause) => cause,
EnableRadiusError::EntityDoesNotExist(ref cause) => cause,
EnableRadiusError::InvalidParameter(ref cause) => cause,
EnableRadiusError::Service(ref cause) => cause,
EnableRadiusError::Validation(ref cause) => cause,
EnableRadiusError::Credentials(ref err) => err.description(),
EnableRadiusError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
EnableRadiusError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by EnableSso
                #[derive(Debug, PartialEq)]
                pub enum EnableSsoError {
                    
///<p>An authentication error occurred.</p>
AuthenticationFailed(String),
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The account does not have sufficient permission to perform the operation.</p>
InsufficientPermissions(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl EnableSsoError {
                    pub fn from_body(body: &str) -> EnableSsoError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "AuthenticationFailedException" => EnableSsoError::AuthenticationFailed(String::from(error_message)),
"ClientException" => EnableSsoError::Client(String::from(error_message)),
"EntityDoesNotExistException" => EnableSsoError::EntityDoesNotExist(String::from(error_message)),
"InsufficientPermissionsException" => EnableSsoError::InsufficientPermissions(String::from(error_message)),
"ServiceException" => EnableSsoError::Service(String::from(error_message)),
"ValidationException" => EnableSsoError::Validation(error_message.to_string()),
_ => EnableSsoError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => EnableSsoError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for EnableSsoError {
                    fn from(err: serde_json::error::Error) -> EnableSsoError {
                        EnableSsoError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for EnableSsoError {
                    fn from(err: CredentialsError) -> EnableSsoError {
                        EnableSsoError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for EnableSsoError {
                    fn from(err: HttpDispatchError) -> EnableSsoError {
                        EnableSsoError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for EnableSsoError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for EnableSsoError {
                    fn description(&self) -> &str {
                        match *self {
                            EnableSsoError::AuthenticationFailed(ref cause) => cause,
EnableSsoError::Client(ref cause) => cause,
EnableSsoError::EntityDoesNotExist(ref cause) => cause,
EnableSsoError::InsufficientPermissions(ref cause) => cause,
EnableSsoError::Service(ref cause) => cause,
EnableSsoError::Validation(ref cause) => cause,
EnableSsoError::Credentials(ref err) => err.description(),
EnableSsoError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
EnableSsoError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by GetDirectoryLimits
                #[derive(Debug, PartialEq)]
                pub enum GetDirectoryLimitsError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl GetDirectoryLimitsError {
                    pub fn from_body(body: &str) -> GetDirectoryLimitsError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => GetDirectoryLimitsError::Client(String::from(error_message)),
"EntityDoesNotExistException" => GetDirectoryLimitsError::EntityDoesNotExist(String::from(error_message)),
"ServiceException" => GetDirectoryLimitsError::Service(String::from(error_message)),
"ValidationException" => GetDirectoryLimitsError::Validation(error_message.to_string()),
_ => GetDirectoryLimitsError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => GetDirectoryLimitsError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for GetDirectoryLimitsError {
                    fn from(err: serde_json::error::Error) -> GetDirectoryLimitsError {
                        GetDirectoryLimitsError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for GetDirectoryLimitsError {
                    fn from(err: CredentialsError) -> GetDirectoryLimitsError {
                        GetDirectoryLimitsError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for GetDirectoryLimitsError {
                    fn from(err: HttpDispatchError) -> GetDirectoryLimitsError {
                        GetDirectoryLimitsError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for GetDirectoryLimitsError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for GetDirectoryLimitsError {
                    fn description(&self) -> &str {
                        match *self {
                            GetDirectoryLimitsError::Client(ref cause) => cause,
GetDirectoryLimitsError::EntityDoesNotExist(ref cause) => cause,
GetDirectoryLimitsError::Service(ref cause) => cause,
GetDirectoryLimitsError::Validation(ref cause) => cause,
GetDirectoryLimitsError::Credentials(ref err) => err.description(),
GetDirectoryLimitsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
GetDirectoryLimitsError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by GetSnapshotLimits
                #[derive(Debug, PartialEq)]
                pub enum GetSnapshotLimitsError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl GetSnapshotLimitsError {
                    pub fn from_body(body: &str) -> GetSnapshotLimitsError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => GetSnapshotLimitsError::Client(String::from(error_message)),
"EntityDoesNotExistException" => GetSnapshotLimitsError::EntityDoesNotExist(String::from(error_message)),
"ServiceException" => GetSnapshotLimitsError::Service(String::from(error_message)),
"ValidationException" => GetSnapshotLimitsError::Validation(error_message.to_string()),
_ => GetSnapshotLimitsError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => GetSnapshotLimitsError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for GetSnapshotLimitsError {
                    fn from(err: serde_json::error::Error) -> GetSnapshotLimitsError {
                        GetSnapshotLimitsError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for GetSnapshotLimitsError {
                    fn from(err: CredentialsError) -> GetSnapshotLimitsError {
                        GetSnapshotLimitsError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for GetSnapshotLimitsError {
                    fn from(err: HttpDispatchError) -> GetSnapshotLimitsError {
                        GetSnapshotLimitsError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for GetSnapshotLimitsError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for GetSnapshotLimitsError {
                    fn description(&self) -> &str {
                        match *self {
                            GetSnapshotLimitsError::Client(ref cause) => cause,
GetSnapshotLimitsError::EntityDoesNotExist(ref cause) => cause,
GetSnapshotLimitsError::Service(ref cause) => cause,
GetSnapshotLimitsError::Validation(ref cause) => cause,
GetSnapshotLimitsError::Credentials(ref err) => err.description(),
GetSnapshotLimitsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
GetSnapshotLimitsError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by ListIpRoutes
                #[derive(Debug, PartialEq)]
                pub enum ListIpRoutesError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The <i>NextToken</i> value is not valid.</p>
InvalidNextToken(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl ListIpRoutesError {
                    pub fn from_body(body: &str) -> ListIpRoutesError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => ListIpRoutesError::Client(String::from(error_message)),
"EntityDoesNotExistException" => ListIpRoutesError::EntityDoesNotExist(String::from(error_message)),
"InvalidNextTokenException" => ListIpRoutesError::InvalidNextToken(String::from(error_message)),
"InvalidParameterException" => ListIpRoutesError::InvalidParameter(String::from(error_message)),
"ServiceException" => ListIpRoutesError::Service(String::from(error_message)),
"ValidationException" => ListIpRoutesError::Validation(error_message.to_string()),
_ => ListIpRoutesError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => ListIpRoutesError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for ListIpRoutesError {
                    fn from(err: serde_json::error::Error) -> ListIpRoutesError {
                        ListIpRoutesError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for ListIpRoutesError {
                    fn from(err: CredentialsError) -> ListIpRoutesError {
                        ListIpRoutesError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for ListIpRoutesError {
                    fn from(err: HttpDispatchError) -> ListIpRoutesError {
                        ListIpRoutesError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for ListIpRoutesError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for ListIpRoutesError {
                    fn description(&self) -> &str {
                        match *self {
                            ListIpRoutesError::Client(ref cause) => cause,
ListIpRoutesError::EntityDoesNotExist(ref cause) => cause,
ListIpRoutesError::InvalidNextToken(ref cause) => cause,
ListIpRoutesError::InvalidParameter(ref cause) => cause,
ListIpRoutesError::Service(ref cause) => cause,
ListIpRoutesError::Validation(ref cause) => cause,
ListIpRoutesError::Credentials(ref err) => err.description(),
ListIpRoutesError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
ListIpRoutesError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by ListSchemaExtensions
                #[derive(Debug, PartialEq)]
                pub enum ListSchemaExtensionsError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The <i>NextToken</i> value is not valid.</p>
InvalidNextToken(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl ListSchemaExtensionsError {
                    pub fn from_body(body: &str) -> ListSchemaExtensionsError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => ListSchemaExtensionsError::Client(String::from(error_message)),
"EntityDoesNotExistException" => ListSchemaExtensionsError::EntityDoesNotExist(String::from(error_message)),
"InvalidNextTokenException" => ListSchemaExtensionsError::InvalidNextToken(String::from(error_message)),
"ServiceException" => ListSchemaExtensionsError::Service(String::from(error_message)),
"ValidationException" => ListSchemaExtensionsError::Validation(error_message.to_string()),
_ => ListSchemaExtensionsError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => ListSchemaExtensionsError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for ListSchemaExtensionsError {
                    fn from(err: serde_json::error::Error) -> ListSchemaExtensionsError {
                        ListSchemaExtensionsError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for ListSchemaExtensionsError {
                    fn from(err: CredentialsError) -> ListSchemaExtensionsError {
                        ListSchemaExtensionsError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for ListSchemaExtensionsError {
                    fn from(err: HttpDispatchError) -> ListSchemaExtensionsError {
                        ListSchemaExtensionsError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for ListSchemaExtensionsError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for ListSchemaExtensionsError {
                    fn description(&self) -> &str {
                        match *self {
                            ListSchemaExtensionsError::Client(ref cause) => cause,
ListSchemaExtensionsError::EntityDoesNotExist(ref cause) => cause,
ListSchemaExtensionsError::InvalidNextToken(ref cause) => cause,
ListSchemaExtensionsError::Service(ref cause) => cause,
ListSchemaExtensionsError::Validation(ref cause) => cause,
ListSchemaExtensionsError::Credentials(ref err) => err.description(),
ListSchemaExtensionsError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
ListSchemaExtensionsError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by ListTagsForResource
                #[derive(Debug, PartialEq)]
                pub enum ListTagsForResourceError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>The <i>NextToken</i> value is not valid.</p>
InvalidNextToken(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl ListTagsForResourceError {
                    pub fn from_body(body: &str) -> ListTagsForResourceError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => ListTagsForResourceError::Client(String::from(error_message)),
"EntityDoesNotExistException" => ListTagsForResourceError::EntityDoesNotExist(String::from(error_message)),
"InvalidNextTokenException" => ListTagsForResourceError::InvalidNextToken(String::from(error_message)),
"InvalidParameterException" => ListTagsForResourceError::InvalidParameter(String::from(error_message)),
"ServiceException" => ListTagsForResourceError::Service(String::from(error_message)),
"ValidationException" => ListTagsForResourceError::Validation(error_message.to_string()),
_ => ListTagsForResourceError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => ListTagsForResourceError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for ListTagsForResourceError {
                    fn from(err: serde_json::error::Error) -> ListTagsForResourceError {
                        ListTagsForResourceError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for ListTagsForResourceError {
                    fn from(err: CredentialsError) -> ListTagsForResourceError {
                        ListTagsForResourceError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for ListTagsForResourceError {
                    fn from(err: HttpDispatchError) -> ListTagsForResourceError {
                        ListTagsForResourceError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for ListTagsForResourceError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for ListTagsForResourceError {
                    fn description(&self) -> &str {
                        match *self {
                            ListTagsForResourceError::Client(ref cause) => cause,
ListTagsForResourceError::EntityDoesNotExist(ref cause) => cause,
ListTagsForResourceError::InvalidNextToken(ref cause) => cause,
ListTagsForResourceError::InvalidParameter(ref cause) => cause,
ListTagsForResourceError::Service(ref cause) => cause,
ListTagsForResourceError::Validation(ref cause) => cause,
ListTagsForResourceError::Credentials(ref err) => err.description(),
ListTagsForResourceError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
ListTagsForResourceError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by RegisterEventTopic
                #[derive(Debug, PartialEq)]
                pub enum RegisterEventTopicError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl RegisterEventTopicError {
                    pub fn from_body(body: &str) -> RegisterEventTopicError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => RegisterEventTopicError::Client(String::from(error_message)),
"EntityDoesNotExistException" => RegisterEventTopicError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => RegisterEventTopicError::InvalidParameter(String::from(error_message)),
"ServiceException" => RegisterEventTopicError::Service(String::from(error_message)),
"ValidationException" => RegisterEventTopicError::Validation(error_message.to_string()),
_ => RegisterEventTopicError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => RegisterEventTopicError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for RegisterEventTopicError {
                    fn from(err: serde_json::error::Error) -> RegisterEventTopicError {
                        RegisterEventTopicError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for RegisterEventTopicError {
                    fn from(err: CredentialsError) -> RegisterEventTopicError {
                        RegisterEventTopicError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for RegisterEventTopicError {
                    fn from(err: HttpDispatchError) -> RegisterEventTopicError {
                        RegisterEventTopicError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for RegisterEventTopicError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for RegisterEventTopicError {
                    fn description(&self) -> &str {
                        match *self {
                            RegisterEventTopicError::Client(ref cause) => cause,
RegisterEventTopicError::EntityDoesNotExist(ref cause) => cause,
RegisterEventTopicError::InvalidParameter(ref cause) => cause,
RegisterEventTopicError::Service(ref cause) => cause,
RegisterEventTopicError::Validation(ref cause) => cause,
RegisterEventTopicError::Credentials(ref err) => err.description(),
RegisterEventTopicError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
RegisterEventTopicError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by RemoveIpRoutes
                #[derive(Debug, PartialEq)]
                pub enum RemoveIpRoutesError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl RemoveIpRoutesError {
                    pub fn from_body(body: &str) -> RemoveIpRoutesError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => RemoveIpRoutesError::Client(String::from(error_message)),
"DirectoryUnavailableException" => RemoveIpRoutesError::DirectoryUnavailable(String::from(error_message)),
"EntityDoesNotExistException" => RemoveIpRoutesError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => RemoveIpRoutesError::InvalidParameter(String::from(error_message)),
"ServiceException" => RemoveIpRoutesError::Service(String::from(error_message)),
"ValidationException" => RemoveIpRoutesError::Validation(error_message.to_string()),
_ => RemoveIpRoutesError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => RemoveIpRoutesError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for RemoveIpRoutesError {
                    fn from(err: serde_json::error::Error) -> RemoveIpRoutesError {
                        RemoveIpRoutesError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for RemoveIpRoutesError {
                    fn from(err: CredentialsError) -> RemoveIpRoutesError {
                        RemoveIpRoutesError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for RemoveIpRoutesError {
                    fn from(err: HttpDispatchError) -> RemoveIpRoutesError {
                        RemoveIpRoutesError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for RemoveIpRoutesError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for RemoveIpRoutesError {
                    fn description(&self) -> &str {
                        match *self {
                            RemoveIpRoutesError::Client(ref cause) => cause,
RemoveIpRoutesError::DirectoryUnavailable(ref cause) => cause,
RemoveIpRoutesError::EntityDoesNotExist(ref cause) => cause,
RemoveIpRoutesError::InvalidParameter(ref cause) => cause,
RemoveIpRoutesError::Service(ref cause) => cause,
RemoveIpRoutesError::Validation(ref cause) => cause,
RemoveIpRoutesError::Credentials(ref err) => err.description(),
RemoveIpRoutesError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
RemoveIpRoutesError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by RemoveTagsFromResource
                #[derive(Debug, PartialEq)]
                pub enum RemoveTagsFromResourceError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl RemoveTagsFromResourceError {
                    pub fn from_body(body: &str) -> RemoveTagsFromResourceError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => RemoveTagsFromResourceError::Client(String::from(error_message)),
"EntityDoesNotExistException" => RemoveTagsFromResourceError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => RemoveTagsFromResourceError::InvalidParameter(String::from(error_message)),
"ServiceException" => RemoveTagsFromResourceError::Service(String::from(error_message)),
"ValidationException" => RemoveTagsFromResourceError::Validation(error_message.to_string()),
_ => RemoveTagsFromResourceError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => RemoveTagsFromResourceError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for RemoveTagsFromResourceError {
                    fn from(err: serde_json::error::Error) -> RemoveTagsFromResourceError {
                        RemoveTagsFromResourceError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for RemoveTagsFromResourceError {
                    fn from(err: CredentialsError) -> RemoveTagsFromResourceError {
                        RemoveTagsFromResourceError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for RemoveTagsFromResourceError {
                    fn from(err: HttpDispatchError) -> RemoveTagsFromResourceError {
                        RemoveTagsFromResourceError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for RemoveTagsFromResourceError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for RemoveTagsFromResourceError {
                    fn description(&self) -> &str {
                        match *self {
                            RemoveTagsFromResourceError::Client(ref cause) => cause,
RemoveTagsFromResourceError::EntityDoesNotExist(ref cause) => cause,
RemoveTagsFromResourceError::InvalidParameter(ref cause) => cause,
RemoveTagsFromResourceError::Service(ref cause) => cause,
RemoveTagsFromResourceError::Validation(ref cause) => cause,
RemoveTagsFromResourceError::Credentials(ref err) => err.description(),
RemoveTagsFromResourceError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
RemoveTagsFromResourceError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by RestoreFromSnapshot
                #[derive(Debug, PartialEq)]
                pub enum RestoreFromSnapshotError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl RestoreFromSnapshotError {
                    pub fn from_body(body: &str) -> RestoreFromSnapshotError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => RestoreFromSnapshotError::Client(String::from(error_message)),
"EntityDoesNotExistException" => RestoreFromSnapshotError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => RestoreFromSnapshotError::InvalidParameter(String::from(error_message)),
"ServiceException" => RestoreFromSnapshotError::Service(String::from(error_message)),
"ValidationException" => RestoreFromSnapshotError::Validation(error_message.to_string()),
_ => RestoreFromSnapshotError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => RestoreFromSnapshotError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for RestoreFromSnapshotError {
                    fn from(err: serde_json::error::Error) -> RestoreFromSnapshotError {
                        RestoreFromSnapshotError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for RestoreFromSnapshotError {
                    fn from(err: CredentialsError) -> RestoreFromSnapshotError {
                        RestoreFromSnapshotError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for RestoreFromSnapshotError {
                    fn from(err: HttpDispatchError) -> RestoreFromSnapshotError {
                        RestoreFromSnapshotError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for RestoreFromSnapshotError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for RestoreFromSnapshotError {
                    fn description(&self) -> &str {
                        match *self {
                            RestoreFromSnapshotError::Client(ref cause) => cause,
RestoreFromSnapshotError::EntityDoesNotExist(ref cause) => cause,
RestoreFromSnapshotError::InvalidParameter(ref cause) => cause,
RestoreFromSnapshotError::Service(ref cause) => cause,
RestoreFromSnapshotError::Validation(ref cause) => cause,
RestoreFromSnapshotError::Credentials(ref err) => err.description(),
RestoreFromSnapshotError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
RestoreFromSnapshotError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by StartSchemaExtension
                #[derive(Debug, PartialEq)]
                pub enum StartSchemaExtensionError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The maximum number of manual snapshots for the directory has been reached. You can use the <a>GetSnapshotLimits</a> operation to determine the snapshot limits for a directory.</p>
SnapshotLimitExceeded(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl StartSchemaExtensionError {
                    pub fn from_body(body: &str) -> StartSchemaExtensionError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => StartSchemaExtensionError::Client(String::from(error_message)),
"DirectoryUnavailableException" => StartSchemaExtensionError::DirectoryUnavailable(String::from(error_message)),
"EntityDoesNotExistException" => StartSchemaExtensionError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => StartSchemaExtensionError::InvalidParameter(String::from(error_message)),
"ServiceException" => StartSchemaExtensionError::Service(String::from(error_message)),
"SnapshotLimitExceededException" => StartSchemaExtensionError::SnapshotLimitExceeded(String::from(error_message)),
"ValidationException" => StartSchemaExtensionError::Validation(error_message.to_string()),
_ => StartSchemaExtensionError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => StartSchemaExtensionError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for StartSchemaExtensionError {
                    fn from(err: serde_json::error::Error) -> StartSchemaExtensionError {
                        StartSchemaExtensionError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for StartSchemaExtensionError {
                    fn from(err: CredentialsError) -> StartSchemaExtensionError {
                        StartSchemaExtensionError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for StartSchemaExtensionError {
                    fn from(err: HttpDispatchError) -> StartSchemaExtensionError {
                        StartSchemaExtensionError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for StartSchemaExtensionError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for StartSchemaExtensionError {
                    fn description(&self) -> &str {
                        match *self {
                            StartSchemaExtensionError::Client(ref cause) => cause,
StartSchemaExtensionError::DirectoryUnavailable(ref cause) => cause,
StartSchemaExtensionError::EntityDoesNotExist(ref cause) => cause,
StartSchemaExtensionError::InvalidParameter(ref cause) => cause,
StartSchemaExtensionError::Service(ref cause) => cause,
StartSchemaExtensionError::SnapshotLimitExceeded(ref cause) => cause,
StartSchemaExtensionError::Validation(ref cause) => cause,
StartSchemaExtensionError::Credentials(ref err) => err.description(),
StartSchemaExtensionError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
StartSchemaExtensionError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by UpdateConditionalForwarder
                #[derive(Debug, PartialEq)]
                pub enum UpdateConditionalForwarderError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified directory is unavailable or could not be found.</p>
DirectoryUnavailable(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl UpdateConditionalForwarderError {
                    pub fn from_body(body: &str) -> UpdateConditionalForwarderError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => UpdateConditionalForwarderError::Client(String::from(error_message)),
"DirectoryUnavailableException" => UpdateConditionalForwarderError::DirectoryUnavailable(String::from(error_message)),
"EntityDoesNotExistException" => UpdateConditionalForwarderError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => UpdateConditionalForwarderError::InvalidParameter(String::from(error_message)),
"ServiceException" => UpdateConditionalForwarderError::Service(String::from(error_message)),
"UnsupportedOperationException" => UpdateConditionalForwarderError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => UpdateConditionalForwarderError::Validation(error_message.to_string()),
_ => UpdateConditionalForwarderError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => UpdateConditionalForwarderError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for UpdateConditionalForwarderError {
                    fn from(err: serde_json::error::Error) -> UpdateConditionalForwarderError {
                        UpdateConditionalForwarderError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for UpdateConditionalForwarderError {
                    fn from(err: CredentialsError) -> UpdateConditionalForwarderError {
                        UpdateConditionalForwarderError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for UpdateConditionalForwarderError {
                    fn from(err: HttpDispatchError) -> UpdateConditionalForwarderError {
                        UpdateConditionalForwarderError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for UpdateConditionalForwarderError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for UpdateConditionalForwarderError {
                    fn description(&self) -> &str {
                        match *self {
                            UpdateConditionalForwarderError::Client(ref cause) => cause,
UpdateConditionalForwarderError::DirectoryUnavailable(ref cause) => cause,
UpdateConditionalForwarderError::EntityDoesNotExist(ref cause) => cause,
UpdateConditionalForwarderError::InvalidParameter(ref cause) => cause,
UpdateConditionalForwarderError::Service(ref cause) => cause,
UpdateConditionalForwarderError::UnsupportedOperation(ref cause) => cause,
UpdateConditionalForwarderError::Validation(ref cause) => cause,
UpdateConditionalForwarderError::Credentials(ref err) => err.description(),
UpdateConditionalForwarderError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
UpdateConditionalForwarderError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by UpdateRadius
                #[derive(Debug, PartialEq)]
                pub enum UpdateRadiusError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl UpdateRadiusError {
                    pub fn from_body(body: &str) -> UpdateRadiusError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => UpdateRadiusError::Client(String::from(error_message)),
"EntityDoesNotExistException" => UpdateRadiusError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => UpdateRadiusError::InvalidParameter(String::from(error_message)),
"ServiceException" => UpdateRadiusError::Service(String::from(error_message)),
"ValidationException" => UpdateRadiusError::Validation(error_message.to_string()),
_ => UpdateRadiusError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => UpdateRadiusError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for UpdateRadiusError {
                    fn from(err: serde_json::error::Error) -> UpdateRadiusError {
                        UpdateRadiusError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for UpdateRadiusError {
                    fn from(err: CredentialsError) -> UpdateRadiusError {
                        UpdateRadiusError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for UpdateRadiusError {
                    fn from(err: HttpDispatchError) -> UpdateRadiusError {
                        UpdateRadiusError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for UpdateRadiusError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for UpdateRadiusError {
                    fn description(&self) -> &str {
                        match *self {
                            UpdateRadiusError::Client(ref cause) => cause,
UpdateRadiusError::EntityDoesNotExist(ref cause) => cause,
UpdateRadiusError::InvalidParameter(ref cause) => cause,
UpdateRadiusError::Service(ref cause) => cause,
UpdateRadiusError::Validation(ref cause) => cause,
UpdateRadiusError::Credentials(ref err) => err.description(),
UpdateRadiusError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
UpdateRadiusError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Errors returned by VerifyTrust
                #[derive(Debug, PartialEq)]
                pub enum VerifyTrustError {
                    
///<p>A client exception has occurred.</p>
Client(String),
///<p>The specified entity could not be found.</p>
EntityDoesNotExist(String),
///<p>One or more parameters are not valid.</p>
InvalidParameter(String),
///<p>An exception has occurred in AWS Directory Service.</p>
Service(String),
///<p>The operation is not supported.</p>
UnsupportedOperation(String),/// An error occurred dispatching the HTTP request
HttpDispatch(HttpDispatchError),/// An error was encountered with AWS credentials.
Credentials(CredentialsError),/// A validation error occurred.  Details from AWS are provided.
Validation(String),/// An unknown error occurred.  The raw HTTP response is provided.
Unknown(String)
                }

                
                impl VerifyTrustError {
                    pub fn from_body(body: &str) -> VerifyTrustError {
                        match from_str::<SerdeJsonValue>(body) {
                            Ok(json) => {
                                let raw_error_type = json.get("__type").and_then(|e| e.as_str()).unwrap_or("Unknown");
                                let error_message = json.get("message").and_then(|m| m.as_str()).unwrap_or(body);

                                let pieces: Vec<&str> = raw_error_type.split("#").collect();
                                let error_type = pieces.last().expect("Expected error type");

                                match *error_type {
                                    "ClientException" => VerifyTrustError::Client(String::from(error_message)),
"EntityDoesNotExistException" => VerifyTrustError::EntityDoesNotExist(String::from(error_message)),
"InvalidParameterException" => VerifyTrustError::InvalidParameter(String::from(error_message)),
"ServiceException" => VerifyTrustError::Service(String::from(error_message)),
"UnsupportedOperationException" => VerifyTrustError::UnsupportedOperation(String::from(error_message)),
"ValidationException" => VerifyTrustError::Validation(error_message.to_string()),
_ => VerifyTrustError::Unknown(String::from(body))
                                }
                            },
                            Err(_) => VerifyTrustError::Unknown(String::from(body))
                        }
                    }
                }
                
                impl From<serde_json::error::Error> for VerifyTrustError {
                    fn from(err: serde_json::error::Error) -> VerifyTrustError {
                        VerifyTrustError::Unknown(err.description().to_string())
                    }
                }
                impl From<CredentialsError> for VerifyTrustError {
                    fn from(err: CredentialsError) -> VerifyTrustError {
                        VerifyTrustError::Credentials(err)
                    }
                }
                impl From<HttpDispatchError> for VerifyTrustError {
                    fn from(err: HttpDispatchError) -> VerifyTrustError {
                        VerifyTrustError::HttpDispatch(err)
                    }
                }
                impl fmt::Display for VerifyTrustError {
                    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        write!(f, "{}", self.description())
                    }
                }
                impl Error for VerifyTrustError {
                    fn description(&self) -> &str {
                        match *self {
                            VerifyTrustError::Client(ref cause) => cause,
VerifyTrustError::EntityDoesNotExist(ref cause) => cause,
VerifyTrustError::InvalidParameter(ref cause) => cause,
VerifyTrustError::Service(ref cause) => cause,
VerifyTrustError::UnsupportedOperation(ref cause) => cause,
VerifyTrustError::Validation(ref cause) => cause,
VerifyTrustError::Credentials(ref err) => err.description(),
VerifyTrustError::HttpDispatch(ref dispatch_error) => dispatch_error.description(),
VerifyTrustError::Unknown(ref cause) => cause
                        }
                    }
                 }
/// Trait representing the capabilities of the Directory Service API. Directory Service clients implement this trait.
        pub trait DirectoryService {
        

                #[doc="<p>If the DNS server for your on-premises domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. <i>AddIpRoutes</i> adds this address block. You can also use <i>AddIpRoutes</i> to facilitate routing traffic that uses public IP ranges from your Microsoft AD on AWS to a peer VPC. </p> <p>Before you call <i>AddIpRoutes</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>AddIpRoutes</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn add_ip_routes(&self, input: &AddIpRoutesRequest)  -> Result<AddIpRoutesResult, AddIpRoutesError>;
                

                #[doc="<p>Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.</p>"]
                fn add_tags_to_resource(&self, input: &AddTagsToResourceRequest)  -> Result<AddTagsToResourceResult, AddTagsToResourceError>;
                

                #[doc="<p>Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; <code>Initializing</code>, <code>CreatingSnapshot</code>, and <code>UpdatingSchema</code>.</p>"]
                fn cancel_schema_extension(&self, input: &CancelSchemaExtensionRequest)  -> Result<CancelSchemaExtensionResult, CancelSchemaExtensionError>;
                

                #[doc="<p>Creates an AD Connector to connect to an on-premises directory.</p> <p>Before you call <i>ConnectDirectory</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>ConnectDirectory</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn connect_directory(&self, input: &ConnectDirectoryRequest)  -> Result<ConnectDirectoryResult, ConnectDirectoryError>;
                

                #[doc="<p>Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as <code>http://&lt;alias&gt;.awsapps.com</code>.</p> <important> <p>After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.</p> </important>"]
                fn create_alias(&self, input: &CreateAliasRequest)  -> Result<CreateAliasResult, CreateAliasError>;
                

                #[doc="<p>Creates a computer account in the specified directory, and joins the computer to the directory.</p>"]
                fn create_computer(&self, input: &CreateComputerRequest)  -> Result<CreateComputerResult, CreateComputerError>;
                

                #[doc="<p>Creates a conditional forwarder associated with your AWS directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.</p>"]
                fn create_conditional_forwarder(&self, input: &CreateConditionalForwarderRequest)  -> Result<CreateConditionalForwarderResult, CreateConditionalForwarderError>;
                

                #[doc="<p>Creates a Simple AD directory.</p> <p>Before you call <i>CreateDirectory</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>CreateDirectory</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn create_directory(&self, input: &CreateDirectoryRequest)  -> Result<CreateDirectoryResult, CreateDirectoryError>;
                

                #[doc="<p>Creates a Microsoft AD in the AWS cloud.</p> <p>Before you call <i>CreateMicrosoftAD</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>CreateMicrosoftAD</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn create_microsoft_ad(&self, input: &CreateMicrosoftADRequest)  -> Result<CreateMicrosoftADResult, CreateMicrosoftADError>;
                

                #[doc="<p>Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.</p> <note> <p>You cannot take snapshots of AD Connector directories.</p> </note>"]
                fn create_snapshot(&self, input: &CreateSnapshotRequest)  -> Result<CreateSnapshotResult, CreateSnapshotError>;
                

                #[doc="<p>AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.</p> <p>This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.</p>"]
                fn create_trust(&self, input: &CreateTrustRequest)  -> Result<CreateTrustResult, CreateTrustError>;
                

                #[doc="<p>Deletes a conditional forwarder that has been set up for your AWS directory.</p>"]
                fn delete_conditional_forwarder(&self, input: &DeleteConditionalForwarderRequest)  -> Result<DeleteConditionalForwarderResult, DeleteConditionalForwarderError>;
                

                #[doc="<p>Deletes an AWS Directory Service directory.</p> <p>Before you call <i>DeleteDirectory</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>DeleteDirectory</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn delete_directory(&self, input: &DeleteDirectoryRequest)  -> Result<DeleteDirectoryResult, DeleteDirectoryError>;
                

                #[doc="<p>Deletes a directory snapshot.</p>"]
                fn delete_snapshot(&self, input: &DeleteSnapshotRequest)  -> Result<DeleteSnapshotResult, DeleteSnapshotError>;
                

                #[doc="<p>Deletes an existing trust relationship between your Microsoft AD in the AWS cloud and an external domain.</p>"]
                fn delete_trust(&self, input: &DeleteTrustRequest)  -> Result<DeleteTrustResult, DeleteTrustError>;
                

                #[doc="<p>Removes the specified directory as a publisher to the specified SNS topic.</p>"]
                fn deregister_event_topic(&self, input: &DeregisterEventTopicRequest)  -> Result<DeregisterEventTopicResult, DeregisterEventTopicError>;
                

                #[doc="<p>Obtains information about the conditional forwarders for this account.</p> <p>If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.</p>"]
                fn describe_conditional_forwarders(&self, input: &DescribeConditionalForwardersRequest)  -> Result<DescribeConditionalForwardersResult, DescribeConditionalForwardersError>;
                

                #[doc="<p>Obtains information about the directories that belong to this account.</p> <p>You can retrieve information about specific directories by passing the directory identifiers in the <i>DirectoryIds</i> parameter. Otherwise, all directories that belong to the current account are returned.</p> <p>This operation supports pagination with the use of the <i>NextToken</i> request and response parameters. If more results are available, the <i>DescribeDirectoriesResult.NextToken</i> member contains a token that you pass in the next call to <a>DescribeDirectories</a> to retrieve the next set of items.</p> <p>You can also specify a maximum number of return results with the <i>Limit</i> parameter.</p>"]
                fn describe_directories(&self, input: &DescribeDirectoriesRequest)  -> Result<DescribeDirectoriesResult, DescribeDirectoriesError>;
                

                #[doc="<p>Obtains information about which SNS topics receive status messages from the specified directory.</p> <p>If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.</p>"]
                fn describe_event_topics(&self, input: &DescribeEventTopicsRequest)  -> Result<DescribeEventTopicsResult, DescribeEventTopicsError>;
                

                #[doc="<p>Obtains information about the directory snapshots that belong to this account.</p> <p>This operation supports pagination with the use of the <i>NextToken</i> request and response parameters. If more results are available, the <i>DescribeSnapshots.NextToken</i> member contains a token that you pass in the next call to <a>DescribeSnapshots</a> to retrieve the next set of items.</p> <p>You can also specify a maximum number of return results with the <i>Limit</i> parameter.</p>"]
                fn describe_snapshots(&self, input: &DescribeSnapshotsRequest)  -> Result<DescribeSnapshotsResult, DescribeSnapshotsError>;
                

                #[doc="<p>Obtains information about the trust relationships for this account.</p> <p>If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.</p>"]
                fn describe_trusts(&self, input: &DescribeTrustsRequest)  -> Result<DescribeTrustsResult, DescribeTrustsError>;
                

                #[doc="<p>Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.</p>"]
                fn disable_radius(&self, input: &DisableRadiusRequest)  -> Result<DisableRadiusResult, DisableRadiusError>;
                

                #[doc="<p>Disables single-sign on for a directory.</p>"]
                fn disable_sso(&self, input: &DisableSsoRequest)  -> Result<DisableSsoResult, DisableSsoError>;
                

                #[doc="<p>Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.</p>"]
                fn enable_radius(&self, input: &EnableRadiusRequest)  -> Result<EnableRadiusResult, EnableRadiusError>;
                

                #[doc="<p>Enables single sign-on for a directory.</p>"]
                fn enable_sso(&self, input: &EnableSsoRequest)  -> Result<EnableSsoResult, EnableSsoError>;
                

                #[doc="<p>Obtains directory limit information for the current region.</p>"]
                fn get_directory_limits(&self, input: &GetDirectoryLimitsRequest)  -> Result<GetDirectoryLimitsResult, GetDirectoryLimitsError>;
                

                #[doc="<p>Obtains the manual snapshot limits for a directory.</p>"]
                fn get_snapshot_limits(&self, input: &GetSnapshotLimitsRequest)  -> Result<GetSnapshotLimitsResult, GetSnapshotLimitsError>;
                

                #[doc="<p>Lists the address blocks that you have added to a directory.</p>"]
                fn list_ip_routes(&self, input: &ListIpRoutesRequest)  -> Result<ListIpRoutesResult, ListIpRoutesError>;
                

                #[doc="<p>Lists all schema extensions applied to a Microsoft AD Directory.</p>"]
                fn list_schema_extensions(&self, input: &ListSchemaExtensionsRequest)  -> Result<ListSchemaExtensionsResult, ListSchemaExtensionsError>;
                

                #[doc="<p>Lists all tags on a directory.</p>"]
                fn list_tags_for_resource(&self, input: &ListTagsForResourceRequest)  -> Result<ListTagsForResourceResult, ListTagsForResourceError>;
                

                #[doc="<p>Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.</p>"]
                fn register_event_topic(&self, input: &RegisterEventTopicRequest)  -> Result<RegisterEventTopicResult, RegisterEventTopicError>;
                

                #[doc="<p>Removes IP address blocks from a directory.</p>"]
                fn remove_ip_routes(&self, input: &RemoveIpRoutesRequest)  -> Result<RemoveIpRoutesResult, RemoveIpRoutesError>;
                

                #[doc="<p>Removes tags from a directory.</p>"]
                fn remove_tags_from_resource(&self, input: &RemoveTagsFromResourceRequest)  -> Result<RemoveTagsFromResourceResult, RemoveTagsFromResourceError>;
                

                #[doc="<p>Restores a directory using an existing directory snapshot.</p> <p>When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.</p> <p>This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the <a>DescribeDirectories</a> operation with the directory identifier. When the <b>DirectoryDescription.Stage</b> value changes to <code>Active</code>, the restore operation is complete.</p>"]
                fn restore_from_snapshot(&self, input: &RestoreFromSnapshotRequest)  -> Result<RestoreFromSnapshotResult, RestoreFromSnapshotError>;
                

                #[doc="<p>Applies a schema extension to a Microsoft AD directory.</p>"]
                fn start_schema_extension(&self, input: &StartSchemaExtensionRequest)  -> Result<StartSchemaExtensionResult, StartSchemaExtensionError>;
                

                #[doc="<p>Updates a conditional forwarder that has been set up for your AWS directory.</p>"]
                fn update_conditional_forwarder(&self, input: &UpdateConditionalForwarderRequest)  -> Result<UpdateConditionalForwarderResult, UpdateConditionalForwarderError>;
                

                #[doc="<p>Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.</p>"]
                fn update_radius(&self, input: &UpdateRadiusRequest)  -> Result<UpdateRadiusResult, UpdateRadiusError>;
                

                #[doc="<p>AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.</p> <p>This action verifies a trust relationship between your Microsoft AD in the AWS cloud and an external domain.</p>"]
                fn verify_trust(&self, input: &VerifyTrustRequest)  -> Result<VerifyTrustResult, VerifyTrustError>;
                
}
/// A client for the Directory Service API.
        pub struct DirectoryServiceClient<P, D> where P: ProvideAwsCredentials, D: DispatchSignedRequest {
            credentials_provider: P,
            region: region::Region,
            dispatcher: D,
        }

        impl<P, D> DirectoryServiceClient<P, D> where P: ProvideAwsCredentials, D: DispatchSignedRequest {
            pub fn new(request_dispatcher: D, credentials_provider: P, region: region::Region) -> Self {
                  DirectoryServiceClient {
                    credentials_provider: credentials_provider,
                    region: region,
                    dispatcher: request_dispatcher
                }
            }
        }

        impl<P, D> DirectoryService for DirectoryServiceClient<P, D> where P: ProvideAwsCredentials, D: DispatchSignedRequest {
        

                #[doc="<p>If the DNS server for your on-premises domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. <i>AddIpRoutes</i> adds this address block. You can also use <i>AddIpRoutes</i> to facilitate routing traffic that uses public IP ranges from your Microsoft AD on AWS to a peer VPC. </p> <p>Before you call <i>AddIpRoutes</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>AddIpRoutes</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn add_ip_routes(&self, input: &AddIpRoutesRequest)  -> Result<AddIpRoutesResult, AddIpRoutesError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.AddIpRoutes");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<AddIpRoutesResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(AddIpRoutesError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.</p>"]
                fn add_tags_to_resource(&self, input: &AddTagsToResourceRequest)  -> Result<AddTagsToResourceResult, AddTagsToResourceError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.AddTagsToResource");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<AddTagsToResourceResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(AddTagsToResourceError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; <code>Initializing</code>, <code>CreatingSnapshot</code>, and <code>UpdatingSchema</code>.</p>"]
                fn cancel_schema_extension(&self, input: &CancelSchemaExtensionRequest)  -> Result<CancelSchemaExtensionResult, CancelSchemaExtensionError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CancelSchemaExtension");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CancelSchemaExtensionResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CancelSchemaExtensionError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates an AD Connector to connect to an on-premises directory.</p> <p>Before you call <i>ConnectDirectory</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>ConnectDirectory</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn connect_directory(&self, input: &ConnectDirectoryRequest)  -> Result<ConnectDirectoryResult, ConnectDirectoryError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.ConnectDirectory");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<ConnectDirectoryResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(ConnectDirectoryError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as <code>http://&lt;alias&gt;.awsapps.com</code>.</p> <important> <p>After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.</p> </important>"]
                fn create_alias(&self, input: &CreateAliasRequest)  -> Result<CreateAliasResult, CreateAliasError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateAlias");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateAliasResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateAliasError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates a computer account in the specified directory, and joins the computer to the directory.</p>"]
                fn create_computer(&self, input: &CreateComputerRequest)  -> Result<CreateComputerResult, CreateComputerError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateComputer");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateComputerResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateComputerError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates a conditional forwarder associated with your AWS directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.</p>"]
                fn create_conditional_forwarder(&self, input: &CreateConditionalForwarderRequest)  -> Result<CreateConditionalForwarderResult, CreateConditionalForwarderError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateConditionalForwarder");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateConditionalForwarderResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateConditionalForwarderError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates a Simple AD directory.</p> <p>Before you call <i>CreateDirectory</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>CreateDirectory</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn create_directory(&self, input: &CreateDirectoryRequest)  -> Result<CreateDirectoryResult, CreateDirectoryError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateDirectory");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateDirectoryResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateDirectoryError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates a Microsoft AD in the AWS cloud.</p> <p>Before you call <i>CreateMicrosoftAD</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>CreateMicrosoftAD</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn create_microsoft_ad(&self, input: &CreateMicrosoftADRequest)  -> Result<CreateMicrosoftADResult, CreateMicrosoftADError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateMicrosoftAD");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateMicrosoftADResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateMicrosoftADError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.</p> <note> <p>You cannot take snapshots of AD Connector directories.</p> </note>"]
                fn create_snapshot(&self, input: &CreateSnapshotRequest)  -> Result<CreateSnapshotResult, CreateSnapshotError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateSnapshot");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateSnapshotResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateSnapshotError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Microsoft AD in the AWS cloud, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.</p> <p>This action initiates the creation of the AWS side of a trust relationship between a Microsoft AD in the AWS cloud and an external domain.</p>"]
                fn create_trust(&self, input: &CreateTrustRequest)  -> Result<CreateTrustResult, CreateTrustError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.CreateTrust");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<CreateTrustResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(CreateTrustError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Deletes a conditional forwarder that has been set up for your AWS directory.</p>"]
                fn delete_conditional_forwarder(&self, input: &DeleteConditionalForwarderRequest)  -> Result<DeleteConditionalForwarderResult, DeleteConditionalForwarderError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DeleteConditionalForwarder");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DeleteConditionalForwarderResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DeleteConditionalForwarderError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Deletes an AWS Directory Service directory.</p> <p>Before you call <i>DeleteDirectory</i>, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the <i>DeleteDirectory</i> operation, see <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/UsingWithDS_IAM_ResourcePermissions.html\">AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference</a>.</p>"]
                fn delete_directory(&self, input: &DeleteDirectoryRequest)  -> Result<DeleteDirectoryResult, DeleteDirectoryError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DeleteDirectory");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DeleteDirectoryResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DeleteDirectoryError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Deletes a directory snapshot.</p>"]
                fn delete_snapshot(&self, input: &DeleteSnapshotRequest)  -> Result<DeleteSnapshotResult, DeleteSnapshotError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DeleteSnapshot");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DeleteSnapshotResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DeleteSnapshotError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Deletes an existing trust relationship between your Microsoft AD in the AWS cloud and an external domain.</p>"]
                fn delete_trust(&self, input: &DeleteTrustRequest)  -> Result<DeleteTrustResult, DeleteTrustError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DeleteTrust");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DeleteTrustResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DeleteTrustError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Removes the specified directory as a publisher to the specified SNS topic.</p>"]
                fn deregister_event_topic(&self, input: &DeregisterEventTopicRequest)  -> Result<DeregisterEventTopicResult, DeregisterEventTopicError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DeregisterEventTopic");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DeregisterEventTopicResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DeregisterEventTopicError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains information about the conditional forwarders for this account.</p> <p>If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.</p>"]
                fn describe_conditional_forwarders(&self, input: &DescribeConditionalForwardersRequest)  -> Result<DescribeConditionalForwardersResult, DescribeConditionalForwardersError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DescribeConditionalForwarders");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DescribeConditionalForwardersResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DescribeConditionalForwardersError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains information about the directories that belong to this account.</p> <p>You can retrieve information about specific directories by passing the directory identifiers in the <i>DirectoryIds</i> parameter. Otherwise, all directories that belong to the current account are returned.</p> <p>This operation supports pagination with the use of the <i>NextToken</i> request and response parameters. If more results are available, the <i>DescribeDirectoriesResult.NextToken</i> member contains a token that you pass in the next call to <a>DescribeDirectories</a> to retrieve the next set of items.</p> <p>You can also specify a maximum number of return results with the <i>Limit</i> parameter.</p>"]
                fn describe_directories(&self, input: &DescribeDirectoriesRequest)  -> Result<DescribeDirectoriesResult, DescribeDirectoriesError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DescribeDirectories");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DescribeDirectoriesResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DescribeDirectoriesError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains information about which SNS topics receive status messages from the specified directory.</p> <p>If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.</p>"]
                fn describe_event_topics(&self, input: &DescribeEventTopicsRequest)  -> Result<DescribeEventTopicsResult, DescribeEventTopicsError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DescribeEventTopics");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DescribeEventTopicsResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DescribeEventTopicsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains information about the directory snapshots that belong to this account.</p> <p>This operation supports pagination with the use of the <i>NextToken</i> request and response parameters. If more results are available, the <i>DescribeSnapshots.NextToken</i> member contains a token that you pass in the next call to <a>DescribeSnapshots</a> to retrieve the next set of items.</p> <p>You can also specify a maximum number of return results with the <i>Limit</i> parameter.</p>"]
                fn describe_snapshots(&self, input: &DescribeSnapshotsRequest)  -> Result<DescribeSnapshotsResult, DescribeSnapshotsError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DescribeSnapshots");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DescribeSnapshotsResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DescribeSnapshotsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains information about the trust relationships for this account.</p> <p>If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.</p>"]
                fn describe_trusts(&self, input: &DescribeTrustsRequest)  -> Result<DescribeTrustsResult, DescribeTrustsError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DescribeTrusts");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DescribeTrustsResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DescribeTrustsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.</p>"]
                fn disable_radius(&self, input: &DisableRadiusRequest)  -> Result<DisableRadiusResult, DisableRadiusError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DisableRadius");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DisableRadiusResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DisableRadiusError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Disables single-sign on for a directory.</p>"]
                fn disable_sso(&self, input: &DisableSsoRequest)  -> Result<DisableSsoResult, DisableSsoError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.DisableSso");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<DisableSsoResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(DisableSsoError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.</p>"]
                fn enable_radius(&self, input: &EnableRadiusRequest)  -> Result<EnableRadiusResult, EnableRadiusError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.EnableRadius");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<EnableRadiusResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(EnableRadiusError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Enables single sign-on for a directory.</p>"]
                fn enable_sso(&self, input: &EnableSsoRequest)  -> Result<EnableSsoResult, EnableSsoError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.EnableSso");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<EnableSsoResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(EnableSsoError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains directory limit information for the current region.</p>"]
                fn get_directory_limits(&self, input: &GetDirectoryLimitsRequest)  -> Result<GetDirectoryLimitsResult, GetDirectoryLimitsError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.GetDirectoryLimits");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<GetDirectoryLimitsResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(GetDirectoryLimitsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Obtains the manual snapshot limits for a directory.</p>"]
                fn get_snapshot_limits(&self, input: &GetSnapshotLimitsRequest)  -> Result<GetSnapshotLimitsResult, GetSnapshotLimitsError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.GetSnapshotLimits");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<GetSnapshotLimitsResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(GetSnapshotLimitsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Lists the address blocks that you have added to a directory.</p>"]
                fn list_ip_routes(&self, input: &ListIpRoutesRequest)  -> Result<ListIpRoutesResult, ListIpRoutesError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.ListIpRoutes");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<ListIpRoutesResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(ListIpRoutesError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Lists all schema extensions applied to a Microsoft AD Directory.</p>"]
                fn list_schema_extensions(&self, input: &ListSchemaExtensionsRequest)  -> Result<ListSchemaExtensionsResult, ListSchemaExtensionsError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.ListSchemaExtensions");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<ListSchemaExtensionsResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(ListSchemaExtensionsError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Lists all tags on a directory.</p>"]
                fn list_tags_for_resource(&self, input: &ListTagsForResourceRequest)  -> Result<ListTagsForResourceResult, ListTagsForResourceError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.ListTagsForResource");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<ListTagsForResourceResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(ListTagsForResourceError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.</p>"]
                fn register_event_topic(&self, input: &RegisterEventTopicRequest)  -> Result<RegisterEventTopicResult, RegisterEventTopicError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.RegisterEventTopic");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<RegisterEventTopicResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(RegisterEventTopicError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Removes IP address blocks from a directory.</p>"]
                fn remove_ip_routes(&self, input: &RemoveIpRoutesRequest)  -> Result<RemoveIpRoutesResult, RemoveIpRoutesError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.RemoveIpRoutes");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<RemoveIpRoutesResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(RemoveIpRoutesError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Removes tags from a directory.</p>"]
                fn remove_tags_from_resource(&self, input: &RemoveTagsFromResourceRequest)  -> Result<RemoveTagsFromResourceResult, RemoveTagsFromResourceError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.RemoveTagsFromResource");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<RemoveTagsFromResourceResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(RemoveTagsFromResourceError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Restores a directory using an existing directory snapshot.</p> <p>When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.</p> <p>This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the <a>DescribeDirectories</a> operation with the directory identifier. When the <b>DirectoryDescription.Stage</b> value changes to <code>Active</code>, the restore operation is complete.</p>"]
                fn restore_from_snapshot(&self, input: &RestoreFromSnapshotRequest)  -> Result<RestoreFromSnapshotResult, RestoreFromSnapshotError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.RestoreFromSnapshot");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<RestoreFromSnapshotResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(RestoreFromSnapshotError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Applies a schema extension to a Microsoft AD directory.</p>"]
                fn start_schema_extension(&self, input: &StartSchemaExtensionRequest)  -> Result<StartSchemaExtensionResult, StartSchemaExtensionError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.StartSchemaExtension");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<StartSchemaExtensionResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(StartSchemaExtensionError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Updates a conditional forwarder that has been set up for your AWS directory.</p>"]
                fn update_conditional_forwarder(&self, input: &UpdateConditionalForwarderRequest)  -> Result<UpdateConditionalForwarderResult, UpdateConditionalForwarderError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.UpdateConditionalForwarder");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<UpdateConditionalForwarderResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(UpdateConditionalForwarderError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector directory.</p>"]
                fn update_radius(&self, input: &UpdateRadiusRequest)  -> Result<UpdateRadiusResult, UpdateRadiusError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.UpdateRadius");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<UpdateRadiusResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(UpdateRadiusError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                

                #[doc="<p>AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.</p> <p>This action verifies a trust relationship between your Microsoft AD in the AWS cloud and an external domain.</p>"]
                fn verify_trust(&self, input: &VerifyTrustRequest)  -> Result<VerifyTrustResult, VerifyTrustError> {
                    let mut request = SignedRequest::new("POST", "ds", self.region, "/");
                    
                    request.set_content_type("application/x-amz-json-1.1".to_owned());
                    request.add_header("x-amz-target", "DirectoryService_20150416.VerifyTrust");
                    let encoded = serde_json::to_string(input).unwrap();
         request.set_payload(Some(encoded.into_bytes()));
         
                    request.sign(&try!(self.credentials_provider.credentials()));

                    let response = try!(self.dispatcher.dispatch(&request));

                    match response.status {
                        StatusCode::Ok => {
                            Ok(serde_json::from_str::<VerifyTrustResult>(String::from_utf8_lossy(&response.body).as_ref()).unwrap())
                        }
                        _ => Err(VerifyTrustError::from_body(String::from_utf8_lossy(&response.body).as_ref())),
                    }
                }
                
}

            #[cfg(test)]
            mod protocol_tests {
                
            }