@aws-sdk/client-inspector2 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Inspector2.js +137 -130
  4. package/dist-es/Inspector2Client.js +28 -22
  5. package/dist-es/commands/AssociateMemberCommand.js +28 -21
  6. package/dist-es/commands/BatchGetAccountStatusCommand.js +28 -21
  7. package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +28 -21
  8. package/dist-es/commands/CancelFindingsReportCommand.js +28 -21
  9. package/dist-es/commands/CreateFilterCommand.js +28 -21
  10. package/dist-es/commands/CreateFindingsReportCommand.js +28 -21
  11. package/dist-es/commands/DeleteFilterCommand.js +28 -21
  12. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +28 -21
  13. package/dist-es/commands/DisableCommand.js +28 -21
  14. package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +28 -21
  15. package/dist-es/commands/DisassociateMemberCommand.js +28 -21
  16. package/dist-es/commands/EnableCommand.js +28 -21
  17. package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +28 -21
  18. package/dist-es/commands/GetConfigurationCommand.js +28 -21
  19. package/dist-es/commands/GetDelegatedAdminAccountCommand.js +28 -21
  20. package/dist-es/commands/GetFindingsReportStatusCommand.js +28 -21
  21. package/dist-es/commands/GetMemberCommand.js +28 -21
  22. package/dist-es/commands/ListAccountPermissionsCommand.js +28 -21
  23. package/dist-es/commands/ListCoverageCommand.js +28 -21
  24. package/dist-es/commands/ListCoverageStatisticsCommand.js +28 -21
  25. package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +28 -21
  26. package/dist-es/commands/ListFiltersCommand.js +28 -21
  27. package/dist-es/commands/ListFindingAggregationsCommand.js +28 -21
  28. package/dist-es/commands/ListFindingsCommand.js +28 -21
  29. package/dist-es/commands/ListMembersCommand.js +28 -21
  30. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  31. package/dist-es/commands/ListUsageTotalsCommand.js +28 -21
  32. package/dist-es/commands/TagResourceCommand.js +28 -21
  33. package/dist-es/commands/UntagResourceCommand.js +28 -21
  34. package/dist-es/commands/UpdateConfigurationCommand.js +28 -21
  35. package/dist-es/commands/UpdateFilterCommand.js +28 -21
  36. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +28 -21
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/Inspector2ServiceException.js +10 -5
  39. package/dist-es/models/models_0.js +244 -523
  40. package/dist-es/pagination/ListAccountPermissionsPaginator.js +68 -25
  41. package/dist-es/pagination/ListCoveragePaginator.js +68 -25
  42. package/dist-es/pagination/ListCoverageStatisticsPaginator.js +67 -24
  43. package/dist-es/pagination/ListDelegatedAdminAccountsPaginator.js +68 -25
  44. package/dist-es/pagination/ListFiltersPaginator.js +68 -25
  45. package/dist-es/pagination/ListFindingAggregationsPaginator.js +68 -25
  46. package/dist-es/pagination/ListFindingsPaginator.js +68 -25
  47. package/dist-es/pagination/ListMembersPaginator.js +68 -25
  48. package/dist-es/pagination/ListUsageTotalsPaginator.js +68 -25
  49. package/dist-es/protocols/Aws_restJson1.js +3623 -2799
  50. package/dist-es/runtimeConfig.browser.js +12 -26
  51. package/dist-es/runtimeConfig.js +12 -30
  52. package/dist-es/runtimeConfig.native.js +5 -8
  53. package/dist-es/runtimeConfig.shared.js +11 -8
  54. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class Inspector2Client extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var Inspector2Client = (function (_super) {
13
+ __extends(Inspector2Client, _super);
14
+ function Inspector2Client(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ Inspector2Client.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return Inspector2Client;
38
+ }(__Client));
39
+ export { Inspector2Client };
@@ -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 { AssociateMemberRequestFilterSensitiveLog, AssociateMemberResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1AssociateMemberCommand, serializeAws_restJson1AssociateMemberCommand, } from "../protocols/Aws_restJson1";
5
- export class AssociateMemberCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateMemberCommand = (function (_super) {
7
+ __extends(AssociateMemberCommand, _super);
8
+ function AssociateMemberCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateMemberCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "AssociateMemberCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "AssociateMemberCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateMemberRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: AssociateMemberResponseFilterSensitiveLog,
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
+ AssociateMemberCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1AssociateMemberCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateMemberCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1AssociateMemberCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateMemberCommand;
38
+ }($Command));
39
+ export { AssociateMemberCommand };
@@ -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 { BatchGetAccountStatusRequestFilterSensitiveLog, BatchGetAccountStatusResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1BatchGetAccountStatusCommand, serializeAws_restJson1BatchGetAccountStatusCommand, } from "../protocols/Aws_restJson1";
5
- export class BatchGetAccountStatusCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BatchGetAccountStatusCommand = (function (_super) {
7
+ __extends(BatchGetAccountStatusCommand, _super);
8
+ function BatchGetAccountStatusCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BatchGetAccountStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "BatchGetAccountStatusCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "BatchGetAccountStatusCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BatchGetAccountStatusRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BatchGetAccountStatusResponseFilterSensitiveLog,
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
+ BatchGetAccountStatusCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1BatchGetAccountStatusCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BatchGetAccountStatusCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1BatchGetAccountStatusCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BatchGetAccountStatusCommand;
38
+ }($Command));
39
+ export { BatchGetAccountStatusCommand };
@@ -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 { BatchGetFreeTrialInfoRequestFilterSensitiveLog, BatchGetFreeTrialInfoResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1BatchGetFreeTrialInfoCommand, serializeAws_restJson1BatchGetFreeTrialInfoCommand, } from "../protocols/Aws_restJson1";
5
- export class BatchGetFreeTrialInfoCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BatchGetFreeTrialInfoCommand = (function (_super) {
7
+ __extends(BatchGetFreeTrialInfoCommand, _super);
8
+ function BatchGetFreeTrialInfoCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BatchGetFreeTrialInfoCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "BatchGetFreeTrialInfoCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "BatchGetFreeTrialInfoCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BatchGetFreeTrialInfoRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BatchGetFreeTrialInfoResponseFilterSensitiveLog,
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
+ BatchGetFreeTrialInfoCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1BatchGetFreeTrialInfoCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BatchGetFreeTrialInfoCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1BatchGetFreeTrialInfoCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BatchGetFreeTrialInfoCommand;
38
+ }($Command));
39
+ export { BatchGetFreeTrialInfoCommand };
@@ -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 { CancelFindingsReportRequestFilterSensitiveLog, CancelFindingsReportResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CancelFindingsReportCommand, serializeAws_restJson1CancelFindingsReportCommand, } from "../protocols/Aws_restJson1";
5
- export class CancelFindingsReportCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CancelFindingsReportCommand = (function (_super) {
7
+ __extends(CancelFindingsReportCommand, _super);
8
+ function CancelFindingsReportCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CancelFindingsReportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "CancelFindingsReportCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "CancelFindingsReportCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CancelFindingsReportRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CancelFindingsReportResponseFilterSensitiveLog,
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
+ CancelFindingsReportCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CancelFindingsReportCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CancelFindingsReportCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CancelFindingsReportCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CancelFindingsReportCommand;
38
+ }($Command));
39
+ export { CancelFindingsReportCommand };
@@ -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 { CreateFilterRequestFilterSensitiveLog, CreateFilterResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateFilterCommand, serializeAws_restJson1CreateFilterCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateFilterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFilterCommand = (function (_super) {
7
+ __extends(CreateFilterCommand, _super);
8
+ function CreateFilterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFilterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "CreateFilterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "CreateFilterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFilterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFilterResponseFilterSensitiveLog,
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
+ CreateFilterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateFilterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFilterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateFilterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFilterCommand;
38
+ }($Command));
39
+ export { CreateFilterCommand };
@@ -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 { CreateFindingsReportRequestFilterSensitiveLog, CreateFindingsReportResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateFindingsReportCommand, serializeAws_restJson1CreateFindingsReportCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateFindingsReportCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFindingsReportCommand = (function (_super) {
7
+ __extends(CreateFindingsReportCommand, _super);
8
+ function CreateFindingsReportCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFindingsReportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "CreateFindingsReportCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "CreateFindingsReportCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFindingsReportRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFindingsReportResponseFilterSensitiveLog,
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
+ CreateFindingsReportCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateFindingsReportCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFindingsReportCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateFindingsReportCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFindingsReportCommand;
38
+ }($Command));
39
+ export { CreateFindingsReportCommand };
@@ -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 { DeleteFilterRequestFilterSensitiveLog, DeleteFilterResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteFilterCommand, serializeAws_restJson1DeleteFilterCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteFilterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteFilterCommand = (function (_super) {
7
+ __extends(DeleteFilterCommand, _super);
8
+ function DeleteFilterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteFilterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "DeleteFilterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "DeleteFilterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteFilterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteFilterResponseFilterSensitiveLog,
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
+ DeleteFilterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteFilterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteFilterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteFilterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteFilterCommand;
38
+ }($Command));
39
+ export { DeleteFilterCommand };
@@ -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 { DescribeOrganizationConfigurationRequestFilterSensitiveLog, DescribeOrganizationConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeOrganizationConfigurationCommand, serializeAws_restJson1DescribeOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeOrganizationConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeOrganizationConfigurationCommand = (function (_super) {
7
+ __extends(DescribeOrganizationConfigurationCommand, _super);
8
+ function DescribeOrganizationConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeOrganizationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "DescribeOrganizationConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "DescribeOrganizationConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeOrganizationConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeOrganizationConfigurationResponseFilterSensitiveLog,
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
+ DescribeOrganizationConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeOrganizationConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeOrganizationConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeOrganizationConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeOrganizationConfigurationCommand;
38
+ }($Command));
39
+ export { DescribeOrganizationConfigurationCommand };
@@ -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 { DisableRequestFilterSensitiveLog, DisableResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DisableCommand, serializeAws_restJson1DisableCommand, } from "../protocols/Aws_restJson1";
5
- export class DisableCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DisableCommand = (function (_super) {
7
+ __extends(DisableCommand, _super);
8
+ function DisableCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DisableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "Inspector2Client";
15
- const commandName = "DisableCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "Inspector2Client";
18
+ var commandName = "DisableCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DisableRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DisableResponseFilterSensitiveLog,
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
+ DisableCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DisableCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DisableCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DisableCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DisableCommand;
38
+ }($Command));
39
+ export { DisableCommand };