@aws-sdk/client-auditmanager 3.42.0 → 3.47.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 (78) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/AuditManager.js +90 -0
  3. package/dist-cjs/commands/GetInsightsByAssessmentCommand.js +36 -0
  4. package/dist-cjs/commands/GetInsightsCommand.js +36 -0
  5. package/dist-cjs/commands/ListAssessmentControlInsightsByControlDomainCommand.js +36 -0
  6. package/dist-cjs/commands/ListControlDomainInsightsByAssessmentCommand.js +36 -0
  7. package/dist-cjs/commands/ListControlDomainInsightsCommand.js +36 -0
  8. package/dist-cjs/commands/ListControlInsightsByControlDomainCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoints.js +1 -0
  11. package/dist-cjs/models/models_0.js +112 -28
  12. package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +35 -0
  13. package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +35 -0
  14. package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +35 -0
  15. package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +35 -0
  16. package/dist-cjs/pagination/index.js +4 -0
  17. package/dist-cjs/protocols/Aws_restJson1.js +753 -86
  18. package/dist-cjs/runtimeConfig.browser.js +7 -2
  19. package/dist-cjs/runtimeConfig.js +9 -3
  20. package/dist-es/AuditManager.js +90 -0
  21. package/dist-es/commands/GetInsightsByAssessmentCommand.js +39 -0
  22. package/dist-es/commands/GetInsightsCommand.js +39 -0
  23. package/dist-es/commands/ListAssessmentControlInsightsByControlDomainCommand.js +39 -0
  24. package/dist-es/commands/ListControlDomainInsightsByAssessmentCommand.js +39 -0
  25. package/dist-es/commands/ListControlDomainInsightsCommand.js +39 -0
  26. package/dist-es/commands/ListControlInsightsByControlDomainCommand.js +39 -0
  27. package/dist-es/commands/index.js +6 -0
  28. package/dist-es/endpoints.js +1 -0
  29. package/dist-es/models/models_0.js +72 -16
  30. package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +74 -0
  31. package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +74 -0
  32. package/dist-es/pagination/ListControlDomainInsightsPaginator.js +74 -0
  33. package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +74 -0
  34. package/dist-es/pagination/index.js +4 -0
  35. package/dist-es/protocols/Aws_restJson1.js +798 -34
  36. package/dist-es/runtimeConfig.browser.js +12 -3
  37. package/dist-es/runtimeConfig.js +13 -6
  38. package/dist-types/AuditManager.d.ts +69 -2
  39. package/dist-types/AuditManagerClient.d.ts +13 -3
  40. package/dist-types/commands/GetAssessmentCommand.d.ts +1 -1
  41. package/dist-types/commands/GetAssessmentFrameworkCommand.d.ts +1 -1
  42. package/dist-types/commands/GetInsightsByAssessmentCommand.d.ts +35 -0
  43. package/dist-types/commands/GetInsightsCommand.d.ts +35 -0
  44. package/dist-types/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +42 -0
  45. package/dist-types/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +40 -0
  46. package/dist-types/commands/ListControlDomainInsightsCommand.d.ts +41 -0
  47. package/dist-types/commands/ListControlInsightsByControlDomainCommand.d.ts +42 -0
  48. package/dist-types/commands/index.d.ts +6 -0
  49. package/dist-types/models/models_0.d.ts +521 -54
  50. package/dist-types/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +4 -0
  51. package/dist-types/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +4 -0
  52. package/dist-types/pagination/ListControlDomainInsightsPaginator.d.ts +4 -0
  53. package/dist-types/pagination/ListControlInsightsByControlDomainPaginator.d.ts +4 -0
  54. package/dist-types/pagination/index.d.ts +4 -0
  55. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  57. package/dist-types/runtimeConfig.d.ts +4 -3
  58. package/dist-types/runtimeConfig.native.d.ts +1 -0
  59. package/dist-types/ts3.4/AuditManager.d.ts +30 -0
  60. package/dist-types/ts3.4/AuditManagerClient.d.ts +11 -3
  61. package/dist-types/ts3.4/commands/GetInsightsByAssessmentCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/GetInsightsCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/ListControlDomainInsightsCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListControlInsightsByControlDomainCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +224 -16
  69. package/dist-types/ts3.4/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +4 -0
  70. package/dist-types/ts3.4/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +4 -0
  71. package/dist-types/ts3.4/pagination/ListControlDomainInsightsPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/ListControlInsightsByControlDomainPaginator.d.ts +4 -0
  73. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  74. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  75. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  76. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  77. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  78. package/package.json +38 -45
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -30,13 +30,19 @@ import { GetEvidenceCommand } from "./commands/GetEvidenceCommand";
30
30
  import { GetEvidenceFolderCommand, } from "./commands/GetEvidenceFolderCommand";
31
31
  import { GetEvidenceFoldersByAssessmentCommand, } from "./commands/GetEvidenceFoldersByAssessmentCommand";
32
32
  import { GetEvidenceFoldersByAssessmentControlCommand, } from "./commands/GetEvidenceFoldersByAssessmentControlCommand";
33
+ import { GetInsightsByAssessmentCommand, } from "./commands/GetInsightsByAssessmentCommand";
34
+ import { GetInsightsCommand } from "./commands/GetInsightsCommand";
33
35
  import { GetOrganizationAdminAccountCommand, } from "./commands/GetOrganizationAdminAccountCommand";
34
36
  import { GetServicesInScopeCommand, } from "./commands/GetServicesInScopeCommand";
35
37
  import { GetSettingsCommand } from "./commands/GetSettingsCommand";
38
+ import { ListAssessmentControlInsightsByControlDomainCommand, } from "./commands/ListAssessmentControlInsightsByControlDomainCommand";
36
39
  import { ListAssessmentFrameworksCommand, } from "./commands/ListAssessmentFrameworksCommand";
37
40
  import { ListAssessmentFrameworkShareRequestsCommand, } from "./commands/ListAssessmentFrameworkShareRequestsCommand";
38
41
  import { ListAssessmentReportsCommand, } from "./commands/ListAssessmentReportsCommand";
39
42
  import { ListAssessmentsCommand, } from "./commands/ListAssessmentsCommand";
43
+ import { ListControlDomainInsightsByAssessmentCommand, } from "./commands/ListControlDomainInsightsByAssessmentCommand";
44
+ import { ListControlDomainInsightsCommand, } from "./commands/ListControlDomainInsightsCommand";
45
+ import { ListControlInsightsByControlDomainCommand, } from "./commands/ListControlInsightsByControlDomainCommand";
40
46
  import { ListControlsCommand, } from "./commands/ListControlsCommand";
41
47
  import { ListKeywordsForDataSourceCommand, } from "./commands/ListKeywordsForDataSourceCommand";
42
48
  import { ListNotificationsCommand, } from "./commands/ListNotificationsCommand";
@@ -480,6 +486,34 @@ var AuditManager = (function (_super) {
480
486
  return this.send(command, optionsOrCb);
481
487
  }
482
488
  };
489
+ AuditManager.prototype.getInsights = function (args, optionsOrCb, cb) {
490
+ var command = new GetInsightsCommand(args);
491
+ if (typeof optionsOrCb === "function") {
492
+ this.send(command, optionsOrCb);
493
+ }
494
+ else if (typeof cb === "function") {
495
+ if (typeof optionsOrCb !== "object")
496
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
497
+ this.send(command, optionsOrCb || {}, cb);
498
+ }
499
+ else {
500
+ return this.send(command, optionsOrCb);
501
+ }
502
+ };
503
+ AuditManager.prototype.getInsightsByAssessment = function (args, optionsOrCb, cb) {
504
+ var command = new GetInsightsByAssessmentCommand(args);
505
+ if (typeof optionsOrCb === "function") {
506
+ this.send(command, optionsOrCb);
507
+ }
508
+ else if (typeof cb === "function") {
509
+ if (typeof optionsOrCb !== "object")
510
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
511
+ this.send(command, optionsOrCb || {}, cb);
512
+ }
513
+ else {
514
+ return this.send(command, optionsOrCb);
515
+ }
516
+ };
483
517
  AuditManager.prototype.getOrganizationAdminAccount = function (args, optionsOrCb, cb) {
484
518
  var command = new GetOrganizationAdminAccountCommand(args);
485
519
  if (typeof optionsOrCb === "function") {
@@ -522,6 +556,20 @@ var AuditManager = (function (_super) {
522
556
  return this.send(command, optionsOrCb);
523
557
  }
524
558
  };
559
+ AuditManager.prototype.listAssessmentControlInsightsByControlDomain = function (args, optionsOrCb, cb) {
560
+ var command = new ListAssessmentControlInsightsByControlDomainCommand(args);
561
+ if (typeof optionsOrCb === "function") {
562
+ this.send(command, optionsOrCb);
563
+ }
564
+ else if (typeof cb === "function") {
565
+ if (typeof optionsOrCb !== "object")
566
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
567
+ this.send(command, optionsOrCb || {}, cb);
568
+ }
569
+ else {
570
+ return this.send(command, optionsOrCb);
571
+ }
572
+ };
525
573
  AuditManager.prototype.listAssessmentFrameworks = function (args, optionsOrCb, cb) {
526
574
  var command = new ListAssessmentFrameworksCommand(args);
527
575
  if (typeof optionsOrCb === "function") {
@@ -578,6 +626,48 @@ var AuditManager = (function (_super) {
578
626
  return this.send(command, optionsOrCb);
579
627
  }
580
628
  };
629
+ AuditManager.prototype.listControlDomainInsights = function (args, optionsOrCb, cb) {
630
+ var command = new ListControlDomainInsightsCommand(args);
631
+ if (typeof optionsOrCb === "function") {
632
+ this.send(command, optionsOrCb);
633
+ }
634
+ else if (typeof cb === "function") {
635
+ if (typeof optionsOrCb !== "object")
636
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
637
+ this.send(command, optionsOrCb || {}, cb);
638
+ }
639
+ else {
640
+ return this.send(command, optionsOrCb);
641
+ }
642
+ };
643
+ AuditManager.prototype.listControlDomainInsightsByAssessment = function (args, optionsOrCb, cb) {
644
+ var command = new ListControlDomainInsightsByAssessmentCommand(args);
645
+ if (typeof optionsOrCb === "function") {
646
+ this.send(command, optionsOrCb);
647
+ }
648
+ else if (typeof cb === "function") {
649
+ if (typeof optionsOrCb !== "object")
650
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
651
+ this.send(command, optionsOrCb || {}, cb);
652
+ }
653
+ else {
654
+ return this.send(command, optionsOrCb);
655
+ }
656
+ };
657
+ AuditManager.prototype.listControlInsightsByControlDomain = function (args, optionsOrCb, cb) {
658
+ var command = new ListControlInsightsByControlDomainCommand(args);
659
+ if (typeof optionsOrCb === "function") {
660
+ this.send(command, optionsOrCb);
661
+ }
662
+ else if (typeof cb === "function") {
663
+ if (typeof optionsOrCb !== "object")
664
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
665
+ this.send(command, optionsOrCb || {}, cb);
666
+ }
667
+ else {
668
+ return this.send(command, optionsOrCb);
669
+ }
670
+ };
581
671
  AuditManager.prototype.listControls = function (args, optionsOrCb, cb) {
582
672
  var command = new ListControlsCommand(args);
583
673
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetInsightsByAssessmentRequest, GetInsightsByAssessmentResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetInsightsByAssessmentCommand, serializeAws_restJson1GetInsightsByAssessmentCommand, } from "../protocols/Aws_restJson1";
6
+ var GetInsightsByAssessmentCommand = (function (_super) {
7
+ __extends(GetInsightsByAssessmentCommand, _super);
8
+ function GetInsightsByAssessmentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetInsightsByAssessmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AuditManagerClient";
18
+ var commandName = "GetInsightsByAssessmentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetInsightsByAssessmentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetInsightsByAssessmentResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetInsightsByAssessmentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetInsightsByAssessmentCommand(input, context);
33
+ };
34
+ GetInsightsByAssessmentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetInsightsByAssessmentCommand(output, context);
36
+ };
37
+ return GetInsightsByAssessmentCommand;
38
+ }($Command));
39
+ export { GetInsightsByAssessmentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetInsightsRequest, GetInsightsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetInsightsCommand, serializeAws_restJson1GetInsightsCommand, } from "../protocols/Aws_restJson1";
6
+ var GetInsightsCommand = (function (_super) {
7
+ __extends(GetInsightsCommand, _super);
8
+ function GetInsightsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetInsightsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AuditManagerClient";
18
+ var commandName = "GetInsightsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetInsightsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetInsightsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetInsightsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetInsightsCommand(input, context);
33
+ };
34
+ GetInsightsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetInsightsCommand(output, context);
36
+ };
37
+ return GetInsightsCommand;
38
+ }($Command));
39
+ export { GetInsightsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListAssessmentControlInsightsByControlDomainRequest, ListAssessmentControlInsightsByControlDomainResponse, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand, serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand, } from "../protocols/Aws_restJson1";
6
+ var ListAssessmentControlInsightsByControlDomainCommand = (function (_super) {
7
+ __extends(ListAssessmentControlInsightsByControlDomainCommand, _super);
8
+ function ListAssessmentControlInsightsByControlDomainCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListAssessmentControlInsightsByControlDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AuditManagerClient";
18
+ var commandName = "ListAssessmentControlInsightsByControlDomainCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListAssessmentControlInsightsByControlDomainRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListAssessmentControlInsightsByControlDomainResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListAssessmentControlInsightsByControlDomainCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand(input, context);
33
+ };
34
+ ListAssessmentControlInsightsByControlDomainCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand(output, context);
36
+ };
37
+ return ListAssessmentControlInsightsByControlDomainCommand;
38
+ }($Command));
39
+ export { ListAssessmentControlInsightsByControlDomainCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListControlDomainInsightsByAssessmentRequest, ListControlDomainInsightsByAssessmentResponse, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand, serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand, } from "../protocols/Aws_restJson1";
6
+ var ListControlDomainInsightsByAssessmentCommand = (function (_super) {
7
+ __extends(ListControlDomainInsightsByAssessmentCommand, _super);
8
+ function ListControlDomainInsightsByAssessmentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListControlDomainInsightsByAssessmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AuditManagerClient";
18
+ var commandName = "ListControlDomainInsightsByAssessmentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListControlDomainInsightsByAssessmentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListControlDomainInsightsByAssessmentResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListControlDomainInsightsByAssessmentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand(input, context);
33
+ };
34
+ ListControlDomainInsightsByAssessmentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand(output, context);
36
+ };
37
+ return ListControlDomainInsightsByAssessmentCommand;
38
+ }($Command));
39
+ export { ListControlDomainInsightsByAssessmentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListControlDomainInsightsRequest, ListControlDomainInsightsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListControlDomainInsightsCommand, serializeAws_restJson1ListControlDomainInsightsCommand, } from "../protocols/Aws_restJson1";
6
+ var ListControlDomainInsightsCommand = (function (_super) {
7
+ __extends(ListControlDomainInsightsCommand, _super);
8
+ function ListControlDomainInsightsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListControlDomainInsightsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AuditManagerClient";
18
+ var commandName = "ListControlDomainInsightsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListControlDomainInsightsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListControlDomainInsightsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListControlDomainInsightsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListControlDomainInsightsCommand(input, context);
33
+ };
34
+ ListControlDomainInsightsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListControlDomainInsightsCommand(output, context);
36
+ };
37
+ return ListControlDomainInsightsCommand;
38
+ }($Command));
39
+ export { ListControlDomainInsightsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListControlInsightsByControlDomainRequest, ListControlInsightsByControlDomainResponse, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListControlInsightsByControlDomainCommand, serializeAws_restJson1ListControlInsightsByControlDomainCommand, } from "../protocols/Aws_restJson1";
6
+ var ListControlInsightsByControlDomainCommand = (function (_super) {
7
+ __extends(ListControlInsightsByControlDomainCommand, _super);
8
+ function ListControlInsightsByControlDomainCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListControlInsightsByControlDomainCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AuditManagerClient";
18
+ var commandName = "ListControlInsightsByControlDomainCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListControlInsightsByControlDomainRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListControlInsightsByControlDomainResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListControlInsightsByControlDomainCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListControlInsightsByControlDomainCommand(input, context);
33
+ };
34
+ ListControlInsightsByControlDomainCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListControlInsightsByControlDomainCommand(output, context);
36
+ };
37
+ return ListControlInsightsByControlDomainCommand;
38
+ }($Command));
39
+ export { ListControlInsightsByControlDomainCommand };
@@ -28,13 +28,19 @@ export * from "./GetEvidenceCommand";
28
28
  export * from "./GetEvidenceFolderCommand";
29
29
  export * from "./GetEvidenceFoldersByAssessmentCommand";
30
30
  export * from "./GetEvidenceFoldersByAssessmentControlCommand";
31
+ export * from "./GetInsightsByAssessmentCommand";
32
+ export * from "./GetInsightsCommand";
31
33
  export * from "./GetOrganizationAdminAccountCommand";
32
34
  export * from "./GetServicesInScopeCommand";
33
35
  export * from "./GetSettingsCommand";
36
+ export * from "./ListAssessmentControlInsightsByControlDomainCommand";
34
37
  export * from "./ListAssessmentFrameworkShareRequestsCommand";
35
38
  export * from "./ListAssessmentFrameworksCommand";
36
39
  export * from "./ListAssessmentReportsCommand";
37
40
  export * from "./ListAssessmentsCommand";
41
+ export * from "./ListControlDomainInsightsByAssessmentCommand";
42
+ export * from "./ListControlDomainInsightsCommand";
43
+ export * from "./ListControlInsightsByControlDomainCommand";
38
44
  export * from "./ListControlsCommand";
39
45
  export * from "./ListKeywordsForDataSourceCommand";
40
46
  export * from "./ListNotificationsCommand";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -1,8 +1,4 @@
1
1
  import { __assign } from "tslib";
2
- export var AccessDeniedException;
3
- (function (AccessDeniedException) {
4
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(AccessDeniedException || (AccessDeniedException = {}));
6
2
  export var AccountStatus;
7
3
  (function (AccountStatus) {
8
4
  AccountStatus["ACTIVE"] = "ACTIVE";
@@ -169,14 +165,6 @@ export var AssociateAssessmentReportEvidenceFolderResponse;
169
165
  (function (AssociateAssessmentReportEvidenceFolderResponse) {
170
166
  AssociateAssessmentReportEvidenceFolderResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
167
  })(AssociateAssessmentReportEvidenceFolderResponse || (AssociateAssessmentReportEvidenceFolderResponse = {}));
172
- export var InternalServerException;
173
- (function (InternalServerException) {
174
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- })(InternalServerException || (InternalServerException = {}));
176
- export var ResourceNotFoundException;
177
- (function (ResourceNotFoundException) {
178
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
180
168
  export var ValidationExceptionField;
181
169
  (function (ValidationExceptionField) {
182
170
  ValidationExceptionField.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -188,10 +176,6 @@ export var ValidationExceptionReason;
188
176
  ValidationExceptionReason["OTHER"] = "other";
189
177
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
190
178
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
191
- export var ValidationException;
192
- (function (ValidationException) {
193
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
- })(ValidationException || (ValidationException = {}));
195
179
  export var BatchAssociateAssessmentReportEvidenceRequest;
196
180
  (function (BatchAssociateAssessmentReportEvidenceRequest) {
197
181
  BatchAssociateAssessmentReportEvidenceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -537,6 +521,30 @@ export var GetEvidenceFoldersByAssessmentControlResponse;
537
521
  (function (GetEvidenceFoldersByAssessmentControlResponse) {
538
522
  GetEvidenceFoldersByAssessmentControlResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
539
523
  })(GetEvidenceFoldersByAssessmentControlResponse || (GetEvidenceFoldersByAssessmentControlResponse = {}));
524
+ export var GetInsightsRequest;
525
+ (function (GetInsightsRequest) {
526
+ GetInsightsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
+ })(GetInsightsRequest || (GetInsightsRequest = {}));
528
+ export var Insights;
529
+ (function (Insights) {
530
+ Insights.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
531
+ })(Insights || (Insights = {}));
532
+ export var GetInsightsResponse;
533
+ (function (GetInsightsResponse) {
534
+ GetInsightsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
535
+ })(GetInsightsResponse || (GetInsightsResponse = {}));
536
+ export var GetInsightsByAssessmentRequest;
537
+ (function (GetInsightsByAssessmentRequest) {
538
+ GetInsightsByAssessmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
539
+ })(GetInsightsByAssessmentRequest || (GetInsightsByAssessmentRequest = {}));
540
+ export var InsightsByAssessment;
541
+ (function (InsightsByAssessment) {
542
+ InsightsByAssessment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
543
+ })(InsightsByAssessment || (InsightsByAssessment = {}));
544
+ export var GetInsightsByAssessmentResponse;
545
+ (function (GetInsightsByAssessmentResponse) {
546
+ GetInsightsByAssessmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
547
+ })(GetInsightsByAssessmentResponse || (GetInsightsByAssessmentResponse = {}));
540
548
  export var GetOrganizationAdminAccountRequest;
541
549
  (function (GetOrganizationAdminAccountRequest) {
542
550
  GetOrganizationAdminAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -577,6 +585,22 @@ export var GetSettingsResponse;
577
585
  (function (GetSettingsResponse) {
578
586
  GetSettingsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
579
587
  })(GetSettingsResponse || (GetSettingsResponse = {}));
588
+ export var ListAssessmentControlInsightsByControlDomainRequest;
589
+ (function (ListAssessmentControlInsightsByControlDomainRequest) {
590
+ ListAssessmentControlInsightsByControlDomainRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
591
+ })(ListAssessmentControlInsightsByControlDomainRequest || (ListAssessmentControlInsightsByControlDomainRequest = {}));
592
+ export var EvidenceInsights;
593
+ (function (EvidenceInsights) {
594
+ EvidenceInsights.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
595
+ })(EvidenceInsights || (EvidenceInsights = {}));
596
+ export var ControlInsightsMetadataByAssessmentItem;
597
+ (function (ControlInsightsMetadataByAssessmentItem) {
598
+ ControlInsightsMetadataByAssessmentItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
599
+ })(ControlInsightsMetadataByAssessmentItem || (ControlInsightsMetadataByAssessmentItem = {}));
600
+ export var ListAssessmentControlInsightsByControlDomainResponse;
601
+ (function (ListAssessmentControlInsightsByControlDomainResponse) {
602
+ ListAssessmentControlInsightsByControlDomainResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
603
+ })(ListAssessmentControlInsightsByControlDomainResponse || (ListAssessmentControlInsightsByControlDomainResponse = {}));
580
604
  export var ListAssessmentFrameworksRequest;
581
605
  (function (ListAssessmentFrameworksRequest) {
582
606
  ListAssessmentFrameworksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -609,6 +633,38 @@ export var ListAssessmentsResponse;
609
633
  (function (ListAssessmentsResponse) {
610
634
  ListAssessmentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
611
635
  })(ListAssessmentsResponse || (ListAssessmentsResponse = {}));
636
+ export var ListControlDomainInsightsRequest;
637
+ (function (ListControlDomainInsightsRequest) {
638
+ ListControlDomainInsightsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
639
+ })(ListControlDomainInsightsRequest || (ListControlDomainInsightsRequest = {}));
640
+ export var ControlDomainInsights;
641
+ (function (ControlDomainInsights) {
642
+ ControlDomainInsights.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
643
+ })(ControlDomainInsights || (ControlDomainInsights = {}));
644
+ export var ListControlDomainInsightsResponse;
645
+ (function (ListControlDomainInsightsResponse) {
646
+ ListControlDomainInsightsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
647
+ })(ListControlDomainInsightsResponse || (ListControlDomainInsightsResponse = {}));
648
+ export var ListControlDomainInsightsByAssessmentRequest;
649
+ (function (ListControlDomainInsightsByAssessmentRequest) {
650
+ ListControlDomainInsightsByAssessmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
651
+ })(ListControlDomainInsightsByAssessmentRequest || (ListControlDomainInsightsByAssessmentRequest = {}));
652
+ export var ListControlDomainInsightsByAssessmentResponse;
653
+ (function (ListControlDomainInsightsByAssessmentResponse) {
654
+ ListControlDomainInsightsByAssessmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
655
+ })(ListControlDomainInsightsByAssessmentResponse || (ListControlDomainInsightsByAssessmentResponse = {}));
656
+ export var ListControlInsightsByControlDomainRequest;
657
+ (function (ListControlInsightsByControlDomainRequest) {
658
+ ListControlInsightsByControlDomainRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
659
+ })(ListControlInsightsByControlDomainRequest || (ListControlInsightsByControlDomainRequest = {}));
660
+ export var ControlInsightsMetadataItem;
661
+ (function (ControlInsightsMetadataItem) {
662
+ ControlInsightsMetadataItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
663
+ })(ControlInsightsMetadataItem || (ControlInsightsMetadataItem = {}));
664
+ export var ListControlInsightsByControlDomainResponse;
665
+ (function (ListControlInsightsByControlDomainResponse) {
666
+ ListControlInsightsByControlDomainResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
667
+ })(ListControlInsightsByControlDomainResponse || (ListControlInsightsByControlDomainResponse = {}));
612
668
  export var ListControlsRequest;
613
669
  (function (ListControlsRequest) {
614
670
  ListControlsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };