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