@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 { RegisterCrossAccountAccessRoleRequestFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand, serializeAws_json1_1RegisterCrossAccountAccessRoleCommand, } from "../protocols/Aws_json1_1";
5
- export class RegisterCrossAccountAccessRoleCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RegisterCrossAccountAccessRoleCommand = (function (_super) {
7
+ __extends(RegisterCrossAccountAccessRoleCommand, _super);
8
+ function RegisterCrossAccountAccessRoleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RegisterCrossAccountAccessRoleCommand.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 = "RegisterCrossAccountAccessRoleCommand";
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 = "RegisterCrossAccountAccessRoleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RegisterCrossAccountAccessRoleRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
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
+ RegisterCrossAccountAccessRoleCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1RegisterCrossAccountAccessRoleCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RegisterCrossAccountAccessRoleCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RegisterCrossAccountAccessRoleCommand;
38
+ }($Command));
39
+ export { RegisterCrossAccountAccessRoleCommand };
@@ -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 { RemoveAttributesFromFindingsRequestFilterSensitiveLog, RemoveAttributesFromFindingsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RemoveAttributesFromFindingsCommand, serializeAws_json1_1RemoveAttributesFromFindingsCommand, } from "../protocols/Aws_json1_1";
5
- export class RemoveAttributesFromFindingsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RemoveAttributesFromFindingsCommand = (function (_super) {
7
+ __extends(RemoveAttributesFromFindingsCommand, _super);
8
+ function RemoveAttributesFromFindingsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RemoveAttributesFromFindingsCommand.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 = "RemoveAttributesFromFindingsCommand";
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 = "RemoveAttributesFromFindingsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RemoveAttributesFromFindingsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: RemoveAttributesFromFindingsResponseFilterSensitiveLog,
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
+ RemoveAttributesFromFindingsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1RemoveAttributesFromFindingsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RemoveAttributesFromFindingsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RemoveAttributesFromFindingsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RemoveAttributesFromFindingsCommand;
38
+ }($Command));
39
+ export { RemoveAttributesFromFindingsCommand };
@@ -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 { SetTagsForResourceRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SetTagsForResourceCommand, serializeAws_json1_1SetTagsForResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class SetTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SetTagsForResourceCommand = (function (_super) {
7
+ __extends(SetTagsForResourceCommand, _super);
8
+ function SetTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SetTagsForResourceCommand.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 = "SetTagsForResourceCommand";
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 = "SetTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SetTagsForResourceRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
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
+ SetTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1SetTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SetTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SetTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SetTagsForResourceCommand;
38
+ }($Command));
39
+ export { SetTagsForResourceCommand };
@@ -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 { StartAssessmentRunRequestFilterSensitiveLog, StartAssessmentRunResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartAssessmentRunCommand, serializeAws_json1_1StartAssessmentRunCommand, } from "../protocols/Aws_json1_1";
5
- export class StartAssessmentRunCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartAssessmentRunCommand = (function (_super) {
7
+ __extends(StartAssessmentRunCommand, _super);
8
+ function StartAssessmentRunCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartAssessmentRunCommand.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 = "StartAssessmentRunCommand";
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 = "StartAssessmentRunCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartAssessmentRunRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartAssessmentRunResponseFilterSensitiveLog,
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
+ StartAssessmentRunCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartAssessmentRunCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartAssessmentRunCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartAssessmentRunCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartAssessmentRunCommand;
38
+ }($Command));
39
+ export { StartAssessmentRunCommand };
@@ -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 { StopAssessmentRunRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopAssessmentRunCommand, serializeAws_json1_1StopAssessmentRunCommand, } from "../protocols/Aws_json1_1";
5
- export class StopAssessmentRunCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopAssessmentRunCommand = (function (_super) {
7
+ __extends(StopAssessmentRunCommand, _super);
8
+ function StopAssessmentRunCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopAssessmentRunCommand.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 = "StopAssessmentRunCommand";
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 = "StopAssessmentRunCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopAssessmentRunRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
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
+ StopAssessmentRunCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopAssessmentRunCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopAssessmentRunCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopAssessmentRunCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopAssessmentRunCommand;
38
+ }($Command));
39
+ export { StopAssessmentRunCommand };
@@ -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 { SubscribeToEventRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SubscribeToEventCommand, serializeAws_json1_1SubscribeToEventCommand, } from "../protocols/Aws_json1_1";
5
- export class SubscribeToEventCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var SubscribeToEventCommand = (function (_super) {
7
+ __extends(SubscribeToEventCommand, _super);
8
+ function SubscribeToEventCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SubscribeToEventCommand.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 = "SubscribeToEventCommand";
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 = "SubscribeToEventCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: SubscribeToEventRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
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
+ SubscribeToEventCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1SubscribeToEventCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SubscribeToEventCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SubscribeToEventCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SubscribeToEventCommand;
38
+ }($Command));
39
+ export { SubscribeToEventCommand };
@@ -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 { UnsubscribeFromEventRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UnsubscribeFromEventCommand, serializeAws_json1_1UnsubscribeFromEventCommand, } from "../protocols/Aws_json1_1";
5
- export class UnsubscribeFromEventCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UnsubscribeFromEventCommand = (function (_super) {
7
+ __extends(UnsubscribeFromEventCommand, _super);
8
+ function UnsubscribeFromEventCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UnsubscribeFromEventCommand.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 = "UnsubscribeFromEventCommand";
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 = "UnsubscribeFromEventCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UnsubscribeFromEventRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
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
+ UnsubscribeFromEventCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UnsubscribeFromEventCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UnsubscribeFromEventCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UnsubscribeFromEventCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UnsubscribeFromEventCommand;
38
+ }($Command));
39
+ export { UnsubscribeFromEventCommand };
@@ -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 { UpdateAssessmentTargetRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateAssessmentTargetCommand, serializeAws_json1_1UpdateAssessmentTargetCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateAssessmentTargetCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateAssessmentTargetCommand = (function (_super) {
7
+ __extends(UpdateAssessmentTargetCommand, _super);
8
+ function UpdateAssessmentTargetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateAssessmentTargetCommand.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 = "UpdateAssessmentTargetCommand";
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 = "UpdateAssessmentTargetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateAssessmentTargetRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
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
+ UpdateAssessmentTargetCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateAssessmentTargetCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateAssessmentTargetCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateAssessmentTargetCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateAssessmentTargetCommand;
38
+ }($Command));
39
+ export { UpdateAssessmentTargetCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "us-east-1": {
4
5
  variants: [
5
6
  {
@@ -49,7 +50,7 @@ const regionHash = {
49
50
  ],
50
51
  },
51
52
  };
52
- const partitionHash = {
53
+ var partitionHash = {
53
54
  aws: {
54
55
  regions: [
55
56
  "af-south-1",
@@ -173,9 +174,8 @@ const partitionHash = {
173
174
  ],
174
175
  },
175
176
  };
176
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
177
- ...options,
178
- signingService: "inspector",
179
- regionHash,
180
- partitionHash,
181
- });
177
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
178
+ return __generator(this, function (_a) {
179
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "inspector", regionHash: regionHash, partitionHash: partitionHash }))];
180
+ });
181
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class InspectorServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, InspectorServiceException.prototype);
3
+ var InspectorServiceException = (function (_super) {
4
+ __extends(InspectorServiceException, _super);
5
+ function InspectorServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, InspectorServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return InspectorServiceException;
11
+ }(__ServiceException));
12
+ export { InspectorServiceException };