@aws-sdk/client-guardduty 3.301.0 → 3.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +25 -10
  2. package/dist-cjs/GuardDuty.js +30 -0
  3. package/dist-cjs/commands/GetCoverageStatisticsCommand.js +45 -0
  4. package/dist-cjs/commands/ListCoverageCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +205 -198
  7. package/dist-cjs/pagination/ListCoveragePaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +462 -3
  10. package/dist-es/GuardDuty.js +30 -0
  11. package/dist-es/commands/GetCoverageStatisticsCommand.js +41 -0
  12. package/dist-es/commands/ListCoverageCommand.js +41 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +204 -197
  15. package/dist-es/pagination/ListCoveragePaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +455 -0
  18. package/dist-types/GuardDuty.d.ts +75 -47
  19. package/dist-types/GuardDutyClient.d.ts +13 -12
  20. package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +2 -1
  21. package/dist-types/commands/ArchiveFindingsCommand.d.ts +2 -2
  22. package/dist-types/commands/CreateDetectorCommand.d.ts +7 -1
  23. package/dist-types/commands/CreateMembersCommand.d.ts +3 -3
  24. package/dist-types/commands/CreateThreatIntelSetCommand.d.ts +2 -2
  25. package/dist-types/commands/DeclineInvitationsCommand.d.ts +2 -2
  26. package/dist-types/commands/DeleteInvitationsCommand.d.ts +2 -2
  27. package/dist-types/commands/DeleteMembersCommand.d.ts +5 -4
  28. package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +3 -2
  29. package/dist-types/commands/DisassociateMembersCommand.d.ts +5 -3
  30. package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +90 -0
  31. package/dist-types/commands/GetMembersCommand.d.ts +2 -2
  32. package/dist-types/commands/GetRemainingFreeTrialDaysCommand.d.ts +2 -1
  33. package/dist-types/commands/InviteMembersCommand.d.ts +2 -2
  34. package/dist-types/commands/ListCoverageCommand.d.ts +93 -0
  35. package/dist-types/commands/ListIPSetsCommand.d.ts +2 -2
  36. package/dist-types/commands/ListMembersCommand.d.ts +2 -1
  37. package/dist-types/commands/ListThreatIntelSetsCommand.d.ts +2 -2
  38. package/dist-types/commands/StartMonitoringMembersCommand.d.ts +1 -2
  39. package/dist-types/commands/StopMonitoringMembersCommand.d.ts +3 -2
  40. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  41. package/dist-types/commands/UpdateDetectorCommand.d.ts +8 -2
  42. package/dist-types/commands/UpdateFilterCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateIPSetCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateMemberDetectorsCommand.d.ts +8 -2
  47. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -4
  48. package/dist-types/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateThreatIntelSetCommand.d.ts +1 -2
  50. package/dist-types/commands/index.d.ts +2 -0
  51. package/dist-types/models/models_0.d.ts +1105 -691
  52. package/dist-types/models/models_1.d.ts +472 -0
  53. package/dist-types/pagination/ListCoveragePaginator.d.ts +7 -0
  54. package/dist-types/pagination/index.d.ts +1 -0
  55. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  56. package/dist-types/ts3.4/GuardDuty.d.ts +34 -0
  57. package/dist-types/ts3.4/GuardDutyClient.d.ts +12 -0
  58. package/dist-types/ts3.4/commands/GetCoverageStatisticsCommand.d.ts +41 -0
  59. package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +34 -0
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/UpdateDetectorCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateMemberDetectorsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/UpdateThreatIntelSetCommand.d.ts +4 -2
  70. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  71. package/dist-types/ts3.4/models/models_0.d.ts +396 -272
  72. package/dist-types/ts3.4/models/models_1.d.ts +133 -0
  73. package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  76. package/package.json +34 -34
@@ -25,6 +25,7 @@ import { DisassociateFromMasterAccountCommand, } from "./commands/DisassociateFr
25
25
  import { DisassociateMembersCommand, } from "./commands/DisassociateMembersCommand";
26
26
  import { EnableOrganizationAdminAccountCommand, } from "./commands/EnableOrganizationAdminAccountCommand";
27
27
  import { GetAdministratorAccountCommand, } from "./commands/GetAdministratorAccountCommand";
28
+ import { GetCoverageStatisticsCommand, } from "./commands/GetCoverageStatisticsCommand";
28
29
  import { GetDetectorCommand } from "./commands/GetDetectorCommand";
29
30
  import { GetFilterCommand } from "./commands/GetFilterCommand";
30
31
  import { GetFindingsCommand } from "./commands/GetFindingsCommand";
@@ -39,6 +40,7 @@ import { GetRemainingFreeTrialDaysCommand, } from "./commands/GetRemainingFreeTr
39
40
  import { GetThreatIntelSetCommand, } from "./commands/GetThreatIntelSetCommand";
40
41
  import { GetUsageStatisticsCommand, } from "./commands/GetUsageStatisticsCommand";
41
42
  import { InviteMembersCommand, } from "./commands/InviteMembersCommand";
43
+ import { ListCoverageCommand, } from "./commands/ListCoverageCommand";
42
44
  import { ListDetectorsCommand, } from "./commands/ListDetectorsCommand";
43
45
  import { ListFiltersCommand } from "./commands/ListFiltersCommand";
44
46
  import { ListFindingsCommand, } from "./commands/ListFindingsCommand";
@@ -443,6 +445,20 @@ export class GuardDuty extends GuardDutyClient {
443
445
  return this.send(command, optionsOrCb);
444
446
  }
445
447
  }
448
+ getCoverageStatistics(args, optionsOrCb, cb) {
449
+ const command = new GetCoverageStatisticsCommand(args);
450
+ if (typeof optionsOrCb === "function") {
451
+ this.send(command, optionsOrCb);
452
+ }
453
+ else if (typeof cb === "function") {
454
+ if (typeof optionsOrCb !== "object")
455
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
+ this.send(command, optionsOrCb || {}, cb);
457
+ }
458
+ else {
459
+ return this.send(command, optionsOrCb);
460
+ }
461
+ }
446
462
  getDetector(args, optionsOrCb, cb) {
447
463
  const command = new GetDetectorCommand(args);
448
464
  if (typeof optionsOrCb === "function") {
@@ -639,6 +655,20 @@ export class GuardDuty extends GuardDutyClient {
639
655
  return this.send(command, optionsOrCb);
640
656
  }
641
657
  }
658
+ listCoverage(args, optionsOrCb, cb) {
659
+ const command = new ListCoverageCommand(args);
660
+ if (typeof optionsOrCb === "function") {
661
+ this.send(command, optionsOrCb);
662
+ }
663
+ else if (typeof cb === "function") {
664
+ if (typeof optionsOrCb !== "object")
665
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
666
+ this.send(command, optionsOrCb || {}, cb);
667
+ }
668
+ else {
669
+ return this.send(command, optionsOrCb);
670
+ }
671
+ }
642
672
  listDetectors(args, optionsOrCb, cb) {
643
673
  const command = new ListDetectorsCommand(args);
644
674
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { deserializeAws_restJson1GetCoverageStatisticsCommand, serializeAws_restJson1GetCoverageStatisticsCommand, } from "../protocols/Aws_restJson1";
5
+ export class GetCoverageStatisticsCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetCoverageStatisticsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "GuardDutyClient";
24
+ const commandName = "GetCoverageStatisticsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return serializeAws_restJson1GetCoverageStatisticsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return deserializeAws_restJson1GetCoverageStatisticsCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { deserializeAws_restJson1ListCoverageCommand, serializeAws_restJson1ListCoverageCommand, } from "../protocols/Aws_restJson1";
5
+ export class ListCoverageCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListCoverageCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "GuardDutyClient";
24
+ const commandName = "ListCoverageCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return serializeAws_restJson1ListCoverageCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return deserializeAws_restJson1ListCoverageCommand(output, context);
40
+ }
41
+ }
@@ -25,6 +25,7 @@ export * from "./DisassociateFromMasterAccountCommand";
25
25
  export * from "./DisassociateMembersCommand";
26
26
  export * from "./EnableOrganizationAdminAccountCommand";
27
27
  export * from "./GetAdministratorAccountCommand";
28
+ export * from "./GetCoverageStatisticsCommand";
28
29
  export * from "./GetDetectorCommand";
29
30
  export * from "./GetFilterCommand";
30
31
  export * from "./GetFindingsCommand";
@@ -39,6 +40,7 @@ export * from "./GetRemainingFreeTrialDaysCommand";
39
40
  export * from "./GetThreatIntelSetCommand";
40
41
  export * from "./GetUsageStatisticsCommand";
41
42
  export * from "./InviteMembersCommand";
43
+ export * from "./ListCoverageCommand";
42
44
  export * from "./ListDetectorsCommand";
43
45
  export * from "./ListFiltersCommand";
44
46
  export * from "./ListFindingsCommand";
@@ -27,200 +27,207 @@ export class InternalServerErrorException extends __BaseException {
27
27
  this.Type = opts.Type;
28
28
  }
29
29
  }
30
- export var FreeTrialFeatureResult;
31
- (function (FreeTrialFeatureResult) {
32
- FreeTrialFeatureResult["CLOUD_TRAIL"] = "CLOUD_TRAIL";
33
- FreeTrialFeatureResult["DNS_LOGS"] = "DNS_LOGS";
34
- FreeTrialFeatureResult["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
35
- FreeTrialFeatureResult["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
36
- FreeTrialFeatureResult["FLOW_LOGS"] = "FLOW_LOGS";
37
- FreeTrialFeatureResult["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
38
- FreeTrialFeatureResult["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
39
- })(FreeTrialFeatureResult || (FreeTrialFeatureResult = {}));
40
- export var AdminStatus;
41
- (function (AdminStatus) {
42
- AdminStatus["DISABLE_IN_PROGRESS"] = "DISABLE_IN_PROGRESS";
43
- AdminStatus["ENABLED"] = "ENABLED";
44
- })(AdminStatus || (AdminStatus = {}));
45
- export var AutoEnableMembers;
46
- (function (AutoEnableMembers) {
47
- AutoEnableMembers["ALL"] = "ALL";
48
- AutoEnableMembers["NEW"] = "NEW";
49
- AutoEnableMembers["NONE"] = "NONE";
50
- })(AutoEnableMembers || (AutoEnableMembers = {}));
51
- export var DataSourceStatus;
52
- (function (DataSourceStatus) {
53
- DataSourceStatus["DISABLED"] = "DISABLED";
54
- DataSourceStatus["ENABLED"] = "ENABLED";
55
- })(DataSourceStatus || (DataSourceStatus = {}));
56
- export var DetectorFeature;
57
- (function (DetectorFeature) {
58
- DetectorFeature["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
59
- DetectorFeature["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
60
- DetectorFeature["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
61
- DetectorFeature["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
62
- })(DetectorFeature || (DetectorFeature = {}));
63
- export var FeatureStatus;
64
- (function (FeatureStatus) {
65
- FeatureStatus["DISABLED"] = "DISABLED";
66
- FeatureStatus["ENABLED"] = "ENABLED";
67
- })(FeatureStatus || (FeatureStatus = {}));
68
- export var FindingPublishingFrequency;
69
- (function (FindingPublishingFrequency) {
70
- FindingPublishingFrequency["FIFTEEN_MINUTES"] = "FIFTEEN_MINUTES";
71
- FindingPublishingFrequency["ONE_HOUR"] = "ONE_HOUR";
72
- FindingPublishingFrequency["SIX_HOURS"] = "SIX_HOURS";
73
- })(FindingPublishingFrequency || (FindingPublishingFrequency = {}));
74
- export var FilterAction;
75
- (function (FilterAction) {
76
- FilterAction["ARCHIVE"] = "ARCHIVE";
77
- FilterAction["NOOP"] = "NOOP";
78
- })(FilterAction || (FilterAction = {}));
79
- export var IpSetFormat;
80
- (function (IpSetFormat) {
81
- IpSetFormat["ALIEN_VAULT"] = "ALIEN_VAULT";
82
- IpSetFormat["FIRE_EYE"] = "FIRE_EYE";
83
- IpSetFormat["OTX_CSV"] = "OTX_CSV";
84
- IpSetFormat["PROOF_POINT"] = "PROOF_POINT";
85
- IpSetFormat["STIX"] = "STIX";
86
- IpSetFormat["TXT"] = "TXT";
87
- })(IpSetFormat || (IpSetFormat = {}));
88
- export var DestinationType;
89
- (function (DestinationType) {
90
- DestinationType["S3"] = "S3";
91
- })(DestinationType || (DestinationType = {}));
92
- export var ThreatIntelSetFormat;
93
- (function (ThreatIntelSetFormat) {
94
- ThreatIntelSetFormat["ALIEN_VAULT"] = "ALIEN_VAULT";
95
- ThreatIntelSetFormat["FIRE_EYE"] = "FIRE_EYE";
96
- ThreatIntelSetFormat["OTX_CSV"] = "OTX_CSV";
97
- ThreatIntelSetFormat["PROOF_POINT"] = "PROOF_POINT";
98
- ThreatIntelSetFormat["STIX"] = "STIX";
99
- ThreatIntelSetFormat["TXT"] = "TXT";
100
- })(ThreatIntelSetFormat || (ThreatIntelSetFormat = {}));
101
- export var CriterionKey;
102
- (function (CriterionKey) {
103
- CriterionKey["ACCOUNT_ID"] = "ACCOUNT_ID";
104
- CriterionKey["EC2_INSTANCE_ARN"] = "EC2_INSTANCE_ARN";
105
- CriterionKey["GUARDDUTY_FINDING_ID"] = "GUARDDUTY_FINDING_ID";
106
- CriterionKey["SCAN_ID"] = "SCAN_ID";
107
- CriterionKey["SCAN_START_TIME"] = "SCAN_START_TIME";
108
- CriterionKey["SCAN_STATUS"] = "SCAN_STATUS";
109
- })(CriterionKey || (CriterionKey = {}));
110
- export var DataSource;
111
- (function (DataSource) {
112
- DataSource["CLOUD_TRAIL"] = "CLOUD_TRAIL";
113
- DataSource["DNS_LOGS"] = "DNS_LOGS";
114
- DataSource["EC2_MALWARE_SCAN"] = "EC2_MALWARE_SCAN";
115
- DataSource["FLOW_LOGS"] = "FLOW_LOGS";
116
- DataSource["KUBERNETES_AUDIT_LOGS"] = "KUBERNETES_AUDIT_LOGS";
117
- DataSource["S3_LOGS"] = "S3_LOGS";
118
- })(DataSource || (DataSource = {}));
119
- export var OrderBy;
120
- (function (OrderBy) {
121
- OrderBy["ASC"] = "ASC";
122
- OrderBy["DESC"] = "DESC";
123
- })(OrderBy || (OrderBy = {}));
124
- export var ScanResult;
125
- (function (ScanResult) {
126
- ScanResult["CLEAN"] = "CLEAN";
127
- ScanResult["INFECTED"] = "INFECTED";
128
- })(ScanResult || (ScanResult = {}));
129
- export var ScanStatus;
130
- (function (ScanStatus) {
131
- ScanStatus["COMPLETED"] = "COMPLETED";
132
- ScanStatus["FAILED"] = "FAILED";
133
- ScanStatus["RUNNING"] = "RUNNING";
134
- })(ScanStatus || (ScanStatus = {}));
135
- export var OrgFeatureStatus;
136
- (function (OrgFeatureStatus) {
137
- OrgFeatureStatus["NEW"] = "NEW";
138
- OrgFeatureStatus["NONE"] = "NONE";
139
- })(OrgFeatureStatus || (OrgFeatureStatus = {}));
140
- export var OrgFeature;
141
- (function (OrgFeature) {
142
- OrgFeature["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
143
- OrgFeature["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
144
- OrgFeature["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
145
- OrgFeature["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
146
- })(OrgFeature || (OrgFeature = {}));
147
- export var PublishingStatus;
148
- (function (PublishingStatus) {
149
- PublishingStatus["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
150
- PublishingStatus["PUBLISHING"] = "PUBLISHING";
151
- PublishingStatus["STOPPED"] = "STOPPED";
152
- PublishingStatus["UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY"] = "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY";
153
- })(PublishingStatus || (PublishingStatus = {}));
154
- export var DetectorFeatureResult;
155
- (function (DetectorFeatureResult) {
156
- DetectorFeatureResult["CLOUD_TRAIL"] = "CLOUD_TRAIL";
157
- DetectorFeatureResult["DNS_LOGS"] = "DNS_LOGS";
158
- DetectorFeatureResult["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
159
- DetectorFeatureResult["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
160
- DetectorFeatureResult["FLOW_LOGS"] = "FLOW_LOGS";
161
- DetectorFeatureResult["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
162
- DetectorFeatureResult["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
163
- })(DetectorFeatureResult || (DetectorFeatureResult = {}));
164
- export var DetectorStatus;
165
- (function (DetectorStatus) {
166
- DetectorStatus["DISABLED"] = "DISABLED";
167
- DetectorStatus["ENABLED"] = "ENABLED";
168
- })(DetectorStatus || (DetectorStatus = {}));
169
- export var EbsSnapshotPreservation;
170
- (function (EbsSnapshotPreservation) {
171
- EbsSnapshotPreservation["NO_RETENTION"] = "NO_RETENTION";
172
- EbsSnapshotPreservation["RETENTION_WITH_FINDING"] = "RETENTION_WITH_FINDING";
173
- })(EbsSnapshotPreservation || (EbsSnapshotPreservation = {}));
174
- export var Feedback;
175
- (function (Feedback) {
176
- Feedback["NOT_USEFUL"] = "NOT_USEFUL";
177
- Feedback["USEFUL"] = "USEFUL";
178
- })(Feedback || (Feedback = {}));
179
- export var FindingStatisticType;
180
- (function (FindingStatisticType) {
181
- FindingStatisticType["COUNT_BY_SEVERITY"] = "COUNT_BY_SEVERITY";
182
- })(FindingStatisticType || (FindingStatisticType = {}));
183
- export var IpSetStatus;
184
- (function (IpSetStatus) {
185
- IpSetStatus["ACTIVATING"] = "ACTIVATING";
186
- IpSetStatus["ACTIVE"] = "ACTIVE";
187
- IpSetStatus["DEACTIVATING"] = "DEACTIVATING";
188
- IpSetStatus["DELETED"] = "DELETED";
189
- IpSetStatus["DELETE_PENDING"] = "DELETE_PENDING";
190
- IpSetStatus["ERROR"] = "ERROR";
191
- IpSetStatus["INACTIVE"] = "INACTIVE";
192
- })(IpSetStatus || (IpSetStatus = {}));
193
- export var ScanCriterionKey;
194
- (function (ScanCriterionKey) {
195
- ScanCriterionKey["EC2_INSTANCE_TAG"] = "EC2_INSTANCE_TAG";
196
- })(ScanCriterionKey || (ScanCriterionKey = {}));
197
- export var ThreatIntelSetStatus;
198
- (function (ThreatIntelSetStatus) {
199
- ThreatIntelSetStatus["ACTIVATING"] = "ACTIVATING";
200
- ThreatIntelSetStatus["ACTIVE"] = "ACTIVE";
201
- ThreatIntelSetStatus["DEACTIVATING"] = "DEACTIVATING";
202
- ThreatIntelSetStatus["DELETED"] = "DELETED";
203
- ThreatIntelSetStatus["DELETE_PENDING"] = "DELETE_PENDING";
204
- ThreatIntelSetStatus["ERROR"] = "ERROR";
205
- ThreatIntelSetStatus["INACTIVE"] = "INACTIVE";
206
- })(ThreatIntelSetStatus || (ThreatIntelSetStatus = {}));
207
- export var UsageFeature;
208
- (function (UsageFeature) {
209
- UsageFeature["CLOUD_TRAIL"] = "CLOUD_TRAIL";
210
- UsageFeature["DNS_LOGS"] = "DNS_LOGS";
211
- UsageFeature["EBS_MALWARE_PROTECTION"] = "EBS_MALWARE_PROTECTION";
212
- UsageFeature["EKS_AUDIT_LOGS"] = "EKS_AUDIT_LOGS";
213
- UsageFeature["EKS_RUNTIME_MONITORING"] = "EKS_RUNTIME_MONITORING";
214
- UsageFeature["FLOW_LOGS"] = "FLOW_LOGS";
215
- UsageFeature["LAMBDA_NETWORK_LOGS"] = "LAMBDA_NETWORK_LOGS";
216
- UsageFeature["RDS_LOGIN_EVENTS"] = "RDS_LOGIN_EVENTS";
217
- UsageFeature["S3_DATA_EVENTS"] = "S3_DATA_EVENTS";
218
- })(UsageFeature || (UsageFeature = {}));
219
- export var UsageStatisticType;
220
- (function (UsageStatisticType) {
221
- UsageStatisticType["SUM_BY_ACCOUNT"] = "SUM_BY_ACCOUNT";
222
- UsageStatisticType["SUM_BY_DATA_SOURCE"] = "SUM_BY_DATA_SOURCE";
223
- UsageStatisticType["SUM_BY_FEATURES"] = "SUM_BY_FEATURES";
224
- UsageStatisticType["SUM_BY_RESOURCE"] = "SUM_BY_RESOURCE";
225
- UsageStatisticType["TOP_RESOURCES"] = "TOP_RESOURCES";
226
- })(UsageStatisticType || (UsageStatisticType = {}));
30
+ export const FreeTrialFeatureResult = {
31
+ CLOUD_TRAIL: "CLOUD_TRAIL",
32
+ DNS_LOGS: "DNS_LOGS",
33
+ EBS_MALWARE_PROTECTION: "EBS_MALWARE_PROTECTION",
34
+ EKS_AUDIT_LOGS: "EKS_AUDIT_LOGS",
35
+ EKS_RUNTIME_MONITORING: "EKS_RUNTIME_MONITORING",
36
+ FLOW_LOGS: "FLOW_LOGS",
37
+ RDS_LOGIN_EVENTS: "RDS_LOGIN_EVENTS",
38
+ S3_DATA_EVENTS: "S3_DATA_EVENTS",
39
+ };
40
+ export const AdminStatus = {
41
+ DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS",
42
+ ENABLED: "ENABLED",
43
+ };
44
+ export const AutoEnableMembers = {
45
+ ALL: "ALL",
46
+ NEW: "NEW",
47
+ NONE: "NONE",
48
+ };
49
+ export const DataSourceStatus = {
50
+ DISABLED: "DISABLED",
51
+ ENABLED: "ENABLED",
52
+ };
53
+ export const CoverageStatus = {
54
+ HEALTHY: "HEALTHY",
55
+ UNHEALTHY: "UNHEALTHY",
56
+ };
57
+ export const ResourceType = {
58
+ EKS: "EKS",
59
+ };
60
+ export const CoverageFilterCriterionKey = {
61
+ ACCOUNT_ID: "ACCOUNT_ID",
62
+ ADDON_VERSION: "ADDON_VERSION",
63
+ CLUSTER_NAME: "CLUSTER_NAME",
64
+ COVERAGE_STATUS: "COVERAGE_STATUS",
65
+ RESOURCE_TYPE: "RESOURCE_TYPE",
66
+ };
67
+ export const CoverageSortKey = {
68
+ ACCOUNT_ID: "ACCOUNT_ID",
69
+ ADDON_VERSION: "ADDON_VERSION",
70
+ CLUSTER_NAME: "CLUSTER_NAME",
71
+ COVERAGE_STATUS: "COVERAGE_STATUS",
72
+ ISSUE: "ISSUE",
73
+ UPDATED_AT: "UPDATED_AT",
74
+ };
75
+ export const OrderBy = {
76
+ ASC: "ASC",
77
+ DESC: "DESC",
78
+ };
79
+ export const CoverageStatisticsType = {
80
+ COUNT_BY_COVERAGE_STATUS: "COUNT_BY_COVERAGE_STATUS",
81
+ COUNT_BY_RESOURCE_TYPE: "COUNT_BY_RESOURCE_TYPE",
82
+ };
83
+ export const FeatureAdditionalConfiguration = {
84
+ EKS_ADDON_MANAGEMENT: "EKS_ADDON_MANAGEMENT",
85
+ };
86
+ export const FeatureStatus = {
87
+ DISABLED: "DISABLED",
88
+ ENABLED: "ENABLED",
89
+ };
90
+ export const DetectorFeature = {
91
+ EBS_MALWARE_PROTECTION: "EBS_MALWARE_PROTECTION",
92
+ EKS_AUDIT_LOGS: "EKS_AUDIT_LOGS",
93
+ EKS_RUNTIME_MONITORING: "EKS_RUNTIME_MONITORING",
94
+ RDS_LOGIN_EVENTS: "RDS_LOGIN_EVENTS",
95
+ S3_DATA_EVENTS: "S3_DATA_EVENTS",
96
+ };
97
+ export const FindingPublishingFrequency = {
98
+ FIFTEEN_MINUTES: "FIFTEEN_MINUTES",
99
+ ONE_HOUR: "ONE_HOUR",
100
+ SIX_HOURS: "SIX_HOURS",
101
+ };
102
+ export const FilterAction = {
103
+ ARCHIVE: "ARCHIVE",
104
+ NOOP: "NOOP",
105
+ };
106
+ export const IpSetFormat = {
107
+ ALIEN_VAULT: "ALIEN_VAULT",
108
+ FIRE_EYE: "FIRE_EYE",
109
+ OTX_CSV: "OTX_CSV",
110
+ PROOF_POINT: "PROOF_POINT",
111
+ STIX: "STIX",
112
+ TXT: "TXT",
113
+ };
114
+ export const DestinationType = {
115
+ S3: "S3",
116
+ };
117
+ export const ThreatIntelSetFormat = {
118
+ ALIEN_VAULT: "ALIEN_VAULT",
119
+ FIRE_EYE: "FIRE_EYE",
120
+ OTX_CSV: "OTX_CSV",
121
+ PROOF_POINT: "PROOF_POINT",
122
+ STIX: "STIX",
123
+ TXT: "TXT",
124
+ };
125
+ export const CriterionKey = {
126
+ ACCOUNT_ID: "ACCOUNT_ID",
127
+ EC2_INSTANCE_ARN: "EC2_INSTANCE_ARN",
128
+ GUARDDUTY_FINDING_ID: "GUARDDUTY_FINDING_ID",
129
+ SCAN_ID: "SCAN_ID",
130
+ SCAN_START_TIME: "SCAN_START_TIME",
131
+ SCAN_STATUS: "SCAN_STATUS",
132
+ };
133
+ export const DataSource = {
134
+ CLOUD_TRAIL: "CLOUD_TRAIL",
135
+ DNS_LOGS: "DNS_LOGS",
136
+ EC2_MALWARE_SCAN: "EC2_MALWARE_SCAN",
137
+ FLOW_LOGS: "FLOW_LOGS",
138
+ KUBERNETES_AUDIT_LOGS: "KUBERNETES_AUDIT_LOGS",
139
+ S3_LOGS: "S3_LOGS",
140
+ };
141
+ export const ScanResult = {
142
+ CLEAN: "CLEAN",
143
+ INFECTED: "INFECTED",
144
+ };
145
+ export const ScanStatus = {
146
+ COMPLETED: "COMPLETED",
147
+ FAILED: "FAILED",
148
+ RUNNING: "RUNNING",
149
+ };
150
+ export const OrgFeatureStatus = {
151
+ NEW: "NEW",
152
+ NONE: "NONE",
153
+ };
154
+ export const OrgFeatureAdditionalConfiguration = {
155
+ EKS_ADDON_MANAGEMENT: "EKS_ADDON_MANAGEMENT",
156
+ };
157
+ export const OrgFeature = {
158
+ EBS_MALWARE_PROTECTION: "EBS_MALWARE_PROTECTION",
159
+ EKS_AUDIT_LOGS: "EKS_AUDIT_LOGS",
160
+ EKS_RUNTIME_MONITORING: "EKS_RUNTIME_MONITORING",
161
+ RDS_LOGIN_EVENTS: "RDS_LOGIN_EVENTS",
162
+ S3_DATA_EVENTS: "S3_DATA_EVENTS",
163
+ };
164
+ export const PublishingStatus = {
165
+ PENDING_VERIFICATION: "PENDING_VERIFICATION",
166
+ PUBLISHING: "PUBLISHING",
167
+ STOPPED: "STOPPED",
168
+ UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY: "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY",
169
+ };
170
+ export const DetectorFeatureResult = {
171
+ CLOUD_TRAIL: "CLOUD_TRAIL",
172
+ DNS_LOGS: "DNS_LOGS",
173
+ EBS_MALWARE_PROTECTION: "EBS_MALWARE_PROTECTION",
174
+ EKS_AUDIT_LOGS: "EKS_AUDIT_LOGS",
175
+ EKS_RUNTIME_MONITORING: "EKS_RUNTIME_MONITORING",
176
+ FLOW_LOGS: "FLOW_LOGS",
177
+ RDS_LOGIN_EVENTS: "RDS_LOGIN_EVENTS",
178
+ S3_DATA_EVENTS: "S3_DATA_EVENTS",
179
+ };
180
+ export const DetectorStatus = {
181
+ DISABLED: "DISABLED",
182
+ ENABLED: "ENABLED",
183
+ };
184
+ export const EbsSnapshotPreservation = {
185
+ NO_RETENTION: "NO_RETENTION",
186
+ RETENTION_WITH_FINDING: "RETENTION_WITH_FINDING",
187
+ };
188
+ export const Feedback = {
189
+ NOT_USEFUL: "NOT_USEFUL",
190
+ USEFUL: "USEFUL",
191
+ };
192
+ export const FindingStatisticType = {
193
+ COUNT_BY_SEVERITY: "COUNT_BY_SEVERITY",
194
+ };
195
+ export const IpSetStatus = {
196
+ ACTIVATING: "ACTIVATING",
197
+ ACTIVE: "ACTIVE",
198
+ DEACTIVATING: "DEACTIVATING",
199
+ DELETED: "DELETED",
200
+ DELETE_PENDING: "DELETE_PENDING",
201
+ ERROR: "ERROR",
202
+ INACTIVE: "INACTIVE",
203
+ };
204
+ export const ScanCriterionKey = {
205
+ EC2_INSTANCE_TAG: "EC2_INSTANCE_TAG",
206
+ };
207
+ export const ThreatIntelSetStatus = {
208
+ ACTIVATING: "ACTIVATING",
209
+ ACTIVE: "ACTIVE",
210
+ DEACTIVATING: "DEACTIVATING",
211
+ DELETED: "DELETED",
212
+ DELETE_PENDING: "DELETE_PENDING",
213
+ ERROR: "ERROR",
214
+ INACTIVE: "INACTIVE",
215
+ };
216
+ export const UsageFeature = {
217
+ CLOUD_TRAIL: "CLOUD_TRAIL",
218
+ DNS_LOGS: "DNS_LOGS",
219
+ EBS_MALWARE_PROTECTION: "EBS_MALWARE_PROTECTION",
220
+ EKS_AUDIT_LOGS: "EKS_AUDIT_LOGS",
221
+ EKS_RUNTIME_MONITORING: "EKS_RUNTIME_MONITORING",
222
+ FLOW_LOGS: "FLOW_LOGS",
223
+ LAMBDA_NETWORK_LOGS: "LAMBDA_NETWORK_LOGS",
224
+ RDS_LOGIN_EVENTS: "RDS_LOGIN_EVENTS",
225
+ S3_DATA_EVENTS: "S3_DATA_EVENTS",
226
+ };
227
+ export const UsageStatisticType = {
228
+ SUM_BY_ACCOUNT: "SUM_BY_ACCOUNT",
229
+ SUM_BY_DATA_SOURCE: "SUM_BY_DATA_SOURCE",
230
+ SUM_BY_FEATURES: "SUM_BY_FEATURES",
231
+ SUM_BY_RESOURCE: "SUM_BY_RESOURCE",
232
+ TOP_RESOURCES: "TOP_RESOURCES",
233
+ };
@@ -0,0 +1,25 @@
1
+ import { ListCoverageCommand, } from "../commands/ListCoverageCommand";
2
+ import { GuardDutyClient } from "../GuardDutyClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListCoverageCommand(input), ...args);
5
+ };
6
+ export async function* paginateListCoverage(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof GuardDutyClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -2,6 +2,7 @@ export * from "./DescribeMalwareScansPaginator";
2
2
  export * from "./DescribeOrganizationConfigurationPaginator";
3
3
  export * from "./GetUsageStatisticsPaginator";
4
4
  export * from "./Interfaces";
5
+ export * from "./ListCoveragePaginator";
5
6
  export * from "./ListDetectorsPaginator";
6
7
  export * from "./ListFiltersPaginator";
7
8
  export * from "./ListFindingsPaginator";