@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.
- package/CHANGELOG.md +50 -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/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +112 -28
- 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-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- 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/endpoints.js +1 -0
- package/dist-es/models/models_0.js +72 -16
- 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-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/AuditManager.d.ts +69 -2
- package/dist-types/AuditManagerClient.d.ts +13 -3
- 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 -54
- 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/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/AuditManager.d.ts +30 -0
- package/dist-types/ts3.4/AuditManagerClient.d.ts +11 -3
- 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 -16
- 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/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -1090,6 +1090,61 @@ export var serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand =
|
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
}); };
|
|
1093
|
+
export var serializeAws_restJson1GetInsightsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1094
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1095
|
+
return __generator(this, function (_c) {
|
|
1096
|
+
switch (_c.label) {
|
|
1097
|
+
case 0: return [4, context.endpoint()];
|
|
1098
|
+
case 1:
|
|
1099
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1100
|
+
headers = {
|
|
1101
|
+
"content-type": "application/json",
|
|
1102
|
+
};
|
|
1103
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights";
|
|
1104
|
+
body = "";
|
|
1105
|
+
return [2, new __HttpRequest({
|
|
1106
|
+
protocol: protocol,
|
|
1107
|
+
hostname: hostname,
|
|
1108
|
+
port: port,
|
|
1109
|
+
method: "GET",
|
|
1110
|
+
headers: headers,
|
|
1111
|
+
path: resolvedPath,
|
|
1112
|
+
body: body,
|
|
1113
|
+
})];
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
}); };
|
|
1117
|
+
export var serializeAws_restJson1GetInsightsByAssessmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1118
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1119
|
+
return __generator(this, function (_c) {
|
|
1120
|
+
switch (_c.label) {
|
|
1121
|
+
case 0: return [4, context.endpoint()];
|
|
1122
|
+
case 1:
|
|
1123
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1124
|
+
headers = {};
|
|
1125
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/assessments/{assessmentId}";
|
|
1126
|
+
if (input.assessmentId !== undefined) {
|
|
1127
|
+
labelValue = input.assessmentId;
|
|
1128
|
+
if (labelValue.length <= 0) {
|
|
1129
|
+
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1130
|
+
}
|
|
1131
|
+
resolvedPath = resolvedPath.replace("{assessmentId}", __extendedEncodeURIComponent(labelValue));
|
|
1132
|
+
}
|
|
1133
|
+
else {
|
|
1134
|
+
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1135
|
+
}
|
|
1136
|
+
return [2, new __HttpRequest({
|
|
1137
|
+
protocol: protocol,
|
|
1138
|
+
hostname: hostname,
|
|
1139
|
+
port: port,
|
|
1140
|
+
method: "GET",
|
|
1141
|
+
headers: headers,
|
|
1142
|
+
path: resolvedPath,
|
|
1143
|
+
body: body,
|
|
1144
|
+
})];
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
}); };
|
|
1093
1148
|
export var serializeAws_restJson1GetOrganizationAdminAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1094
1149
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1095
1150
|
return __generator(this, function (_c) {
|
|
@@ -1169,6 +1224,29 @@ export var serializeAws_restJson1GetSettingsCommand = function (input, context)
|
|
|
1169
1224
|
}
|
|
1170
1225
|
});
|
|
1171
1226
|
}); };
|
|
1227
|
+
export var serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1228
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1229
|
+
return __generator(this, function (_c) {
|
|
1230
|
+
switch (_c.label) {
|
|
1231
|
+
case 0: return [4, context.endpoint()];
|
|
1232
|
+
case 1:
|
|
1233
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1234
|
+
headers = {};
|
|
1235
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/controls-by-assessment";
|
|
1236
|
+
query = __assign(__assign(__assign(__assign({}, (input.controlDomainId !== undefined && { controlDomainId: input.controlDomainId })), (input.assessmentId !== undefined && { assessmentId: input.assessmentId })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
1237
|
+
return [2, new __HttpRequest({
|
|
1238
|
+
protocol: protocol,
|
|
1239
|
+
hostname: hostname,
|
|
1240
|
+
port: port,
|
|
1241
|
+
method: "GET",
|
|
1242
|
+
headers: headers,
|
|
1243
|
+
path: resolvedPath,
|
|
1244
|
+
query: query,
|
|
1245
|
+
body: body,
|
|
1246
|
+
})];
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
}); };
|
|
1172
1250
|
export var serializeAws_restJson1ListAssessmentFrameworksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1173
1251
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1174
1252
|
return __generator(this, function (_c) {
|
|
@@ -1247,6 +1325,29 @@ export var serializeAws_restJson1ListAssessmentsCommand = function (input, conte
|
|
|
1247
1325
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1248
1326
|
headers = {};
|
|
1249
1327
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assessments";
|
|
1328
|
+
query = __assign(__assign(__assign({}, (input.status !== undefined && { status: input.status })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
1329
|
+
return [2, new __HttpRequest({
|
|
1330
|
+
protocol: protocol,
|
|
1331
|
+
hostname: hostname,
|
|
1332
|
+
port: port,
|
|
1333
|
+
method: "GET",
|
|
1334
|
+
headers: headers,
|
|
1335
|
+
path: resolvedPath,
|
|
1336
|
+
query: query,
|
|
1337
|
+
body: body,
|
|
1338
|
+
})];
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
}); };
|
|
1342
|
+
export var serializeAws_restJson1ListControlDomainInsightsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1343
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1344
|
+
return __generator(this, function (_c) {
|
|
1345
|
+
switch (_c.label) {
|
|
1346
|
+
case 0: return [4, context.endpoint()];
|
|
1347
|
+
case 1:
|
|
1348
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1349
|
+
headers = {};
|
|
1350
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/control-domains";
|
|
1250
1351
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
1251
1352
|
return [2, new __HttpRequest({
|
|
1252
1353
|
protocol: protocol,
|
|
@@ -1261,6 +1362,52 @@ export var serializeAws_restJson1ListAssessmentsCommand = function (input, conte
|
|
|
1261
1362
|
}
|
|
1262
1363
|
});
|
|
1263
1364
|
}); };
|
|
1365
|
+
export var serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1366
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1367
|
+
return __generator(this, function (_c) {
|
|
1368
|
+
switch (_c.label) {
|
|
1369
|
+
case 0: return [4, context.endpoint()];
|
|
1370
|
+
case 1:
|
|
1371
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1372
|
+
headers = {};
|
|
1373
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/control-domains-by-assessment";
|
|
1374
|
+
query = __assign(__assign(__assign({}, (input.assessmentId !== undefined && { assessmentId: input.assessmentId })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
1375
|
+
return [2, new __HttpRequest({
|
|
1376
|
+
protocol: protocol,
|
|
1377
|
+
hostname: hostname,
|
|
1378
|
+
port: port,
|
|
1379
|
+
method: "GET",
|
|
1380
|
+
headers: headers,
|
|
1381
|
+
path: resolvedPath,
|
|
1382
|
+
query: query,
|
|
1383
|
+
body: body,
|
|
1384
|
+
})];
|
|
1385
|
+
}
|
|
1386
|
+
});
|
|
1387
|
+
}); };
|
|
1388
|
+
export var serializeAws_restJson1ListControlInsightsByControlDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1389
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1390
|
+
return __generator(this, function (_c) {
|
|
1391
|
+
switch (_c.label) {
|
|
1392
|
+
case 0: return [4, context.endpoint()];
|
|
1393
|
+
case 1:
|
|
1394
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1395
|
+
headers = {};
|
|
1396
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/controls";
|
|
1397
|
+
query = __assign(__assign(__assign({}, (input.controlDomainId !== undefined && { controlDomainId: input.controlDomainId })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
1398
|
+
return [2, new __HttpRequest({
|
|
1399
|
+
protocol: protocol,
|
|
1400
|
+
hostname: hostname,
|
|
1401
|
+
port: port,
|
|
1402
|
+
method: "GET",
|
|
1403
|
+
headers: headers,
|
|
1404
|
+
path: resolvedPath,
|
|
1405
|
+
query: query,
|
|
1406
|
+
body: body,
|
|
1407
|
+
})];
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
}); };
|
|
1264
1411
|
export var serializeAws_restJson1ListControlsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1265
1412
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1266
1413
|
return __generator(this, function (_c) {
|
|
@@ -4394,35 +4541,101 @@ var deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError =
|
|
|
4394
4541
|
}
|
|
4395
4542
|
});
|
|
4396
4543
|
}); };
|
|
4397
|
-
export var
|
|
4544
|
+
export var deserializeAws_restJson1GetInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4398
4545
|
var contents, data, _a, _b;
|
|
4399
4546
|
return __generator(this, function (_c) {
|
|
4400
4547
|
switch (_c.label) {
|
|
4401
4548
|
case 0:
|
|
4402
4549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4403
|
-
return [2,
|
|
4550
|
+
return [2, deserializeAws_restJson1GetInsightsCommandError(output, context)];
|
|
4404
4551
|
}
|
|
4405
4552
|
contents = {
|
|
4406
4553
|
$metadata: deserializeMetadata(output),
|
|
4407
|
-
|
|
4408
|
-
organizationId: undefined,
|
|
4554
|
+
insights: undefined,
|
|
4409
4555
|
};
|
|
4410
4556
|
_a = __expectNonNull;
|
|
4411
4557
|
_b = __expectObject;
|
|
4412
4558
|
return [4, parseBody(output.body, context)];
|
|
4413
4559
|
case 1:
|
|
4414
4560
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4415
|
-
if (data.
|
|
4416
|
-
contents.
|
|
4561
|
+
if (data.insights !== undefined && data.insights !== null) {
|
|
4562
|
+
contents.insights = deserializeAws_restJson1Insights(data.insights, context);
|
|
4417
4563
|
}
|
|
4418
|
-
|
|
4419
|
-
|
|
4564
|
+
return [2, Promise.resolve(contents)];
|
|
4565
|
+
}
|
|
4566
|
+
});
|
|
4567
|
+
}); };
|
|
4568
|
+
var deserializeAws_restJson1GetInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4569
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
4570
|
+
var _e;
|
|
4571
|
+
return __generator(this, function (_f) {
|
|
4572
|
+
switch (_f.label) {
|
|
4573
|
+
case 0:
|
|
4574
|
+
_a = [__assign({}, output)];
|
|
4575
|
+
_e = {};
|
|
4576
|
+
return [4, parseBody(output.body, context)];
|
|
4577
|
+
case 1:
|
|
4578
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
4579
|
+
errorCode = "UnknownError";
|
|
4580
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4581
|
+
_b = errorCode;
|
|
4582
|
+
switch (_b) {
|
|
4583
|
+
case "AccessDeniedException": return [3, 2];
|
|
4584
|
+
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
4585
|
+
case "InternalServerException": return [3, 4];
|
|
4586
|
+
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
4587
|
+
}
|
|
4588
|
+
return [3, 6];
|
|
4589
|
+
case 2:
|
|
4590
|
+
_c = [{}];
|
|
4591
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4592
|
+
case 3:
|
|
4593
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4594
|
+
return [3, 7];
|
|
4595
|
+
case 4:
|
|
4596
|
+
_d = [{}];
|
|
4597
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4598
|
+
case 5:
|
|
4599
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4600
|
+
return [3, 7];
|
|
4601
|
+
case 6:
|
|
4602
|
+
parsedBody = parsedOutput.body;
|
|
4603
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4604
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4605
|
+
_f.label = 7;
|
|
4606
|
+
case 7:
|
|
4607
|
+
message = response.message || response.Message || errorCode;
|
|
4608
|
+
response.message = message;
|
|
4609
|
+
delete response.Message;
|
|
4610
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4611
|
+
}
|
|
4612
|
+
});
|
|
4613
|
+
}); };
|
|
4614
|
+
export var deserializeAws_restJson1GetInsightsByAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4615
|
+
var contents, data, _a, _b;
|
|
4616
|
+
return __generator(this, function (_c) {
|
|
4617
|
+
switch (_c.label) {
|
|
4618
|
+
case 0:
|
|
4619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4620
|
+
return [2, deserializeAws_restJson1GetInsightsByAssessmentCommandError(output, context)];
|
|
4621
|
+
}
|
|
4622
|
+
contents = {
|
|
4623
|
+
$metadata: deserializeMetadata(output),
|
|
4624
|
+
insights: undefined,
|
|
4625
|
+
};
|
|
4626
|
+
_a = __expectNonNull;
|
|
4627
|
+
_b = __expectObject;
|
|
4628
|
+
return [4, parseBody(output.body, context)];
|
|
4629
|
+
case 1:
|
|
4630
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4631
|
+
if (data.insights !== undefined && data.insights !== null) {
|
|
4632
|
+
contents.insights = deserializeAws_restJson1InsightsByAssessment(data.insights, context);
|
|
4420
4633
|
}
|
|
4421
4634
|
return [2, Promise.resolve(contents)];
|
|
4422
4635
|
}
|
|
4423
4636
|
});
|
|
4424
4637
|
}); };
|
|
4425
|
-
var
|
|
4638
|
+
var deserializeAws_restJson1GetInsightsByAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4426
4639
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
4427
4640
|
var _g;
|
|
4428
4641
|
return __generator(this, function (_h) {
|
|
@@ -4484,41 +4697,45 @@ var deserializeAws_restJson1GetOrganizationAdminAccountCommandError = function (
|
|
|
4484
4697
|
}
|
|
4485
4698
|
});
|
|
4486
4699
|
}); };
|
|
4487
|
-
export var
|
|
4700
|
+
export var deserializeAws_restJson1GetOrganizationAdminAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4488
4701
|
var contents, data, _a, _b;
|
|
4489
4702
|
return __generator(this, function (_c) {
|
|
4490
4703
|
switch (_c.label) {
|
|
4491
4704
|
case 0:
|
|
4492
4705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4493
|
-
return [2,
|
|
4706
|
+
return [2, deserializeAws_restJson1GetOrganizationAdminAccountCommandError(output, context)];
|
|
4494
4707
|
}
|
|
4495
4708
|
contents = {
|
|
4496
4709
|
$metadata: deserializeMetadata(output),
|
|
4497
|
-
|
|
4710
|
+
adminAccountId: undefined,
|
|
4711
|
+
organizationId: undefined,
|
|
4498
4712
|
};
|
|
4499
4713
|
_a = __expectNonNull;
|
|
4500
4714
|
_b = __expectObject;
|
|
4501
4715
|
return [4, parseBody(output.body, context)];
|
|
4502
4716
|
case 1:
|
|
4503
4717
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4504
|
-
if (data.
|
|
4505
|
-
contents.
|
|
4718
|
+
if (data.adminAccountId !== undefined && data.adminAccountId !== null) {
|
|
4719
|
+
contents.adminAccountId = __expectString(data.adminAccountId);
|
|
4720
|
+
}
|
|
4721
|
+
if (data.organizationId !== undefined && data.organizationId !== null) {
|
|
4722
|
+
contents.organizationId = __expectString(data.organizationId);
|
|
4506
4723
|
}
|
|
4507
4724
|
return [2, Promise.resolve(contents)];
|
|
4508
4725
|
}
|
|
4509
4726
|
});
|
|
4510
4727
|
}); };
|
|
4511
|
-
var
|
|
4512
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
4513
|
-
var
|
|
4514
|
-
return __generator(this, function (
|
|
4515
|
-
switch (
|
|
4728
|
+
var deserializeAws_restJson1GetOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4729
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
4730
|
+
var _g;
|
|
4731
|
+
return __generator(this, function (_h) {
|
|
4732
|
+
switch (_h.label) {
|
|
4516
4733
|
case 0:
|
|
4517
4734
|
_a = [__assign({}, output)];
|
|
4518
|
-
|
|
4735
|
+
_g = {};
|
|
4519
4736
|
return [4, parseBody(output.body, context)];
|
|
4520
4737
|
case 1:
|
|
4521
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4738
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
4522
4739
|
errorCode = "UnknownError";
|
|
4523
4740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4524
4741
|
_b = errorCode;
|
|
@@ -4527,32 +4744,118 @@ var deserializeAws_restJson1GetServicesInScopeCommandError = function (output, c
|
|
|
4527
4744
|
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
4528
4745
|
case "InternalServerException": return [3, 4];
|
|
4529
4746
|
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
4530
|
-
case "
|
|
4531
|
-
case "com.amazonaws.auditmanager#
|
|
4747
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4748
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException": return [3, 6];
|
|
4749
|
+
case "ValidationException": return [3, 8];
|
|
4750
|
+
case "com.amazonaws.auditmanager#ValidationException": return [3, 8];
|
|
4532
4751
|
}
|
|
4533
|
-
return [3,
|
|
4752
|
+
return [3, 10];
|
|
4534
4753
|
case 2:
|
|
4535
4754
|
_c = [{}];
|
|
4536
4755
|
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4537
4756
|
case 3:
|
|
4538
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
4539
|
-
return [3,
|
|
4757
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4758
|
+
return [3, 11];
|
|
4540
4759
|
case 4:
|
|
4541
4760
|
_d = [{}];
|
|
4542
4761
|
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4543
4762
|
case 5:
|
|
4544
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
4545
|
-
return [3,
|
|
4763
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4764
|
+
return [3, 11];
|
|
4546
4765
|
case 6:
|
|
4547
4766
|
_e = [{}];
|
|
4548
|
-
return [4,
|
|
4767
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4549
4768
|
case 7:
|
|
4550
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
4551
|
-
return [3,
|
|
4769
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4770
|
+
return [3, 11];
|
|
4552
4771
|
case 8:
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4772
|
+
_f = [{}];
|
|
4773
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4774
|
+
case 9:
|
|
4775
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4776
|
+
return [3, 11];
|
|
4777
|
+
case 10:
|
|
4778
|
+
parsedBody = parsedOutput.body;
|
|
4779
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4780
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4781
|
+
_h.label = 11;
|
|
4782
|
+
case 11:
|
|
4783
|
+
message = response.message || response.Message || errorCode;
|
|
4784
|
+
response.message = message;
|
|
4785
|
+
delete response.Message;
|
|
4786
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4787
|
+
}
|
|
4788
|
+
});
|
|
4789
|
+
}); };
|
|
4790
|
+
export var deserializeAws_restJson1GetServicesInScopeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4791
|
+
var contents, data, _a, _b;
|
|
4792
|
+
return __generator(this, function (_c) {
|
|
4793
|
+
switch (_c.label) {
|
|
4794
|
+
case 0:
|
|
4795
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4796
|
+
return [2, deserializeAws_restJson1GetServicesInScopeCommandError(output, context)];
|
|
4797
|
+
}
|
|
4798
|
+
contents = {
|
|
4799
|
+
$metadata: deserializeMetadata(output),
|
|
4800
|
+
serviceMetadata: undefined,
|
|
4801
|
+
};
|
|
4802
|
+
_a = __expectNonNull;
|
|
4803
|
+
_b = __expectObject;
|
|
4804
|
+
return [4, parseBody(output.body, context)];
|
|
4805
|
+
case 1:
|
|
4806
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4807
|
+
if (data.serviceMetadata !== undefined && data.serviceMetadata !== null) {
|
|
4808
|
+
contents.serviceMetadata = deserializeAws_restJson1ServiceMetadataList(data.serviceMetadata, context);
|
|
4809
|
+
}
|
|
4810
|
+
return [2, Promise.resolve(contents)];
|
|
4811
|
+
}
|
|
4812
|
+
});
|
|
4813
|
+
}); };
|
|
4814
|
+
var deserializeAws_restJson1GetServicesInScopeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4815
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
4816
|
+
var _f;
|
|
4817
|
+
return __generator(this, function (_g) {
|
|
4818
|
+
switch (_g.label) {
|
|
4819
|
+
case 0:
|
|
4820
|
+
_a = [__assign({}, output)];
|
|
4821
|
+
_f = {};
|
|
4822
|
+
return [4, parseBody(output.body, context)];
|
|
4823
|
+
case 1:
|
|
4824
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4825
|
+
errorCode = "UnknownError";
|
|
4826
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4827
|
+
_b = errorCode;
|
|
4828
|
+
switch (_b) {
|
|
4829
|
+
case "AccessDeniedException": return [3, 2];
|
|
4830
|
+
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
4831
|
+
case "InternalServerException": return [3, 4];
|
|
4832
|
+
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
4833
|
+
case "ValidationException": return [3, 6];
|
|
4834
|
+
case "com.amazonaws.auditmanager#ValidationException": return [3, 6];
|
|
4835
|
+
}
|
|
4836
|
+
return [3, 8];
|
|
4837
|
+
case 2:
|
|
4838
|
+
_c = [{}];
|
|
4839
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4840
|
+
case 3:
|
|
4841
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4842
|
+
return [3, 9];
|
|
4843
|
+
case 4:
|
|
4844
|
+
_d = [{}];
|
|
4845
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4846
|
+
case 5:
|
|
4847
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4848
|
+
return [3, 9];
|
|
4849
|
+
case 6:
|
|
4850
|
+
_e = [{}];
|
|
4851
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4852
|
+
case 7:
|
|
4853
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4854
|
+
return [3, 9];
|
|
4855
|
+
case 8:
|
|
4856
|
+
parsedBody = parsedOutput.body;
|
|
4857
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4858
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4556
4859
|
_g.label = 9;
|
|
4557
4860
|
case 9:
|
|
4558
4861
|
message = response.message || response.Message || errorCode;
|
|
@@ -4632,6 +4935,96 @@ var deserializeAws_restJson1GetSettingsCommandError = function (output, context)
|
|
|
4632
4935
|
}
|
|
4633
4936
|
});
|
|
4634
4937
|
}); };
|
|
4938
|
+
export var deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4939
|
+
var contents, data, _a, _b;
|
|
4940
|
+
return __generator(this, function (_c) {
|
|
4941
|
+
switch (_c.label) {
|
|
4942
|
+
case 0:
|
|
4943
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4944
|
+
return [2, deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError(output, context)];
|
|
4945
|
+
}
|
|
4946
|
+
contents = {
|
|
4947
|
+
$metadata: deserializeMetadata(output),
|
|
4948
|
+
controlInsightsByAssessment: undefined,
|
|
4949
|
+
nextToken: undefined,
|
|
4950
|
+
};
|
|
4951
|
+
_a = __expectNonNull;
|
|
4952
|
+
_b = __expectObject;
|
|
4953
|
+
return [4, parseBody(output.body, context)];
|
|
4954
|
+
case 1:
|
|
4955
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4956
|
+
if (data.controlInsightsByAssessment !== undefined && data.controlInsightsByAssessment !== null) {
|
|
4957
|
+
contents.controlInsightsByAssessment = deserializeAws_restJson1ControlInsightsMetadataByAssessment(data.controlInsightsByAssessment, context);
|
|
4958
|
+
}
|
|
4959
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4960
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
4961
|
+
}
|
|
4962
|
+
return [2, Promise.resolve(contents)];
|
|
4963
|
+
}
|
|
4964
|
+
});
|
|
4965
|
+
}); };
|
|
4966
|
+
var deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4967
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
4968
|
+
var _g;
|
|
4969
|
+
return __generator(this, function (_h) {
|
|
4970
|
+
switch (_h.label) {
|
|
4971
|
+
case 0:
|
|
4972
|
+
_a = [__assign({}, output)];
|
|
4973
|
+
_g = {};
|
|
4974
|
+
return [4, parseBody(output.body, context)];
|
|
4975
|
+
case 1:
|
|
4976
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
4977
|
+
errorCode = "UnknownError";
|
|
4978
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4979
|
+
_b = errorCode;
|
|
4980
|
+
switch (_b) {
|
|
4981
|
+
case "AccessDeniedException": return [3, 2];
|
|
4982
|
+
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
4983
|
+
case "InternalServerException": return [3, 4];
|
|
4984
|
+
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
4985
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4986
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException": return [3, 6];
|
|
4987
|
+
case "ValidationException": return [3, 8];
|
|
4988
|
+
case "com.amazonaws.auditmanager#ValidationException": return [3, 8];
|
|
4989
|
+
}
|
|
4990
|
+
return [3, 10];
|
|
4991
|
+
case 2:
|
|
4992
|
+
_c = [{}];
|
|
4993
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4994
|
+
case 3:
|
|
4995
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4996
|
+
return [3, 11];
|
|
4997
|
+
case 4:
|
|
4998
|
+
_d = [{}];
|
|
4999
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5000
|
+
case 5:
|
|
5001
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5002
|
+
return [3, 11];
|
|
5003
|
+
case 6:
|
|
5004
|
+
_e = [{}];
|
|
5005
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5006
|
+
case 7:
|
|
5007
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5008
|
+
return [3, 11];
|
|
5009
|
+
case 8:
|
|
5010
|
+
_f = [{}];
|
|
5011
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
5012
|
+
case 9:
|
|
5013
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5014
|
+
return [3, 11];
|
|
5015
|
+
case 10:
|
|
5016
|
+
parsedBody = parsedOutput.body;
|
|
5017
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5018
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5019
|
+
_h.label = 11;
|
|
5020
|
+
case 11:
|
|
5021
|
+
message = response.message || response.Message || errorCode;
|
|
5022
|
+
response.message = message;
|
|
5023
|
+
delete response.Message;
|
|
5024
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5025
|
+
}
|
|
5026
|
+
});
|
|
5027
|
+
}); };
|
|
4635
5028
|
export var deserializeAws_restJson1ListAssessmentFrameworksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4636
5029
|
var contents, data, _a, _b;
|
|
4637
5030
|
return __generator(this, function (_c) {
|
|
@@ -4960,6 +5353,276 @@ var deserializeAws_restJson1ListAssessmentsCommandError = function (output, cont
|
|
|
4960
5353
|
}
|
|
4961
5354
|
});
|
|
4962
5355
|
}); };
|
|
5356
|
+
export var deserializeAws_restJson1ListControlDomainInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5357
|
+
var contents, data, _a, _b;
|
|
5358
|
+
return __generator(this, function (_c) {
|
|
5359
|
+
switch (_c.label) {
|
|
5360
|
+
case 0:
|
|
5361
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5362
|
+
return [2, deserializeAws_restJson1ListControlDomainInsightsCommandError(output, context)];
|
|
5363
|
+
}
|
|
5364
|
+
contents = {
|
|
5365
|
+
$metadata: deserializeMetadata(output),
|
|
5366
|
+
controlDomainInsights: undefined,
|
|
5367
|
+
nextToken: undefined,
|
|
5368
|
+
};
|
|
5369
|
+
_a = __expectNonNull;
|
|
5370
|
+
_b = __expectObject;
|
|
5371
|
+
return [4, parseBody(output.body, context)];
|
|
5372
|
+
case 1:
|
|
5373
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5374
|
+
if (data.controlDomainInsights !== undefined && data.controlDomainInsights !== null) {
|
|
5375
|
+
contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
|
|
5376
|
+
}
|
|
5377
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5378
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
5379
|
+
}
|
|
5380
|
+
return [2, Promise.resolve(contents)];
|
|
5381
|
+
}
|
|
5382
|
+
});
|
|
5383
|
+
}); };
|
|
5384
|
+
var deserializeAws_restJson1ListControlDomainInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5385
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
5386
|
+
var _g;
|
|
5387
|
+
return __generator(this, function (_h) {
|
|
5388
|
+
switch (_h.label) {
|
|
5389
|
+
case 0:
|
|
5390
|
+
_a = [__assign({}, output)];
|
|
5391
|
+
_g = {};
|
|
5392
|
+
return [4, parseBody(output.body, context)];
|
|
5393
|
+
case 1:
|
|
5394
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
5395
|
+
errorCode = "UnknownError";
|
|
5396
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5397
|
+
_b = errorCode;
|
|
5398
|
+
switch (_b) {
|
|
5399
|
+
case "AccessDeniedException": return [3, 2];
|
|
5400
|
+
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
5401
|
+
case "InternalServerException": return [3, 4];
|
|
5402
|
+
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
5403
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
5404
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException": return [3, 6];
|
|
5405
|
+
case "ValidationException": return [3, 8];
|
|
5406
|
+
case "com.amazonaws.auditmanager#ValidationException": return [3, 8];
|
|
5407
|
+
}
|
|
5408
|
+
return [3, 10];
|
|
5409
|
+
case 2:
|
|
5410
|
+
_c = [{}];
|
|
5411
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
5412
|
+
case 3:
|
|
5413
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5414
|
+
return [3, 11];
|
|
5415
|
+
case 4:
|
|
5416
|
+
_d = [{}];
|
|
5417
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5418
|
+
case 5:
|
|
5419
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5420
|
+
return [3, 11];
|
|
5421
|
+
case 6:
|
|
5422
|
+
_e = [{}];
|
|
5423
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5424
|
+
case 7:
|
|
5425
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5426
|
+
return [3, 11];
|
|
5427
|
+
case 8:
|
|
5428
|
+
_f = [{}];
|
|
5429
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
5430
|
+
case 9:
|
|
5431
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5432
|
+
return [3, 11];
|
|
5433
|
+
case 10:
|
|
5434
|
+
parsedBody = parsedOutput.body;
|
|
5435
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5436
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5437
|
+
_h.label = 11;
|
|
5438
|
+
case 11:
|
|
5439
|
+
message = response.message || response.Message || errorCode;
|
|
5440
|
+
response.message = message;
|
|
5441
|
+
delete response.Message;
|
|
5442
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5443
|
+
}
|
|
5444
|
+
});
|
|
5445
|
+
}); };
|
|
5446
|
+
export var deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5447
|
+
var contents, data, _a, _b;
|
|
5448
|
+
return __generator(this, function (_c) {
|
|
5449
|
+
switch (_c.label) {
|
|
5450
|
+
case 0:
|
|
5451
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5452
|
+
return [2, deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError(output, context)];
|
|
5453
|
+
}
|
|
5454
|
+
contents = {
|
|
5455
|
+
$metadata: deserializeMetadata(output),
|
|
5456
|
+
controlDomainInsights: undefined,
|
|
5457
|
+
nextToken: undefined,
|
|
5458
|
+
};
|
|
5459
|
+
_a = __expectNonNull;
|
|
5460
|
+
_b = __expectObject;
|
|
5461
|
+
return [4, parseBody(output.body, context)];
|
|
5462
|
+
case 1:
|
|
5463
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5464
|
+
if (data.controlDomainInsights !== undefined && data.controlDomainInsights !== null) {
|
|
5465
|
+
contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
|
|
5466
|
+
}
|
|
5467
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5468
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
5469
|
+
}
|
|
5470
|
+
return [2, Promise.resolve(contents)];
|
|
5471
|
+
}
|
|
5472
|
+
});
|
|
5473
|
+
}); };
|
|
5474
|
+
var deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5475
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
5476
|
+
var _g;
|
|
5477
|
+
return __generator(this, function (_h) {
|
|
5478
|
+
switch (_h.label) {
|
|
5479
|
+
case 0:
|
|
5480
|
+
_a = [__assign({}, output)];
|
|
5481
|
+
_g = {};
|
|
5482
|
+
return [4, parseBody(output.body, context)];
|
|
5483
|
+
case 1:
|
|
5484
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
5485
|
+
errorCode = "UnknownError";
|
|
5486
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5487
|
+
_b = errorCode;
|
|
5488
|
+
switch (_b) {
|
|
5489
|
+
case "AccessDeniedException": return [3, 2];
|
|
5490
|
+
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
5491
|
+
case "InternalServerException": return [3, 4];
|
|
5492
|
+
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
5493
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
5494
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException": return [3, 6];
|
|
5495
|
+
case "ValidationException": return [3, 8];
|
|
5496
|
+
case "com.amazonaws.auditmanager#ValidationException": return [3, 8];
|
|
5497
|
+
}
|
|
5498
|
+
return [3, 10];
|
|
5499
|
+
case 2:
|
|
5500
|
+
_c = [{}];
|
|
5501
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
5502
|
+
case 3:
|
|
5503
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5504
|
+
return [3, 11];
|
|
5505
|
+
case 4:
|
|
5506
|
+
_d = [{}];
|
|
5507
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5508
|
+
case 5:
|
|
5509
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5510
|
+
return [3, 11];
|
|
5511
|
+
case 6:
|
|
5512
|
+
_e = [{}];
|
|
5513
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5514
|
+
case 7:
|
|
5515
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5516
|
+
return [3, 11];
|
|
5517
|
+
case 8:
|
|
5518
|
+
_f = [{}];
|
|
5519
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
5520
|
+
case 9:
|
|
5521
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5522
|
+
return [3, 11];
|
|
5523
|
+
case 10:
|
|
5524
|
+
parsedBody = parsedOutput.body;
|
|
5525
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5526
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5527
|
+
_h.label = 11;
|
|
5528
|
+
case 11:
|
|
5529
|
+
message = response.message || response.Message || errorCode;
|
|
5530
|
+
response.message = message;
|
|
5531
|
+
delete response.Message;
|
|
5532
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5533
|
+
}
|
|
5534
|
+
});
|
|
5535
|
+
}); };
|
|
5536
|
+
export var deserializeAws_restJson1ListControlInsightsByControlDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5537
|
+
var contents, data, _a, _b;
|
|
5538
|
+
return __generator(this, function (_c) {
|
|
5539
|
+
switch (_c.label) {
|
|
5540
|
+
case 0:
|
|
5541
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5542
|
+
return [2, deserializeAws_restJson1ListControlInsightsByControlDomainCommandError(output, context)];
|
|
5543
|
+
}
|
|
5544
|
+
contents = {
|
|
5545
|
+
$metadata: deserializeMetadata(output),
|
|
5546
|
+
controlInsightsMetadata: undefined,
|
|
5547
|
+
nextToken: undefined,
|
|
5548
|
+
};
|
|
5549
|
+
_a = __expectNonNull;
|
|
5550
|
+
_b = __expectObject;
|
|
5551
|
+
return [4, parseBody(output.body, context)];
|
|
5552
|
+
case 1:
|
|
5553
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5554
|
+
if (data.controlInsightsMetadata !== undefined && data.controlInsightsMetadata !== null) {
|
|
5555
|
+
contents.controlInsightsMetadata = deserializeAws_restJson1ControlInsightsMetadata(data.controlInsightsMetadata, context);
|
|
5556
|
+
}
|
|
5557
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5558
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
5559
|
+
}
|
|
5560
|
+
return [2, Promise.resolve(contents)];
|
|
5561
|
+
}
|
|
5562
|
+
});
|
|
5563
|
+
}); };
|
|
5564
|
+
var deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5565
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
5566
|
+
var _g;
|
|
5567
|
+
return __generator(this, function (_h) {
|
|
5568
|
+
switch (_h.label) {
|
|
5569
|
+
case 0:
|
|
5570
|
+
_a = [__assign({}, output)];
|
|
5571
|
+
_g = {};
|
|
5572
|
+
return [4, parseBody(output.body, context)];
|
|
5573
|
+
case 1:
|
|
5574
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
5575
|
+
errorCode = "UnknownError";
|
|
5576
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5577
|
+
_b = errorCode;
|
|
5578
|
+
switch (_b) {
|
|
5579
|
+
case "AccessDeniedException": return [3, 2];
|
|
5580
|
+
case "com.amazonaws.auditmanager#AccessDeniedException": return [3, 2];
|
|
5581
|
+
case "InternalServerException": return [3, 4];
|
|
5582
|
+
case "com.amazonaws.auditmanager#InternalServerException": return [3, 4];
|
|
5583
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
5584
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException": return [3, 6];
|
|
5585
|
+
case "ValidationException": return [3, 8];
|
|
5586
|
+
case "com.amazonaws.auditmanager#ValidationException": return [3, 8];
|
|
5587
|
+
}
|
|
5588
|
+
return [3, 10];
|
|
5589
|
+
case 2:
|
|
5590
|
+
_c = [{}];
|
|
5591
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
5592
|
+
case 3:
|
|
5593
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5594
|
+
return [3, 11];
|
|
5595
|
+
case 4:
|
|
5596
|
+
_d = [{}];
|
|
5597
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5598
|
+
case 5:
|
|
5599
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5600
|
+
return [3, 11];
|
|
5601
|
+
case 6:
|
|
5602
|
+
_e = [{}];
|
|
5603
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5604
|
+
case 7:
|
|
5605
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5606
|
+
return [3, 11];
|
|
5607
|
+
case 8:
|
|
5608
|
+
_f = [{}];
|
|
5609
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
5610
|
+
case 9:
|
|
5611
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5612
|
+
return [3, 11];
|
|
5613
|
+
case 10:
|
|
5614
|
+
parsedBody = parsedOutput.body;
|
|
5615
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5616
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5617
|
+
_h.label = 11;
|
|
5618
|
+
case 11:
|
|
5619
|
+
message = response.message || response.Message || errorCode;
|
|
5620
|
+
response.message = message;
|
|
5621
|
+
delete response.Message;
|
|
5622
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5623
|
+
}
|
|
5624
|
+
});
|
|
5625
|
+
}); };
|
|
4963
5626
|
export var deserializeAws_restJson1ListControlsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4964
5627
|
var contents, data, _a, _b;
|
|
4965
5628
|
return __generator(this, function (_c) {
|
|
@@ -7181,6 +7844,75 @@ var deserializeAws_restJson1ControlComments = function (output, context) {
|
|
|
7181
7844
|
return deserializeAws_restJson1ControlComment(entry, context);
|
|
7182
7845
|
});
|
|
7183
7846
|
};
|
|
7847
|
+
var deserializeAws_restJson1ControlDomainInsights = function (output, context) {
|
|
7848
|
+
return {
|
|
7849
|
+
controlsCountByNoncompliantEvidence: __expectInt32(output.controlsCountByNoncompliantEvidence),
|
|
7850
|
+
evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
|
|
7851
|
+
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
7852
|
+
: undefined,
|
|
7853
|
+
id: __expectString(output.id),
|
|
7854
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7855
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7856
|
+
: undefined,
|
|
7857
|
+
name: __expectString(output.name),
|
|
7858
|
+
totalControlsCount: __expectInt32(output.totalControlsCount),
|
|
7859
|
+
};
|
|
7860
|
+
};
|
|
7861
|
+
var deserializeAws_restJson1ControlDomainInsightsList = function (output, context) {
|
|
7862
|
+
return (output || [])
|
|
7863
|
+
.filter(function (e) { return e != null; })
|
|
7864
|
+
.map(function (entry) {
|
|
7865
|
+
if (entry === null) {
|
|
7866
|
+
return null;
|
|
7867
|
+
}
|
|
7868
|
+
return deserializeAws_restJson1ControlDomainInsights(entry, context);
|
|
7869
|
+
});
|
|
7870
|
+
};
|
|
7871
|
+
var deserializeAws_restJson1ControlInsightsMetadata = function (output, context) {
|
|
7872
|
+
return (output || [])
|
|
7873
|
+
.filter(function (e) { return e != null; })
|
|
7874
|
+
.map(function (entry) {
|
|
7875
|
+
if (entry === null) {
|
|
7876
|
+
return null;
|
|
7877
|
+
}
|
|
7878
|
+
return deserializeAws_restJson1ControlInsightsMetadataItem(entry, context);
|
|
7879
|
+
});
|
|
7880
|
+
};
|
|
7881
|
+
var deserializeAws_restJson1ControlInsightsMetadataByAssessment = function (output, context) {
|
|
7882
|
+
return (output || [])
|
|
7883
|
+
.filter(function (e) { return e != null; })
|
|
7884
|
+
.map(function (entry) {
|
|
7885
|
+
if (entry === null) {
|
|
7886
|
+
return null;
|
|
7887
|
+
}
|
|
7888
|
+
return deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem(entry, context);
|
|
7889
|
+
});
|
|
7890
|
+
};
|
|
7891
|
+
var deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = function (output, context) {
|
|
7892
|
+
return {
|
|
7893
|
+
controlSetName: __expectString(output.controlSetName),
|
|
7894
|
+
evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
|
|
7895
|
+
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
7896
|
+
: undefined,
|
|
7897
|
+
id: __expectString(output.id),
|
|
7898
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7899
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7900
|
+
: undefined,
|
|
7901
|
+
name: __expectString(output.name),
|
|
7902
|
+
};
|
|
7903
|
+
};
|
|
7904
|
+
var deserializeAws_restJson1ControlInsightsMetadataItem = function (output, context) {
|
|
7905
|
+
return {
|
|
7906
|
+
evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
|
|
7907
|
+
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
7908
|
+
: undefined,
|
|
7909
|
+
id: __expectString(output.id),
|
|
7910
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7911
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7912
|
+
: undefined,
|
|
7913
|
+
name: __expectString(output.name),
|
|
7914
|
+
};
|
|
7915
|
+
};
|
|
7184
7916
|
var deserializeAws_restJson1ControlMappingSource = function (output, context) {
|
|
7185
7917
|
return {
|
|
7186
7918
|
sourceDescription: __expectString(output.sourceDescription),
|
|
@@ -7363,6 +8095,13 @@ var deserializeAws_restJson1EvidenceIds = function (output, context) {
|
|
|
7363
8095
|
return __expectString(entry);
|
|
7364
8096
|
});
|
|
7365
8097
|
};
|
|
8098
|
+
var deserializeAws_restJson1EvidenceInsights = function (output, context) {
|
|
8099
|
+
return {
|
|
8100
|
+
compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
|
|
8101
|
+
inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
|
|
8102
|
+
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
8103
|
+
};
|
|
8104
|
+
};
|
|
7366
8105
|
var deserializeAws_restJson1EvidenceList = function (output, context) {
|
|
7367
8106
|
return (output || [])
|
|
7368
8107
|
.filter(function (e) { return e != null; })
|
|
@@ -7427,6 +8166,31 @@ var deserializeAws_restJson1FrameworkMetadataList = function (output, context) {
|
|
|
7427
8166
|
return deserializeAws_restJson1AssessmentFrameworkMetadata(entry, context);
|
|
7428
8167
|
});
|
|
7429
8168
|
};
|
|
8169
|
+
var deserializeAws_restJson1Insights = function (output, context) {
|
|
8170
|
+
return {
|
|
8171
|
+
activeAssessmentsCount: __expectInt32(output.activeAssessmentsCount),
|
|
8172
|
+
assessmentControlsCountByNoncompliantEvidence: __expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
|
|
8173
|
+
compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
|
|
8174
|
+
inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
|
|
8175
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
8176
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
8177
|
+
: undefined,
|
|
8178
|
+
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
8179
|
+
totalAssessmentControlsCount: __expectInt32(output.totalAssessmentControlsCount),
|
|
8180
|
+
};
|
|
8181
|
+
};
|
|
8182
|
+
var deserializeAws_restJson1InsightsByAssessment = function (output, context) {
|
|
8183
|
+
return {
|
|
8184
|
+
assessmentControlsCountByNoncompliantEvidence: __expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
|
|
8185
|
+
compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
|
|
8186
|
+
inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
|
|
8187
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
8188
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
8189
|
+
: undefined,
|
|
8190
|
+
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
8191
|
+
totalAssessmentControlsCount: __expectInt32(output.totalAssessmentControlsCount),
|
|
8192
|
+
};
|
|
8193
|
+
};
|
|
7430
8194
|
var deserializeAws_restJson1Keywords = function (output, context) {
|
|
7431
8195
|
return (output || [])
|
|
7432
8196
|
.filter(function (e) { return e != null; })
|