@aws-sdk/client-auditmanager 3.42.0 → 3.43.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/AuditManager.js +90 -0
- package/dist-cjs/commands/GetInsightsByAssessmentCommand.js +36 -0
- package/dist-cjs/commands/GetInsightsCommand.js +36 -0
- package/dist-cjs/commands/ListAssessmentControlInsightsByControlDomainCommand.js +36 -0
- package/dist-cjs/commands/ListControlDomainInsightsByAssessmentCommand.js +36 -0
- package/dist-cjs/commands/ListControlDomainInsightsCommand.js +36 -0
- package/dist-cjs/commands/ListControlInsightsByControlDomainCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +110 -2
- package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +35 -0
- package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +35 -0
- package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +35 -0
- package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +753 -86
- package/dist-es/AuditManager.js +90 -0
- package/dist-es/commands/GetInsightsByAssessmentCommand.js +39 -0
- package/dist-es/commands/GetInsightsCommand.js +39 -0
- package/dist-es/commands/ListAssessmentControlInsightsByControlDomainCommand.js +39 -0
- package/dist-es/commands/ListControlDomainInsightsByAssessmentCommand.js +39 -0
- package/dist-es/commands/ListControlDomainInsightsCommand.js +39 -0
- package/dist-es/commands/ListControlInsightsByControlDomainCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +72 -0
- package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +74 -0
- package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +74 -0
- package/dist-es/pagination/ListControlDomainInsightsPaginator.js +74 -0
- package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +74 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +798 -34
- package/dist-types/AuditManager.d.ts +69 -2
- package/dist-types/AuditManagerClient.d.ts +8 -2
- package/dist-types/commands/GetAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/GetAssessmentFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/GetInsightsByAssessmentCommand.d.ts +35 -0
- package/dist-types/commands/GetInsightsCommand.d.ts +35 -0
- package/dist-types/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +42 -0
- package/dist-types/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +40 -0
- package/dist-types/commands/ListControlDomainInsightsCommand.d.ts +41 -0
- package/dist-types/commands/ListControlInsightsByControlDomainCommand.d.ts +42 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +521 -30
- package/dist-types/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +4 -0
- package/dist-types/pagination/ListControlDomainInsightsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/AuditManager.d.ts +30 -0
- package/dist-types/ts3.4/AuditManagerClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/GetInsightsByAssessmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetInsightsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListControlDomainInsightsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListControlInsightsByControlDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +224 -0
- package/dist-types/ts3.4/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
- package/package.json +2 -2
package/dist-es/AuditManager.js
CHANGED
|
@@ -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";
|
|
@@ -537,6 +537,30 @@ export var GetEvidenceFoldersByAssessmentControlResponse;
|
|
|
537
537
|
(function (GetEvidenceFoldersByAssessmentControlResponse) {
|
|
538
538
|
GetEvidenceFoldersByAssessmentControlResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
539
539
|
})(GetEvidenceFoldersByAssessmentControlResponse || (GetEvidenceFoldersByAssessmentControlResponse = {}));
|
|
540
|
+
export var GetInsightsRequest;
|
|
541
|
+
(function (GetInsightsRequest) {
|
|
542
|
+
GetInsightsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
543
|
+
})(GetInsightsRequest || (GetInsightsRequest = {}));
|
|
544
|
+
export var Insights;
|
|
545
|
+
(function (Insights) {
|
|
546
|
+
Insights.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
547
|
+
})(Insights || (Insights = {}));
|
|
548
|
+
export var GetInsightsResponse;
|
|
549
|
+
(function (GetInsightsResponse) {
|
|
550
|
+
GetInsightsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
551
|
+
})(GetInsightsResponse || (GetInsightsResponse = {}));
|
|
552
|
+
export var GetInsightsByAssessmentRequest;
|
|
553
|
+
(function (GetInsightsByAssessmentRequest) {
|
|
554
|
+
GetInsightsByAssessmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
555
|
+
})(GetInsightsByAssessmentRequest || (GetInsightsByAssessmentRequest = {}));
|
|
556
|
+
export var InsightsByAssessment;
|
|
557
|
+
(function (InsightsByAssessment) {
|
|
558
|
+
InsightsByAssessment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
559
|
+
})(InsightsByAssessment || (InsightsByAssessment = {}));
|
|
560
|
+
export var GetInsightsByAssessmentResponse;
|
|
561
|
+
(function (GetInsightsByAssessmentResponse) {
|
|
562
|
+
GetInsightsByAssessmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
563
|
+
})(GetInsightsByAssessmentResponse || (GetInsightsByAssessmentResponse = {}));
|
|
540
564
|
export var GetOrganizationAdminAccountRequest;
|
|
541
565
|
(function (GetOrganizationAdminAccountRequest) {
|
|
542
566
|
GetOrganizationAdminAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -577,6 +601,22 @@ export var GetSettingsResponse;
|
|
|
577
601
|
(function (GetSettingsResponse) {
|
|
578
602
|
GetSettingsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
579
603
|
})(GetSettingsResponse || (GetSettingsResponse = {}));
|
|
604
|
+
export var ListAssessmentControlInsightsByControlDomainRequest;
|
|
605
|
+
(function (ListAssessmentControlInsightsByControlDomainRequest) {
|
|
606
|
+
ListAssessmentControlInsightsByControlDomainRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
607
|
+
})(ListAssessmentControlInsightsByControlDomainRequest || (ListAssessmentControlInsightsByControlDomainRequest = {}));
|
|
608
|
+
export var EvidenceInsights;
|
|
609
|
+
(function (EvidenceInsights) {
|
|
610
|
+
EvidenceInsights.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
611
|
+
})(EvidenceInsights || (EvidenceInsights = {}));
|
|
612
|
+
export var ControlInsightsMetadataByAssessmentItem;
|
|
613
|
+
(function (ControlInsightsMetadataByAssessmentItem) {
|
|
614
|
+
ControlInsightsMetadataByAssessmentItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
615
|
+
})(ControlInsightsMetadataByAssessmentItem || (ControlInsightsMetadataByAssessmentItem = {}));
|
|
616
|
+
export var ListAssessmentControlInsightsByControlDomainResponse;
|
|
617
|
+
(function (ListAssessmentControlInsightsByControlDomainResponse) {
|
|
618
|
+
ListAssessmentControlInsightsByControlDomainResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
619
|
+
})(ListAssessmentControlInsightsByControlDomainResponse || (ListAssessmentControlInsightsByControlDomainResponse = {}));
|
|
580
620
|
export var ListAssessmentFrameworksRequest;
|
|
581
621
|
(function (ListAssessmentFrameworksRequest) {
|
|
582
622
|
ListAssessmentFrameworksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -609,6 +649,38 @@ export var ListAssessmentsResponse;
|
|
|
609
649
|
(function (ListAssessmentsResponse) {
|
|
610
650
|
ListAssessmentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
611
651
|
})(ListAssessmentsResponse || (ListAssessmentsResponse = {}));
|
|
652
|
+
export var ListControlDomainInsightsRequest;
|
|
653
|
+
(function (ListControlDomainInsightsRequest) {
|
|
654
|
+
ListControlDomainInsightsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
655
|
+
})(ListControlDomainInsightsRequest || (ListControlDomainInsightsRequest = {}));
|
|
656
|
+
export var ControlDomainInsights;
|
|
657
|
+
(function (ControlDomainInsights) {
|
|
658
|
+
ControlDomainInsights.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
659
|
+
})(ControlDomainInsights || (ControlDomainInsights = {}));
|
|
660
|
+
export var ListControlDomainInsightsResponse;
|
|
661
|
+
(function (ListControlDomainInsightsResponse) {
|
|
662
|
+
ListControlDomainInsightsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
663
|
+
})(ListControlDomainInsightsResponse || (ListControlDomainInsightsResponse = {}));
|
|
664
|
+
export var ListControlDomainInsightsByAssessmentRequest;
|
|
665
|
+
(function (ListControlDomainInsightsByAssessmentRequest) {
|
|
666
|
+
ListControlDomainInsightsByAssessmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
667
|
+
})(ListControlDomainInsightsByAssessmentRequest || (ListControlDomainInsightsByAssessmentRequest = {}));
|
|
668
|
+
export var ListControlDomainInsightsByAssessmentResponse;
|
|
669
|
+
(function (ListControlDomainInsightsByAssessmentResponse) {
|
|
670
|
+
ListControlDomainInsightsByAssessmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
671
|
+
})(ListControlDomainInsightsByAssessmentResponse || (ListControlDomainInsightsByAssessmentResponse = {}));
|
|
672
|
+
export var ListControlInsightsByControlDomainRequest;
|
|
673
|
+
(function (ListControlInsightsByControlDomainRequest) {
|
|
674
|
+
ListControlInsightsByControlDomainRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
675
|
+
})(ListControlInsightsByControlDomainRequest || (ListControlInsightsByControlDomainRequest = {}));
|
|
676
|
+
export var ControlInsightsMetadataItem;
|
|
677
|
+
(function (ControlInsightsMetadataItem) {
|
|
678
|
+
ControlInsightsMetadataItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
679
|
+
})(ControlInsightsMetadataItem || (ControlInsightsMetadataItem = {}));
|
|
680
|
+
export var ListControlInsightsByControlDomainResponse;
|
|
681
|
+
(function (ListControlInsightsByControlDomainResponse) {
|
|
682
|
+
ListControlInsightsByControlDomainResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
683
|
+
})(ListControlInsightsByControlDomainResponse || (ListControlInsightsByControlDomainResponse = {}));
|
|
612
684
|
export var ListControlsRequest;
|
|
613
685
|
(function (ListControlsRequest) {
|
|
614
686
|
ListControlsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { AuditManager } from "../AuditManager";
|
|
3
|
+
import { AuditManagerClient } from "../AuditManagerClient";
|
|
4
|
+
import { ListAssessmentControlInsightsByControlDomainCommand, } from "../commands/ListAssessmentControlInsightsByControlDomainCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAssessmentControlInsightsByControlDomainCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listAssessmentControlInsightsByControlDomain.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListAssessmentControlInsightsByControlDomain(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAssessmentControlInsightsByControlDomain_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof AuditManager)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof AuditManagerClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { AuditManager } from "../AuditManager";
|
|
3
|
+
import { AuditManagerClient } from "../AuditManagerClient";
|
|
4
|
+
import { ListControlDomainInsightsByAssessmentCommand, } from "../commands/ListControlDomainInsightsByAssessmentCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListControlDomainInsightsByAssessmentCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listControlDomainInsightsByAssessment.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListControlDomainInsightsByAssessment(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListControlDomainInsightsByAssessment_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof AuditManager)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof AuditManagerClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|