package smaws-clients

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file types.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
open Smaws_Lib
let service =
  Service.{
    namespace = "kendra";
    endpointPrefix = "kendra";
    version = "2019-02-03";
    protocol = AwsJson_1_1
  };
type data_source_to_index_field_mapping = {
  index_field_name: string;
  date_field_format: string option;
  data_source_field_name: string
}

type work_docs_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  use_change_log: bool option;
  crawl_comments: bool option;
  organization_id: string
}

type web_crawler_mode = | EVERYTHING
  | SUBDOMAINS
  | HOST_ONLY

type seed_url_configuration = {
  web_crawler_mode: web_crawler_mode option;
  seed_urls: string list
}

type site_maps_configuration = {
  site_maps: string list
}

type urls = {
  site_maps_configuration: site_maps_configuration option;
  seed_url_configuration: seed_url_configuration option
}

type proxy_configuration = {
  credentials: string option;
  port: int;
  host: string
}

type basic_authentication_configuration = {
  credentials: string;
  port: int;
  host: string
}

type authentication_configuration = {
  basic_authentication: basic_authentication_configuration list option
}

type web_crawler_configuration = {
  authentication_configuration: authentication_configuration option;
  proxy_configuration: proxy_configuration option;
  url_exclusion_patterns: string list option;
  url_inclusion_patterns: string list option;
  max_urls_per_minute_crawl_rate: int option;
  max_content_size_per_page_in_mega_bytes: float option;
  max_links_per_page: int option;
  crawl_depth: int option;
  urls: urls
}

type warning_code = | QUERY_LANGUAGE_INVALID_SYNTAX

type warning = {
  code: warning_code option;
  message: string option
}

type validation_exception = {
  message: string option
}

type key_location = | SECRET_MANAGER
  | URL

type jwt_token_type_configuration = {
  claim_regex: string option;
  issuer: string option;
  group_attribute_field: string option;
  user_name_attribute_field: string option;
  secret_manager_arn: string option;
  ur_l: string option;
  key_location: key_location
}

type json_token_type_configuration = {
  group_attribute_field: string;
  user_name_attribute_field: string
}

type user_token_configuration = {
  json_token_type_configuration: json_token_type_configuration option;
  jwt_token_type_configuration: jwt_token_type_configuration option
}

type user_identity_configuration = {
  identity_attribute_name: string option
}

type user_group_resolution_mode = | NONE
  | AWS_SSO

type user_group_resolution_configuration = {
  user_group_resolution_mode: user_group_resolution_mode
}

type user_context_policy = | USER_TOKEN
  | ATTRIBUTE_FILTER

type data_source_group = {
  data_source_id: string;
  group_id: string
}

type user_context = {
  data_source_groups: data_source_group list option;
  groups: string list option;
  user_id: string option;
  token: string option
}

type s3_path = {
  key: string;
  bucket: string
}

type update_thesaurus_request = {
  source_s3_path: s3_path option;
  role_arn: string option;
  description: string option;
  index_id: string;
  name: string option;
  id: string
}

type throttling_exception = {
  message: string option
}

type resource_not_found_exception = {
  message: string option
}

type internal_server_exception = {
  message: string option
}

type conflict_exception = {
  message: string option
}

type access_denied_exception = {
  message: string option
}

type mode = | LEARN_ONLY
  | ENABLED

type suggestable_config = {
  suggestable: bool option;
  attribute_name: string option
}

type attribute_suggestions_mode = | INACTIVE
  | ACTIVE

type attribute_suggestions_update_config = {
  attribute_suggestions_mode: attribute_suggestions_mode option;
  suggestable_config_list: suggestable_config list option
}

type update_query_suggestions_config_request = {
  attribute_suggestions_config: attribute_suggestions_update_config option;
  minimum_query_count: int option;
  minimum_number_of_querying_users: int option;
  include_queries_without_user_information: bool option;
  query_log_look_back_window_in_days: int option;
  mode: mode option;
  index_id: string
}

type update_query_suggestions_block_list_request = {
  role_arn: string option;
  source_s3_path: s3_path option;
  description: string option;
  name: string option;
  id: string;
  index_id: string
}

type document_attribute_value_type = | DATE_VALUE
  | LONG_VALUE
  | STRING_LIST_VALUE
  | STRING_VALUE

type order = | DESCENDING
  | ASCENDING

type relevance = {
  value_importance_map: (string * int) list option;
  rank_order: order option;
  duration: string option;
  importance: int option;
  freshness: bool option
}

type search = {
  sortable: bool option;
  displayable: bool option;
  searchable: bool option;
  facetable: bool option
}

type document_metadata_configuration = {
  search: search option;
  relevance: relevance option;
  type_: document_attribute_value_type;
  name: string
}

type capacity_units_configuration = {
  query_capacity_units: int;
  storage_capacity_units: int
}

type update_index_request = {
  user_group_resolution_configuration: user_group_resolution_configuration option;
  user_context_policy: user_context_policy option;
  user_token_configurations: user_token_configuration list option;
  capacity_units: capacity_units_configuration option;
  document_metadata_configuration_updates: document_metadata_configuration list option;
  description: string option;
  role_arn: string option;
  name: string option;
  id: string
}

type service_quota_exceeded_exception = {
  message: string option
}

type featured_results_set_status = | INACTIVE
  | ACTIVE

type featured_document = {
  id: string option
}

type featured_results_set = {
  creation_timestamp: int option;
  last_updated_timestamp: int option;
  featured_documents: featured_document list option;
  query_texts: string list option;
  status: featured_results_set_status option;
  description: string option;
  featured_results_set_name: string option;
  featured_results_set_id: string option
}

type update_featured_results_set_response = {
  featured_results_set: featured_results_set option
}

type update_featured_results_set_request = {
  featured_documents: featured_document list option;
  query_texts: string list option;
  status: featured_results_set_status option;
  description: string option;
  featured_results_set_name: string option;
  featured_results_set_id: string;
  index_id: string
}

type conflicting_item = {
  set_id: string option;
  set_name: string option;
  query_text: string option
}

type featured_results_conflict_exception = {
  conflicting_items: conflicting_item list option;
  message: string option
}

type content_source_configuration = {
  direct_put_content: bool option;
  faq_ids: string list option;
  data_source_ids: string list option
}

type experience_configuration = {
  user_identity_configuration: user_identity_configuration option;
  content_source_configuration: content_source_configuration option
}

type update_experience_request = {
  description: string option;
  configuration: experience_configuration option;
  role_arn: string option;
  index_id: string;
  name: string option;
  id: string
}

type documents_metadata_configuration = {
  s3_prefix: string option
}

type access_control_list_configuration = {
  key_path: string option
}

type s3_data_source_configuration = {
  access_control_list_configuration: access_control_list_configuration option;
  documents_metadata_configuration: documents_metadata_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  inclusion_prefixes: string list option;
  bucket_name: string
}

type share_point_version = | SHAREPOINT_2019
  | SHAREPOINT_ONLINE
  | SHAREPOINT_2016
  | SHAREPOINT_2013

type data_source_vpc_configuration = {
  security_group_ids: string list;
  subnet_ids: string list
}

type share_point_online_authentication_type = | OAUTH2
  | HTTP_BASIC

type share_point_configuration = {
  proxy_configuration: proxy_configuration option;
  authentication_type: share_point_online_authentication_type option;
  ssl_certificate_s3_path: s3_path option;
  disable_local_groups: bool option;
  document_title_field_name: string option;
  field_mappings: data_source_to_index_field_mapping list option;
  vpc_configuration: data_source_vpc_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  use_change_log: bool option;
  crawl_attachments: bool option;
  secret_arn: string;
  urls: string list;
  share_point_version: share_point_version
}

type database_engine_type = | RDS_POSTGRESQL
  | RDS_MYSQL
  | RDS_AURORA_POSTGRESQL
  | RDS_AURORA_MYSQL

type connection_configuration = {
  secret_arn: string;
  table_name: string;
  database_name: string;
  database_port: int;
  database_host: string
}

type column_configuration = {
  change_detecting_columns: string list;
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_column_name: string option;
  document_data_column_name: string;
  document_id_column_name: string
}

type acl_configuration = {
  allowed_groups_column_name: string
}

type query_identifiers_enclosing_option = | NONE
  | DOUBLE_QUOTES

type sql_configuration = {
  query_identifiers_enclosing_option: query_identifiers_enclosing_option option
}

type database_configuration = {
  sql_configuration: sql_configuration option;
  acl_configuration: acl_configuration option;
  column_configuration: column_configuration;
  vpc_configuration: data_source_vpc_configuration option;
  connection_configuration: connection_configuration;
  database_engine_type: database_engine_type
}

type salesforce_standard_object_name = | USER
  | TASK
  | SOLUTION
  | PROFILE
  | PRODUCT
  | PRICEBOOK
  | PARTNER
  | OPPORTUNITY
  | LEAD
  | IDEA
  | GROUP
  | DOCUMENT
  | CONTRACT
  | CONTACT
  | CASE
  | CAMPAIGN
  | ACCOUNT

type salesforce_standard_object_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option;
  document_data_field_name: string;
  name: salesforce_standard_object_name
}

type salesforce_knowledge_article_state = | ARCHIVED
  | PUBLISHED
  | DRAFT

type salesforce_standard_knowledge_article_type_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option;
  document_data_field_name: string
}

type salesforce_custom_knowledge_article_type_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option;
  document_data_field_name: string;
  name: string
}

type salesforce_knowledge_article_configuration = {
  custom_knowledge_article_type_configurations: salesforce_custom_knowledge_article_type_configuration list option;
  standard_knowledge_article_type_configuration: salesforce_standard_knowledge_article_type_configuration option;
  included_states: salesforce_knowledge_article_state list
}

type salesforce_chatter_feed_include_filter_type = | STANDARD_USER
  | ACTIVE_USER

type salesforce_chatter_feed_configuration = {
  include_filter_types: salesforce_chatter_feed_include_filter_type list option;
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option;
  document_data_field_name: string
}

type salesforce_standard_object_attachment_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option
}

type salesforce_configuration = {
  exclude_attachment_file_patterns: string list option;
  include_attachment_file_patterns: string list option;
  standard_object_attachment_configuration: salesforce_standard_object_attachment_configuration option;
  crawl_attachments: bool option;
  chatter_feed_configuration: salesforce_chatter_feed_configuration option;
  knowledge_article_configuration: salesforce_knowledge_article_configuration option;
  standard_object_configurations: salesforce_standard_object_configuration list option;
  secret_arn: string;
  server_url: string
}

type one_drive_users = {
  one_drive_user_s3_path: s3_path option;
  one_drive_user_list: string list option
}

type one_drive_configuration = {
  disable_local_groups: bool option;
  field_mappings: data_source_to_index_field_mapping list option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  one_drive_users: one_drive_users;
  secret_arn: string;
  tenant_domain: string
}

type service_now_build_version_type = | OTHERS
  | LONDON

type service_now_knowledge_article_configuration = {
  filter_query: string option;
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option;
  document_data_field_name: string;
  exclude_attachment_file_patterns: string list option;
  include_attachment_file_patterns: string list option;
  crawl_attachments: bool option
}

type service_now_service_catalog_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  document_title_field_name: string option;
  document_data_field_name: string;
  exclude_attachment_file_patterns: string list option;
  include_attachment_file_patterns: string list option;
  crawl_attachments: bool option
}

type service_now_authentication_type = | OAUTH2
  | HTTP_BASIC

type service_now_configuration = {
  authentication_type: service_now_authentication_type option;
  service_catalog_configuration: service_now_service_catalog_configuration option;
  knowledge_article_configuration: service_now_knowledge_article_configuration option;
  service_now_build_version: service_now_build_version_type;
  secret_arn: string;
  host_url: string
}

type confluence_version = | SERVER
  | CLOUD

type confluence_space_field_name = | URL
  | SPACE_KEY
  | ITEM_TYPE
  | DISPLAY_URL

type confluence_space_to_index_field_mapping = {
  index_field_name: string option;
  date_field_format: string option;
  data_source_field_name: confluence_space_field_name option
}

type confluence_space_configuration = {
  space_field_mappings: confluence_space_to_index_field_mapping list option;
  exclude_spaces: string list option;
  include_spaces: string list option;
  crawl_archived_spaces: bool option;
  crawl_personal_spaces: bool option
}

type confluence_page_field_name = | VERSION
  | URL
  | SPACE_NAME
  | SPACE_KEY
  | PARENT_ID
  | MODIFIED_DATE
  | LABELS
  | ITEM_TYPE
  | DISPLAY_URL
  | CREATED_DATE
  | CONTENT_STATUS
  | AUTHOR

type confluence_page_to_index_field_mapping = {
  index_field_name: string option;
  date_field_format: string option;
  data_source_field_name: confluence_page_field_name option
}

type confluence_page_configuration = {
  page_field_mappings: confluence_page_to_index_field_mapping list option
}

type confluence_blog_field_name = | VERSION
  | URL
  | SPACE_NAME
  | SPACE_KEY
  | PUBLISH_DATE
  | LABELS
  | ITEM_TYPE
  | DISPLAY_URL
  | AUTHOR

type confluence_blog_to_index_field_mapping = {
  index_field_name: string option;
  date_field_format: string option;
  data_source_field_name: confluence_blog_field_name option
}

type confluence_blog_configuration = {
  blog_field_mappings: confluence_blog_to_index_field_mapping list option
}

type confluence_attachment_field_name = | VERSION
  | URL
  | SPACE_NAME
  | SPACE_KEY
  | PARENT_ID
  | ITEM_TYPE
  | FILE_SIZE
  | DISPLAY_URL
  | CREATED_DATE
  | CONTENT_TYPE
  | AUTHOR

type confluence_attachment_to_index_field_mapping = {
  index_field_name: string option;
  date_field_format: string option;
  data_source_field_name: confluence_attachment_field_name option
}

type confluence_attachment_configuration = {
  attachment_field_mappings: confluence_attachment_to_index_field_mapping list option;
  crawl_attachments: bool option
}

type confluence_authentication_type = | PAT
  | HTTP_BASIC

type confluence_configuration = {
  authentication_type: confluence_authentication_type option;
  proxy_configuration: proxy_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  vpc_configuration: data_source_vpc_configuration option;
  attachment_configuration: confluence_attachment_configuration option;
  blog_configuration: confluence_blog_configuration option;
  page_configuration: confluence_page_configuration option;
  space_configuration: confluence_space_configuration option;
  version: confluence_version;
  secret_arn: string;
  server_url: string
}

type google_drive_configuration = {
  exclude_shared_drives: string list option;
  exclude_user_accounts: string list option;
  exclude_mime_types: string list option;
  field_mappings: data_source_to_index_field_mapping list option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  secret_arn: string
}

type fsx_file_system_type = | WINDOWS

type fsx_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  secret_arn: string option;
  vpc_configuration: data_source_vpc_configuration;
  file_system_type: fsx_file_system_type;
  file_system_id: string
}

type slack_entity = | DIRECT_MESSAGE
  | GROUP_MESSAGE
  | PRIVATE_CHANNEL
  | PUBLIC_CHANNEL

type slack_configuration = {
  field_mappings: data_source_to_index_field_mapping list option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  public_channel_filter: string list option;
  private_channel_filter: string list option;
  look_back_period: int option;
  since_crawl_date: string;
  exclude_archived: bool option;
  crawl_bot_message: bool option;
  use_change_log: bool option;
  slack_entity_list: slack_entity list;
  vpc_configuration: data_source_vpc_configuration option;
  secret_arn: string;
  team_id: string
}

type box_configuration = {
  vpc_configuration: data_source_vpc_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  web_link_field_mappings: data_source_to_index_field_mapping list option;
  comment_field_mappings: data_source_to_index_field_mapping list option;
  task_field_mappings: data_source_to_index_field_mapping list option;
  file_field_mappings: data_source_to_index_field_mapping list option;
  crawl_web_links: bool option;
  crawl_tasks: bool option;
  crawl_comments: bool option;
  use_change_log: bool option;
  secret_arn: string;
  enterprise_id: string
}

type quip_configuration = {
  vpc_configuration: data_source_vpc_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  attachment_field_mappings: data_source_to_index_field_mapping list option;
  message_field_mappings: data_source_to_index_field_mapping list option;
  thread_field_mappings: data_source_to_index_field_mapping list option;
  folder_ids: string list option;
  crawl_attachments: bool option;
  crawl_chat_rooms: bool option;
  crawl_file_comments: bool option;
  secret_arn: string;
  domain: string
}

type issue_sub_entity = | WORKLOGS
  | ATTACHMENTS
  | COMMENTS

type jira_configuration = {
  vpc_configuration: data_source_vpc_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  work_log_field_mappings: data_source_to_index_field_mapping list option;
  project_field_mappings: data_source_to_index_field_mapping list option;
  issue_field_mappings: data_source_to_index_field_mapping list option;
  comment_field_mappings: data_source_to_index_field_mapping list option;
  attachment_field_mappings: data_source_to_index_field_mapping list option;
  issue_sub_entity_filter: issue_sub_entity list option;
  status: string list option;
  issue_type: string list option;
  project: string list option;
  use_change_log: bool option;
  secret_arn: string;
  jira_account_url: string
}

type saa_s_configuration = {
  host_url: string;
  organization_name: string
}

type on_premise_configuration = {
  ssl_certificate_s3_path: s3_path;
  organization_name: string;
  host_url: string
}

type type_ = | ON_PREMISE
  | SAAS

type git_hub_document_crawl_properties = {
  crawl_pull_request_comment_attachment: bool option;
  crawl_pull_request_comment: bool option;
  crawl_pull_request: bool option;
  crawl_issue_comment_attachment: bool option;
  crawl_issue_comment: bool option;
  crawl_issue: bool option;
  crawl_repository_documents: bool option
}

type git_hub_configuration = {
  git_hub_pull_request_document_attachment_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_pull_request_document_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_pull_request_comment_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_issue_attachment_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_issue_comment_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_issue_document_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_commit_configuration_field_mappings: data_source_to_index_field_mapping list option;
  git_hub_repository_configuration_field_mappings: data_source_to_index_field_mapping list option;
  vpc_configuration: data_source_vpc_configuration option;
  exclusion_file_name_patterns: string list option;
  exclusion_file_type_patterns: string list option;
  exclusion_folder_name_patterns: string list option;
  inclusion_file_name_patterns: string list option;
  inclusion_file_type_patterns: string list option;
  inclusion_folder_name_patterns: string list option;
  repository_filter: string list option;
  git_hub_document_crawl_properties: git_hub_document_crawl_properties option;
  use_change_log: bool option;
  secret_arn: string;
  type_: type_ option;
  on_premise_configuration: on_premise_configuration option;
  saa_s_configuration: saa_s_configuration option
}

type alfresco_entity = | DocumentLibrary
  | Blog
  | Wiki

type alfresco_configuration = {
  vpc_configuration: data_source_vpc_configuration option;
  exclusion_patterns: string list option;
  inclusion_patterns: string list option;
  wiki_field_mappings: data_source_to_index_field_mapping list option;
  blog_field_mappings: data_source_to_index_field_mapping list option;
  document_library_field_mappings: data_source_to_index_field_mapping list option;
  entity_filter: alfresco_entity list option;
  crawl_comments: bool option;
  crawl_system_folders: bool option;
  ssl_certificate_s3_path: s3_path;
  secret_arn: string;
  site_id: string;
  site_url: string
}

type template = Json.t

type template_configuration = {
  template: template option
}

type data_source_configuration = {
  template_configuration: template_configuration option;
  alfresco_configuration: alfresco_configuration option;
  git_hub_configuration: git_hub_configuration option;
  jira_configuration: jira_configuration option;
  quip_configuration: quip_configuration option;
  box_configuration: box_configuration option;
  slack_configuration: slack_configuration option;
  fsx_configuration: fsx_configuration option;
  work_docs_configuration: work_docs_configuration option;
  web_crawler_configuration: web_crawler_configuration option;
  google_drive_configuration: google_drive_configuration option;
  confluence_configuration: confluence_configuration option;
  service_now_configuration: service_now_configuration option;
  one_drive_configuration: one_drive_configuration option;
  salesforce_configuration: salesforce_configuration option;
  database_configuration: database_configuration option;
  share_point_configuration: share_point_configuration option;
  s3_configuration: s3_data_source_configuration option
}

type condition_operator = | BeginsWith
  | NotExists
  | Exists
  | NotContains
  | Contains
  | NotEquals
  | Equals
  | LessThanOrEquals
  | LessThan
  | GreaterThanOrEquals
  | GreaterThan

type document_attribute_value = {
  date_value: float option;
  long_value: int option;
  string_list_value: string list option;
  string_value: string option
}

type document_attribute_condition = {
  condition_on_value: document_attribute_value option;
  operator: condition_operator;
  condition_document_attribute_key: string
}

type document_attribute_target = {
  target_document_attribute_value: document_attribute_value option;
  target_document_attribute_value_deletion: bool option;
  target_document_attribute_key: string option
}

type inline_custom_document_enrichment_configuration = {
  document_content_deletion: bool option;
  target: document_attribute_target option;
  condition: document_attribute_condition option
}

type hook_configuration = {
  s3_bucket: string;
  lambda_arn: string;
  invocation_condition: document_attribute_condition option
}

type custom_document_enrichment_configuration = {
  role_arn: string option;
  post_extraction_hook_configuration: hook_configuration option;
  pre_extraction_hook_configuration: hook_configuration option;
  inline_configurations: inline_custom_document_enrichment_configuration list option
}

type update_data_source_request = {
  custom_document_enrichment_configuration: custom_document_enrichment_configuration option;
  language_code: string option;
  role_arn: string option;
  schedule: string option;
  description: string option;
  vpc_configuration: data_source_vpc_configuration option;
  configuration: data_source_configuration option;
  index_id: string;
  name: string option;
  id: string
}

type update_access_control_configuration_response = unit

type principal_type = | GROUP
  | USER

type read_access_type = | DENY
  | ALLOW

type principal = {
  data_source_id: string option;
  access: read_access_type;
  type_: principal_type;
  name: string
}

type hierarchical_principal = {
  principal_list: principal list
}

type update_access_control_configuration_request = {
  hierarchical_access_control_list: hierarchical_principal list option;
  access_control_list: principal list option;
  description: string option;
  name: string option;
  id: string;
  index_id: string
}

type untag_resource_response = unit

type untag_resource_request = {
  tag_keys: string list;
  resource_ar_n: string
}

type resource_unavailable_exception = {
  message: string option
}

type time_range = {
  end_time: float option;
  start_time: float option
}

type thesaurus_status = | FAILED
  | ACTIVE_BUT_UPDATE_FAILED
  | UPDATING
  | DELETING
  | ACTIVE
  | CREATING

type thesaurus_summary = {
  updated_at: float option;
  created_at: float option;
  status: thesaurus_status option;
  name: string option;
  id: string option
}

type highlight_type = | THESAURUS_SYNONYM
  | STANDARD

type highlight = {
  type_: highlight_type option;
  top_answer: bool option;
  end_offset: int;
  begin_offset: int
}

type text_with_highlights = {
  highlights: highlight list option;
  text: string option
}

type text_document_statistics = {
  indexed_text_bytes: int;
  indexed_text_documents_count: int
}

type tag_resource_response = unit

type tag = {
  value: string;
  key: string
}

type tag_resource_request = {
  tags: tag list;
  resource_ar_n: string
}

type table_cell = {
  header: bool option;
  highlighted: bool option;
  top_answer: bool option;
  value: string option
}

type table_row = {
  cells: table_cell list option
}

type table_excerpt = {
  total_number_of_rows: int option;
  rows: table_row list option
}

type suggestion_highlight = {
  end_offset: int option;
  begin_offset: int option
}

type suggestion_text_with_highlights = {
  highlights: suggestion_highlight list option;
  text: string option
}

type suggestion_value = {
  text: suggestion_text_with_highlights option
}

type suggestion_type = | DOCUMENT_ATTRIBUTES
  | QUERY

type document_attribute = {
  value: document_attribute_value;
  key: string
}

type source_document = {
  additional_attributes: document_attribute list option;
  suggestion_attributes: string list option;
  document_id: string option
}

type suggestion = {
  source_documents: source_document list option;
  value: suggestion_value option;
  id: string option
}

type click_feedback = {
  click_time: float;
  result_id: string
}

type relevance_type = | NOT_RELEVANT
  | RELEVANT

type relevance_feedback = {
  relevance_value: relevance_type;
  result_id: string
}

type submit_feedback_request = {
  relevance_feedback_items: relevance_feedback list option;
  click_feedback_items: click_feedback list option;
  query_id: string;
  index_id: string
}

type stop_data_source_sync_job_request = {
  index_id: string;
  id: string
}

type document_status = | UPDATE_FAILED
  | FAILED
  | UPDATED
  | INDEXED
  | PROCESSING
  | NOT_FOUND

type status = {
  failure_reason: string option;
  failure_code: string option;
  document_status: document_status option;
  document_id: string option
}

type start_data_source_sync_job_response = {
  execution_id: string option
}

type start_data_source_sync_job_request = {
  index_id: string;
  id: string
}

type resource_in_use_exception = {
  message: string option
}

type spell_correction_configuration = {
  include_query_spell_check_suggestions: bool
}

type correction = {
  corrected_term: string option;
  term: string option;
  end_offset: int option;
  begin_offset: int option
}

type spell_corrected_query = {
  corrections: correction list option;
  suggested_query_text: string option
}

type sort_order = | ASC
  | DESC

type sorting_configuration = {
  sort_order: sort_order;
  document_attribute_key: string
}

type server_side_encryption_configuration = {
  kms_key_id: string option
}

type score_confidence = | NOT_AVAILABLE
  | LOW
  | MEDIUM
  | HIGH
  | VERY_HIGH

type score_attributes = {
  score_confidence: score_confidence option
}

type retrieve_result_item = {
  score_attributes: score_attributes option;
  document_attributes: document_attribute list option;
  document_ur_i: string option;
  content: string option;
  document_title: string option;
  document_id: string option;
  id: string option
}

type retrieve_result = {
  result_items: retrieve_result_item list option;
  query_id: string option
}

type attribute_filter = {
  less_than_or_equals: document_attribute option;
  less_than: document_attribute option;
  greater_than_or_equals: document_attribute option;
  greater_than: document_attribute option;
  contains_any: document_attribute option;
  contains_all: document_attribute option;
  equals_to: document_attribute option;
  not_filter: attribute_filter option;
  or_all_filters: attribute_filter list option;
  and_all_filters: attribute_filter list option
}

type document_relevance_configuration = {
  relevance: relevance;
  name: string
}

type retrieve_request = {
  user_context: user_context option;
  page_size: int option;
  page_number: int option;
  document_relevance_override_configurations: document_relevance_configuration list option;
  requested_document_attributes: string list option;
  attribute_filter: attribute_filter option;
  query_text: string;
  index_id: string
}

type resource_already_exist_exception = {
  message: string option
}

type query_suggestions_status = | UPDATING
  | ACTIVE

type query_suggestions_block_list_status = | FAILED
  | ACTIVE_BUT_UPDATE_FAILED
  | UPDATING
  | DELETING
  | CREATING
  | ACTIVE

type query_suggestions_block_list_summary = {
  item_count: int option;
  updated_at: float option;
  created_at: float option;
  status: query_suggestions_block_list_status option;
  name: string option;
  id: string option
}

type query_result_type = | ANSWER
  | QUESTION_ANSWER
  | DOCUMENT

type query_result_format = | TEXT
  | TABLE

type additional_result_attribute_value_type = | TEXT_WITH_HIGHLIGHTS_VALUE

type additional_result_attribute_value = {
  text_with_highlights_value: text_with_highlights option
}

type additional_result_attribute = {
  value: additional_result_attribute_value;
  value_type: additional_result_attribute_value_type;
  key: string
}

type expanded_result_item = {
  document_attributes: document_attribute list option;
  document_ur_i: string option;
  document_excerpt: text_with_highlights option;
  document_title: text_with_highlights option;
  document_id: string option;
  id: string option
}

type collapsed_result_detail = {
  expanded_results: expanded_result_item list option;
  document_attribute: document_attribute
}

type query_result_item = {
  collapsed_result_detail: collapsed_result_detail option;
  table_excerpt: table_excerpt option;
  feedback_token: string option;
  score_attributes: score_attributes option;
  document_attributes: document_attribute list option;
  document_ur_i: string option;
  document_excerpt: text_with_highlights option;
  document_title: text_with_highlights option;
  document_id: string option;
  additional_attributes: additional_result_attribute list option;
  format: query_result_format option;
  type_: query_result_type option;
  id: string option
}

type document_attribute_value_count_pair = {
  facet_results: facet_result list option;
  count: int option;
  document_attribute_value: document_attribute_value option
} and facet_result = {
  document_attribute_value_count_pairs: document_attribute_value_count_pair list option;
  document_attribute_value_type: document_attribute_value_type option;
  document_attribute_key: string option
}

type featured_results_item = {
  feedback_token: string option;
  document_attributes: document_attribute list option;
  document_ur_i: string option;
  document_excerpt: text_with_highlights option;
  document_title: text_with_highlights option;
  document_id: string option;
  additional_attributes: additional_result_attribute list option;
  type_: query_result_type option;
  id: string option
}

type query_result = {
  featured_results_items: featured_results_item list option;
  spell_corrected_queries: spell_corrected_query list option;
  warnings: warning list option;
  total_number_of_results: int option;
  facet_results: facet_result list option;
  result_items: query_result_item list option;
  query_id: string option
}

type facet = {
  max_results: int option;
  facets: facet list option;
  document_attribute_key: string option
}

type missing_attribute_key_strategy = | EXPAND
  | COLLAPSE
  | IGNORE

type expand_configuration = {
  max_expanded_results_per_item: int option;
  max_result_items_to_expand: int option
}

type collapse_configuration = {
  expand_configuration: expand_configuration option;
  expand: bool option;
  missing_attribute_key_strategy: missing_attribute_key_strategy option;
  sorting_configurations: sorting_configuration list option;
  document_attribute_key: string
}

type query_request = {
  collapse_configuration: collapse_configuration option;
  spell_correction_configuration: spell_correction_configuration option;
  visitor_id: string option;
  user_context: user_context option;
  sorting_configurations: sorting_configuration list option;
  sorting_configuration: sorting_configuration option;
  page_size: int option;
  page_number: int option;
  document_relevance_override_configurations: document_relevance_configuration list option;
  query_result_type_filter: query_result_type option;
  requested_document_attributes: string list option;
  facets: facet list option;
  attribute_filter: attribute_filter option;
  query_text: string option;
  index_id: string
}

type member_group = {
  data_source_id: string option;
  group_id: string
}

type member_user = {
  user_id: string
}

type group_members = {
  s3_pathfor_group_members: s3_path option;
  member_users: member_user list option;
  member_groups: member_group list option
}

type put_principal_mapping_request = {
  role_arn: string option;
  ordering_id: int option;
  group_members: group_members;
  group_id: string;
  data_source_id: string option;
  index_id: string
}

type principal_mapping_status = | DELETED
  | DELETING
  | PROCESSING
  | SUCCEEDED
  | FAILED

type persona = | VIEWER
  | OWNER

type personas_summary = {
  updated_at: float option;
  created_at: float option;
  persona: persona option;
  entity_id: string option
}

type metric_type = | TREND_QUERY_DOC_METRICS
  | AGG_QUERY_DOC_METRICS
  | DOCS_BY_CLICK_COUNT
  | QUERIES_BY_ZERO_RESULT_RATE
  | QUERIES_BY_ZERO_CLICK_RATE
  | QUERIES_BY_COUNT

type list_thesauri_response = {
  thesaurus_summary_items: thesaurus_summary list option;
  next_token: string option
}

type list_thesauri_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type list_tags_for_resource_response = {
  tags: tag list option
}

type list_tags_for_resource_request = {
  resource_ar_n: string
}

type list_query_suggestions_block_lists_response = {
  next_token: string option;
  block_list_summary_items: query_suggestions_block_list_summary list option
}

type list_query_suggestions_block_lists_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type group_summary = {
  ordering_id: int option;
  group_id: string option
}

type index_edition = | ENTERPRISE_EDITION
  | DEVELOPER_EDITION

type index_status = | SYSTEM_UPDATING
  | UPDATING
  | FAILED
  | DELETING
  | ACTIVE
  | CREATING

type index_configuration_summary = {
  status: index_status;
  updated_at: float;
  created_at: float;
  edition: index_edition option;
  id: string option;
  name: string option
}

type list_indices_response = {
  next_token: string option;
  index_configuration_summary_items: index_configuration_summary list option
}

type list_indices_request = {
  max_results: int option;
  next_token: string option
}

type list_groups_older_than_ordering_id_response = {
  next_token: string option;
  groups_summaries: group_summary list option
}

type list_groups_older_than_ordering_id_request = {
  max_results: int option;
  next_token: string option;
  ordering_id: int;
  data_source_id: string option;
  index_id: string
}

type featured_results_set_summary = {
  creation_timestamp: int option;
  last_updated_timestamp: int option;
  status: featured_results_set_status option;
  featured_results_set_name: string option;
  featured_results_set_id: string option
}

type list_featured_results_sets_response = {
  next_token: string option;
  featured_results_set_summary_items: featured_results_set_summary list option
}

type list_featured_results_sets_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type faq_status = | FAILED
  | DELETING
  | ACTIVE
  | UPDATING
  | CREATING

type faq_file_format = | JSON
  | CSV_WITH_HEADER
  | CSV

type faq_summary = {
  language_code: string option;
  file_format: faq_file_format option;
  updated_at: float option;
  created_at: float option;
  status: faq_status option;
  name: string option;
  id: string option
}

type list_faqs_response = {
  faq_summary_items: faq_summary list option;
  next_token: string option
}

type list_faqs_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type experience_status = | FAILED
  | DELETING
  | ACTIVE
  | CREATING

type endpoint_type = | HOME

type experience_endpoint = {
  endpoint: string option;
  endpoint_type: endpoint_type option
}

type experiences_summary = {
  endpoints: experience_endpoint list option;
  status: experience_status option;
  created_at: float option;
  id: string option;
  name: string option
}

type list_experiences_response = {
  next_token: string option;
  summary_items: experiences_summary list option
}

type list_experiences_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type entity_type = | GROUP
  | USER

type entity_display_data = {
  last_name: string option;
  first_name: string option;
  identified_user_name: string option;
  group_name: string option;
  user_name: string option
}

type experience_entities_summary = {
  display_data: entity_display_data option;
  entity_type: entity_type option;
  entity_id: string option
}

type list_experience_entities_response = {
  next_token: string option;
  summary_items: experience_entities_summary list option
}

type list_experience_entities_request = {
  next_token: string option;
  index_id: string;
  id: string
}

type list_entity_personas_response = {
  next_token: string option;
  summary_items: personas_summary list option
}

type list_entity_personas_request = {
  max_results: int option;
  next_token: string option;
  index_id: string;
  id: string
}

type data_source_type = | TEMPLATE
  | ALFRESCO
  | GITHUB
  | JIRA
  | QUIP
  | BOX
  | SLACK
  | FSX
  | WORKDOCS
  | WEBCRAWLER
  | GOOGLEDRIVE
  | CONFLUENCE
  | CUSTOM
  | SERVICENOW
  | ONEDRIVE
  | SALESFORCE
  | DATABASE
  | SHAREPOINT
  | S3

type data_source_status = | ACTIVE
  | UPDATING
  | FAILED
  | DELETING
  | CREATING

type data_source_summary = {
  language_code: string option;
  status: data_source_status option;
  updated_at: float option;
  created_at: float option;
  type_: data_source_type option;
  id: string option;
  name: string option
}

type list_data_sources_response = {
  next_token: string option;
  summary_items: data_source_summary list option
}

type list_data_sources_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type data_source_sync_job_status = | SYNCING_INDEXING
  | ABORTED
  | STOPPING
  | INCOMPLETE
  | SYNCING
  | SUCCEEDED
  | FAILED

type error_code = | INVALID_REQUEST
  | INTERNAL_ERROR

type data_source_sync_job_metrics = {
  documents_scanned: string option;
  documents_failed: string option;
  documents_deleted: string option;
  documents_modified: string option;
  documents_added: string option
}

type data_source_sync_job = {
  metrics: data_source_sync_job_metrics option;
  data_source_error_code: string option;
  error_code: error_code option;
  error_message: string option;
  status: data_source_sync_job_status option;
  end_time: float option;
  start_time: float option;
  execution_id: string option
}

type list_data_source_sync_jobs_response = {
  next_token: string option;
  history: data_source_sync_job list option
}

type list_data_source_sync_jobs_request = {
  status_filter: data_source_sync_job_status option;
  start_time_filter: time_range option;
  max_results: int option;
  next_token: string option;
  index_id: string;
  id: string
}

type access_control_configuration_summary = {
  id: string
}

type list_access_control_configurations_response = {
  access_control_configurations: access_control_configuration_summary list;
  next_token: string option
}

type list_access_control_configurations_request = {
  max_results: int option;
  next_token: string option;
  index_id: string
}

type invalid_request_exception = {
  message: string option
}

type interval = | TWO_MONTHS_AGO
  | ONE_MONTH_AGO
  | TWO_WEEKS_AGO
  | ONE_WEEK_AGO
  | THIS_WEEK
  | THIS_MONTH

type faq_statistics = {
  indexed_question_answers_count: int
}

type index_statistics = {
  text_document_statistics: text_document_statistics;
  faq_statistics: faq_statistics
}

type group_ordering_id_summary = {
  failure_reason: string option;
  ordering_id: int option;
  received_at: float option;
  last_updated_at: float option;
  status: principal_mapping_status option
}

type get_snapshots_response = {
  next_token: string option;
  snapshots_data: string list list option;
  snapshots_data_header: string list option;
  snap_shot_time_filter: time_range option
}

type get_snapshots_request = {
  max_results: int option;
  next_token: string option;
  metric_type: metric_type;
  interval: interval;
  index_id: string
}

type get_query_suggestions_response = {
  suggestions: suggestion list option;
  query_suggestions_id: string option
}

type attribute_suggestions_get_config = {
  user_context: user_context option;
  attribute_filter: attribute_filter option;
  additional_response_attributes: string list option;
  suggestion_attributes: string list option
}

type get_query_suggestions_request = {
  attribute_suggestions_config: attribute_suggestions_get_config option;
  suggestion_types: suggestion_type list option;
  max_suggestions_count: int option;
  query_text: string;
  index_id: string
}

type featured_document_with_metadata = {
  ur_i: string option;
  title: string option;
  id: string option
}

type featured_document_missing = {
  id: string option
}

type failed_entity = {
  error_message: string option;
  entity_id: string option
}

type entity_persona_configuration = {
  persona: persona;
  entity_id: string
}

type entity_configuration = {
  entity_type: entity_type;
  entity_id: string
}

type content_type = | MD
  | JSON
  | CSV
  | MS_EXCEL
  | XSLT
  | XML
  | RTF
  | PPT
  | PLAIN_TEXT
  | MS_WORD
  | HTML
  | PDF

type document = {
  access_control_configuration_id: string option;
  content_type: content_type option;
  hierarchical_access_control_list: hierarchical_principal list option;
  access_control_list: principal list option;
  attributes: document_attribute list option;
  s3_path: s3_path option;
  blob: bytes option;
  title: string option;
  id: string
}

type document_info = {
  attributes: document_attribute list option;
  document_id: string
}

type disassociate_personas_from_entities_response = {
  failed_entity_list: failed_entity list option
}

type disassociate_personas_from_entities_request = {
  entity_ids: string list;
  index_id: string;
  id: string
}

type disassociate_entities_from_experience_response = {
  failed_entity_list: failed_entity list option
}

type disassociate_entities_from_experience_request = {
  entity_list: entity_configuration list;
  index_id: string;
  id: string
}

type describe_thesaurus_response = {
  synonym_rule_count: int option;
  term_count: int option;
  file_size_bytes: int option;
  source_s3_path: s3_path option;
  role_arn: string option;
  updated_at: float option;
  created_at: float option;
  error_message: string option;
  status: thesaurus_status option;
  description: string option;
  name: string option;
  index_id: string option;
  id: string option
}

type describe_thesaurus_request = {
  index_id: string;
  id: string
}

type attribute_suggestions_describe_config = {
  attribute_suggestions_mode: attribute_suggestions_mode option;
  suggestable_config_list: suggestable_config list option
}

type describe_query_suggestions_config_response = {
  attribute_suggestions_config: attribute_suggestions_describe_config option;
  total_suggestions_count: int option;
  last_clear_time: float option;
  last_suggestions_build_time: float option;
  minimum_query_count: int option;
  minimum_number_of_querying_users: int option;
  include_queries_without_user_information: bool option;
  query_log_look_back_window_in_days: int option;
  status: query_suggestions_status option;
  mode: mode option
}

type describe_query_suggestions_config_request = {
  index_id: string
}

type describe_query_suggestions_block_list_response = {
  role_arn: string option;
  file_size_bytes: int option;
  item_count: int option;
  source_s3_path: s3_path option;
  updated_at: float option;
  created_at: float option;
  error_message: string option;
  status: query_suggestions_block_list_status option;
  description: string option;
  name: string option;
  id: string option;
  index_id: string option
}

type describe_query_suggestions_block_list_request = {
  id: string;
  index_id: string
}

type describe_principal_mapping_response = {
  group_ordering_id_summaries: group_ordering_id_summary list option;
  group_id: string option;
  data_source_id: string option;
  index_id: string option
}

type describe_principal_mapping_request = {
  group_id: string;
  data_source_id: string option;
  index_id: string
}

type describe_index_response = {
  user_group_resolution_configuration: user_group_resolution_configuration option;
  user_context_policy: user_context_policy option;
  user_token_configurations: user_token_configuration list option;
  capacity_units: capacity_units_configuration option;
  error_message: string option;
  index_statistics: index_statistics option;
  document_metadata_configurations: document_metadata_configuration list option;
  updated_at: float option;
  created_at: float option;
  description: string option;
  status: index_status option;
  server_side_encryption_configuration: server_side_encryption_configuration option;
  role_arn: string option;
  edition: index_edition option;
  id: string option;
  name: string option
}

type describe_index_request = {
  id: string
}

type describe_featured_results_set_response = {
  creation_timestamp: int option;
  last_updated_timestamp: int option;
  featured_documents_missing: featured_document_missing list option;
  featured_documents_with_metadata: featured_document_with_metadata list option;
  query_texts: string list option;
  status: featured_results_set_status option;
  description: string option;
  featured_results_set_name: string option;
  featured_results_set_id: string option
}

type describe_featured_results_set_request = {
  featured_results_set_id: string;
  index_id: string
}

type describe_faq_response = {
  language_code: string option;
  file_format: faq_file_format option;
  error_message: string option;
  role_arn: string option;
  status: faq_status option;
  s3_path: s3_path option;
  updated_at: float option;
  created_at: float option;
  description: string option;
  name: string option;
  index_id: string option;
  id: string option
}

type describe_faq_request = {
  index_id: string;
  id: string
}

type describe_experience_response = {
  error_message: string option;
  role_arn: string option;
  status: experience_status option;
  description: string option;
  updated_at: float option;
  created_at: float option;
  configuration: experience_configuration option;
  endpoints: experience_endpoint list option;
  name: string option;
  index_id: string option;
  id: string option
}

type describe_experience_request = {
  index_id: string;
  id: string
}

type describe_data_source_response = {
  custom_document_enrichment_configuration: custom_document_enrichment_configuration option;
  language_code: string option;
  error_message: string option;
  role_arn: string option;
  schedule: string option;
  status: data_source_status option;
  description: string option;
  updated_at: float option;
  created_at: float option;
  vpc_configuration: data_source_vpc_configuration option;
  configuration: data_source_configuration option;
  type_: data_source_type option;
  name: string option;
  index_id: string option;
  id: string option
}

type describe_data_source_request = {
  index_id: string;
  id: string
}

type describe_access_control_configuration_response = {
  hierarchical_access_control_list: hierarchical_principal list option;
  access_control_list: principal list option;
  error_message: string option;
  description: string option;
  name: string
}

type describe_access_control_configuration_request = {
  id: string;
  index_id: string
}

type delete_thesaurus_request = {
  index_id: string;
  id: string
}

type delete_query_suggestions_block_list_request = {
  id: string;
  index_id: string
}

type delete_principal_mapping_request = {
  ordering_id: int option;
  group_id: string;
  data_source_id: string option;
  index_id: string
}

type delete_index_request = {
  id: string
}

type delete_faq_request = {
  index_id: string;
  id: string
}

type delete_experience_response = unit

type delete_experience_request = {
  index_id: string;
  id: string
}

type delete_data_source_request = {
  index_id: string;
  id: string
}

type delete_access_control_configuration_response = unit

type delete_access_control_configuration_request = {
  id: string;
  index_id: string
}

type data_source_sync_job_metric_target = {
  data_source_sync_job_id: string option;
  data_source_id: string
}

type create_thesaurus_response = {
  id: string option
}

type create_thesaurus_request = {
  client_token: string option;
  source_s3_path: s3_path;
  tags: tag list option;
  role_arn: string;
  description: string option;
  name: string;
  index_id: string
}

type create_query_suggestions_block_list_response = {
  id: string option
}

type create_query_suggestions_block_list_request = {
  tags: tag list option;
  role_arn: string;
  client_token: string option;
  source_s3_path: s3_path;
  description: string option;
  name: string;
  index_id: string
}

type create_index_response = {
  id: string option
}

type create_index_request = {
  user_group_resolution_configuration: user_group_resolution_configuration option;
  user_context_policy: user_context_policy option;
  user_token_configurations: user_token_configuration list option;
  tags: tag list option;
  client_token: string option;
  description: string option;
  server_side_encryption_configuration: server_side_encryption_configuration option;
  role_arn: string;
  edition: index_edition option;
  name: string
}

type create_featured_results_set_response = {
  featured_results_set: featured_results_set option
}

type create_featured_results_set_request = {
  tags: tag list option;
  featured_documents: featured_document list option;
  query_texts: string list option;
  status: featured_results_set_status option;
  client_token: string option;
  description: string option;
  featured_results_set_name: string;
  index_id: string
}

type create_faq_response = {
  id: string option
}

type create_faq_request = {
  language_code: string option;
  client_token: string option;
  file_format: faq_file_format option;
  tags: tag list option;
  role_arn: string;
  s3_path: s3_path;
  description: string option;
  name: string;
  index_id: string
}

type create_experience_response = {
  id: string
}

type create_experience_request = {
  client_token: string option;
  description: string option;
  configuration: experience_configuration option;
  role_arn: string option;
  index_id: string;
  name: string
}

type create_data_source_response = {
  id: string
}

type create_data_source_request = {
  custom_document_enrichment_configuration: custom_document_enrichment_configuration option;
  language_code: string option;
  client_token: string option;
  tags: tag list option;
  role_arn: string option;
  schedule: string option;
  description: string option;
  vpc_configuration: data_source_vpc_configuration option;
  configuration: data_source_configuration option;
  type_: data_source_type;
  index_id: string;
  name: string
}

type create_access_control_configuration_response = {
  id: string
}

type create_access_control_configuration_request = {
  client_token: string option;
  hierarchical_access_control_list: hierarchical_principal list option;
  access_control_list: principal list option;
  description: string option;
  name: string;
  index_id: string
}

type clear_query_suggestions_request = {
  index_id: string
}

type batch_put_document_response_failed_document = {
  error_message: string option;
  error_code: error_code option;
  id: string option
}

type batch_put_document_response = {
  failed_documents: batch_put_document_response_failed_document list option
}

type batch_put_document_request = {
  custom_document_enrichment_configuration: custom_document_enrichment_configuration option;
  documents: document list;
  role_arn: string option;
  index_id: string
}

type batch_get_document_status_response_error = {
  error_message: string option;
  error_code: error_code option;
  document_id: string option
}

type batch_get_document_status_response = {
  document_status_list: status list option;
  errors: batch_get_document_status_response_error list option
}

type batch_get_document_status_request = {
  document_info_list: document_info list;
  index_id: string
}

type batch_delete_featured_results_set_error = {
  error_message: string;
  error_code: error_code;
  id: string
}

type batch_delete_featured_results_set_response = {
  errors: batch_delete_featured_results_set_error list
}

type batch_delete_featured_results_set_request = {
  featured_results_set_ids: string list;
  index_id: string
}

type batch_delete_document_response_failed_document = {
  error_message: string option;
  error_code: error_code option;
  id: string option
}

type batch_delete_document_response = {
  failed_documents: batch_delete_document_response_failed_document list option
}

type batch_delete_document_request = {
  data_source_sync_job_metric_target: data_source_sync_job_metric_target option;
  document_id_list: string list;
  index_id: string
}

type associate_personas_to_entities_response = {
  failed_entity_list: failed_entity list option
}

type associate_personas_to_entities_request = {
  personas: entity_persona_configuration list;
  index_id: string;
  id: string
}

type associate_entities_to_experience_response = {
  failed_entity_list: failed_entity list option
}

type associate_entities_to_experience_request = {
  entity_list: entity_configuration list;
  index_id: string;
  id: string
}



type base_document = Json.t

OCaml

Innovation. Community. Security.