@aws-sdk/client-inspector2 3.183.0 → 3.185.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 +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Inspector2.js +137 -130
  4. package/dist-es/Inspector2Client.js +28 -22
  5. package/dist-es/commands/AssociateMemberCommand.js +28 -21
  6. package/dist-es/commands/BatchGetAccountStatusCommand.js +28 -21
  7. package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +28 -21
  8. package/dist-es/commands/CancelFindingsReportCommand.js +28 -21
  9. package/dist-es/commands/CreateFilterCommand.js +28 -21
  10. package/dist-es/commands/CreateFindingsReportCommand.js +28 -21
  11. package/dist-es/commands/DeleteFilterCommand.js +28 -21
  12. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +28 -21
  13. package/dist-es/commands/DisableCommand.js +28 -21
  14. package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +28 -21
  15. package/dist-es/commands/DisassociateMemberCommand.js +28 -21
  16. package/dist-es/commands/EnableCommand.js +28 -21
  17. package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +28 -21
  18. package/dist-es/commands/GetConfigurationCommand.js +28 -21
  19. package/dist-es/commands/GetDelegatedAdminAccountCommand.js +28 -21
  20. package/dist-es/commands/GetFindingsReportStatusCommand.js +28 -21
  21. package/dist-es/commands/GetMemberCommand.js +28 -21
  22. package/dist-es/commands/ListAccountPermissionsCommand.js +28 -21
  23. package/dist-es/commands/ListCoverageCommand.js +28 -21
  24. package/dist-es/commands/ListCoverageStatisticsCommand.js +28 -21
  25. package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +28 -21
  26. package/dist-es/commands/ListFiltersCommand.js +28 -21
  27. package/dist-es/commands/ListFindingAggregationsCommand.js +28 -21
  28. package/dist-es/commands/ListFindingsCommand.js +28 -21
  29. package/dist-es/commands/ListMembersCommand.js +28 -21
  30. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  31. package/dist-es/commands/ListUsageTotalsCommand.js +28 -21
  32. package/dist-es/commands/TagResourceCommand.js +28 -21
  33. package/dist-es/commands/UntagResourceCommand.js +28 -21
  34. package/dist-es/commands/UpdateConfigurationCommand.js +28 -21
  35. package/dist-es/commands/UpdateFilterCommand.js +28 -21
  36. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +28 -21
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/Inspector2ServiceException.js +10 -5
  39. package/dist-es/models/models_0.js +244 -523
  40. package/dist-es/pagination/ListAccountPermissionsPaginator.js +68 -25
  41. package/dist-es/pagination/ListCoveragePaginator.js +68 -25
  42. package/dist-es/pagination/ListCoverageStatisticsPaginator.js +67 -24
  43. package/dist-es/pagination/ListDelegatedAdminAccountsPaginator.js +68 -25
  44. package/dist-es/pagination/ListFiltersPaginator.js +68 -25
  45. package/dist-es/pagination/ListFindingAggregationsPaginator.js +68 -25
  46. package/dist-es/pagination/ListFindingsPaginator.js +68 -25
  47. package/dist-es/pagination/ListMembersPaginator.js +68 -25
  48. package/dist-es/pagination/ListUsageTotalsPaginator.js +68 -25
  49. package/dist-es/protocols/Aws_restJson1.js +3623 -2799
  50. package/dist-es/runtimeConfig.browser.js +12 -26
  51. package/dist-es/runtimeConfig.js +12 -30
  52. package/dist-es/runtimeConfig.native.js +5 -8
  53. package/dist-es/runtimeConfig.shared.js +11 -8
  54. package/package.json +5 -5
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListCoverageStatisticsRequestFilterSensitiveLog, ListCoverageStatisticsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListCoverageStatisticsCommand, serializeAws_restJson1ListCoverageStatisticsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListCoverageStatisticsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListCoverageStatisticsCommand = (function (_super) {
7
+ __extends(ListCoverageStatisticsCommand, _super);
8
+ function ListCoverageStatisticsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListCoverageStatisticsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListCoverageStatisticsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListCoverageStatisticsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListCoverageStatisticsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListCoverageStatisticsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListCoverageStatisticsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListCoverageStatisticsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListCoverageStatisticsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListCoverageStatisticsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListCoverageStatisticsCommand;
38
+ }($Command));
39
+ export { ListCoverageStatisticsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListDelegatedAdminAccountsRequestFilterSensitiveLog, ListDelegatedAdminAccountsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListDelegatedAdminAccountsCommand, serializeAws_restJson1ListDelegatedAdminAccountsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListDelegatedAdminAccountsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListDelegatedAdminAccountsCommand = (function (_super) {
7
+ __extends(ListDelegatedAdminAccountsCommand, _super);
8
+ function ListDelegatedAdminAccountsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListDelegatedAdminAccountsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListDelegatedAdminAccountsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListDelegatedAdminAccountsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListDelegatedAdminAccountsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListDelegatedAdminAccountsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListDelegatedAdminAccountsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListDelegatedAdminAccountsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListDelegatedAdminAccountsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListDelegatedAdminAccountsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListDelegatedAdminAccountsCommand;
38
+ }($Command));
39
+ export { ListDelegatedAdminAccountsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListFiltersRequestFilterSensitiveLog, ListFiltersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListFiltersCommand, serializeAws_restJson1ListFiltersCommand, } from "../protocols/Aws_restJson1";
5
- export class ListFiltersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListFiltersCommand = (function (_super) {
7
+ __extends(ListFiltersCommand, _super);
8
+ function ListFiltersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListFiltersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListFiltersCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListFiltersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListFiltersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListFiltersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListFiltersCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListFiltersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListFiltersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListFiltersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListFiltersCommand;
38
+ }($Command));
39
+ export { ListFiltersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListFindingAggregationsRequestFilterSensitiveLog, ListFindingAggregationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListFindingAggregationsCommand, serializeAws_restJson1ListFindingAggregationsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListFindingAggregationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListFindingAggregationsCommand = (function (_super) {
7
+ __extends(ListFindingAggregationsCommand, _super);
8
+ function ListFindingAggregationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListFindingAggregationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListFindingAggregationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListFindingAggregationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListFindingAggregationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListFindingAggregationsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListFindingAggregationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListFindingAggregationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListFindingAggregationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListFindingAggregationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListFindingAggregationsCommand;
38
+ }($Command));
39
+ export { ListFindingAggregationsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListFindingsRequestFilterSensitiveLog, ListFindingsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListFindingsCommand, serializeAws_restJson1ListFindingsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListFindingsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListFindingsCommand = (function (_super) {
7
+ __extends(ListFindingsCommand, _super);
8
+ function ListFindingsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListFindingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListFindingsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListFindingsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListFindingsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListFindingsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListFindingsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListFindingsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListFindingsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListFindingsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListFindingsCommand;
38
+ }($Command));
39
+ export { ListFindingsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListMembersRequestFilterSensitiveLog, ListMembersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListMembersCommand, serializeAws_restJson1ListMembersCommand, } from "../protocols/Aws_restJson1";
5
- export class ListMembersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListMembersCommand = (function (_super) {
7
+ __extends(ListMembersCommand, _super);
8
+ function ListMembersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListMembersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListMembersCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListMembersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListMembersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListMembersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListMembersCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListMembersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListMembersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListMembersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListMembersCommand;
38
+ }($Command));
39
+ export { ListMembersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListUsageTotalsRequestFilterSensitiveLog, ListUsageTotalsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListUsageTotalsCommand, serializeAws_restJson1ListUsageTotalsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListUsageTotalsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListUsageTotalsCommand = (function (_super) {
7
+ __extends(ListUsageTotalsCommand, _super);
8
+ function ListUsageTotalsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListUsageTotalsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "ListUsageTotalsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "ListUsageTotalsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListUsageTotalsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListUsageTotalsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListUsageTotalsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListUsageTotalsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListUsageTotalsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListUsageTotalsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListUsageTotalsCommand;
38
+ }($Command));
39
+ export { ListUsageTotalsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class TagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "TagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1TagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1TagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
5
- export class UntagResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "UntagResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UntagResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UntagResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };