@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 { DescribeAssessmentTargetsRequestFilterSensitiveLog, DescribeAssessmentTargetsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeAssessmentTargetsCommand, serializeAws_json1_1DescribeAssessmentTargetsCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeAssessmentTargetsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeAssessmentTargetsCommand = (function (_super) {
7
+ __extends(DescribeAssessmentTargetsCommand, _super);
8
+ function DescribeAssessmentTargetsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeAssessmentTargetsCommand.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 = "DescribeAssessmentTargetsCommand";
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 = "DescribeAssessmentTargetsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeAssessmentTargetsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeAssessmentTargetsResponseFilterSensitiveLog,
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
+ DescribeAssessmentTargetsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeAssessmentTargetsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeAssessmentTargetsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeAssessmentTargetsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeAssessmentTargetsCommand;
38
+ }($Command));
39
+ export { DescribeAssessmentTargetsCommand };
@@ -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 { DescribeAssessmentTemplatesRequestFilterSensitiveLog, DescribeAssessmentTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeAssessmentTemplatesCommand, serializeAws_json1_1DescribeAssessmentTemplatesCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeAssessmentTemplatesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeAssessmentTemplatesCommand = (function (_super) {
7
+ __extends(DescribeAssessmentTemplatesCommand, _super);
8
+ function DescribeAssessmentTemplatesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeAssessmentTemplatesCommand.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 = "DescribeAssessmentTemplatesCommand";
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 = "DescribeAssessmentTemplatesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeAssessmentTemplatesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeAssessmentTemplatesResponseFilterSensitiveLog,
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
+ DescribeAssessmentTemplatesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeAssessmentTemplatesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeAssessmentTemplatesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeAssessmentTemplatesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeAssessmentTemplatesCommand;
38
+ }($Command));
39
+ export { DescribeAssessmentTemplatesCommand };
@@ -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 { DescribeCrossAccountAccessRoleResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeCrossAccountAccessRoleCommand, serializeAws_json1_1DescribeCrossAccountAccessRoleCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeCrossAccountAccessRoleCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeCrossAccountAccessRoleCommand = (function (_super) {
7
+ __extends(DescribeCrossAccountAccessRoleCommand, _super);
8
+ function DescribeCrossAccountAccessRoleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeCrossAccountAccessRoleCommand.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 = "DescribeCrossAccountAccessRoleCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
20
- inputFilterSensitiveLog: (input) => input,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "InspectorClient";
18
+ var commandName = "DescribeCrossAccountAccessRoleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: function (input) { return input; },
21
24
  outputFilterSensitiveLog: DescribeCrossAccountAccessRoleResponseFilterSensitiveLog,
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
+ DescribeCrossAccountAccessRoleCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeCrossAccountAccessRoleCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeCrossAccountAccessRoleCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeCrossAccountAccessRoleCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeCrossAccountAccessRoleCommand;
38
+ }($Command));
39
+ export { DescribeCrossAccountAccessRoleCommand };
@@ -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 { DescribeExclusionsRequestFilterSensitiveLog, DescribeExclusionsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeExclusionsCommand, serializeAws_json1_1DescribeExclusionsCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeExclusionsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeExclusionsCommand = (function (_super) {
7
+ __extends(DescribeExclusionsCommand, _super);
8
+ function DescribeExclusionsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeExclusionsCommand.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 = "DescribeExclusionsCommand";
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 = "DescribeExclusionsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeExclusionsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeExclusionsResponseFilterSensitiveLog,
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
+ DescribeExclusionsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeExclusionsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeExclusionsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeExclusionsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeExclusionsCommand;
38
+ }($Command));
39
+ export { DescribeExclusionsCommand };
@@ -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 { DescribeFindingsRequestFilterSensitiveLog, DescribeFindingsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeFindingsCommand, serializeAws_json1_1DescribeFindingsCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeFindingsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeFindingsCommand = (function (_super) {
7
+ __extends(DescribeFindingsCommand, _super);
8
+ function DescribeFindingsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeFindingsCommand.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 = "DescribeFindingsCommand";
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 = "DescribeFindingsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeFindingsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeFindingsResponseFilterSensitiveLog,
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
+ DescribeFindingsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeFindingsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeFindingsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeFindingsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeFindingsCommand;
38
+ }($Command));
39
+ export { DescribeFindingsCommand };
@@ -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 { DescribeResourceGroupsRequestFilterSensitiveLog, DescribeResourceGroupsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeResourceGroupsCommand, serializeAws_json1_1DescribeResourceGroupsCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeResourceGroupsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeResourceGroupsCommand = (function (_super) {
7
+ __extends(DescribeResourceGroupsCommand, _super);
8
+ function DescribeResourceGroupsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeResourceGroupsCommand.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 = "DescribeResourceGroupsCommand";
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 = "DescribeResourceGroupsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeResourceGroupsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeResourceGroupsResponseFilterSensitiveLog,
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
+ DescribeResourceGroupsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeResourceGroupsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeResourceGroupsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeResourceGroupsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeResourceGroupsCommand;
38
+ }($Command));
39
+ export { DescribeResourceGroupsCommand };
@@ -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 { DescribeRulesPackagesRequestFilterSensitiveLog, DescribeRulesPackagesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeRulesPackagesCommand, serializeAws_json1_1DescribeRulesPackagesCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeRulesPackagesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeRulesPackagesCommand = (function (_super) {
7
+ __extends(DescribeRulesPackagesCommand, _super);
8
+ function DescribeRulesPackagesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeRulesPackagesCommand.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 = "DescribeRulesPackagesCommand";
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 = "DescribeRulesPackagesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeRulesPackagesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeRulesPackagesResponseFilterSensitiveLog,
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
+ DescribeRulesPackagesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeRulesPackagesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeRulesPackagesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeRulesPackagesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeRulesPackagesCommand;
38
+ }($Command));
39
+ export { DescribeRulesPackagesCommand };
@@ -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 { GetAssessmentReportRequestFilterSensitiveLog, GetAssessmentReportResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetAssessmentReportCommand, serializeAws_json1_1GetAssessmentReportCommand, } from "../protocols/Aws_json1_1";
5
- export class GetAssessmentReportCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetAssessmentReportCommand = (function (_super) {
7
+ __extends(GetAssessmentReportCommand, _super);
8
+ function GetAssessmentReportCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetAssessmentReportCommand.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 = "GetAssessmentReportCommand";
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 = "GetAssessmentReportCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetAssessmentReportRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetAssessmentReportResponseFilterSensitiveLog,
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
+ GetAssessmentReportCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetAssessmentReportCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetAssessmentReportCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetAssessmentReportCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetAssessmentReportCommand;
38
+ }($Command));
39
+ export { GetAssessmentReportCommand };
@@ -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 { GetExclusionsPreviewRequestFilterSensitiveLog, GetExclusionsPreviewResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetExclusionsPreviewCommand, serializeAws_json1_1GetExclusionsPreviewCommand, } from "../protocols/Aws_json1_1";
5
- export class GetExclusionsPreviewCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetExclusionsPreviewCommand = (function (_super) {
7
+ __extends(GetExclusionsPreviewCommand, _super);
8
+ function GetExclusionsPreviewCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetExclusionsPreviewCommand.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 = "GetExclusionsPreviewCommand";
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 = "GetExclusionsPreviewCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetExclusionsPreviewRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetExclusionsPreviewResponseFilterSensitiveLog,
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
+ GetExclusionsPreviewCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetExclusionsPreviewCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetExclusionsPreviewCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetExclusionsPreviewCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetExclusionsPreviewCommand;
38
+ }($Command));
39
+ export { GetExclusionsPreviewCommand };
@@ -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 { GetTelemetryMetadataRequestFilterSensitiveLog, GetTelemetryMetadataResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetTelemetryMetadataCommand, serializeAws_json1_1GetTelemetryMetadataCommand, } from "../protocols/Aws_json1_1";
5
- export class GetTelemetryMetadataCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetTelemetryMetadataCommand = (function (_super) {
7
+ __extends(GetTelemetryMetadataCommand, _super);
8
+ function GetTelemetryMetadataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetTelemetryMetadataCommand.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 = "GetTelemetryMetadataCommand";
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 = "GetTelemetryMetadataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetTelemetryMetadataRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetTelemetryMetadataResponseFilterSensitiveLog,
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
+ GetTelemetryMetadataCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetTelemetryMetadataCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetTelemetryMetadataCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetTelemetryMetadataCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetTelemetryMetadataCommand;
38
+ }($Command));
39
+ export { GetTelemetryMetadataCommand };