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
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// The criteria that determine when and how a job abort takes place.
type AbortConfig struct {
// The list of criteria that determine when and how to abort the job.
//
// This member is required.
CriteriaList []AbortCriteria
noSmithyDocumentSerde
}
// The criteria that determine when and how a job abort takes place.
type AbortCriteria struct {
// The type of job action to take to initiate the job abort.
//
// This member is required.
Action AbortAction
// The type of job execution failures that can initiate a job abort.
//
// This member is required.
FailureType JobExecutionFailureType
// The minimum number of things which must receive job execution notifications
// before the job can be aborted.
//
// This member is required.
MinNumberOfExecutedThings *int32
// The minimum percentage of job execution failures that must occur to initiate
// the job abort. Amazon Web Services IoT Core supports up to two digits after the
// decimal (for example, 10.9 and 10.99, but not 10.999).
//
// This member is required.
ThresholdPercentage *float64
noSmithyDocumentSerde
}
// Describes the actions associated with a rule.
type Action struct {
// Change the state of a CloudWatch alarm.
CloudwatchAlarm *CloudwatchAlarmAction
// Send data to CloudWatch Logs.
CloudwatchLogs *CloudwatchLogsAction
// Capture a CloudWatch metric.
CloudwatchMetric *CloudwatchMetricAction
// Write to a DynamoDB table.
DynamoDB *DynamoDBAction
// Write to a DynamoDB table. This is a new version of the DynamoDB action. It
// allows you to write each attribute in an MQTT message payload into a separate
// DynamoDB column.
DynamoDBv2 *DynamoDBv2Action
// Write data to an Amazon OpenSearch Service domain. The Elasticsearch action can
// only be used by existing rule actions. To create a new rule action or to update
// an existing rule action, use the OpenSearch rule action instead. For more
// information, see OpenSearchAction (https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html)
// .
Elasticsearch *ElasticsearchAction
// Write to an Amazon Kinesis Firehose stream.
Firehose *FirehoseAction
// Send data to an HTTPS endpoint.
Http *HttpAction
// Sends message data to an IoT Analytics channel.
IotAnalytics *IotAnalyticsAction
// Sends an input to an IoT Events detector.
IotEvents *IotEventsAction
// Sends data from the MQTT message that triggered the rule to IoT SiteWise asset
// properties.
IotSiteWise *IotSiteWiseAction
// Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or
// self-managed Apache Kafka cluster.
Kafka *KafkaAction
// Write data to an Amazon Kinesis stream.
Kinesis *KinesisAction
// Invoke a Lambda function.
Lambda *LambdaAction
// The Amazon Location Service rule action sends device location updates from an
// MQTT message to an Amazon Location tracker resource.
Location *LocationAction
// Write data to an Amazon OpenSearch Service domain.
OpenSearch *OpenSearchAction
// Publish to another MQTT topic.
Republish *RepublishAction
// Write to an Amazon S3 bucket.
S3 *S3Action
// Send a message to a Salesforce IoT Cloud Input Stream.
Salesforce *SalesforceAction
// Publish to an Amazon SNS topic.
Sns *SnsAction
// Publish to an Amazon SQS queue.
Sqs *SqsAction
// Starts execution of a Step Functions state machine.
StepFunctions *StepFunctionsAction
// The Timestream rule action writes attributes (measures) from an MQTT message
// into an Amazon Timestream table. For more information, see the Timestream (https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html)
// topic rule action documentation.
Timestream *TimestreamAction
noSmithyDocumentSerde
}
// Information about an active Device Defender security profile behavior violation.
type ActiveViolation struct {
// The behavior that is being violated.
Behavior *Behavior
// The time the most recent violation occurred.
LastViolationTime *time.Time
// The value of the metric (the measurement) that caused the most recent violation.
LastViolationValue *MetricValue
// The security profile with the behavior is in violation.
SecurityProfileName *string
// The name of the thing responsible for the active violation.
ThingName *string
// The verification state of the violation (detect alarm).
VerificationState VerificationState
// The description of the verification state of the violation.
VerificationStateDescription *string
// The details of a violation event.
ViolationEventAdditionalInfo *ViolationEventAdditionalInfo
// The ID of the active violation.
ViolationId *string
// The time the violation started.
ViolationStartTime *time.Time
noSmithyDocumentSerde
}
// Parameters used when defining a mitigation action that move a set of things to
// a thing group.
type AddThingsToThingGroupParams struct {
// The list of groups to which you want to add the things that triggered the
// mitigation action. You can add a thing to a maximum of 10 groups, but you can't
// add a thing to more than one group in the same hierarchy.
//
// This member is required.
ThingGroupNames []string
// Specifies if this mitigation action can move the things that triggered the
// mitigation action even if they are part of one or more dynamic thing groups.
OverrideDynamicGroups *bool
noSmithyDocumentSerde
}
// The type of aggregation queries.
type AggregationType struct {
// The name of the aggregation type.
//
// This member is required.
Name AggregationTypeName
// A list of the values of aggregation types.
Values []string
noSmithyDocumentSerde
}
// A structure containing the alert target ARN and the role ARN.
type AlertTarget struct {
// The Amazon Resource Name (ARN) of the notification target to which alerts are
// sent.
//
// This member is required.
AlertTargetArn *string
// The ARN of the role that grants permission to send alerts to the notification
// target.
//
// This member is required.
RoleArn *string
noSmithyDocumentSerde
}
// Contains information that allowed the authorization.
type Allowed struct {
// A list of policies that allowed the authentication.
Policies []Policy
noSmithyDocumentSerde
}
// An asset property timestamp entry containing the following information.
type AssetPropertyTimestamp struct {
// A string that contains the time in seconds since epoch. Accepts substitution
// templates.
//
// This member is required.
TimeInSeconds *string
// Optional. A string that contains the nanosecond time offset. Accepts
// substitution templates.
OffsetInNanos *string
noSmithyDocumentSerde
}
// An asset property value entry containing the following information.
type AssetPropertyValue struct {
// The asset property value timestamp.
//
// This member is required.
Timestamp *AssetPropertyTimestamp
// The value of the asset property.
//
// This member is required.
Value AssetPropertyVariant
// Optional. A string that describes the quality of the value. Accepts
// substitution templates. Must be GOOD , BAD , or UNCERTAIN .
Quality *string
noSmithyDocumentSerde
}
// Contains an asset property value (of a single type).
//
// The following types satisfy this interface:
//
// AssetPropertyVariantMemberBooleanValue
// AssetPropertyVariantMemberDoubleValue
// AssetPropertyVariantMemberIntegerValue
// AssetPropertyVariantMemberStringValue
type AssetPropertyVariant interface {
isAssetPropertyVariant()
}
// Optional. A string that contains the boolean value ( true or false ) of the
// value entry. Accepts substitution templates.
type AssetPropertyVariantMemberBooleanValue struct {
Value string
noSmithyDocumentSerde
}
func (*AssetPropertyVariantMemberBooleanValue) isAssetPropertyVariant() {}
// Optional. A string that contains the double value of the value entry. Accepts
// substitution templates.
type AssetPropertyVariantMemberDoubleValue struct {
Value string
noSmithyDocumentSerde
}
func (*AssetPropertyVariantMemberDoubleValue) isAssetPropertyVariant() {}
// Optional. A string that contains the integer value of the value entry. Accepts
// substitution templates.
type AssetPropertyVariantMemberIntegerValue struct {
Value string
noSmithyDocumentSerde
}
func (*AssetPropertyVariantMemberIntegerValue) isAssetPropertyVariant() {}
// Optional. The string value of the value entry. Accepts substitution templates.
type AssetPropertyVariantMemberStringValue struct {
Value string
noSmithyDocumentSerde
}
func (*AssetPropertyVariantMemberStringValue) isAssetPropertyVariant() {}
// The attribute payload.
type AttributePayload struct {
// A JSON string containing up to three key-value pair in JSON format. For
// example: {\"attributes\":{\"string1\":\"string2\"}}
Attributes map[string]string
// Specifies whether the list of attributes provided in the AttributePayload is
// merged with the attributes stored in the registry, instead of overwriting them.
// To remove an attribute, call UpdateThing with an empty attribute value. The
// merge attribute is only valid when calling UpdateThing or UpdateThingGroup .
Merge bool
noSmithyDocumentSerde
}
// Which audit checks are enabled and disabled for this account.
type AuditCheckConfiguration struct {
// True if this audit check is enabled for this account.
Enabled bool
noSmithyDocumentSerde
}
// Information about the audit check.
type AuditCheckDetails struct {
// True if the check is complete and found all resources compliant.
CheckCompliant *bool
// The completion status of this check. One of "IN_PROGRESS",
// "WAITING_FOR_DATA_COLLECTION", "CANCELED", "COMPLETED_COMPLIANT",
// "COMPLETED_NON_COMPLIANT", or "FAILED".
CheckRunStatus AuditCheckRunStatus
// The code of any error encountered when this check is performed during this
// audit. One of "INSUFFICIENT_PERMISSIONS" or "AUDIT_CHECK_DISABLED".
ErrorCode *string
// The message associated with any error encountered when this check is performed
// during this audit.
Message *string
// The number of resources that were found noncompliant during the check.
NonCompliantResourcesCount *int64
// Describes how many of the non-compliant resources created during the evaluation
// of an audit check were marked as suppressed.
SuppressedNonCompliantResourcesCount *int64
// The number of resources on which the check was performed.
TotalResourcesCount *int64
noSmithyDocumentSerde
}
// The findings (results) of the audit.
type AuditFinding struct {
// The audit check that generated this result.
CheckName *string
// A unique identifier for this set of audit findings. This identifier is used to
// apply mitigation tasks to one or more sets of findings.
FindingId *string
// The time the result (finding) was discovered.
FindingTime *time.Time
// Indicates whether the audit finding was suppressed or not during reporting.
IsSuppressed *bool
// The resource that was found to be noncompliant with the audit check.
NonCompliantResource *NonCompliantResource
// The reason the resource was noncompliant.
ReasonForNonCompliance *string
// A code that indicates the reason that the resource was noncompliant.
ReasonForNonComplianceCode *string
// The list of related resources.
RelatedResources []RelatedResource
// The severity of the result (finding).
Severity AuditFindingSeverity
// The ID of the audit that generated this result (finding).
TaskId *string
// The time the audit started.
TaskStartTime *time.Time
noSmithyDocumentSerde
}
// Returned by ListAuditMitigationActionsTask, this object contains information
// that describes a mitigation action that has been started.
type AuditMitigationActionExecutionMetadata struct {
// The unique identifier for the mitigation action being applied by the task.
ActionId *string
// The friendly name of the mitigation action being applied by the task.
ActionName *string
// The date and time when the task was completed or canceled. Blank if the task is
// still running.
EndTime *time.Time
// If an error occurred, the code that indicates which type of error occurred.
ErrorCode *string
// The unique identifier for the findings to which the task and associated
// mitigation action are applied.
FindingId *string
// If an error occurred, a message that describes the error.
Message *string
// The date and time when the task was started.
StartTime *time.Time
// The current status of the task being executed.
Status AuditMitigationActionsExecutionStatus
// The unique identifier for the task that applies the mitigation action.
TaskId *string
noSmithyDocumentSerde
}
// Information about an audit mitigation actions task that is returned by
// ListAuditMitigationActionsTasks .
type AuditMitigationActionsTaskMetadata struct {
// The time at which the audit mitigation actions task was started.
StartTime *time.Time
// The unique identifier for the task.
TaskId *string
// The current state of the audit mitigation actions task.
TaskStatus AuditMitigationActionsTaskStatus
noSmithyDocumentSerde
}
// Used in MitigationActionParams, this information identifies the target findings
// to which the mitigation actions are applied. Only one entry appears.
type AuditMitigationActionsTaskTarget struct {
// Specifies a filter in the form of an audit check and set of reason codes that
// identify the findings from the audit to which the audit mitigation actions task
// apply.
AuditCheckToReasonCodeFilter map[string][]string
// If the task will apply a mitigation action to findings from a specific audit,
// this value uniquely identifies the audit.
AuditTaskId *string
// If the task will apply a mitigation action to one or more listed findings, this
// value uniquely identifies those findings.
FindingIds []string
noSmithyDocumentSerde
}
// Information about the targets to which audit notifications are sent.
type AuditNotificationTarget struct {
// True if notifications to the target are enabled.
Enabled bool
// The ARN of the role that grants permission to send notifications to the target.
RoleArn *string
// The ARN of the target (SNS topic) to which audit notifications are sent.
TargetArn *string
noSmithyDocumentSerde
}
// Filters out specific findings of a Device Defender audit.
type AuditSuppression struct {
// An audit check name. Checks must be enabled for your account. (Use
// DescribeAccountAuditConfiguration to see the list of all checks, including those
// that are enabled or use UpdateAccountAuditConfiguration to select which checks
// are enabled.)
//
// This member is required.
CheckName *string
// Information that identifies the noncompliant resource.
//
// This member is required.
ResourceIdentifier *ResourceIdentifier
// The description of the audit suppression.
Description *string
// The expiration date (epoch timestamp in seconds) that you want the suppression
// to adhere to.
ExpirationDate *time.Time
// Indicates whether a suppression should exist indefinitely or not.
SuppressIndefinitely *bool
noSmithyDocumentSerde
}
// The audits that were performed.
type AuditTaskMetadata struct {
// The ID of this audit.
TaskId *string
// The status of this audit. One of "IN_PROGRESS", "COMPLETED", "FAILED", or
// "CANCELED".
TaskStatus AuditTaskStatus
// The type of this audit. One of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
TaskType AuditTaskType
noSmithyDocumentSerde
}
// A collection of authorization information.
type AuthInfo struct {
// The resources for which the principal is being authorized to perform the
// specified action.
//
// This member is required.
Resources []string
// The type of action for which the principal is being authorized.
ActionType ActionType
noSmithyDocumentSerde
}
// An object that specifies the authorization service for a domain.
type AuthorizerConfig struct {
// A Boolean that specifies whether the domain configuration's authorization
// service can be overridden.
AllowAuthorizerOverride *bool
// The name of the authorization service for a domain configuration.
DefaultAuthorizerName *string
noSmithyDocumentSerde
}
// The authorizer description.
type AuthorizerDescription struct {
// The authorizer ARN.
AuthorizerArn *string
// The authorizer's Lambda function ARN.
AuthorizerFunctionArn *string
// The authorizer name.
AuthorizerName *string
// The UNIX timestamp of when the authorizer was created.
CreationDate *time.Time
// When true , the result from the authorizer’s Lambda function is cached for the
// time specified in refreshAfterInSeconds . The cached result is used while the
// device reuses the same HTTP connection.
EnableCachingForHttp *bool
// The UNIX timestamp of when the authorizer was last updated.
LastModifiedDate *time.Time
// Specifies whether IoT validates the token signature in an authorization request.
SigningDisabled *bool
// The status of the authorizer.
Status AuthorizerStatus
// The key used to extract the token from the HTTP headers.
TokenKeyName *string
// The public keys used to validate the token signature returned by your custom
// authentication service.
TokenSigningPublicKeys map[string]string
noSmithyDocumentSerde
}
// The authorizer summary.
type AuthorizerSummary struct {
// The authorizer ARN.
AuthorizerArn *string
// The authorizer name.
AuthorizerName *string
noSmithyDocumentSerde
}
// The authorizer result.
type AuthResult struct {
// The policies and statements that allowed the specified action.
Allowed *Allowed
// The final authorization decision of this scenario. Multiple statements are
// taken into account when determining the authorization decision. An explicit deny
// statement can override multiple allow statements.
AuthDecision AuthDecision
// Authorization information.
AuthInfo *AuthInfo
// The policies and statements that denied the specified action.
Denied *Denied
// Contains any missing context values found while evaluating policy.
MissingContextValues []string
noSmithyDocumentSerde
}
// The criteria that determine when and how a job abort takes place.
type AwsJobAbortConfig struct {
// The list of criteria that determine when and how to abort the job.
//
// This member is required.
AbortCriteriaList []AwsJobAbortCriteria
noSmithyDocumentSerde
}
// The criteria that determine when and how a job abort takes place.
type AwsJobAbortCriteria struct {
// The type of job action to take to initiate the job abort.
//
// This member is required.
Action AwsJobAbortCriteriaAbortAction
// The type of job execution failures that can initiate a job abort.
//
// This member is required.
FailureType AwsJobAbortCriteriaFailureType
// The minimum number of things which must receive job execution notifications
// before the job can be aborted.
//
// This member is required.
MinNumberOfExecutedThings *int32
// The minimum percentage of job execution failures that must occur to initiate
// the job abort. Amazon Web Services IoT Core supports up to two digits after the
// decimal (for example, 10.9 and 10.99, but not 10.999).
//
// This member is required.
ThresholdPercentage *float64
noSmithyDocumentSerde
}
// Configuration for the rollout of OTA updates.
type AwsJobExecutionsRolloutConfig struct {
// The rate of increase for a job rollout. This parameter allows you to define an
// exponential rate increase for a job rollout.
ExponentialRate *AwsJobExponentialRolloutRate
// The maximum number of OTA update job executions started per minute.
MaximumPerMinute *int32
noSmithyDocumentSerde
}
// The rate of increase for a job rollout. This parameter allows you to define an
// exponential rate increase for a job rollout.
type AwsJobExponentialRolloutRate struct {
// The minimum number of things that will be notified of a pending job, per
// minute, at the start of the job rollout. This is the initial rate of the
// rollout.
//
// This member is required.
BaseRatePerMinute *int32
// The rate of increase for a job rollout. The number of things notified is
// multiplied by this factor.
//
// This member is required.
IncrementFactor float64
// The criteria to initiate the increase in rate of rollout for a job. Amazon Web
// Services IoT Core supports up to one digit after the decimal (for example, 1.5,
// but not 1.55).
//
// This member is required.
RateIncreaseCriteria *AwsJobRateIncreaseCriteria
noSmithyDocumentSerde
}
// Configuration information for pre-signed URLs. Valid when protocols contains
// HTTP.
type AwsJobPresignedUrlConfig struct {
// How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600,
// the default value is 1800 seconds. Pre-signed URLs are generated when a request
// for the job document is received.
ExpiresInSec *int64
noSmithyDocumentSerde
}
// The criteria to initiate the increase in rate of rollout for a job.
type AwsJobRateIncreaseCriteria struct {
// When this number of things have been notified, it will initiate an increase in
// the rollout rate.
NumberOfNotifiedThings *int32
// When this number of things have succeeded in their job execution, it will
// initiate an increase in the rollout rate.
NumberOfSucceededThings *int32
noSmithyDocumentSerde
}
// Specifies the amount of time each device has to finish its execution of the
// job. A timer is started when the job execution status is set to IN_PROGRESS . If
// the job execution status is not set to another terminal state before the timer
// expires, it will be automatically set to TIMED_OUT .
type AwsJobTimeoutConfig struct {
// Specifies the amount of time, in minutes, this device has to finish execution
// of this job. The timeout interval can be anywhere between 1 minute and 7 days (1
// to 10080 minutes). The in progress timer can't be updated and will apply to all
// job executions for the job. Whenever a job execution remains in the IN_PROGRESS
// status for longer than this interval, the job execution will fail and switch to
// the terminal TIMED_OUT status.
InProgressTimeoutInMinutes *int64
noSmithyDocumentSerde
}
// A Device Defender security profile behavior.
type Behavior struct {
// The name you've given to the behavior.
//
// This member is required.
Name *string
// The criteria that determine if a device is behaving normally in regard to the
// metric . In the IoT console, you can choose to be sent an alert through Amazon
// SNS when IoT Device Defender detects that a device is behaving anomalously.
Criteria *BehaviorCriteria
// Value indicates exporting metrics related to the behavior when it is true.
ExportMetric *bool
// What is measured by the behavior.
Metric *string
// The dimension for a metric in your behavior. For example, using a TOPIC_FILTER
// dimension, you can narrow down the scope of the metric to only MQTT topics where
// the name matches the pattern specified in the dimension. This can't be used with
// custom metrics.
MetricDimension *MetricDimension
// Suppresses alerts.
SuppressAlerts *bool
noSmithyDocumentSerde
}
// The criteria by which the behavior is determined to be normal.
type BehaviorCriteria struct {
// The operator that relates the thing measured ( metric ) to the criteria
// (containing a value or statisticalThreshold ). Valid operators include:
// - string-list : in-set and not-in-set
// - number-list : in-set and not-in-set
// - ip-address-list : in-cidr-set and not-in-cidr-set
// - number : less-than , less-than-equals , greater-than , and
// greater-than-equals
ComparisonOperator ComparisonOperator
// If a device is in violation of the behavior for the specified number of
// consecutive datapoints, an alarm occurs. If not specified, the default is 1.
ConsecutiveDatapointsToAlarm *int32
// If an alarm has occurred and the offending device is no longer in violation of
// the behavior for the specified number of consecutive datapoints, the alarm is
// cleared. If not specified, the default is 1.
ConsecutiveDatapointsToClear *int32
// Use this to specify the time duration over which the behavior is evaluated, for
// those criteria that have a time dimension (for example, NUM_MESSAGES_SENT ). For
// a statisticalThreshhold metric comparison, measurements from all devices are
// accumulated over this time duration before being used to calculate percentiles,
// and later, measurements from an individual device are also accumulated over this
// time duration before being given a percentile rank. Cannot be used with
// list-based metric datatypes.
DurationSeconds *int32
// The configuration of an ML Detect
MlDetectionConfig *MachineLearningDetectionConfig
// A statistical ranking (percentile)that indicates a threshold value by which a
// behavior is determined to be in compliance or in violation of the behavior.
StatisticalThreshold *StatisticalThreshold
// The value to be compared with the metric .
Value *MetricValue
noSmithyDocumentSerde
}
// The summary of an ML Detect behavior model.
type BehaviorModelTrainingSummary struct {
// The name of the behavior.
BehaviorName *string
// The percentage of datapoints collected.
DatapointsCollectionPercentage *float64
// The date the model was last refreshed.
LastModelRefreshDate *time.Time
// The status of the behavior model.
ModelStatus ModelStatus
// The name of the security profile.
SecurityProfileName *string
// The date a training model started collecting data.
TrainingDataCollectionStartDate *time.Time
noSmithyDocumentSerde
}
// Additional information about the billing group.
type BillingGroupMetadata struct {
// The date the billing group was created.
CreationDate *time.Time
noSmithyDocumentSerde
}
// The properties of a billing group.
type BillingGroupProperties struct {
// The description of the billing group.
BillingGroupDescription *string
noSmithyDocumentSerde
}
// A count of documents that meets a specific aggregation criteria.
type Bucket struct {
// The number of documents that have the value counted for the particular bucket.
Count int32
// The value counted for the particular bucket.
KeyValue *string
noSmithyDocumentSerde
}
// The type of bucketed aggregation performed.
type BucketsAggregationType struct {
// Performs an aggregation that will return a list of buckets. The list of buckets
// is a ranked list of the number of occurrences of an aggregation field value.
TermsAggregation *TermsAggregation
noSmithyDocumentSerde
}
// A CA certificate.
type CACertificate struct {
// The ARN of the CA certificate.
CertificateArn *string
// The ID of the CA certificate.
CertificateId *string
// The date the CA certificate was created.
CreationDate *time.Time
// The status of the CA certificate. The status value REGISTER_INACTIVE is
// deprecated and should not be used.
Status CACertificateStatus
noSmithyDocumentSerde
}
// Describes a CA certificate.
type CACertificateDescription struct {
// Whether the CA certificate configured for auto registration of device
// certificates. Valid values are "ENABLE" and "DISABLE"
AutoRegistrationStatus AutoRegistrationStatus
// The CA certificate ARN.
CertificateArn *string
// The CA certificate ID.
CertificateId *string
// The mode of the CA. All the device certificates that are registered using this
// CA will be registered in the same mode as the CA. For more information about
// certificate mode for device certificates, see certificate mode (https://docs.aws.amazon.com/iot/latest/apireference/API_CertificateDescription.html#iot-Type-CertificateDescription-certificateMode)
// .
CertificateMode CertificateMode
// The CA certificate data, in PEM format.
CertificatePem *string
// The date the CA certificate was created.
CreationDate *time.Time
// The customer version of the CA certificate.
CustomerVersion *int32
// The generation ID of the CA certificate.
GenerationId *string
// The date the CA certificate was last modified.
LastModifiedDate *time.Time
// The owner of the CA certificate.
OwnedBy *string
// The status of a CA certificate.
Status CACertificateStatus
// When the CA certificate is valid.
Validity *CertificateValidity
noSmithyDocumentSerde
}
// Information about a certificate.
type Certificate struct {
// The ARN of the certificate.
CertificateArn *string
// The ID of the certificate. (The last part of the certificate ARN contains the
// certificate ID.)
CertificateId *string
// The mode of the certificate. DEFAULT : A certificate in DEFAULT mode is either
// generated by Amazon Web Services IoT Core or registered with an issuer
// certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT
// mode aren't required to send the Server Name Indication (SNI) extension when
// connecting to Amazon Web Services IoT Core. However, to use features such as
// custom domains and VPC endpoints, we recommend that you use the SNI extension
// when connecting to Amazon Web Services IoT Core. SNI_ONLY : A certificate in
// SNI_ONLY mode is registered without an issuer CA. Devices with certificates in
// SNI_ONLY mode must send the SNI extension when connecting to Amazon Web Services
// IoT Core.
CertificateMode CertificateMode
// The date and time the certificate was created.
CreationDate *time.Time
// The status of the certificate. The status value REGISTER_INACTIVE is deprecated
// and should not be used.
Status CertificateStatus
noSmithyDocumentSerde
}
// Describes a certificate.
type CertificateDescription struct {
// The certificate ID of the CA certificate used to sign this certificate.
CaCertificateId *string
// The ARN of the certificate.
CertificateArn *string
// The ID of the certificate.
CertificateId *string
// The mode of the certificate. DEFAULT : A certificate in DEFAULT mode is either
// generated by Amazon Web Services IoT Core or registered with an issuer
// certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT
// mode aren't required to send the Server Name Indication (SNI) extension when
// connecting to Amazon Web Services IoT Core. However, to use features such as
// custom domains and VPC endpoints, we recommend that you use the SNI extension
// when connecting to Amazon Web Services IoT Core. SNI_ONLY : A certificate in
// SNI_ONLY mode is registered without an issuer CA. Devices with certificates in
// SNI_ONLY mode must send the SNI extension when connecting to Amazon Web Services
// IoT Core. For more information about the value for SNI extension, see Transport
// security in IoT (https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html)
// .
CertificateMode CertificateMode
// The certificate data, in PEM format.
CertificatePem *string
// The date and time the certificate was created.
CreationDate *time.Time
// The customer version of the certificate.
CustomerVersion *int32
// The generation ID of the certificate.
GenerationId *string
// The date and time the certificate was last modified.
LastModifiedDate *time.Time
// The ID of the Amazon Web Services account that owns the certificate.
OwnedBy *string
// The ID of the Amazon Web Services account of the previous owner of the
// certificate.
PreviousOwnedBy *string
// The status of the certificate.
Status CertificateStatus
// The transfer data.
TransferData *TransferData
// When the certificate is valid.
Validity *CertificateValidity
noSmithyDocumentSerde
}
// The certificate provider summary.
type CertificateProviderSummary struct {
// The ARN of the certificate provider.
CertificateProviderArn *string
// The name of the certificate provider.
CertificateProviderName *string
noSmithyDocumentSerde
}
// When the certificate is valid.
type CertificateValidity struct {
// The certificate is not valid after this date.
NotAfter *time.Time
// The certificate is not valid before this date.
NotBefore *time.Time
noSmithyDocumentSerde
}
// Describes an action that updates a CloudWatch alarm.
type CloudwatchAlarmAction struct {
// The CloudWatch alarm name.
//
// This member is required.
AlarmName *string
// The IAM role that allows access to the CloudWatch alarm.
//
// This member is required.
RoleArn *string
// The reason for the alarm change.
//
// This member is required.
StateReason *string
// The value of the alarm state. Acceptable values are: OK, ALARM,
// INSUFFICIENT_DATA.
//
// This member is required.
StateValue *string
noSmithyDocumentSerde
}
// Describes an action that sends data to CloudWatch Logs.
type CloudwatchLogsAction struct {
// The CloudWatch log group to which the action sends data.
//
// This member is required.
LogGroupName *string
// The IAM role that allows access to the CloudWatch log.
//
// This member is required.
RoleArn *string
// Indicates whether batches of log records will be extracted and uploaded into
// CloudWatch. Values include true or false (default).
BatchMode *bool
noSmithyDocumentSerde
}
// Describes an action that captures a CloudWatch metric.
type CloudwatchMetricAction struct {
// The CloudWatch metric name.
//
// This member is required.
MetricName *string
// The CloudWatch metric namespace name.
//
// This member is required.
MetricNamespace *string
// The metric unit (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit)
// supported by CloudWatch.
//
// This member is required.
MetricUnit *string
// The CloudWatch metric value.
//
// This member is required.
MetricValue *string
// The IAM role that allows access to the CloudWatch metric.
//
// This member is required.
RoleArn *string
// An optional Unix timestamp (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp)
// .
MetricTimestamp *string
noSmithyDocumentSerde
}
// Describes the method to use when code signing a file.
type CodeSigning struct {
// The ID of the AWSSignerJob which was created to sign the file.
AwsSignerJobId *string
// A custom method for code signing a file.
CustomCodeSigning *CustomCodeSigning
// Describes the code-signing job.
StartSigningJobParameter *StartSigningJobParameter
noSmithyDocumentSerde
}
// Describes the certificate chain being used when code signing a file.
type CodeSigningCertificateChain struct {
// The name of the certificate.
CertificateName *string
// A base64 encoded binary representation of the code signing certificate chain.
InlineDocument *string
noSmithyDocumentSerde
}
// Describes the signature for a file.
type CodeSigningSignature struct {
// A base64 encoded binary representation of the code signing signature.
InlineDocument []byte
noSmithyDocumentSerde
}
// Configuration.
type Configuration struct {
// True to enable the configuration.
Enabled bool
noSmithyDocumentSerde
}
// Describes a custom method used to code sign a file.
type CustomCodeSigning struct {
// The certificate chain.
CertificateChain *CodeSigningCertificateChain
// The hash algorithm used to code sign the file. You can use a string as the
// algorithm name if the target over-the-air (OTA) update devices are able to
// verify the signature that was generated using the same signature algorithm. For
// example, FreeRTOS uses SHA256 or SHA1 , so you can pass either of them based on
// which was used for generating the signature.
HashAlgorithm *string
// The signature for the file.
Signature *CodeSigningSignature
// The signature algorithm used to code sign the file. You can use a string as the
// algorithm name if the target over-the-air (OTA) update devices are able to
// verify the signature that was generated using the same signature algorithm. For
// example, FreeRTOS uses ECDSA or RSA , so you can pass either of them based on
// which was used for generating the signature.
SignatureAlgorithm *string
noSmithyDocumentSerde
}
// Contains information that denied the authorization.
type Denied struct {
// Information that explicitly denies the authorization.
ExplicitDeny *ExplicitDeny
// Information that implicitly denies the authorization. When a policy doesn't
// explicitly deny or allow an action on a resource it is considered an implicit
// deny.
ImplicitDeny *ImplicitDeny
noSmithyDocumentSerde
}
// Describes the location of the updated firmware.
type Destination struct {
// Describes the location in S3 of the updated firmware.
S3Destination *S3Destination
noSmithyDocumentSerde
}
// Describes which mitigation actions should be executed.
type DetectMitigationActionExecution struct {
// The friendly name that uniquely identifies the mitigation action.
ActionName *string
// The error code of a mitigation action.
ErrorCode *string
// The date a mitigation action ended.
ExecutionEndDate *time.Time
// The date a mitigation action was started.
ExecutionStartDate *time.Time
// The message of a mitigation action.
Message *string
// The status of a mitigation action.
Status DetectMitigationActionExecutionStatus
// The unique identifier of the task.
TaskId *string
// The name of the thing.
ThingName *string
// The unique identifier of the violation.
ViolationId *string
noSmithyDocumentSerde
}
// The statistics of a mitigation action task.
type DetectMitigationActionsTaskStatistics struct {
// The actions that were performed.
ActionsExecuted *int64
// The actions that failed.
ActionsFailed *int64
// The actions that were skipped.
ActionsSkipped *int64
noSmithyDocumentSerde
}
// The summary of the mitigation action tasks.
type DetectMitigationActionsTaskSummary struct {
// The definition of the actions.
ActionsDefinition []MitigationAction
// Includes only active violations.
OnlyActiveViolationsIncluded bool
// Includes suppressed alerts.
SuppressedAlertsIncluded bool
// Specifies the ML Detect findings to which the mitigation actions are applied.
Target *DetectMitigationActionsTaskTarget
// The date the task ended.
TaskEndTime *time.Time
// The unique identifier of the task.
TaskId *string
// The date the task started.
TaskStartTime *time.Time
// The statistics of a mitigation action task.
TaskStatistics *DetectMitigationActionsTaskStatistics
// The status of the task.
TaskStatus DetectMitigationActionsTaskStatus
// Specifies the time period of which violation events occurred between.
ViolationEventOccurrenceRange *ViolationEventOccurrenceRange
noSmithyDocumentSerde
}
// The target of a mitigation action task.
type DetectMitigationActionsTaskTarget struct {
// The name of the behavior.
BehaviorName *string
// The name of the security profile.
SecurityProfileName *string
// The unique identifiers of the violations.
ViolationIds []string
noSmithyDocumentSerde
}
// A map of key-value pairs containing the patterns that need to be replaced in a
// managed template job document schema. You can use the description of each key as
// a guidance to specify the inputs during runtime when creating a job.
// documentParameters can only be used when creating jobs from Amazon Web Services
// managed templates. This parameter can't be used with custom job templates or to
// create jobs from them.
type DocumentParameter struct {
// Description of the map field containing the patterns that need to be replaced
// in a managed template job document schema.
Description *string
// An example illustrating a pattern that need to be replaced in a managed
// template job document schema.
Example *string
// Key of the map field containing the patterns that need to be replaced in a
// managed template job document schema.
Key *string
// Specifies whether a pattern that needs to be replaced in a managed template job
// document schema is optional or required.
Optional bool
// A regular expression of the patterns that need to be replaced in a managed
// template job document schema.
Regex *string
noSmithyDocumentSerde
}
// The summary of a domain configuration. A domain configuration specifies custom
// IoT-specific information about a domain. A domain configuration can be
// associated with an Amazon Web Services-managed domain (for example,
// dbc123defghijk.iot.us-west-2.amazonaws.com), a customer managed domain, or a
// default endpoint.
// - Data
// - Jobs
// - CredentialProvider
type DomainConfigurationSummary struct {
// The ARN of the domain configuration.
DomainConfigurationArn *string
// The name of the domain configuration. This value must be unique to a region.
DomainConfigurationName *string
// The type of service delivered by the endpoint.
ServiceType ServiceType
noSmithyDocumentSerde
}
// Describes an action to write to a DynamoDB table. The tableName , hashKeyField ,
// and rangeKeyField values must match the values used when you created the table.
// The hashKeyValue and rangeKeyvalue fields use a substitution template syntax.
// These templates provide data at runtime. The syntax is as follows:
// ${sql-expression}. You can specify any valid expression in a WHERE or SELECT
// clause, including JSON properties, comparisons, calculations, and functions. For
// example, the following field uses the third level of the topic: "hashKeyValue":
// "${topic(3)}" The following field uses the timestamp: "rangeKeyValue":
// "${timestamp()}"
type DynamoDBAction struct {
// The hash key name.
//
// This member is required.
HashKeyField *string
// The hash key value.
//
// This member is required.
HashKeyValue *string
// The ARN of the IAM role that grants access to the DynamoDB table.
//
// This member is required.
RoleArn *string
// The name of the DynamoDB table.
//
// This member is required.
TableName *string
// The hash key type. Valid values are "STRING" or "NUMBER"
HashKeyType DynamoKeyType
// The type of operation to be performed. This follows the substitution template,
// so it can be ${operation} , but the substitution must result in one of the
// following: INSERT , UPDATE , or DELETE .
Operation *string
// The action payload. This name can be customized.
PayloadField *string
// The range key name.
RangeKeyField *string
// The range key type. Valid values are "STRING" or "NUMBER"
RangeKeyType DynamoKeyType
// The range key value.
RangeKeyValue *string
noSmithyDocumentSerde
}
// Describes an action to write to a DynamoDB table. This DynamoDB action writes
// each attribute in the message payload into it's own column in the DynamoDB
// table.
type DynamoDBv2Action struct {
// Specifies the DynamoDB table to which the message data will be written. For
// example: { "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": {
// "tableName": "my-table" } } } Each attribute in the message payload will be
// written to a separate column in the DynamoDB database.
//
// This member is required.
PutItem *PutItemInput
// The ARN of the IAM role that grants access to the DynamoDB table.
//
// This member is required.
RoleArn *string
noSmithyDocumentSerde
}
// The policy that has the effect on the authorization results.
type EffectivePolicy struct {
// The policy ARN.
PolicyArn *string
// The IAM policy document.
PolicyDocument *string
// The policy name.
PolicyName *string
noSmithyDocumentSerde
}
// Describes an action that writes data to an Amazon OpenSearch Service domain.
// The Elasticsearch action can only be used by existing rule actions. To create a
// new rule action or to update an existing rule action, use the OpenSearch rule
// action instead. For more information, see OpenSearchAction (https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html)
// .
type ElasticsearchAction struct {
// The endpoint of your OpenSearch domain.
//
// This member is required.
Endpoint *string
// The unique identifier for the document you are storing.
//
// This member is required.
Id *string
// The index where you want to store your data.
//
// This member is required.
Index *string
// The IAM role ARN that has access to OpenSearch.
//
// This member is required.
RoleArn *string
// The type of document you are storing.
//
// This member is required.
Type *string
noSmithyDocumentSerde
}
// Parameters used when defining a mitigation action that enable Amazon Web
// Services IoT Core logging.
type EnableIoTLoggingParams struct {
// Specifies the type of information to be logged.
//
// This member is required.
LogLevel LogLevel
// The Amazon Resource Name (ARN) of the IAM role used for logging.
//
// This member is required.
RoleArnForLogging *string
noSmithyDocumentSerde
}
// Error information.
type ErrorInfo struct {
// The error code.
Code *string
// The error message.
Message *string
noSmithyDocumentSerde
}
// Information that explicitly denies authorization.
type ExplicitDeny struct {
// The policies that denied the authorization.
Policies []Policy
noSmithyDocumentSerde
}
// Allows you to create an exponential rate of rollout for a job.
type ExponentialRolloutRate struct {
// The minimum number of things that will be notified of a pending job, per minute
// at the start of job rollout. This parameter allows you to define the initial
// rate of rollout.
//
// This member is required.
BaseRatePerMinute *int32
// The exponential factor to increase the rate of rollout for a job. Amazon Web
// Services IoT Core supports up to one digit after the decimal (for example, 1.5,
// but not 1.55).
//
// This member is required.
IncrementFactor *float64
// The criteria to initiate the increase in rate of rollout for a job.
//
// This member is required.
RateIncreaseCriteria *RateIncreaseCriteria
noSmithyDocumentSerde
}
// Describes the name and data type at a field.
type Field struct {
// The name of the field.
Name *string
// The data type of the field.
Type FieldType
noSmithyDocumentSerde
}
// The location of the OTA update.
type FileLocation struct {
// The location of the updated firmware in S3.
S3Location *S3Location
// The stream that contains the OTA update.
Stream *Stream
noSmithyDocumentSerde
}
// Describes an action that writes data to an Amazon Kinesis Firehose stream.
type FirehoseAction struct {
// The delivery stream name.
//
// This member is required.
DeliveryStreamName *string
// The IAM role that grants access to the Amazon Kinesis Firehose stream.
//
// This member is required.
RoleArn *string
// Whether to deliver the Kinesis Data Firehose stream as a batch by using
// PutRecordBatch (https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html)
// . The default value is false . When batchMode is true and the rule's SQL
// statement evaluates to an Array, each Array element forms one record in the
// PutRecordBatch (https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html)
// request. The resulting array can't have more than 500 records.
BatchMode *bool
// A character separator that will be used to separate records written to the
// Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows
// newline), ',' (comma).
Separator *string
noSmithyDocumentSerde
}
// The name and ARN of a fleet metric.
type FleetMetricNameAndArn struct {
// The fleet metric ARN.
MetricArn *string
// The fleet metric name.
MetricName *string
noSmithyDocumentSerde
}
// A geolocation target that you select to index. Each geolocation target contains
// a name and order key-value pair that specifies the geolocation target fields.
type GeoLocationTarget struct {
// The name of the geolocation target field. If the target field is part of a
// named shadow, you must select the named shadow using the namedShadow filter.
Name *string
// The order of the geolocation target field. This field is optional. The default
// value is LatLon .
Order TargetFieldOrder
noSmithyDocumentSerde
}
// The name and ARN of a group.
type GroupNameAndArn struct {
// The group ARN.
GroupArn *string
// The group name.
GroupName *string
noSmithyDocumentSerde
}
// Send data to an HTTPS endpoint.
type HttpAction struct {
// The endpoint URL. If substitution templates are used in the URL, you must also
// specify a confirmationUrl . If this is a new destination, a new
// TopicRuleDestination is created if possible.
//
// This member is required.
Url *string
// The authentication method to use when sending data to an HTTPS endpoint.
Auth *HttpAuthorization
// The URL to which IoT sends a confirmation message. The value of the
// confirmation URL must be a prefix of the endpoint URL. If you do not specify a
// confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use
// substitution templates in the confirmationUrl, you must create and enable topic
// rule destinations that match each possible value of the substitution template
// before traffic is allowed to your endpoint URL.
ConfirmationUrl *string
// The HTTP headers to send with the message data.
Headers []HttpActionHeader
noSmithyDocumentSerde
}
// The HTTP action header.
type HttpActionHeader struct {
// The HTTP header key.
//
// This member is required.
Key *string
// The HTTP header value. Substitution templates are supported.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// The authorization method used to send messages.
type HttpAuthorization struct {
// Use Sig V4 authorization. For more information, see Signature Version 4 Signing
// Process (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)
// .
Sigv4 *SigV4Authorization
noSmithyDocumentSerde
}
// Specifies the HTTP context to use for the test authorizer request.
type HttpContext struct {
// The header keys and values in an HTTP authorization request.
Headers map[string]string
// The query string keys and values in an HTTP authorization request.
QueryString *string
noSmithyDocumentSerde
}
// HTTP URL destination configuration used by the topic rule's HTTP action.
type HttpUrlDestinationConfiguration struct {
// The URL IoT uses to confirm ownership of or access to the topic rule
// destination URL.
//
// This member is required.
ConfirmationUrl *string
noSmithyDocumentSerde
}
// HTTP URL destination properties.
type HttpUrlDestinationProperties struct {
// The URL used to confirm the HTTP topic rule destination URL.
ConfirmationUrl *string
noSmithyDocumentSerde
}
// Information about an HTTP URL destination.
type HttpUrlDestinationSummary struct {
// The URL used to confirm ownership of or access to the HTTP topic rule
// destination URL.
ConfirmationUrl *string
noSmithyDocumentSerde
}
// Information that implicitly denies authorization. When policy doesn't
// explicitly deny or allow an action on a resource it is considered an implicit
// deny.
type ImplicitDeny struct {
// Policies that don't contain a matching allow or deny statement for the
// specified action on the specified resource.
Policies []Policy
noSmithyDocumentSerde
}
// Provides additional selections for named shadows and geolocation data. To add
// named shadows to your fleet indexing configuration, set namedShadowIndexingMode
// to be ON and specify your shadow names in namedShadowNames filter. To add
// geolocation data to your fleet indexing configuration:
// - If you store geolocation data in a class/unnamed shadow, set
// thingIndexingMode to be REGISTRY_AND_SHADOW and specify your geolocation data
// in geoLocations filter.
// - If you store geolocation data in a named shadow, set namedShadowIndexingMode
// to be ON , add the shadow name in namedShadowNames filter, and specify your
// geolocation data in geoLocations filter. For more information, see Managing
// fleet indexing (https://docs.aws.amazon.com/iot/latest/developerguide/managing-fleet-index.html)
// .
type IndexingFilter struct {
// The list of geolocation targets that you select to index. The default maximum
// number of geolocation targets for indexing is 1 . To increase the limit, see
// Amazon Web Services IoT Device Management Quotas (https://docs.aws.amazon.com/general/latest/gr/iot_device_management.html#fleet-indexing-limits)
// in the Amazon Web Services General Reference.
GeoLocations []GeoLocationTarget
// The shadow names that you select to index. The default maximum number of shadow
// names for indexing is 10. To increase the limit, see Amazon Web Services IoT
// Device Management Quotas (https://docs.aws.amazon.com/general/latest/gr/iot_device_management.html#fleet-indexing-limits)
// in the Amazon Web Services General Reference.
NamedShadowNames []string
noSmithyDocumentSerde
}
// Sends message data to an IoT Analytics channel.
type IotAnalyticsAction struct {
// Whether to process the action as a batch. The default value is false . When
// batchMode is true and the rule SQL statement evaluates to an Array, each Array
// element is delivered as a separate message when passed by BatchPutMessage (https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html)
// to the IoT Analytics channel. The resulting array can't have more than 100
// messages.
BatchMode *bool
// (deprecated) The ARN of the IoT Analytics channel to which message data will be
// sent.
ChannelArn *string
// The name of the IoT Analytics channel to which message data will be sent.
ChannelName *string
// The ARN of the role which has a policy that grants IoT Analytics permission to
// send message data via IoT Analytics (iotanalytics:BatchPutMessage).
RoleArn *string
noSmithyDocumentSerde
}
// Sends an input to an IoT Events detector.
type IotEventsAction struct {
// The name of the IoT Events input.
//
// This member is required.
InputName *string
// The ARN of the role that grants IoT permission to send an input to an IoT
// Events detector. ("Action":"iotevents:BatchPutMessage").
//
// This member is required.
RoleArn *string
// Whether to process the event actions as a batch. The default value is false .
// When batchMode is true , you can't specify a messageId . When batchMode is true
// and the rule SQL statement evaluates to an Array, each Array element is treated
// as a separate message when it's sent to IoT Events by calling BatchPutMessage (https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html)
// . The resulting array can't have more than 10 messages.
BatchMode *bool
// The ID of the message. The default messageId is a new UUID value. When batchMode
// is true , you can't specify a messageId --a new UUID value will be assigned.
// Assign a value to this property to ensure that only one input (message) with a
// given messageId will be processed by an IoT Events detector.
MessageId *string
noSmithyDocumentSerde
}
// Describes an action to send data from an MQTT message that triggered the rule
// to IoT SiteWise asset properties.
type IotSiteWiseAction struct {
// A list of asset property value entries.
//
// This member is required.
PutAssetPropertyValueEntries []PutAssetPropertyValueEntry
// The ARN of the role that grants IoT permission to send an asset property value
// to IoT SiteWise. ( "Action": "iotsitewise:BatchPutAssetPropertyValue" ). The
// trust policy can restrict access to specific asset hierarchy paths.
//
// This member is required.
RoleArn *string
noSmithyDocumentSerde
}
// The certificate issuer indentifier.
type IssuerCertificateIdentifier struct {
// The issuer certificate serial number.
IssuerCertificateSerialNumber *string
// The subject of the issuer certificate.
IssuerCertificateSubject *string
// The issuer ID.
IssuerId *string
noSmithyDocumentSerde
}
// The Job object contains details about a job.
type Job struct {
// Configuration for criteria to abort the job.
AbortConfig *AbortConfig
// If the job was updated, describes the reason for the update.
Comment *string
// The time, in seconds since the epoch, when the job was completed.
CompletedAt *time.Time
// The time, in seconds since the epoch, when the job was created.
CreatedAt *time.Time
// A short text description of the job.
Description *string
// The package version Amazon Resource Names (ARNs) that are installed on the
// device when the job successfully completes. Note:The following Length
// Constraints relates to a single ARN. Up to 25 package version ARNs are allowed.
DestinationPackageVersions []string
// A key-value map that pairs the patterns that need to be replaced in a managed
// template job document schema. You can use the description of each key as a
// guidance to specify the inputs during runtime when creating a job.
// documentParameters can only be used when creating jobs from Amazon Web Services
// managed templates. This parameter can't be used with custom job templates or to
// create jobs from them.
DocumentParameters map[string]string
// Will be true if the job was canceled with the optional force parameter set to
// true .
ForceCanceled *bool
// Indicates whether a job is concurrent. Will be true when a job is rolling out
// new job executions or canceling previously created executions, otherwise false.
IsConcurrent *bool
// An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
JobArn *string
// The configuration for the criteria to retry the job.
JobExecutionsRetryConfig *JobExecutionsRetryConfig
// Allows you to create a staged rollout of a job.
JobExecutionsRolloutConfig *JobExecutionsRolloutConfig
// The unique identifier you assigned to this job when it was created.
JobId *string
// Details about the job process.
JobProcessDetails *JobProcessDetails
// The ARN of the job template used to create the job.
JobTemplateArn *string
// The time, in seconds since the epoch, when the job was last updated.
LastUpdatedAt *time.Time
// The namespace used to indicate that a job is a customer-managed job. When you
// specify a value for this parameter, Amazon Web Services IoT Core sends jobs
// notifications to MQTT topics that contain the value in the following format.
// $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/ The
// namespaceId feature is in public preview.
NamespaceId *string
// Configuration for pre-signed S3 URLs.
PresignedUrlConfig *PresignedUrlConfig
// If the job was updated, provides the reason code for the update.
ReasonCode *string
// Displays the next seven maintenance window occurrences and their start times.
ScheduledJobRollouts []ScheduledJobRollout
// The configuration that allows you to schedule a job for a future date and time
// in addition to specifying the end behavior for each job execution.
SchedulingConfig *SchedulingConfig
// The status of the job, one of IN_PROGRESS , CANCELED , DELETION_IN_PROGRESS or
// COMPLETED .
Status JobStatus
// Specifies whether the job will continue to run (CONTINUOUS), or will be
// complete after all those things specified as targets have completed the job
// (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
// detected in a target. For example, a job will run on a device when the thing
// representing the device is added to a target group, even after the job was
// completed by all things originally in the group. We recommend that you use
// continuous jobs instead of snapshot jobs for dynamic thing group targets. By
// using continuous jobs, devices that join the group receive the job execution
// even after the job has been created.
TargetSelection TargetSelection
// A list of IoT things and thing groups to which the job should be sent.
Targets []string
// Specifies the amount of time each device has to finish its execution of the
// job. A timer is started when the job execution status is set to IN_PROGRESS . If
// the job execution status is not set to another terminal state before the timer
// expires, it will be automatically set to TIMED_OUT .
TimeoutConfig *TimeoutConfig
noSmithyDocumentSerde
}
// The job execution object represents the execution of a job on a particular
// device.
type JobExecution struct {
// The estimated number of seconds that remain before the job execution status
// will be changed to TIMED_OUT . The timeout interval can be anywhere between 1
// minute and 7 days (1 to 10080 minutes). The actual job execution timeout can
// occur up to 60 seconds later than the estimated duration. This value will not be
// included if the job execution has reached a terminal status.
ApproximateSecondsBeforeTimedOut *int64
// A string (consisting of the digits "0" through "9") which identifies this
// particular job execution on this particular device. It can be used in commands
// which return or update job execution information.
ExecutionNumber *int64
// Will be true if the job execution was canceled with the optional force
// parameter set to true .
ForceCanceled *bool
// The unique identifier you assigned to the job when it was created.
JobId *string
// The time, in seconds since the epoch, when the job execution was last updated.
LastUpdatedAt *time.Time
// The time, in seconds since the epoch, when the job execution was queued.
QueuedAt *time.Time
// The time, in seconds since the epoch, when the job execution started.
StartedAt *time.Time
// The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED,
// TIMED_OUT, CANCELED, or REJECTED).
Status JobExecutionStatus
// A collection of name/value pairs that describe the status of the job execution.
StatusDetails *JobExecutionStatusDetails
// The ARN of the thing on which the job execution is running.
ThingArn *string
// The version of the job execution. Job execution versions are incremented each
// time they are updated by a device.
VersionNumber int64
noSmithyDocumentSerde
}
// The configuration that determines how many retries are allowed for each failure
// type for a job.
type JobExecutionsRetryConfig struct {
// The list of criteria that determines how many retries are allowed for each
// failure type for a job.
//
// This member is required.
CriteriaList []RetryCriteria
noSmithyDocumentSerde
}
// Allows you to create a staged rollout of a job.
type JobExecutionsRolloutConfig struct {
// The rate of increase for a job rollout. This parameter allows you to define an
// exponential rate for a job rollout.
ExponentialRate *ExponentialRolloutRate
// The maximum number of things that will be notified of a pending job, per
// minute. This parameter allows you to create a staged rollout.
MaximumPerMinute *int32
noSmithyDocumentSerde
}
// Details of the job execution status.
type JobExecutionStatusDetails struct {
// The job execution status.
DetailsMap map[string]string
noSmithyDocumentSerde
}
// The job execution summary.
type JobExecutionSummary struct {
// A string (consisting of the digits "0" through "9") which identifies this
// particular job execution on this particular device. It can be used later in
// commands which return or update job execution information.
ExecutionNumber *int64
// The time, in seconds since the epoch, when the job execution was last updated.
LastUpdatedAt *time.Time
// The time, in seconds since the epoch, when the job execution was queued.
QueuedAt *time.Time
// The number that indicates how many retry attempts have been completed for this
// job on this device.
RetryAttempt *int32
// The time, in seconds since the epoch, when the job execution started.
StartedAt *time.Time
// The status of the job execution.
Status JobExecutionStatus
noSmithyDocumentSerde
}
// Contains a summary of information about job executions for a specific job.
type JobExecutionSummaryForJob struct {
// Contains a subset of information about a job execution.
JobExecutionSummary *JobExecutionSummary
// The ARN of the thing on which the job execution is running.
ThingArn *string
noSmithyDocumentSerde
}
// The job execution summary for a thing.
type JobExecutionSummaryForThing struct {
// Contains a subset of information about a job execution.
JobExecutionSummary *JobExecutionSummary
// The unique identifier you assigned to this job when it was created.
JobId *string
noSmithyDocumentSerde
}
// The job process details.
type JobProcessDetails struct {
// The number of things that cancelled the job.
NumberOfCanceledThings *int32
// The number of things that failed executing the job.
NumberOfFailedThings *int32
// The number of things currently executing the job.
NumberOfInProgressThings *int32
// The number of things that are awaiting execution of the job.
NumberOfQueuedThings *int32
// The number of things that rejected the job.
NumberOfRejectedThings *int32
// The number of things that are no longer scheduled to execute the job because
// they have been deleted or have been removed from the group that was a target of
// the job.
NumberOfRemovedThings *int32
// The number of things which successfully completed the job.
NumberOfSucceededThings *int32
// The number of things whose job execution status is TIMED_OUT .
NumberOfTimedOutThings *int32
// The target devices to which the job execution is being rolled out. This value
// will be null after the job execution has finished rolling out to all the target
// devices.
ProcessingTargets []string
noSmithyDocumentSerde
}
// The job summary.
type JobSummary struct {
// The time, in seconds since the epoch, when the job completed.
CompletedAt *time.Time
// The time, in seconds since the epoch, when the job was created.
CreatedAt *time.Time
// Indicates whether a job is concurrent. Will be true when a job is rolling out
// new job executions or canceling previously created executions, otherwise false.
IsConcurrent *bool
// The job ARN.
JobArn *string
// The unique identifier you assigned to this job when it was created.
JobId *string
// The time, in seconds since the epoch, when the job was last updated.
LastUpdatedAt *time.Time
// The job summary status.
Status JobStatus
// Specifies whether the job will continue to run (CONTINUOUS), or will be
// complete after all those things specified as targets have completed the job
// (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
// detected in a target. For example, a job will run on a thing when the thing is
// added to a target group, even after the job was completed by all things
// originally in the group. We recommend that you use continuous jobs instead of
// snapshot jobs for dynamic thing group targets. By using continuous jobs, devices
// that join the group receive the job execution even after the job has been
// created.
TargetSelection TargetSelection
// The ID of the thing group.
ThingGroupId *string
noSmithyDocumentSerde
}
// An object that contains information about the job template.
type JobTemplateSummary struct {
// The time, in seconds since the epoch, when the job template was created.
CreatedAt *time.Time
// A description of the job template.
Description *string
// The ARN of the job template.
JobTemplateArn *string
// The unique identifier of the job template.
JobTemplateId *string
noSmithyDocumentSerde
}
// Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or
// self-managed Apache Kafka cluster.
type KafkaAction struct {
// Properties of the Apache Kafka producer client.
//
// This member is required.
ClientProperties map[string]string
// The ARN of Kafka action's VPC TopicRuleDestination .
//
// This member is required.
DestinationArn *string
// The Kafka topic for messages to be sent to the Kafka broker.
//
// This member is required.
Topic *string
// The list of Kafka headers that you specify.
Headers []KafkaActionHeader
// The Kafka message key.
Key *string
// The Kafka message partition.
Partition *string
noSmithyDocumentSerde
}
// Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka
// Action. You can use these headers to route data from IoT clients to downstream
// Kafka clusters without modifying your message payload. For more information
// about Rule's Kafka action, see Apache Kafka (https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html)
// .
type KafkaActionHeader struct {
// The key of the Kafka header.
//
// This member is required.
Key *string
// The value of the Kafka header.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Describes a key pair.
type KeyPair struct {
// The private key.
PrivateKey *string
// The public key.
PublicKey *string
noSmithyDocumentSerde
}
// Describes an action to write data to an Amazon Kinesis stream.
type KinesisAction struct {
// The ARN of the IAM role that grants access to the Amazon Kinesis stream.
//
// This member is required.
RoleArn *string
// The name of the Amazon Kinesis stream.
//
// This member is required.
StreamName *string
// The partition key.
PartitionKey *string
noSmithyDocumentSerde
}
// Describes an action to invoke a Lambda function.
type LambdaAction struct {
// The ARN of the Lambda function.
//
// This member is required.
FunctionArn *string
noSmithyDocumentSerde
}
// The Amazon Location rule action sends device location updates from an MQTT
// message to an Amazon Location tracker resource.
type LocationAction struct {
// The unique ID of the device providing the location data.
//
// This member is required.
DeviceId *string
// A string that evaluates to a double value that represents the latitude of the
// device's location.
//
// This member is required.
Latitude *string
// A string that evaluates to a double value that represents the longitude of the
// device's location.
//
// This member is required.
Longitude *string
// The IAM role that grants permission to write to the Amazon Location resource.
//
// This member is required.
RoleArn *string
// The name of the tracker resource in Amazon Location in which the location is
// updated.
//
// This member is required.
TrackerName *string
// The time that the location data was sampled. The default value is the time the
// MQTT message was processed.
Timestamp *LocationTimestamp
noSmithyDocumentSerde
}
// Describes how to interpret an application-defined timestamp value from an MQTT
// message payload and the precision of that value.
type LocationTimestamp struct {
// An expression that returns a long epoch time value.
//
// This member is required.
Value *string
// The precision of the timestamp value that results from the expression described
// in value . Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS .
// The default is MILLISECONDS .
Unit *string
noSmithyDocumentSerde
}
// Describes the logging options payload.
type LoggingOptionsPayload struct {
// The ARN of the IAM role that grants access.
//
// This member is required.
RoleArn *string
// The log level.
LogLevel LogLevel
noSmithyDocumentSerde
}
// A log target.
type LogTarget struct {
// The target type.
//
// This member is required.
TargetType LogTargetType
// The target name.
TargetName *string
noSmithyDocumentSerde
}
// The target configuration.
type LogTargetConfiguration struct {
// The logging level.
LogLevel LogLevel
// A log target
LogTarget *LogTarget
noSmithyDocumentSerde
}
// The configuration of an ML Detect Security Profile.
type MachineLearningDetectionConfig struct {
// The sensitivity of anomalous behavior evaluation. Can be Low , Medium , or High .
//
// This member is required.
ConfidenceLevel ConfidenceLevel
noSmithyDocumentSerde
}
// An optional configuration within the SchedulingConfig to setup a recurring
// maintenance window with a predetermined start time and duration for the rollout
// of a job document to all devices in a target group for a job.
type MaintenanceWindow struct {
// Displays the duration of the next maintenance window.
//
// This member is required.
DurationInMinutes *int32
// Displays the start time of the next maintenance window.
//
// This member is required.
StartTime *string
noSmithyDocumentSerde
}
// An object that contains information about the managed template.
type ManagedJobTemplateSummary struct {
// The description for a managed template.
Description *string
// A list of environments that are supported with the managed job template.
Environments []string
// The Amazon Resource Name (ARN) for a managed template.
TemplateArn *string
// The unique Name for a managed template.
TemplateName *string
// The version for a managed template.
TemplateVersion *string
noSmithyDocumentSerde
}
// A metric.
type MetricDatum struct {
// The time the metric value was reported.
Timestamp *time.Time
// The value reported for the metric.
Value *MetricValue
noSmithyDocumentSerde
}
// The dimension of a metric.
type MetricDimension struct {
// A unique identifier for the dimension.
//
// This member is required.
DimensionName *string
// Defines how the dimensionValues of a dimension are interpreted. For example,
// for dimension type TOPIC_FILTER, the IN operator, a message will be counted
// only if its topic matches one of the topic filters. With NOT_IN operator, a
// message will be counted only if it doesn't match any of the topic filters. The
// operator is optional: if it's not provided (is null ), it will be interpreted as
// IN .
Operator DimensionValueOperator
noSmithyDocumentSerde
}
// Set configurations for metrics export.
type MetricsExportConfig struct {
// The MQTT topic that Device Defender Detect should publish messages to for
// metrics export.
//
// This member is required.
MqttTopic *string
// This role ARN has permission to publish MQTT messages, after which Device
// Defender Detect can assume the role and publish messages on your behalf.
//
// This member is required.
RoleArn *string
noSmithyDocumentSerde
}
// The metric you want to retain. Dimensions are optional.
type MetricToRetain struct {
// What is measured by the behavior.
//
// This member is required.
Metric *string
// The value indicates exporting metrics related to the MetricToRetain when it's
// true.
ExportMetric *bool
// The dimension of a metric. This can't be used with custom metrics.
MetricDimension *MetricDimension
noSmithyDocumentSerde
}
// The value to be compared with the metric .
type MetricValue struct {
// If the comparisonOperator calls for a set of CIDRs, use this to specify that
// set to be compared with the metric .
Cidrs []string
// If the comparisonOperator calls for a numeric value, use this to specify that
// numeric value to be compared with the metric .
Count *int64
// The numeral value of a metric.
Number *float64
// The numeral values of a metric.
Numbers []float64
// If the comparisonOperator calls for a set of ports, use this to specify that
// set to be compared with the metric .
Ports []int32
// The string values of a metric.
Strings []string
noSmithyDocumentSerde
}
// Describes which changes should be applied as part of a mitigation action.
type MitigationAction struct {
// The set of parameters for this mitigation action. The parameters vary,
// depending on the kind of action you apply.
ActionParams *MitigationActionParams
// A unique identifier for the mitigation action.
Id *string
// A user-friendly name for the mitigation action.
Name *string
// The IAM role ARN used to apply this mitigation action.
RoleArn *string
noSmithyDocumentSerde
}
// Information that identifies a mitigation action. This information is returned
// by ListMitigationActions.
type MitigationActionIdentifier struct {
// The IAM role ARN used to apply this mitigation action.
ActionArn *string
// The friendly name of the mitigation action.
ActionName *string
// The date when this mitigation action was created.
CreationDate *time.Time
noSmithyDocumentSerde
}
// The set of parameters for this mitigation action. You can specify only one type
// of parameter (in other words, you can apply only one action for each defined
// mitigation action).
type MitigationActionParams struct {
// Parameters to define a mitigation action that moves devices associated with a
// certificate to one or more specified thing groups, typically for quarantine.
AddThingsToThingGroupParams *AddThingsToThingGroupParams
// Parameters to define a mitigation action that enables Amazon Web Services IoT
// Core logging at a specified level of detail.
EnableIoTLoggingParams *EnableIoTLoggingParams
// Parameters to define a mitigation action that publishes findings to Amazon
// Simple Notification Service (Amazon SNS. You can implement your own custom
// actions in response to the Amazon SNS messages.
PublishFindingToSnsParams *PublishFindingToSnsParams
// Parameters to define a mitigation action that adds a blank policy to restrict
// permissions.
ReplaceDefaultPolicyVersionParams *ReplaceDefaultPolicyVersionParams
// Parameters to define a mitigation action that changes the state of the CA
// certificate to inactive.
UpdateCACertificateParams *UpdateCACertificateParams
// Parameters to define a mitigation action that changes the state of the device
// certificate to inactive.
UpdateDeviceCertificateParams *UpdateDeviceCertificateParams
noSmithyDocumentSerde
}
// Specifies the MQTT context to use for the test authorizer request
type MqttContext struct {
// The value of the clientId key in an MQTT authorization request.
ClientId *string
// The value of the password key in an MQTT authorization request.
Password []byte
// The value of the username key in an MQTT authorization request.
Username *string
noSmithyDocumentSerde
}
// Specifies MQTT Version 5.0 headers information. For more information, see MQTT (https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html)
// from Amazon Web Services IoT Core Developer Guide.
type MqttHeaders struct {
// A UTF-8 encoded string that describes the content of the publishing message.
// For more information, see Content Type (https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901118)
// from the MQTT Version 5.0 specification. Supports substitution templates (https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html)
// .
ContentType *string
// The base64-encoded binary data used by the sender of the request message to
// identify which request the response message is for when it's received. For more
// information, see Correlation Data (https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901115)
// from the MQTT Version 5.0 specification. This binary data must be
// based64-encoded. Supports substitution templates (https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html)
// .
CorrelationData *string
// A user-defined integer value that will persist a message at the message broker
// for a specified amount of time to ensure that the message will expire if it's no
// longer relevant to the subscriber. The value of messageExpiry represents the
// number of seconds before it expires. For more information about the limits of
// messageExpiry , see Amazon Web Services IoT Core message broker and protocol
// limits and quotas (https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html)
// from the Amazon Web Services Reference Guide. Supports substitution templates (https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html)
// .
MessageExpiry *string
// An Enum string value that indicates whether the payload is formatted as UTF-8.
// Valid values are UNSPECIFIED_BYTES and UTF8_DATA . For more information, see
// Payload Format Indicator (https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901111)
// from the MQTT Version 5.0 specification. Supports substitution templates (https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html)
// .
PayloadFormatIndicator *string
// A UTF-8 encoded string that's used as the topic name for a response message.
// The response topic is used to describe the topic which the receiver should
// publish to as part of the request-response flow. The topic must not contain
// wildcard characters. For more information, see Response Topic (https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901114)
// from the MQTT Version 5.0 specification. Supports substitution templates (https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html)
// .
ResponseTopic *string
// An array of key-value pairs that you define in the MQTT5 header.
UserProperties []UserProperty
noSmithyDocumentSerde
}
// Information about the resource that was noncompliant with the audit check.
type NonCompliantResource struct {
// Other information about the noncompliant resource.
AdditionalInfo map[string]string
// Information that identifies the noncompliant resource.
ResourceIdentifier *ResourceIdentifier
// The type of the noncompliant resource.
ResourceType ResourceType
noSmithyDocumentSerde
}
// Describes an action that writes data to an Amazon OpenSearch Service domain.
type OpenSearchAction struct {
// The endpoint of your OpenSearch domain.
//
// This member is required.
Endpoint *string
// The unique identifier for the document you are storing.
//
// This member is required.
Id *string
// The OpenSearch index where you want to store your data.
//
// This member is required.
Index *string
// The IAM role ARN that has access to OpenSearch.
//
// This member is required.
RoleArn *string
// The type of document you are storing.
//
// This member is required.
Type *string
noSmithyDocumentSerde
}
// Describes a file to be associated with an OTA update.
type OTAUpdateFile struct {
// A list of name-attribute pairs. They won't be sent to devices as a part of the
// Job document.
Attributes map[string]string
// The code signing method of the file.
CodeSigning *CodeSigning
// The location of the updated firmware.
FileLocation *FileLocation
// The name of the file.
FileName *string
// An integer value you can include in the job document to allow your devices to
// identify the type of file received from the cloud.
FileType *int32
// The file version.
FileVersion *string
noSmithyDocumentSerde
}
// Information about an OTA update.
type OTAUpdateInfo struct {
// A collection of name/value pairs
AdditionalParameters map[string]string
// The IoT job ARN associated with the OTA update.
AwsIotJobArn *string
// The IoT job ID associated with the OTA update.
AwsIotJobId *string
// Configuration for the rollout of OTA updates.
AwsJobExecutionsRolloutConfig *AwsJobExecutionsRolloutConfig
// Configuration information for pre-signed URLs. Valid when protocols contains
// HTTP.
AwsJobPresignedUrlConfig *AwsJobPresignedUrlConfig
// The date when the OTA update was created.
CreationDate *time.Time
// A description of the OTA update.
Description *string
// Error information associated with the OTA update.
ErrorInfo *ErrorInfo
// The date when the OTA update was last updated.
LastModifiedDate *time.Time
// The OTA update ARN.
OtaUpdateArn *string
// A list of files associated with the OTA update.
OtaUpdateFiles []OTAUpdateFile
// The OTA update ID.
OtaUpdateId *string
// The status of the OTA update.
OtaUpdateStatus OTAUpdateStatus
// The protocol used to transfer the OTA update image. Valid values are [HTTP],
// [MQTT], [HTTP, MQTT]. When both HTTP and MQTT are specified, the target device
// can choose the protocol.
Protocols []Protocol
// Specifies whether the OTA update will continue to run (CONTINUOUS), or will be
// complete after all those things specified as targets have completed the OTA
// update (SNAPSHOT). If continuous, the OTA update may also be run on a thing when
// a change is detected in a target. For example, an OTA update will run on a thing
// when the thing is added to a target group, even after the OTA update was
// completed by all things originally in the group.
TargetSelection TargetSelection
// The targets of the OTA update.
Targets []string
noSmithyDocumentSerde
}
// An OTA update summary.
type OTAUpdateSummary struct {
// The date when the OTA update was created.
CreationDate *time.Time
// The OTA update ARN.
OtaUpdateArn *string
// The OTA update ID.
OtaUpdateId *string
noSmithyDocumentSerde
}
// A certificate that has been transferred but not yet accepted.
type OutgoingCertificate struct {
// The certificate ARN.
CertificateArn *string
// The certificate ID.
CertificateId *string
// The certificate creation date.
CreationDate *time.Time
// The date the transfer was initiated.
TransferDate *time.Time
// The transfer message.
TransferMessage *string
// The Amazon Web Services account to which the transfer was made.
TransferredTo *string
noSmithyDocumentSerde
}
// A summary of information about a software package.
type PackageSummary struct {
// The date that the package was created.
CreationDate *time.Time
// The name of the default package version.
DefaultVersionName *string
// The date that the package was last updated.
LastModifiedDate *time.Time
// The name for the target software package.
PackageName *string
noSmithyDocumentSerde
}
// A summary of information about a package version.
type PackageVersionSummary struct {
// The date that the package version was created.
CreationDate *time.Time
// The date that the package version was last updated.
LastModifiedDate *time.Time
// The name of the associated software package.
PackageName *string
// The status of the package version. For more information, see Package version
// lifecycle (https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle)
// .
Status PackageVersionStatus
// The name of the target package version.
VersionName *string
noSmithyDocumentSerde
}
// Describes the percentile and percentile value.
type PercentPair struct {
// The percentile.
Percent float64
// The value of the percentile.
Value float64
noSmithyDocumentSerde
}
// Describes an IoT policy.
type Policy struct {
// The policy ARN.
PolicyArn *string
// The policy name.
PolicyName *string
noSmithyDocumentSerde
}
// Describes a policy version.
type PolicyVersion struct {
// The date and time the policy was created.
CreateDate *time.Time
// Specifies whether the policy version is the default.
IsDefaultVersion bool
// The policy version ID.
VersionId *string
noSmithyDocumentSerde
}
// Information about the version of the policy associated with the resource.
type PolicyVersionIdentifier struct {
// The name of the policy.
PolicyName *string
// The ID of the version of the policy associated with the resource.
PolicyVersionId *string
noSmithyDocumentSerde
}
// Configuration for pre-signed S3 URLs.
type PresignedUrlConfig struct {
// How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600,
// the default value is 3600 seconds. Pre-signed URLs are generated when Jobs
// receives an MQTT request for the job document.
ExpiresInSec *int64
// The ARN of an IAM role that grants permission to download files from the S3
// bucket where the job data/updates are stored. The role must also grant
// permission for IoT to download the files. For information about addressing the
// confused deputy problem, see cross-service confused deputy prevention (https://docs.aws.amazon.com/iot/latest/developerguide/cross-service-confused-deputy-prevention.html)
// in the Amazon Web Services IoT Core developer guide.
RoleArn *string
noSmithyDocumentSerde
}
// Structure that contains payloadVersion and targetArn .
type ProvisioningHook struct {
// The ARN of the target function. Note: Only Lambda functions are currently
// supported.
//
// This member is required.
TargetArn *string
// The payload that was sent to the target function. Note: Only Lambda functions
// are currently supported.
PayloadVersion *string
noSmithyDocumentSerde
}
// A summary of information about a provisioning template.
type ProvisioningTemplateSummary struct {
// The date when the provisioning template summary was created.
CreationDate *time.Time
// The description of the provisioning template.
Description *string
// True if the fleet provision template is enabled, otherwise false.
Enabled bool
// The date when the provisioning template summary was last modified.
LastModifiedDate *time.Time
// The ARN of the provisioning template.
TemplateArn *string
// The name of the provisioning template.
TemplateName *string
// The type you define in a provisioning template. You can create a template with
// only one type. You can't change the template type after its creation. The
// default value is FLEET_PROVISIONING . For more information about provisioning
// template, see: Provisioning template (https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html)
// .
Type TemplateType
noSmithyDocumentSerde
}
// A summary of information about a fleet provision template version.
type ProvisioningTemplateVersionSummary struct {
// The date when the provisioning template version was created
CreationDate *time.Time
// True if the provisioning template version is the default version, otherwise
// false.
IsDefaultVersion bool
// The ID of the fleet provisioning template version.
VersionId *int32
noSmithyDocumentSerde
}
// Parameters to define a mitigation action that publishes findings to Amazon SNS.
// You can implement your own custom actions in response to the Amazon SNS
// messages.
type PublishFindingToSnsParams struct {
// The ARN of the topic to which you want to publish the findings.
//
// This member is required.
TopicArn *string
noSmithyDocumentSerde
}
// An asset property value entry containing the following information.
type PutAssetPropertyValueEntry struct {
// A list of property values to insert that each contain timestamp, quality, and
// value (TQV) information.
//
// This member is required.
PropertyValues []AssetPropertyValue
// The ID of the IoT SiteWise asset. You must specify either a propertyAlias or
// both an aliasId and a propertyId . Accepts substitution templates.
AssetId *string
// Optional. A unique identifier for this entry that you can define to better
// track which message caused an error in case of failure. Accepts substitution
// templates. Defaults to a new UUID.
EntryId *string
// The name of the property alias associated with your asset property. You must
// specify either a propertyAlias or both an aliasId and a propertyId . Accepts
// substitution templates.
PropertyAlias *string
// The ID of the asset's property. You must specify either a propertyAlias or both
// an aliasId and a propertyId . Accepts substitution templates.
PropertyId *string
noSmithyDocumentSerde
}
// The input for the DynamoActionVS action that specifies the DynamoDB table to
// which the message data will be written.
type PutItemInput struct {
// The table where the message data will be written.
//
// This member is required.
TableName *string
noSmithyDocumentSerde
}
// Allows you to define a criteria to initiate the increase in rate of rollout for
// a job.
type RateIncreaseCriteria struct {
// The threshold for number of notified things that will initiate the increase in
// rate of rollout.
NumberOfNotifiedThings *int32
// The threshold for number of succeeded things that will initiate the increase in
// rate of rollout.
NumberOfSucceededThings *int32
noSmithyDocumentSerde
}
// The registration configuration.
type RegistrationConfig struct {
// The ARN of the role.
RoleArn *string
// The template body.
TemplateBody *string
// The name of the provisioning template.
TemplateName *string
noSmithyDocumentSerde
}
// Information about a related resource.
type RelatedResource struct {
// Other information about the resource.
AdditionalInfo map[string]string
// Information that identifies the resource.
ResourceIdentifier *ResourceIdentifier
// The type of resource.
ResourceType ResourceType
noSmithyDocumentSerde
}
// Parameters to define a mitigation action that adds a blank policy to restrict
// permissions.
type ReplaceDefaultPolicyVersionParams struct {
// The name of the template to be applied. The only supported value is BLANK_POLICY
// .
//
// This member is required.
TemplateName PolicyTemplateName
noSmithyDocumentSerde
}
// Describes an action to republish to another topic.
type RepublishAction struct {
// The ARN of the IAM role that grants access.
//
// This member is required.
RoleArn *string
// The name of the MQTT topic.
//
// This member is required.
Topic *string
// MQTT Version 5.0 headers information. For more information, see MQTT (https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html)
// from the Amazon Web Services IoT Core Developer Guide.
Headers *MqttHeaders
// The Quality of Service (QoS) level to use when republishing messages. The
// default value is 0.
Qos *int32
noSmithyDocumentSerde
}
// Information that identifies the noncompliant resource.
type ResourceIdentifier struct {
// The account with which the resource is associated.
Account *string
// The ID of the CA certificate used to authorize the certificate.
CaCertificateId *string
// The client ID.
ClientId *string
// The ID of the Amazon Cognito identity pool.
CognitoIdentityPoolId *string
// The ARN of the identified device certificate.
DeviceCertificateArn *string
// The ID of the certificate attached to the resource.
DeviceCertificateId *string
// The ARN of the IAM role that has overly permissive actions.
IamRoleArn *string
// The issuer certificate identifier.
IssuerCertificateIdentifier *IssuerCertificateIdentifier
// The version of the policy associated with the resource.
PolicyVersionIdentifier *PolicyVersionIdentifier
// The ARN of the role alias that has overly permissive actions.
RoleAliasArn *string
noSmithyDocumentSerde
}
// The criteria that determines how many retries are allowed for each failure type
// for a job.
type RetryCriteria struct {
// The type of job execution failures that can initiate a job retry.
//
// This member is required.
FailureType RetryableFailureType
// The number of retries allowed for a failure type for the job.
//
// This member is required.
NumberOfRetries *int32
noSmithyDocumentSerde
}
// Role alias description.
type RoleAliasDescription struct {
// The UNIX timestamp of when the role alias was created.
CreationDate *time.Time
// The number of seconds for which the credential is valid.
CredentialDurationSeconds *int32
// The UNIX timestamp of when the role alias was last modified.
LastModifiedDate *time.Time
// The role alias owner.
Owner *string
// The role alias.
RoleAlias *string
// The ARN of the role alias.
RoleAliasArn *string
// The role ARN.
RoleArn *string
noSmithyDocumentSerde
}
// Describes an action to write data to an Amazon S3 bucket.
type S3Action struct {
// The Amazon S3 bucket.
//
// This member is required.
BucketName *string
// The object key. For more information, see Actions, resources, and condition
// keys for Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html)
// .
//
// This member is required.
Key *string
// The ARN of the IAM role that grants access.
//
// This member is required.
RoleArn *string
// The Amazon S3 canned ACL that controls access to the object identified by the
// object key. For more information, see S3 canned ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl)
// .
CannedAcl CannedAccessControlList
noSmithyDocumentSerde
}
// Describes the location of updated firmware in S3.
type S3Destination struct {
// The S3 bucket that contains the updated firmware.
Bucket *string
// The S3 prefix.
Prefix *string
noSmithyDocumentSerde
}
// The S3 location.
type S3Location struct {
// The S3 bucket.
Bucket *string
// The S3 key.
Key *string
// The S3 bucket version.
Version *string
noSmithyDocumentSerde
}
// Describes an action to write a message to a Salesforce IoT Cloud Input Stream.
type SalesforceAction struct {
// The token used to authenticate access to the Salesforce IoT Cloud Input Stream.
// The token is available from the Salesforce IoT Cloud platform after creation of
// the Input Stream.
//
// This member is required.
Token *string
// The URL exposed by the Salesforce IoT Cloud Input Stream. The URL is available
// from the Salesforce IoT Cloud platform after creation of the Input Stream.
//
// This member is required.
Url *string
noSmithyDocumentSerde
}
// Information about the scheduled audit.
type ScheduledAuditMetadata struct {
// The day of the month on which the scheduled audit is run (if the frequency is
// "MONTHLY"). If days 29-31 are specified, and the month does not have that many
// days, the audit takes place on the "LAST" day of the month.
DayOfMonth *string
// The day of the week on which the scheduled audit is run (if the frequency is
// "WEEKLY" or "BIWEEKLY").
DayOfWeek DayOfWeek
// How often the scheduled audit occurs.
Frequency AuditFrequency
// The ARN of the scheduled audit.
ScheduledAuditArn *string
// The name of the scheduled audit.
ScheduledAuditName *string
noSmithyDocumentSerde
}
// Displays the next seven maintenance window occurrences and their start times.
type ScheduledJobRollout struct {
// Displays the start times of the next seven maintenance window occurrences.
StartTime *string
noSmithyDocumentSerde
}
// Specifies the date and time that a job will begin the rollout of the job
// document to all devices in the target group. Additionally, you can specify the
// end behavior for each job execution when it reaches the scheduled end time.
type SchedulingConfig struct {
// Specifies the end behavior for all job executions after a job reaches the
// selected endTime . If endTime is not selected when creating the job, then
// endBehavior does not apply.
EndBehavior JobEndBehavior
// The time a job will stop rollout of the job document to all devices in the
// target group for a job. The endTime must take place no later than two years
// from the current time and be scheduled a minimum of thirty minutes from the
// current time. The minimum duration between startTime and endTime is thirty
// minutes. The maximum duration between startTime and endTime is two years. The
// date and time format for the endTime is YYYY-MM-DD for the date and HH:MM for
// the time. For more information on the syntax for endTime when using an API
// command or the Command Line Interface, see Timestamp (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp)
// .
EndTime *string
// An optional configuration within the SchedulingConfig to setup a recurring
// maintenance window with a predetermined start time and duration for the rollout
// of a job document to all devices in a target group for a job.
MaintenanceWindows []MaintenanceWindow
// The time a job will begin rollout of the job document to all devices in the
// target group for a job. The startTime can be scheduled up to a year in advance
// and must be scheduled a minimum of thirty minutes from the current time. The
// date and time format for the startTime is YYYY-MM-DD for the date and HH:MM for
// the time. For more information on the syntax for startTime when using an API
// command or the Command Line Interface, see Timestamp (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp)
// .
StartTime *string
noSmithyDocumentSerde
}
// Identifying information for a Device Defender security profile.
type SecurityProfileIdentifier struct {
// The ARN of the security profile.
//
// This member is required.
Arn *string
// The name you've given to the security profile.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// A target to which an alert is sent when a security profile behavior is violated.
type SecurityProfileTarget struct {
// The ARN of the security profile.
//
// This member is required.
Arn *string
noSmithyDocumentSerde
}
// Information about a security profile and the target associated with it.
type SecurityProfileTargetMapping struct {
// Information that identifies the security profile.
SecurityProfileIdentifier *SecurityProfileIdentifier
// Information about the target (thing group) associated with the security profile.
Target *SecurityProfileTarget
noSmithyDocumentSerde
}
// An object that contains information about a server certificate.
type ServerCertificateSummary struct {
// The ARN of the server certificate.
ServerCertificateArn *string
// The status of the server certificate.
ServerCertificateStatus ServerCertificateStatus
// Details that explain the status of the server certificate.
ServerCertificateStatusDetail *string
noSmithyDocumentSerde
}
// Describes the code-signing profile.
type SigningProfileParameter struct {
// Certificate ARN.
CertificateArn *string
// The location of the code-signing certificate on your device.
CertificatePathOnDevice *string
// The hardware platform of your device.
Platform *string
noSmithyDocumentSerde
}
// For more information, see Signature Version 4 signing process (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)
// .
type SigV4Authorization struct {
// The ARN of the signing role.
//
// This member is required.
RoleArn *string
// The service name to use while signing with Sig V4.
//
// This member is required.
ServiceName *string
// The signing region.
//
// This member is required.
SigningRegion *string
noSmithyDocumentSerde
}
// Describes an action to publish to an Amazon SNS topic.
type SnsAction struct {
// The ARN of the IAM role that grants access.
//
// This member is required.
RoleArn *string
// The ARN of the SNS topic.
//
// This member is required.
TargetArn *string
// (Optional) The message format of the message to publish. Accepted values are
// "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this
// setting to determine if the payload should be parsed and relevant
// platform-specific bits of the payload should be extracted. To read more about
// SNS message formats, see
// https://docs.aws.amazon.com/sns/latest/dg/json-formats.html (https://docs.aws.amazon.com/sns/latest/dg/json-formats.html)
// refer to their official documentation.
MessageFormat MessageFormat
noSmithyDocumentSerde
}
// Describes an action to publish data to an Amazon SQS queue.
type SqsAction struct {
// The URL of the Amazon SQS queue.
//
// This member is required.
QueueUrl *string
// The ARN of the IAM role that grants access.
//
// This member is required.
RoleArn *string
// Specifies whether to use Base64 encoding.
UseBase64 *bool
noSmithyDocumentSerde
}
// Information required to start a signing job.
type StartSigningJobParameter struct {
// The location to write the code-signed file.
Destination *Destination
// The code-signing profile name.
SigningProfileName *string
// Describes the code-signing profile.
SigningProfileParameter *SigningProfileParameter
noSmithyDocumentSerde
}
// A statistical ranking (percentile) that indicates a threshold value by which a
// behavior is determined to be in compliance or in violation of the behavior.
type StatisticalThreshold struct {
// The percentile that resolves to a threshold value by which compliance with a
// behavior is determined. Metrics are collected over the specified period (
// durationSeconds ) from all reporting devices in your account and statistical
// ranks are calculated. Then, the measurements from a device are collected over
// the same period. If the accumulated measurements from the device fall above or
// below ( comparisonOperator ) the value associated with the percentile specified,
// then the device is considered to be in compliance with the behavior, otherwise a
// violation occurs.
Statistic *string
noSmithyDocumentSerde
}
// A map of key-value pairs for all supported statistics. For issues with missing
// or unexpected values for this API, consult Fleet indexing troubleshooting guide (https://docs.aws.amazon.com/iot/latest/developerguide/fleet-indexing-troubleshooting.html)
// .
type Statistics struct {
// The average of the aggregated field values.
Average *float64
// The count of things that match the query string criteria and contain a valid
// aggregation field value.
Count int32
// The maximum aggregated field value.
Maximum *float64
// The minimum aggregated field value.
Minimum *float64
// The standard deviation of the aggregated field values.
StdDeviation *float64
// The sum of the aggregated field values.
Sum *float64
// The sum of the squares of the aggregated field values.
SumOfSquares *float64
// The variance of the aggregated field values.
Variance *float64
noSmithyDocumentSerde
}
// Starts execution of a Step Functions state machine.
type StepFunctionsAction struct {
// The ARN of the role that grants IoT permission to start execution of a state
// machine ("Action":"states:StartExecution").
//
// This member is required.
RoleArn *string
// The name of the Step Functions state machine whose execution will be started.
//
// This member is required.
StateMachineName *string
// (Optional) A name will be given to the state machine execution consisting of
// this prefix followed by a UUID. Step Functions automatically creates a unique
// name for each state machine execution if one is not provided.
ExecutionNamePrefix *string
noSmithyDocumentSerde
}
// Describes a group of files that can be streamed.
type Stream struct {
// The ID of a file associated with a stream.
FileId *int32
// The stream ID.
StreamId *string
noSmithyDocumentSerde
}
// Represents a file to stream.
type StreamFile struct {
// The file ID.
FileId *int32
// The location of the file in S3.
S3Location *S3Location
noSmithyDocumentSerde
}
// Information about a stream.
type StreamInfo struct {
// The date when the stream was created.
CreatedAt *time.Time
// The description of the stream.
Description *string
// The files to stream.
Files []StreamFile
// The date when the stream was last updated.
LastUpdatedAt *time.Time
// An IAM role IoT assumes to access your S3 files.
RoleArn *string
// The stream ARN.
StreamArn *string
// The stream ID.
StreamId *string
// The stream version.
StreamVersion *int32
noSmithyDocumentSerde
}
// A summary of a stream.
type StreamSummary struct {
// A description of the stream.
Description *string
// The stream ARN.
StreamArn *string
// The stream ID.
StreamId *string
// The stream version.
StreamVersion *int32
noSmithyDocumentSerde
}
// A set of key/value pairs that are used to manage the resource.
type Tag struct {
// The tag's key.
//
// This member is required.
Key *string
// The tag's value.
Value *string
noSmithyDocumentSerde
}
// Statistics for the checks performed during the audit.
type TaskStatistics struct {
// The number of checks that did not run because the audit was canceled.
CanceledChecks *int32
// The number of checks that found compliant resources.
CompliantChecks *int32
// The number of checks.
FailedChecks *int32
// The number of checks in progress.
InProgressChecks *int32
// The number of checks that found noncompliant resources.
NonCompliantChecks *int32
// The number of checks in this audit.
TotalChecks *int32
// The number of checks waiting for data collection.
WaitingForDataCollectionChecks *int32
noSmithyDocumentSerde
}
// Provides summary counts of how many tasks for findings are in a particular
// state. This information is included in the response from
// DescribeAuditMitigationActionsTask.
type TaskStatisticsForAuditCheck struct {
// The number of findings to which the mitigation action task was canceled when
// applied.
CanceledFindingsCount *int64
// The number of findings for which at least one of the actions failed when
// applied.
FailedFindingsCount *int64
// The number of findings skipped because of filter conditions provided in the
// parameters to the command.
SkippedFindingsCount *int64
// The number of findings for which all mitigation actions succeeded when applied.
SucceededFindingsCount *int64
// The total number of findings to which a task is being applied.
TotalFindingsCount *int64
noSmithyDocumentSerde
}
// Performs an aggregation that will return a list of buckets. The list of buckets
// is a ranked list of the number of occurrences of an aggregation field value.
type TermsAggregation struct {
// The number of buckets to return in the response. Default to 10.
MaxBuckets *int32
noSmithyDocumentSerde
}
// The properties of the thing, including thing name, thing type name, and a list
// of thing attributes.
type ThingAttribute struct {
// A list of thing attributes which are name-value pairs.
Attributes map[string]string
// The thing ARN.
ThingArn *string
// The name of the thing.
ThingName *string
// The name of the thing type, if the thing has been associated with a type.
ThingTypeName *string
// The version of the thing record in the registry.
Version int64
noSmithyDocumentSerde
}
// The connectivity status of the thing.
type ThingConnectivity struct {
// True if the thing is connected to the Amazon Web Services IoT Core service;
// false if it is not connected.
Connected bool
// The reason why the client is disconnected. If the thing has been disconnected
// for approximately an hour, the disconnectReason value might be missing.
DisconnectReason *string
// The epoch time (in milliseconds) when the thing last connected or disconnected.
// If the thing has been disconnected for approximately an hour, the time value
// might be missing.
Timestamp *int64
noSmithyDocumentSerde
}
// The thing search index document.
type ThingDocument struct {
// The attributes.
Attributes map[string]string
// Indicates whether the thing is connected to the Amazon Web Services IoT Core
// service.
Connectivity *ThingConnectivity
// Contains Device Defender data. For more information about Device Defender, see
// Device Defender (https://docs.aws.amazon.com/iot/latest/developerguide/device-defender.html)
// .
DeviceDefender *string
// The unnamed shadow and named shadow. For more information about shadows, see
// IoT Device Shadow service. (https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html)
Shadow *string
// Thing group names.
ThingGroupNames []string
// The thing ID.
ThingId *string
// The thing name.
ThingName *string
// The thing type name.
ThingTypeName *string
noSmithyDocumentSerde
}
// The thing group search index document.
type ThingGroupDocument struct {
// The thing group attributes.
Attributes map[string]string
// Parent group names.
ParentGroupNames []string
// The thing group description.
ThingGroupDescription *string
// The thing group ID.
ThingGroupId *string
// The thing group name.
ThingGroupName *string
noSmithyDocumentSerde
}
// Thing group indexing configuration.
type ThingGroupIndexingConfiguration struct {
// Thing group indexing mode.
//
// This member is required.
ThingGroupIndexingMode ThingGroupIndexingMode
// A list of thing group fields to index. This list cannot contain any managed
// fields. Use the GetIndexingConfiguration API to get a list of managed fields.
// Contains custom field names and their data type.
CustomFields []Field
// Contains fields that are indexed and whose types are already known by the Fleet
// Indexing service. This is an optional field. For more information, see Managed
// fields (https://docs.aws.amazon.com/iot/latest/developerguide/managing-fleet-index.html#managed-field)
// in the Amazon Web Services IoT Core Developer Guide. You can't modify managed
// fields by updating fleet indexing configuration.
ManagedFields []Field
noSmithyDocumentSerde
}
// Thing group metadata.
type ThingGroupMetadata struct {
// The UNIX timestamp of when the thing group was created.
CreationDate *time.Time
// The parent thing group name.
ParentGroupName *string
// The root parent thing group.
RootToParentThingGroups []GroupNameAndArn
noSmithyDocumentSerde
}
// Thing group properties.
type ThingGroupProperties struct {
// The thing group attributes in JSON format.
AttributePayload *AttributePayload
// The thing group description.
ThingGroupDescription *string
noSmithyDocumentSerde
}
// The thing indexing configuration. For more information, see Managing Thing
// Indexing (https://docs.aws.amazon.com/iot/latest/developerguide/managing-index.html)
// .
type ThingIndexingConfiguration struct {
// Thing indexing mode. Valid values are:
// - REGISTRY – Your thing index contains registry data only.
// - REGISTRY_AND_SHADOW - Your thing index contains registry and shadow data.
// - OFF - Thing indexing is disabled.
//
// This member is required.
ThingIndexingMode ThingIndexingMode
// Contains custom field names and their data type.
CustomFields []Field
// Device Defender indexing mode. Valid values are:
// - VIOLATIONS – Your thing index contains Device Defender violations. To
// enable Device Defender indexing, deviceDefenderIndexingMode must not be set to
// OFF.
// - OFF - Device Defender indexing is disabled.
// For more information about Device Defender violations, see Device Defender
// Detect. (https://docs.aws.amazon.com/iot/latest/developerguide/device-defender-detect.html)
DeviceDefenderIndexingMode DeviceDefenderIndexingMode
// Provides additional selections for named shadows and geolocation data. To add
// named shadows to your fleet indexing configuration, set namedShadowIndexingMode
// to be ON and specify your shadow names in namedShadowNames filter. To add
// geolocation data to your fleet indexing configuration:
// - If you store geolocation data in a class/unnamed shadow, set
// thingIndexingMode to be REGISTRY_AND_SHADOW and specify your geolocation data
// in geoLocations filter.
// - If you store geolocation data in a named shadow, set namedShadowIndexingMode
// to be ON , add the shadow name in namedShadowNames filter, and specify your
// geolocation data in geoLocations filter. For more information, see Managing
// fleet indexing (https://docs.aws.amazon.com/iot/latest/developerguide/managing-fleet-index.html)
// .
Filter *IndexingFilter
// Contains fields that are indexed and whose types are already known by the Fleet
// Indexing service. This is an optional field. For more information, see Managed
// fields (https://docs.aws.amazon.com/iot/latest/developerguide/managing-fleet-index.html#managed-field)
// in the Amazon Web Services IoT Core Developer Guide. You can't modify managed
// fields by updating fleet indexing configuration.
ManagedFields []Field
// Named shadow indexing mode. Valid values are:
// - ON – Your thing index contains named shadow. To enable thing named shadow
// indexing, namedShadowIndexingMode must not be set to OFF.
// - OFF - Named shadow indexing is disabled.
// For more information about Shadows, see IoT Device Shadow service. (https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html)
NamedShadowIndexingMode NamedShadowIndexingMode
// Thing connectivity indexing mode. Valid values are:
// - STATUS – Your thing index contains connectivity status. To enable thing
// connectivity indexing, thingIndexMode must not be set to OFF.
// - OFF - Thing connectivity status indexing is disabled.
ThingConnectivityIndexingMode ThingConnectivityIndexingMode
noSmithyDocumentSerde
}
// The definition of the thing type, including thing type name and description.
type ThingTypeDefinition struct {
// The thing type ARN.
ThingTypeArn *string
// The ThingTypeMetadata contains additional information about the thing type
// including: creation date and time, a value indicating whether the thing type is
// deprecated, and a date and time when it was deprecated.
ThingTypeMetadata *ThingTypeMetadata
// The name of the thing type.
ThingTypeName *string
// The ThingTypeProperties for the thing type.
ThingTypeProperties *ThingTypeProperties
noSmithyDocumentSerde
}
// The ThingTypeMetadata contains additional information about the thing type
// including: creation date and time, a value indicating whether the thing type is
// deprecated, and a date and time when time was deprecated.
type ThingTypeMetadata struct {
// The date and time when the thing type was created.
CreationDate *time.Time
// Whether the thing type is deprecated. If true, no new things could be
// associated with this type.
Deprecated bool
// The date and time when the thing type was deprecated.
DeprecationDate *time.Time
noSmithyDocumentSerde
}
// The ThingTypeProperties contains information about the thing type including: a
// thing type description, and a list of searchable thing attribute names.
type ThingTypeProperties struct {
// A list of searchable thing attribute names.
SearchableAttributes []string
// The description of the thing type.
ThingTypeDescription *string
noSmithyDocumentSerde
}
// Specifies the amount of time each device has to finish its execution of the
// job. A timer is started when the job execution status is set to IN_PROGRESS . If
// the job execution status is not set to another terminal state before the timer
// expires, it will be automatically set to TIMED_OUT .
type TimeoutConfig struct {
// Specifies the amount of time, in minutes, this device has to finish execution
// of this job. The timeout interval can be anywhere between 1 minute and 7 days (1
// to 10080 minutes). The in progress timer can't be updated and will apply to all
// job executions for the job. Whenever a job execution remains in the IN_PROGRESS
// status for longer than this interval, the job execution will fail and switch to
// the terminal TIMED_OUT status.
InProgressTimeoutInMinutes *int64
noSmithyDocumentSerde
}
// The Timestream rule action writes attributes (measures) from an MQTT message
// into an Amazon Timestream table. For more information, see the Timestream (https://docs.aws.amazon.com/iot/latest/developerguide/timestream-rule-action.html)
// topic rule action documentation.
type TimestreamAction struct {
// The name of an Amazon Timestream database.
//
// This member is required.
DatabaseName *string
// Metadata attributes of the time series that are written in each measure record.
//
// This member is required.
Dimensions []TimestreamDimension
// The ARN of the role that grants permission to write to the Amazon Timestream
// database table.
//
// This member is required.
RoleArn *string
// The name of the database table into which to write the measure records.
//
// This member is required.
TableName *string
// Specifies an application-defined value to replace the default value assigned to
// the Timestream record's timestamp in the time column. You can use this property
// to specify the value and the precision of the Timestream record's timestamp. You
// can specify a value from the message payload or a value computed by a
// substitution template. If omitted, the topic rule action assigns the timestamp,
// in milliseconds, at the time it processed the rule.
Timestamp *TimestreamTimestamp
noSmithyDocumentSerde
}
// Metadata attributes of the time series that are written in each measure record.
type TimestreamDimension struct {
// The metadata dimension name. This is the name of the column in the Amazon
// Timestream database table record. Dimensions cannot be named: measure_name ,
// measure_value , or time . These names are reserved. Dimension names cannot start
// with ts_ or measure_value and they cannot contain the colon ( : ) character.
//
// This member is required.
Name *string
// The value to write in this column of the database record.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Describes how to interpret an application-defined timestamp value from an MQTT
// message payload and the precision of that value.
type TimestreamTimestamp struct {
// The precision of the timestamp value that results from the expression described
// in value . Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS .
// The default is MILLISECONDS .
//
// This member is required.
Unit *string
// An expression that returns a long epoch time value.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// An object that specifies the TLS configuration for a domain.
type TlsConfig struct {
// The security policy for a domain configuration. For more information, see
// Security policies (https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table)
// in the Amazon Web Services IoT Core developer guide.
SecurityPolicy *string
noSmithyDocumentSerde
}
// Specifies the TLS context to use for the test authorizer request.
type TlsContext struct {
// The value of the serverName key in a TLS authorization request.
ServerName *string
noSmithyDocumentSerde
}
// Describes a rule.
type TopicRule struct {
// The actions associated with the rule.
Actions []Action
// The version of the SQL rules engine to use when evaluating the rule.
AwsIotSqlVersion *string
// The date and time the rule was created.
CreatedAt *time.Time
// The description of the rule.
Description *string
// The action to perform when an error occurs.
ErrorAction *Action
// Specifies whether the rule is disabled.
RuleDisabled *bool
// The name of the rule.
RuleName *string
// The SQL statement used to query the topic. When using a SQL query with multiple
// lines, be sure to escape the newline characters.
Sql *string
noSmithyDocumentSerde
}
// A topic rule destination.
type TopicRuleDestination struct {
// The topic rule destination URL.
Arn *string
// The date and time when the topic rule destination was created.
CreatedAt *time.Time
// Properties of the HTTP URL.
HttpUrlProperties *HttpUrlDestinationProperties
// The date and time when the topic rule destination was last updated.
LastUpdatedAt *time.Time
// The status of the topic rule destination. Valid values are: IN_PROGRESS A topic
// rule destination was created but has not been confirmed. You can set status to
// IN_PROGRESS by calling UpdateTopicRuleDestination . Calling
// UpdateTopicRuleDestination causes a new confirmation challenge to be sent to
// your confirmation endpoint. ENABLED Confirmation was completed, and traffic to
// this destination is allowed. You can set status to DISABLED by calling
// UpdateTopicRuleDestination . DISABLED Confirmation was completed, and traffic to
// this destination is not allowed. You can set status to ENABLED by calling
// UpdateTopicRuleDestination . ERROR Confirmation could not be completed, for
// example if the confirmation timed out. You can call GetTopicRuleDestination for
// details about the error. You can set status to IN_PROGRESS by calling
// UpdateTopicRuleDestination . Calling UpdateTopicRuleDestination causes a new
// confirmation challenge to be sent to your confirmation endpoint.
Status TopicRuleDestinationStatus
// Additional details or reason why the topic rule destination is in the current
// status.
StatusReason *string
// Properties of the virtual private cloud (VPC) connection.
VpcProperties *VpcDestinationProperties
noSmithyDocumentSerde
}
// Configuration of the topic rule destination.
type TopicRuleDestinationConfiguration struct {
// Configuration of the HTTP URL.
HttpUrlConfiguration *HttpUrlDestinationConfiguration
// Configuration of the virtual private cloud (VPC) connection.
VpcConfiguration *VpcDestinationConfiguration
noSmithyDocumentSerde
}
// Information about the topic rule destination.
type TopicRuleDestinationSummary struct {
// The topic rule destination ARN.
Arn *string
// The date and time when the topic rule destination was created.
CreatedAt *time.Time
// Information about the HTTP URL.
HttpUrlSummary *HttpUrlDestinationSummary
// The date and time when the topic rule destination was last updated.
LastUpdatedAt *time.Time
// The status of the topic rule destination. Valid values are: IN_PROGRESS A topic
// rule destination was created but has not been confirmed. You can set status to
// IN_PROGRESS by calling UpdateTopicRuleDestination . Calling
// UpdateTopicRuleDestination causes a new confirmation challenge to be sent to
// your confirmation endpoint. ENABLED Confirmation was completed, and traffic to
// this destination is allowed. You can set status to DISABLED by calling
// UpdateTopicRuleDestination . DISABLED Confirmation was completed, and traffic to
// this destination is not allowed. You can set status to ENABLED by calling
// UpdateTopicRuleDestination . ERROR Confirmation could not be completed, for
// example if the confirmation timed out. You can call GetTopicRuleDestination for
// details about the error. You can set status to IN_PROGRESS by calling
// UpdateTopicRuleDestination . Calling UpdateTopicRuleDestination causes a new
// confirmation challenge to be sent to your confirmation endpoint.
Status TopicRuleDestinationStatus
// The reason the topic rule destination is in the current status.
StatusReason *string
// Information about the virtual private cloud (VPC) connection.
VpcDestinationSummary *VpcDestinationSummary
noSmithyDocumentSerde
}
// Describes a rule.
type TopicRuleListItem struct {
// The date and time the rule was created.
CreatedAt *time.Time
// The rule ARN.
RuleArn *string
// Specifies whether the rule is disabled.
RuleDisabled *bool
// The name of the rule.
RuleName *string
// The pattern for the topic names that apply.
TopicPattern *string
noSmithyDocumentSerde
}
// Describes a rule.
type TopicRulePayload struct {
// The actions associated with the rule.
//
// This member is required.
Actions []Action
// The SQL statement used to query the topic. For more information, see IoT SQL
// Reference (https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-reference.html)
// in the IoT Developer Guide.
//
// This member is required.
Sql *string
// The version of the SQL rules engine to use when evaluating the rule.
AwsIotSqlVersion *string
// The description of the rule.
Description *string
// The action to take when an error occurs.
ErrorAction *Action
// Specifies whether the rule is disabled.
RuleDisabled *bool
noSmithyDocumentSerde
}
// Data used to transfer a certificate to an Amazon Web Services account.
type TransferData struct {
// The date the transfer was accepted.
AcceptDate *time.Time
// The date the transfer was rejected.
RejectDate *time.Time
// The reason why the transfer was rejected.
RejectReason *string
// The date the transfer took place.
TransferDate *time.Time
// The transfer message.
TransferMessage *string
noSmithyDocumentSerde
}
// Parameters to define a mitigation action that changes the state of the CA
// certificate to inactive.
type UpdateCACertificateParams struct {
// The action that you want to apply to the CA certificate. The only supported
// value is DEACTIVATE .
//
// This member is required.
Action CACertificateUpdateAction
noSmithyDocumentSerde
}
// Parameters to define a mitigation action that changes the state of the device
// certificate to inactive.
type UpdateDeviceCertificateParams struct {
// The action that you want to apply to the device certificate. The only supported
// value is DEACTIVATE .
//
// This member is required.
Action DeviceCertificateUpdateAction
noSmithyDocumentSerde
}
// A key-value pair that you define in the header. Both the key and the value are
// either literal strings or valid substitution templates (https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html)
// .
type UserProperty struct {
// A key to be specified in UserProperty .
//
// This member is required.
Key *string
// A value to be specified in UserProperty .
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Information about an error found in a behavior specification.
type ValidationError struct {
// The description of an error found in the behaviors.
ErrorMessage *string
noSmithyDocumentSerde
}
// Configuration to manage IoT Job's package version reporting. If configured,
// Jobs updates the thing's reserved named shadow with the package version
// information up on successful job completion. Note: For each job, the
// destinationPackageVersions attribute has to be set with the correct data for
// Jobs to report to the thing shadow.
type VersionUpdateByJobsConfig struct {
// Indicates whether the Job is enabled or not.
Enabled *bool
// The Amazon Resource Name (ARN) of the role that grants permission to the IoT
// jobs service to update the reserved named shadow when the job successfully
// completes.
RoleArn *string
noSmithyDocumentSerde
}
// Information about a Device Defender security profile behavior violation.
type ViolationEvent struct {
// The behavior that was violated.
Behavior *Behavior
// The value of the metric (the measurement).
MetricValue *MetricValue
// The name of the security profile whose behavior was violated.
SecurityProfileName *string
// The name of the thing responsible for the violation event.
ThingName *string
// The verification state of the violation (detect alarm).
VerificationState VerificationState
// The description of the verification state of the violation.
VerificationStateDescription *string
// The details of a violation event.
ViolationEventAdditionalInfo *ViolationEventAdditionalInfo
// The time the violation event occurred.
ViolationEventTime *time.Time
// The type of violation event.
ViolationEventType ViolationEventType
// The ID of the violation event.
ViolationId *string
noSmithyDocumentSerde
}
// The details of a violation event.
type ViolationEventAdditionalInfo struct {
// The sensitivity of anomalous behavior evaluation. Can be Low , Medium , or High .
ConfidenceLevel ConfidenceLevel
noSmithyDocumentSerde
}
// Specifies the time period of which violation events occurred between.
type ViolationEventOccurrenceRange struct {
// The end date and time of a time period in which violation events occurred.
//
// This member is required.
EndTime *time.Time
// The start date and time of a time period in which violation events occurred.
//
// This member is required.
StartTime *time.Time
noSmithyDocumentSerde
}
// The configuration information for a virtual private cloud (VPC) destination.
type VpcDestinationConfiguration struct {
// The ARN of a role that has permission to create and attach to elastic network
// interfaces (ENIs).
//
// This member is required.
RoleArn *string
// The subnet IDs of the VPC destination.
//
// This member is required.
SubnetIds []string
// The ID of the VPC.
//
// This member is required.
VpcId *string
// The security groups of the VPC destination.
SecurityGroups []string
noSmithyDocumentSerde
}
// The properties of a virtual private cloud (VPC) destination.
type VpcDestinationProperties struct {
// The ARN of a role that has permission to create and attach to elastic network
// interfaces (ENIs).
RoleArn *string
// The security groups of the VPC destination.
SecurityGroups []string
// The subnet IDs of the VPC destination.
SubnetIds []string
// The ID of the VPC.
VpcId *string
noSmithyDocumentSerde
}
// The summary of a virtual private cloud (VPC) destination.
type VpcDestinationSummary struct {
// The ARN of a role that has permission to create and attach to elastic network
// interfaces (ENIs).
RoleArn *string
// The security groups of the VPC destination.
SecurityGroups []string
// The subnet IDs of the VPC destination.
SubnetIds []string
// The ID of the VPC.
VpcId *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
// UnknownUnionMember is returned when a union member is returned over the wire,
// but has an unknown tag.
type UnknownUnionMember struct {
Tag string
Value []byte
noSmithyDocumentSerde
}
func (*UnknownUnionMember) isAssetPropertyVariant() {}
|