@aws-sdk/client-inspector2 3.180.0 → 3.183.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 (54) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +38 -32
  3. package/dist-es/Inspector2.js +130 -137
  4. package/dist-es/Inspector2Client.js +22 -28
  5. package/dist-es/commands/AssociateMemberCommand.js +21 -28
  6. package/dist-es/commands/BatchGetAccountStatusCommand.js +21 -28
  7. package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +21 -28
  8. package/dist-es/commands/CancelFindingsReportCommand.js +21 -28
  9. package/dist-es/commands/CreateFilterCommand.js +21 -28
  10. package/dist-es/commands/CreateFindingsReportCommand.js +21 -28
  11. package/dist-es/commands/DeleteFilterCommand.js +21 -28
  12. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DisableCommand.js +21 -28
  14. package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +21 -28
  15. package/dist-es/commands/DisassociateMemberCommand.js +21 -28
  16. package/dist-es/commands/EnableCommand.js +21 -28
  17. package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +21 -28
  18. package/dist-es/commands/GetConfigurationCommand.js +21 -28
  19. package/dist-es/commands/GetDelegatedAdminAccountCommand.js +21 -28
  20. package/dist-es/commands/GetFindingsReportStatusCommand.js +21 -28
  21. package/dist-es/commands/GetMemberCommand.js +21 -28
  22. package/dist-es/commands/ListAccountPermissionsCommand.js +21 -28
  23. package/dist-es/commands/ListCoverageCommand.js +21 -28
  24. package/dist-es/commands/ListCoverageStatisticsCommand.js +21 -28
  25. package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +21 -28
  26. package/dist-es/commands/ListFiltersCommand.js +21 -28
  27. package/dist-es/commands/ListFindingAggregationsCommand.js +21 -28
  28. package/dist-es/commands/ListFindingsCommand.js +21 -28
  29. package/dist-es/commands/ListMembersCommand.js +21 -28
  30. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListUsageTotalsCommand.js +21 -28
  32. package/dist-es/commands/TagResourceCommand.js +21 -28
  33. package/dist-es/commands/UntagResourceCommand.js +21 -28
  34. package/dist-es/commands/UpdateConfigurationCommand.js +21 -28
  35. package/dist-es/commands/UpdateFilterCommand.js +21 -28
  36. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/Inspector2ServiceException.js +5 -10
  39. package/dist-es/models/models_0.js +523 -244
  40. package/dist-es/pagination/ListAccountPermissionsPaginator.js +25 -68
  41. package/dist-es/pagination/ListCoveragePaginator.js +25 -68
  42. package/dist-es/pagination/ListCoverageStatisticsPaginator.js +24 -67
  43. package/dist-es/pagination/ListDelegatedAdminAccountsPaginator.js +25 -68
  44. package/dist-es/pagination/ListFiltersPaginator.js +25 -68
  45. package/dist-es/pagination/ListFindingAggregationsPaginator.js +25 -68
  46. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  47. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  48. package/dist-es/pagination/ListUsageTotalsPaginator.js +25 -68
  49. package/dist-es/protocols/Aws_restJson1.js +2799 -3610
  50. package/dist-es/runtimeConfig.browser.js +26 -12
  51. package/dist-es/runtimeConfig.js +30 -12
  52. package/dist-es/runtimeConfig.native.js +8 -5
  53. package/dist-es/runtimeConfig.shared.js +8 -11
  54. package/package.json +33 -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 { AssociateMemberRequestFilterSensitiveLog, AssociateMemberResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AssociateMemberCommand, serializeAws_restJson1AssociateMemberCommand, } from "../protocols/Aws_restJson1";
6
- var AssociateMemberCommand = (function (_super) {
7
- __extends(AssociateMemberCommand, _super);
8
- function AssociateMemberCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateMemberCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateMemberCommand.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 = "Inspector2Client";
18
- var commandName = "AssociateMemberCommand";
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 = "Inspector2Client";
15
+ const commandName = "AssociateMemberCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateMemberRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociateMemberResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateMemberCommand.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_restJson1AssociateMemberCommand(input, context);
33
- };
34
- AssociateMemberCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AssociateMemberCommand(output, context);
36
- };
37
- return AssociateMemberCommand;
38
- }($Command));
39
- export { AssociateMemberCommand };
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 { BatchGetAccountStatusRequestFilterSensitiveLog, BatchGetAccountStatusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchGetAccountStatusCommand, serializeAws_restJson1BatchGetAccountStatusCommand, } from "../protocols/Aws_restJson1";
6
- var BatchGetAccountStatusCommand = (function (_super) {
7
- __extends(BatchGetAccountStatusCommand, _super);
8
- function BatchGetAccountStatusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchGetAccountStatusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchGetAccountStatusCommand.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 = "Inspector2Client";
18
- var commandName = "BatchGetAccountStatusCommand";
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 = "Inspector2Client";
15
+ const commandName = "BatchGetAccountStatusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchGetAccountStatusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchGetAccountStatusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchGetAccountStatusCommand.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_restJson1BatchGetAccountStatusCommand(input, context);
33
- };
34
- BatchGetAccountStatusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchGetAccountStatusCommand(output, context);
36
- };
37
- return BatchGetAccountStatusCommand;
38
- }($Command));
39
- export { BatchGetAccountStatusCommand };
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 { BatchGetFreeTrialInfoRequestFilterSensitiveLog, BatchGetFreeTrialInfoResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchGetFreeTrialInfoCommand, serializeAws_restJson1BatchGetFreeTrialInfoCommand, } from "../protocols/Aws_restJson1";
6
- var BatchGetFreeTrialInfoCommand = (function (_super) {
7
- __extends(BatchGetFreeTrialInfoCommand, _super);
8
- function BatchGetFreeTrialInfoCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchGetFreeTrialInfoCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchGetFreeTrialInfoCommand.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 = "Inspector2Client";
18
- var commandName = "BatchGetFreeTrialInfoCommand";
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 = "Inspector2Client";
15
+ const commandName = "BatchGetFreeTrialInfoCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchGetFreeTrialInfoRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchGetFreeTrialInfoResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchGetFreeTrialInfoCommand.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_restJson1BatchGetFreeTrialInfoCommand(input, context);
33
- };
34
- BatchGetFreeTrialInfoCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchGetFreeTrialInfoCommand(output, context);
36
- };
37
- return BatchGetFreeTrialInfoCommand;
38
- }($Command));
39
- export { BatchGetFreeTrialInfoCommand };
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 { CancelFindingsReportRequestFilterSensitiveLog, CancelFindingsReportResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CancelFindingsReportCommand, serializeAws_restJson1CancelFindingsReportCommand, } from "../protocols/Aws_restJson1";
6
- var CancelFindingsReportCommand = (function (_super) {
7
- __extends(CancelFindingsReportCommand, _super);
8
- function CancelFindingsReportCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelFindingsReportCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelFindingsReportCommand.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 = "Inspector2Client";
18
- var commandName = "CancelFindingsReportCommand";
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 = "Inspector2Client";
15
+ const commandName = "CancelFindingsReportCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelFindingsReportRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelFindingsReportResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelFindingsReportCommand.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_restJson1CancelFindingsReportCommand(input, context);
33
- };
34
- CancelFindingsReportCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CancelFindingsReportCommand(output, context);
36
- };
37
- return CancelFindingsReportCommand;
38
- }($Command));
39
- export { CancelFindingsReportCommand };
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 = "Inspector2Client";
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 = "Inspector2Client";
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 { CreateFindingsReportRequestFilterSensitiveLog, CreateFindingsReportResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateFindingsReportCommand, serializeAws_restJson1CreateFindingsReportCommand, } from "../protocols/Aws_restJson1";
6
- var CreateFindingsReportCommand = (function (_super) {
7
- __extends(CreateFindingsReportCommand, _super);
8
- function CreateFindingsReportCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateFindingsReportCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateFindingsReportCommand.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 = "Inspector2Client";
18
- var commandName = "CreateFindingsReportCommand";
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 = "Inspector2Client";
15
+ const commandName = "CreateFindingsReportCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateFindingsReportRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateFindingsReportResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateFindingsReportCommand.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_restJson1CreateFindingsReportCommand(input, context);
33
- };
34
- CreateFindingsReportCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateFindingsReportCommand(output, context);
36
- };
37
- return CreateFindingsReportCommand;
38
- }($Command));
39
- export { CreateFindingsReportCommand };
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 { DeleteFilterRequestFilterSensitiveLog, DeleteFilterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteFilterCommand, serializeAws_restJson1DeleteFilterCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteFilterCommand = (function (_super) {
7
- __extends(DeleteFilterCommand, _super);
8
- function DeleteFilterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteFilterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteFilterCommand.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 = "Inspector2Client";
18
- var commandName = "DeleteFilterCommand";
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 = "Inspector2Client";
15
+ const commandName = "DeleteFilterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteFilterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteFilterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteFilterCommand.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_restJson1DeleteFilterCommand(input, context);
33
- };
34
- DeleteFilterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteFilterCommand(output, context);
36
- };
37
- return DeleteFilterCommand;
38
- }($Command));
39
- export { DeleteFilterCommand };
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 { DescribeOrganizationConfigurationRequestFilterSensitiveLog, DescribeOrganizationConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeOrganizationConfigurationCommand, serializeAws_restJson1DescribeOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeOrganizationConfigurationCommand = (function (_super) {
7
- __extends(DescribeOrganizationConfigurationCommand, _super);
8
- function DescribeOrganizationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeOrganizationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeOrganizationConfigurationCommand.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 = "Inspector2Client";
18
- var commandName = "DescribeOrganizationConfigurationCommand";
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 = "Inspector2Client";
15
+ const commandName = "DescribeOrganizationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeOrganizationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeOrganizationConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeOrganizationConfigurationCommand.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_restJson1DescribeOrganizationConfigurationCommand(input, context);
33
- };
34
- DescribeOrganizationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeOrganizationConfigurationCommand(output, context);
36
- };
37
- return DescribeOrganizationConfigurationCommand;
38
- }($Command));
39
- export { DescribeOrganizationConfigurationCommand };
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 { DisableRequestFilterSensitiveLog, DisableResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisableCommand, serializeAws_restJson1DisableCommand, } from "../protocols/Aws_restJson1";
6
- var DisableCommand = (function (_super) {
7
- __extends(DisableCommand, _super);
8
- function DisableCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableCommand.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 = "Inspector2Client";
18
- var commandName = "DisableCommand";
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 = "Inspector2Client";
15
+ const commandName = "DisableCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisableRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisableResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableCommand.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_restJson1DisableCommand(input, context);
33
- };
34
- DisableCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisableCommand(output, context);
36
- };
37
- return DisableCommand;
38
- }($Command));
39
- export { DisableCommand };
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 { DisableDelegatedAdminAccountRequestFilterSensitiveLog, DisableDelegatedAdminAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisableDelegatedAdminAccountCommand, serializeAws_restJson1DisableDelegatedAdminAccountCommand, } from "../protocols/Aws_restJson1";
6
- var DisableDelegatedAdminAccountCommand = (function (_super) {
7
- __extends(DisableDelegatedAdminAccountCommand, _super);
8
- function DisableDelegatedAdminAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisableDelegatedAdminAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisableDelegatedAdminAccountCommand.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 = "Inspector2Client";
18
- var commandName = "DisableDelegatedAdminAccountCommand";
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 = "Inspector2Client";
15
+ const commandName = "DisableDelegatedAdminAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisableDelegatedAdminAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisableDelegatedAdminAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisableDelegatedAdminAccountCommand.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_restJson1DisableDelegatedAdminAccountCommand(input, context);
33
- };
34
- DisableDelegatedAdminAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisableDelegatedAdminAccountCommand(output, context);
36
- };
37
- return DisableDelegatedAdminAccountCommand;
38
- }($Command));
39
- export { DisableDelegatedAdminAccountCommand };
31
+ }
32
+ }