@aws-sdk/client-guardduty 3.185.0 → 3.188.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 (97) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/models/models_0.js +21 -17
  4. package/dist-cjs/protocols/Aws_restJson1.js +11 -0
  5. package/dist-es/GuardDuty.js +262 -269
  6. package/dist-es/GuardDutyClient.js +22 -28
  7. package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
  8. package/dist-es/commands/AcceptInvitationCommand.js +21 -28
  9. package/dist-es/commands/ArchiveFindingsCommand.js +21 -28
  10. package/dist-es/commands/CreateDetectorCommand.js +21 -28
  11. package/dist-es/commands/CreateFilterCommand.js +21 -28
  12. package/dist-es/commands/CreateIPSetCommand.js +21 -28
  13. package/dist-es/commands/CreateMembersCommand.js +21 -28
  14. package/dist-es/commands/CreatePublishingDestinationCommand.js +21 -28
  15. package/dist-es/commands/CreateSampleFindingsCommand.js +21 -28
  16. package/dist-es/commands/CreateThreatIntelSetCommand.js +21 -28
  17. package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
  18. package/dist-es/commands/DeleteDetectorCommand.js +21 -28
  19. package/dist-es/commands/DeleteFilterCommand.js +21 -28
  20. package/dist-es/commands/DeleteIPSetCommand.js +21 -28
  21. package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
  22. package/dist-es/commands/DeleteMembersCommand.js +21 -28
  23. package/dist-es/commands/DeletePublishingDestinationCommand.js +21 -28
  24. package/dist-es/commands/DeleteThreatIntelSetCommand.js +21 -28
  25. package/dist-es/commands/DescribeMalwareScansCommand.js +21 -28
  26. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  27. package/dist-es/commands/DescribePublishingDestinationCommand.js +21 -28
  28. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
  29. package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
  30. package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
  31. package/dist-es/commands/DisassociateMembersCommand.js +21 -28
  32. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
  33. package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
  34. package/dist-es/commands/GetDetectorCommand.js +21 -28
  35. package/dist-es/commands/GetFilterCommand.js +21 -28
  36. package/dist-es/commands/GetFindingsCommand.js +21 -28
  37. package/dist-es/commands/GetFindingsStatisticsCommand.js +21 -28
  38. package/dist-es/commands/GetIPSetCommand.js +21 -28
  39. package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
  40. package/dist-es/commands/GetMalwareScanSettingsCommand.js +21 -28
  41. package/dist-es/commands/GetMasterAccountCommand.js +21 -28
  42. package/dist-es/commands/GetMemberDetectorsCommand.js +21 -28
  43. package/dist-es/commands/GetMembersCommand.js +21 -28
  44. package/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +21 -28
  45. package/dist-es/commands/GetThreatIntelSetCommand.js +21 -28
  46. package/dist-es/commands/GetUsageStatisticsCommand.js +21 -28
  47. package/dist-es/commands/InviteMembersCommand.js +21 -28
  48. package/dist-es/commands/ListDetectorsCommand.js +21 -28
  49. package/dist-es/commands/ListFiltersCommand.js +21 -28
  50. package/dist-es/commands/ListFindingsCommand.js +21 -28
  51. package/dist-es/commands/ListIPSetsCommand.js +21 -28
  52. package/dist-es/commands/ListInvitationsCommand.js +21 -28
  53. package/dist-es/commands/ListMembersCommand.js +21 -28
  54. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
  55. package/dist-es/commands/ListPublishingDestinationsCommand.js +21 -28
  56. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  57. package/dist-es/commands/ListThreatIntelSetsCommand.js +21 -28
  58. package/dist-es/commands/StartMonitoringMembersCommand.js +21 -28
  59. package/dist-es/commands/StopMonitoringMembersCommand.js +21 -28
  60. package/dist-es/commands/TagResourceCommand.js +21 -28
  61. package/dist-es/commands/UnarchiveFindingsCommand.js +21 -28
  62. package/dist-es/commands/UntagResourceCommand.js +21 -28
  63. package/dist-es/commands/UpdateDetectorCommand.js +21 -28
  64. package/dist-es/commands/UpdateFilterCommand.js +21 -28
  65. package/dist-es/commands/UpdateFindingsFeedbackCommand.js +21 -28
  66. package/dist-es/commands/UpdateIPSetCommand.js +21 -28
  67. package/dist-es/commands/UpdateMalwareScanSettingsCommand.js +21 -28
  68. package/dist-es/commands/UpdateMemberDetectorsCommand.js +21 -28
  69. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
  70. package/dist-es/commands/UpdatePublishingDestinationCommand.js +21 -28
  71. package/dist-es/commands/UpdateThreatIntelSetCommand.js +21 -28
  72. package/dist-es/endpoints.js +8 -8
  73. package/dist-es/models/GuardDutyServiceException.js +5 -10
  74. package/dist-es/models/models_0.js +800 -284
  75. package/dist-es/pagination/DescribeMalwareScansPaginator.js +25 -68
  76. package/dist-es/pagination/GetUsageStatisticsPaginator.js +25 -68
  77. package/dist-es/pagination/ListDetectorsPaginator.js +25 -68
  78. package/dist-es/pagination/ListFiltersPaginator.js +25 -68
  79. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  80. package/dist-es/pagination/ListIPSetsPaginator.js +25 -68
  81. package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
  82. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  83. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
  84. package/dist-es/pagination/ListPublishingDestinationsPaginator.js +25 -68
  85. package/dist-es/pagination/ListThreatIntelSetsPaginator.js +25 -68
  86. package/dist-es/protocols/Aws_restJson1.js +4294 -6000
  87. package/dist-es/runtimeConfig.browser.js +26 -12
  88. package/dist-es/runtimeConfig.js +30 -12
  89. package/dist-es/runtimeConfig.native.js +8 -5
  90. package/dist-es/runtimeConfig.shared.js +8 -11
  91. package/dist-types/GuardDuty.d.ts +4 -4
  92. package/dist-types/GuardDutyClient.d.ts +1 -1
  93. package/dist-types/commands/DescribeMalwareScansCommand.d.ts +2 -1
  94. package/dist-types/commands/DisassociateMembersCommand.d.ts +1 -2
  95. package/dist-types/models/models_0.d.ts +78 -48
  96. package/dist-types/ts3.4/models/models_0.d.ts +27 -19
  97. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var GuardDutyClient = (function (_super) {
13
- __extends(GuardDutyClient, _super);
14
- function GuardDutyClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class GuardDutyClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- GuardDutyClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return GuardDutyClient;
38
- }(__Client));
39
- export { GuardDutyClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AcceptAdministratorInvitationRequestFilterSensitiveLog, AcceptAdministratorInvitationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AcceptAdministratorInvitationCommand, serializeAws_restJson1AcceptAdministratorInvitationCommand, } from "../protocols/Aws_restJson1";
6
- var AcceptAdministratorInvitationCommand = (function (_super) {
7
- __extends(AcceptAdministratorInvitationCommand, _super);
8
- function AcceptAdministratorInvitationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AcceptAdministratorInvitationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AcceptAdministratorInvitationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "AcceptAdministratorInvitationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "AcceptAdministratorInvitationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AcceptAdministratorInvitationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AcceptAdministratorInvitationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AcceptAdministratorInvitationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AcceptAdministratorInvitationCommand(input, context);
33
- };
34
- AcceptAdministratorInvitationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AcceptAdministratorInvitationCommand(output, context);
36
- };
37
- return AcceptAdministratorInvitationCommand;
38
- }($Command));
39
- export { AcceptAdministratorInvitationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { AcceptInvitationRequestFilterSensitiveLog, AcceptInvitationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AcceptInvitationCommand, serializeAws_restJson1AcceptInvitationCommand, } from "../protocols/Aws_restJson1";
6
- var AcceptInvitationCommand = (function (_super) {
7
- __extends(AcceptInvitationCommand, _super);
8
- function AcceptInvitationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AcceptInvitationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AcceptInvitationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "AcceptInvitationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "AcceptInvitationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AcceptInvitationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AcceptInvitationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AcceptInvitationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1AcceptInvitationCommand(input, context);
33
- };
34
- AcceptInvitationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AcceptInvitationCommand(output, context);
36
- };
37
- return AcceptInvitationCommand;
38
- }($Command));
39
- export { AcceptInvitationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ArchiveFindingsRequestFilterSensitiveLog, ArchiveFindingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ArchiveFindingsCommand, serializeAws_restJson1ArchiveFindingsCommand, } from "../protocols/Aws_restJson1";
6
- var ArchiveFindingsCommand = (function (_super) {
7
- __extends(ArchiveFindingsCommand, _super);
8
- function ArchiveFindingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ArchiveFindingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ArchiveFindingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "ArchiveFindingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "ArchiveFindingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ArchiveFindingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ArchiveFindingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ArchiveFindingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ArchiveFindingsCommand(input, context);
33
- };
34
- ArchiveFindingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ArchiveFindingsCommand(output, context);
36
- };
37
- return ArchiveFindingsCommand;
38
- }($Command));
39
- export { ArchiveFindingsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateDetectorRequestFilterSensitiveLog, CreateDetectorResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateDetectorCommand, serializeAws_restJson1CreateDetectorCommand, } from "../protocols/Aws_restJson1";
6
- var CreateDetectorCommand = (function (_super) {
7
- __extends(CreateDetectorCommand, _super);
8
- function CreateDetectorCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDetectorCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDetectorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "CreateDetectorCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "CreateDetectorCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDetectorRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDetectorResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDetectorCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateDetectorCommand(input, context);
33
- };
34
- CreateDetectorCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateDetectorCommand(output, context);
36
- };
37
- return CreateDetectorCommand;
38
- }($Command));
39
- export { CreateDetectorCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateFilterRequestFilterSensitiveLog, CreateFilterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateFilterCommand, serializeAws_restJson1CreateFilterCommand, } from "../protocols/Aws_restJson1";
6
- var CreateFilterCommand = (function (_super) {
7
- __extends(CreateFilterCommand, _super);
8
- function CreateFilterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateFilterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateFilterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "CreateFilterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "CreateFilterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateFilterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateFilterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateFilterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateFilterCommand(input, context);
33
- };
34
- CreateFilterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateFilterCommand(output, context);
36
- };
37
- return CreateFilterCommand;
38
- }($Command));
39
- export { CreateFilterCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateIPSetRequestFilterSensitiveLog, CreateIPSetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateIPSetCommand, serializeAws_restJson1CreateIPSetCommand, } from "../protocols/Aws_restJson1";
6
- var CreateIPSetCommand = (function (_super) {
7
- __extends(CreateIPSetCommand, _super);
8
- function CreateIPSetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateIPSetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateIPSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "CreateIPSetCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "CreateIPSetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateIPSetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateIPSetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateIPSetCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateIPSetCommand(input, context);
33
- };
34
- CreateIPSetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateIPSetCommand(output, context);
36
- };
37
- return CreateIPSetCommand;
38
- }($Command));
39
- export { CreateIPSetCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateMembersRequestFilterSensitiveLog, CreateMembersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateMembersCommand, serializeAws_restJson1CreateMembersCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMembersCommand = (function (_super) {
7
- __extends(CreateMembersCommand, _super);
8
- function CreateMembersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMembersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMembersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "CreateMembersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "CreateMembersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMembersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMembersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMembersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateMembersCommand(input, context);
33
- };
34
- CreateMembersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMembersCommand(output, context);
36
- };
37
- return CreateMembersCommand;
38
- }($Command));
39
- export { CreateMembersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreatePublishingDestinationRequestFilterSensitiveLog, CreatePublishingDestinationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreatePublishingDestinationCommand, serializeAws_restJson1CreatePublishingDestinationCommand, } from "../protocols/Aws_restJson1";
6
- var CreatePublishingDestinationCommand = (function (_super) {
7
- __extends(CreatePublishingDestinationCommand, _super);
8
- function CreatePublishingDestinationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePublishingDestinationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePublishingDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "CreatePublishingDestinationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "CreatePublishingDestinationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePublishingDestinationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreatePublishingDestinationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreatePublishingDestinationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreatePublishingDestinationCommand(input, context);
33
- };
34
- CreatePublishingDestinationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreatePublishingDestinationCommand(output, context);
36
- };
37
- return CreatePublishingDestinationCommand;
38
- }($Command));
39
- export { CreatePublishingDestinationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateSampleFindingsRequestFilterSensitiveLog, CreateSampleFindingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateSampleFindingsCommand, serializeAws_restJson1CreateSampleFindingsCommand, } from "../protocols/Aws_restJson1";
6
- var CreateSampleFindingsCommand = (function (_super) {
7
- __extends(CreateSampleFindingsCommand, _super);
8
- function CreateSampleFindingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSampleFindingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSampleFindingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GuardDutyClient";
18
- var commandName = "CreateSampleFindingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GuardDutyClient";
15
+ const commandName = "CreateSampleFindingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSampleFindingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSampleFindingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSampleFindingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateSampleFindingsCommand(input, context);
33
- };
34
- CreateSampleFindingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateSampleFindingsCommand(output, context);
36
- };
37
- return CreateSampleFindingsCommand;
38
- }($Command));
39
- export { CreateSampleFindingsCommand };
31
+ }
32
+ }