@aws-sdk/client-inspector 3.181.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 (59) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Inspector.js +150 -157
  3. package/dist-es/InspectorClient.js +22 -28
  4. package/dist-es/commands/AddAttributesToFindingsCommand.js +21 -28
  5. package/dist-es/commands/CreateAssessmentTargetCommand.js +21 -28
  6. package/dist-es/commands/CreateAssessmentTemplateCommand.js +21 -28
  7. package/dist-es/commands/CreateExclusionsPreviewCommand.js +21 -28
  8. package/dist-es/commands/CreateResourceGroupCommand.js +21 -28
  9. package/dist-es/commands/DeleteAssessmentRunCommand.js +22 -29
  10. package/dist-es/commands/DeleteAssessmentTargetCommand.js +22 -29
  11. package/dist-es/commands/DeleteAssessmentTemplateCommand.js +22 -29
  12. package/dist-es/commands/DescribeAssessmentRunsCommand.js +21 -28
  13. package/dist-es/commands/DescribeAssessmentTargetsCommand.js +21 -28
  14. package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +21 -28
  15. package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +22 -29
  16. package/dist-es/commands/DescribeExclusionsCommand.js +21 -28
  17. package/dist-es/commands/DescribeFindingsCommand.js +21 -28
  18. package/dist-es/commands/DescribeResourceGroupsCommand.js +21 -28
  19. package/dist-es/commands/DescribeRulesPackagesCommand.js +21 -28
  20. package/dist-es/commands/GetAssessmentReportCommand.js +21 -28
  21. package/dist-es/commands/GetExclusionsPreviewCommand.js +21 -28
  22. package/dist-es/commands/GetTelemetryMetadataCommand.js +21 -28
  23. package/dist-es/commands/ListAssessmentRunAgentsCommand.js +21 -28
  24. package/dist-es/commands/ListAssessmentRunsCommand.js +21 -28
  25. package/dist-es/commands/ListAssessmentTargetsCommand.js +21 -28
  26. package/dist-es/commands/ListAssessmentTemplatesCommand.js +21 -28
  27. package/dist-es/commands/ListEventSubscriptionsCommand.js +21 -28
  28. package/dist-es/commands/ListExclusionsCommand.js +21 -28
  29. package/dist-es/commands/ListFindingsCommand.js +21 -28
  30. package/dist-es/commands/ListRulesPackagesCommand.js +21 -28
  31. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  32. package/dist-es/commands/PreviewAgentsCommand.js +21 -28
  33. package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +22 -29
  34. package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +21 -28
  35. package/dist-es/commands/SetTagsForResourceCommand.js +22 -29
  36. package/dist-es/commands/StartAssessmentRunCommand.js +21 -28
  37. package/dist-es/commands/StopAssessmentRunCommand.js +22 -29
  38. package/dist-es/commands/SubscribeToEventCommand.js +22 -29
  39. package/dist-es/commands/UnsubscribeFromEventCommand.js +22 -29
  40. package/dist-es/commands/UpdateAssessmentTargetCommand.js +22 -29
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/InspectorServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +431 -238
  44. package/dist-es/pagination/GetExclusionsPreviewPaginator.js +25 -68
  45. package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js +25 -68
  46. package/dist-es/pagination/ListAssessmentRunsPaginator.js +25 -68
  47. package/dist-es/pagination/ListAssessmentTargetsPaginator.js +25 -68
  48. package/dist-es/pagination/ListAssessmentTemplatesPaginator.js +25 -68
  49. package/dist-es/pagination/ListEventSubscriptionsPaginator.js +25 -68
  50. package/dist-es/pagination/ListExclusionsPaginator.js +25 -68
  51. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  52. package/dist-es/pagination/ListRulesPackagesPaginator.js +25 -68
  53. package/dist-es/pagination/PreviewAgentsPaginator.js +25 -68
  54. package/dist-es/protocols/Aws_json1_1.js +2604 -3357
  55. package/dist-es/runtimeConfig.browser.js +26 -12
  56. package/dist-es/runtimeConfig.js +30 -12
  57. package/dist-es/runtimeConfig.native.js +8 -5
  58. package/dist-es/runtimeConfig.shared.js +8 -11
  59. 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 { ListAssessmentRunAgentsRequestFilterSensitiveLog, ListAssessmentRunAgentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAssessmentRunAgentsCommand, serializeAws_json1_1ListAssessmentRunAgentsCommand, } from "../protocols/Aws_json1_1";
6
- var ListAssessmentRunAgentsCommand = (function (_super) {
7
- __extends(ListAssessmentRunAgentsCommand, _super);
8
- function ListAssessmentRunAgentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssessmentRunAgentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssessmentRunAgentsCommand.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 = "InspectorClient";
18
- var commandName = "ListAssessmentRunAgentsCommand";
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 = "InspectorClient";
15
+ const commandName = "ListAssessmentRunAgentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssessmentRunAgentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssessmentRunAgentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssessmentRunAgentsCommand.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_json1_1ListAssessmentRunAgentsCommand(input, context);
33
- };
34
- ListAssessmentRunAgentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAssessmentRunAgentsCommand(output, context);
36
- };
37
- return ListAssessmentRunAgentsCommand;
38
- }($Command));
39
- export { ListAssessmentRunAgentsCommand };
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 { ListAssessmentRunsRequestFilterSensitiveLog, ListAssessmentRunsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAssessmentRunsCommand, serializeAws_json1_1ListAssessmentRunsCommand, } from "../protocols/Aws_json1_1";
6
- var ListAssessmentRunsCommand = (function (_super) {
7
- __extends(ListAssessmentRunsCommand, _super);
8
- function ListAssessmentRunsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssessmentRunsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssessmentRunsCommand.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 = "InspectorClient";
18
- var commandName = "ListAssessmentRunsCommand";
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 = "InspectorClient";
15
+ const commandName = "ListAssessmentRunsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssessmentRunsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssessmentRunsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssessmentRunsCommand.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_json1_1ListAssessmentRunsCommand(input, context);
33
- };
34
- ListAssessmentRunsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAssessmentRunsCommand(output, context);
36
- };
37
- return ListAssessmentRunsCommand;
38
- }($Command));
39
- export { ListAssessmentRunsCommand };
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 { ListAssessmentTargetsRequestFilterSensitiveLog, ListAssessmentTargetsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAssessmentTargetsCommand, serializeAws_json1_1ListAssessmentTargetsCommand, } from "../protocols/Aws_json1_1";
6
- var ListAssessmentTargetsCommand = (function (_super) {
7
- __extends(ListAssessmentTargetsCommand, _super);
8
- function ListAssessmentTargetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssessmentTargetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssessmentTargetsCommand.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 = "InspectorClient";
18
- var commandName = "ListAssessmentTargetsCommand";
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 = "InspectorClient";
15
+ const commandName = "ListAssessmentTargetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssessmentTargetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssessmentTargetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssessmentTargetsCommand.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_json1_1ListAssessmentTargetsCommand(input, context);
33
- };
34
- ListAssessmentTargetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAssessmentTargetsCommand(output, context);
36
- };
37
- return ListAssessmentTargetsCommand;
38
- }($Command));
39
- export { ListAssessmentTargetsCommand };
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 { ListAssessmentTemplatesRequestFilterSensitiveLog, ListAssessmentTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAssessmentTemplatesCommand, serializeAws_json1_1ListAssessmentTemplatesCommand, } from "../protocols/Aws_json1_1";
6
- var ListAssessmentTemplatesCommand = (function (_super) {
7
- __extends(ListAssessmentTemplatesCommand, _super);
8
- function ListAssessmentTemplatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssessmentTemplatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssessmentTemplatesCommand.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 = "InspectorClient";
18
- var commandName = "ListAssessmentTemplatesCommand";
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 = "InspectorClient";
15
+ const commandName = "ListAssessmentTemplatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssessmentTemplatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssessmentTemplatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssessmentTemplatesCommand.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_json1_1ListAssessmentTemplatesCommand(input, context);
33
- };
34
- ListAssessmentTemplatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAssessmentTemplatesCommand(output, context);
36
- };
37
- return ListAssessmentTemplatesCommand;
38
- }($Command));
39
- export { ListAssessmentTemplatesCommand };
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 { ListEventSubscriptionsRequestFilterSensitiveLog, ListEventSubscriptionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListEventSubscriptionsCommand, serializeAws_json1_1ListEventSubscriptionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListEventSubscriptionsCommand = (function (_super) {
7
- __extends(ListEventSubscriptionsCommand, _super);
8
- function ListEventSubscriptionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEventSubscriptionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEventSubscriptionsCommand.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 = "InspectorClient";
18
- var commandName = "ListEventSubscriptionsCommand";
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 = "InspectorClient";
15
+ const commandName = "ListEventSubscriptionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEventSubscriptionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEventSubscriptionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEventSubscriptionsCommand.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_json1_1ListEventSubscriptionsCommand(input, context);
33
- };
34
- ListEventSubscriptionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListEventSubscriptionsCommand(output, context);
36
- };
37
- return ListEventSubscriptionsCommand;
38
- }($Command));
39
- export { ListEventSubscriptionsCommand };
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 { ListExclusionsRequestFilterSensitiveLog, ListExclusionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListExclusionsCommand, serializeAws_json1_1ListExclusionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListExclusionsCommand = (function (_super) {
7
- __extends(ListExclusionsCommand, _super);
8
- function ListExclusionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListExclusionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListExclusionsCommand.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 = "InspectorClient";
18
- var commandName = "ListExclusionsCommand";
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 = "InspectorClient";
15
+ const commandName = "ListExclusionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListExclusionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListExclusionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListExclusionsCommand.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_json1_1ListExclusionsCommand(input, context);
33
- };
34
- ListExclusionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListExclusionsCommand(output, context);
36
- };
37
- return ListExclusionsCommand;
38
- }($Command));
39
- export { ListExclusionsCommand };
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 { ListFindingsRequestFilterSensitiveLog, ListFindingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListFindingsCommand, serializeAws_json1_1ListFindingsCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class ListFindingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListFindingsCommand.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 = "InspectorClient";
18
- var commandName = "ListFindingsCommand";
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 = "InspectorClient";
15
+ const commandName = "ListFindingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListFindingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListFindingsResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListFindingsCommand(input, context);
33
- };
34
- ListFindingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListFindingsCommand(output, context);
36
- };
37
- return ListFindingsCommand;
38
- }($Command));
39
- export { ListFindingsCommand };
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 { ListRulesPackagesRequestFilterSensitiveLog, ListRulesPackagesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListRulesPackagesCommand, serializeAws_json1_1ListRulesPackagesCommand, } from "../protocols/Aws_json1_1";
6
- var ListRulesPackagesCommand = (function (_super) {
7
- __extends(ListRulesPackagesCommand, _super);
8
- function ListRulesPackagesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRulesPackagesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRulesPackagesCommand.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 = "InspectorClient";
18
- var commandName = "ListRulesPackagesCommand";
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 = "InspectorClient";
15
+ const commandName = "ListRulesPackagesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRulesPackagesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRulesPackagesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRulesPackagesCommand.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_json1_1ListRulesPackagesCommand(input, context);
33
- };
34
- ListRulesPackagesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListRulesPackagesCommand(output, context);
36
- };
37
- return ListRulesPackagesCommand;
38
- }($Command));
39
- export { ListRulesPackagesCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "InspectorClient";
18
- var commandName = "ListTagsForResourceCommand";
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 = "InspectorClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { PreviewAgentsRequestFilterSensitiveLog, PreviewAgentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PreviewAgentsCommand, serializeAws_json1_1PreviewAgentsCommand, } from "../protocols/Aws_json1_1";
6
- var PreviewAgentsCommand = (function (_super) {
7
- __extends(PreviewAgentsCommand, _super);
8
- function PreviewAgentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PreviewAgentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PreviewAgentsCommand.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 = "InspectorClient";
18
- var commandName = "PreviewAgentsCommand";
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 = "InspectorClient";
15
+ const commandName = "PreviewAgentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PreviewAgentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PreviewAgentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PreviewAgentsCommand.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_json1_1PreviewAgentsCommand(input, context);
33
- };
34
- PreviewAgentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PreviewAgentsCommand(output, context);
36
- };
37
- return PreviewAgentsCommand;
38
- }($Command));
39
- export { PreviewAgentsCommand };
31
+ }
32
+ }