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