inspector.d.ts
78.8 KB
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
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class Inspector extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Inspector.Types.ClientConfiguration)
config: Config & Inspector.Types.ClientConfiguration;
/**
* Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
*/
addAttributesToFindings(params: Inspector.Types.AddAttributesToFindingsRequest, callback?: (err: AWSError, data: Inspector.Types.AddAttributesToFindingsResponse) => void): Request<Inspector.Types.AddAttributesToFindingsResponse, AWSError>;
/**
* Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
*/
addAttributesToFindings(callback?: (err: AWSError, data: Inspector.Types.AddAttributesToFindingsResponse) => void): Request<Inspector.Types.AddAttributesToFindingsResponse, AWSError>;
/**
* Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
*/
createAssessmentTarget(params: Inspector.Types.CreateAssessmentTargetRequest, callback?: (err: AWSError, data: Inspector.Types.CreateAssessmentTargetResponse) => void): Request<Inspector.Types.CreateAssessmentTargetResponse, AWSError>;
/**
* Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
*/
createAssessmentTarget(callback?: (err: AWSError, data: Inspector.Types.CreateAssessmentTargetResponse) => void): Request<Inspector.Types.CreateAssessmentTargetResponse, AWSError>;
/**
* Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
*/
createAssessmentTemplate(params: Inspector.Types.CreateAssessmentTemplateRequest, callback?: (err: AWSError, data: Inspector.Types.CreateAssessmentTemplateResponse) => void): Request<Inspector.Types.CreateAssessmentTemplateResponse, AWSError>;
/**
* Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
*/
createAssessmentTemplate(callback?: (err: AWSError, data: Inspector.Types.CreateAssessmentTemplateResponse) => void): Request<Inspector.Types.CreateAssessmentTemplateResponse, AWSError>;
/**
* Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
*/
createExclusionsPreview(params: Inspector.Types.CreateExclusionsPreviewRequest, callback?: (err: AWSError, data: Inspector.Types.CreateExclusionsPreviewResponse) => void): Request<Inspector.Types.CreateExclusionsPreviewResponse, AWSError>;
/**
* Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.
*/
createExclusionsPreview(callback?: (err: AWSError, data: Inspector.Types.CreateExclusionsPreviewResponse) => void): Request<Inspector.Types.CreateExclusionsPreviewResponse, AWSError>;
/**
* Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.
*/
createResourceGroup(params: Inspector.Types.CreateResourceGroupRequest, callback?: (err: AWSError, data: Inspector.Types.CreateResourceGroupResponse) => void): Request<Inspector.Types.CreateResourceGroupResponse, AWSError>;
/**
* Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.
*/
createResourceGroup(callback?: (err: AWSError, data: Inspector.Types.CreateResourceGroupResponse) => void): Request<Inspector.Types.CreateResourceGroupResponse, AWSError>;
/**
* Deletes the assessment run that is specified by the ARN of the assessment run.
*/
deleteAssessmentRun(params: Inspector.Types.DeleteAssessmentRunRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the assessment run that is specified by the ARN of the assessment run.
*/
deleteAssessmentRun(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the assessment target that is specified by the ARN of the assessment target.
*/
deleteAssessmentTarget(params: Inspector.Types.DeleteAssessmentTargetRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the assessment target that is specified by the ARN of the assessment target.
*/
deleteAssessmentTarget(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the assessment template that is specified by the ARN of the assessment template.
*/
deleteAssessmentTemplate(params: Inspector.Types.DeleteAssessmentTemplateRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Deletes the assessment template that is specified by the ARN of the assessment template.
*/
deleteAssessmentTemplate(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Describes the assessment runs that are specified by the ARNs of the assessment runs.
*/
describeAssessmentRuns(params: Inspector.Types.DescribeAssessmentRunsRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeAssessmentRunsResponse) => void): Request<Inspector.Types.DescribeAssessmentRunsResponse, AWSError>;
/**
* Describes the assessment runs that are specified by the ARNs of the assessment runs.
*/
describeAssessmentRuns(callback?: (err: AWSError, data: Inspector.Types.DescribeAssessmentRunsResponse) => void): Request<Inspector.Types.DescribeAssessmentRunsResponse, AWSError>;
/**
* Describes the assessment targets that are specified by the ARNs of the assessment targets.
*/
describeAssessmentTargets(params: Inspector.Types.DescribeAssessmentTargetsRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeAssessmentTargetsResponse) => void): Request<Inspector.Types.DescribeAssessmentTargetsResponse, AWSError>;
/**
* Describes the assessment targets that are specified by the ARNs of the assessment targets.
*/
describeAssessmentTargets(callback?: (err: AWSError, data: Inspector.Types.DescribeAssessmentTargetsResponse) => void): Request<Inspector.Types.DescribeAssessmentTargetsResponse, AWSError>;
/**
* Describes the assessment templates that are specified by the ARNs of the assessment templates.
*/
describeAssessmentTemplates(params: Inspector.Types.DescribeAssessmentTemplatesRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeAssessmentTemplatesResponse) => void): Request<Inspector.Types.DescribeAssessmentTemplatesResponse, AWSError>;
/**
* Describes the assessment templates that are specified by the ARNs of the assessment templates.
*/
describeAssessmentTemplates(callback?: (err: AWSError, data: Inspector.Types.DescribeAssessmentTemplatesResponse) => void): Request<Inspector.Types.DescribeAssessmentTemplatesResponse, AWSError>;
/**
* Describes the IAM role that enables Amazon Inspector to access your AWS account.
*/
describeCrossAccountAccessRole(callback?: (err: AWSError, data: Inspector.Types.DescribeCrossAccountAccessRoleResponse) => void): Request<Inspector.Types.DescribeCrossAccountAccessRoleResponse, AWSError>;
/**
* Describes the exclusions that are specified by the exclusions' ARNs.
*/
describeExclusions(params: Inspector.Types.DescribeExclusionsRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeExclusionsResponse) => void): Request<Inspector.Types.DescribeExclusionsResponse, AWSError>;
/**
* Describes the exclusions that are specified by the exclusions' ARNs.
*/
describeExclusions(callback?: (err: AWSError, data: Inspector.Types.DescribeExclusionsResponse) => void): Request<Inspector.Types.DescribeExclusionsResponse, AWSError>;
/**
* Describes the findings that are specified by the ARNs of the findings.
*/
describeFindings(params: Inspector.Types.DescribeFindingsRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeFindingsResponse) => void): Request<Inspector.Types.DescribeFindingsResponse, AWSError>;
/**
* Describes the findings that are specified by the ARNs of the findings.
*/
describeFindings(callback?: (err: AWSError, data: Inspector.Types.DescribeFindingsResponse) => void): Request<Inspector.Types.DescribeFindingsResponse, AWSError>;
/**
* Describes the resource groups that are specified by the ARNs of the resource groups.
*/
describeResourceGroups(params: Inspector.Types.DescribeResourceGroupsRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeResourceGroupsResponse) => void): Request<Inspector.Types.DescribeResourceGroupsResponse, AWSError>;
/**
* Describes the resource groups that are specified by the ARNs of the resource groups.
*/
describeResourceGroups(callback?: (err: AWSError, data: Inspector.Types.DescribeResourceGroupsResponse) => void): Request<Inspector.Types.DescribeResourceGroupsResponse, AWSError>;
/**
* Describes the rules packages that are specified by the ARNs of the rules packages.
*/
describeRulesPackages(params: Inspector.Types.DescribeRulesPackagesRequest, callback?: (err: AWSError, data: Inspector.Types.DescribeRulesPackagesResponse) => void): Request<Inspector.Types.DescribeRulesPackagesResponse, AWSError>;
/**
* Describes the rules packages that are specified by the ARNs of the rules packages.
*/
describeRulesPackages(callback?: (err: AWSError, data: Inspector.Types.DescribeRulesPackagesResponse) => void): Request<Inspector.Types.DescribeRulesPackagesResponse, AWSError>;
/**
* Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
*/
getAssessmentReport(params: Inspector.Types.GetAssessmentReportRequest, callback?: (err: AWSError, data: Inspector.Types.GetAssessmentReportResponse) => void): Request<Inspector.Types.GetAssessmentReportResponse, AWSError>;
/**
* Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
*/
getAssessmentReport(callback?: (err: AWSError, data: Inspector.Types.GetAssessmentReportResponse) => void): Request<Inspector.Types.GetAssessmentReportResponse, AWSError>;
/**
* Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
*/
getExclusionsPreview(params: Inspector.Types.GetExclusionsPreviewRequest, callback?: (err: AWSError, data: Inspector.Types.GetExclusionsPreviewResponse) => void): Request<Inspector.Types.GetExclusionsPreviewResponse, AWSError>;
/**
* Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
*/
getExclusionsPreview(callback?: (err: AWSError, data: Inspector.Types.GetExclusionsPreviewResponse) => void): Request<Inspector.Types.GetExclusionsPreviewResponse, AWSError>;
/**
* Information about the data that is collected for the specified assessment run.
*/
getTelemetryMetadata(params: Inspector.Types.GetTelemetryMetadataRequest, callback?: (err: AWSError, data: Inspector.Types.GetTelemetryMetadataResponse) => void): Request<Inspector.Types.GetTelemetryMetadataResponse, AWSError>;
/**
* Information about the data that is collected for the specified assessment run.
*/
getTelemetryMetadata(callback?: (err: AWSError, data: Inspector.Types.GetTelemetryMetadataResponse) => void): Request<Inspector.Types.GetTelemetryMetadataResponse, AWSError>;
/**
* Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
*/
listAssessmentRunAgents(params: Inspector.Types.ListAssessmentRunAgentsRequest, callback?: (err: AWSError, data: Inspector.Types.ListAssessmentRunAgentsResponse) => void): Request<Inspector.Types.ListAssessmentRunAgentsResponse, AWSError>;
/**
* Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.
*/
listAssessmentRunAgents(callback?: (err: AWSError, data: Inspector.Types.ListAssessmentRunAgentsResponse) => void): Request<Inspector.Types.ListAssessmentRunAgentsResponse, AWSError>;
/**
* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
*/
listAssessmentRuns(params: Inspector.Types.ListAssessmentRunsRequest, callback?: (err: AWSError, data: Inspector.Types.ListAssessmentRunsResponse) => void): Request<Inspector.Types.ListAssessmentRunsResponse, AWSError>;
/**
* Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.
*/
listAssessmentRuns(callback?: (err: AWSError, data: Inspector.Types.ListAssessmentRunsResponse) => void): Request<Inspector.Types.ListAssessmentRunsResponse, AWSError>;
/**
* Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
*/
listAssessmentTargets(params: Inspector.Types.ListAssessmentTargetsRequest, callback?: (err: AWSError, data: Inspector.Types.ListAssessmentTargetsResponse) => void): Request<Inspector.Types.ListAssessmentTargetsResponse, AWSError>;
/**
* Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.
*/
listAssessmentTargets(callback?: (err: AWSError, data: Inspector.Types.ListAssessmentTargetsResponse) => void): Request<Inspector.Types.ListAssessmentTargetsResponse, AWSError>;
/**
* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
*/
listAssessmentTemplates(params: Inspector.Types.ListAssessmentTemplatesRequest, callback?: (err: AWSError, data: Inspector.Types.ListAssessmentTemplatesResponse) => void): Request<Inspector.Types.ListAssessmentTemplatesResponse, AWSError>;
/**
* Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.
*/
listAssessmentTemplates(callback?: (err: AWSError, data: Inspector.Types.ListAssessmentTemplatesResponse) => void): Request<Inspector.Types.ListAssessmentTemplatesResponse, AWSError>;
/**
* Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.
*/
listEventSubscriptions(params: Inspector.Types.ListEventSubscriptionsRequest, callback?: (err: AWSError, data: Inspector.Types.ListEventSubscriptionsResponse) => void): Request<Inspector.Types.ListEventSubscriptionsResponse, AWSError>;
/**
* Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.
*/
listEventSubscriptions(callback?: (err: AWSError, data: Inspector.Types.ListEventSubscriptionsResponse) => void): Request<Inspector.Types.ListEventSubscriptionsResponse, AWSError>;
/**
* List exclusions that are generated by the assessment run.
*/
listExclusions(params: Inspector.Types.ListExclusionsRequest, callback?: (err: AWSError, data: Inspector.Types.ListExclusionsResponse) => void): Request<Inspector.Types.ListExclusionsResponse, AWSError>;
/**
* List exclusions that are generated by the assessment run.
*/
listExclusions(callback?: (err: AWSError, data: Inspector.Types.ListExclusionsResponse) => void): Request<Inspector.Types.ListExclusionsResponse, AWSError>;
/**
* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
*/
listFindings(params: Inspector.Types.ListFindingsRequest, callback?: (err: AWSError, data: Inspector.Types.ListFindingsResponse) => void): Request<Inspector.Types.ListFindingsResponse, AWSError>;
/**
* Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.
*/
listFindings(callback?: (err: AWSError, data: Inspector.Types.ListFindingsResponse) => void): Request<Inspector.Types.ListFindingsResponse, AWSError>;
/**
* Lists all available Amazon Inspector rules packages.
*/
listRulesPackages(params: Inspector.Types.ListRulesPackagesRequest, callback?: (err: AWSError, data: Inspector.Types.ListRulesPackagesResponse) => void): Request<Inspector.Types.ListRulesPackagesResponse, AWSError>;
/**
* Lists all available Amazon Inspector rules packages.
*/
listRulesPackages(callback?: (err: AWSError, data: Inspector.Types.ListRulesPackagesResponse) => void): Request<Inspector.Types.ListRulesPackagesResponse, AWSError>;
/**
* Lists all tags associated with an assessment template.
*/
listTagsForResource(params: Inspector.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Inspector.Types.ListTagsForResourceResponse) => void): Request<Inspector.Types.ListTagsForResourceResponse, AWSError>;
/**
* Lists all tags associated with an assessment template.
*/
listTagsForResource(callback?: (err: AWSError, data: Inspector.Types.ListTagsForResourceResponse) => void): Request<Inspector.Types.ListTagsForResourceResponse, AWSError>;
/**
* Previews the agents installed on the EC2 instances that are part of the specified assessment target.
*/
previewAgents(params: Inspector.Types.PreviewAgentsRequest, callback?: (err: AWSError, data: Inspector.Types.PreviewAgentsResponse) => void): Request<Inspector.Types.PreviewAgentsResponse, AWSError>;
/**
* Previews the agents installed on the EC2 instances that are part of the specified assessment target.
*/
previewAgents(callback?: (err: AWSError, data: Inspector.Types.PreviewAgentsResponse) => void): Request<Inspector.Types.PreviewAgentsResponse, AWSError>;
/**
* Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
*/
registerCrossAccountAccessRole(params: Inspector.Types.RegisterCrossAccountAccessRoleRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
*/
registerCrossAccountAccessRole(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.
*/
removeAttributesFromFindings(params: Inspector.Types.RemoveAttributesFromFindingsRequest, callback?: (err: AWSError, data: Inspector.Types.RemoveAttributesFromFindingsResponse) => void): Request<Inspector.Types.RemoveAttributesFromFindingsResponse, AWSError>;
/**
* Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.
*/
removeAttributesFromFindings(callback?: (err: AWSError, data: Inspector.Types.RemoveAttributesFromFindingsResponse) => void): Request<Inspector.Types.RemoveAttributesFromFindingsResponse, AWSError>;
/**
* Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
*/
setTagsForResource(params: Inspector.Types.SetTagsForResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.
*/
setTagsForResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
*/
startAssessmentRun(params: Inspector.Types.StartAssessmentRunRequest, callback?: (err: AWSError, data: Inspector.Types.StartAssessmentRunResponse) => void): Request<Inspector.Types.StartAssessmentRunResponse, AWSError>;
/**
* Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
*/
startAssessmentRun(callback?: (err: AWSError, data: Inspector.Types.StartAssessmentRunResponse) => void): Request<Inspector.Types.StartAssessmentRunResponse, AWSError>;
/**
* Stops the assessment run that is specified by the ARN of the assessment run.
*/
stopAssessmentRun(params: Inspector.Types.StopAssessmentRunRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Stops the assessment run that is specified by the ARN of the assessment run.
*/
stopAssessmentRun(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
*/
subscribeToEvent(params: Inspector.Types.SubscribeToEventRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
*/
subscribeToEvent(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
*/
unsubscribeFromEvent(params: Inspector.Types.UnsubscribeFromEventRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
*/
unsubscribeFromEvent(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Updates the assessment target that is specified by the ARN of the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
*/
updateAssessmentTarget(params: Inspector.Types.UpdateAssessmentTargetRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Updates the assessment target that is specified by the ARN of the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
*/
updateAssessmentTarget(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
}
declare namespace Inspector {
export interface AddAttributesToFindingsRequest {
/**
* The ARNs that specify the findings that you want to assign attributes to.
*/
findingArns: AddRemoveAttributesFindingArnList;
/**
* The array of attributes that you want to assign to specified findings.
*/
attributes: UserAttributeList;
}
export interface AddAttributesToFindingsResponse {
/**
* Attribute details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export type AddRemoveAttributesFindingArnList = Arn[];
export interface AgentFilter {
/**
* The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
*/
agentHealths: AgentHealthList;
/**
* The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
*/
agentHealthCodes: AgentHealthCodeList;
}
export type AgentHealth = "HEALTHY"|"UNHEALTHY"|"UNKNOWN"|string;
export type AgentHealthCode = "IDLE"|"RUNNING"|"SHUTDOWN"|"UNHEALTHY"|"THROTTLED"|"UNKNOWN"|string;
export type AgentHealthCodeList = AgentHealthCode[];
export type AgentHealthList = AgentHealth[];
export type AgentId = string;
export type AgentIdList = AgentId[];
export interface AgentPreview {
/**
* The hostname of the EC2 instance on which the Amazon Inspector Agent is installed.
*/
hostname?: Hostname;
/**
* The ID of the EC2 instance where the agent is installed.
*/
agentId: AgentId;
/**
* The Auto Scaling group for the EC2 instance where the agent is installed.
*/
autoScalingGroup?: AutoScalingGroup;
/**
* The health status of the Amazon Inspector Agent.
*/
agentHealth?: AgentHealth;
/**
* The version of the Amazon Inspector Agent.
*/
agentVersion?: AgentVersion;
/**
* The operating system running on the EC2 instance on which the Amazon Inspector Agent is installed.
*/
operatingSystem?: OperatingSystem;
/**
* The kernel version of the operating system running on the EC2 instance on which the Amazon Inspector Agent is installed.
*/
kernelVersion?: KernelVersion;
/**
* The IP address of the EC2 instance on which the Amazon Inspector Agent is installed.
*/
ipv4Address?: Ipv4Address;
}
export type AgentPreviewList = AgentPreview[];
export type AgentVersion = string;
export type AmiId = string;
export type Arn = string;
export type ArnCount = number;
export type AssessmentRulesPackageArnList = Arn[];
export interface AssessmentRun {
/**
* The ARN of the assessment run.
*/
arn: Arn;
/**
* The auto-generated name for the assessment run.
*/
name: AssessmentRunName;
/**
* The ARN of the assessment template that is associated with the assessment run.
*/
assessmentTemplateArn: Arn;
/**
* The state of the assessment run.
*/
state: AssessmentRunState;
/**
* The duration of the assessment run.
*/
durationInSeconds: AssessmentRunDuration;
/**
* The rules packages selected for the assessment run.
*/
rulesPackageArns: AssessmentRulesPackageArnList;
/**
* The user-defined attributes that are assigned to every generated finding.
*/
userAttributesForFindings: UserAttributeList;
/**
* The time when StartAssessmentRun was called.
*/
createdAt: Timestamp;
/**
* The time when StartAssessmentRun was called.
*/
startedAt?: Timestamp;
/**
* The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
*/
completedAt?: Timestamp;
/**
* The last time when the assessment run's state changed.
*/
stateChangedAt: Timestamp;
/**
* A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
*/
dataCollected: Bool;
/**
* A list of the assessment run state changes.
*/
stateChanges: AssessmentRunStateChangeList;
/**
* A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
*/
notifications: AssessmentRunNotificationList;
/**
* Provides a total count of generated findings per severity.
*/
findingCounts: AssessmentRunFindingCounts;
}
export interface AssessmentRunAgent {
/**
* The AWS account of the EC2 instance where the agent is installed.
*/
agentId: AgentId;
/**
* The ARN of the assessment run that is associated with the agent.
*/
assessmentRunArn: Arn;
/**
* The current health state of the agent.
*/
agentHealth: AgentHealth;
/**
* The detailed health state of the agent.
*/
agentHealthCode: AgentHealthCode;
/**
* The description for the agent health code.
*/
agentHealthDetails?: Message;
/**
* The Auto Scaling group of the EC2 instance that is specified by the agent ID.
*/
autoScalingGroup?: AutoScalingGroup;
/**
* The Amazon Inspector application data metrics that are collected by the agent.
*/
telemetryMetadata: TelemetryMetadataList;
}
export type AssessmentRunAgentList = AssessmentRunAgent[];
export type AssessmentRunDuration = number;
export interface AssessmentRunFilter {
/**
* For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
*/
namePattern?: NamePattern;
/**
* For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
*/
states?: AssessmentRunStateList;
/**
* For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.
*/
durationRange?: DurationRange;
/**
* For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
*/
rulesPackageArns?: FilterRulesPackageArnList;
/**
* For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.
*/
startTimeRange?: TimestampRange;
/**
* For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.
*/
completionTimeRange?: TimestampRange;
/**
* For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.
*/
stateChangeTimeRange?: TimestampRange;
}
export type AssessmentRunFindingCounts = {[key: string]: FindingCount};
export type AssessmentRunList = AssessmentRun[];
export type AssessmentRunName = string;
export interface AssessmentRunNotification {
/**
* The date of the notification.
*/
date: Timestamp;
/**
* The event for which a notification is sent.
*/
event: InspectorEvent;
/**
* The message included in the notification.
*/
message?: Message;
/**
* The Boolean value that specifies whether the notification represents an error.
*/
error: Bool;
/**
* The SNS topic to which the SNS notification is sent.
*/
snsTopicArn?: Arn;
/**
* The status code of the SNS notification.
*/
snsPublishStatusCode?: AssessmentRunNotificationSnsStatusCode;
}
export type AssessmentRunNotificationList = AssessmentRunNotification[];
export type AssessmentRunNotificationSnsStatusCode = "SUCCESS"|"TOPIC_DOES_NOT_EXIST"|"ACCESS_DENIED"|"INTERNAL_ERROR"|string;
export type AssessmentRunState = "CREATED"|"START_DATA_COLLECTION_PENDING"|"START_DATA_COLLECTION_IN_PROGRESS"|"COLLECTING_DATA"|"STOP_DATA_COLLECTION_PENDING"|"DATA_COLLECTED"|"START_EVALUATING_RULES_PENDING"|"EVALUATING_RULES"|"FAILED"|"ERROR"|"COMPLETED"|"COMPLETED_WITH_ERRORS"|"CANCELED"|string;
export interface AssessmentRunStateChange {
/**
* The last time the assessment run state changed.
*/
stateChangedAt: Timestamp;
/**
* The assessment run state.
*/
state: AssessmentRunState;
}
export type AssessmentRunStateChangeList = AssessmentRunStateChange[];
export type AssessmentRunStateList = AssessmentRunState[];
export interface AssessmentTarget {
/**
* The ARN that specifies the Amazon Inspector assessment target.
*/
arn: Arn;
/**
* The name of the Amazon Inspector assessment target.
*/
name: AssessmentTargetName;
/**
* The ARN that specifies the resource group that is associated with the assessment target.
*/
resourceGroupArn?: Arn;
/**
* The time at which the assessment target is created.
*/
createdAt: Timestamp;
/**
* The time at which UpdateAssessmentTarget is called.
*/
updatedAt: Timestamp;
}
export interface AssessmentTargetFilter {
/**
* For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTargetName property of the AssessmentTarget data type.
*/
assessmentTargetNamePattern?: NamePattern;
}
export type AssessmentTargetList = AssessmentTarget[];
export type AssessmentTargetName = string;
export interface AssessmentTemplate {
/**
* The ARN of the assessment template.
*/
arn: Arn;
/**
* The name of the assessment template.
*/
name: AssessmentTemplateName;
/**
* The ARN of the assessment target that corresponds to this assessment template.
*/
assessmentTargetArn: Arn;
/**
* The duration in seconds specified for this assessment template. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
*/
durationInSeconds: AssessmentRunDuration;
/**
* The rules packages that are specified for this assessment template.
*/
rulesPackageArns: AssessmentTemplateRulesPackageArnList;
/**
* The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
*/
userAttributesForFindings: UserAttributeList;
/**
* The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template. This value exists only when the value of assessmentRunCount is greaterpa than zero.
*/
lastAssessmentRunArn?: Arn;
/**
* The number of existing assessment runs associated with this assessment template. This value can be zero or a positive integer.
*/
assessmentRunCount: ArnCount;
/**
* The time at which the assessment template is created.
*/
createdAt: Timestamp;
}
export interface AssessmentTemplateFilter {
/**
* For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.
*/
namePattern?: NamePattern;
/**
* For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.
*/
durationRange?: DurationRange;
/**
* For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
*/
rulesPackageArns?: FilterRulesPackageArnList;
}
export type AssessmentTemplateList = AssessmentTemplate[];
export type AssessmentTemplateName = string;
export type AssessmentTemplateRulesPackageArnList = Arn[];
export interface AssetAttributes {
/**
* The schema version of this data type.
*/
schemaVersion: NumericVersion;
/**
* The ID of the agent that is installed on the EC2 instance where the finding is generated.
*/
agentId?: AgentId;
/**
* The Auto Scaling group of the EC2 instance where the finding is generated.
*/
autoScalingGroup?: AutoScalingGroup;
/**
* The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
*/
amiId?: AmiId;
/**
* The hostname of the EC2 instance where the finding is generated.
*/
hostname?: Hostname;
/**
* The list of IP v4 addresses of the EC2 instance where the finding is generated.
*/
ipv4Addresses?: Ipv4AddressList;
/**
* The tags related to the EC2 instance where the finding is generated.
*/
tags?: Tags;
/**
* An array of the network interfaces interacting with the EC2 instance where the finding is generated.
*/
networkInterfaces?: NetworkInterfaces;
}
export type AssetType = "ec2-instance"|string;
export interface Attribute {
/**
* The attribute key.
*/
key: AttributeKey;
/**
* The value assigned to the attribute key.
*/
value?: AttributeValue;
}
export type AttributeKey = string;
export type AttributeList = Attribute[];
export type AttributeValue = string;
export type AutoScalingGroup = string;
export type AutoScalingGroupList = AutoScalingGroup[];
export type BatchDescribeArnList = Arn[];
export type BatchDescribeExclusionsArnList = Arn[];
export type Bool = boolean;
export interface CreateAssessmentTargetRequest {
/**
* The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.
*/
assessmentTargetName: AssessmentTargetName;
/**
* The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
*/
resourceGroupArn?: Arn;
}
export interface CreateAssessmentTargetResponse {
/**
* The ARN that specifies the assessment target that is created.
*/
assessmentTargetArn: Arn;
}
export interface CreateAssessmentTemplateRequest {
/**
* The ARN that specifies the assessment target for which you want to create the assessment template.
*/
assessmentTargetArn: Arn;
/**
* The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
*/
assessmentTemplateName: AssessmentTemplateName;
/**
* The duration of the assessment run in seconds.
*/
durationInSeconds: AssessmentRunDuration;
/**
* The ARNs that specify the rules packages that you want to attach to the assessment template.
*/
rulesPackageArns: AssessmentTemplateRulesPackageArnList;
/**
* The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.
*/
userAttributesForFindings?: UserAttributeList;
}
export interface CreateAssessmentTemplateResponse {
/**
* The ARN that specifies the assessment template that is created.
*/
assessmentTemplateArn: Arn;
}
export interface CreateExclusionsPreviewRequest {
/**
* The ARN that specifies the assessment template for which you want to create an exclusions preview.
*/
assessmentTemplateArn: Arn;
}
export interface CreateExclusionsPreviewResponse {
/**
* Specifies the unique identifier of the requested exclusions preview. You can use the unique identifier to retrieve the exclusions preview when running the GetExclusionsPreview API.
*/
previewToken: UUID;
}
export interface CreateResourceGroupRequest {
/**
* A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'. For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.
*/
resourceGroupTags: ResourceGroupTags;
}
export interface CreateResourceGroupResponse {
/**
* The ARN that specifies the resource group that is created.
*/
resourceGroupArn: Arn;
}
export interface DeleteAssessmentRunRequest {
/**
* The ARN that specifies the assessment run that you want to delete.
*/
assessmentRunArn: Arn;
}
export interface DeleteAssessmentTargetRequest {
/**
* The ARN that specifies the assessment target that you want to delete.
*/
assessmentTargetArn: Arn;
}
export interface DeleteAssessmentTemplateRequest {
/**
* The ARN that specifies the assessment template that you want to delete.
*/
assessmentTemplateArn: Arn;
}
export interface DescribeAssessmentRunsRequest {
/**
* The ARN that specifies the assessment run that you want to describe.
*/
assessmentRunArns: BatchDescribeArnList;
}
export interface DescribeAssessmentRunsResponse {
/**
* Information about the assessment run.
*/
assessmentRuns: AssessmentRunList;
/**
* Assessment run details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DescribeAssessmentTargetsRequest {
/**
* The ARNs that specifies the assessment targets that you want to describe.
*/
assessmentTargetArns: BatchDescribeArnList;
}
export interface DescribeAssessmentTargetsResponse {
/**
* Information about the assessment targets.
*/
assessmentTargets: AssessmentTargetList;
/**
* Assessment target details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DescribeAssessmentTemplatesRequest {
assessmentTemplateArns: BatchDescribeArnList;
}
export interface DescribeAssessmentTemplatesResponse {
/**
* Information about the assessment templates.
*/
assessmentTemplates: AssessmentTemplateList;
/**
* Assessment template details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DescribeCrossAccountAccessRoleResponse {
/**
* The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
*/
roleArn: Arn;
/**
* A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
*/
valid: Bool;
/**
* The date when the cross-account access role was registered.
*/
registeredAt: Timestamp;
}
export interface DescribeExclusionsRequest {
/**
* The list of ARNs that specify the exclusions that you want to describe.
*/
exclusionArns: BatchDescribeExclusionsArnList;
/**
* The locale into which you want to translate the exclusion's title, description, and recommendation.
*/
locale?: Locale;
}
export interface DescribeExclusionsResponse {
/**
* Information about the exclusions.
*/
exclusions: ExclusionMap;
/**
* Exclusion details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DescribeFindingsRequest {
/**
* The ARN that specifies the finding that you want to describe.
*/
findingArns: BatchDescribeArnList;
/**
* The locale into which you want to translate a finding description, recommendation, and the short description that identifies the finding.
*/
locale?: Locale;
}
export interface DescribeFindingsResponse {
/**
* Information about the finding.
*/
findings: FindingList;
/**
* Finding details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DescribeResourceGroupsRequest {
/**
* The ARN that specifies the resource group that you want to describe.
*/
resourceGroupArns: BatchDescribeArnList;
}
export interface DescribeResourceGroupsResponse {
/**
* Information about a resource group.
*/
resourceGroups: ResourceGroupList;
/**
* Resource group details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DescribeRulesPackagesRequest {
/**
* The ARN that specifies the rules package that you want to describe.
*/
rulesPackageArns: BatchDescribeArnList;
/**
* The locale that you want to translate a rules package description into.
*/
locale?: Locale;
}
export interface DescribeRulesPackagesResponse {
/**
* Information about the rules package.
*/
rulesPackages: RulesPackageList;
/**
* Rules package details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export interface DurationRange {
/**
* The minimum value of the duration range. Must be greater than zero.
*/
minSeconds?: AssessmentRunDuration;
/**
* The maximum value of the duration range. Must be less than or equal to 604800 seconds (1 week).
*/
maxSeconds?: AssessmentRunDuration;
}
export interface EventSubscription {
/**
* The event for which Amazon Simple Notification Service (SNS) notifications are sent.
*/
event: InspectorEvent;
/**
* The time at which SubscribeToEvent is called.
*/
subscribedAt: Timestamp;
}
export type EventSubscriptionList = EventSubscription[];
export interface Exclusion {
/**
* The ARN that specifies the exclusion.
*/
arn: Arn;
/**
* The name of the exclusion.
*/
title: Text;
/**
* The description of the exclusion.
*/
description: Text;
/**
* The recommendation for the exclusion.
*/
recommendation: Text;
/**
* The AWS resources for which the exclusion pertains.
*/
scopes: ScopeList;
/**
* The system-defined attributes for the exclusion.
*/
attributes?: AttributeList;
}
export type ExclusionMap = {[key: string]: Exclusion};
export interface ExclusionPreview {
/**
* The name of the exclusion preview.
*/
title: Text;
/**
* The description of the exclusion preview.
*/
description: Text;
/**
* The recommendation for the exclusion preview.
*/
recommendation: Text;
/**
* The AWS resources for which the exclusion preview pertains.
*/
scopes: ScopeList;
/**
* The system-defined attributes for the exclusion preview.
*/
attributes?: AttributeList;
}
export type ExclusionPreviewList = ExclusionPreview[];
export interface FailedItemDetails {
/**
* The status code of a failed item.
*/
failureCode: FailedItemErrorCode;
/**
* Indicates whether you can immediately retry a request for this item for a specified resource.
*/
retryable: Bool;
}
export type FailedItemErrorCode = "INVALID_ARN"|"DUPLICATE_ARN"|"ITEM_DOES_NOT_EXIST"|"ACCESS_DENIED"|"LIMIT_EXCEEDED"|"INTERNAL_ERROR"|string;
export type FailedItems = {[key: string]: FailedItemDetails};
export type FilterRulesPackageArnList = Arn[];
export interface Finding {
/**
* The ARN that specifies the finding.
*/
arn: Arn;
/**
* The schema version of this data type.
*/
schemaVersion?: NumericVersion;
/**
* The data element is set to "Inspector".
*/
service?: ServiceName;
/**
* This data type is used in the Finding data type.
*/
serviceAttributes?: InspectorServiceAttributes;
/**
* The type of the host from which the finding is generated.
*/
assetType?: AssetType;
/**
* A collection of attributes of the host from which the finding is generated.
*/
assetAttributes?: AssetAttributes;
/**
* The ID of the finding.
*/
id?: FindingId;
/**
* The name of the finding.
*/
title?: Text;
/**
* The description of the finding.
*/
description?: Text;
/**
* The recommendation for the finding.
*/
recommendation?: Text;
/**
* The finding severity. Values can be set to High, Medium, Low, and Informational.
*/
severity?: Severity;
/**
* The numeric value of the finding severity.
*/
numericSeverity?: NumericSeverity;
/**
* This data element is currently not used.
*/
confidence?: IocConfidence;
/**
* This data element is currently not used.
*/
indicatorOfCompromise?: Bool;
/**
* The system-defined attributes for the finding.
*/
attributes: AttributeList;
/**
* The user-defined attributes that are assigned to the finding.
*/
userAttributes: UserAttributeList;
/**
* The time when the finding was generated.
*/
createdAt: Timestamp;
/**
* The time when AddAttributesToFindings is called.
*/
updatedAt: Timestamp;
}
export type FindingCount = number;
export interface FindingFilter {
/**
* For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
*/
agentIds?: AgentIdList;
/**
* For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
*/
autoScalingGroups?: AutoScalingGroupList;
/**
* For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
*/
ruleNames?: RuleNameList;
/**
* For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
*/
severities?: SeverityList;
/**
* For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
*/
rulesPackageArns?: FilterRulesPackageArnList;
/**
* For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
*/
attributes?: AttributeList;
/**
* For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the userAttributes property of the Finding data type.
*/
userAttributes?: AttributeList;
/**
* The time range during which the finding is generated.
*/
creationTimeRange?: TimestampRange;
}
export type FindingId = string;
export type FindingList = Finding[];
export interface GetAssessmentReportRequest {
/**
* The ARN that specifies the assessment run for which you want to generate a report.
*/
assessmentRunArn: Arn;
/**
* Specifies the file format (html or pdf) of the assessment report that you want to generate.
*/
reportFileFormat: ReportFileFormat;
/**
* Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: a finding report and a full report. For more information, see Assessment Reports.
*/
reportType: ReportType;
}
export interface GetAssessmentReportResponse {
/**
* Specifies the status of the request to generate an assessment report.
*/
status: ReportStatus;
/**
* Specifies the URL where you can find the generated assessment report. This parameter is only returned if the report is successfully generated.
*/
url?: Url;
}
export interface GetExclusionsPreviewRequest {
/**
* The ARN that specifies the assessment template for which the exclusions preview was requested.
*/
assessmentTemplateArn: Arn;
/**
* The unique identifier associated of the exclusions preview.
*/
previewToken: UUID;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.
*/
maxResults?: ListMaxResults;
/**
* The locale into which you want to translate the exclusion's title, description, and recommendation.
*/
locale?: Locale;
}
export interface GetExclusionsPreviewResponse {
/**
* Specifies the status of the request to generate an exclusions preview.
*/
previewStatus: PreviewStatus;
/**
* Information about the exclusions included in the preview.
*/
exclusionPreviews?: ExclusionPreviewList;
/**
* When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface GetTelemetryMetadataRequest {
/**
* The ARN that specifies the assessment run that has the telemetry data that you want to obtain.
*/
assessmentRunArn: Arn;
}
export interface GetTelemetryMetadataResponse {
/**
* Telemetry details.
*/
telemetryMetadata: TelemetryMetadataList;
}
export type Hostname = string;
export type InspectorEvent = "ASSESSMENT_RUN_STARTED"|"ASSESSMENT_RUN_COMPLETED"|"ASSESSMENT_RUN_STATE_CHANGED"|"FINDING_REPORTED"|"OTHER"|string;
export interface InspectorServiceAttributes {
/**
* The schema version of this data type.
*/
schemaVersion: NumericVersion;
/**
* The ARN of the assessment run during which the finding is generated.
*/
assessmentRunArn?: Arn;
/**
* The ARN of the rules package that is used to generate the finding.
*/
rulesPackageArn?: Arn;
}
export type IocConfidence = number;
export type Ipv4Address = string;
export type Ipv4AddressList = Ipv4Address[];
export type Ipv6Addresses = Text[];
export type KernelVersion = string;
export interface ListAssessmentRunAgentsRequest {
/**
* The ARN that specifies the assessment run whose agents you want to list.
*/
assessmentRunArn: Arn;
/**
* You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
*/
filter?: AgentFilter;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRunAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListAssessmentRunAgentsResponse {
/**
* A list of ARNs that specifies the agents returned by the action.
*/
assessmentRunAgents: AssessmentRunAgentList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface ListAssessmentRunsRequest {
/**
* The ARNs that specify the assessment templates whose assessment runs you want to list.
*/
assessmentTemplateArns?: ListParentArnList;
/**
* You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
*/
filter?: AssessmentRunFilter;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentRuns action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListAssessmentRunsResponse {
/**
* A list of ARNs that specifies the assessment runs that are returned by the action.
*/
assessmentRunArns: ListReturnedArnList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface ListAssessmentTargetsRequest {
/**
* You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
*/
filter?: AssessmentTargetFilter;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTargets action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListAssessmentTargetsResponse {
/**
* A list of ARNs that specifies the assessment targets that are returned by the action.
*/
assessmentTargetArns: ListReturnedArnList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface ListAssessmentTemplatesRequest {
/**
* A list of ARNs that specifies the assessment targets whose assessment templates you want to list.
*/
assessmentTargetArns?: ListParentArnList;
/**
* You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
*/
filter?: AssessmentTemplateFilter;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListAssessmentTemplates action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListAssessmentTemplatesResponse {
/**
* A list of ARNs that specifies the assessment templates returned by the action.
*/
assessmentTemplateArns: ListReturnedArnList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export type ListEventSubscriptionsMaxResults = number;
export interface ListEventSubscriptionsRequest {
/**
* The ARN of the assessment template for which you want to list the existing event subscriptions.
*/
resourceArn?: Arn;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListEventSubscriptions action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListEventSubscriptionsMaxResults;
}
export interface ListEventSubscriptionsResponse {
/**
* Details of the returned event subscriptions.
*/
subscriptions: SubscriptionList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface ListExclusionsRequest {
/**
* The ARN of the assessment run that generated the exclusions that you want to list.
*/
assessmentRunArn: Arn;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListExclusionsRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListExclusionsResponse {
/**
* A list of exclusions' ARNs returned by the action.
*/
exclusionArns: ListReturnedArnList;
/**
* When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface ListFindingsRequest {
/**
* The ARNs of the assessment runs that generate the findings that you want to list.
*/
assessmentRunArns?: ListParentArnList;
/**
* You can use this parameter to specify a subset of data to be included in the action's response. For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.
*/
filter?: FindingFilter;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListFindings action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListFindingsResponse {
/**
* A list of ARNs that specifies the findings returned by the action.
*/
findingArns: ListReturnedArnList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export type ListMaxResults = number;
export type ListParentArnList = Arn[];
export type ListReturnedArnList = Arn[];
export interface ListRulesPackagesRequest {
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListRulesPackages action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: ListMaxResults;
}
export interface ListRulesPackagesResponse {
/**
* The list of ARNs that specifies the rules packages returned by the action.
*/
rulesPackageArns: ListReturnedArnList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export interface ListTagsForResourceRequest {
/**
* The ARN that specifies the assessment template whose tags you want to list.
*/
resourceArn: Arn;
}
export interface ListTagsForResourceResponse {
/**
* A collection of key and value pairs.
*/
tags: TagList;
}
export type Locale = "EN_US"|string;
export type Long = number;
export type Message = string;
export type MessageType = string;
export type NamePattern = string;
export interface NetworkInterface {
/**
* The ID of the network interface.
*/
networkInterfaceId?: Text;
/**
* The ID of a subnet associated with the network interface.
*/
subnetId?: Text;
/**
* The ID of a VPC associated with the network interface.
*/
vpcId?: Text;
/**
* The name of a private DNS associated with the network interface.
*/
privateDnsName?: Text;
/**
* The private IP address associated with the network interface.
*/
privateIpAddress?: Text;
/**
* A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.
*/
privateIpAddresses?: PrivateIpAddresses;
/**
* The name of a public DNS associated with the network interface.
*/
publicDnsName?: Text;
/**
* The public IP address from which the network interface is reachable.
*/
publicIp?: Text;
/**
* The IP addresses associated with the network interface.
*/
ipv6Addresses?: Ipv6Addresses;
/**
* A list of the security groups associated with the network interface. Includes the groupId and groupName.
*/
securityGroups?: SecurityGroups;
}
export type NetworkInterfaces = NetworkInterface[];
export type NumericSeverity = number;
export type NumericVersion = number;
export type OperatingSystem = string;
export type PaginationToken = string;
export type PreviewAgentsMaxResults = number;
export interface PreviewAgentsRequest {
/**
* The ARN of the assessment target whose agents you want to preview.
*/
previewAgentsArn: Arn;
/**
* You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
*/
nextToken?: PaginationToken;
/**
* You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
*/
maxResults?: PreviewAgentsMaxResults;
}
export interface PreviewAgentsResponse {
/**
* The resulting list of agents.
*/
agentPreviews: AgentPreviewList;
/**
* When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
*/
nextToken?: PaginationToken;
}
export type PreviewStatus = "WORK_IN_PROGRESS"|"COMPLETED"|string;
export interface PrivateIp {
/**
* The DNS name of the private IP address.
*/
privateDnsName?: Text;
/**
* The full IP address of the network inteface.
*/
privateIpAddress?: Text;
}
export type PrivateIpAddresses = PrivateIp[];
export type ProviderName = string;
export interface RegisterCrossAccountAccessRoleRequest {
/**
* The ARN of the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.
*/
roleArn: Arn;
}
export interface RemoveAttributesFromFindingsRequest {
/**
* The ARNs that specify the findings that you want to remove attributes from.
*/
findingArns: AddRemoveAttributesFindingArnList;
/**
* The array of attribute keys that you want to remove from specified findings.
*/
attributeKeys: UserAttributeKeyList;
}
export interface RemoveAttributesFromFindingsResponse {
/**
* Attributes details that cannot be described. An error code is provided for each failed item.
*/
failedItems: FailedItems;
}
export type ReportFileFormat = "HTML"|"PDF"|string;
export type ReportStatus = "WORK_IN_PROGRESS"|"FAILED"|"COMPLETED"|string;
export type ReportType = "FINDING"|"FULL"|string;
export interface ResourceGroup {
/**
* The ARN of the resource group.
*/
arn: Arn;
/**
* The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
*/
tags: ResourceGroupTags;
/**
* The time at which resource group is created.
*/
createdAt: Timestamp;
}
export type ResourceGroupList = ResourceGroup[];
export interface ResourceGroupTag {
/**
* A tag key.
*/
key: TagKey;
/**
* The value assigned to a tag key.
*/
value?: TagValue;
}
export type ResourceGroupTags = ResourceGroupTag[];
export type RuleName = string;
export type RuleNameList = RuleName[];
export interface RulesPackage {
/**
* The ARN of the rules package.
*/
arn: Arn;
/**
* The name of the rules package.
*/
name: RulesPackageName;
/**
* The version ID of the rules package.
*/
version: Version;
/**
* The provider of the rules package.
*/
provider: ProviderName;
/**
* The description of the rules package.
*/
description?: Text;
}
export type RulesPackageList = RulesPackage[];
export type RulesPackageName = string;
export interface Scope {
/**
* The type of the scope.
*/
key?: ScopeType;
/**
* The resource identifier for the specified scope type.
*/
value?: ScopeValue;
}
export type ScopeList = Scope[];
export type ScopeType = "INSTANCE_ID"|"RULES_PACKAGE_ARN"|string;
export type ScopeValue = string;
export interface SecurityGroup {
/**
* The name of the security group.
*/
groupName?: Text;
/**
* The ID of the security group.
*/
groupId?: Text;
}
export type SecurityGroups = SecurityGroup[];
export type ServiceName = string;
export interface SetTagsForResourceRequest {
/**
* The ARN of the assessment template that you want to set tags to.
*/
resourceArn: Arn;
/**
* A collection of key and value pairs that you want to set to the assessment template.
*/
tags?: TagList;
}
export type Severity = "Low"|"Medium"|"High"|"Informational"|"Undefined"|string;
export type SeverityList = Severity[];
export interface StartAssessmentRunRequest {
/**
* The ARN of the assessment template of the assessment run that you want to start.
*/
assessmentTemplateArn: Arn;
/**
* You can specify the name for the assessment run. The name must be unique for the assessment template whose ARN is used to start the assessment run.
*/
assessmentRunName?: AssessmentRunName;
}
export interface StartAssessmentRunResponse {
/**
* The ARN of the assessment run that has been started.
*/
assessmentRunArn: Arn;
}
export type StopAction = "START_EVALUATION"|"SKIP_EVALUATION"|string;
export interface StopAssessmentRunRequest {
/**
* The ARN of the assessment run that you want to stop.
*/
assessmentRunArn: Arn;
/**
* An input option that can be set to either START_EVALUATION or SKIP_EVALUATION. START_EVALUATION (the default value), stops the AWS agent from collecting data and begins the results evaluation and the findings generation process. SKIP_EVALUATION cancels the assessment run immediately, after which no findings are generated.
*/
stopAction?: StopAction;
}
export interface SubscribeToEventRequest {
/**
* The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
*/
resourceArn: Arn;
/**
* The event for which you want to receive SNS notifications.
*/
event: InspectorEvent;
/**
* The ARN of the SNS topic to which the SNS notifications are sent.
*/
topicArn: Arn;
}
export interface Subscription {
/**
* The ARN of the assessment template that is used during the event for which the SNS notification is sent.
*/
resourceArn: Arn;
/**
* The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
*/
topicArn: Arn;
/**
* The list of existing event subscriptions.
*/
eventSubscriptions: EventSubscriptionList;
}
export type SubscriptionList = Subscription[];
export interface Tag {
/**
* A tag key.
*/
key: TagKey;
/**
* A value assigned to a tag key.
*/
value?: TagValue;
}
export type TagKey = string;
export type TagList = Tag[];
export type TagValue = string;
export type Tags = Tag[];
export interface TelemetryMetadata {
/**
* A specific type of behavioral data that is collected by the agent.
*/
messageType: MessageType;
/**
* The count of messages that the agent sends to the Amazon Inspector service.
*/
count: Long;
/**
* The data size of messages that the agent sends to the Amazon Inspector service.
*/
dataSize?: Long;
}
export type TelemetryMetadataList = TelemetryMetadata[];
export type Text = string;
export type Timestamp = Date;
export interface TimestampRange {
/**
* The minimum value of the timestamp range.
*/
beginDate?: Timestamp;
/**
* The maximum value of the timestamp range.
*/
endDate?: Timestamp;
}
export type UUID = string;
export interface UnsubscribeFromEventRequest {
/**
* The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.
*/
resourceArn: Arn;
/**
* The event for which you want to stop receiving SNS notifications.
*/
event: InspectorEvent;
/**
* The ARN of the SNS topic to which SNS notifications are sent.
*/
topicArn: Arn;
}
export interface UpdateAssessmentTargetRequest {
/**
* The ARN of the assessment target that you want to update.
*/
assessmentTargetArn: Arn;
/**
* The name of the assessment target that you want to update.
*/
assessmentTargetName: AssessmentTargetName;
/**
* The ARN of the resource group that is used to specify the new resource group to associate with the assessment target.
*/
resourceGroupArn?: Arn;
}
export type Url = string;
export type UserAttributeKeyList = AttributeKey[];
export type UserAttributeList = Attribute[];
export type Version = string;
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2015-08-18"|"2016-02-16"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Inspector client.
*/
export import Types = Inspector;
}
export = Inspector;