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
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// An Amazon Web Services account within your environment that Amazon Inspector
// has been enabled for.
type Account struct {
// The ID of the Amazon Web Services account.
//
// This member is required.
AccountId *string
// Details of the status of Amazon Inspector scans by resource type.
//
// This member is required.
ResourceStatus *ResourceStatus
// The status of Amazon Inspector for the account.
//
// This member is required.
Status Status
noSmithyDocumentSerde
}
// An object that contains details about an aggregation response based on Amazon
// Web Services accounts.
type AccountAggregation struct {
// The type of finding.
FindingType AggregationFindingType
// The type of resource.
ResourceType AggregationResourceType
// The value to sort by.
SortBy AccountSortBy
// The sort order (ascending or descending).
SortOrder SortOrder
noSmithyDocumentSerde
}
// An aggregation of findings by Amazon Web Services account ID.
type AccountAggregationResponse struct {
// The Amazon Web Services account ID.
AccountId *string
// The number of findings by severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// An object with details the status of an Amazon Web Services account within your
// Amazon Inspector environment.
type AccountState struct {
// The Amazon Web Services account ID.
//
// This member is required.
AccountId *string
// An object detailing which resources Amazon Inspector is enabled to scan for the
// account.
//
// This member is required.
ResourceState *ResourceState
// An object detailing the status of Amazon Inspector for the account.
//
// This member is required.
State *State
noSmithyDocumentSerde
}
// Contains details about an aggregation request.
//
// The following types satisfy this interface:
//
// AggregationRequestMemberAccountAggregation
// AggregationRequestMemberAmiAggregation
// AggregationRequestMemberAwsEcrContainerAggregation
// AggregationRequestMemberEc2InstanceAggregation
// AggregationRequestMemberFindingTypeAggregation
// AggregationRequestMemberImageLayerAggregation
// AggregationRequestMemberLambdaFunctionAggregation
// AggregationRequestMemberLambdaLayerAggregation
// AggregationRequestMemberPackageAggregation
// AggregationRequestMemberRepositoryAggregation
// AggregationRequestMemberTitleAggregation
type AggregationRequest interface {
isAggregationRequest()
}
// An object that contains details about an aggregation request based on Amazon
// Web Services account IDs.
type AggregationRequestMemberAccountAggregation struct {
Value AccountAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberAccountAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on Amazon
// Machine Images (AMIs).
type AggregationRequestMemberAmiAggregation struct {
Value AmiAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberAmiAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on Amazon
// ECR container images.
type AggregationRequestMemberAwsEcrContainerAggregation struct {
Value AwsEcrContainerAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberAwsEcrContainerAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on Amazon
// EC2 instances.
type AggregationRequestMemberEc2InstanceAggregation struct {
Value Ec2InstanceAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberEc2InstanceAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on finding
// types.
type AggregationRequestMemberFindingTypeAggregation struct {
Value FindingTypeAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberFindingTypeAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on container
// image layers.
type AggregationRequestMemberImageLayerAggregation struct {
Value ImageLayerAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberImageLayerAggregation) isAggregationRequest() {}
// Returns an object with findings aggregated by AWS Lambda function.
type AggregationRequestMemberLambdaFunctionAggregation struct {
Value LambdaFunctionAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberLambdaFunctionAggregation) isAggregationRequest() {}
// Returns an object with findings aggregated by AWS Lambda layer.
type AggregationRequestMemberLambdaLayerAggregation struct {
Value LambdaLayerAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberLambdaLayerAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on operating
// system package type.
type AggregationRequestMemberPackageAggregation struct {
Value PackageAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberPackageAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on Amazon
// ECR repositories.
type AggregationRequestMemberRepositoryAggregation struct {
Value RepositoryAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberRepositoryAggregation) isAggregationRequest() {}
// An object that contains details about an aggregation request based on finding
// title.
type AggregationRequestMemberTitleAggregation struct {
Value TitleAggregation
noSmithyDocumentSerde
}
func (*AggregationRequestMemberTitleAggregation) isAggregationRequest() {}
// A structure that contains details about the results of an aggregation type.
//
// The following types satisfy this interface:
//
// AggregationResponseMemberAccountAggregation
// AggregationResponseMemberAmiAggregation
// AggregationResponseMemberAwsEcrContainerAggregation
// AggregationResponseMemberEc2InstanceAggregation
// AggregationResponseMemberFindingTypeAggregation
// AggregationResponseMemberImageLayerAggregation
// AggregationResponseMemberLambdaFunctionAggregation
// AggregationResponseMemberLambdaLayerAggregation
// AggregationResponseMemberPackageAggregation
// AggregationResponseMemberRepositoryAggregation
// AggregationResponseMemberTitleAggregation
type AggregationResponse interface {
isAggregationResponse()
}
// An object that contains details about an aggregation response based on Amazon
// Web Services account IDs.
type AggregationResponseMemberAccountAggregation struct {
Value AccountAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberAccountAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on Amazon
// Machine Images (AMIs).
type AggregationResponseMemberAmiAggregation struct {
Value AmiAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberAmiAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on Amazon
// ECR container images.
type AggregationResponseMemberAwsEcrContainerAggregation struct {
Value AwsEcrContainerAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberAwsEcrContainerAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on Amazon
// EC2 instances.
type AggregationResponseMemberEc2InstanceAggregation struct {
Value Ec2InstanceAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberEc2InstanceAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on finding
// types.
type AggregationResponseMemberFindingTypeAggregation struct {
Value FindingTypeAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberFindingTypeAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on
// container image layers.
type AggregationResponseMemberImageLayerAggregation struct {
Value ImageLayerAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberImageLayerAggregation) isAggregationResponse() {}
// An aggregation of findings by AWS Lambda function.
type AggregationResponseMemberLambdaFunctionAggregation struct {
Value LambdaFunctionAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberLambdaFunctionAggregation) isAggregationResponse() {}
// An aggregation of findings by AWS Lambda layer.
type AggregationResponseMemberLambdaLayerAggregation struct {
Value LambdaLayerAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberLambdaLayerAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on
// operating system package type.
type AggregationResponseMemberPackageAggregation struct {
Value PackageAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberPackageAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on Amazon
// ECR repositories.
type AggregationResponseMemberRepositoryAggregation struct {
Value RepositoryAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberRepositoryAggregation) isAggregationResponse() {}
// An object that contains details about an aggregation response based on finding
// title.
type AggregationResponseMemberTitleAggregation struct {
Value TitleAggregationResponse
noSmithyDocumentSerde
}
func (*AggregationResponseMemberTitleAggregation) isAggregationResponse() {}
// The details that define an aggregation based on Amazon machine images (AMIs).
type AmiAggregation struct {
// The IDs of AMIs to aggregate findings for.
Amis []StringFilter
// The value to sort results by.
SortBy AmiSortBy
// The order to sort results by.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of a finding aggregation by AMI.
type AmiAggregationResponse struct {
// The ID of the AMI that findings were aggregated for.
//
// This member is required.
Ami *string
// The Amazon Web Services account ID for the AMI.
AccountId *string
// The IDs of Amazon EC2 instances using this AMI.
AffectedInstances *int64
// An object that contains the count of matched findings per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// The Amazon Web Services Threat Intel Group (ATIG) details for a specific
// vulnerability.
type AtigData struct {
// The date and time this vulnerability was first observed.
FirstSeen *time.Time
// The date and time this vulnerability was last observed.
LastSeen *time.Time
// The commercial sectors this vulnerability targets.
Targets []string
// The MITRE ATT&CK (https://attack.mitre.org/) tactics, techniques, and
// procedures (TTPs) associated with vulnerability.
Ttps []string
noSmithyDocumentSerde
}
// Represents which scan types are automatically enabled for new members of your
// Amazon Inspector organization.
type AutoEnable struct {
// Represents whether Amazon EC2 scans are automatically enabled for new members
// of your Amazon Inspector organization.
//
// This member is required.
Ec2 *bool
// Represents whether Amazon ECR scans are automatically enabled for new members
// of your Amazon Inspector organization.
//
// This member is required.
Ecr *bool
// Represents whether AWS Lambda standard scans are automatically enabled for new
// members of your Amazon Inspector organization.
Lambda *bool
// Represents whether AWS Lambda code scans are automatically enabled for new
// members of your Amazon Inspector organization.
LambdaCode *bool
noSmithyDocumentSerde
}
// Details of the Amazon EC2 instance involved in a finding.
type AwsEc2InstanceDetails struct {
// The IAM instance profile ARN of the Amazon EC2 instance.
IamInstanceProfileArn *string
// The image ID of the Amazon EC2 instance.
ImageId *string
// The IPv4 addresses of the Amazon EC2 instance.
IpV4Addresses []string
// The IPv6 addresses of the Amazon EC2 instance.
IpV6Addresses []string
// The name of the key pair used to launch the Amazon EC2 instance.
KeyName *string
// The date and time the Amazon EC2 instance was launched at.
LaunchedAt *time.Time
// The platform of the Amazon EC2 instance.
Platform *string
// The subnet ID of the Amazon EC2 instance.
SubnetId *string
// The type of the Amazon EC2 instance.
Type *string
// The VPC ID of the Amazon EC2 instance.
VpcId *string
noSmithyDocumentSerde
}
// An aggregation of information about Amazon ECR containers.
type AwsEcrContainerAggregation struct {
// The architecture of the containers.
Architectures []StringFilter
// The image SHA values.
ImageShas []StringFilter
// The image tags.
ImageTags []StringFilter
// The container repositories.
Repositories []StringFilter
// The container resource IDs.
ResourceIds []StringFilter
// The value to sort by.
SortBy AwsEcrContainerSortBy
// The sort order (ascending or descending).
SortOrder SortOrder
noSmithyDocumentSerde
}
// An aggregation of information about Amazon ECR containers.
type AwsEcrContainerAggregationResponse struct {
// The resource ID of the container.
//
// This member is required.
ResourceId *string
// The Amazon Web Services account ID of the account that owns the container.
AccountId *string
// The architecture of the container.
Architecture *string
// The SHA value of the container image.
ImageSha *string
// The container image stags.
ImageTags []string
// The container repository.
Repository *string
// The number of finding by severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// The image details of the Amazon ECR container image.
type AwsEcrContainerImageDetails struct {
// The image hash of the Amazon ECR container image.
//
// This member is required.
ImageHash *string
// The registry for the Amazon ECR container image.
//
// This member is required.
Registry *string
// The name of the repository the Amazon ECR container image resides in.
//
// This member is required.
RepositoryName *string
// The architecture of the Amazon ECR container image.
Architecture *string
// The image author of the Amazon ECR container image.
Author *string
// The image tags attached to the Amazon ECR container image.
ImageTags []string
// The platform of the Amazon ECR container image.
Platform *string
// The date and time the Amazon ECR container image was pushed.
PushedAt *time.Time
noSmithyDocumentSerde
}
// A summary of information about the AWS Lambda function.
type AwsLambdaFunctionDetails struct {
// The SHA256 hash of the AWS Lambda function's deployment package.
//
// This member is required.
CodeSha256 *string
// The AWS Lambda function's execution role.
//
// This member is required.
ExecutionRoleArn *string
// The name of the AWS Lambda function.
//
// This member is required.
FunctionName *string
// The runtime environment for the AWS Lambda function.
//
// This member is required.
Runtime Runtime
// The version of the AWS Lambda function.
//
// This member is required.
Version *string
// The instruction set architecture that the AWS Lambda function supports.
// Architecture is a string array with one of the valid values. The default
// architecture value is x86_64 .
Architectures []Architecture
// The date and time that a user last updated the configuration, in ISO 8601 format (https://www.iso.org/iso-8601-date-and-time-format.html)
LastModifiedAt *time.Time
// The AWS Lambda function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
// . A Lambda function can have up to five layers.
Layers []string
// The type of deployment package. Set to Image for container image and set Zip
// for .zip file archive.
PackageType PackageType
// The AWS Lambda function's networking configuration.
VpcConfig *LambdaVpcConfig
noSmithyDocumentSerde
}
// The Cybersecurity and Infrastructure Security Agency (CISA) details for a
// specific vulnerability.
type CisaData struct {
// The remediation action recommended by CISA for this vulnerability.
Action *string
// The date and time CISA added this vulnerability to their catalogue.
DateAdded *time.Time
// The date and time CISA expects a fix to have been provided vulnerability.
DateDue *time.Time
noSmithyDocumentSerde
}
// Contains information on where a code vulnerability is located in your Lambda
// function.
type CodeFilePath struct {
// The line number of the last line of code that a vulnerability was found in.
//
// This member is required.
EndLine *int32
// The name of the file the code vulnerability was found in.
//
// This member is required.
FileName *string
// The file path to the code that a vulnerability was found in.
//
// This member is required.
FilePath *string
// The line number of the first line of code that a vulnerability was found in.
//
// This member is required.
StartLine *int32
noSmithyDocumentSerde
}
// Contains information on the lines of code associated with a code snippet.
type CodeLine struct {
// The content of a line of code
//
// This member is required.
Content *string
// The line number that a section of code is located at.
//
// This member is required.
LineNumber *int32
noSmithyDocumentSerde
}
// Contains information about any errors encountered while trying to retrieve a
// code snippet.
type CodeSnippetError struct {
// The error code for the error that prevented a code snippet from being retrieved.
//
// This member is required.
ErrorCode CodeSnippetErrorCode
// The error message received when Amazon Inspector failed to retrieve a code
// snippet.
//
// This member is required.
ErrorMessage *string
// The ARN of the finding that a code snippet couldn't be retrieved for.
//
// This member is required.
FindingArn *string
noSmithyDocumentSerde
}
// Contains information on a code snippet retrieved by Amazon Inspector from a
// code vulnerability finding.
type CodeSnippetResult struct {
// Contains information on the retrieved code snippet.
CodeSnippet []CodeLine
// The line number of the last line of a code snippet.
EndLine *int32
// The ARN of a finding that the code snippet is associated with.
FindingArn *string
// The line number of the first line of a code snippet.
StartLine *int32
// Details of a suggested code fix.
SuggestedFixes []SuggestedFix
noSmithyDocumentSerde
}
// Contains information on the code vulnerability identified in your Lambda
// function.
type CodeVulnerabilityDetails struct {
// The Common Weakness Enumeration (CWE) item associated with the detected
// vulnerability.
//
// This member is required.
Cwes []string
// The ID for the Amazon CodeGuru detector associated with the finding. For more
// information on detectors see Amazon CodeGuru Detector Library (https://docs.aws.amazon.com/codeguru/detector-library)
// .
//
// This member is required.
DetectorId *string
// The name of the detector used to identify the code vulnerability. For more
// information on detectors see CodeGuru Detector Library (https://docs.aws.amazon.com/codeguru/detector-library)
// .
//
// This member is required.
DetectorName *string
// Contains information on where the code vulnerability is located in your code.
//
// This member is required.
FilePath *CodeFilePath
// The detector tag associated with the vulnerability. Detector tags group related
// vulnerabilities by common themes or tactics. For a list of available tags by
// programming language, see Java tags (https://docs.aws.amazon.com/codeguru/detector-library/java/tags/)
// , or Python tags (https://docs.aws.amazon.com/codeguru/detector-library/python/tags/)
// .
DetectorTags []string
// A URL containing supporting documentation about the code vulnerability detected.
ReferenceUrls []string
// The identifier for a rule that was used to detect the code vulnerability.
RuleId *string
// The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability
// was detected in.
SourceLambdaLayerArn *string
noSmithyDocumentSerde
}
// a structure that contains information on the count of resources within a group.
type Counts struct {
// The number of resources.
Count int64
// The key associated with this group
GroupKey GroupKey
noSmithyDocumentSerde
}
// Contains details of a coverage date filter.
type CoverageDateFilter struct {
// A timestamp representing the end of the time period to filter results by.
EndInclusive *time.Time
// A timestamp representing the start of the time period to filter results by.
StartInclusive *time.Time
noSmithyDocumentSerde
}
// A structure that identifies filter criteria for GetCoverageStatistics .
type CoverageFilterCriteria struct {
// An array of Amazon Web Services account IDs to return coverage statistics for.
AccountId []CoverageStringFilter
// The Amazon EC2 instance tags to filter on.
Ec2InstanceTags []CoverageMapFilter
// The Amazon ECR image tags to filter on.
EcrImageTags []CoverageStringFilter
// The Amazon ECR repository name to filter on.
EcrRepositoryName []CoverageStringFilter
// Returns coverage statistics for AWS Lambda functions filtered by function names.
LambdaFunctionName []CoverageStringFilter
// Returns coverage statistics for AWS Lambda functions filtered by runtime.
LambdaFunctionRuntime []CoverageStringFilter
// Returns coverage statistics for AWS Lambda functions filtered by tag.
LambdaFunctionTags []CoverageMapFilter
// Filters Amazon Web Services resources based on whether Amazon Inspector has
// checked them for vulnerabilities within the specified time range.
LastScannedAt []CoverageDateFilter
// An array of Amazon Web Services resource IDs to return coverage statistics for.
ResourceId []CoverageStringFilter
// An array of Amazon Web Services resource types to return coverage statistics
// for. The values can be AWS_EC2_INSTANCE , AWS_LAMBDA_FUNCTION or
// AWS_ECR_REPOSITORY .
ResourceType []CoverageStringFilter
// The scan status code to filter on. Valid values are: ValidationException ,
// InternalServerException , ResourceNotFoundException , BadRequestException , and
// ThrottlingException .
ScanStatusCode []CoverageStringFilter
// The scan status reason to filter on.
ScanStatusReason []CoverageStringFilter
// An array of Amazon Inspector scan types to return coverage statistics for.
ScanType []CoverageStringFilter
noSmithyDocumentSerde
}
// Contains details of a coverage map filter.
type CoverageMapFilter struct {
// The operator to compare coverage on.
//
// This member is required.
Comparison CoverageMapComparison
// The tag key associated with the coverage map filter.
//
// This member is required.
Key *string
// The tag value associated with the coverage map filter.
Value *string
noSmithyDocumentSerde
}
// Contains details of a coverage string filter.
type CoverageStringFilter struct {
// The operator to compare strings on.
//
// This member is required.
Comparison CoverageStringComparison
// The value to compare strings on.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// An object that contains details about a resource covered by Amazon Inspector.
type CoveredResource struct {
// The Amazon Web Services account ID of the covered resource.
//
// This member is required.
AccountId *string
// The ID of the covered resource.
//
// This member is required.
ResourceId *string
// The type of the covered resource.
//
// This member is required.
ResourceType CoverageResourceType
// The Amazon Inspector scan type covering the resource.
//
// This member is required.
ScanType ScanType
// The date and time the resource was last checked for vulnerabilities.
LastScannedAt *time.Time
// An object that contains details about the metadata.
ResourceMetadata *ResourceScanMetadata
// The status of the scan covering the resource.
ScanStatus *ScanStatus
noSmithyDocumentSerde
}
// The Common Vulnerability Scoring System (CVSS) version 2 details for the
// vulnerability.
type Cvss2 struct {
// The CVSS v2 base score for the vulnerability.
BaseScore float64
// The scoring vector associated with the CVSS v2 score.
ScoringVector *string
noSmithyDocumentSerde
}
// The Common Vulnerability Scoring System (CVSS) version 3 details for the
// vulnerability.
type Cvss3 struct {
// The CVSS v3 base score for the vulnerability.
BaseScore float64
// The scoring vector associated with the CVSS v3 score.
ScoringVector *string
noSmithyDocumentSerde
}
// The CVSS score for a finding.
type CvssScore struct {
// The base CVSS score used for the finding.
//
// This member is required.
BaseScore *float64
// The vector string of the CVSS score.
//
// This member is required.
ScoringVector *string
// The source of the CVSS score.
//
// This member is required.
Source *string
// The version of CVSS used for the score.
//
// This member is required.
Version *string
noSmithyDocumentSerde
}
// Details on adjustments Amazon Inspector made to the CVSS score for a finding.
type CvssScoreAdjustment struct {
// The metric used to adjust the CVSS score.
//
// This member is required.
Metric *string
// The reason the CVSS score has been adjustment.
//
// This member is required.
Reason *string
noSmithyDocumentSerde
}
// Information about the CVSS score.
type CvssScoreDetails struct {
// The CVSS score.
//
// This member is required.
Score *float64
// The source for the CVSS score.
//
// This member is required.
ScoreSource *string
// The vector for the CVSS score.
//
// This member is required.
ScoringVector *string
// The CVSS version used in scoring.
//
// This member is required.
Version *string
// An object that contains details about adjustment Amazon Inspector made to the
// CVSS score.
Adjustments []CvssScoreAdjustment
// The source of the CVSS data.
CvssSource *string
noSmithyDocumentSerde
}
// Contains details on the time range used to filter findings.
type DateFilter struct {
// A timestamp representing the end of the time period filtered on.
EndInclusive *time.Time
// A timestamp representing the start of the time period filtered on.
StartInclusive *time.Time
noSmithyDocumentSerde
}
// Details of the Amazon Inspector delegated administrator for your organization.
type DelegatedAdmin struct {
// The Amazon Web Services account ID of the Amazon Inspector delegated
// administrator for your organization.
AccountId *string
// The status of the Amazon Inspector delegated administrator.
RelationshipStatus RelationshipStatus
noSmithyDocumentSerde
}
// Details of the Amazon Inspector delegated administrator for your organization.
type DelegatedAdminAccount struct {
// The Amazon Web Services account ID of the Amazon Inspector delegated
// administrator for your organization.
AccountId *string
// The status of the Amazon Inspector delegated administrator.
Status DelegatedAdminStatus
noSmithyDocumentSerde
}
// Contains details of the Amazon S3 bucket and KMS key used to export findings.
type Destination struct {
// The name of the Amazon S3 bucket to export findings to.
//
// This member is required.
BucketName *string
// The ARN of the KMS key used to encrypt data when exporting findings.
//
// This member is required.
KmsKeyArn *string
// The prefix that the findings will be written under.
KeyPrefix *string
noSmithyDocumentSerde
}
// The details that define an aggregation based on Amazon EC2 instances.
type Ec2InstanceAggregation struct {
// The AMI IDs associated with the Amazon EC2 instances to aggregate findings for.
Amis []StringFilter
// The Amazon EC2 instance IDs to aggregate findings for.
InstanceIds []StringFilter
// The Amazon EC2 instance tags to aggregate findings for.
InstanceTags []MapFilter
// The operating system types to aggregate findings for. Valid values must be
// uppercase and underscore separated, examples are ORACLE_LINUX_7 and
// ALPINE_LINUX_3_8 .
OperatingSystems []StringFilter
// The value to sort results by.
SortBy Ec2InstanceSortBy
// The order to sort results by.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of a finding aggregation by Amazon EC2
// instance.
type Ec2InstanceAggregationResponse struct {
// The Amazon EC2 instance ID.
//
// This member is required.
InstanceId *string
// The Amazon Web Services account for the Amazon EC2 instance.
AccountId *string
// The Amazon Machine Image (AMI) of the Amazon EC2 instance.
Ami *string
// The tags attached to the instance.
InstanceTags map[string]string
// The number of network findings for the Amazon EC2 instance.
NetworkFindings *int64
// The operating system of the Amazon EC2 instance.
OperatingSystem *string
// An object that contains the count of matched findings per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// Meta data details of an Amazon EC2 instance.
type Ec2Metadata struct {
// The ID of the Amazon Machine Image (AMI) used to launch the instance.
AmiId *string
// The platform of the instance.
Platform Ec2Platform
// The tags attached to the instance.
Tags map[string]string
noSmithyDocumentSerde
}
// Details about the ECR automated re-scan duration setting for your environment.
type EcrConfiguration struct {
// The ECR automated re-scan duration defines how long an ECR image will be
// actively scanned by Amazon Inspector. When the number of days since an image was
// last pushed exceeds the automated re-scan duration the monitoring state of that
// image becomes inactive and all associated findings are scheduled for closure.
//
// This member is required.
RescanDuration EcrRescanDuration
noSmithyDocumentSerde
}
// Details about the state of the ECR scans for your environment.
type EcrConfigurationState struct {
// An object that contains details about the state of the ECR automated re-scan
// setting.
RescanDurationState *EcrRescanDurationState
noSmithyDocumentSerde
}
// Information on the Amazon ECR image metadata associated with a finding.
type EcrContainerImageMetadata struct {
// Tags associated with the Amazon ECR image metadata.
Tags []string
noSmithyDocumentSerde
}
// Information on the Amazon ECR repository metadata associated with a finding.
type EcrRepositoryMetadata struct {
// The name of the Amazon ECR repository.
Name *string
// The frequency of scans.
ScanFrequency EcrScanFrequency
noSmithyDocumentSerde
}
// Details about the state of any changes to the ECR automated re-scan duration
// setting.
type EcrRescanDurationState struct {
// The ECR automated re-scan duration defines how long an ECR image will be
// actively scanned by Amazon Inspector. When the number of days since an image was
// last pushed exceeds the automated re-scan duration the monitoring state of that
// image becomes inactive and all associated findings are scheduled for closure.
RescanDuration EcrRescanDuration
// The status of changes to the ECR automated re-scan duration.
Status EcrRescanDurationStatus
// A timestamp representing when the last time the ECR scan duration setting was
// changed.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Details about the Exploit Prediction Scoring System (EPSS) score.
type Epss struct {
// The Exploit Prediction Scoring System (EPSS) score.
Score float64
noSmithyDocumentSerde
}
// Details about the Exploit Prediction Scoring System (EPSS) score for a finding.
type EpssDetails struct {
// The EPSS score.
Score float64
noSmithyDocumentSerde
}
// Details of the evidence for a vulnerability identified in a finding.
type Evidence struct {
// The evidence details.
EvidenceDetail *string
// The evidence rule.
EvidenceRule *string
// The evidence severity.
Severity *string
noSmithyDocumentSerde
}
// The details of an exploit available for a finding discovered in your
// environment.
type ExploitabilityDetails struct {
// The date and time of the last exploit associated with a finding discovered in
// your environment.
LastKnownExploitAt *time.Time
noSmithyDocumentSerde
}
// Contains information on when this exploit was observed.
type ExploitObserved struct {
// The date an time when the exploit was first seen.
FirstSeen *time.Time
// The date an time when the exploit was last seen.
LastSeen *time.Time
noSmithyDocumentSerde
}
// An object with details on why an account failed to enable Amazon Inspector.
type FailedAccount struct {
// The Amazon Web Services account ID.
//
// This member is required.
AccountId *string
// The error code explaining why the account failed to enable Amazon Inspector.
//
// This member is required.
ErrorCode ErrorCode
// The error message received when the account failed to enable Amazon Inspector.
//
// This member is required.
ErrorMessage *string
// An object detailing which resources Amazon Inspector is enabled to scan for the
// account.
ResourceStatus *ResourceStatus
// The status of Amazon Inspector for the account.
Status Status
noSmithyDocumentSerde
}
// An object that contains details about a member account in your organization
// that failed to activate Amazon Inspector deep inspection.
type FailedMemberAccountEc2DeepInspectionStatusState struct {
// The unique identifier for the Amazon Web Services account of the organization
// member that failed to activate Amazon Inspector deep inspection.
//
// This member is required.
AccountId *string
// The status of EC2 scanning in the account that failed to activate Amazon
// Inspector deep inspection.
Ec2ScanStatus Status
// The error message explaining why the account failed to activate Amazon
// Inspector deep inspection.
ErrorMessage *string
noSmithyDocumentSerde
}
// Details about a filter.
type Filter struct {
// The action that is to be applied to the findings that match the filter.
//
// This member is required.
Action FilterAction
// The Amazon Resource Number (ARN) associated with this filter.
//
// This member is required.
Arn *string
// The date and time this filter was created at.
//
// This member is required.
CreatedAt *time.Time
// Details on the filter criteria associated with this filter.
//
// This member is required.
Criteria *FilterCriteria
// The name of the filter.
//
// This member is required.
Name *string
// The Amazon Web Services account ID of the account that created the filter.
//
// This member is required.
OwnerId *string
// The date and time the filter was last updated at.
//
// This member is required.
UpdatedAt *time.Time
// A description of the filter.
Description *string
// The reason for the filter.
Reason *string
// The tags attached to the filter.
Tags map[string]string
noSmithyDocumentSerde
}
// Details on the criteria used to define the filter.
type FilterCriteria struct {
// Details of the Amazon Web Services account IDs used to filter findings.
AwsAccountId []StringFilter
// The name of the detector used to identify a code vulnerability in a Lambda
// function used to filter findings.
CodeVulnerabilityDetectorName []StringFilter
// The detector type tag associated with the vulnerability used to filter
// findings. Detector tags group related vulnerabilities by common themes or
// tactics. For a list of available tags by programming language, see Java tags (https://docs.aws.amazon.com/codeguru/detector-library/java/tags/)
// , or Python tags (https://docs.aws.amazon.com/codeguru/detector-library/python/tags/)
// .
CodeVulnerabilityDetectorTags []StringFilter
// The file path to the file in a Lambda function that contains a code
// vulnerability used to filter findings.
CodeVulnerabilityFilePath []StringFilter
// Details of the component IDs used to filter findings.
ComponentId []StringFilter
// Details of the component types used to filter findings.
ComponentType []StringFilter
// Details of the Amazon EC2 instance image IDs used to filter findings.
Ec2InstanceImageId []StringFilter
// Details of the Amazon EC2 instance subnet IDs used to filter findings.
Ec2InstanceSubnetId []StringFilter
// Details of the Amazon EC2 instance VPC IDs used to filter findings.
Ec2InstanceVpcId []StringFilter
// Details of the Amazon ECR image architecture types used to filter findings.
EcrImageArchitecture []StringFilter
// Details of the Amazon ECR image hashes used to filter findings.
EcrImageHash []StringFilter
// Details on the Amazon ECR image push date and time used to filter findings.
EcrImagePushedAt []DateFilter
// Details on the Amazon ECR registry used to filter findings.
EcrImageRegistry []StringFilter
// Details on the name of the Amazon ECR repository used to filter findings.
EcrImageRepositoryName []StringFilter
// The tags attached to the Amazon ECR container image.
EcrImageTags []StringFilter
// The EPSS score used to filter findings.
EpssScore []NumberFilter
// Filters the list of AWS Lambda findings by the availability of exploits.
ExploitAvailable []StringFilter
// Details on the finding ARNs used to filter findings.
FindingArn []StringFilter
// Details on the finding status types used to filter findings.
FindingStatus []StringFilter
// Details on the finding types used to filter findings.
FindingType []StringFilter
// Details on the date and time a finding was first seen used to filter findings.
FirstObservedAt []DateFilter
// Details on whether a fix is available through a version update. This value can
// be YES , NO , or PARTIAL . A PARTIAL fix means that some, but not all, of the
// packages identified in the finding have fixes available through updated
// versions.
FixAvailable []StringFilter
// The Amazon Inspector score to filter on.
InspectorScore []NumberFilter
// Filters the list of AWS Lambda functions by execution role.
LambdaFunctionExecutionRoleArn []StringFilter
// Filters the list of AWS Lambda functions by the date and time that a user last
// updated the configuration, in ISO 8601 format (https://www.iso.org/iso-8601-date-and-time-format.html)
LambdaFunctionLastModifiedAt []DateFilter
// Filters the list of AWS Lambda functions by the function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
// . A Lambda function can have up to five layers.
LambdaFunctionLayers []StringFilter
// Filters the list of AWS Lambda functions by the name of the function.
LambdaFunctionName []StringFilter
// Filters the list of AWS Lambda functions by the runtime environment for the
// Lambda function.
LambdaFunctionRuntime []StringFilter
// Details on the date and time a finding was last seen used to filter findings.
LastObservedAt []DateFilter
// Details on network protocol used to filter findings.
NetworkProtocol []StringFilter
// Details on the port ranges used to filter findings.
PortRange []PortRangeFilter
// Details on the related vulnerabilities used to filter findings.
RelatedVulnerabilities []StringFilter
// Details on the resource IDs used to filter findings.
ResourceId []StringFilter
// Details on the resource tags used to filter findings.
ResourceTags []MapFilter
// Details on the resource types used to filter findings.
ResourceType []StringFilter
// Details on the severity used to filter findings.
Severity []StringFilter
// Details on the finding title used to filter findings.
Title []StringFilter
// Details on the date and time a finding was last updated at used to filter
// findings.
UpdatedAt []DateFilter
// Details on the vendor severity used to filter findings.
VendorSeverity []StringFilter
// Details on the vulnerability ID used to filter findings.
VulnerabilityId []StringFilter
// Details on the vulnerability type used to filter findings.
VulnerabilitySource []StringFilter
// Details on the vulnerable packages used to filter findings.
VulnerablePackages []PackageFilter
noSmithyDocumentSerde
}
// Details about an Amazon Inspector finding.
type Finding struct {
// The Amazon Web Services account ID associated with the finding.
//
// This member is required.
AwsAccountId *string
// The description of the finding.
//
// This member is required.
Description *string
// The Amazon Resource Number (ARN) of the finding.
//
// This member is required.
FindingArn *string
// The date and time that the finding was first observed.
//
// This member is required.
FirstObservedAt *time.Time
// The date and time that the finding was last observed.
//
// This member is required.
LastObservedAt *time.Time
// An object that contains the details about how to remediate a finding.
//
// This member is required.
Remediation *Remediation
// Contains information on the resources involved in a finding. The resource value
// determines the valid values for type in your request. For more information, see
// Finding types (https://docs.aws.amazon.com/inspector/latest/user/findings-types.html)
// in the Amazon Inspector user guide.
//
// This member is required.
Resources []Resource
// The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type
// findings that the vendor has not assigned a severity yet. For more information,
// see Severity levels for findings (https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html)
// in the Amazon Inspector user guide.
//
// This member is required.
Severity Severity
// The status of the finding.
//
// This member is required.
Status FindingStatus
// The type of the finding. The type value determines the valid values for resource
// in your request. For more information, see Finding types (https://docs.aws.amazon.com/inspector/latest/user/findings-types.html)
// in the Amazon Inspector user guide.
//
// This member is required.
Type FindingType
// Details about the code vulnerability identified in a Lambda function used to
// filter findings.
CodeVulnerabilityDetails *CodeVulnerabilityDetails
// The finding's EPSS score.
Epss *EpssDetails
// If a finding discovered in your environment has an exploit available.
ExploitAvailable ExploitAvailable
// The details of an exploit available for a finding discovered in your
// environment.
ExploitabilityDetails *ExploitabilityDetails
// Details on whether a fix is available through a version update. This value can
// be YES , NO , or PARTIAL . A PARTIAL fix means that some, but not all, of the
// packages identified in the finding have fixes available through updated
// versions.
FixAvailable FixAvailable
// The Amazon Inspector score given to the finding.
InspectorScore *float64
// An object that contains details of the Amazon Inspector score.
InspectorScoreDetails *InspectorScoreDetails
// An object that contains the details of a network reachability finding.
NetworkReachabilityDetails *NetworkReachabilityDetails
// An object that contains the details of a package vulnerability finding.
PackageVulnerabilityDetails *PackageVulnerabilityDetails
// The title of the finding.
Title *string
// The date and time the finding was last updated at.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Details of the vulnerability identified in a finding.
type FindingDetail struct {
// The Cybersecurity and Infrastructure Security Agency (CISA) details for a
// specific vulnerability.
CisaData *CisaData
// The Common Weakness Enumerations (CWEs) associated with the vulnerability.
Cwes []string
// The Exploit Prediction Scoring System (EPSS) score of the vulnerability.
EpssScore *float64
// Information on the evidence of the vulnerability.
Evidences []Evidence
// Contains information on when this exploit was observed.
ExploitObserved *ExploitObserved
// The finding ARN that the vulnerability details are associated with.
FindingArn *string
// The reference URLs for the vulnerability data.
ReferenceUrls []string
// The risk score of the vulnerability.
RiskScore *int32
// The known malware tools or kits that can exploit the vulnerability.
Tools []string
// The MITRE adversary tactics, techniques, or procedures (TTPs) associated with
// the vulnerability.
Ttps []string
noSmithyDocumentSerde
}
// Details about an error encountered when trying to return vulnerability data for
// a finding.
type FindingDetailsError struct {
// The error code.
//
// This member is required.
ErrorCode FindingDetailsErrorCode
// The error message.
//
// This member is required.
ErrorMessage *string
// The finding ARN that returned an error.
//
// This member is required.
FindingArn *string
noSmithyDocumentSerde
}
// The details that define an aggregation based on finding type.
type FindingTypeAggregation struct {
// The finding type to aggregate.
FindingType AggregationFindingType
// The resource type to aggregate.
ResourceType AggregationResourceType
// The value to sort results by.
SortBy FindingTypeSortBy
// The order to sort results by.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of a finding type aggregation.
type FindingTypeAggregationResponse struct {
// The ID of the Amazon Web Services account associated with the findings.
AccountId *string
// The value to sort results by.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// Information about the Amazon Inspector free trial for an account.
type FreeTrialAccountInfo struct {
// The account associated with the Amazon Inspector free trial information.
//
// This member is required.
AccountId *string
// Contains information about the Amazon Inspector free trial for an account.
//
// This member is required.
FreeTrialInfo []FreeTrialInfo
noSmithyDocumentSerde
}
// An object that contains information about the Amazon Inspector free trial for
// an account.
type FreeTrialInfo struct {
// The date and time that the Amazon Inspector free trail ends for a given account.
//
// This member is required.
End *time.Time
// The date and time that the Amazon Inspector free trail started for a given
// account.
//
// This member is required.
Start *time.Time
// The order to sort results by.
//
// This member is required.
Status FreeTrialStatus
// The type of scan covered by the Amazon Inspector free trail.
//
// This member is required.
Type FreeTrialType
noSmithyDocumentSerde
}
// Information about an error received while accessing free trail data for an
// account.
type FreeTrialInfoError struct {
// The account associated with the Amazon Inspector free trial information.
//
// This member is required.
AccountId *string
// The error code.
//
// This member is required.
Code FreeTrialInfoErrorCode
// The error message returned.
//
// This member is required.
Message *string
noSmithyDocumentSerde
}
// The details that define an aggregation based on container image layers.
type ImageLayerAggregation struct {
// The hashes associated with the layers.
LayerHashes []StringFilter
// The repository associated with the container image hosting the layers.
Repositories []StringFilter
// The ID of the container image layer.
ResourceIds []StringFilter
// The value to sort results by.
SortBy ImageLayerSortBy
// The order to sort results by.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of a finding aggregation by image layer.
type ImageLayerAggregationResponse struct {
// The ID of the Amazon Web Services account that owns the container image hosting
// the layer image.
//
// This member is required.
AccountId *string
// The layer hash.
//
// This member is required.
LayerHash *string
// The repository the layer resides in.
//
// This member is required.
Repository *string
// The resource ID of the container image layer.
//
// This member is required.
ResourceId *string
// An object that represents the count of matched findings per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// Information about the Amazon Inspector score given to a finding.
type InspectorScoreDetails struct {
// An object that contains details about the CVSS score given to a finding.
AdjustedCvss *CvssScoreDetails
noSmithyDocumentSerde
}
// The details that define a findings aggregation based on AWS Lambda functions.
type LambdaFunctionAggregation struct {
// The AWS Lambda function names to include in the aggregation results.
FunctionNames []StringFilter
// The tags to include in the aggregation results.
FunctionTags []MapFilter
// The resource IDs to include in the aggregation results.
ResourceIds []StringFilter
// Returns findings aggregated by AWS Lambda function runtime environments.
Runtimes []StringFilter
// The finding severity to use for sorting the results.
SortBy LambdaFunctionSortBy
// The order to use for sorting the results.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of an AWS Lambda function finding
// aggregation.
type LambdaFunctionAggregationResponse struct {
// The resource IDs included in the aggregation results.
//
// This member is required.
ResourceId *string
// The ID of the AWS account that owns the AWS Lambda function.
AccountId *string
// The AWS Lambda function names included in the aggregation results.
FunctionName *string
// The tags included in the aggregation results.
LambdaTags map[string]string
// The date that the AWS Lambda function included in the aggregation results was
// last changed.
LastModifiedAt *time.Time
// The runtimes included in the aggregation results.
Runtime *string
// An object that contains the counts of aggregated finding per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// The AWS Lambda function metadata.
type LambdaFunctionMetadata struct {
// The name of a function.
FunctionName *string
// The resource tags on an AWS Lambda function.
FunctionTags map[string]string
// The layers for an AWS Lambda function. A Lambda function can have up to five
// layers.
Layers []string
// An AWS Lambda function's runtime.
Runtime Runtime
noSmithyDocumentSerde
}
// The details that define a findings aggregation based on an AWS Lambda
// function's layers.
type LambdaLayerAggregation struct {
// The names of the AWS Lambda functions associated with the layers.
FunctionNames []StringFilter
// The Amazon Resource Name (ARN) of the AWS Lambda function layer.
LayerArns []StringFilter
// The resource IDs for the AWS Lambda function layers.
ResourceIds []StringFilter
// The finding severity to use for sorting the results.
SortBy LambdaLayerSortBy
// The order to use for sorting the results.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of an AWS Lambda function layer finding
// aggregation.
type LambdaLayerAggregationResponse struct {
// The account ID of the AWS Lambda function layer.
//
// This member is required.
AccountId *string
// The names of the AWS Lambda functions associated with the layers.
//
// This member is required.
FunctionName *string
// The Amazon Resource Name (ARN) of the AWS Lambda function layer.
//
// This member is required.
LayerArn *string
// The Resource ID of the AWS Lambda function layer.
//
// This member is required.
ResourceId *string
// An object that contains the counts of aggregated finding per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// The VPC security groups and subnets that are attached to an AWS Lambda
// function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html)
// .
type LambdaVpcConfig struct {
// The VPC security groups and subnets that are attached to an AWS Lambda
// function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html)
// .
SecurityGroupIds []string
// A list of VPC subnet IDs.
SubnetIds []string
// The ID of the VPC.
VpcId *string
noSmithyDocumentSerde
}
// An object that describes details of a map filter.
type MapFilter struct {
// The operator to use when comparing values in the filter.
//
// This member is required.
Comparison MapComparison
// The tag key used in the filter.
//
// This member is required.
Key *string
// The tag value used in the filter.
Value *string
noSmithyDocumentSerde
}
// Details on a member account in your organization.
type Member struct {
// The Amazon Web Services account ID of the member account.
AccountId *string
// The Amazon Web Services account ID of the Amazon Inspector delegated
// administrator for this member account.
DelegatedAdminAccountId *string
// The status of the member account.
RelationshipStatus RelationshipStatus
// A timestamp showing when the status of this member was last updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// An object that contains details about the status of Amazon Inspector deep
// inspection for a member account in your organization.
type MemberAccountEc2DeepInspectionStatus struct {
// The unique identifier for the Amazon Web Services account of the organization
// member.
//
// This member is required.
AccountId *string
// Whether Amazon Inspector deep inspection is active in the account. If TRUE
// Amazon Inspector deep inspection is active, if FALSE it is not active.
//
// This member is required.
ActivateDeepInspection *bool
noSmithyDocumentSerde
}
// An object that contains details about the state of Amazon Inspector deep
// inspection for a member account.
type MemberAccountEc2DeepInspectionStatusState struct {
// The unique identifier for the Amazon Web Services account of the organization
// member
//
// This member is required.
AccountId *string
// The error message explaining why the account failed to activate Amazon
// Inspector deep inspection.
ErrorMessage *string
// The state of Amazon Inspector deep inspection in the member account.
Status Ec2DeepInspectionStatus
noSmithyDocumentSerde
}
// Information on the network path associated with a finding.
type NetworkPath struct {
// The details on the steps in the network path.
Steps []Step
noSmithyDocumentSerde
}
// Contains the details of a network reachability finding.
type NetworkReachabilityDetails struct {
// An object that contains details about a network path associated with a finding.
//
// This member is required.
NetworkPath *NetworkPath
// An object that contains details about the open port range associated with a
// finding.
//
// This member is required.
OpenPortRange *PortRange
// The protocol associated with a finding.
//
// This member is required.
Protocol NetworkProtocol
noSmithyDocumentSerde
}
// An object that describes the details of a number filter.
type NumberFilter struct {
// The lowest number to be included in the filter.
LowerInclusive *float64
// The highest number to be included in the filter.
UpperInclusive *float64
noSmithyDocumentSerde
}
// The details that define an aggregation based on operating system package type.
type PackageAggregation struct {
// The names of packages to aggregate findings on.
PackageNames []StringFilter
// The value to sort results by.
SortBy PackageSortBy
// The order to sort results by.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains the results of a finding aggregation by image layer.
type PackageAggregationResponse struct {
// The name of the operating system package.
//
// This member is required.
PackageName *string
// The ID of the Amazon Web Services account associated with the findings.
AccountId *string
// An object that contains the count of matched findings per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// Contains information on the details of a package filter.
type PackageFilter struct {
// An object that contains details on the package architecture type to filter on.
Architecture *StringFilter
// An object that contains details on the package epoch to filter on.
Epoch *NumberFilter
// An object that contains details on the name of the package to filter on.
Name *StringFilter
// An object that contains details on the package release to filter on.
Release *StringFilter
// An object that describes the details of a string filter.
SourceLambdaLayerArn *StringFilter
// An object that contains details on the source layer hash to filter on.
SourceLayerHash *StringFilter
// The package version to filter on.
Version *StringFilter
noSmithyDocumentSerde
}
// Information about a package vulnerability finding.
type PackageVulnerabilityDetails struct {
// The source of the vulnerability information.
//
// This member is required.
Source *string
// The ID given to this vulnerability.
//
// This member is required.
VulnerabilityId *string
// An object that contains details about the CVSS score of a finding.
Cvss []CvssScore
// One or more URLs that contain details about this vulnerability type.
ReferenceUrls []string
// One or more vulnerabilities related to the one identified in this finding.
RelatedVulnerabilities []string
// A URL to the source of the vulnerability information.
SourceUrl *string
// The date and time that this vulnerability was first added to the vendor's
// database.
VendorCreatedAt *time.Time
// The severity the vendor has given to this vulnerability type.
VendorSeverity *string
// The date and time the vendor last updated this vulnerability in their database.
VendorUpdatedAt *time.Time
// The packages impacted by this vulnerability.
VulnerablePackages []VulnerablePackage
noSmithyDocumentSerde
}
// Contains information on the permissions an account has within Amazon Inspector.
type Permission struct {
// The operations that can be performed with the given permissions.
//
// This member is required.
Operation Operation
// The services that the permissions allow an account to perform the given
// operations for.
//
// This member is required.
Service Service
noSmithyDocumentSerde
}
// Details about the port range associated with a finding.
type PortRange struct {
// The beginning port in a port range.
//
// This member is required.
Begin *int32
// The ending port in a port range.
//
// This member is required.
End *int32
noSmithyDocumentSerde
}
// An object that describes the details of a port range filter.
type PortRangeFilter struct {
// The port number the port range begins at.
BeginInclusive *int32
// The port number the port range ends at.
EndInclusive *int32
noSmithyDocumentSerde
}
// Details about the recommended course of action to remediate the finding.
type Recommendation struct {
// The recommended course of action to remediate the finding.
Text *string
// The URL address to the CVE remediation recommendations.
Url *string
noSmithyDocumentSerde
}
// Information on how to remediate a finding.
type Remediation struct {
// An object that contains information about the recommended course of action to
// remediate the finding.
Recommendation *Recommendation
noSmithyDocumentSerde
}
// The details that define an aggregation based on repository.
type RepositoryAggregation struct {
// The names of repositories to aggregate findings on.
Repositories []StringFilter
// The value to sort results by.
SortBy RepositorySortBy
// The order to sort results by.
SortOrder SortOrder
noSmithyDocumentSerde
}
// A response that contains details on the results of a finding aggregation by
// repository.
type RepositoryAggregationResponse struct {
// The name of the repository associated with the findings.
//
// This member is required.
Repository *string
// The ID of the Amazon Web Services account associated with the findings.
AccountId *string
// The number of container images impacted by the findings.
AffectedImages *int64
// An object that represent the count of matched findings per severity.
SeverityCounts *SeverityCounts
noSmithyDocumentSerde
}
// Details about the resource involved in a finding.
type Resource struct {
// The ID of the resource.
//
// This member is required.
Id *string
// The type of resource.
//
// This member is required.
Type ResourceType
// An object that contains details about the resource involved in a finding.
Details *ResourceDetails
// The partition of the resource.
Partition *string
// The Amazon Web Services Region the impacted resource is located in.
Region *string
// The tags attached to the resource.
Tags map[string]string
noSmithyDocumentSerde
}
// Contains details about the resource involved in the finding.
type ResourceDetails struct {
// An object that contains details about the Amazon EC2 instance involved in the
// finding.
AwsEc2Instance *AwsEc2InstanceDetails
// An object that contains details about the Amazon ECR container image involved
// in the finding.
AwsEcrContainerImage *AwsEcrContainerImageDetails
// A summary of the information about an AWS Lambda function affected by a finding.
AwsLambdaFunction *AwsLambdaFunctionDetails
noSmithyDocumentSerde
}
// The resource filter criteria for a Software bill of materials (SBOM) report.
type ResourceFilterCriteria struct {
// The account IDs used as resource filter criteria.
AccountId []ResourceStringFilter
// The EC2 instance tags used as resource filter criteria.
Ec2InstanceTags []ResourceMapFilter
// The ECR image tags used as resource filter criteria.
EcrImageTags []ResourceStringFilter
// The ECR repository names used as resource filter criteria.
EcrRepositoryName []ResourceStringFilter
// The AWS Lambda function name used as resource filter criteria.
LambdaFunctionName []ResourceStringFilter
// The AWS Lambda function tags used as resource filter criteria.
LambdaFunctionTags []ResourceMapFilter
// The resource IDs used as resource filter criteria.
ResourceId []ResourceStringFilter
// The resource types used as resource filter criteria.
ResourceType []ResourceStringFilter
noSmithyDocumentSerde
}
// A resource map filter for a software bill of material report.
type ResourceMapFilter struct {
// The filter's comparison.
//
// This member is required.
Comparison ResourceMapComparison
// The filter's key.
//
// This member is required.
Key *string
// The filter's value.
Value *string
noSmithyDocumentSerde
}
// An object that contains details about the metadata for an Amazon ECR resource.
type ResourceScanMetadata struct {
// An object that contains metadata details for an Amazon EC2 instance.
Ec2 *Ec2Metadata
// An object that contains details about the container metadata for an Amazon ECR
// image.
EcrImage *EcrContainerImageMetadata
// An object that contains details about the repository an Amazon ECR image
// resides in.
EcrRepository *EcrRepositoryMetadata
// An object that contains metadata details for an AWS Lambda function.
LambdaFunction *LambdaFunctionMetadata
noSmithyDocumentSerde
}
// Details the state of Amazon Inspector for each resource type Amazon Inspector
// scans.
type ResourceState struct {
// An object detailing the state of Amazon Inspector scanning for Amazon EC2
// resources.
//
// This member is required.
Ec2 *State
// An object detailing the state of Amazon Inspector scanning for Amazon ECR
// resources.
//
// This member is required.
Ecr *State
// An object that described the state of Amazon Inspector scans for an account.
Lambda *State
// An object that described the state of Amazon Inspector scans for an account.
LambdaCode *State
noSmithyDocumentSerde
}
// Details the status of Amazon Inspector for each resource type Amazon Inspector
// scans.
type ResourceStatus struct {
// The status of Amazon Inspector scanning for Amazon EC2 resources.
//
// This member is required.
Ec2 Status
// The status of Amazon Inspector scanning for Amazon ECR resources.
//
// This member is required.
Ecr Status
// The status of Amazon Inspector scanning for AWS Lambda function.
Lambda Status
// The status of Amazon Inspector scanning for custom application code for Amazon
// Web Services Lambda functions.
LambdaCode Status
noSmithyDocumentSerde
}
// A resource string filter for a software bill of materials report.
type ResourceStringFilter struct {
// The filter's comparison.
//
// This member is required.
Comparison ResourceStringComparison
// The filter's value.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// The status of the scan.
type ScanStatus struct {
// The scan status. Possible return values and descriptions are:
// PENDING_INITIAL_SCAN - This resource has been identified for scanning, results
// will be available soon. ACCESS_DENIED - Resource access policy restricting
// Amazon Inspector access. Please update the IAM policy. INTERNAL_ERROR - Amazon
// Inspector has encountered an internal error for this resource. Amazon Inspector
// service will automatically resolve the issue and resume the scanning. No action
// required from the user. UNMANAGED_EC2_INSTANCE - The EC2 instance is not
// managed by SSM, please use the following SSM automation to remediate the issue:
// https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html (https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html)
// . Once the instance becomes managed by SSM, Inspector will automatically begin
// scanning this instance. UNSUPPORTED_OS - Amazon Inspector does not support this
// OS, architecture, or image manifest type at this time. To see a complete list of
// supported operating systems see:
// https://docs.aws.amazon.com/inspector/latest/user/supported.html (https://docs.aws.amazon.com/inspector/latest/user/supported.html)
// . SCAN_ELIGIBILITY_EXPIRED - The configured scan duration has lapsed for this
// image. RESOURCE_TERMINATED - This resource has been terminated. The findings
// and coverage associated with this resource are in the process of being cleaned
// up. SUCCESSFUL - The scan was successful. NO_RESOURCES_FOUND - Reserved for
// future use. IMAGE_SIZE_EXCEEDED - Reserved for future use. SCAN_FREQUENCY_MANUAL
// - This image will not be covered by Amazon Inspector due to the repository scan
// frequency configuration. SCAN_FREQUENCY_SCAN_ON_PUSH - This image will be
// scanned one time and will not new findings because of the scan frequency
// configuration. EC2_INSTANCE_STOPPED - This EC2 instance is in a stopped state,
// therefore, Amazon Inspector will pause scanning. The existing findings will
// continue to exist until the instance is terminated. Once the instance is
// re-started, Inspector will automatically start scanning the instance again.
// Please note that you will not be charged for this instance while it’s in a
// stopped state. PENDING_DISABLE - This resource is pending cleanup during
// disablement. The customer will not be billed while a resource is in the pending
// disable status. NO INVENTORY - Amazon Inspector couldn’t find software
// application inventory to scan for vulnerabilities. This might be caused due to
// required Amazon Inspector associations being deleted or failing to run on your
// resource. Please verify the status of InspectorInventoryCollection-do-not-delete
// association in the SSM console for the resource. Additionally, you can verify
// the instance’s inventory in the SSM Fleet Manager console. STALE_INVENTORY -
// Amazon Inspector wasn’t able to collect an updated software application
// inventory in the last 7 days. Please confirm the required Amazon Inspector
// associations still exist and you can still see an updated inventory in the SSM
// console. EXCLUDED_BY_TAG - This resource was not scanned because it has been
// excluded by a tag. UNSUPPORTED_RUNTIME - The function was not scanned because
// it has an unsupported runtime. To see a complete list of supported runtimes see:
// https://docs.aws.amazon.com/inspector/latest/user/supported.html (https://docs.aws.amazon.com/inspector/latest/user/supported.html)
// . UNSUPPORTED_MEDIA_TYPE - The ECR image has an unsupported media type.
// UNSUPPORTED_CONFIG_FILE - Reserved for future use.
// DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED - The instance has exceeded
// the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep
// inspection for this instance you can try to adjust the custom paths associated
// with the account. DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM
// agent couldn't send inventory to Amazon Inspector because the SSM quota for
// Inventory data collected per instance per day has already been reached for this
// instance. DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector
// failed to extract the package inventory because the package collection time
// exceeding the maximum threshold of 15 minutes. DEEP_INSPECTION_NO_INVENTORY The
// Amazon Inspector plugin hasn't yet been able to collect an inventory of packages
// for this instance. This is usually the result of a pending scan, however, if
// this status persists after 6 hours, use SSM to ensure that the required Amazon
// Inspector associations exist and are running for the instance.
//
// This member is required.
Reason ScanStatusReason
// The status code of the scan.
//
// This member is required.
StatusCode ScanStatusCode
noSmithyDocumentSerde
}
// Details on the criteria used to define the filter for a vulnerability search.
type SearchVulnerabilitiesFilterCriteria struct {
// The IDs for specific vulnerabilities.
//
// This member is required.
VulnerabilityIds []string
noSmithyDocumentSerde
}
// An object that contains the counts of aggregated finding per severity.
type SeverityCounts struct {
// The total count of findings from all severities.
All *int64
// The total count of critical severity findings.
Critical *int64
// The total count of high severity findings.
High *int64
// The total count of medium severity findings.
Medium *int64
noSmithyDocumentSerde
}
// Details about the criteria used to sort finding results.
type SortCriteria struct {
// The finding detail field by which results are sorted.
//
// This member is required.
Field SortField
// The order by which findings are sorted.
//
// This member is required.
SortOrder SortOrder
noSmithyDocumentSerde
}
// An object that described the state of Amazon Inspector scans for an account.
type State struct {
// The error code explaining why the account failed to enable Amazon Inspector.
//
// This member is required.
ErrorCode ErrorCode
// The error message received when the account failed to enable Amazon Inspector.
//
// This member is required.
ErrorMessage *string
// The status of Amazon Inspector for the account.
//
// This member is required.
Status Status
noSmithyDocumentSerde
}
// Details about the step associated with a finding.
type Step struct {
// The component ID.
//
// This member is required.
ComponentId *string
// The component type.
//
// This member is required.
ComponentType *string
noSmithyDocumentSerde
}
// An object that describes the details of a string filter.
type StringFilter struct {
// The operator to use when comparing values in the filter.
//
// This member is required.
Comparison StringComparison
// The value to filter on.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// A suggested fix for a vulnerability in your Lambda function code.
type SuggestedFix struct {
// The fix's code.
Code *string
// The fix's description.
Description *string
noSmithyDocumentSerde
}
// The details that define an aggregation based on finding title.
type TitleAggregation struct {
// The type of finding to aggregate on.
FindingType AggregationFindingType
// The resource type to aggregate on.
ResourceType AggregationResourceType
// The value to sort results by.
SortBy TitleSortBy
// The order to sort results by.
SortOrder SortOrder
// The finding titles to aggregate on.
Titles []StringFilter
// The vulnerability IDs of the findings.
VulnerabilityIds []StringFilter
noSmithyDocumentSerde
}
// A response that contains details on the results of a finding aggregation by
// title.
type TitleAggregationResponse struct {
// The title that the findings were aggregated on.
//
// This member is required.
Title *string
// The ID of the Amazon Web Services account associated with the findings.
AccountId *string
// An object that represent the count of matched findings per severity.
SeverityCounts *SeverityCounts
// The vulnerability ID of the finding.
VulnerabilityId *string
noSmithyDocumentSerde
}
// Contains usage information about the cost of Amazon Inspector operation.
type Usage struct {
// The currency type used when calculating usage data.
Currency Currency
// The estimated monthly cost of Amazon Inspector.
EstimatedMonthlyCost float64
// The total of usage.
Total float64
// The type scan.
Type UsageType
noSmithyDocumentSerde
}
// The total of usage for an account ID.
type UsageTotal struct {
// The account ID of the account that usage data was retrieved for.
AccountId *string
// An object representing the total usage for an account.
Usage []Usage
noSmithyDocumentSerde
}
// An object that describes a validation exception.
type ValidationExceptionField struct {
// The validation exception message.
//
// This member is required.
Message *string
// The name of the validation exception.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Contains details about a specific vulnerability Amazon Inspector can detect.
type Vulnerability struct {
// The ID for the specific vulnerability.
//
// This member is required.
Id *string
// An object that contains information about the Amazon Web Services Threat Intel
// Group (ATIG) details for the vulnerability.
AtigData *AtigData
// An object that contains the Cybersecurity and Infrastructure Security Agency
// (CISA) details for the vulnerability.
CisaData *CisaData
// An object that contains the Common Vulnerability Scoring System (CVSS) Version
// 2 details for the vulnerability.
Cvss2 *Cvss2
// An object that contains the Common Vulnerability Scoring System (CVSS) Version
// 3 details for the vulnerability.
Cvss3 *Cvss3
// The Common Weakness Enumeration (CWE) associated with the vulnerability.
Cwes []string
// A description of the vulnerability.
Description *string
// Platforms that the vulnerability can be detected on.
DetectionPlatforms []string
// An object that contains the Exploit Prediction Scoring System (EPSS) score for
// a vulnerability.
Epss *Epss
// An object that contains details on when the exploit was observed.
ExploitObserved *ExploitObserved
// Links to various resources with more information on this vulnerability.
ReferenceUrls []string
// A list of related vulnerabilities.
RelatedVulnerabilities []string
// The source of the vulnerability information. Possible results are RHEL ,
// AMAZON_CVE , DEBIAN or NVD .
Source VulnerabilitySource
// A link to the official source material for this vulnerability.
SourceUrl *string
// The date and time when the vendor created this vulnerability.
VendorCreatedAt *time.Time
// The severity assigned by the vendor.
VendorSeverity *string
// The date and time when the vendor last updated this vulnerability.
VendorUpdatedAt *time.Time
noSmithyDocumentSerde
}
// Information on the vulnerable package identified by a finding.
type VulnerablePackage struct {
// The name of the vulnerable package.
//
// This member is required.
Name *string
// The version of the vulnerable package.
//
// This member is required.
Version *string
// The architecture of the vulnerable package.
Arch *string
// The epoch of the vulnerable package.
Epoch int32
// The file path of the vulnerable package.
FilePath *string
// The version of the package that contains the vulnerability fix.
FixedInVersion *string
// The package manager of the vulnerable package.
PackageManager PackageManager
// The release of the vulnerable package.
Release *string
// The code to run in your environment to update packages with a fix available.
Remediation *string
// The Amazon Resource Number (ARN) of the AWS Lambda function affected by a
// finding.
SourceLambdaLayerArn *string
// The source layer hash of the vulnerable package.
SourceLayerHash *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) isAggregationRequest() {}
func (*UnknownUnionMember) isAggregationResponse() {}
|