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
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"github.com/aws/aws-sdk-go-v2/service/qbusiness/document"
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Used to configure access permissions for a document.
type AccessConfiguration struct {
// A list of AccessControlList objects.
//
// This member is required.
AccessControls []AccessControl
// Describes the member relation within the AccessControlList object.
MemberRelation MemberRelation
noSmithyDocumentSerde
}
// A list of principals. Each principal can be either a USER or a GROUP and can be
// designated document access permissions of either ALLOW or DENY .
type AccessControl struct {
// Contains a list of principals, where a principal can be either a USER or a GROUP
// . Each principal can be have the following type of document access: ALLOW or
// DENY .
//
// This member is required.
Principals []Principal
// Describes the member relation within a principal list.
MemberRelation MemberRelation
noSmithyDocumentSerde
}
// Performs an Amazon Q Business plugin action during a non-streaming chat
// conversation.
type ActionExecution struct {
// A mapping of field names to the field values in input that an end user provides
// to Amazon Q Business requests to perform their plugin action.
//
// This member is required.
Payload map[string]ActionExecutionPayloadField
// A string used to retain information about the hierarchical contexts within an
// action execution event payload.
//
// This member is required.
PayloadFieldNameSeparator *string
// The identifier of the plugin the action is attached to.
//
// This member is required.
PluginId *string
noSmithyDocumentSerde
}
// A request from an end user signalling an intent to perform an Amazon Q Business
// plugin action during a streaming chat.
type ActionExecutionEvent struct {
// A mapping of field names to the field values in input that an end user provides
// to Amazon Q Business requests to perform their plugin action.
//
// This member is required.
Payload map[string]ActionExecutionPayloadField
// A string used to retain information about the hierarchical contexts within a
// action execution event payload.
//
// This member is required.
PayloadFieldNameSeparator *string
// The identifier of the plugin for which the action is being requested.
//
// This member is required.
PluginId *string
noSmithyDocumentSerde
}
// A user input field in an plugin action execution payload.
type ActionExecutionPayloadField struct {
// The content of a user input field in an plugin action execution payload.
//
// This member is required.
Value document.Interface
noSmithyDocumentSerde
}
// An output event that Amazon Q Business returns to an user who wants to perform
// a plugin action during a non-streaming chat conversation. It contains
// information about the selected action with a list of possible user input fields,
// some pre-populated by Amazon Q Business.
type ActionReview struct {
// Field values that an end user needs to provide to Amazon Q Business for Amazon
// Q Business to perform the requested plugin action.
Payload map[string]ActionReviewPayloadField
// A string used to retain information about the hierarchical contexts within an
// action review payload.
PayloadFieldNameSeparator *string
// The identifier of the plugin associated with the action review.
PluginId *string
// The type of plugin.
PluginType PluginType
noSmithyDocumentSerde
}
// An output event that Amazon Q Business returns to an user who wants to perform
// a plugin action during a streaming chat conversation. It contains information
// about the selected action with a list of possible user input fields, some
// pre-populated by Amazon Q Business.
type ActionReviewEvent struct {
// The identifier of the conversation with which the action review event is
// associated.
ConversationId *string
// Field values that an end user needs to provide to Amazon Q Business for Amazon
// Q Business to perform the requested plugin action.
Payload map[string]ActionReviewPayloadField
// A string used to retain information about the hierarchical contexts within an
// action review event payload.
PayloadFieldNameSeparator *string
// The identifier of the plugin associated with the action review event.
PluginId *string
// The type of plugin.
PluginType PluginType
// The identifier of an Amazon Q Business AI generated associated with the action
// review event.
SystemMessageId *string
// The identifier of the conversation with which the plugin action is associated.
UserMessageId *string
noSmithyDocumentSerde
}
// A user input field in an plugin action review payload.
type ActionReviewPayloadField struct {
// The expected data format for the action review input field value. For example,
// in PTO request, from and to would be of datetime allowed format.
AllowedFormat *string
// Information about the field values that an end user can use to provide to
// Amazon Q Business for Amazon Q Business to perform the requested plugin action.
AllowedValues []ActionReviewPayloadFieldAllowedValue
// The field level description of each action review input field. This could be an
// explanation of the field. In the Amazon Q Business web experience, these
// descriptions could be used to display as tool tips to help users understand the
// field.
DisplayDescription *string
// The name of the field.
DisplayName *string
// The display order of fields in a payload.
DisplayOrder *int32
// Information about whether the field is required.
Required *bool
// The type of field.
Type ActionPayloadFieldType
// The field value.
Value document.Interface
noSmithyDocumentSerde
}
// Information about the field values that an end user can use to provide to
// Amazon Q Business for Amazon Q Business to perform the requested plugin action.
type ActionReviewPayloadFieldAllowedValue struct {
// The name of the field.
DisplayValue document.Interface
// The field value.
Value document.Interface
noSmithyDocumentSerde
}
// Contains details about the OpenAPI schema for a custom plugin. For more
// information, see [custom plugin OpenAPI schemas]. You can either include the schema directly in the payload
// field or you can upload it to an S3 bucket and specify the S3 bucket location in
// the s3 field.
//
// The following types satisfy this interface:
//
// APISchemaMemberPayload
// APISchemaMemberS3
//
// [custom plugin OpenAPI schemas]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/custom-plugin.html#plugins-api-schema
type APISchema interface {
isAPISchema()
}
// The JSON or YAML-formatted payload defining the OpenAPI schema for a custom
// plugin.
type APISchemaMemberPayload struct {
Value string
noSmithyDocumentSerde
}
func (*APISchemaMemberPayload) isAPISchema() {}
// Contains details about the S3 object containing the OpenAPI schema for a custom
// plugin. The schema could be in either JSON or YAML format.
type APISchemaMemberS3 struct {
Value S3
noSmithyDocumentSerde
}
func (*APISchemaMemberS3) isAPISchema() {}
// Summary information for an Amazon Q Business application.
type Application struct {
// The identifier for the Amazon Q Business application.
ApplicationId *string
// The Unix timestamp when the Amazon Q Business application was created.
CreatedAt *time.Time
// The name of the Amazon Q Business application.
DisplayName *string
// The status of the Amazon Q Business application. The application is ready to
// use when the status is ACTIVE .
Status ApplicationStatus
// The Unix timestamp when the Amazon Q Business application was last updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Configuration information about the file upload during chat feature for your
// application.
type AppliedAttachmentsConfiguration struct {
// Information about whether file upload during chat functionality is activated
// for your application.
AttachmentsControlMode AttachmentsControlMode
noSmithyDocumentSerde
}
// The creator mode specific admin controls configured for an Amazon Q Business
// application. Determines whether an end user can generate LLM-only responses when
// they use the web experience.
//
// For more information, see [Admin controls and guardrails] and [Conversation settings].
//
// [Conversation settings]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope
// [Admin controls and guardrails]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html
type AppliedCreatorModeConfiguration struct {
// Information about whether creator mode is enabled or disabled for an Amazon Q
// Business application.
//
// This member is required.
CreatorModeControl CreatorModeControl
noSmithyDocumentSerde
}
// A file directly uploaded into a web experience chat.
type AttachmentInput struct {
// The data contained within the uploaded file.
//
// This member is required.
Data []byte
// The name of the file.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// A file input event activated by a end user request to upload files into their
// web experience chat.
type AttachmentInputEvent struct {
// A file directly uploaded into a web experience chat.
Attachment *AttachmentInput
noSmithyDocumentSerde
}
// The details of a file uploaded during chat.
type AttachmentOutput struct {
// An error associated with a file uploaded during chat.
Error *ErrorDetail
// The name of a file uploaded during chat.
Name *string
// The status of a file uploaded during chat.
Status AttachmentStatus
noSmithyDocumentSerde
}
// Configuration information for the file upload during chat feature.
type AttachmentsConfiguration struct {
// Status information about whether file upload functionality is activated or
// deactivated for your end user.
//
// This member is required.
AttachmentsControlMode AttachmentsControlMode
noSmithyDocumentSerde
}
// Enables filtering of responses based on document attributes or metadata fields.
type AttributeFilter struct {
// Performs a logical AND operation on all supplied filters.
AndAllFilters []AttributeFilter
// Returns true when a document contains all the specified document attributes or
// metadata fields. Supported for the following [document attribute value types]: stringListValue .
//
// [document attribute value types]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
ContainsAll *DocumentAttribute
// Returns true when a document contains any of the specified document attributes
// or metadata fields. Supported for the following [document attribute value types]: stringListValue .
//
// [document attribute value types]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
ContainsAny *DocumentAttribute
// Performs an equals operation on two document attributes or metadata fields.
// Supported for the following [document attribute value types]: dateValue , longValue , stringListValue and
// stringValue .
//
// [document attribute value types]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
EqualsTo *DocumentAttribute
// Performs a greater than operation on two document attributes or metadata
// fields. Supported for the following [document attribute value types]: dateValue and longValue .
//
// [document attribute value types]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
GreaterThan *DocumentAttribute
// Performs a greater or equals than operation on two document attributes or
// metadata fields. Supported for the following [document attribute value types]: dateValue and longValue .
//
// [document attribute value types]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
GreaterThanOrEquals *DocumentAttribute
// Performs a less than operation on two document attributes or metadata fields.
// Supported for the following [document attribute value types]: dateValue and longValue .
//
// [document attribute value types]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
LessThan *DocumentAttribute
// Performs a less than or equals operation on two document attributes or metadata
// fields.Supported for the following [document attribute value type]: dateValue and longValue .
//
// [document attribute value type]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeValue.html
LessThanOrEquals *DocumentAttribute
// Performs a logical NOT operation on all supplied filters.
NotFilter *AttributeFilter
// Performs a logical OR operation on all supplied filters.
OrAllFilters []AttributeFilter
noSmithyDocumentSerde
}
// A request made by Amazon Q Business to a third paty authentication server to
// authenticate a custom plugin user.
type AuthChallengeRequest struct {
// The URL sent by Amazon Q Business to the third party authentication server to
// authenticate a custom plugin user through an OAuth protocol.
//
// This member is required.
AuthorizationUrl *string
noSmithyDocumentSerde
}
// An authentication verification event activated by an end user request to use a
// custom plugin.
type AuthChallengeRequestEvent struct {
// The URL sent by Amazon Q Business to a third party authentication server in
// response to an authentication verification event activated by an end user
// request to use a custom plugin.
//
// This member is required.
AuthorizationUrl *string
noSmithyDocumentSerde
}
// Contains details of the authentication information received from a third party
// authentication server in response to an authentication challenge.
type AuthChallengeResponse struct {
// The mapping of key-value pairs in an authentication challenge response.
//
// This member is required.
ResponseMap map[string]string
noSmithyDocumentSerde
}
// An authentication verification event response by a third party authentication
// server to Amazon Q Business.
type AuthChallengeResponseEvent struct {
// The mapping of key-value pairs in an authentication challenge response.
//
// This member is required.
ResponseMap map[string]string
noSmithyDocumentSerde
}
// Information about the basic authentication credentials used to configure a
// plugin.
type BasicAuthConfiguration struct {
// The ARN of an IAM role used by Amazon Q Business to access the basic
// authentication credentials stored in a Secrets Manager secret.
//
// This member is required.
RoleArn *string
// The ARN of the Secrets Manager secret that stores the basic authentication
// credentials used for plugin configuration..
//
// This member is required.
SecretArn *string
noSmithyDocumentSerde
}
// Provides information about the phrases blocked from chat by your chat control
// configuration.
type BlockedPhrasesConfiguration struct {
// A list of phrases blocked from a Amazon Q Business web experience chat.
BlockedPhrases []string
// The configured custom message displayed to an end user informing them that
// they've used a blocked phrase during chat.
SystemMessageOverride *string
noSmithyDocumentSerde
}
// Updates a blocked phrases configuration in your Amazon Q Business application.
type BlockedPhrasesConfigurationUpdate struct {
// Creates or updates a blocked phrases configuration in your Amazon Q Business
// application.
BlockedPhrasesToCreateOrUpdate []string
// Deletes a blocked phrases configuration in your Amazon Q Business application.
BlockedPhrasesToDelete []string
// The configured custom message displayed to your end user when they use blocked
// phrase during chat.
SystemMessageOverride *string
noSmithyDocumentSerde
}
// The streaming input for the Chat API.
//
// The following types satisfy this interface:
//
// ChatInputStreamMemberActionExecutionEvent
// ChatInputStreamMemberAttachmentEvent
// ChatInputStreamMemberAuthChallengeResponseEvent
// ChatInputStreamMemberConfigurationEvent
// ChatInputStreamMemberEndOfInputEvent
// ChatInputStreamMemberTextEvent
type ChatInputStream interface {
isChatInputStream()
}
// A request from an end user to perform an Amazon Q Business plugin action.
type ChatInputStreamMemberActionExecutionEvent struct {
Value ActionExecutionEvent
noSmithyDocumentSerde
}
func (*ChatInputStreamMemberActionExecutionEvent) isChatInputStream() {}
// A request by an end user to upload a file during chat.
type ChatInputStreamMemberAttachmentEvent struct {
Value AttachmentInputEvent
noSmithyDocumentSerde
}
func (*ChatInputStreamMemberAttachmentEvent) isChatInputStream() {}
// An authentication verification event response by a third party authentication
// server to Amazon Q Business.
type ChatInputStreamMemberAuthChallengeResponseEvent struct {
Value AuthChallengeResponseEvent
noSmithyDocumentSerde
}
func (*ChatInputStreamMemberAuthChallengeResponseEvent) isChatInputStream() {}
// A configuration event activated by an end user request to select a specific
// chat mode.
type ChatInputStreamMemberConfigurationEvent struct {
Value ConfigurationEvent
noSmithyDocumentSerde
}
func (*ChatInputStreamMemberConfigurationEvent) isChatInputStream() {}
// The end of the streaming input for the Chat API.
type ChatInputStreamMemberEndOfInputEvent struct {
Value EndOfInputEvent
noSmithyDocumentSerde
}
func (*ChatInputStreamMemberEndOfInputEvent) isChatInputStream() {}
// Information about the payload of the ChatInputStream event containing the end
// user message input.
type ChatInputStreamMemberTextEvent struct {
Value TextInputEvent
noSmithyDocumentSerde
}
func (*ChatInputStreamMemberTextEvent) isChatInputStream() {}
// Configuration information for Amazon Q Business conversation modes.
//
// For more information, see [Admin controls and guardrails] and [Conversation settings].
//
// The following types satisfy this interface:
//
// ChatModeConfigurationMemberPluginConfiguration
//
// [Conversation settings]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope
// [Admin controls and guardrails]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html
type ChatModeConfiguration interface {
isChatModeConfiguration()
}
// Configuration information required to invoke chat in PLUGIN_MODE .
type ChatModeConfigurationMemberPluginConfiguration struct {
Value PluginConfiguration
noSmithyDocumentSerde
}
func (*ChatModeConfigurationMemberPluginConfiguration) isChatModeConfiguration() {}
// The streaming output for the Chat API.
//
// The following types satisfy this interface:
//
// ChatOutputStreamMemberActionReviewEvent
// ChatOutputStreamMemberAuthChallengeRequestEvent
// ChatOutputStreamMemberFailedAttachmentEvent
// ChatOutputStreamMemberMetadataEvent
// ChatOutputStreamMemberTextEvent
type ChatOutputStream interface {
isChatOutputStream()
}
// A request from Amazon Q Business to the end user for information Amazon Q
// Business needs to successfully complete a requested plugin action.
type ChatOutputStreamMemberActionReviewEvent struct {
Value ActionReviewEvent
noSmithyDocumentSerde
}
func (*ChatOutputStreamMemberActionReviewEvent) isChatOutputStream() {}
// An authentication verification event activated by an end user request to use a
// custom plugin.
type ChatOutputStreamMemberAuthChallengeRequestEvent struct {
Value AuthChallengeRequestEvent
noSmithyDocumentSerde
}
func (*ChatOutputStreamMemberAuthChallengeRequestEvent) isChatOutputStream() {}
// A failed file upload event during a web experience chat.
type ChatOutputStreamMemberFailedAttachmentEvent struct {
Value FailedAttachmentEvent
noSmithyDocumentSerde
}
func (*ChatOutputStreamMemberFailedAttachmentEvent) isChatOutputStream() {}
// A metadata event for a AI-generated text output message in a Amazon Q Business
// conversation.
type ChatOutputStreamMemberMetadataEvent struct {
Value MetadataEvent
noSmithyDocumentSerde
}
func (*ChatOutputStreamMemberMetadataEvent) isChatOutputStream() {}
// Information about the payload of the ChatOutputStream event containing the
// AI-generated message output.
type ChatOutputStreamMemberTextEvent struct {
Value TextOutputEvent
noSmithyDocumentSerde
}
func (*ChatOutputStreamMemberTextEvent) isChatOutputStream() {}
// A configuration event activated by an end user request to select a specific
// chat mode.
type ConfigurationEvent struct {
// Enables filtering of responses based on document attributes or metadata fields.
AttributeFilter *AttributeFilter
// The chat modes available to an Amazon Q Business end user.
//
// - RETRIEVAL_MODE - The default chat mode for an Amazon Q Business application.
// When this mode is enabled, Amazon Q Business generates responses only from data
// sources connected to an Amazon Q Business application.
//
// - CREATOR_MODE - By selecting this mode, users can choose to generate
// responses only from the LLM knowledge, without consulting connected data
// sources, for a chat request.
//
// - PLUGIN_MODE - By selecting this mode, users can choose to use plugins in
// chat.
//
// For more information, see [Admin controls and guardrails], [Plugins], and [Conversation settings].
//
// [Conversation settings]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope
// [Admin controls and guardrails]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html
// [Plugins]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/plugins.html
ChatMode ChatMode
// Configuration information for Amazon Q Business conversation modes.
//
// For more information, see [Admin controls and guardrails] and [Conversation settings].
//
// [Conversation settings]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope
// [Admin controls and guardrails]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html
ChatModeConfiguration ChatModeConfiguration
noSmithyDocumentSerde
}
// A rule for configuring how Amazon Q Business responds when it encounters a a
// blocked topic. You can configure a custom message to inform your end users that
// they have asked about a restricted topic and suggest any next steps they should
// take.
type ContentBlockerRule struct {
// The configured custom message displayed to an end user informing them that
// they've used a blocked phrase during chat.
SystemMessageOverride *string
noSmithyDocumentSerde
}
// Rules for retrieving content from data sources connected to a Amazon Q Business
// application for a specific topic control configuration.
type ContentRetrievalRule struct {
// Specifies data sources in a Amazon Q Business application to use for content
// generation.
EligibleDataSources []EligibleDataSource
noSmithyDocumentSerde
}
// A conversation in an Amazon Q Business application.
type Conversation struct {
// The identifier of the Amazon Q Business conversation.
ConversationId *string
// The start time of the conversation.
StartTime *time.Time
// The title of the conversation.
Title *string
noSmithyDocumentSerde
}
// Configuration information required to invoke chat in CREATOR_MODE .
//
// For more information, see [Admin controls and guardrails] and [Conversation settings].
//
// [Conversation settings]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope
// [Admin controls and guardrails]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html
type CreatorModeConfiguration struct {
// Status information about whether CREATOR_MODE has been enabled or disabled. The
// default status is DISABLED .
//
// This member is required.
CreatorModeControl CreatorModeControl
noSmithyDocumentSerde
}
// Configuration information required to create a custom plugin.
type CustomPluginConfiguration struct {
// Contains either details about the S3 object containing the OpenAPI schema for
// the action group or the JSON or YAML-formatted payload defining the schema.
//
// This member is required.
ApiSchema APISchema
// The type of OpenAPI schema to use.
//
// This member is required.
ApiSchemaType APISchemaType
// A description for your custom plugin configuration.
//
// This member is required.
Description *string
noSmithyDocumentSerde
}
// A data source in an Amazon Q Business application.
type DataSource struct {
// The Unix timestamp when the Amazon Q Business data source was created.
CreatedAt *time.Time
// The identifier of the Amazon Q Business data source.
DataSourceId *string
// The name of the Amazon Q Business data source.
DisplayName *string
// The status of the Amazon Q Business data source.
Status DataSourceStatus
// The type of the Amazon Q Business data source.
Type *string
// The Unix timestamp when the Amazon Q Business data source was last updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Provides information about an Amazon Q Business data source connector
// synchronization job.
type DataSourceSyncJob struct {
// If the reason that the synchronization failed is due to an error with the
// underlying data source, this field contains a code that identifies the error.
DataSourceErrorCode *string
// The Unix timestamp when the synchronization job completed.
EndTime *time.Time
// If the Status field is set to FAILED , the ErrorCode field indicates the reason
// the synchronization failed.
Error *ErrorDetail
// The identifier of a data source synchronization job.
ExecutionId *string
// Maps a batch delete document request to a specific data source sync job. This
// is optional and should only be supplied when documents are deleted by a data
// source connector.
Metrics *DataSourceSyncJobMetrics
// The Unix time stamp when the data source synchronization job started.
StartTime *time.Time
// The status of the synchronization job. When the Status field is set to SUCCEEDED
// , the synchronization job is done. If the status code is FAILED , the ErrorCode
// and ErrorMessage fields give you the reason for the failure.
Status DataSourceSyncJobStatus
noSmithyDocumentSerde
}
// Maps a batch delete document request to a specific Amazon Q Business data
// source connector sync job.
type DataSourceSyncJobMetrics struct {
// The current count of documents added from the data source during the data
// source sync.
DocumentsAdded *string
// The current count of documents deleted from the data source during the data
// source sync.
DocumentsDeleted *string
// The current count of documents that failed to sync from the data source during
// the data source sync.
DocumentsFailed *string
// The current count of documents modified in the data source during the data
// source sync.
DocumentsModified *string
// The current count of documents crawled by the ongoing sync job in the data
// source.
DocumentsScanned *string
noSmithyDocumentSerde
}
// Provides configuration information needed to connect to an Amazon VPC (Virtual
// Private Cloud).
type DataSourceVpcConfiguration struct {
// A list of identifiers of security groups within your Amazon VPC. The security
// groups should enable Amazon Q Business to connect to the data source.
//
// This member is required.
SecurityGroupIds []string
// A list of identifiers for subnets within your Amazon VPC. The subnets should be
// able to connect to each other in the VPC, and they should have outgoing access
// to the Internet through a NAT device.
//
// This member is required.
SubnetIds []string
noSmithyDocumentSerde
}
// Provides information on boosting DATE type document attributes.
//
// For more information on how boosting document attributes work in Amazon Q
// Business, see [Boosting using document attributes].
//
// [Boosting using document attributes]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html
type DateAttributeBoostingConfiguration struct {
// Specifies how much a document attribute is boosted.
//
// This member is required.
BoostingLevel DocumentAttributeBoostingLevel
// Specifies the duration, in seconds, of a boost applies to a DATE type document
// attribute.
BoostingDurationInSeconds *int64
noSmithyDocumentSerde
}
// A document deleted from an Amazon Q Business data source connector.
type DeleteDocument struct {
// The identifier of the deleted document.
//
// This member is required.
DocumentId *string
noSmithyDocumentSerde
}
// A document in an Amazon Q Business application.
type Document struct {
// The identifier of the document.
//
// This member is required.
Id *string
// Configuration information for access permission to a document.
AccessConfiguration *AccessConfiguration
// Custom attributes to apply to the document for refining Amazon Q Business web
// experience responses.
Attributes []DocumentAttribute
// The contents of the document.
Content DocumentContent
// The file type of the document in the Blob field.
//
// If you want to index snippets or subsets of HTML documents instead of the
// entirety of the HTML documents, you add the HTML start and closing tags (
// <HTML>content</HTML> ) around the content.
ContentType ContentType
// The configuration information for altering document metadata and content during
// the document ingestion process.
DocumentEnrichmentConfiguration *DocumentEnrichmentConfiguration
// The title of the document.
Title *string
noSmithyDocumentSerde
}
// A document attribute or metadata field.
type DocumentAttribute struct {
// The identifier for the attribute.
//
// This member is required.
Name *string
// The value of the attribute.
//
// This member is required.
Value DocumentAttributeValue
noSmithyDocumentSerde
}
// Provides information on boosting supported Amazon Q Business document attribute
// types. When an end user chat query matches document attributes that have been
// boosted, Amazon Q Business prioritizes generating responses from content that
// matches the boosted document attributes.
//
// For STRING and STRING_LIST type document attributes to be used for boosting on
// the console and the API, they must be enabled for search using the [DocumentAttributeConfiguration]object of
// the [UpdateIndex]API. If you haven't enabled searching on these attributes, you can't boost
// attributes of these data types on either the console or the API.
//
// For more information on how boosting document attributes work in Amazon Q
// Business, see [Boosting using document attributes].
//
// The following types satisfy this interface:
//
// DocumentAttributeBoostingConfigurationMemberDateConfiguration
// DocumentAttributeBoostingConfigurationMemberNumberConfiguration
// DocumentAttributeBoostingConfigurationMemberStringConfiguration
// DocumentAttributeBoostingConfigurationMemberStringListConfiguration
//
// [Boosting using document attributes]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html
// [DocumentAttributeConfiguration]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeConfiguration.html
// [UpdateIndex]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_UpdateIndex.html
type DocumentAttributeBoostingConfiguration interface {
isDocumentAttributeBoostingConfiguration()
}
// Provides information on boosting DATE type document attributes.
type DocumentAttributeBoostingConfigurationMemberDateConfiguration struct {
Value DateAttributeBoostingConfiguration
noSmithyDocumentSerde
}
func (*DocumentAttributeBoostingConfigurationMemberDateConfiguration) isDocumentAttributeBoostingConfiguration() {
}
// Provides information on boosting NUMBER type document attributes.
type DocumentAttributeBoostingConfigurationMemberNumberConfiguration struct {
Value NumberAttributeBoostingConfiguration
noSmithyDocumentSerde
}
func (*DocumentAttributeBoostingConfigurationMemberNumberConfiguration) isDocumentAttributeBoostingConfiguration() {
}
// Provides information on boosting STRING type document attributes.
type DocumentAttributeBoostingConfigurationMemberStringConfiguration struct {
Value StringAttributeBoostingConfiguration
noSmithyDocumentSerde
}
func (*DocumentAttributeBoostingConfigurationMemberStringConfiguration) isDocumentAttributeBoostingConfiguration() {
}
// Provides information on boosting STRING_LIST type document attributes.
type DocumentAttributeBoostingConfigurationMemberStringListConfiguration struct {
Value StringListAttributeBoostingConfiguration
noSmithyDocumentSerde
}
func (*DocumentAttributeBoostingConfigurationMemberStringListConfiguration) isDocumentAttributeBoostingConfiguration() {
}
// The condition used for the target document attribute or metadata field when
// ingesting documents into Amazon Q Business. You use this with [DocumentAttributeTarget]
// DocumentAttributeTarget to apply the condition.
//
// For example, you can create the 'Department' target field and have it prefill
// department names associated with the documents based on information in the
// 'Source_URI' field. Set the condition that if the 'Source_URI' field contains
// 'financial' in its URI value, then prefill the target field 'Department' with
// the target value 'Finance' for the document.
//
// Amazon Q Business can't create a target field if it has not already been
// created as an index field. After you create your index field, you can create a
// document metadata field using DocumentAttributeTarget . Amazon Q Business then
// will map your newly created metadata field to your index field.
//
// [DocumentAttributeTarget]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html
type DocumentAttributeCondition struct {
// The identifier of the document attribute used for the condition.
//
// For example, 'Source_URI' could be an identifier for the attribute or metadata
// field that contains source URIs associated with the documents.
//
// Amazon Q Business currently doesn't support _document_body as an attribute key
// used for the condition.
//
// This member is required.
Key *string
// The identifier of the document attribute used for the condition.
//
// For example, 'Source_URI' could be an identifier for the attribute or metadata
// field that contains source URIs associated with the documents.
//
// Amazon Q Business currently does not support _document_body as an attribute key
// used for the condition.
//
// This member is required.
Operator DocumentEnrichmentConditionOperator
// The value of a document attribute. You can only provide one value for a
// document attribute.
Value DocumentAttributeValue
noSmithyDocumentSerde
}
// Configuration information for document attributes. Document attributes are
// metadata or fields associated with your documents. For example, the company
// department name associated with each document.
//
// For more information, see [Understanding document attributes].
//
// [Understanding document attributes]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/doc-attributes.html
type DocumentAttributeConfiguration struct {
// The name of the document attribute.
Name *string
// Information about whether the document attribute can be used by an end user to
// search for information on their web experience.
Search Status
// The type of document attribute.
Type AttributeType
noSmithyDocumentSerde
}
// The target document attribute or metadata field you want to alter when
// ingesting documents into Amazon Q Business.
//
// For example, you can delete all customer identification numbers associated with
// the documents, stored in the document metadata field called 'Customer_ID' by
// setting the target key as 'Customer_ID' and the deletion flag to TRUE . This
// removes all customer ID values in the field 'Customer_ID'. This would scrub
// personally identifiable information from each document's metadata.
//
// Amazon Q Business can't create a target field if it has not already been
// created as an index field. After you create your index field, you can create a
// document metadata field using [DocumentAttributeTarget]DocumentAttributeTarget . Amazon Q Business will
// then map your newly created document attribute to your index field.
//
// You can also use this with [DocumentAttributeCondition]DocumentAttributeCondition .
//
// [DocumentAttributeTarget]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html
// [DocumentAttributeCondition]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html
type DocumentAttributeTarget struct {
// The identifier of the target document attribute or metadata field. For example,
// 'Department' could be an identifier for the target attribute or metadata field
// that includes the department names associated with the documents.
//
// This member is required.
Key *string
// TRUE to delete the existing target value for your specified target attribute
// key. You cannot create a target value and set this to TRUE .
AttributeValueOperator AttributeValueOperator
// The value of a document attribute. You can only provide one value for a
// document attribute.
Value DocumentAttributeValue
noSmithyDocumentSerde
}
// The value of a document attribute. You can only provide one value for a
// document attribute.
//
// The following types satisfy this interface:
//
// DocumentAttributeValueMemberDateValue
// DocumentAttributeValueMemberLongValue
// DocumentAttributeValueMemberStringListValue
// DocumentAttributeValueMemberStringValue
type DocumentAttributeValue interface {
isDocumentAttributeValue()
}
// A date expressed as an ISO 8601 string.
//
// It's important for the time zone to be included in the ISO 8601 date-time
// format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format
// for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
type DocumentAttributeValueMemberDateValue struct {
Value time.Time
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberDateValue) isDocumentAttributeValue() {}
// A long integer value.
type DocumentAttributeValueMemberLongValue struct {
Value int64
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberLongValue) isDocumentAttributeValue() {}
// A list of strings.
type DocumentAttributeValueMemberStringListValue struct {
Value []string
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberStringListValue) isDocumentAttributeValue() {}
// A string.
type DocumentAttributeValueMemberStringValue struct {
Value string
noSmithyDocumentSerde
}
func (*DocumentAttributeValueMemberStringValue) isDocumentAttributeValue() {}
// The contents of a document.
//
// The following types satisfy this interface:
//
// DocumentContentMemberBlob
// DocumentContentMemberS3
type DocumentContent interface {
isDocumentContent()
}
// The contents of the document. Documents passed to the blob parameter must be
// base64 encoded. Your code might not need to encode the document file bytes if
// you're using an Amazon Web Services SDK to call Amazon Q Business APIs. If you
// are calling the Amazon Q Business endpoint directly using REST, you must base64
// encode the contents before sending.
type DocumentContentMemberBlob struct {
Value []byte
noSmithyDocumentSerde
}
func (*DocumentContentMemberBlob) isDocumentContent() {}
// The path to the document in an Amazon S3 bucket.
type DocumentContentMemberS3 struct {
Value S3
noSmithyDocumentSerde
}
func (*DocumentContentMemberS3) isDocumentContent() {}
// The details of a document within an Amazon Q Business index.
type DocumentDetails struct {
// The timestamp for when the document was created.
CreatedAt *time.Time
// The identifier of the document.
DocumentId *string
// An error message associated with the document.
Error *ErrorDetail
// The current status of the document.
Status DocumentStatus
// The timestamp for when the document was last updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Provides the configuration information for altering document metadata and
// content during the document ingestion process.
//
// For more information, see [Custom document enrichment].
//
// [Custom document enrichment]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html
type DocumentEnrichmentConfiguration struct {
// Configuration information to alter document attributes or metadata fields and
// content when ingesting documents into Amazon Q Business.
InlineConfigurations []InlineDocumentEnrichmentConfiguration
// Provides the configuration information for invoking a Lambda function in Lambda
// to alter document metadata and content when ingesting documents into Amazon Q
// Business.
//
// You can configure your Lambda function using the PreExtractionHookConfiguration
// parameter if you want to apply advanced alterations on the original or raw
// documents.
//
// If you want to apply advanced alterations on the Amazon Q Business structured
// documents, you must configure your Lambda function using
// PostExtractionHookConfiguration .
//
// You can only invoke one Lambda function. However, this function can invoke
// other functions it requires.
//
// For more information, see [Custom document enrichment].
//
// [Custom document enrichment]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html
PostExtractionHookConfiguration *HookConfiguration
// Provides the configuration information for invoking a Lambda function in Lambda
// to alter document metadata and content when ingesting documents into Amazon Q
// Business.
//
// You can configure your Lambda function using the PreExtractionHookConfiguration
// parameter if you want to apply advanced alterations on the original or raw
// documents.
//
// If you want to apply advanced alterations on the Amazon Q Business structured
// documents, you must configure your Lambda function using
// PostExtractionHookConfiguration .
//
// You can only invoke one Lambda function. However, this function can invoke
// other functions it requires.
//
// For more information, see [Custom document enrichment].
//
// [Custom document enrichment]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html
PreExtractionHookConfiguration *HookConfiguration
noSmithyDocumentSerde
}
// The identifier of the data source Amazon Q Business will generate responses
// from.
type EligibleDataSource struct {
// The identifier of the data source.
DataSourceId *string
// The identifier of the index the data source is attached to.
IndexId *string
noSmithyDocumentSerde
}
// Provides the identifier of the KMS key used to encrypt data indexed by Amazon Q
// Business. Amazon Q Business doesn't support asymmetric keys.
type EncryptionConfiguration struct {
// The identifier of the KMS key. Amazon Q Business doesn't support asymmetric
// keys.
KmsKeyId *string
noSmithyDocumentSerde
}
// The end of the streaming input for the Chat API.
type EndOfInputEvent struct {
noSmithyDocumentSerde
}
// Provides information about a data source sync error.
type ErrorDetail struct {
// The code associated with the data source sync error.
ErrorCode ErrorCode
// The message explaining the data source sync error.
ErrorMessage *string
noSmithyDocumentSerde
}
// A failed file upload during web experience chat.
type FailedAttachmentEvent struct {
// The details of a file uploaded during chat.
Attachment *AttachmentOutput
// The identifier of the conversation associated with the failed file upload.
ConversationId *string
// The identifier of the AI-generated message associated with the file upload.
SystemMessageId *string
// The identifier of the end user chat message associated with the file upload.
UserMessageId *string
noSmithyDocumentSerde
}
// A list of documents that could not be removed from an Amazon Q Business index.
// Each entry contains an error message that indicates why the document couldn't be
// removed from the index.
type FailedDocument struct {
// The identifier of the Amazon Q Business data source connector that contains the
// failed document.
DataSourceId *string
// An explanation for why the document couldn't be removed from the index.
Error *ErrorDetail
// The identifier of the document that couldn't be removed from the Amazon Q
// Business index.
Id *string
noSmithyDocumentSerde
}
// A list of users or sub groups that belong to a group. This is for generating
// Amazon Q Business chat results only from document a user has access to.
type GroupMembers struct {
// A list of sub groups that belong to a group. For example, the sub groups
// "Research", "Engineering", and "Sales and Marketing" all belong to the group
// "Company".
MemberGroups []MemberGroup
// A list of users that belong to a group. For example, a list of interns all
// belong to the "Interns" group.
MemberUsers []MemberUser
noSmithyDocumentSerde
}
// Provides the details of a group's status.
type GroupStatusDetail struct {
// The details of an error associated a group status.
ErrorDetail *ErrorDetail
// The Unix timestamp when the Amazon Q Business application was last updated.
LastUpdatedAt *time.Time
// The status of a group.
Status GroupStatus
noSmithyDocumentSerde
}
// Summary information for groups.
type GroupSummary struct {
// The name of the group the summary information is for.
GroupName *string
noSmithyDocumentSerde
}
// Provides the configuration information for invoking a Lambda function in Lambda
// to alter document metadata and content when ingesting documents into Amazon Q
// Business.
//
// You can configure your Lambda function using the PreExtractionHookConfiguration
// parameter if you want to apply advanced alterations on the original or raw
// documents.
//
// If you want to apply advanced alterations on the Amazon Q Business structured
// documents, you must configure your Lambda function using
// PostExtractionHookConfiguration .
//
// You can only invoke one Lambda function. However, this function can invoke
// other functions it requires.
//
// For more information, see [Custom document enrichment].
//
// [Custom document enrichment]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html
type HookConfiguration struct {
// The condition used for when a Lambda function should be invoked.
//
// For example, you can specify a condition that if there are empty date-time
// values, then Amazon Q Business should invoke a function that inserts the current
// date-time.
InvocationCondition *DocumentAttributeCondition
// The Amazon Resource Name (ARN) of a role with permission to run a Lambda
// function during ingestion. For more information, see [IAM roles for Custom Document Enrichment (CDE)].
//
// [IAM roles for Custom Document Enrichment (CDE)]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/iam-roles.html#cde-iam-role
LambdaArn *string
// The Amazon Resource Name (ARN) of a role with permission to run
// PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering
// document metadata and content during the document ingestion process.
RoleArn *string
// Stores the original, raw documents or the structured, parsed documents before
// and after altering them. For more information, see [Data contracts for Lambda functions].
//
// [Data contracts for Lambda functions]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/cde-lambda-operations.html#cde-lambda-operations-data-contracts
S3BucketName *string
noSmithyDocumentSerde
}
// Summary information for your Amazon Q Business index.
type Index struct {
// The Unix timestamp when the index was created.
CreatedAt *time.Time
// The name of the index.
DisplayName *string
// The identifier for the index.
IndexId *string
// The current status of the index. When the status is ACTIVE , the index is ready.
Status IndexStatus
// The Unix timestamp when the index was last updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Provides information about index capacity configuration.
type IndexCapacityConfiguration struct {
// The number of storage units configured for an Amazon Q Business index.
Units *int32
noSmithyDocumentSerde
}
// Provides information about the number of documents in an index.
type IndexStatistics struct {
// The number of documents indexed.
TextDocumentStatistics *TextDocumentStatistics
noSmithyDocumentSerde
}
// Provides the configuration information for applying basic logic to alter
// document metadata and content when ingesting documents into Amazon Q Business.
//
// To apply advanced logic, to go beyond what you can do with basic logic, see [HookConfiguration]
// HookConfiguration .
//
// For more information, see [Custom document enrichment].
//
// [Custom document enrichment]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html
// [HookConfiguration]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_HookConfiguration.html
type InlineDocumentEnrichmentConfiguration struct {
// The condition used for the target document attribute or metadata field when
// ingesting documents into Amazon Q Business. You use this with [DocumentAttributeTarget]
// DocumentAttributeTarget to apply the condition.
//
// For example, you can create the 'Department' target field and have it prefill
// department names associated with the documents based on information in the
// 'Source_URI' field. Set the condition that if the 'Source_URI' field contains
// 'financial' in its URI value, then prefill the target field 'Department' with
// the target value 'Finance' for the document.
//
// Amazon Q Business can't create a target field if it has not already been
// created as an index field. After you create your index field, you can create a
// document metadata field using DocumentAttributeTarget . Amazon Q Business then
// will map your newly created metadata field to your index field.
//
// [DocumentAttributeTarget]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html
Condition *DocumentAttributeCondition
// TRUE to delete content if the condition used for the target attribute is met.
DocumentContentOperator DocumentContentOperator
// The target document attribute or metadata field you want to alter when
// ingesting documents into Amazon Q Business.
//
// For example, you can delete all customer identification numbers associated with
// the documents, stored in the document metadata field called 'Customer_ID' by
// setting the target key as 'Customer_ID' and the deletion flag to TRUE . This
// removes all customer ID values in the field 'Customer_ID'. This would scrub
// personally identifiable information from each document's metadata.
//
// Amazon Q Business can't create a target field if it has not already been
// created as an index field. After you create your index field, you can create a
// document metadata field using [DocumentAttributeTarget]DocumentAttributeTarget . Amazon Q Business will
// then map your newly created document attribute to your index field.
//
// You can also use this with [DocumentAttributeCondition]DocumentAttributeCondition .
//
// [DocumentAttributeTarget]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html
// [DocumentAttributeCondition]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html
Target *DocumentAttributeTarget
noSmithyDocumentSerde
}
// Stores an Amazon Kendra index as a retriever.
type KendraIndexConfiguration struct {
// The identifier of the Amazon Kendra index.
//
// This member is required.
IndexId *string
noSmithyDocumentSerde
}
// The sub groups that belong to a group.
type MemberGroup struct {
// The name of the sub group.
//
// This member is required.
GroupName *string
// The type of the sub group.
Type MembershipType
noSmithyDocumentSerde
}
// The users that belong to a group.
type MemberUser struct {
// The identifier of the user you want to map to a group.
//
// This member is required.
UserId *string
// The type of the user.
Type MembershipType
noSmithyDocumentSerde
}
// A message in an Amazon Q Business web experience.
type Message struct {
// Performs an Amazon Q Business plugin action during a non-streaming chat
// conversation.
ActionExecution *ActionExecution
// An output event that Amazon Q Business returns to an user who wants to perform
// a plugin action during a non-streaming chat conversation. It contains
// information about the selected action with a list of possible user input fields,
// some pre-populated by Amazon Q Business.
ActionReview *ActionReview
// A file directly uploaded into an Amazon Q Business web experience chat.
Attachments []AttachmentOutput
// The content of the Amazon Q Business web experience message.
Body *string
// The identifier of the Amazon Q Business web experience message.
MessageId *string
// The source documents used to generate Amazon Q Business web experience message.
SourceAttribution []*SourceAttribution
// The timestamp of the first Amazon Q Business web experience message.
Time *time.Time
// The type of Amazon Q Business message, whether HUMAN or AI generated.
Type MessageType
noSmithyDocumentSerde
}
// End user feedback on an AI-generated web experience chat message usefulness.
type MessageUsefulnessFeedback struct {
// The timestamp for when the feedback was submitted.
//
// This member is required.
SubmittedAt *time.Time
// The usefulness value assigned by an end user to a message.
//
// This member is required.
Usefulness MessageUsefulness
// A comment given by an end user on the usefulness of an AI-generated chat
// message.
Comment *string
// The reason for a usefulness rating.
Reason MessageUsefulnessReason
noSmithyDocumentSerde
}
// A metadata event for a AI-generated text output message in a Amazon Q Business
// conversation, containing associated metadata generated.
type MetadataEvent struct {
// The identifier of the conversation with which the generated metadata is
// associated.
ConversationId *string
// The final text output message generated by the system.
FinalTextMessage *string
// The source documents used to generate the conversation response.
SourceAttributions []*SourceAttribution
// The identifier of an Amazon Q Business AI generated message within the
// conversation.
SystemMessageId *string
// The identifier of an Amazon Q Business end user text input message within the
// conversation.
UserMessageId *string
noSmithyDocumentSerde
}
// Configuration information for an Amazon Q Business index.
type NativeIndexConfiguration struct {
// The identifier for the Amazon Q Business index.
//
// This member is required.
IndexId *string
// Overrides the default boosts applied by Amazon Q Business to supported document
// attribute data types.
BoostingOverride map[string]DocumentAttributeBoostingConfiguration
noSmithyDocumentSerde
}
// Information about invoking a custom plugin without any authentication or
// authorization requirement.
type NoAuthConfiguration struct {
noSmithyDocumentSerde
}
// Provides information on boosting NUMBER type document attributes.
//
// For more information on how boosting document attributes work in Amazon Q
// Business, see [Boosting using document attributes].
//
// [Boosting using document attributes]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html
type NumberAttributeBoostingConfiguration struct {
// Specifies the duration, in seconds, of a boost applies to a NUMBER type
// document attribute.
//
// This member is required.
BoostingLevel DocumentAttributeBoostingLevel
// Specifies how much a document attribute is boosted.
BoostingType NumberAttributeBoostingType
noSmithyDocumentSerde
}
// Information about the OAuth 2.0 authentication credential/token used to
// configure a plugin.
type OAuth2ClientCredentialConfiguration struct {
// The ARN of an IAM role used by Amazon Q Business to access the OAuth 2.0
// authentication credentials stored in a Secrets Manager secret.
//
// This member is required.
RoleArn *string
// The ARN of the Secrets Manager secret that stores the OAuth 2.0
// credentials/token used for plugin configuration.
//
// This member is required.
SecretArn *string
noSmithyDocumentSerde
}
// Configuration information about chat response personalization. For more
// information, see [Personalizing chat responses].
//
// [Personalizing chat responses]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/personalizing-chat-responses.html
type PersonalizationConfiguration struct {
// An option to allow Amazon Q Business to customize chat responses using user
// specific metadata—specifically, location and job information—in your IAM
// Identity Center instance.
//
// This member is required.
PersonalizationControlMode PersonalizationControlMode
noSmithyDocumentSerde
}
// Information about an Amazon Q Business plugin and its configuration.
type Plugin struct {
// The status of the plugin.
BuildStatus PluginBuildStatus
// The timestamp for when the plugin was created.
CreatedAt *time.Time
// The name of the plugin.
DisplayName *string
// The identifier of the plugin.
PluginId *string
// The plugin server URL used for configuration.
ServerUrl *string
// The current status of the plugin.
State PluginState
// The type of the plugin.
Type PluginType
// The timestamp for when the plugin was last updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Authentication configuration information for an Amazon Q Business plugin.
//
// The following types satisfy this interface:
//
// PluginAuthConfigurationMemberBasicAuthConfiguration
// PluginAuthConfigurationMemberNoAuthConfiguration
// PluginAuthConfigurationMemberOAuth2ClientCredentialConfiguration
type PluginAuthConfiguration interface {
isPluginAuthConfiguration()
}
// Information about the basic authentication credentials used to configure a
// plugin.
type PluginAuthConfigurationMemberBasicAuthConfiguration struct {
Value BasicAuthConfiguration
noSmithyDocumentSerde
}
func (*PluginAuthConfigurationMemberBasicAuthConfiguration) isPluginAuthConfiguration() {}
// Information about invoking a custom plugin without any authentication.
type PluginAuthConfigurationMemberNoAuthConfiguration struct {
Value NoAuthConfiguration
noSmithyDocumentSerde
}
func (*PluginAuthConfigurationMemberNoAuthConfiguration) isPluginAuthConfiguration() {}
// Information about the OAuth 2.0 authentication credential/token used to
// configure a plugin.
type PluginAuthConfigurationMemberOAuth2ClientCredentialConfiguration struct {
Value OAuth2ClientCredentialConfiguration
noSmithyDocumentSerde
}
func (*PluginAuthConfigurationMemberOAuth2ClientCredentialConfiguration) isPluginAuthConfiguration() {
}
// Configuration information required to invoke chat in PLUGIN_MODE .
//
// For more information, see [Admin controls and guardrails], [Plugins], and [Conversation settings].
//
// [Conversation settings]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope
// [Admin controls and guardrails]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html
// [Plugins]: https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/plugins.html
type PluginConfiguration struct {
// The identifier of the plugin you want to use.
//
// This member is required.
PluginId *string
noSmithyDocumentSerde
}
// Provides user and group information used for filtering documents to use for
// generating Amazon Q Business conversation responses.
//
// The following types satisfy this interface:
//
// PrincipalMemberGroup
// PrincipalMemberUser
type Principal interface {
isPrincipal()
}
// The group associated with the principal.
type PrincipalMemberGroup struct {
Value PrincipalGroup
noSmithyDocumentSerde
}
func (*PrincipalMemberGroup) isPrincipal() {}
// The user associated with the principal.
type PrincipalMemberUser struct {
Value PrincipalUser
noSmithyDocumentSerde
}
func (*PrincipalMemberUser) isPrincipal() {}
// Provides information about a group associated with the principal.
type PrincipalGroup struct {
// Provides information about whether to allow or deny access to the principal.
//
// This member is required.
Access ReadAccessType
// The type of group.
MembershipType MembershipType
// The name of the group.
Name *string
noSmithyDocumentSerde
}
// Provides information about a user associated with a principal.
type PrincipalUser struct {
// Provides information about whether to allow or deny access to the principal.
//
// This member is required.
Access ReadAccessType
// The identifier of the user.
Id *string
// The type of group.
MembershipType MembershipType
noSmithyDocumentSerde
}
// Configuration information about Amazon Q Apps. (preview feature)
type QAppsConfiguration struct {
// Status information about whether end users can create and use Amazon Q Apps in
// the web experience.
//
// This member is required.
QAppsControlMode QAppsControlMode
noSmithyDocumentSerde
}
// Summary information for the retriever used for your Amazon Q Business
// application.
type Retriever struct {
// The identifier of the Amazon Q Business application using the retriever.
ApplicationId *string
// The name of your retriever.
DisplayName *string
// The identifier of the retriever used by your Amazon Q Business application.
RetrieverId *string
// The status of your retriever.
Status RetrieverStatus
// The type of your retriever.
Type RetrieverType
noSmithyDocumentSerde
}
// Provides information on how the retriever used for your Amazon Q Business
// application is configured.
//
// The following types satisfy this interface:
//
// RetrieverConfigurationMemberKendraIndexConfiguration
// RetrieverConfigurationMemberNativeIndexConfiguration
type RetrieverConfiguration interface {
isRetrieverConfiguration()
}
// Provides information on how the Amazon Kendra index used as a retriever for
// your Amazon Q Business application is configured.
type RetrieverConfigurationMemberKendraIndexConfiguration struct {
Value KendraIndexConfiguration
noSmithyDocumentSerde
}
func (*RetrieverConfigurationMemberKendraIndexConfiguration) isRetrieverConfiguration() {}
// Provides information on how a Amazon Q Business index used as a retriever for
// your Amazon Q Business application is configured.
type RetrieverConfigurationMemberNativeIndexConfiguration struct {
Value NativeIndexConfiguration
noSmithyDocumentSerde
}
func (*RetrieverConfigurationMemberNativeIndexConfiguration) isRetrieverConfiguration() {}
// Guardrail rules for an Amazon Q Business application. Amazon Q Business
// supports only one rule at a time.
type Rule struct {
// The type of rule.
//
// This member is required.
RuleType RuleType
// Users and groups to be excluded from a rule.
ExcludedUsersAndGroups *UsersAndGroups
// Users and groups to be included in a rule.
IncludedUsersAndGroups *UsersAndGroups
// The configuration information for a rule.
RuleConfiguration RuleConfiguration
noSmithyDocumentSerde
}
// Provides configuration information about a rule.
//
// The following types satisfy this interface:
//
// RuleConfigurationMemberContentBlockerRule
// RuleConfigurationMemberContentRetrievalRule
type RuleConfiguration interface {
isRuleConfiguration()
}
// A rule for configuring how Amazon Q Business responds when it encounters a a
// blocked topic.
type RuleConfigurationMemberContentBlockerRule struct {
Value ContentBlockerRule
noSmithyDocumentSerde
}
func (*RuleConfigurationMemberContentBlockerRule) isRuleConfiguration() {}
// Rules for retrieving content from data sources connected to a Amazon Q Business
// application for a specific topic control configuration.
type RuleConfigurationMemberContentRetrievalRule struct {
Value ContentRetrievalRule
noSmithyDocumentSerde
}
func (*RuleConfigurationMemberContentRetrievalRule) isRuleConfiguration() {}
// Information required for Amazon Q Business to find a specific file in an Amazon
// S3 bucket.
type S3 struct {
// The name of the S3 bucket that contains the file.
//
// This member is required.
Bucket *string
// The name of the file.
//
// This member is required.
Key *string
noSmithyDocumentSerde
}
// Provides the SAML 2.0 compliant identity provider (IdP) configuration
// information Amazon Q Business needs to deploy a Amazon Q Business web
// experience.
type SamlConfiguration struct {
// The metadata XML that your IdP generated.
//
// This member is required.
MetadataXML *string
// The Amazon Resource Name (ARN) of an IAM role assumed by users when they
// authenticate into their Amazon Q Business web experience, containing the
// relevant Amazon Q Business permissions for conversing with Amazon Q Business.
//
// This member is required.
RoleArn *string
// The user attribute name in your IdP that maps to the user email.
//
// This member is required.
UserIdAttribute *string
// The group attribute name in your IdP that maps to user groups.
UserGroupAttribute *string
noSmithyDocumentSerde
}
// Contains the relevant text excerpt from a source that was used to generate a
// citation text segment in an Amazon Q Business chat response.
type SnippetExcerpt struct {
// The relevant text excerpt from a source that was used to generate a citation
// text segment in an Amazon Q chat response.
Text *string
noSmithyDocumentSerde
}
// The documents used to generate an Amazon Q Business web experience response.
type SourceAttribution struct {
// The number attached to a citation in an Amazon Q Business generated response.
CitationNumber *int32
// The content extract from the document on which the generated response is based.
Snippet *string
// A text extract from a source document that is used for source attribution.
TextMessageSegments []TextSegment
// The title of the document which is the source for the Amazon Q Business
// generated response.
Title *string
// The Unix timestamp when the Amazon Q Business application was last updated.
UpdatedAt *time.Time
// The URL of the document which is the source for the Amazon Q Business generated
// response.
Url *string
noSmithyDocumentSerde
}
// Provides information on boosting STRING type document attributes.
//
// For STRING and STRING_LIST type document attributes to be used for boosting on
// the console and the API, they must be enabled for search using the [DocumentAttributeConfiguration]object of
// the [UpdateIndex]API. If you haven't enabled searching on these attributes, you can't boost
// attributes of these data types on either the console or the API.
//
// For more information on how boosting document attributes work in Amazon Q
// Business, see [Boosting using document attributes].
//
// [Boosting using document attributes]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html
// [DocumentAttributeConfiguration]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeConfiguration.html
// [UpdateIndex]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_UpdateIndex.html
type StringAttributeBoostingConfiguration struct {
// Specifies how much a document attribute is boosted.
//
// This member is required.
BoostingLevel DocumentAttributeBoostingLevel
// Specifies specific values of a STRING type document attribute being boosted.
AttributeValueBoosting map[string]StringAttributeValueBoostingLevel
noSmithyDocumentSerde
}
// Provides information on boosting STRING_LIST type document attributes.
//
// For STRING and STRING_LIST type document attributes to be used for boosting on
// the console and the API, they must be enabled for search using the [DocumentAttributeConfiguration]object of
// the [UpdateIndex]API. If you haven't enabled searching on these attributes, you can't boost
// attributes of these data types on either the console or the API.
//
// For more information on how boosting document attributes work in Amazon Q
// Business, see [Boosting using document attributes].
//
// [Boosting using document attributes]: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/metadata-boosting.html
// [DocumentAttributeConfiguration]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeConfiguration.html
// [UpdateIndex]: https://docs.aws.amazon.com/amazonq/latest/api-reference/API_UpdateIndex.html
type StringListAttributeBoostingConfiguration struct {
// Specifies how much a document attribute is boosted.
//
// This member is required.
BoostingLevel DocumentAttributeBoostingLevel
noSmithyDocumentSerde
}
// A list of key/value pairs that identify an index, FAQ, or data source. Tag keys
// and values can consist of Unicode letters, digits, white space, and any of the
// following symbols: _ . : / = + - @.
type Tag struct {
// The key for the tag. Keys are not case sensitive and must be unique for the
// Amazon Q Business application or data source.
//
// This member is required.
Key *string
// The value associated with the tag. The value may be an empty string but it
// can't be null.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Provides information about text documents in an index.
type TextDocumentStatistics struct {
// The total size, in bytes, of the indexed documents.
IndexedTextBytes *int64
// The number of text documents indexed.
IndexedTextDocumentCount *int32
noSmithyDocumentSerde
}
// An input event for a end user message in an Amazon Q Business web experience.
type TextInputEvent struct {
// A user message in a text message input event.
//
// This member is required.
UserMessage *string
noSmithyDocumentSerde
}
// An output event for an AI-generated response in an Amazon Q Business web
// experience.
type TextOutputEvent struct {
// The identifier of the conversation with which the text output event is
// associated.
ConversationId *string
// An AI-generated message in a TextOutputEvent .
SystemMessage *string
// The identifier of an AI-generated message in a TextOutputEvent .
SystemMessageId *string
// The identifier of an end user message in a TextOutputEvent .
UserMessageId *string
noSmithyDocumentSerde
}
// Provides information about a text extract in a chat response that can be
// attributed to a source document.
type TextSegment struct {
// The zero-based location in the response string where the source attribution
// starts.
BeginOffset *int32
// The zero-based location in the response string where the source attribution
// ends.
EndOffset *int32
// The relevant text excerpt from a source that was used to generate a citation
// text segment in an Amazon Q Business chat response.
SnippetExcerpt *SnippetExcerpt
noSmithyDocumentSerde
}
// The topic specific controls configured for an Amazon Q Business application.
type TopicConfiguration struct {
// A name for your topic control configuration.
//
// This member is required.
Name *string
// Rules defined for a topic configuration.
//
// This member is required.
Rules []Rule
// A description for your topic control configuration. Use this to outline how the
// large language model (LLM) should use this topic control configuration.
Description *string
// A list of example phrases that you expect the end user to use in relation to
// the topic.
ExampleChatMessages []string
noSmithyDocumentSerde
}
// Aliases attached to a user id within an Amazon Q Business application.
type UserAlias struct {
// The identifier of the user id associated with the user aliases.
//
// This member is required.
UserId *string
// The identifier of the data source that the user aliases are associated with.
DataSourceId *string
// The identifier of the index that the user aliases are associated with.
IndexId *string
noSmithyDocumentSerde
}
// Provides information about users and groups associated with a topic control
// rule.
type UsersAndGroups struct {
// The user groups associated with a topic control rule.
UserGroups []string
// The user ids associated with a topic control rule.
UserIds []string
noSmithyDocumentSerde
}
// The input failed to meet the constraints specified by Amazon Q Business in a
// specified field.
type ValidationExceptionField struct {
// A message about the validation exception.
//
// This member is required.
Message *string
// The field name where the invalid entry was detected.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Provides information for an Amazon Q Business web experience.
type WebExperience struct {
// The Unix timestamp when the Amazon Q Business application was last updated.
CreatedAt *time.Time
// The endpoint URLs for your Amazon Q Business web experience. The URLs are
// unique and fully hosted by Amazon Web Services.
DefaultEndpoint *string
// The status of your Amazon Q Business web experience.
Status WebExperienceStatus
// The Unix timestamp when your Amazon Q Business web experience was updated.
UpdatedAt *time.Time
// The identifier of your Amazon Q Business web experience.
WebExperienceId *string
noSmithyDocumentSerde
}
// Provides the authorization configuration information needed to deploy a Amazon
// Q Business web experience to end users.
//
// The following types satisfy this interface:
//
// WebExperienceAuthConfigurationMemberSamlConfiguration
type WebExperienceAuthConfiguration interface {
isWebExperienceAuthConfiguration()
}
// Provides the SAML 2.0 compliant identity provider (IdP) configuration
// information Amazon Q Business needs to deploy a Amazon Q Business web
// experience.
type WebExperienceAuthConfigurationMemberSamlConfiguration struct {
Value SamlConfiguration
noSmithyDocumentSerde
}
func (*WebExperienceAuthConfigurationMemberSamlConfiguration) isWebExperienceAuthConfiguration() {}
type noSmithyDocumentSerde = smithydocument.NoSerde
// UnknownUnionMember is returned when a union member is returned over the wire,
// but has an unknown tag.
type UnknownUnionMember struct {
Tag string
Value []byte
noSmithyDocumentSerde
}
func (*UnknownUnionMember) isAPISchema() {}
func (*UnknownUnionMember) isChatInputStream() {}
func (*UnknownUnionMember) isChatModeConfiguration() {}
func (*UnknownUnionMember) isChatOutputStream() {}
func (*UnknownUnionMember) isDocumentAttributeBoostingConfiguration() {}
func (*UnknownUnionMember) isDocumentAttributeValue() {}
func (*UnknownUnionMember) isDocumentContent() {}
func (*UnknownUnionMember) isPluginAuthConfiguration() {}
func (*UnknownUnionMember) isPrincipal() {}
func (*UnknownUnionMember) isRetrieverConfiguration() {}
func (*UnknownUnionMember) isRuleConfiguration() {}
func (*UnknownUnionMember) isWebExperienceAuthConfiguration() {}
|