1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Provides settings that enable advanced recognition settings for slot values.
type AdvancedRecognitionSetting struct {
// Enables using the slot values as a custom vocabulary for recognizing user
// utterances.
AudioRecognitionStrategy AudioRecognitionStrategy
noSmithyDocumentSerde
}
// Filters responses returned by the ListAggregatedUtterances operation.
type AggregatedUtterancesFilter struct {
// The name of the field to filter the utterance list.
//
// This member is required.
Name AggregatedUtterancesFilterName
// The operator to use for the filter. Specify EQ when the ListAggregatedUtterances
// operation should return only utterances that equal the specified value. Specify
// CO when the ListAggregatedUtterances operation should return utterances that
// contain the specified value.
//
// This member is required.
Operator AggregatedUtterancesFilterOperator
// The value to use for filtering the list of bots.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of utterances.
type AggregatedUtterancesSortBy struct {
// The utterance attribute to sort by.
//
// This member is required.
Attribute AggregatedUtterancesSortAttribute
// Specifies whether to sort the aggregated utterances in ascending or descending
// order.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Provides summary information for aggregated utterances. The
// ListAggregatedUtterances operations combines all instances of the same utterance
// into a single aggregated summary.
type AggregatedUtterancesSummary struct {
// Aggregated utterance data may contain utterances from versions of your bot that
// have since been deleted. When the aggregated contains this kind of data, this
// field is set to true.
ContainsDataFromDeletedResources *bool
// The number of times that the utterance was detected by Amazon Lex during the
// time period. When an utterance is detected, it activates an intent or a slot.
HitCount *int32
// The number of times that the utterance was missed by Amazon Lex An utterance is
// missed when it doesn't activate an intent or slot.
MissedCount *int32
// The text of the utterance. If the utterance was used with the RecognizeUtterance
// operation, the text is the transcription of the audio utterance.
Utterance *string
// The date and time that the utterance was first recorded in the time window for
// aggregation. An utterance may have been sent to Amazon Lex before that time, but
// only utterances within the time window are counted.
UtteranceFirstRecordedInAggregationDuration *time.Time
// The last date and time that an utterance was recorded in the time window for
// aggregation. An utterance may be sent to Amazon Lex after that time, but only
// utterances within the time window are counted.
UtteranceLastRecordedInAggregationDuration *time.Time
noSmithyDocumentSerde
}
// Specifies the allowed input types.
type AllowedInputTypes struct {
// Indicates whether audio input is allowed.
//
// This member is required.
AllowAudioInput *bool
// Indicates whether DTMF input is allowed.
//
// This member is required.
AllowDTMFInput *bool
noSmithyDocumentSerde
}
// The object containing information that associates the recommended intent/slot
// type with a conversation.
type AssociatedTranscript struct {
// The content of the transcript that meets the search filter criteria. For the
// JSON format of the transcript, see Output transcript format
// (https://docs.aws.amazon.com/lexv2/latest/dg/designing-output-format.html).
Transcript *string
noSmithyDocumentSerde
}
// Filters to search for the associated transcript.
type AssociatedTranscriptFilter struct {
// The name of the field to use for filtering. The allowed names are IntentId and
// SlotTypeId.
//
// This member is required.
Name AssociatedTranscriptFilterName
// The values to use to filter the transcript.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Specifies the audio and DTMF input specification.
type AudioAndDTMFInputSpecification struct {
// Time for which a bot waits before assuming that the customer isn't going to
// speak or press a key. This timeout is shared between Audio and DTMF inputs.
//
// This member is required.
StartTimeoutMs *int32
// Specifies the settings on audio input.
AudioSpecification *AudioSpecification
// Specifies the settings on DTMF input.
DtmfSpecification *DTMFSpecification
noSmithyDocumentSerde
}
// The location of audio log files collected when conversation logging is enabled
// for a bot.
type AudioLogDestination struct {
// The Amazon S3 bucket where the audio log files are stored. The IAM role
// specified in the roleArn parameter of the CreateBot
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_CreateBot.html) operation must
// have permission to write to this bucket.
//
// This member is required.
S3Bucket *S3BucketLogDestination
noSmithyDocumentSerde
}
// Settings for logging audio of conversations between Amazon Lex and a user. You
// specify whether to log audio and the Amazon S3 bucket where the audio file is
// stored.
type AudioLogSetting struct {
// The location of audio log files collected when conversation logging is enabled
// for a bot.
//
// This member is required.
Destination *AudioLogDestination
// Determines whether audio logging in enabled for the bot.
//
// This member is required.
Enabled bool
noSmithyDocumentSerde
}
// Specifies the audio input specifications.
type AudioSpecification struct {
// Time for which a bot waits after the customer stops speaking to assume the
// utterance is finished.
//
// This member is required.
EndTimeoutMs *int32
// Time for how long Amazon Lex waits before speech input is truncated and the
// speech is returned to application.
//
// This member is required.
MaxLengthMs *int32
noSmithyDocumentSerde
}
// Provides a record of an event that affects a bot alias. For example, when the
// version of a bot that the alias points to changes.
type BotAliasHistoryEvent struct {
// The version of the bot that was used in the event.
BotVersion *string
// The date and time that the event ended.
EndDate *time.Time
// The date and time that the event started.
StartDate *time.Time
noSmithyDocumentSerde
}
// Specifies settings that are unique to a locale. For example, you can use
// different Lambda function depending on the bot's locale.
type BotAliasLocaleSettings struct {
// Determines whether the locale is enabled for the bot. If the value is false, the
// locale isn't available for use.
//
// This member is required.
Enabled bool
// Specifies the Lambda function that should be used in the locale.
CodeHookSpecification *CodeHookSpecification
noSmithyDocumentSerde
}
// Summary information about bot aliases returned from the ListBotAliases
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListBotAliases.html) operation.
type BotAliasSummary struct {
// The unique identifier assigned to the bot alias. You can use this ID to get
// detailed information about the alias using the DescribeBotAlias
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_DescribeBotAlias.html)
// operation.
BotAliasId *string
// The name of the bot alias.
BotAliasName *string
// The current state of the bot alias. If the status is Available, the alias is
// ready for use.
BotAliasStatus BotAliasStatus
// The version of the bot that the bot alias references.
BotVersion *string
// A timestamp of the date and time that the bot alias was created.
CreationDateTime *time.Time
// The description of the bot alias.
Description *string
// A timestamp of the date and time that the bot alias was last updated.
LastUpdatedDateTime *time.Time
noSmithyDocumentSerde
}
// Provides the identity of a the bot that was exported.
type BotExportSpecification struct {
// The identifier of the bot assigned by Amazon Lex.
//
// This member is required.
BotId *string
// The version of the bot that was exported. This will be either DRAFT or the
// version number.
//
// This member is required.
BotVersion *string
noSmithyDocumentSerde
}
// Filters the responses returned by the ListBots operation.
type BotFilter struct {
// The name of the field to filter the list of bots.
//
// This member is required.
Name BotFilterName
// The operator to use for the filter. Specify EQ when the ListBots operation
// should return only aliases that equal the specified value. Specify CO when the
// ListBots operation should return aliases that contain the specified value.
//
// This member is required.
Operator BotFilterOperator
// The value to use for filtering the list of bots.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Provides the bot parameters required for importing a bot.
type BotImportSpecification struct {
// The name that Amazon Lex should use for the bot.
//
// This member is required.
BotName *string
// By default, data stored by Amazon Lex is encrypted. The DataPrivacy structure
// provides settings that determine how Amazon Lex handles special cases of
// securing the data for your bot.
//
// This member is required.
DataPrivacy *DataPrivacy
// The Amazon Resource Name (ARN) of the IAM role used to build and run the bot.
//
// This member is required.
RoleArn *string
// A list of tags to add to the bot. You can only add tags when you import a bot.
// You can't use the UpdateBot operation to update tags. To update tags, use the
// TagResource operation.
BotTags map[string]string
// The time, in seconds, that Amazon Lex should keep information about a user's
// conversation with the bot. A user interaction remains active for the amount of
// time specified. If no conversation occurs during this time, the session expires
// and Amazon Lex deletes any data provided before the timeout. You can specify
// between 60 (1 minute) and 86,400 (24 hours) seconds.
IdleSessionTTLInSeconds *int32
// A list of tags to add to the test alias for a bot. You can only add tags when
// you import a bot. You can't use the UpdateAlias operation to update tags. To
// update tags on the test alias, use the TagResource operation.
TestBotAliasTags map[string]string
noSmithyDocumentSerde
}
// Provides the bot locale parameters required for exporting a bot locale.
type BotLocaleExportSpecification struct {
// The identifier of the bot to create the locale for.
//
// This member is required.
BotId *string
// The version of the bot to export.
//
// This member is required.
BotVersion *string
// The identifier of the language and locale to export. The string must match one
// of the locales in the bot.
//
// This member is required.
LocaleId *string
noSmithyDocumentSerde
}
// Filters responses returned by the ListBotLocales operation.
type BotLocaleFilter struct {
// The name of the field to filter the list of bots.
//
// This member is required.
Name BotLocaleFilterName
// The operator to use for the filter. Specify EQ when the ListBotLocales operation
// should return only aliases that equal the specified value. Specify CO when the
// ListBotLocales operation should return aliases that contain the specified value.
//
// This member is required.
Operator BotLocaleFilterOperator
// The value to use for filtering the list of bots.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Provides information about an event that occurred affecting the bot locale.
type BotLocaleHistoryEvent struct {
// A description of the event that occurred.
//
// This member is required.
Event *string
// A timestamp of the date and time that the event occurred.
//
// This member is required.
EventDate *time.Time
noSmithyDocumentSerde
}
// Provides the bot locale parameters required for importing a bot locale.
type BotLocaleImportSpecification struct {
// The identifier of the bot to import the locale to.
//
// This member is required.
BotId *string
// The version of the bot to import the locale to. This can only be the DRAFT
// version of the bot.
//
// This member is required.
BotVersion *string
// The identifier of the language and locale that the bot will be used in. The
// string must match one of the supported locales. All of the intents, slot types,
// and slots used in the bot must have the same locale. For more information, see
// Supported languages
// (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html).
//
// This member is required.
LocaleId *string
// Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent,
// AMAZON.KendraSearchIntent, or both when returning alternative intents.
// AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they
// are configured for the bot. For example, suppose a bot is configured with the
// confidence threshold of 0.80 and the AMAZON.FallbackIntent. Amazon Lex returns
// three alternative intents with the following confidence scores: IntentA (0.70),
// IntentB (0.60), IntentC (0.50). The response from the PostText operation would
// be:
//
// * AMAZON.FallbackIntent
//
// * IntentA
//
// * IntentB
//
// * IntentC
NluIntentConfidenceThreshold *float64
// Defines settings for using an Amazon Polly voice to communicate with a user.
VoiceSettings *VoiceSettings
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of bot locales.
type BotLocaleSortBy struct {
// The bot locale attribute to sort by.
//
// This member is required.
Attribute BotLocaleSortAttribute
// Specifies whether to sort the bot locales in ascending or descending order.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Summary information about bot locales returned by the ListBotLocales
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListBotLocales.html) operation.
type BotLocaleSummary struct {
// The current status of the bot locale. When the status is Built the locale is
// ready for use.
BotLocaleStatus BotLocaleStatus
// The description of the bot locale.
Description *string
// A timestamp of the date and time that the bot locale was last built.
LastBuildSubmittedDateTime *time.Time
// A timestamp of the date and time that the bot locale was last updated.
LastUpdatedDateTime *time.Time
// The language and locale of the bot locale.
LocaleId *string
// The name of the bot locale.
LocaleName *string
noSmithyDocumentSerde
}
// The object representing the URL of the bot definition, the URL of the associated
// transcript, and a statistical summary of the bot recommendation results.
type BotRecommendationResults struct {
// The presigned url link of the associated transcript.
AssociatedTranscriptsUrl *string
// The presigned URL link of the recommended bot definition.
BotLocaleExportUrl *string
// The statistical summary of the bot recommendation results.
Statistics *BotRecommendationResultStatistics
noSmithyDocumentSerde
}
// A statistical summary of the bot recommendation results.
type BotRecommendationResultStatistics struct {
// Statistical information about about the intents associated with the bot
// recommendation results.
Intents *IntentStatistics
// Statistical information about the slot types associated with the bot
// recommendation results.
SlotTypes *SlotTypeStatistics
noSmithyDocumentSerde
}
// A summary of the bot recommendation.
type BotRecommendationSummary struct {
// The unique identifier of the bot recommendation to be updated.
//
// This member is required.
BotRecommendationId *string
// The status of the bot recommendation. If the status is Failed, then the reasons
// for the failure are listed in the failureReasons field.
//
// This member is required.
BotRecommendationStatus BotRecommendationStatus
// A timestamp of the date and time that the bot recommendation was created.
CreationDateTime *time.Time
// A timestamp of the date and time that the bot recommendation was last updated.
LastUpdatedDateTime *time.Time
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of bots.
type BotSortBy struct {
// The attribute to use to sort the list of bots.
//
// This member is required.
Attribute BotSortAttribute
// The order to sort the list. You can choose ascending or descending.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Summary information about a bot returned by the ListBots
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListBots.html) operation.
type BotSummary struct {
// The unique identifier assigned to the bot. Use this ID to get detailed
// information about the bot with the DescribeBot
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_DescribeBot.html) operation.
BotId *string
// The name of the bot.
BotName *string
// The current status of the bot. When the status is Available the bot is ready for
// use.
BotStatus BotStatus
// The description of the bot.
Description *string
// The date and time that the bot was last updated.
LastUpdatedDateTime *time.Time
// The latest numerical version in use for the bot.
LatestBotVersion *string
noSmithyDocumentSerde
}
// The version of a bot used for a bot locale.
type BotVersionLocaleDetails struct {
// The version of a bot used for a bot locale.
//
// This member is required.
SourceBotVersion *string
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of bot versions.
type BotVersionSortBy struct {
// The attribute to use to sort the list of versions.
//
// This member is required.
Attribute BotVersionSortAttribute
// The order to sort the list. You can specify ascending or descending order.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Summary information about a bot version returned by the ListBotVersions
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListBotVersions.html)
// operation.
type BotVersionSummary struct {
// The name of the bot associated with the version.
BotName *string
// The status of the bot. When the status is available, the version of the bot is
// ready for use.
BotStatus BotStatus
// The numeric version of the bot, or DRAFT to indicate that this is the version of
// the bot that can be updated..
BotVersion *string
// A timestamp of the date and time that the version was created.
CreationDateTime *time.Time
// The description of the version.
Description *string
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of built-in intents.
type BuiltInIntentSortBy struct {
// The attribute to use to sort the list of built-in intents.
//
// This member is required.
Attribute BuiltInIntentSortAttribute
// The order to sort the list. You can specify ascending or descending order.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Provides summary information about a built-in intent for the ListBuiltInIntents
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListBuiltInIntents.html)
// operation.
type BuiltInIntentSummary struct {
// The description of the intent.
Description *string
// The signature of the built-in intent. Use this to specify the parent intent of a
// derived intent.
IntentSignature *string
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of built-in slot types.
type BuiltInSlotTypeSortBy struct {
// The attribute to use to sort the list of built-in intents.
//
// This member is required.
Attribute BuiltInSlotTypeSortAttribute
// The order to sort the list. You can choose ascending or descending.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Provides summary information about a built-in slot type for the
// ListBuiltInSlotTypes
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListBuiltInSlotTypes.html)
// operation.
type BuiltInSlotTypeSummary struct {
// The description of the built-in slot type.
Description *string
// The signature of the built-in slot type. Use this to specify the parent slot
// type of a derived slot type.
SlotTypeSignature *string
noSmithyDocumentSerde
}
// Describes a button to use on a response card used to gather slot values from a
// user.
type Button struct {
// The text that appears on the button. Use this to tell the user what value is
// returned when they choose this button.
//
// This member is required.
Text *string
// The value returned to Amazon Lex when the user chooses this button. This must be
// one of the slot values configured for the slot.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// The Amazon CloudWatch Logs log group where the text and metadata logs are
// delivered. The log group must exist before you enable logging.
type CloudWatchLogGroupLogDestination struct {
// The Amazon Resource Name (ARN) of the log group where text and metadata logs are
// delivered.
//
// This member is required.
CloudWatchLogGroupArn *string
// The prefix of the log stream name within the log group that you specified
//
// This member is required.
LogPrefix *string
noSmithyDocumentSerde
}
// Contains information about code hooks that Amazon Lex calls during a
// conversation.
type CodeHookSpecification struct {
// Specifies a Lambda function that verifies requests to a bot or fulfills the
// user's request to a bot.
//
// This member is required.
LambdaCodeHook *LambdaCodeHook
noSmithyDocumentSerde
}
// A composite slot is a combination of two or more slots that capture multiple
// pieces of information in a single user input.
type CompositeSlotTypeSetting struct {
// Subslots in the composite slot.
SubSlots []SubSlotTypeComposition
noSmithyDocumentSerde
}
// Provides an expression that evaluates to true or false.
type Condition struct {
// The expression string that is evaluated.
//
// This member is required.
ExpressionString *string
noSmithyDocumentSerde
}
// A set of actions that Amazon Lex should run if the condition is matched.
type ConditionalBranch struct {
// Contains the expression to evaluate. If the condition is true, the branch's
// actions are taken.
//
// This member is required.
Condition *Condition
// The name of the branch.
//
// This member is required.
Name *string
// The next step in the conversation.
//
// This member is required.
NextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
Response *ResponseSpecification
noSmithyDocumentSerde
}
// Provides a list of conditional branches. Branches are evaluated in the order
// that they are entered in the list. The first branch with a condition that
// evaluates to true is executed. The last branch in the list is the default
// branch. The default branch should not have any condition expression. The default
// branch is executed if no other branch has a matching condition.
type ConditionalSpecification struct {
// Determines whether a conditional branch is active. When active is false, the
// conditions are not evaluated.
//
// This member is required.
Active *bool
// A list of conditional branches. A conditional branch is made up of a condition,
// a response and a next step. The response and next step are executed when the
// condition is true.
//
// This member is required.
ConditionalBranches []ConditionalBranch
// The conditional branch that should be followed when the conditions for other
// branches are not satisfied. A conditional branch is made up of a condition, a
// response and a next step.
//
// This member is required.
DefaultBranch *DefaultConditionalBranch
noSmithyDocumentSerde
}
// Configures conversation logging that saves audio, text, and metadata for the
// conversations with your users.
type ConversationLogSettings struct {
// The Amazon S3 settings for logging audio to an S3 bucket.
AudioLogSettings []AudioLogSetting
// The Amazon CloudWatch Logs settings for logging text and metadata.
TextLogSettings []TextLogSetting
noSmithyDocumentSerde
}
// A custom response string that Amazon Lex sends to your application. You define
// the content and structure the string.
type CustomPayload struct {
// The string that is sent to your application.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Provides the parameters required for exporting a custom vocabulary.
type CustomVocabularyExportSpecification struct {
// The identifier of the bot that contains the custom vocabulary to export.
//
// This member is required.
BotId *string
// The version of the bot that contains the custom vocabulary to export.
//
// This member is required.
BotVersion *string
// The locale of the bot that contains the custom vocabulary to export.
//
// This member is required.
LocaleId *string
noSmithyDocumentSerde
}
// Provides the parameters required for importing a custom vocabulary.
type CustomVocabularyImportSpecification struct {
// The identifier of the bot to import the custom vocabulary to.
//
// This member is required.
BotId *string
// The version of the bot to import the custom vocabulary to.
//
// This member is required.
BotVersion *string
// The identifier of the local to import the custom vocabulary to. The value must
// be en_GB.
//
// This member is required.
LocaleId *string
noSmithyDocumentSerde
}
// By default, data stored by Amazon Lex is encrypted. The DataPrivacy structure
// provides settings that determine how Amazon Lex handles special cases of
// securing the data for your bot.
type DataPrivacy struct {
// For each Amazon Lex bot created with the Amazon Lex Model Building Service, you
// must specify whether your use of Amazon Lex is related to a website, program, or
// other application that is directed or targeted, in whole or in part, to children
// under age 13 and subject to the Children's Online Privacy Protection Act (COPPA)
// by specifying true or false in the childDirected field. By specifying true in
// the childDirected field, you confirm that your use of Amazon Lex is related to a
// website, program, or other application that is directed or targeted, in whole or
// in part, to children under age 13 and subject to COPPA. By specifying false in
// the childDirected field, you confirm that your use of Amazon Lex is not related
// to a website, program, or other application that is directed or targeted, in
// whole or in part, to children under age 13 and subject to COPPA. You may not
// specify a default value for the childDirected field that does not accurately
// reflect whether your use of Amazon Lex is related to a website, program, or
// other application that is directed or targeted, in whole or in part, to children
// under age 13 and subject to COPPA. If your use of Amazon Lex relates to a
// website, program, or other application that is directed in whole or in part, to
// children under age 13, you must obtain any required verifiable parental consent
// under COPPA. For information regarding the use of Amazon Lex in connection with
// websites, programs, or other applications that are directed or targeted, in
// whole or in part, to children under age 13, see the Amazon Lex FAQ
// (https://aws.amazon.com/lex/faqs#data-security).
//
// This member is required.
ChildDirected bool
noSmithyDocumentSerde
}
// The object used for specifying the data range that the customer wants Amazon Lex
// to read through in the input transcripts.
type DateRangeFilter struct {
// A timestamp indicating the end date for the date range filter.
//
// This member is required.
EndDateTime *time.Time
// A timestamp indicating the start date for the date range filter.
//
// This member is required.
StartDateTime *time.Time
noSmithyDocumentSerde
}
// A set of actions that Amazon Lex should run if none of the other conditions are
// met.
type DefaultConditionalBranch struct {
// The next step in the conversation.
NextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
Response *ResponseSpecification
noSmithyDocumentSerde
}
// Defines the action that the bot executes at runtime when the conversation
// reaches this step.
type DialogAction struct {
// The action that the bot should execute.
//
// This member is required.
Type DialogActionType
// If the dialog action is ElicitSlot, defines the slot to elicit from the user.
SlotToElicit *string
// When true the next message for the intent is not used.
SuppressNextMessage *bool
noSmithyDocumentSerde
}
// Settings that specify the dialog code hook that is called by Amazon Lex at a
// step of the conversation.
type DialogCodeHookInvocationSetting struct {
// Determines whether a dialog code hook is used when the intent is activated.
//
// This member is required.
Active *bool
// Indicates whether a Lambda function should be invoked for the dialog.
//
// This member is required.
EnableCodeHookInvocation *bool
// Contains the responses and actions that Amazon Lex takes after the Lambda
// function is complete.
//
// This member is required.
PostCodeHookSpecification *PostDialogCodeHookInvocationSpecification
// A label that indicates the dialog step from which the dialog code hook is
// happening.
InvocationLabel *string
noSmithyDocumentSerde
}
// Settings that determine the Lambda function that Amazon Lex uses for processing
// user responses.
type DialogCodeHookSettings struct {
// Enables the dialog code hook so that it processes user requests.
//
// This member is required.
Enabled bool
noSmithyDocumentSerde
}
// The current state of the conversation with the user.
type DialogState struct {
// Defines the action that the bot executes at runtime when the conversation
// reaches this step.
DialogAction *DialogAction
// Override settings to configure the intent state.
Intent *IntentOverride
// Map of key/value pairs representing session-specific context information. It
// contains application information passed between Amazon Lex and a client
// application.
SessionAttributes map[string]string
noSmithyDocumentSerde
}
// Specifies the DTMF input specifications.
type DTMFSpecification struct {
// The DTMF character that clears the accumulated DTMF digits and immediately ends
// the input.
//
// This member is required.
DeletionCharacter *string
// The DTMF character that immediately ends input. If the user does not press this
// character, the input ends after the end timeout.
//
// This member is required.
EndCharacter *string
// How long the bot should wait after the last DTMF character input before assuming
// that the input has concluded.
//
// This member is required.
EndTimeoutMs *int32
// The maximum number of DTMF digits allowed in an utterance.
//
// This member is required.
MaxLength *int32
noSmithyDocumentSerde
}
// Settings that specify the dialog code hook that is called by Amazon Lex between
// eliciting slot values.
type ElicitationCodeHookInvocationSetting struct {
// Indicates whether a Lambda function should be invoked for the dialog.
//
// This member is required.
EnableCodeHookInvocation *bool
// A label that indicates the dialog step from which the dialog code hook is
// happening.
InvocationLabel *string
noSmithyDocumentSerde
}
// The object representing the passwords that were used to encrypt the data related
// to the bot recommendation, as well as the KMS key ARN used to encrypt the
// associated metadata.
type EncryptionSetting struct {
// The password used to encrypt the associated transcript file.
AssociatedTranscriptsPassword *string
// The password used to encrypt the recommended bot recommendation file.
BotLocaleExportPassword *string
// The KMS key ARN used to encrypt the metadata associated with the bot
// recommendation.
KmsKeyArn *string
noSmithyDocumentSerde
}
// Filters the response form the ListExports
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListExports.html) operation
type ExportFilter struct {
// The name of the field to use for filtering.
//
// This member is required.
Name ExportFilterName
// The operator to use for the filter. Specify EQ when the ListExports operation
// should return only resource types that equal the specified value. Specify CO
// when the ListExports operation should return resource types that contain the
// specified value.
//
// This member is required.
Operator ExportFilterOperator
// The values to use to filter the response. The values must be Bot, BotLocale, or
// CustomVocabulary.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Provides information about the bot or bot locale that you want to export. You
// can specify the botExportSpecification or the botLocaleExportSpecification, but
// not both.
type ExportResourceSpecification struct {
// Parameters for exporting a bot.
BotExportSpecification *BotExportSpecification
// Parameters for exporting a bot locale.
BotLocaleExportSpecification *BotLocaleExportSpecification
// The parameters required to export a custom vocabulary.
CustomVocabularyExportSpecification *CustomVocabularyExportSpecification
noSmithyDocumentSerde
}
// Provides information about sorting a list of exports.
type ExportSortBy struct {
// The export field to use for sorting.
//
// This member is required.
Attribute ExportSortAttribute
// The order to sort the list.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Provides summary information about an export in an export list.
type ExportSummary struct {
// The date and time that the export was created.
CreationDateTime *time.Time
// The unique identifier that Amazon Lex assigned to the export.
ExportId *string
// The status of the export. When the status is Completed the export is ready to
// download.
ExportStatus ExportStatus
// The file format used in the export files.
FileFormat ImportExportFileFormat
// The date and time that the export was last updated.
LastUpdatedDateTime *time.Time
// Information about the bot or bot locale that was exported.
ResourceSpecification *ExportResourceSpecification
noSmithyDocumentSerde
}
// Provides information about the external source of the slot type's definition.
type ExternalSourceSetting struct {
// Settings required for a slot type based on a grammar that you provide.
GrammarSlotTypeSetting *GrammarSlotTypeSetting
noSmithyDocumentSerde
}
// Determines if a Lambda function should be invoked for a specific intent.
type FulfillmentCodeHookSettings struct {
// Indicates whether a Lambda function should be invoked to fulfill a specific
// intent.
//
// This member is required.
Enabled bool
// Determines whether the fulfillment code hook is used. When active is false, the
// code hook doesn't run.
Active *bool
// Provides settings for update messages sent to the user for long-running Lambda
// fulfillment functions. Fulfillment updates can be used only with streaming
// conversations.
FulfillmentUpdatesSpecification *FulfillmentUpdatesSpecification
// Provides settings for messages sent to the user for after the Lambda fulfillment
// function completes. Post-fulfillment messages can be sent for both streaming and
// non-streaming conversations.
PostFulfillmentStatusSpecification *PostFulfillmentStatusSpecification
noSmithyDocumentSerde
}
// Provides settings for a message that is sent to the user when a fulfillment
// Lambda function starts running.
type FulfillmentStartResponseSpecification struct {
// The delay between when the Lambda fulfillment function starts running and the
// start message is played. If the Lambda function returns before the delay is
// over, the start message isn't played.
//
// This member is required.
DelayInSeconds *int32
// One to 5 message groups that contain start messages. Amazon Lex chooses one of
// the messages to play to the user.
//
// This member is required.
MessageGroups []MessageGroup
// Determines whether the user can interrupt the start message while it is playing.
AllowInterrupt *bool
noSmithyDocumentSerde
}
// Provides settings for a message that is sent periodically to the user while a
// fulfillment Lambda function is running.
type FulfillmentUpdateResponseSpecification struct {
// The frequency that a message is sent to the user. When the period ends, Amazon
// Lex chooses a message from the message groups and plays it to the user. If the
// fulfillment Lambda returns before the first period ends, an update message is
// not played to the user.
//
// This member is required.
FrequencyInSeconds *int32
// One to 5 message groups that contain update messages. Amazon Lex chooses one of
// the messages to play to the user.
//
// This member is required.
MessageGroups []MessageGroup
// Determines whether the user can interrupt an update message while it is playing.
AllowInterrupt *bool
noSmithyDocumentSerde
}
// Provides information for updating the user on the progress of fulfilling an
// intent.
type FulfillmentUpdatesSpecification struct {
// Determines whether fulfillment updates are sent to the user. When this field is
// true, updates are sent. If the active field is set to true, the startResponse,
// updateResponse, and timeoutInSeconds fields are required.
//
// This member is required.
Active *bool
// Provides configuration information for the message sent to users when the
// fulfillment Lambda functions starts running.
StartResponse *FulfillmentStartResponseSpecification
// The length of time that the fulfillment Lambda function should run before it
// times out.
TimeoutInSeconds *int32
// Provides configuration information for messages sent periodically to the user
// while the fulfillment Lambda function is running.
UpdateResponse *FulfillmentUpdateResponseSpecification
noSmithyDocumentSerde
}
// Settings requried for a slot type based on a grammar that you provide.
type GrammarSlotTypeSetting struct {
// The source of the grammar used to create the slot type.
Source *GrammarSlotTypeSource
noSmithyDocumentSerde
}
// Describes the Amazon S3 bucket name and location for the grammar that is the
// source for the slot type.
type GrammarSlotTypeSource struct {
// The name of the S3 bucket that contains the grammar source.
//
// This member is required.
S3BucketName *string
// The path to the grammar in the S3 bucket.
//
// This member is required.
S3ObjectKey *string
// The Amazon KMS key required to decrypt the contents of the grammar, if any.
KmsKeyArn *string
noSmithyDocumentSerde
}
// A card that is shown to the user by a messaging platform. You define the
// contents of the card, the card is displayed by the platform. When you use a
// response card, the response from the user is constrained to the text associated
// with a button on the card.
type ImageResponseCard struct {
// The title to display on the response card. The format of the title is determined
// by the platform displaying the response card.
//
// This member is required.
Title *string
// A list of buttons that should be displayed on the response card. The arrangement
// of the buttons is determined by the platform that displays the button.
Buttons []Button
// The URL of an image to display on the response card. The image URL must be
// publicly available so that the platform displaying the response card has access
// to the image.
ImageUrl *string
// The subtitle to display on the response card. The format of the subtitle is
// determined by the platform displaying the response card.
Subtitle *string
noSmithyDocumentSerde
}
// Filters the response from the ListImports
// (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListImports.html) operation.
type ImportFilter struct {
// The name of the field to use for filtering.
//
// This member is required.
Name ImportFilterName
// The operator to use for the filter. Specify EQ when the ListImports operation
// should return only resource types that equal the specified value. Specify CO
// when the ListImports operation should return resource types that contain the
// specified value.
//
// This member is required.
Operator ImportFilterOperator
// The values to use to filter the response. The values must be Bot, BotLocale, or
// CustomVocabulary.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Provides information about the bot or bot locale that you want to import. You
// can specify the botImportSpecification or the botLocaleImportSpecification, but
// not both.
type ImportResourceSpecification struct {
// Parameters for importing a bot.
BotImportSpecification *BotImportSpecification
// Parameters for importing a bot locale.
BotLocaleImportSpecification *BotLocaleImportSpecification
// Provides the parameters required for importing a custom vocabulary.
CustomVocabularyImportSpecification *CustomVocabularyImportSpecification
noSmithyDocumentSerde
}
// Provides information for sorting a list of imports.
type ImportSortBy struct {
// The export field to use for sorting.
//
// This member is required.
Attribute ImportSortAttribute
// The order to sort the list.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Provides summary information about an import in an import list.
type ImportSummary struct {
// The date and time that the import was created.
CreationDateTime *time.Time
// The unique identifier that Amazon Lex assigned to the import.
ImportId *string
// The status of the resource. When the status is Completed the resource is ready
// to build.
ImportStatus ImportStatus
// The unique identifier that Amazon Lex assigned to the imported resource.
ImportedResourceId *string
// The name that you gave the imported resource.
ImportedResourceName *string
// The type of resource that was imported.
ImportedResourceType ImportResourceType
// The date and time that the import was last updated.
LastUpdatedDateTime *time.Time
// The strategy used to merge existing bot or bot locale definitions with the
// imported definition.
MergeStrategy MergeStrategy
noSmithyDocumentSerde
}
// Configuration setting for a response sent to the user before Amazon Lex starts
// eliciting slots.
type InitialResponseSetting struct {
// Settings that specify the dialog code hook that is called by Amazon Lex at a
// step of the conversation.
CodeHook *DialogCodeHookInvocationSetting
// Provides a list of conditional branches. Branches are evaluated in the order
// that they are entered in the list. The first branch with a condition that
// evaluates to true is executed. The last branch in the list is the default
// branch. The default branch should not have any condition expression. The default
// branch is executed if no other branch has a matching condition.
Conditional *ConditionalSpecification
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
InitialResponse *ResponseSpecification
// The next step in the conversation.
NextStep *DialogState
noSmithyDocumentSerde
}
// The name of a context that must be active for an intent to be selected by Amazon
// Lex.
type InputContext struct {
// The name of the context.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Provides a statement the Amazon Lex conveys to the user when the intent is
// successfully fulfilled.
type IntentClosingSetting struct {
// Specifies whether an intent's closing response is used. When this field is
// false, the closing response isn't sent to the user. If the active field isn't
// specified, the default is true.
Active *bool
// The response that Amazon Lex sends to the user when the intent is complete.
ClosingResponse *ResponseSpecification
// A list of conditional branches associated with the intent's closing response.
// These branches are executed when the nextStep attribute is set to
// EvalutateConditional.
Conditional *ConditionalSpecification
// Specifies the next step that the bot executes after playing the intent's closing
// response.
NextStep *DialogState
noSmithyDocumentSerde
}
// Provides a prompt for making sure that the user is ready for the intent to be
// fulfilled.
type IntentConfirmationSetting struct {
// Prompts the user to confirm the intent. This question should have a yes or no
// answer. Amazon Lex uses this prompt to ensure that the user acknowledges that
// the intent is ready for fulfillment. For example, with the OrderPizza intent,
// you might want to confirm that the order is correct before placing it. For other
// intents, such as intents that simply respond to user questions, you might not
// need to ask the user for confirmation before providing the information.
//
// This member is required.
PromptSpecification *PromptSpecification
// Specifies whether the intent's confirmation is sent to the user. When this field
// is false, confirmation and declination responses aren't sent. If the active
// field isn't specified, the default is true.
Active *bool
// The DialogCodeHookInvocationSetting object associated with intent's confirmation
// step. The dialog code hook is triggered based on these invocation settings when
// the confirmation next step or declination next step or failure next step is
// InvokeDialogCodeHook.
CodeHook *DialogCodeHookInvocationSetting
// A list of conditional branches to evaluate after the intent is closed.
ConfirmationConditional *ConditionalSpecification
// Specifies the next step that the bot executes when the customer confirms the
// intent.
ConfirmationNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
ConfirmationResponse *ResponseSpecification
// A list of conditional branches to evaluate after the intent is declined.
DeclinationConditional *ConditionalSpecification
// Specifies the next step that the bot executes when the customer declines the
// intent.
DeclinationNextStep *DialogState
// When the user answers "no" to the question defined in promptSpecification,
// Amazon Lex responds with this response to acknowledge that the intent was
// canceled.
DeclinationResponse *ResponseSpecification
// The DialogCodeHookInvocationSetting used when the code hook is invoked during
// confirmation prompt retries.
ElicitationCodeHook *ElicitationCodeHookInvocationSetting
// Provides a list of conditional branches. Branches are evaluated in the order
// that they are entered in the list. The first branch with a condition that
// evaluates to true is executed. The last branch in the list is the default
// branch. The default branch should not have any condition expression. The default
// branch is executed if no other branch has a matching condition.
FailureConditional *ConditionalSpecification
// The next step to take in the conversation if the confirmation step fails.
FailureNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
FailureResponse *ResponseSpecification
noSmithyDocumentSerde
}
// Filters the response from the ListIntents operation.
type IntentFilter struct {
// The name of the field to use for the filter.
//
// This member is required.
Name IntentFilterName
// The operator to use for the filter. Specify EQ when the ListIntents operation
// should return only aliases that equal the specified value. Specify CO when the
// ListIntents operation should return aliases that contain the specified value.
//
// This member is required.
Operator IntentFilterOperator
// The value to use for the filter.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Override settings to configure the intent state.
type IntentOverride struct {
// The name of the intent. Only required when you're switching intents.
Name *string
// A map of all of the slot value overrides for the intent. The name of the slot
// maps to the value of the slot. Slots that are not included in the map aren't
// overridden.,
Slots map[string]SlotValueOverride
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of intents.
type IntentSortBy struct {
// The attribute to use to sort the list of intents.
//
// This member is required.
Attribute IntentSortAttribute
// The order to sort the list. You can choose ascending or descending.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// The object that contains the statistical summary of recommended intents
// associated with the bot recommendation.
type IntentStatistics struct {
// The number of recommended intents associated with the bot recommendation.
DiscoveredIntentCount *int32
noSmithyDocumentSerde
}
// Summary information about an intent returned by the ListIntents operation.
type IntentSummary struct {
// The description of the intent.
Description *string
// The input contexts that must be active for this intent to be considered for
// recognition.
InputContexts []InputContext
// The unique identifier assigned to the intent. Use this ID to get detailed
// information about the intent with the DescribeIntent operation.
IntentId *string
// The name of the intent.
IntentName *string
// The timestamp of the date and time that the intent was last updated.
LastUpdatedDateTime *time.Time
// The output contexts that are activated when this intent is fulfilled.
OutputContexts []OutputContext
// If this intent is derived from a built-in intent, the name of the parent intent.
ParentIntentSignature *string
noSmithyDocumentSerde
}
// Provides configuration information for the AMAZON.KendraSearchIntent intent.
// When you use this intent, Amazon Lex searches the specified Amazon Kendra index
// and returns documents from the index that match the user's utterance.
type KendraConfiguration struct {
// The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
// AMAZON.KendraSearchIntent intent to search. The index must be in the same
// account and Region as the Amazon Lex bot.
//
// This member is required.
KendraIndex *string
// A query filter that Amazon Lex sends to Amazon Kendra to filter the response
// from a query. The filter is in the format defined by Amazon Kendra. For more
// information, see Filtering queries
// (https://docs.aws.amazon.com/kendra/latest/dg/filtering.html).
QueryFilterString *string
// Determines whether the AMAZON.KendraSearchIntent intent uses a custom query
// string to query the Amazon Kendra index.
QueryFilterStringEnabled bool
noSmithyDocumentSerde
}
// Specifies a Lambda function that verifies requests to a bot or fulfills the
// user's request to a bot.
type LambdaCodeHook struct {
// The version of the request-response that you want Amazon Lex to use to invoke
// your Lambda function.
//
// This member is required.
CodeHookInterfaceVersion *string
// The Amazon Resource Name (ARN) of the Lambda function.
//
// This member is required.
LambdaARN *string
noSmithyDocumentSerde
}
// The object that contains transcript filter details that are associated with a
// bot recommendation.
type LexTranscriptFilter struct {
// The object that contains a date range filter that will be applied to the
// transcript. Specify this object if you want Amazon Lex to only read the files
// that are within the date range.
DateRangeFilter *DateRangeFilter
noSmithyDocumentSerde
}
// The object that provides message text and it's type.
type Message struct {
// A message in a custom format defined by the client application.
CustomPayload *CustomPayload
// A message that defines a response card that the client application can show to
// the user.
ImageResponseCard *ImageResponseCard
// A message in plain text format.
PlainTextMessage *PlainTextMessage
// A message in Speech Synthesis Markup Language (SSML).
SsmlMessage *SSMLMessage
noSmithyDocumentSerde
}
// Provides one or more messages that Amazon Lex should send to the user.
type MessageGroup struct {
// The primary message that Amazon Lex should send to the user.
//
// This member is required.
Message *Message
// Message variations to send to the user. When variations are defined, Amazon Lex
// chooses the primary message or one of the variations to send to the user.
Variations []Message
noSmithyDocumentSerde
}
// Indicates whether a slot can return multiple values.
type MultipleValuesSetting struct {
// Indicates whether a slot can return multiple values. When true, the slot may
// return more than one value in a response. When false, the slot returns only a
// single value. Multi-value slots are only available in the en-US locale. If you
// set this value to true in any other locale, Amazon Lex throws a
// ValidationException. If the allowMutlipleValues is not set, the default value is
// false.
AllowMultipleValues bool
noSmithyDocumentSerde
}
// Determines whether Amazon Lex obscures slot values in conversation logs.
type ObfuscationSetting struct {
// Value that determines whether Amazon Lex obscures slot values in conversation
// logs. The default is to obscure the values.
//
// This member is required.
ObfuscationSettingType ObfuscationSettingType
noSmithyDocumentSerde
}
// Describes a session context that is activated when an intent is fulfilled.
type OutputContext struct {
// The name of the output context.
//
// This member is required.
Name *string
// The amount of time, in seconds, that the output context should remain active.
// The time is figured from the first time the context is sent to the user.
//
// This member is required.
TimeToLiveInSeconds *int32
// The number of conversation turns that the output context should remain active.
// The number of turns is counted from the first time that the context is sent to
// the user.
//
// This member is required.
TurnsToLive *int32
noSmithyDocumentSerde
}
// The object that contains a path format that will be applied when Amazon Lex
// reads the transcript file in the bucket you provide. Specify this object if you
// only want Lex to read a subset of files in your Amazon S3 bucket.
type PathFormat struct {
// A list of Amazon S3 prefixes that points to sub-folders in the Amazon S3 bucket.
// Specify this list if you only want Lex to read the files under this set of
// sub-folders.
ObjectPrefixes []string
noSmithyDocumentSerde
}
// Defines an ASCII text message to send to the user.
type PlainTextMessage struct {
// The message to send to the user.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Specifies next steps to run after the dialog code hook finishes.
type PostDialogCodeHookInvocationSpecification struct {
// A list of conditional branches to evaluate after the dialog code hook throws an
// exception or returns with the State field of the Intent object set to Failed.
FailureConditional *ConditionalSpecification
// Specifies the next step the bot runs after the dialog code hook throws an
// exception or returns with the State field of the Intent object set to Failed.
FailureNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
FailureResponse *ResponseSpecification
// A list of conditional branches to evaluate after the dialog code hook finishes
// successfully.
SuccessConditional *ConditionalSpecification
// Specifics the next step the bot runs after the dialog code hook finishes
// successfully.
SuccessNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
SuccessResponse *ResponseSpecification
// A list of conditional branches to evaluate if the code hook times out.
TimeoutConditional *ConditionalSpecification
// Specifies the next step that the bot runs when the code hook times out.
TimeoutNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
TimeoutResponse *ResponseSpecification
noSmithyDocumentSerde
}
// Provides a setting that determines whether the post-fulfillment response is sent
// to the user. For more information, see
// https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete
// (https://docs.aws.amazon.com/lexv2/latest/dg/streaming-progress.html#progress-complete)
type PostFulfillmentStatusSpecification struct {
// A list of conditional branches to evaluate after the fulfillment code hook
// throws an exception or returns with the State field of the Intent object set to
// Failed.
FailureConditional *ConditionalSpecification
// Specifies the next step the bot runs after the fulfillment code hook throws an
// exception or returns with the State field of the Intent object set to Failed.
FailureNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
FailureResponse *ResponseSpecification
// A list of conditional branches to evaluate after the fulfillment code hook
// finishes successfully.
SuccessConditional *ConditionalSpecification
// Specifies the next step in the conversation that Amazon Lex invokes when the
// fulfillment code hook completes successfully.
SuccessNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
SuccessResponse *ResponseSpecification
// A list of conditional branches to evaluate if the fulfillment code hook times
// out.
TimeoutConditional *ConditionalSpecification
// Specifies the next step that the bot runs when the fulfillment code hook times
// out.
TimeoutNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
TimeoutResponse *ResponseSpecification
noSmithyDocumentSerde
}
// The IAM principal that you allowing or denying access to an Amazon Lex action.
// You must provide a service or an arn, but not both in the same statement. For
// more information, see AWS JSON policy elements: Principal
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html).
type Principal struct {
// The Amazon Resource Name (ARN) of the principal.
Arn *string
// The name of the AWS service that should allowed or denied access to an Amazon
// Lex action.
Service *string
noSmithyDocumentSerde
}
// Specifies the settings on a prompt attempt.
type PromptAttemptSpecification struct {
// Indicates the allowed input types of the prompt attempt.
//
// This member is required.
AllowedInputTypes *AllowedInputTypes
// Indicates whether the user can interrupt a speech prompt attempt from the bot.
AllowInterrupt *bool
// Specifies the settings on audio and DTMF input.
AudioAndDTMFInputSpecification *AudioAndDTMFInputSpecification
// Specifies the settings on text input.
TextInputSpecification *TextInputSpecification
noSmithyDocumentSerde
}
// Specifies a list of message groups that Amazon Lex sends to a user to elicit a
// response.
type PromptSpecification struct {
// The maximum number of times the bot tries to elicit a response from the user
// using this prompt.
//
// This member is required.
MaxRetries *int32
// A collection of messages that Amazon Lex can send to the user. Amazon Lex
// chooses the actual message to send at runtime.
//
// This member is required.
MessageGroups []MessageGroup
// Indicates whether the user can interrupt a speech prompt from the bot.
AllowInterrupt *bool
// Indicates how a message is selected from a message group among retries.
MessageSelectionStrategy MessageSelectionStrategy
// Specifies the advanced settings on each attempt of the prompt.
PromptAttemptsSpecification map[string]PromptAttemptSpecification
noSmithyDocumentSerde
}
// An object that contains a summary of a recommended intent.
type RecommendedIntentSummary struct {
// The unique identifier of a recommended intent associated with the bot
// recommendation.
IntentId *string
// The name of a recommended intent associated with the bot recommendation.
IntentName *string
// The count of sample utterances of a recommended intent that is associated with a
// bot recommendation.
SampleUtterancesCount *int32
noSmithyDocumentSerde
}
// Specifies the time window that utterance statistics are returned for. The time
// window is always relative to the last time that the that utterances were
// aggregated. For example, if the ListAggregatedUtterances operation is called at
// 1600, the time window is set to 1 hour, and the last refresh time was 1530, only
// utterances made between 1430 and 1530 are returned. You can choose the time
// window that statistics should be returned for.
//
// * Hours - You can request
// utterance statistics for 1, 3, 6, 12, or 24 hour time windows. Statistics are
// refreshed every half hour for 1 hour time windows, and hourly for the other time
// windows.
//
// * Days - You can request utterance statistics for 3 days. Statistics
// are refreshed every 6 hours.
//
// * Weeks - You can see statistics for one or two
// weeks. Statistics are refreshed every 12 hours for one week time windows, and
// once per day for two week time windows.
type RelativeAggregationDuration struct {
// The type of time period that the timeValue field represents.
//
// This member is required.
TimeDimension TimeDimension
// The period of the time window to gather statistics for. The valid value depends
// on the setting of the timeDimension field.
//
// * Hours - 1/3/6/12/24
//
// * Days - 3
//
// *
// Weeks - 1/2
//
// This member is required.
TimeValue int32
noSmithyDocumentSerde
}
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
type ResponseSpecification struct {
// A collection of responses that Amazon Lex can send to the user. Amazon Lex
// chooses the actual response to send at runtime.
//
// This member is required.
MessageGroups []MessageGroup
// Indicates whether the user can interrupt a speech response from Amazon Lex.
AllowInterrupt *bool
noSmithyDocumentSerde
}
// Specifies an Amazon S3 bucket for logging audio conversations
type S3BucketLogDestination struct {
// The S3 prefix to assign to audio log files.
//
// This member is required.
LogPrefix *string
// The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are
// stored.
//
// This member is required.
S3BucketArn *string
// The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for
// encrypting audio log files stored in an S3 bucket.
KmsKeyArn *string
noSmithyDocumentSerde
}
// The object representing the Amazon S3 bucket containing the transcript, as well
// as the associated metadata.
type S3BucketTranscriptSource struct {
// The name of the bucket containing the transcript and the associated metadata.
//
// This member is required.
S3BucketName *string
// The format of the transcript content. Currently, Genie only supports the Amazon
// Lex transcript format.
//
// This member is required.
TranscriptFormat TranscriptFormat
// The ARN of the KMS key that customer use to encrypt their Amazon S3 bucket. Only
// use this field if your bucket is encrypted using a customer managed KMS key.
KmsKeyArn *string
// The object that contains a path format that will be applied when Amazon Lex
// reads the transcript file in the bucket you provide. Specify this object if you
// only want Lex to read a subset of files in your Amazon S3 bucket.
PathFormat *PathFormat
// The object that contains the filter which will be applied when Amazon Lex reads
// through the Amazon S3 bucket. Specify this object if you want Amazon Lex to read
// only a subset of the Amazon S3 bucket based on the filter you provide.
TranscriptFilter *TranscriptFilter
noSmithyDocumentSerde
}
// A sample utterance that invokes an intent or respond to a slot elicitation
// prompt.
type SampleUtterance struct {
// The sample utterance that Amazon Lex uses to build its machine-learning model to
// recognize intents.
//
// This member is required.
Utterance *string
noSmithyDocumentSerde
}
// Defines one of the values for a slot type.
type SampleValue struct {
// The value that can be used for a slot type.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment
// of user utterances.
type SentimentAnalysisSettings struct {
// Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user
// utterances.
//
// This member is required.
DetectSentiment bool
noSmithyDocumentSerde
}
// Settings used when Amazon Lex successfully captures a slot value from a user.
type SlotCaptureSetting struct {
// A list of conditional branches to evaluate after the slot value is captured.
CaptureConditional *ConditionalSpecification
// Specifies the next step that the bot runs when the slot value is captured before
// the code hook times out.
CaptureNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
CaptureResponse *ResponseSpecification
// Code hook called after Amazon Lex successfully captures a slot value.
CodeHook *DialogCodeHookInvocationSetting
// Code hook called when Amazon Lex doesn't capture a slot value.
ElicitationCodeHook *ElicitationCodeHookInvocationSetting
// A list of conditional branches to evaluate when the slot value isn't captured.
FailureConditional *ConditionalSpecification
// Specifies the next step that the bot runs when the slot value code is not
// recognized.
FailureNextStep *DialogState
// Specifies a list of message groups that Amazon Lex uses to respond the user
// input.
FailureResponse *ResponseSpecification
noSmithyDocumentSerde
}
// Specifies the default value to use when a user doesn't provide a value for a
// slot.
type SlotDefaultValue struct {
// The default value to use when a user doesn't provide a value for a slot.
//
// This member is required.
DefaultValue *string
noSmithyDocumentSerde
}
// Defines a list of values that Amazon Lex should use as the default value for a
// slot.
type SlotDefaultValueSpecification struct {
// A list of default values. Amazon Lex chooses the default value to use in the
// order that they are presented in the list.
//
// This member is required.
DefaultValueList []SlotDefaultValue
noSmithyDocumentSerde
}
// Filters the response from the ListSlots operation.
type SlotFilter struct {
// The name of the field to use for filtering.
//
// This member is required.
Name SlotFilterName
// The operator to use for the filter. Specify EQ when the ListSlots operation
// should return only aliases that equal the specified value. Specify CO when the
// ListSlots operation should return aliases that contain the specified value.
//
// This member is required.
Operator SlotFilterOperator
// The value to use to filter the response.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Sets the priority that Amazon Lex should use when eliciting slot values from a
// user.
type SlotPriority struct {
// The priority that a slot should be elicited.
//
// This member is required.
Priority *int32
// The unique identifier of the slot.
//
// This member is required.
SlotId *string
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of bots.
type SlotSortBy struct {
// The attribute to use to sort the list.
//
// This member is required.
Attribute SlotSortAttribute
// The order to sort the list. You can choose ascending or descending.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// Summary information about a slot, a value that the bot elicits from the user.
type SlotSummary struct {
// The description of the slot.
Description *string
// The timestamp of the last date and time that the slot was updated.
LastUpdatedDateTime *time.Time
// Whether the slot is required or optional. An intent is complete when all
// required slots are filled.
SlotConstraint SlotConstraint
// The unique identifier of the slot.
SlotId *string
// The name given to the slot.
SlotName *string
// The unique identifier for the slot type that defines the values for the slot.
SlotTypeId *string
// Prompts that are sent to the user to elicit a value for the slot.
ValueElicitationPromptSpecification *PromptSpecification
noSmithyDocumentSerde
}
// Filters the response from the ListSlotTypes operation.
type SlotTypeFilter struct {
// The name of the field to use for filtering.
//
// This member is required.
Name SlotTypeFilterName
// The operator to use for the filter. Specify EQ when the ListSlotTypes operation
// should return only aliases that equal the specified value. Specify CO when the
// ListSlotTypes operation should return aliases that contain the specified value.
//
// This member is required.
Operator SlotTypeFilterOperator
// The value to use to filter the response.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Specifies attributes for sorting a list of slot types.
type SlotTypeSortBy struct {
// The attribute to use to sort the list of slot types.
//
// This member is required.
Attribute SlotTypeSortAttribute
// The order to sort the list. You can say ascending or descending.
//
// This member is required.
Order SortOrder
noSmithyDocumentSerde
}
// The object that contains the statistical summary of the recommended slot type
// associated with the bot recommendation.
type SlotTypeStatistics struct {
// The number of recommended slot types associated with the bot recommendation.
DiscoveredSlotTypeCount *int32
noSmithyDocumentSerde
}
// Provides summary information about a slot type.
type SlotTypeSummary struct {
// The description of the slot type.
Description *string
// A timestamp of the date and time that the slot type was last updated.
LastUpdatedDateTime *time.Time
// If the slot type is derived from a built-on slot type, the name of the parent
// slot type.
ParentSlotTypeSignature *string
// Indicates the type of the slot type.
//
// * Custom - A slot type that you created
// using custom values. For more information, see Creating custom slot types
// (https://docs.aws.amazon.com/lexv2/latest/dg/custom-slot-types.html).
//
// *
// Extended - A slot type created by extending the AMAZON.AlphaNumeric built-in
// slot type. For more information, see AMAZON.AlphaNumeric
// (https://docs.aws.amazon.com/lexv2/latest/dg/built-in-slot-alphanumerice.html).
//
// *
// ExternalGrammar - A slot type using a custom GRXML grammar to define values. For
// more information, see Using a custom grammar slot type
// (https://docs.aws.amazon.com/lexv2/latest/dg/building-grxml.html).
SlotTypeCategory SlotTypeCategory
// The unique identifier assigned to the slot type.
SlotTypeId *string
// The name of the slot type.
SlotTypeName *string
noSmithyDocumentSerde
}
// Each slot type can have a set of values. Each SlotTypeValue represents a value
// that the slot type can take.
type SlotTypeValue struct {
// The value of the slot type entry.
SampleValue *SampleValue
// Additional values related to the slot type entry.
Synonyms []SampleValue
noSmithyDocumentSerde
}
// The value to set in a slot.
type SlotValue struct {
// The value that Amazon Lex determines for the slot. The actual value depends on
// the setting of the value selection strategy for the bot. You can choose to use
// the value entered by the user, or you can have Amazon Lex choose the first value
// in the resolvedValues list.
InterpretedValue *string
noSmithyDocumentSerde
}
// Specifies the elicitation setting details for constituent sub slots of a
// composite slot.
type SlotValueElicitationSetting struct {
// Specifies whether the slot is required or optional.
//
// This member is required.
SlotConstraint SlotConstraint
// A list of default values for a slot. Default values are used when Amazon Lex
// hasn't determined a value for a slot. You can specify default values from
// context variables, session attributes, and defined values.
DefaultValueSpecification *SlotDefaultValueSpecification
// The prompt that Amazon Lex uses to elicit the slot value from the user.
PromptSpecification *PromptSpecification
// If you know a specific pattern that users might respond to an Amazon Lex request
// for a slot value, you can provide those utterances to improve accuracy. This is
// optional. In most cases, Amazon Lex is capable of understanding user utterances.
SampleUtterances []SampleUtterance
// Specifies the settings that Amazon Lex uses when a slot value is successfully
// entered by a user.
SlotCaptureSetting *SlotCaptureSetting
// Specifies the prompts that Amazon Lex uses while a bot is waiting for customer
// input.
WaitAndContinueSpecification *WaitAndContinueSpecification
noSmithyDocumentSerde
}
// The slot values that Amazon Lex uses when it sets slot values in a dialog step.
type SlotValueOverride struct {
// When the shape value is List, it indicates that the values field contains a list
// of slot values. When the value is Scalar, it indicates that the value field
// contains a single value.
Shape SlotShape
// The current value of the slot.
Value *SlotValue
// A list of one or more values that the user provided for the slot. For example,
// for a slot that elicits pizza toppings, the values might be "pepperoni" and
// "pineapple."
Values []SlotValueOverride
noSmithyDocumentSerde
}
// Provides a regular expression used to validate the value of a slot.
type SlotValueRegexFilter struct {
// A regular expression used to validate the value of a slot. Use a standard
// regular expression. Amazon Lex supports the following characters in the regular
// expression:
//
// * A-Z, a-z
//
// * 0-9
//
// * Unicode characters ("\ u")
//
// Represent Unicode
// characters with four digits, for example "\u0041" or "\u005A". The following
// regular expression operators are not supported:
//
// * Infinite repeaters: *, +, or
// {x,} with no upper bound.
//
// * Wild card (.)
//
// This member is required.
Pattern *string
noSmithyDocumentSerde
}
// Contains settings used by Amazon Lex to select a slot value.
type SlotValueSelectionSetting struct {
// Determines the slot resolution strategy that Amazon Lex uses to return slot type
// values. The field can be set to one of the following values:
//
// * OriginalValue -
// Returns the value entered by the user, if the user value is similar to the slot
// value.
//
// * TopResolution - If there is a resolution list for the slot, return the
// first value in the resolution list as the slot type value. If there is no
// resolution list, null is returned.
//
// If you don't specify the
// valueSelectionStrategy, the default is OriginalValue.
//
// This member is required.
ResolutionStrategy SlotValueResolutionStrategy
// Provides settings that enable advanced recognition settings for slot values.
AdvancedRecognitionSetting *AdvancedRecognitionSetting
// A regular expression used to validate the value of a slot.
RegexFilter *SlotValueRegexFilter
noSmithyDocumentSerde
}
// Subslot specifications.
type Specifications struct {
// The unique identifier assigned to the slot type.
//
// This member is required.
SlotTypeId *string
// Specifies the elicitation setting details for constituent sub slots of a
// composite slot.
//
// This member is required.
ValueElicitationSetting *SubSlotValueElicitationSetting
noSmithyDocumentSerde
}
// Defines a Speech Synthesis Markup Language (SSML) prompt.
type SSMLMessage struct {
// The SSML text that defines the prompt.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Defines the messages that Amazon Lex sends to a user to remind them that the bot
// is waiting for a response.
type StillWaitingResponseSpecification struct {
// How often a message should be sent to the user. Minimum of 1 second, maximum of
// 5 minutes.
//
// This member is required.
FrequencyInSeconds *int32
// One or more message groups, each containing one or more messages, that define
// the prompts that Amazon Lex sends to the user.
//
// This member is required.
MessageGroups []MessageGroup
// If Amazon Lex waits longer than this length of time for a response, it will stop
// sending messages.
//
// This member is required.
TimeoutInSeconds *int32
// Indicates that the user can interrupt the response by speaking while the message
// is being played.
AllowInterrupt *bool
noSmithyDocumentSerde
}
// Specifications for the constituent sub slots and the expression for the
// composite slot.
type SubSlotSetting struct {
// The expression text for defining the constituent sub slots in the composite slot
// using logical AND and OR operators.
Expression *string
// Specifications for the constituent sub slots of a composite slot.
SlotSpecifications map[string]Specifications
noSmithyDocumentSerde
}
// Subslot type composition.
type SubSlotTypeComposition struct {
// Name of a constituent sub slot inside a composite slot.
//
// This member is required.
Name *string
// The unique identifier assigned to a slot type. This refers to either a built-in
// slot type or the unique slotTypeId of a custom slot type.
//
// This member is required.
SlotTypeId *string
noSmithyDocumentSerde
}
// Subslot elicitation settings. DefaultValueSpecification is a list of default
// values for a constituent sub slot in a composite slot. Default values are used
// when Amazon Lex hasn't determined a value for a slot. You can specify default
// values from context variables, session attributes, and defined values. This is
// similar to DefaultValueSpecification for slots. PromptSpecification is the
// prompt that Amazon Lex uses to elicit the sub slot value from the user. This is
// similar to PromptSpecification for slots.
type SubSlotValueElicitationSetting struct {
// Specifies a list of message groups that Amazon Lex sends to a user to elicit a
// response.
//
// This member is required.
PromptSpecification *PromptSpecification
// Defines a list of values that Amazon Lex should use as the default value for a
// slot.
DefaultValueSpecification *SlotDefaultValueSpecification
// If you know a specific pattern that users might respond to an Amazon Lex request
// for a sub slot value, you can provide those utterances to improve accuracy. This
// is optional. In most cases Amazon Lex is capable of understanding user
// utterances. This is similar to SampleUtterances for slots.
SampleUtterances []SampleUtterance
// Specifies the prompts that Amazon Lex uses while a bot is waiting for customer
// input.
WaitAndContinueSpecification *WaitAndContinueSpecification
noSmithyDocumentSerde
}
// Specifies the text input specifications.
type TextInputSpecification struct {
// Time for which a bot waits before re-prompting a customer for text input.
//
// This member is required.
StartTimeoutMs *int32
noSmithyDocumentSerde
}
// Defines the Amazon CloudWatch Logs destination log group for conversation text
// logs.
type TextLogDestination struct {
// Defines the Amazon CloudWatch Logs log group where text and metadata logs are
// delivered.
//
// This member is required.
CloudWatch *CloudWatchLogGroupLogDestination
noSmithyDocumentSerde
}
// Defines settings to enable text conversation logs.
type TextLogSetting struct {
// Defines the Amazon CloudWatch Logs destination log group for conversation text
// logs.
//
// This member is required.
Destination *TextLogDestination
// Determines whether conversation logs should be stored for an alias.
//
// This member is required.
Enabled bool
noSmithyDocumentSerde
}
// The object representing the filter that Amazon Lex will use to select the
// appropriate transcript.
type TranscriptFilter struct {
// The object representing the filter that Amazon Lex will use to select the
// appropriate transcript when the transcript format is the Amazon Lex format.
LexTranscriptFilter *LexTranscriptFilter
noSmithyDocumentSerde
}
// Indicates the setting of the location where the transcript is stored.
type TranscriptSourceSetting struct {
// Indicates the setting of the Amazon S3 bucket where the transcript is stored.
S3BucketTranscriptSource *S3BucketTranscriptSource
noSmithyDocumentSerde
}
// Provides parameters for setting the time window and duration for aggregating
// utterance data.
type UtteranceAggregationDuration struct {
// The desired time window for aggregating utterances.
//
// This member is required.
RelativeAggregationDuration *RelativeAggregationDuration
noSmithyDocumentSerde
}
// Defines settings for using an Amazon Polly voice to communicate with a user.
type VoiceSettings struct {
// The identifier of the Amazon Polly voice to use.
//
// This member is required.
VoiceId *string
// Indicates the type of Amazon Polly voice that Amazon Lex should use for voice
// interaction with the user. For more information, see the engine parameter of the
// SynthesizeSpeech operation
// (https://docs.aws.amazon.com/polly/latest/dg/API_SynthesizeSpeech.html#polly-SynthesizeSpeech-request-Engine)
// in the Amazon Polly developer guide. If you do not specify a value, the default
// is standard.
Engine VoiceEngine
noSmithyDocumentSerde
}
// Specifies the prompts that Amazon Lex uses while a bot is waiting for customer
// input.
type WaitAndContinueSpecification struct {
// The response that Amazon Lex sends to indicate that the bot is ready to continue
// the conversation.
//
// This member is required.
ContinueResponse *ResponseSpecification
// The response that Amazon Lex sends to indicate that the bot is waiting for the
// conversation to continue.
//
// This member is required.
WaitingResponse *ResponseSpecification
// Specifies whether the bot will wait for a user to respond. When this field is
// false, wait and continue responses for a slot aren't used. If the active field
// isn't specified, the default is true.
Active *bool
// A response that Amazon Lex sends periodically to the user to indicate that the
// bot is still waiting for input from the user.
StillWaitingResponse *StillWaitingResponseSpecification
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|