@aws-sdk/client-guardduty 3.319.0 → 3.322.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 (31) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/GuardDuty.js +2 -0
  3. package/dist-cjs/commands/StartMalwareScanCommand.js +45 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +22 -1
  6. package/dist-cjs/protocols/Aws_restJson1.js +254 -165
  7. package/dist-es/GuardDuty.js +2 -0
  8. package/dist-es/commands/StartMalwareScanCommand.js +41 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +20 -0
  11. package/dist-es/protocols/Aws_restJson1.js +251 -164
  12. package/dist-types/GuardDuty.d.ts +7 -0
  13. package/dist-types/GuardDutyClient.d.ts +3 -2
  14. package/dist-types/commands/DescribeMalwareScansCommand.d.ts +1 -1
  15. package/dist-types/commands/StartMalwareScanCommand.d.ts +73 -0
  16. package/dist-types/commands/StopMonitoringMembersCommand.d.ts +1 -1
  17. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  18. package/dist-types/commands/index.d.ts +1 -0
  19. package/dist-types/models/models_0.d.ts +56 -37
  20. package/dist-types/models/models_1.d.ts +42 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  22. package/dist-types/ts3.4/GuardDuty.d.ts +17 -0
  23. package/dist-types/ts3.4/GuardDutyClient.d.ts +6 -0
  24. package/dist-types/ts3.4/commands/StartMalwareScanCommand.d.ts +37 -0
  25. package/dist-types/ts3.4/commands/StopMonitoringMembersCommand.d.ts +1 -1
  26. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +22 -12
  29. package/dist-types/ts3.4/models/models_1.d.ts +12 -0
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  31. package/package.json +4 -4
package/README.md CHANGED
@@ -647,6 +647,14 @@ ListThreatIntelSets
647
647
 
648
648
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/classes/listthreatintelsetscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/listthreatintelsetscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/listthreatintelsetscommandoutput.html)
649
649
 
650
+ </details>
651
+ <details>
652
+ <summary>
653
+ StartMalwareScan
654
+ </summary>
655
+
656
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/classes/startmalwarescancommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/startmalwarescancommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/startmalwarescancommandoutput.html)
657
+
650
658
  </details>
651
659
  <details>
652
660
  <summary>
@@ -55,6 +55,7 @@ const ListOrganizationAdminAccountsCommand_1 = require("./commands/ListOrganizat
55
55
  const ListPublishingDestinationsCommand_1 = require("./commands/ListPublishingDestinationsCommand");
56
56
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
57
57
  const ListThreatIntelSetsCommand_1 = require("./commands/ListThreatIntelSetsCommand");
58
+ const StartMalwareScanCommand_1 = require("./commands/StartMalwareScanCommand");
58
59
  const StartMonitoringMembersCommand_1 = require("./commands/StartMonitoringMembersCommand");
59
60
  const StopMonitoringMembersCommand_1 = require("./commands/StopMonitoringMembersCommand");
60
61
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
@@ -124,6 +125,7 @@ const commands = {
124
125
  ListPublishingDestinationsCommand: ListPublishingDestinationsCommand_1.ListPublishingDestinationsCommand,
125
126
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
126
127
  ListThreatIntelSetsCommand: ListThreatIntelSetsCommand_1.ListThreatIntelSetsCommand,
128
+ StartMalwareScanCommand: StartMalwareScanCommand_1.StartMalwareScanCommand,
127
129
  StartMonitoringMembersCommand: StartMonitoringMembersCommand_1.StartMonitoringMembersCommand,
128
130
  StopMonitoringMembersCommand: StopMonitoringMembersCommand_1.StopMonitoringMembersCommand,
129
131
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartMalwareScanCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class StartMalwareScanCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartMalwareScanCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "GuardDutyClient";
27
+ const commandName = "StartMalwareScanCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_StartMalwareScanCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_StartMalwareScanCommand)(output, context);
43
+ }
44
+ }
45
+ exports.StartMalwareScanCommand = StartMalwareScanCommand;
@@ -54,6 +54,7 @@ tslib_1.__exportStar(require("./ListOrganizationAdminAccountsCommand"), exports)
54
54
  tslib_1.__exportStar(require("./ListPublishingDestinationsCommand"), exports);
55
55
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
56
56
  tslib_1.__exportStar(require("./ListThreatIntelSetsCommand"), exports);
57
+ tslib_1.__exportStar(require("./StartMalwareScanCommand"), exports);
57
58
  tslib_1.__exportStar(require("./StartMonitoringMembersCommand"), exports);
58
59
  tslib_1.__exportStar(require("./StopMonitoringMembersCommand"), exports);
59
60
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UsageStatisticType = exports.UsageFeature = exports.ThreatIntelSetStatus = exports.ScanCriterionKey = exports.IpSetStatus = exports.FindingStatisticType = exports.Feedback = exports.EbsSnapshotPreservation = exports.DetectorStatus = exports.DetectorFeatureResult = exports.PublishingStatus = exports.OrgFeature = exports.OrgFeatureAdditionalConfiguration = exports.OrgFeatureStatus = exports.ScanStatus = exports.ScanResult = exports.DataSource = exports.CriterionKey = exports.ThreatIntelSetFormat = exports.DestinationType = exports.IpSetFormat = exports.FilterAction = exports.FindingPublishingFrequency = exports.DetectorFeature = exports.FeatureStatus = exports.FeatureAdditionalConfiguration = exports.CoverageStatisticsType = exports.OrderBy = exports.CoverageSortKey = exports.CoverageFilterCriterionKey = exports.ResourceType = exports.CoverageStatus = exports.DataSourceStatus = exports.AutoEnableMembers = exports.AdminStatus = exports.FreeTrialFeatureResult = exports.InternalServerErrorException = exports.BadRequestException = void 0;
3
+ exports.UsageStatisticType = exports.UsageFeature = exports.ThreatIntelSetStatus = exports.ScanCriterionKey = exports.IpSetStatus = exports.FindingStatisticType = exports.Feedback = exports.EbsSnapshotPreservation = exports.DetectorStatus = exports.DetectorFeatureResult = exports.PublishingStatus = exports.OrgFeature = exports.OrgFeatureAdditionalConfiguration = exports.OrgFeatureStatus = exports.ScanType = exports.ScanStatus = exports.ScanResult = exports.DataSource = exports.CriterionKey = exports.ThreatIntelSetFormat = exports.DestinationType = exports.IpSetFormat = exports.FilterAction = exports.FindingPublishingFrequency = exports.DetectorFeature = exports.FeatureStatus = exports.FeatureAdditionalConfiguration = exports.CoverageStatisticsType = exports.OrderBy = exports.CoverageSortKey = exports.CoverageFilterCriterionKey = exports.ResourceType = exports.CoverageStatus = exports.ConflictException = exports.DataSourceStatus = exports.AutoEnableMembers = exports.AdminStatus = exports.FreeTrialFeatureResult = exports.InternalServerErrorException = exports.BadRequestException = void 0;
4
4
  const GuardDutyServiceException_1 = require("./GuardDutyServiceException");
5
5
  class BadRequestException extends GuardDutyServiceException_1.GuardDutyServiceException {
6
6
  constructor(opts) {
@@ -56,6 +56,21 @@ exports.DataSourceStatus = {
56
56
  DISABLED: "DISABLED",
57
57
  ENABLED: "ENABLED",
58
58
  };
59
+ class ConflictException extends GuardDutyServiceException_1.GuardDutyServiceException {
60
+ constructor(opts) {
61
+ super({
62
+ name: "ConflictException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ this.name = "ConflictException";
67
+ this.$fault = "client";
68
+ Object.setPrototypeOf(this, ConflictException.prototype);
69
+ this.Message = opts.Message;
70
+ this.Type = opts.Type;
71
+ }
72
+ }
73
+ exports.ConflictException = ConflictException;
59
74
  exports.CoverageStatus = {
60
75
  HEALTHY: "HEALTHY",
61
76
  UNHEALTHY: "UNHEALTHY",
@@ -136,6 +151,7 @@ exports.CriterionKey = {
136
151
  SCAN_ID: "SCAN_ID",
137
152
  SCAN_START_TIME: "SCAN_START_TIME",
138
153
  SCAN_STATUS: "SCAN_STATUS",
154
+ SCAN_TYPE: "SCAN_TYPE",
139
155
  };
140
156
  exports.DataSource = {
141
157
  CLOUD_TRAIL: "CLOUD_TRAIL",
@@ -153,6 +169,11 @@ exports.ScanStatus = {
153
169
  COMPLETED: "COMPLETED",
154
170
  FAILED: "FAILED",
155
171
  RUNNING: "RUNNING",
172
+ SKIPPED: "SKIPPED",
173
+ };
174
+ exports.ScanType = {
175
+ GUARDDUTY_INITIATED: "GUARDDUTY_INITIATED",
176
+ ON_DEMAND: "ON_DEMAND",
156
177
  };
157
178
  exports.OrgFeatureStatus = {
158
179
  NEW: "NEW",