@aws-sdk/client-auditmanager 3.137.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/models/models_0.js +17 -4
- package/dist-cjs/protocols/Aws_restJson1.js +737 -1476
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +982 -1471
- package/dist-types/AuditManager.d.ts +33 -29
- package/dist-types/commands/DeleteAssessmentFrameworkShareCommand.d.ts +1 -3
- package/dist-types/commands/DeleteAssessmentReportCommand.d.ts +2 -1
- package/dist-types/commands/DeregisterAccountCommand.d.ts +2 -2
- package/dist-types/commands/DeregisterOrganizationAdminAccountCommand.d.ts +5 -5
- package/dist-types/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +4 -4
- package/dist-types/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +4 -3
- package/dist-types/commands/ListControlDomainInsightsCommand.d.ts +4 -3
- package/dist-types/commands/ListControlInsightsByControlDomainCommand.d.ts +4 -4
- package/dist-types/commands/ListKeywordsForDataSourceCommand.d.ts +2 -1
- package/dist-types/commands/StartAssessmentFrameworkShareCommand.d.ts +5 -3
- package/dist-types/models/models_0.d.ts +187 -84
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/package.json +6 -6
|
@@ -14,16 +14,7 @@ const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = asy
|
|
|
14
14
|
};
|
|
15
15
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
16
16
|
"/assessments/{assessmentId}/associateToAssessmentReport";
|
|
17
|
-
|
|
18
|
-
const labelValue = input.assessmentId;
|
|
19
|
-
if (labelValue.length <= 0) {
|
|
20
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
21
|
-
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
26
|
-
}
|
|
17
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
27
18
|
let body;
|
|
28
19
|
body = JSON.stringify({
|
|
29
20
|
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
@@ -46,16 +37,7 @@ const serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = asyn
|
|
|
46
37
|
};
|
|
47
38
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
48
39
|
"/assessments/{assessmentId}/batchAssociateToAssessmentReport";
|
|
49
|
-
|
|
50
|
-
const labelValue = input.assessmentId;
|
|
51
|
-
if (labelValue.length <= 0) {
|
|
52
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
53
|
-
}
|
|
54
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
58
|
-
}
|
|
40
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
59
41
|
let body;
|
|
60
42
|
body = JSON.stringify({
|
|
61
43
|
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
@@ -78,16 +60,7 @@ const serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = async (in
|
|
|
78
60
|
"content-type": "application/json",
|
|
79
61
|
};
|
|
80
62
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
|
|
81
|
-
|
|
82
|
-
const labelValue = input.assessmentId;
|
|
83
|
-
if (labelValue.length <= 0) {
|
|
84
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
85
|
-
}
|
|
86
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
90
|
-
}
|
|
63
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
91
64
|
let body;
|
|
92
65
|
body = JSON.stringify({
|
|
93
66
|
...(input.createDelegationRequests != null && {
|
|
@@ -111,16 +84,7 @@ const serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = async (in
|
|
|
111
84
|
"content-type": "application/json",
|
|
112
85
|
};
|
|
113
86
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
|
|
114
|
-
|
|
115
|
-
const labelValue = input.assessmentId;
|
|
116
|
-
if (labelValue.length <= 0) {
|
|
117
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
118
|
-
}
|
|
119
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
123
|
-
}
|
|
87
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify({
|
|
126
90
|
...(input.delegationIds != null && {
|
|
@@ -145,16 +109,7 @@ const serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = a
|
|
|
145
109
|
};
|
|
146
110
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
147
111
|
"/assessments/{assessmentId}/batchDisassociateFromAssessmentReport";
|
|
148
|
-
|
|
149
|
-
const labelValue = input.assessmentId;
|
|
150
|
-
if (labelValue.length <= 0) {
|
|
151
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
152
|
-
}
|
|
153
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
157
|
-
}
|
|
112
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
158
113
|
let body;
|
|
159
114
|
body = JSON.stringify({
|
|
160
115
|
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
@@ -178,36 +133,9 @@ const serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = asyn
|
|
|
178
133
|
};
|
|
179
134
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
180
135
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence";
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
185
|
-
}
|
|
186
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
190
|
-
}
|
|
191
|
-
if (input.controlSetId !== undefined) {
|
|
192
|
-
const labelValue = input.controlSetId;
|
|
193
|
-
if (labelValue.length <= 0) {
|
|
194
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
195
|
-
}
|
|
196
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
200
|
-
}
|
|
201
|
-
if (input.controlId !== undefined) {
|
|
202
|
-
const labelValue = input.controlId;
|
|
203
|
-
if (labelValue.length <= 0) {
|
|
204
|
-
throw new Error("Empty value provided for input HTTP label: controlId.");
|
|
205
|
-
}
|
|
206
|
-
resolvedPath = resolvedPath.replace("{controlId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
throw new Error("No value provided for input HTTP label: controlId.");
|
|
210
|
-
}
|
|
136
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
137
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
138
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
211
139
|
let body;
|
|
212
140
|
body = JSON.stringify({
|
|
213
141
|
...(input.manualEvidence != null && {
|
|
@@ -287,16 +215,7 @@ const serializeAws_restJson1CreateAssessmentReportCommand = async (input, contex
|
|
|
287
215
|
"content-type": "application/json",
|
|
288
216
|
};
|
|
289
217
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/reports";
|
|
290
|
-
|
|
291
|
-
const labelValue = input.assessmentId;
|
|
292
|
-
if (labelValue.length <= 0) {
|
|
293
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
294
|
-
}
|
|
295
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
299
|
-
}
|
|
218
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
300
219
|
let body;
|
|
301
220
|
body = JSON.stringify({
|
|
302
221
|
...(input.description != null && { description: input.description }),
|
|
@@ -346,16 +265,7 @@ const serializeAws_restJson1DeleteAssessmentCommand = async (input, context) =>
|
|
|
346
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
347
266
|
const headers = {};
|
|
348
267
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
349
|
-
|
|
350
|
-
const labelValue = input.assessmentId;
|
|
351
|
-
if (labelValue.length <= 0) {
|
|
352
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
353
|
-
}
|
|
354
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
357
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
358
|
-
}
|
|
268
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
359
269
|
let body;
|
|
360
270
|
return new protocol_http_1.HttpRequest({
|
|
361
271
|
protocol,
|
|
@@ -372,16 +282,7 @@ const serializeAws_restJson1DeleteAssessmentFrameworkCommand = async (input, con
|
|
|
372
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
283
|
const headers = {};
|
|
374
284
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
375
|
-
|
|
376
|
-
const labelValue = input.frameworkId;
|
|
377
|
-
if (labelValue.length <= 0) {
|
|
378
|
-
throw new Error("Empty value provided for input HTTP label: frameworkId.");
|
|
379
|
-
}
|
|
380
|
-
resolvedPath = resolvedPath.replace("{frameworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
throw new Error("No value provided for input HTTP label: frameworkId.");
|
|
384
|
-
}
|
|
285
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
385
286
|
let body;
|
|
386
287
|
return new protocol_http_1.HttpRequest({
|
|
387
288
|
protocol,
|
|
@@ -399,19 +300,10 @@ const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async (input
|
|
|
399
300
|
const headers = {};
|
|
400
301
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
401
302
|
"/assessmentFrameworkShareRequests/{requestId}";
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
resolvedPath = resolvedPath.replace("{requestId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
throw new Error("No value provided for input HTTP label: requestId.");
|
|
411
|
-
}
|
|
412
|
-
const query = {
|
|
413
|
-
...(input.requestType !== undefined && { requestType: input.requestType }),
|
|
414
|
-
};
|
|
303
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
|
|
304
|
+
const query = map({
|
|
305
|
+
requestType: [, input.requestType],
|
|
306
|
+
});
|
|
415
307
|
let body;
|
|
416
308
|
return new protocol_http_1.HttpRequest({
|
|
417
309
|
protocol,
|
|
@@ -430,26 +322,8 @@ const serializeAws_restJson1DeleteAssessmentReportCommand = async (input, contex
|
|
|
430
322
|
const headers = {};
|
|
431
323
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
432
324
|
"/assessments/{assessmentId}/reports/{assessmentReportId}";
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
if (labelValue.length <= 0) {
|
|
436
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
437
|
-
}
|
|
438
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
442
|
-
}
|
|
443
|
-
if (input.assessmentReportId !== undefined) {
|
|
444
|
-
const labelValue = input.assessmentReportId;
|
|
445
|
-
if (labelValue.length <= 0) {
|
|
446
|
-
throw new Error("Empty value provided for input HTTP label: assessmentReportId.");
|
|
447
|
-
}
|
|
448
|
-
resolvedPath = resolvedPath.replace("{assessmentReportId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
449
|
-
}
|
|
450
|
-
else {
|
|
451
|
-
throw new Error("No value provided for input HTTP label: assessmentReportId.");
|
|
452
|
-
}
|
|
325
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
326
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
|
|
453
327
|
let body;
|
|
454
328
|
return new protocol_http_1.HttpRequest({
|
|
455
329
|
protocol,
|
|
@@ -466,16 +340,7 @@ const serializeAws_restJson1DeleteControlCommand = async (input, context) => {
|
|
|
466
340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
467
341
|
const headers = {};
|
|
468
342
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
469
|
-
|
|
470
|
-
const labelValue = input.controlId;
|
|
471
|
-
if (labelValue.length <= 0) {
|
|
472
|
-
throw new Error("Empty value provided for input HTTP label: controlId.");
|
|
473
|
-
}
|
|
474
|
-
resolvedPath = resolvedPath.replace("{controlId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
throw new Error("No value provided for input HTTP label: controlId.");
|
|
478
|
-
}
|
|
343
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
479
344
|
let body;
|
|
480
345
|
return new protocol_http_1.HttpRequest({
|
|
481
346
|
protocol,
|
|
@@ -536,16 +401,7 @@ const serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand =
|
|
|
536
401
|
};
|
|
537
402
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
538
403
|
"/assessments/{assessmentId}/disassociateFromAssessmentReport";
|
|
539
|
-
|
|
540
|
-
const labelValue = input.assessmentId;
|
|
541
|
-
if (labelValue.length <= 0) {
|
|
542
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
543
|
-
}
|
|
544
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
545
|
-
}
|
|
546
|
-
else {
|
|
547
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
548
|
-
}
|
|
404
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
549
405
|
let body;
|
|
550
406
|
body = JSON.stringify({
|
|
551
407
|
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
@@ -584,16 +440,7 @@ const serializeAws_restJson1GetAssessmentCommand = async (input, context) => {
|
|
|
584
440
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
585
441
|
const headers = {};
|
|
586
442
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
587
|
-
|
|
588
|
-
const labelValue = input.assessmentId;
|
|
589
|
-
if (labelValue.length <= 0) {
|
|
590
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
591
|
-
}
|
|
592
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
593
|
-
}
|
|
594
|
-
else {
|
|
595
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
596
|
-
}
|
|
443
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
597
444
|
let body;
|
|
598
445
|
return new protocol_http_1.HttpRequest({
|
|
599
446
|
protocol,
|
|
@@ -610,16 +457,7 @@ const serializeAws_restJson1GetAssessmentFrameworkCommand = async (input, contex
|
|
|
610
457
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
611
458
|
const headers = {};
|
|
612
459
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
613
|
-
|
|
614
|
-
const labelValue = input.frameworkId;
|
|
615
|
-
if (labelValue.length <= 0) {
|
|
616
|
-
throw new Error("Empty value provided for input HTTP label: frameworkId.");
|
|
617
|
-
}
|
|
618
|
-
resolvedPath = resolvedPath.replace("{frameworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
throw new Error("No value provided for input HTTP label: frameworkId.");
|
|
622
|
-
}
|
|
460
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
623
461
|
let body;
|
|
624
462
|
return new protocol_http_1.HttpRequest({
|
|
625
463
|
protocol,
|
|
@@ -637,26 +475,8 @@ const serializeAws_restJson1GetAssessmentReportUrlCommand = async (input, contex
|
|
|
637
475
|
const headers = {};
|
|
638
476
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
639
477
|
"/assessments/{assessmentId}/reports/{assessmentReportId}/url";
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
if (labelValue.length <= 0) {
|
|
643
|
-
throw new Error("Empty value provided for input HTTP label: assessmentReportId.");
|
|
644
|
-
}
|
|
645
|
-
resolvedPath = resolvedPath.replace("{assessmentReportId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
646
|
-
}
|
|
647
|
-
else {
|
|
648
|
-
throw new Error("No value provided for input HTTP label: assessmentReportId.");
|
|
649
|
-
}
|
|
650
|
-
if (input.assessmentId !== undefined) {
|
|
651
|
-
const labelValue = input.assessmentId;
|
|
652
|
-
if (labelValue.length <= 0) {
|
|
653
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
654
|
-
}
|
|
655
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
656
|
-
}
|
|
657
|
-
else {
|
|
658
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
659
|
-
}
|
|
478
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
|
|
479
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
660
480
|
let body;
|
|
661
481
|
return new protocol_http_1.HttpRequest({
|
|
662
482
|
protocol,
|
|
@@ -673,22 +493,13 @@ const serializeAws_restJson1GetChangeLogsCommand = async (input, context) => {
|
|
|
673
493
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
674
494
|
const headers = {};
|
|
675
495
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/changelogs";
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
685
|
-
}
|
|
686
|
-
const query = {
|
|
687
|
-
...(input.controlSetId !== undefined && { controlSetId: input.controlSetId }),
|
|
688
|
-
...(input.controlId !== undefined && { controlId: input.controlId }),
|
|
689
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
690
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
691
|
-
};
|
|
496
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
497
|
+
const query = map({
|
|
498
|
+
controlSetId: [, input.controlSetId],
|
|
499
|
+
controlId: [, input.controlId],
|
|
500
|
+
nextToken: [, input.nextToken],
|
|
501
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
502
|
+
});
|
|
692
503
|
let body;
|
|
693
504
|
return new protocol_http_1.HttpRequest({
|
|
694
505
|
protocol,
|
|
@@ -706,16 +517,7 @@ const serializeAws_restJson1GetControlCommand = async (input, context) => {
|
|
|
706
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
707
518
|
const headers = {};
|
|
708
519
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
709
|
-
|
|
710
|
-
const labelValue = input.controlId;
|
|
711
|
-
if (labelValue.length <= 0) {
|
|
712
|
-
throw new Error("Empty value provided for input HTTP label: controlId.");
|
|
713
|
-
}
|
|
714
|
-
resolvedPath = resolvedPath.replace("{controlId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
715
|
-
}
|
|
716
|
-
else {
|
|
717
|
-
throw new Error("No value provided for input HTTP label: controlId.");
|
|
718
|
-
}
|
|
520
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
719
521
|
let body;
|
|
720
522
|
return new protocol_http_1.HttpRequest({
|
|
721
523
|
protocol,
|
|
@@ -732,10 +534,10 @@ const serializeAws_restJson1GetDelegationsCommand = async (input, context) => {
|
|
|
732
534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
733
535
|
const headers = {};
|
|
734
536
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegations";
|
|
735
|
-
const query = {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
};
|
|
537
|
+
const query = map({
|
|
538
|
+
nextToken: [, input.nextToken],
|
|
539
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
540
|
+
});
|
|
739
541
|
let body;
|
|
740
542
|
return new protocol_http_1.HttpRequest({
|
|
741
543
|
protocol,
|
|
@@ -754,46 +556,10 @@ const serializeAws_restJson1GetEvidenceCommand = async (input, context) => {
|
|
|
754
556
|
const headers = {};
|
|
755
557
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
756
558
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}";
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
763
|
-
}
|
|
764
|
-
else {
|
|
765
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
766
|
-
}
|
|
767
|
-
if (input.controlSetId !== undefined) {
|
|
768
|
-
const labelValue = input.controlSetId;
|
|
769
|
-
if (labelValue.length <= 0) {
|
|
770
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
771
|
-
}
|
|
772
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
776
|
-
}
|
|
777
|
-
if (input.evidenceFolderId !== undefined) {
|
|
778
|
-
const labelValue = input.evidenceFolderId;
|
|
779
|
-
if (labelValue.length <= 0) {
|
|
780
|
-
throw new Error("Empty value provided for input HTTP label: evidenceFolderId.");
|
|
781
|
-
}
|
|
782
|
-
resolvedPath = resolvedPath.replace("{evidenceFolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
783
|
-
}
|
|
784
|
-
else {
|
|
785
|
-
throw new Error("No value provided for input HTTP label: evidenceFolderId.");
|
|
786
|
-
}
|
|
787
|
-
if (input.evidenceId !== undefined) {
|
|
788
|
-
const labelValue = input.evidenceId;
|
|
789
|
-
if (labelValue.length <= 0) {
|
|
790
|
-
throw new Error("Empty value provided for input HTTP label: evidenceId.");
|
|
791
|
-
}
|
|
792
|
-
resolvedPath = resolvedPath.replace("{evidenceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
793
|
-
}
|
|
794
|
-
else {
|
|
795
|
-
throw new Error("No value provided for input HTTP label: evidenceId.");
|
|
796
|
-
}
|
|
559
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
560
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
561
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
|
|
562
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "evidenceId", () => input.evidenceId, "{evidenceId}", false);
|
|
797
563
|
let body;
|
|
798
564
|
return new protocol_http_1.HttpRequest({
|
|
799
565
|
protocol,
|
|
@@ -811,40 +577,13 @@ const serializeAws_restJson1GetEvidenceByEvidenceFolderCommand = async (input, c
|
|
|
811
577
|
const headers = {};
|
|
812
578
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
813
579
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence";
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
821
|
-
else {
|
|
822
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
823
|
-
}
|
|
824
|
-
if (input.controlSetId !== undefined) {
|
|
825
|
-
const labelValue = input.controlSetId;
|
|
826
|
-
if (labelValue.length <= 0) {
|
|
827
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
828
|
-
}
|
|
829
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
830
|
-
}
|
|
831
|
-
else {
|
|
832
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
833
|
-
}
|
|
834
|
-
if (input.evidenceFolderId !== undefined) {
|
|
835
|
-
const labelValue = input.evidenceFolderId;
|
|
836
|
-
if (labelValue.length <= 0) {
|
|
837
|
-
throw new Error("Empty value provided for input HTTP label: evidenceFolderId.");
|
|
838
|
-
}
|
|
839
|
-
resolvedPath = resolvedPath.replace("{evidenceFolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
840
|
-
}
|
|
841
|
-
else {
|
|
842
|
-
throw new Error("No value provided for input HTTP label: evidenceFolderId.");
|
|
843
|
-
}
|
|
844
|
-
const query = {
|
|
845
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
846
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
847
|
-
};
|
|
580
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
581
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
582
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
|
|
583
|
+
const query = map({
|
|
584
|
+
nextToken: [, input.nextToken],
|
|
585
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
586
|
+
});
|
|
848
587
|
let body;
|
|
849
588
|
return new protocol_http_1.HttpRequest({
|
|
850
589
|
protocol,
|
|
@@ -863,36 +602,9 @@ const serializeAws_restJson1GetEvidenceFolderCommand = async (input, context) =>
|
|
|
863
602
|
const headers = {};
|
|
864
603
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
865
604
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}";
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
870
|
-
}
|
|
871
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
872
|
-
}
|
|
873
|
-
else {
|
|
874
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
875
|
-
}
|
|
876
|
-
if (input.controlSetId !== undefined) {
|
|
877
|
-
const labelValue = input.controlSetId;
|
|
878
|
-
if (labelValue.length <= 0) {
|
|
879
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
880
|
-
}
|
|
881
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
882
|
-
}
|
|
883
|
-
else {
|
|
884
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
885
|
-
}
|
|
886
|
-
if (input.evidenceFolderId !== undefined) {
|
|
887
|
-
const labelValue = input.evidenceFolderId;
|
|
888
|
-
if (labelValue.length <= 0) {
|
|
889
|
-
throw new Error("Empty value provided for input HTTP label: evidenceFolderId.");
|
|
890
|
-
}
|
|
891
|
-
resolvedPath = resolvedPath.replace("{evidenceFolderId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
892
|
-
}
|
|
893
|
-
else {
|
|
894
|
-
throw new Error("No value provided for input HTTP label: evidenceFolderId.");
|
|
895
|
-
}
|
|
605
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
606
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
607
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
|
|
896
608
|
let body;
|
|
897
609
|
return new protocol_http_1.HttpRequest({
|
|
898
610
|
protocol,
|
|
@@ -910,20 +622,11 @@ const serializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = async (input
|
|
|
910
622
|
const headers = {};
|
|
911
623
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
912
624
|
"/assessments/{assessmentId}/evidenceFolders";
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
922
|
-
}
|
|
923
|
-
const query = {
|
|
924
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
925
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
926
|
-
};
|
|
625
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
626
|
+
const query = map({
|
|
627
|
+
nextToken: [, input.nextToken],
|
|
628
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
629
|
+
});
|
|
927
630
|
let body;
|
|
928
631
|
return new protocol_http_1.HttpRequest({
|
|
929
632
|
protocol,
|
|
@@ -942,40 +645,13 @@ const serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = async
|
|
|
942
645
|
const headers = {};
|
|
943
646
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
944
647
|
"/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}";
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}
|
|
952
|
-
else {
|
|
953
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
954
|
-
}
|
|
955
|
-
if (input.controlSetId !== undefined) {
|
|
956
|
-
const labelValue = input.controlSetId;
|
|
957
|
-
if (labelValue.length <= 0) {
|
|
958
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
959
|
-
}
|
|
960
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
961
|
-
}
|
|
962
|
-
else {
|
|
963
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
964
|
-
}
|
|
965
|
-
if (input.controlId !== undefined) {
|
|
966
|
-
const labelValue = input.controlId;
|
|
967
|
-
if (labelValue.length <= 0) {
|
|
968
|
-
throw new Error("Empty value provided for input HTTP label: controlId.");
|
|
969
|
-
}
|
|
970
|
-
resolvedPath = resolvedPath.replace("{controlId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
971
|
-
}
|
|
972
|
-
else {
|
|
973
|
-
throw new Error("No value provided for input HTTP label: controlId.");
|
|
974
|
-
}
|
|
975
|
-
const query = {
|
|
976
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
977
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
978
|
-
};
|
|
648
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
649
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
650
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
651
|
+
const query = map({
|
|
652
|
+
nextToken: [, input.nextToken],
|
|
653
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
654
|
+
});
|
|
979
655
|
let body;
|
|
980
656
|
return new protocol_http_1.HttpRequest({
|
|
981
657
|
protocol,
|
|
@@ -1012,16 +688,7 @@ const serializeAws_restJson1GetInsightsByAssessmentCommand = async (input, conte
|
|
|
1012
688
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1013
689
|
const headers = {};
|
|
1014
690
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/assessments/{assessmentId}";
|
|
1015
|
-
|
|
1016
|
-
const labelValue = input.assessmentId;
|
|
1017
|
-
if (labelValue.length <= 0) {
|
|
1018
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1019
|
-
}
|
|
1020
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1021
|
-
}
|
|
1022
|
-
else {
|
|
1023
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1024
|
-
}
|
|
691
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1025
692
|
let body;
|
|
1026
693
|
return new protocol_http_1.HttpRequest({
|
|
1027
694
|
protocol,
|
|
@@ -1076,16 +743,7 @@ const serializeAws_restJson1GetSettingsCommand = async (input, context) => {
|
|
|
1076
743
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1077
744
|
const headers = {};
|
|
1078
745
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/settings/{attribute}";
|
|
1079
|
-
|
|
1080
|
-
const labelValue = input.attribute;
|
|
1081
|
-
if (labelValue.length <= 0) {
|
|
1082
|
-
throw new Error("Empty value provided for input HTTP label: attribute.");
|
|
1083
|
-
}
|
|
1084
|
-
resolvedPath = resolvedPath.replace("{attribute}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1085
|
-
}
|
|
1086
|
-
else {
|
|
1087
|
-
throw new Error("No value provided for input HTTP label: attribute.");
|
|
1088
|
-
}
|
|
746
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attribute", () => input.attribute, "{attribute}", false);
|
|
1089
747
|
let body;
|
|
1090
748
|
return new protocol_http_1.HttpRequest({
|
|
1091
749
|
protocol,
|
|
@@ -1102,12 +760,12 @@ const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand
|
|
|
1102
760
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1103
761
|
const headers = {};
|
|
1104
762
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
|
|
1105
|
-
const query = {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
};
|
|
763
|
+
const query = map({
|
|
764
|
+
controlDomainId: [, input.controlDomainId],
|
|
765
|
+
assessmentId: [, input.assessmentId],
|
|
766
|
+
nextToken: [, input.nextToken],
|
|
767
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
768
|
+
});
|
|
1111
769
|
let body;
|
|
1112
770
|
return new protocol_http_1.HttpRequest({
|
|
1113
771
|
protocol,
|
|
@@ -1125,11 +783,11 @@ const serializeAws_restJson1ListAssessmentFrameworksCommand = async (input, cont
|
|
|
1125
783
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1126
784
|
const headers = {};
|
|
1127
785
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
|
|
1128
|
-
const query = {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
};
|
|
786
|
+
const query = map({
|
|
787
|
+
frameworkType: [, input.frameworkType],
|
|
788
|
+
nextToken: [, input.nextToken],
|
|
789
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
790
|
+
});
|
|
1133
791
|
let body;
|
|
1134
792
|
return new protocol_http_1.HttpRequest({
|
|
1135
793
|
protocol,
|
|
@@ -1147,11 +805,11 @@ const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async
|
|
|
1147
805
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1148
806
|
const headers = {};
|
|
1149
807
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
|
|
1150
|
-
const query = {
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
};
|
|
808
|
+
const query = map({
|
|
809
|
+
requestType: [, input.requestType],
|
|
810
|
+
nextToken: [, input.nextToken],
|
|
811
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
812
|
+
});
|
|
1155
813
|
let body;
|
|
1156
814
|
return new protocol_http_1.HttpRequest({
|
|
1157
815
|
protocol,
|
|
@@ -1169,10 +827,10 @@ const serializeAws_restJson1ListAssessmentReportsCommand = async (input, context
|
|
|
1169
827
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1170
828
|
const headers = {};
|
|
1171
829
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports";
|
|
1172
|
-
const query = {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
};
|
|
830
|
+
const query = map({
|
|
831
|
+
nextToken: [, input.nextToken],
|
|
832
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
833
|
+
});
|
|
1176
834
|
let body;
|
|
1177
835
|
return new protocol_http_1.HttpRequest({
|
|
1178
836
|
protocol,
|
|
@@ -1190,11 +848,11 @@ const serializeAws_restJson1ListAssessmentsCommand = async (input, context) => {
|
|
|
1190
848
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1191
849
|
const headers = {};
|
|
1192
850
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
|
|
1193
|
-
const query = {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
};
|
|
851
|
+
const query = map({
|
|
852
|
+
status: [, input.status],
|
|
853
|
+
nextToken: [, input.nextToken],
|
|
854
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
855
|
+
});
|
|
1198
856
|
let body;
|
|
1199
857
|
return new protocol_http_1.HttpRequest({
|
|
1200
858
|
protocol,
|
|
@@ -1212,10 +870,10 @@ const serializeAws_restJson1ListControlDomainInsightsCommand = async (input, con
|
|
|
1212
870
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1213
871
|
const headers = {};
|
|
1214
872
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains";
|
|
1215
|
-
const query = {
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
};
|
|
873
|
+
const query = map({
|
|
874
|
+
nextToken: [, input.nextToken],
|
|
875
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
876
|
+
});
|
|
1219
877
|
let body;
|
|
1220
878
|
return new protocol_http_1.HttpRequest({
|
|
1221
879
|
protocol,
|
|
@@ -1233,11 +891,11 @@ const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async
|
|
|
1233
891
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1234
892
|
const headers = {};
|
|
1235
893
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
|
|
1236
|
-
const query = {
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
};
|
|
894
|
+
const query = map({
|
|
895
|
+
assessmentId: [, input.assessmentId],
|
|
896
|
+
nextToken: [, input.nextToken],
|
|
897
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
898
|
+
});
|
|
1241
899
|
let body;
|
|
1242
900
|
return new protocol_http_1.HttpRequest({
|
|
1243
901
|
protocol,
|
|
@@ -1255,11 +913,11 @@ const serializeAws_restJson1ListControlInsightsByControlDomainCommand = async (i
|
|
|
1255
913
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1256
914
|
const headers = {};
|
|
1257
915
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
|
|
1258
|
-
const query = {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
};
|
|
916
|
+
const query = map({
|
|
917
|
+
controlDomainId: [, input.controlDomainId],
|
|
918
|
+
nextToken: [, input.nextToken],
|
|
919
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
920
|
+
});
|
|
1263
921
|
let body;
|
|
1264
922
|
return new protocol_http_1.HttpRequest({
|
|
1265
923
|
protocol,
|
|
@@ -1277,11 +935,11 @@ const serializeAws_restJson1ListControlsCommand = async (input, context) => {
|
|
|
1277
935
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1278
936
|
const headers = {};
|
|
1279
937
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
|
|
1280
|
-
const query = {
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
};
|
|
938
|
+
const query = map({
|
|
939
|
+
controlType: [, input.controlType],
|
|
940
|
+
nextToken: [, input.nextToken],
|
|
941
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
942
|
+
});
|
|
1285
943
|
let body;
|
|
1286
944
|
return new protocol_http_1.HttpRequest({
|
|
1287
945
|
protocol,
|
|
@@ -1299,11 +957,11 @@ const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (input, con
|
|
|
1299
957
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1300
958
|
const headers = {};
|
|
1301
959
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
|
|
1302
|
-
const query = {
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
};
|
|
960
|
+
const query = map({
|
|
961
|
+
source: [, input.source],
|
|
962
|
+
nextToken: [, input.nextToken],
|
|
963
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
964
|
+
});
|
|
1307
965
|
let body;
|
|
1308
966
|
return new protocol_http_1.HttpRequest({
|
|
1309
967
|
protocol,
|
|
@@ -1321,10 +979,10 @@ const serializeAws_restJson1ListNotificationsCommand = async (input, context) =>
|
|
|
1321
979
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1322
980
|
const headers = {};
|
|
1323
981
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
|
|
1324
|
-
const query = {
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
};
|
|
982
|
+
const query = map({
|
|
983
|
+
nextToken: [, input.nextToken],
|
|
984
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
985
|
+
});
|
|
1328
986
|
let body;
|
|
1329
987
|
return new protocol_http_1.HttpRequest({
|
|
1330
988
|
protocol,
|
|
@@ -1342,16 +1000,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1342
1000
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1343
1001
|
const headers = {};
|
|
1344
1002
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1345
|
-
|
|
1346
|
-
const labelValue = input.resourceArn;
|
|
1347
|
-
if (labelValue.length <= 0) {
|
|
1348
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1349
|
-
}
|
|
1350
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1351
|
-
}
|
|
1352
|
-
else {
|
|
1353
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1354
|
-
}
|
|
1003
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1355
1004
|
let body;
|
|
1356
1005
|
return new protocol_http_1.HttpRequest({
|
|
1357
1006
|
protocol,
|
|
@@ -1414,16 +1063,7 @@ const serializeAws_restJson1StartAssessmentFrameworkShareCommand = async (input,
|
|
|
1414
1063
|
};
|
|
1415
1064
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1416
1065
|
"/assessmentFrameworks/{frameworkId}/shareRequests";
|
|
1417
|
-
|
|
1418
|
-
const labelValue = input.frameworkId;
|
|
1419
|
-
if (labelValue.length <= 0) {
|
|
1420
|
-
throw new Error("Empty value provided for input HTTP label: frameworkId.");
|
|
1421
|
-
}
|
|
1422
|
-
resolvedPath = resolvedPath.replace("{frameworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1423
|
-
}
|
|
1424
|
-
else {
|
|
1425
|
-
throw new Error("No value provided for input HTTP label: frameworkId.");
|
|
1426
|
-
}
|
|
1066
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
1427
1067
|
let body;
|
|
1428
1068
|
body = JSON.stringify({
|
|
1429
1069
|
...(input.comment != null && { comment: input.comment }),
|
|
@@ -1447,16 +1087,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1447
1087
|
"content-type": "application/json",
|
|
1448
1088
|
};
|
|
1449
1089
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1450
|
-
|
|
1451
|
-
const labelValue = input.resourceArn;
|
|
1452
|
-
if (labelValue.length <= 0) {
|
|
1453
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1454
|
-
}
|
|
1455
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1456
|
-
}
|
|
1457
|
-
else {
|
|
1458
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1459
|
-
}
|
|
1090
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1460
1091
|
let body;
|
|
1461
1092
|
body = JSON.stringify({
|
|
1462
1093
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -1476,19 +1107,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1476
1107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1477
1108
|
const headers = {};
|
|
1478
1109
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
}
|
|
1484
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1485
|
-
}
|
|
1486
|
-
else {
|
|
1487
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1488
|
-
}
|
|
1489
|
-
const query = {
|
|
1490
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
1491
|
-
};
|
|
1110
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1111
|
+
const query = map({
|
|
1112
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
1113
|
+
});
|
|
1492
1114
|
let body;
|
|
1493
1115
|
return new protocol_http_1.HttpRequest({
|
|
1494
1116
|
protocol,
|
|
@@ -1508,16 +1130,7 @@ const serializeAws_restJson1UpdateAssessmentCommand = async (input, context) =>
|
|
|
1508
1130
|
"content-type": "application/json",
|
|
1509
1131
|
};
|
|
1510
1132
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
1511
|
-
|
|
1512
|
-
const labelValue = input.assessmentId;
|
|
1513
|
-
if (labelValue.length <= 0) {
|
|
1514
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1515
|
-
}
|
|
1516
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1517
|
-
}
|
|
1518
|
-
else {
|
|
1519
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1520
|
-
}
|
|
1133
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1521
1134
|
let body;
|
|
1522
1135
|
body = JSON.stringify({
|
|
1523
1136
|
...(input.assessmentDescription != null && { assessmentDescription: input.assessmentDescription }),
|
|
@@ -1546,36 +1159,9 @@ const serializeAws_restJson1UpdateAssessmentControlCommand = async (input, conte
|
|
|
1546
1159
|
};
|
|
1547
1160
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1548
1161
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}";
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1553
|
-
}
|
|
1554
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1555
|
-
}
|
|
1556
|
-
else {
|
|
1557
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1558
|
-
}
|
|
1559
|
-
if (input.controlSetId !== undefined) {
|
|
1560
|
-
const labelValue = input.controlSetId;
|
|
1561
|
-
if (labelValue.length <= 0) {
|
|
1562
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
1563
|
-
}
|
|
1564
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1565
|
-
}
|
|
1566
|
-
else {
|
|
1567
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
1568
|
-
}
|
|
1569
|
-
if (input.controlId !== undefined) {
|
|
1570
|
-
const labelValue = input.controlId;
|
|
1571
|
-
if (labelValue.length <= 0) {
|
|
1572
|
-
throw new Error("Empty value provided for input HTTP label: controlId.");
|
|
1573
|
-
}
|
|
1574
|
-
resolvedPath = resolvedPath.replace("{controlId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1575
|
-
}
|
|
1576
|
-
else {
|
|
1577
|
-
throw new Error("No value provided for input HTTP label: controlId.");
|
|
1578
|
-
}
|
|
1162
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1163
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
1164
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
1579
1165
|
let body;
|
|
1580
1166
|
body = JSON.stringify({
|
|
1581
1167
|
...(input.commentBody != null && { commentBody: input.commentBody }),
|
|
@@ -1599,26 +1185,8 @@ const serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = async (inp
|
|
|
1599
1185
|
};
|
|
1600
1186
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1601
1187
|
"/assessments/{assessmentId}/controlSets/{controlSetId}/status";
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
if (labelValue.length <= 0) {
|
|
1605
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1606
|
-
}
|
|
1607
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1608
|
-
}
|
|
1609
|
-
else {
|
|
1610
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1611
|
-
}
|
|
1612
|
-
if (input.controlSetId !== undefined) {
|
|
1613
|
-
const labelValue = input.controlSetId;
|
|
1614
|
-
if (labelValue.length <= 0) {
|
|
1615
|
-
throw new Error("Empty value provided for input HTTP label: controlSetId.");
|
|
1616
|
-
}
|
|
1617
|
-
resolvedPath = resolvedPath.replace("{controlSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1618
|
-
}
|
|
1619
|
-
else {
|
|
1620
|
-
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
1621
|
-
}
|
|
1188
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1189
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
1622
1190
|
let body;
|
|
1623
1191
|
body = JSON.stringify({
|
|
1624
1192
|
...(input.comment != null && { comment: input.comment }),
|
|
@@ -1641,16 +1209,7 @@ const serializeAws_restJson1UpdateAssessmentFrameworkCommand = async (input, con
|
|
|
1641
1209
|
"content-type": "application/json",
|
|
1642
1210
|
};
|
|
1643
1211
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
1644
|
-
|
|
1645
|
-
const labelValue = input.frameworkId;
|
|
1646
|
-
if (labelValue.length <= 0) {
|
|
1647
|
-
throw new Error("Empty value provided for input HTTP label: frameworkId.");
|
|
1648
|
-
}
|
|
1649
|
-
resolvedPath = resolvedPath.replace("{frameworkId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1650
|
-
}
|
|
1651
|
-
else {
|
|
1652
|
-
throw new Error("No value provided for input HTTP label: frameworkId.");
|
|
1653
|
-
}
|
|
1212
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
1654
1213
|
let body;
|
|
1655
1214
|
body = JSON.stringify({
|
|
1656
1215
|
...(input.complianceType != null && { complianceType: input.complianceType }),
|
|
@@ -1678,16 +1237,7 @@ const serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async (input
|
|
|
1678
1237
|
};
|
|
1679
1238
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1680
1239
|
"/assessmentFrameworkShareRequests/{requestId}";
|
|
1681
|
-
|
|
1682
|
-
const labelValue = input.requestId;
|
|
1683
|
-
if (labelValue.length <= 0) {
|
|
1684
|
-
throw new Error("Empty value provided for input HTTP label: requestId.");
|
|
1685
|
-
}
|
|
1686
|
-
resolvedPath = resolvedPath.replace("{requestId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1687
|
-
}
|
|
1688
|
-
else {
|
|
1689
|
-
throw new Error("No value provided for input HTTP label: requestId.");
|
|
1690
|
-
}
|
|
1240
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
|
|
1691
1241
|
let body;
|
|
1692
1242
|
body = JSON.stringify({
|
|
1693
1243
|
...(input.action != null && { action: input.action }),
|
|
@@ -1710,16 +1260,7 @@ const serializeAws_restJson1UpdateAssessmentStatusCommand = async (input, contex
|
|
|
1710
1260
|
"content-type": "application/json",
|
|
1711
1261
|
};
|
|
1712
1262
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/status";
|
|
1713
|
-
|
|
1714
|
-
const labelValue = input.assessmentId;
|
|
1715
|
-
if (labelValue.length <= 0) {
|
|
1716
|
-
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1717
|
-
}
|
|
1718
|
-
resolvedPath = resolvedPath.replace("{assessmentId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1719
|
-
}
|
|
1720
|
-
else {
|
|
1721
|
-
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1722
|
-
}
|
|
1263
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1723
1264
|
let body;
|
|
1724
1265
|
body = JSON.stringify({
|
|
1725
1266
|
...(input.status != null && { status: input.status }),
|
|
@@ -1741,16 +1282,7 @@ const serializeAws_restJson1UpdateControlCommand = async (input, context) => {
|
|
|
1741
1282
|
"content-type": "application/json",
|
|
1742
1283
|
};
|
|
1743
1284
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
1744
|
-
|
|
1745
|
-
const labelValue = input.controlId;
|
|
1746
|
-
if (labelValue.length <= 0) {
|
|
1747
|
-
throw new Error("Empty value provided for input HTTP label: controlId.");
|
|
1748
|
-
}
|
|
1749
|
-
resolvedPath = resolvedPath.replace("{controlId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1750
|
-
}
|
|
1751
|
-
else {
|
|
1752
|
-
throw new Error("No value provided for input HTTP label: controlId.");
|
|
1753
|
-
}
|
|
1285
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
1754
1286
|
let body;
|
|
1755
1287
|
body = JSON.stringify({
|
|
1756
1288
|
...(input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions }),
|
|
@@ -1826,11 +1358,11 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = a
|
|
|
1826
1358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1827
1359
|
return deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandError(output, context);
|
|
1828
1360
|
}
|
|
1829
|
-
const contents = {
|
|
1361
|
+
const contents = map({
|
|
1830
1362
|
$metadata: deserializeMetadata(output),
|
|
1831
|
-
};
|
|
1363
|
+
});
|
|
1832
1364
|
await collectBody(output.body, context);
|
|
1833
|
-
return
|
|
1365
|
+
return contents;
|
|
1834
1366
|
};
|
|
1835
1367
|
exports.deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand;
|
|
1836
1368
|
const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
|
|
@@ -1838,7 +1370,6 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandErro
|
|
|
1838
1370
|
...output,
|
|
1839
1371
|
body: await parseBody(output.body, context),
|
|
1840
1372
|
};
|
|
1841
|
-
let response;
|
|
1842
1373
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1374
|
switch (errorCode) {
|
|
1844
1375
|
case "AccessDeniedException":
|
|
@@ -1855,33 +1386,29 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandErro
|
|
|
1855
1386
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1856
1387
|
default:
|
|
1857
1388
|
const parsedBody = parsedOutput.body;
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
$metadata,
|
|
1389
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1390
|
+
output,
|
|
1391
|
+
parsedBody,
|
|
1392
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1393
|
+
errorCode,
|
|
1864
1394
|
});
|
|
1865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1866
1395
|
}
|
|
1867
1396
|
};
|
|
1868
1397
|
const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = async (output, context) => {
|
|
1869
1398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1870
1399
|
return deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError(output, context);
|
|
1871
1400
|
}
|
|
1872
|
-
const contents = {
|
|
1401
|
+
const contents = map({
|
|
1873
1402
|
$metadata: deserializeMetadata(output),
|
|
1874
|
-
|
|
1875
|
-
evidenceIds: undefined,
|
|
1876
|
-
};
|
|
1403
|
+
});
|
|
1877
1404
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1878
|
-
if (data.errors
|
|
1405
|
+
if (data.errors != null) {
|
|
1879
1406
|
contents.errors = deserializeAws_restJson1AssessmentReportEvidenceErrors(data.errors, context);
|
|
1880
1407
|
}
|
|
1881
|
-
if (data.evidenceIds
|
|
1408
|
+
if (data.evidenceIds != null) {
|
|
1882
1409
|
contents.evidenceIds = deserializeAws_restJson1EvidenceIds(data.evidenceIds, context);
|
|
1883
1410
|
}
|
|
1884
|
-
return
|
|
1411
|
+
return contents;
|
|
1885
1412
|
};
|
|
1886
1413
|
exports.deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand;
|
|
1887
1414
|
const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
@@ -1889,7 +1416,6 @@ const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError
|
|
|
1889
1416
|
...output,
|
|
1890
1417
|
body: await parseBody(output.body, context),
|
|
1891
1418
|
};
|
|
1892
|
-
let response;
|
|
1893
1419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
1420
|
switch (errorCode) {
|
|
1895
1421
|
case "AccessDeniedException":
|
|
@@ -1906,33 +1432,29 @@ const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError
|
|
|
1906
1432
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1907
1433
|
default:
|
|
1908
1434
|
const parsedBody = parsedOutput.body;
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
$metadata,
|
|
1435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1436
|
+
output,
|
|
1437
|
+
parsedBody,
|
|
1438
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1439
|
+
errorCode,
|
|
1915
1440
|
});
|
|
1916
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1917
1441
|
}
|
|
1918
1442
|
};
|
|
1919
1443
|
const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand = async (output, context) => {
|
|
1920
1444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1921
1445
|
return deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError(output, context);
|
|
1922
1446
|
}
|
|
1923
|
-
const contents = {
|
|
1447
|
+
const contents = map({
|
|
1924
1448
|
$metadata: deserializeMetadata(output),
|
|
1925
|
-
|
|
1926
|
-
errors: undefined,
|
|
1927
|
-
};
|
|
1449
|
+
});
|
|
1928
1450
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1929
|
-
if (data.delegations
|
|
1451
|
+
if (data.delegations != null) {
|
|
1930
1452
|
contents.delegations = deserializeAws_restJson1Delegations(data.delegations, context);
|
|
1931
1453
|
}
|
|
1932
|
-
if (data.errors
|
|
1454
|
+
if (data.errors != null) {
|
|
1933
1455
|
contents.errors = deserializeAws_restJson1BatchCreateDelegationByAssessmentErrors(data.errors, context);
|
|
1934
1456
|
}
|
|
1935
|
-
return
|
|
1457
|
+
return contents;
|
|
1936
1458
|
};
|
|
1937
1459
|
exports.deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand = deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand;
|
|
1938
1460
|
const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = async (output, context) => {
|
|
@@ -1940,7 +1462,6 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = as
|
|
|
1940
1462
|
...output,
|
|
1941
1463
|
body: await parseBody(output.body, context),
|
|
1942
1464
|
};
|
|
1943
|
-
let response;
|
|
1944
1465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
1466
|
switch (errorCode) {
|
|
1946
1467
|
case "AccessDeniedException":
|
|
@@ -1957,29 +1478,26 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = as
|
|
|
1957
1478
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1958
1479
|
default:
|
|
1959
1480
|
const parsedBody = parsedOutput.body;
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
$metadata,
|
|
1481
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1482
|
+
output,
|
|
1483
|
+
parsedBody,
|
|
1484
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1485
|
+
errorCode,
|
|
1966
1486
|
});
|
|
1967
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1968
1487
|
}
|
|
1969
1488
|
};
|
|
1970
1489
|
const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = async (output, context) => {
|
|
1971
1490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
1491
|
return deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError(output, context);
|
|
1973
1492
|
}
|
|
1974
|
-
const contents = {
|
|
1493
|
+
const contents = map({
|
|
1975
1494
|
$metadata: deserializeMetadata(output),
|
|
1976
|
-
|
|
1977
|
-
};
|
|
1495
|
+
});
|
|
1978
1496
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1979
|
-
if (data.errors
|
|
1497
|
+
if (data.errors != null) {
|
|
1980
1498
|
contents.errors = deserializeAws_restJson1BatchDeleteDelegationByAssessmentErrors(data.errors, context);
|
|
1981
1499
|
}
|
|
1982
|
-
return
|
|
1500
|
+
return contents;
|
|
1983
1501
|
};
|
|
1984
1502
|
exports.deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand;
|
|
1985
1503
|
const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = async (output, context) => {
|
|
@@ -1987,7 +1505,6 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = as
|
|
|
1987
1505
|
...output,
|
|
1988
1506
|
body: await parseBody(output.body, context),
|
|
1989
1507
|
};
|
|
1990
|
-
let response;
|
|
1991
1508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
1509
|
switch (errorCode) {
|
|
1993
1510
|
case "AccessDeniedException":
|
|
@@ -2004,33 +1521,29 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = as
|
|
|
2004
1521
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2005
1522
|
default:
|
|
2006
1523
|
const parsedBody = parsedOutput.body;
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
$metadata,
|
|
1524
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1525
|
+
output,
|
|
1526
|
+
parsedBody,
|
|
1527
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1528
|
+
errorCode,
|
|
2013
1529
|
});
|
|
2014
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2015
1530
|
}
|
|
2016
1531
|
};
|
|
2017
1532
|
const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = async (output, context) => {
|
|
2018
1533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
1534
|
return deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandError(output, context);
|
|
2020
1535
|
}
|
|
2021
|
-
const contents = {
|
|
1536
|
+
const contents = map({
|
|
2022
1537
|
$metadata: deserializeMetadata(output),
|
|
2023
|
-
|
|
2024
|
-
evidenceIds: undefined,
|
|
2025
|
-
};
|
|
1538
|
+
});
|
|
2026
1539
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2027
|
-
if (data.errors
|
|
1540
|
+
if (data.errors != null) {
|
|
2028
1541
|
contents.errors = deserializeAws_restJson1AssessmentReportEvidenceErrors(data.errors, context);
|
|
2029
1542
|
}
|
|
2030
|
-
if (data.evidenceIds
|
|
1543
|
+
if (data.evidenceIds != null) {
|
|
2031
1544
|
contents.evidenceIds = deserializeAws_restJson1EvidenceIds(data.evidenceIds, context);
|
|
2032
1545
|
}
|
|
2033
|
-
return
|
|
1546
|
+
return contents;
|
|
2034
1547
|
};
|
|
2035
1548
|
exports.deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand;
|
|
2036
1549
|
const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
@@ -2038,7 +1551,6 @@ const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandEr
|
|
|
2038
1551
|
...output,
|
|
2039
1552
|
body: await parseBody(output.body, context),
|
|
2040
1553
|
};
|
|
2041
|
-
let response;
|
|
2042
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
1555
|
switch (errorCode) {
|
|
2044
1556
|
case "AccessDeniedException":
|
|
@@ -2055,29 +1567,26 @@ const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandEr
|
|
|
2055
1567
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2056
1568
|
default:
|
|
2057
1569
|
const parsedBody = parsedOutput.body;
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
$metadata,
|
|
1570
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1571
|
+
output,
|
|
1572
|
+
parsedBody,
|
|
1573
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1574
|
+
errorCode,
|
|
2064
1575
|
});
|
|
2065
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2066
1576
|
}
|
|
2067
1577
|
};
|
|
2068
1578
|
const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = async (output, context) => {
|
|
2069
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2070
1580
|
return deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError(output, context);
|
|
2071
1581
|
}
|
|
2072
|
-
const contents = {
|
|
1582
|
+
const contents = map({
|
|
2073
1583
|
$metadata: deserializeMetadata(output),
|
|
2074
|
-
|
|
2075
|
-
};
|
|
1584
|
+
});
|
|
2076
1585
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2077
|
-
if (data.errors
|
|
1586
|
+
if (data.errors != null) {
|
|
2078
1587
|
contents.errors = deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors(data.errors, context);
|
|
2079
1588
|
}
|
|
2080
|
-
return
|
|
1589
|
+
return contents;
|
|
2081
1590
|
};
|
|
2082
1591
|
exports.deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand;
|
|
2083
1592
|
const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError = async (output, context) => {
|
|
@@ -2085,7 +1594,6 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError
|
|
|
2085
1594
|
...output,
|
|
2086
1595
|
body: await parseBody(output.body, context),
|
|
2087
1596
|
};
|
|
2088
|
-
let response;
|
|
2089
1597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
1598
|
switch (errorCode) {
|
|
2091
1599
|
case "AccessDeniedException":
|
|
@@ -2102,29 +1610,26 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError
|
|
|
2102
1610
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2103
1611
|
default:
|
|
2104
1612
|
const parsedBody = parsedOutput.body;
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
$metadata,
|
|
1613
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1614
|
+
output,
|
|
1615
|
+
parsedBody,
|
|
1616
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1617
|
+
errorCode,
|
|
2111
1618
|
});
|
|
2112
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2113
1619
|
}
|
|
2114
1620
|
};
|
|
2115
1621
|
const deserializeAws_restJson1CreateAssessmentCommand = async (output, context) => {
|
|
2116
1622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
1623
|
return deserializeAws_restJson1CreateAssessmentCommandError(output, context);
|
|
2118
1624
|
}
|
|
2119
|
-
const contents = {
|
|
1625
|
+
const contents = map({
|
|
2120
1626
|
$metadata: deserializeMetadata(output),
|
|
2121
|
-
|
|
2122
|
-
};
|
|
1627
|
+
});
|
|
2123
1628
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2124
|
-
if (data.assessment
|
|
1629
|
+
if (data.assessment != null) {
|
|
2125
1630
|
contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
|
|
2126
1631
|
}
|
|
2127
|
-
return
|
|
1632
|
+
return contents;
|
|
2128
1633
|
};
|
|
2129
1634
|
exports.deserializeAws_restJson1CreateAssessmentCommand = deserializeAws_restJson1CreateAssessmentCommand;
|
|
2130
1635
|
const deserializeAws_restJson1CreateAssessmentCommandError = async (output, context) => {
|
|
@@ -2132,7 +1637,6 @@ const deserializeAws_restJson1CreateAssessmentCommandError = async (output, cont
|
|
|
2132
1637
|
...output,
|
|
2133
1638
|
body: await parseBody(output.body, context),
|
|
2134
1639
|
};
|
|
2135
|
-
let response;
|
|
2136
1640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
1641
|
switch (errorCode) {
|
|
2138
1642
|
case "AccessDeniedException":
|
|
@@ -2144,34 +1648,34 @@ const deserializeAws_restJson1CreateAssessmentCommandError = async (output, cont
|
|
|
2144
1648
|
case "ResourceNotFoundException":
|
|
2145
1649
|
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2146
1650
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1651
|
+
case "ServiceQuotaExceededException":
|
|
1652
|
+
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1653
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2147
1654
|
case "ValidationException":
|
|
2148
1655
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
2149
1656
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2150
1657
|
default:
|
|
2151
1658
|
const parsedBody = parsedOutput.body;
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
$metadata,
|
|
1659
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1660
|
+
output,
|
|
1661
|
+
parsedBody,
|
|
1662
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1663
|
+
errorCode,
|
|
2158
1664
|
});
|
|
2159
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2160
1665
|
}
|
|
2161
1666
|
};
|
|
2162
1667
|
const deserializeAws_restJson1CreateAssessmentFrameworkCommand = async (output, context) => {
|
|
2163
1668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2164
1669
|
return deserializeAws_restJson1CreateAssessmentFrameworkCommandError(output, context);
|
|
2165
1670
|
}
|
|
2166
|
-
const contents = {
|
|
1671
|
+
const contents = map({
|
|
2167
1672
|
$metadata: deserializeMetadata(output),
|
|
2168
|
-
|
|
2169
|
-
};
|
|
1673
|
+
});
|
|
2170
1674
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2171
|
-
if (data.framework
|
|
1675
|
+
if (data.framework != null) {
|
|
2172
1676
|
contents.framework = deserializeAws_restJson1Framework(data.framework, context);
|
|
2173
1677
|
}
|
|
2174
|
-
return
|
|
1678
|
+
return contents;
|
|
2175
1679
|
};
|
|
2176
1680
|
exports.deserializeAws_restJson1CreateAssessmentFrameworkCommand = deserializeAws_restJson1CreateAssessmentFrameworkCommand;
|
|
2177
1681
|
const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -2179,7 +1683,6 @@ const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (out
|
|
|
2179
1683
|
...output,
|
|
2180
1684
|
body: await parseBody(output.body, context),
|
|
2181
1685
|
};
|
|
2182
|
-
let response;
|
|
2183
1686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
1687
|
switch (errorCode) {
|
|
2185
1688
|
case "AccessDeniedException":
|
|
@@ -2191,34 +1694,34 @@ const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (out
|
|
|
2191
1694
|
case "ResourceNotFoundException":
|
|
2192
1695
|
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2193
1696
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1697
|
+
case "ServiceQuotaExceededException":
|
|
1698
|
+
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1699
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2194
1700
|
case "ValidationException":
|
|
2195
1701
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
2196
1702
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2197
1703
|
default:
|
|
2198
1704
|
const parsedBody = parsedOutput.body;
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
$metadata,
|
|
1705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1706
|
+
output,
|
|
1707
|
+
parsedBody,
|
|
1708
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1709
|
+
errorCode,
|
|
2205
1710
|
});
|
|
2206
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2207
1711
|
}
|
|
2208
1712
|
};
|
|
2209
1713
|
const deserializeAws_restJson1CreateAssessmentReportCommand = async (output, context) => {
|
|
2210
1714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2211
1715
|
return deserializeAws_restJson1CreateAssessmentReportCommandError(output, context);
|
|
2212
1716
|
}
|
|
2213
|
-
const contents = {
|
|
1717
|
+
const contents = map({
|
|
2214
1718
|
$metadata: deserializeMetadata(output),
|
|
2215
|
-
|
|
2216
|
-
};
|
|
1719
|
+
});
|
|
2217
1720
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2218
|
-
if (data.assessmentReport
|
|
1721
|
+
if (data.assessmentReport != null) {
|
|
2219
1722
|
contents.assessmentReport = deserializeAws_restJson1AssessmentReport(data.assessmentReport, context);
|
|
2220
1723
|
}
|
|
2221
|
-
return
|
|
1724
|
+
return contents;
|
|
2222
1725
|
};
|
|
2223
1726
|
exports.deserializeAws_restJson1CreateAssessmentReportCommand = deserializeAws_restJson1CreateAssessmentReportCommand;
|
|
2224
1727
|
const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output, context) => {
|
|
@@ -2226,7 +1729,6 @@ const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output
|
|
|
2226
1729
|
...output,
|
|
2227
1730
|
body: await parseBody(output.body, context),
|
|
2228
1731
|
};
|
|
2229
|
-
let response;
|
|
2230
1732
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
1733
|
switch (errorCode) {
|
|
2232
1734
|
case "AccessDeniedException":
|
|
@@ -2243,29 +1745,26 @@ const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output
|
|
|
2243
1745
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2244
1746
|
default:
|
|
2245
1747
|
const parsedBody = parsedOutput.body;
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
$metadata,
|
|
1748
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1749
|
+
output,
|
|
1750
|
+
parsedBody,
|
|
1751
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1752
|
+
errorCode,
|
|
2252
1753
|
});
|
|
2253
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2254
1754
|
}
|
|
2255
1755
|
};
|
|
2256
1756
|
const deserializeAws_restJson1CreateControlCommand = async (output, context) => {
|
|
2257
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2258
1758
|
return deserializeAws_restJson1CreateControlCommandError(output, context);
|
|
2259
1759
|
}
|
|
2260
|
-
const contents = {
|
|
1760
|
+
const contents = map({
|
|
2261
1761
|
$metadata: deserializeMetadata(output),
|
|
2262
|
-
|
|
2263
|
-
};
|
|
1762
|
+
});
|
|
2264
1763
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2265
|
-
if (data.control
|
|
1764
|
+
if (data.control != null) {
|
|
2266
1765
|
contents.control = deserializeAws_restJson1Control(data.control, context);
|
|
2267
1766
|
}
|
|
2268
|
-
return
|
|
1767
|
+
return contents;
|
|
2269
1768
|
};
|
|
2270
1769
|
exports.deserializeAws_restJson1CreateControlCommand = deserializeAws_restJson1CreateControlCommand;
|
|
2271
1770
|
const deserializeAws_restJson1CreateControlCommandError = async (output, context) => {
|
|
@@ -2273,7 +1772,6 @@ const deserializeAws_restJson1CreateControlCommandError = async (output, context
|
|
|
2273
1772
|
...output,
|
|
2274
1773
|
body: await parseBody(output.body, context),
|
|
2275
1774
|
};
|
|
2276
|
-
let response;
|
|
2277
1775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
1776
|
switch (errorCode) {
|
|
2279
1777
|
case "AccessDeniedException":
|
|
@@ -2285,30 +1783,31 @@ const deserializeAws_restJson1CreateControlCommandError = async (output, context
|
|
|
2285
1783
|
case "ResourceNotFoundException":
|
|
2286
1784
|
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2287
1785
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1786
|
+
case "ServiceQuotaExceededException":
|
|
1787
|
+
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1788
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2288
1789
|
case "ValidationException":
|
|
2289
1790
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
2290
1791
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2291
1792
|
default:
|
|
2292
1793
|
const parsedBody = parsedOutput.body;
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
$metadata,
|
|
1794
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1795
|
+
output,
|
|
1796
|
+
parsedBody,
|
|
1797
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1798
|
+
errorCode,
|
|
2299
1799
|
});
|
|
2300
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2301
1800
|
}
|
|
2302
1801
|
};
|
|
2303
1802
|
const deserializeAws_restJson1DeleteAssessmentCommand = async (output, context) => {
|
|
2304
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2305
1804
|
return deserializeAws_restJson1DeleteAssessmentCommandError(output, context);
|
|
2306
1805
|
}
|
|
2307
|
-
const contents = {
|
|
1806
|
+
const contents = map({
|
|
2308
1807
|
$metadata: deserializeMetadata(output),
|
|
2309
|
-
};
|
|
1808
|
+
});
|
|
2310
1809
|
await collectBody(output.body, context);
|
|
2311
|
-
return
|
|
1810
|
+
return contents;
|
|
2312
1811
|
};
|
|
2313
1812
|
exports.deserializeAws_restJson1DeleteAssessmentCommand = deserializeAws_restJson1DeleteAssessmentCommand;
|
|
2314
1813
|
const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, context) => {
|
|
@@ -2316,7 +1815,6 @@ const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, cont
|
|
|
2316
1815
|
...output,
|
|
2317
1816
|
body: await parseBody(output.body, context),
|
|
2318
1817
|
};
|
|
2319
|
-
let response;
|
|
2320
1818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
1819
|
switch (errorCode) {
|
|
2322
1820
|
case "AccessDeniedException":
|
|
@@ -2333,25 +1831,23 @@ const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, cont
|
|
|
2333
1831
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2334
1832
|
default:
|
|
2335
1833
|
const parsedBody = parsedOutput.body;
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
$metadata,
|
|
1834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1835
|
+
output,
|
|
1836
|
+
parsedBody,
|
|
1837
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1838
|
+
errorCode,
|
|
2342
1839
|
});
|
|
2343
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2344
1840
|
}
|
|
2345
1841
|
};
|
|
2346
1842
|
const deserializeAws_restJson1DeleteAssessmentFrameworkCommand = async (output, context) => {
|
|
2347
1843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2348
1844
|
return deserializeAws_restJson1DeleteAssessmentFrameworkCommandError(output, context);
|
|
2349
1845
|
}
|
|
2350
|
-
const contents = {
|
|
1846
|
+
const contents = map({
|
|
2351
1847
|
$metadata: deserializeMetadata(output),
|
|
2352
|
-
};
|
|
1848
|
+
});
|
|
2353
1849
|
await collectBody(output.body, context);
|
|
2354
|
-
return
|
|
1850
|
+
return contents;
|
|
2355
1851
|
};
|
|
2356
1852
|
exports.deserializeAws_restJson1DeleteAssessmentFrameworkCommand = deserializeAws_restJson1DeleteAssessmentFrameworkCommand;
|
|
2357
1853
|
const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -2359,7 +1855,6 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (out
|
|
|
2359
1855
|
...output,
|
|
2360
1856
|
body: await parseBody(output.body, context),
|
|
2361
1857
|
};
|
|
2362
|
-
let response;
|
|
2363
1858
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2364
1859
|
switch (errorCode) {
|
|
2365
1860
|
case "AccessDeniedException":
|
|
@@ -2376,25 +1871,23 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (out
|
|
|
2376
1871
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2377
1872
|
default:
|
|
2378
1873
|
const parsedBody = parsedOutput.body;
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
$metadata,
|
|
1874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1875
|
+
output,
|
|
1876
|
+
parsedBody,
|
|
1877
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1878
|
+
errorCode,
|
|
2385
1879
|
});
|
|
2386
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2387
1880
|
}
|
|
2388
1881
|
};
|
|
2389
1882
|
const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async (output, context) => {
|
|
2390
1883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2391
1884
|
return deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError(output, context);
|
|
2392
1885
|
}
|
|
2393
|
-
const contents = {
|
|
1886
|
+
const contents = map({
|
|
2394
1887
|
$metadata: deserializeMetadata(output),
|
|
2395
|
-
};
|
|
1888
|
+
});
|
|
2396
1889
|
await collectBody(output.body, context);
|
|
2397
|
-
return
|
|
1890
|
+
return contents;
|
|
2398
1891
|
};
|
|
2399
1892
|
exports.deserializeAws_restJson1DeleteAssessmentFrameworkShareCommand = deserializeAws_restJson1DeleteAssessmentFrameworkShareCommand;
|
|
2400
1893
|
const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
@@ -2402,7 +1895,6 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async
|
|
|
2402
1895
|
...output,
|
|
2403
1896
|
body: await parseBody(output.body, context),
|
|
2404
1897
|
};
|
|
2405
|
-
let response;
|
|
2406
1898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
1899
|
switch (errorCode) {
|
|
2408
1900
|
case "AccessDeniedException":
|
|
@@ -2419,25 +1911,23 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async
|
|
|
2419
1911
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2420
1912
|
default:
|
|
2421
1913
|
const parsedBody = parsedOutput.body;
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
$metadata,
|
|
1914
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1915
|
+
output,
|
|
1916
|
+
parsedBody,
|
|
1917
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1918
|
+
errorCode,
|
|
2428
1919
|
});
|
|
2429
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2430
1920
|
}
|
|
2431
1921
|
};
|
|
2432
1922
|
const deserializeAws_restJson1DeleteAssessmentReportCommand = async (output, context) => {
|
|
2433
1923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2434
1924
|
return deserializeAws_restJson1DeleteAssessmentReportCommandError(output, context);
|
|
2435
1925
|
}
|
|
2436
|
-
const contents = {
|
|
1926
|
+
const contents = map({
|
|
2437
1927
|
$metadata: deserializeMetadata(output),
|
|
2438
|
-
};
|
|
1928
|
+
});
|
|
2439
1929
|
await collectBody(output.body, context);
|
|
2440
|
-
return
|
|
1930
|
+
return contents;
|
|
2441
1931
|
};
|
|
2442
1932
|
exports.deserializeAws_restJson1DeleteAssessmentReportCommand = deserializeAws_restJson1DeleteAssessmentReportCommand;
|
|
2443
1933
|
const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output, context) => {
|
|
@@ -2445,7 +1935,6 @@ const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output
|
|
|
2445
1935
|
...output,
|
|
2446
1936
|
body: await parseBody(output.body, context),
|
|
2447
1937
|
};
|
|
2448
|
-
let response;
|
|
2449
1938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2450
1939
|
switch (errorCode) {
|
|
2451
1940
|
case "AccessDeniedException":
|
|
@@ -2462,25 +1951,23 @@ const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output
|
|
|
2462
1951
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2463
1952
|
default:
|
|
2464
1953
|
const parsedBody = parsedOutput.body;
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
$metadata,
|
|
1954
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1955
|
+
output,
|
|
1956
|
+
parsedBody,
|
|
1957
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1958
|
+
errorCode,
|
|
2471
1959
|
});
|
|
2472
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2473
1960
|
}
|
|
2474
1961
|
};
|
|
2475
1962
|
const deserializeAws_restJson1DeleteControlCommand = async (output, context) => {
|
|
2476
1963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2477
1964
|
return deserializeAws_restJson1DeleteControlCommandError(output, context);
|
|
2478
1965
|
}
|
|
2479
|
-
const contents = {
|
|
1966
|
+
const contents = map({
|
|
2480
1967
|
$metadata: deserializeMetadata(output),
|
|
2481
|
-
};
|
|
1968
|
+
});
|
|
2482
1969
|
await collectBody(output.body, context);
|
|
2483
|
-
return
|
|
1970
|
+
return contents;
|
|
2484
1971
|
};
|
|
2485
1972
|
exports.deserializeAws_restJson1DeleteControlCommand = deserializeAws_restJson1DeleteControlCommand;
|
|
2486
1973
|
const deserializeAws_restJson1DeleteControlCommandError = async (output, context) => {
|
|
@@ -2488,7 +1975,6 @@ const deserializeAws_restJson1DeleteControlCommandError = async (output, context
|
|
|
2488
1975
|
...output,
|
|
2489
1976
|
body: await parseBody(output.body, context),
|
|
2490
1977
|
};
|
|
2491
|
-
let response;
|
|
2492
1978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
1979
|
switch (errorCode) {
|
|
2494
1980
|
case "AccessDeniedException":
|
|
@@ -2505,29 +1991,26 @@ const deserializeAws_restJson1DeleteControlCommandError = async (output, context
|
|
|
2505
1991
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2506
1992
|
default:
|
|
2507
1993
|
const parsedBody = parsedOutput.body;
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
$metadata,
|
|
1994
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1995
|
+
output,
|
|
1996
|
+
parsedBody,
|
|
1997
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
1998
|
+
errorCode,
|
|
2514
1999
|
});
|
|
2515
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2516
2000
|
}
|
|
2517
2001
|
};
|
|
2518
2002
|
const deserializeAws_restJson1DeregisterAccountCommand = async (output, context) => {
|
|
2519
2003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2520
2004
|
return deserializeAws_restJson1DeregisterAccountCommandError(output, context);
|
|
2521
2005
|
}
|
|
2522
|
-
const contents = {
|
|
2006
|
+
const contents = map({
|
|
2523
2007
|
$metadata: deserializeMetadata(output),
|
|
2524
|
-
|
|
2525
|
-
};
|
|
2008
|
+
});
|
|
2526
2009
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2527
|
-
if (data.status
|
|
2010
|
+
if (data.status != null) {
|
|
2528
2011
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2529
2012
|
}
|
|
2530
|
-
return
|
|
2013
|
+
return contents;
|
|
2531
2014
|
};
|
|
2532
2015
|
exports.deserializeAws_restJson1DeregisterAccountCommand = deserializeAws_restJson1DeregisterAccountCommand;
|
|
2533
2016
|
const deserializeAws_restJson1DeregisterAccountCommandError = async (output, context) => {
|
|
@@ -2535,7 +2018,6 @@ const deserializeAws_restJson1DeregisterAccountCommandError = async (output, con
|
|
|
2535
2018
|
...output,
|
|
2536
2019
|
body: await parseBody(output.body, context),
|
|
2537
2020
|
};
|
|
2538
|
-
let response;
|
|
2539
2021
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2022
|
switch (errorCode) {
|
|
2541
2023
|
case "AccessDeniedException":
|
|
@@ -2552,25 +2034,23 @@ const deserializeAws_restJson1DeregisterAccountCommandError = async (output, con
|
|
|
2552
2034
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2553
2035
|
default:
|
|
2554
2036
|
const parsedBody = parsedOutput.body;
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
$metadata,
|
|
2037
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2038
|
+
output,
|
|
2039
|
+
parsedBody,
|
|
2040
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2041
|
+
errorCode,
|
|
2561
2042
|
});
|
|
2562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2563
2043
|
}
|
|
2564
2044
|
};
|
|
2565
2045
|
const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommand = async (output, context) => {
|
|
2566
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2567
2047
|
return deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError(output, context);
|
|
2568
2048
|
}
|
|
2569
|
-
const contents = {
|
|
2049
|
+
const contents = map({
|
|
2570
2050
|
$metadata: deserializeMetadata(output),
|
|
2571
|
-
};
|
|
2051
|
+
});
|
|
2572
2052
|
await collectBody(output.body, context);
|
|
2573
|
-
return
|
|
2053
|
+
return contents;
|
|
2574
2054
|
};
|
|
2575
2055
|
exports.deserializeAws_restJson1DeregisterOrganizationAdminAccountCommand = deserializeAws_restJson1DeregisterOrganizationAdminAccountCommand;
|
|
2576
2056
|
const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -2578,7 +2058,6 @@ const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = a
|
|
|
2578
2058
|
...output,
|
|
2579
2059
|
body: await parseBody(output.body, context),
|
|
2580
2060
|
};
|
|
2581
|
-
let response;
|
|
2582
2061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2583
2062
|
switch (errorCode) {
|
|
2584
2063
|
case "AccessDeniedException":
|
|
@@ -2595,25 +2074,23 @@ const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = a
|
|
|
2595
2074
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2596
2075
|
default:
|
|
2597
2076
|
const parsedBody = parsedOutput.body;
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
$metadata,
|
|
2077
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2078
|
+
output,
|
|
2079
|
+
parsedBody,
|
|
2080
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2081
|
+
errorCode,
|
|
2604
2082
|
});
|
|
2605
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2606
2083
|
}
|
|
2607
2084
|
};
|
|
2608
2085
|
const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
|
|
2609
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2610
2087
|
return deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandError(output, context);
|
|
2611
2088
|
}
|
|
2612
|
-
const contents = {
|
|
2089
|
+
const contents = map({
|
|
2613
2090
|
$metadata: deserializeMetadata(output),
|
|
2614
|
-
};
|
|
2091
|
+
});
|
|
2615
2092
|
await collectBody(output.body, context);
|
|
2616
|
-
return
|
|
2093
|
+
return contents;
|
|
2617
2094
|
};
|
|
2618
2095
|
exports.deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand = deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand;
|
|
2619
2096
|
const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
|
|
@@ -2621,7 +2098,6 @@ const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandE
|
|
|
2621
2098
|
...output,
|
|
2622
2099
|
body: await parseBody(output.body, context),
|
|
2623
2100
|
};
|
|
2624
|
-
let response;
|
|
2625
2101
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
2102
|
switch (errorCode) {
|
|
2627
2103
|
case "AccessDeniedException":
|
|
@@ -2638,29 +2114,26 @@ const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandE
|
|
|
2638
2114
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2639
2115
|
default:
|
|
2640
2116
|
const parsedBody = parsedOutput.body;
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
$metadata,
|
|
2117
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2118
|
+
output,
|
|
2119
|
+
parsedBody,
|
|
2120
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2121
|
+
errorCode,
|
|
2647
2122
|
});
|
|
2648
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2649
2123
|
}
|
|
2650
2124
|
};
|
|
2651
2125
|
const deserializeAws_restJson1GetAccountStatusCommand = async (output, context) => {
|
|
2652
2126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2653
2127
|
return deserializeAws_restJson1GetAccountStatusCommandError(output, context);
|
|
2654
2128
|
}
|
|
2655
|
-
const contents = {
|
|
2129
|
+
const contents = map({
|
|
2656
2130
|
$metadata: deserializeMetadata(output),
|
|
2657
|
-
|
|
2658
|
-
};
|
|
2131
|
+
});
|
|
2659
2132
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2660
|
-
if (data.status
|
|
2133
|
+
if (data.status != null) {
|
|
2661
2134
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2662
2135
|
}
|
|
2663
|
-
return
|
|
2136
|
+
return contents;
|
|
2664
2137
|
};
|
|
2665
2138
|
exports.deserializeAws_restJson1GetAccountStatusCommand = deserializeAws_restJson1GetAccountStatusCommand;
|
|
2666
2139
|
const deserializeAws_restJson1GetAccountStatusCommandError = async (output, context) => {
|
|
@@ -2668,7 +2141,6 @@ const deserializeAws_restJson1GetAccountStatusCommandError = async (output, cont
|
|
|
2668
2141
|
...output,
|
|
2669
2142
|
body: await parseBody(output.body, context),
|
|
2670
2143
|
};
|
|
2671
|
-
let response;
|
|
2672
2144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
2145
|
switch (errorCode) {
|
|
2674
2146
|
case "InternalServerException":
|
|
@@ -2676,33 +2148,29 @@ const deserializeAws_restJson1GetAccountStatusCommandError = async (output, cont
|
|
|
2676
2148
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2677
2149
|
default:
|
|
2678
2150
|
const parsedBody = parsedOutput.body;
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
$metadata,
|
|
2151
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2152
|
+
output,
|
|
2153
|
+
parsedBody,
|
|
2154
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2155
|
+
errorCode,
|
|
2685
2156
|
});
|
|
2686
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2687
2157
|
}
|
|
2688
2158
|
};
|
|
2689
2159
|
const deserializeAws_restJson1GetAssessmentCommand = async (output, context) => {
|
|
2690
2160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2691
2161
|
return deserializeAws_restJson1GetAssessmentCommandError(output, context);
|
|
2692
2162
|
}
|
|
2693
|
-
const contents = {
|
|
2163
|
+
const contents = map({
|
|
2694
2164
|
$metadata: deserializeMetadata(output),
|
|
2695
|
-
|
|
2696
|
-
userRole: undefined,
|
|
2697
|
-
};
|
|
2165
|
+
});
|
|
2698
2166
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2699
|
-
if (data.assessment
|
|
2167
|
+
if (data.assessment != null) {
|
|
2700
2168
|
contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
|
|
2701
2169
|
}
|
|
2702
|
-
if (data.userRole
|
|
2170
|
+
if (data.userRole != null) {
|
|
2703
2171
|
contents.userRole = deserializeAws_restJson1Role(data.userRole, context);
|
|
2704
2172
|
}
|
|
2705
|
-
return
|
|
2173
|
+
return contents;
|
|
2706
2174
|
};
|
|
2707
2175
|
exports.deserializeAws_restJson1GetAssessmentCommand = deserializeAws_restJson1GetAssessmentCommand;
|
|
2708
2176
|
const deserializeAws_restJson1GetAssessmentCommandError = async (output, context) => {
|
|
@@ -2710,7 +2178,6 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
|
|
|
2710
2178
|
...output,
|
|
2711
2179
|
body: await parseBody(output.body, context),
|
|
2712
2180
|
};
|
|
2713
|
-
let response;
|
|
2714
2181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
2182
|
switch (errorCode) {
|
|
2716
2183
|
case "AccessDeniedException":
|
|
@@ -2727,29 +2194,26 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
|
|
|
2727
2194
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2728
2195
|
default:
|
|
2729
2196
|
const parsedBody = parsedOutput.body;
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
$metadata,
|
|
2197
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2198
|
+
output,
|
|
2199
|
+
parsedBody,
|
|
2200
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2201
|
+
errorCode,
|
|
2736
2202
|
});
|
|
2737
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2738
2203
|
}
|
|
2739
2204
|
};
|
|
2740
2205
|
const deserializeAws_restJson1GetAssessmentFrameworkCommand = async (output, context) => {
|
|
2741
2206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2742
2207
|
return deserializeAws_restJson1GetAssessmentFrameworkCommandError(output, context);
|
|
2743
2208
|
}
|
|
2744
|
-
const contents = {
|
|
2209
|
+
const contents = map({
|
|
2745
2210
|
$metadata: deserializeMetadata(output),
|
|
2746
|
-
|
|
2747
|
-
};
|
|
2211
|
+
});
|
|
2748
2212
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2749
|
-
if (data.framework
|
|
2213
|
+
if (data.framework != null) {
|
|
2750
2214
|
contents.framework = deserializeAws_restJson1Framework(data.framework, context);
|
|
2751
2215
|
}
|
|
2752
|
-
return
|
|
2216
|
+
return contents;
|
|
2753
2217
|
};
|
|
2754
2218
|
exports.deserializeAws_restJson1GetAssessmentFrameworkCommand = deserializeAws_restJson1GetAssessmentFrameworkCommand;
|
|
2755
2219
|
const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -2757,7 +2221,6 @@ const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output
|
|
|
2757
2221
|
...output,
|
|
2758
2222
|
body: await parseBody(output.body, context),
|
|
2759
2223
|
};
|
|
2760
|
-
let response;
|
|
2761
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
2225
|
switch (errorCode) {
|
|
2763
2226
|
case "AccessDeniedException":
|
|
@@ -2774,29 +2237,26 @@ const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output
|
|
|
2774
2237
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2775
2238
|
default:
|
|
2776
2239
|
const parsedBody = parsedOutput.body;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
$metadata,
|
|
2240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2241
|
+
output,
|
|
2242
|
+
parsedBody,
|
|
2243
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2244
|
+
errorCode,
|
|
2783
2245
|
});
|
|
2784
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2785
2246
|
}
|
|
2786
2247
|
};
|
|
2787
2248
|
const deserializeAws_restJson1GetAssessmentReportUrlCommand = async (output, context) => {
|
|
2788
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2789
2250
|
return deserializeAws_restJson1GetAssessmentReportUrlCommandError(output, context);
|
|
2790
2251
|
}
|
|
2791
|
-
const contents = {
|
|
2252
|
+
const contents = map({
|
|
2792
2253
|
$metadata: deserializeMetadata(output),
|
|
2793
|
-
|
|
2794
|
-
};
|
|
2254
|
+
});
|
|
2795
2255
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2796
|
-
if (data.preSignedUrl
|
|
2256
|
+
if (data.preSignedUrl != null) {
|
|
2797
2257
|
contents.preSignedUrl = deserializeAws_restJson1URL(data.preSignedUrl, context);
|
|
2798
2258
|
}
|
|
2799
|
-
return
|
|
2259
|
+
return contents;
|
|
2800
2260
|
};
|
|
2801
2261
|
exports.deserializeAws_restJson1GetAssessmentReportUrlCommand = deserializeAws_restJson1GetAssessmentReportUrlCommand;
|
|
2802
2262
|
const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output, context) => {
|
|
@@ -2804,7 +2264,6 @@ const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output
|
|
|
2804
2264
|
...output,
|
|
2805
2265
|
body: await parseBody(output.body, context),
|
|
2806
2266
|
};
|
|
2807
|
-
let response;
|
|
2808
2267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2809
2268
|
switch (errorCode) {
|
|
2810
2269
|
case "AccessDeniedException":
|
|
@@ -2821,33 +2280,29 @@ const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output
|
|
|
2821
2280
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2822
2281
|
default:
|
|
2823
2282
|
const parsedBody = parsedOutput.body;
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
$metadata,
|
|
2283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2284
|
+
output,
|
|
2285
|
+
parsedBody,
|
|
2286
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2287
|
+
errorCode,
|
|
2830
2288
|
});
|
|
2831
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2832
2289
|
}
|
|
2833
2290
|
};
|
|
2834
2291
|
const deserializeAws_restJson1GetChangeLogsCommand = async (output, context) => {
|
|
2835
2292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2836
2293
|
return deserializeAws_restJson1GetChangeLogsCommandError(output, context);
|
|
2837
2294
|
}
|
|
2838
|
-
const contents = {
|
|
2295
|
+
const contents = map({
|
|
2839
2296
|
$metadata: deserializeMetadata(output),
|
|
2840
|
-
|
|
2841
|
-
nextToken: undefined,
|
|
2842
|
-
};
|
|
2297
|
+
});
|
|
2843
2298
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2844
|
-
if (data.changeLogs
|
|
2299
|
+
if (data.changeLogs != null) {
|
|
2845
2300
|
contents.changeLogs = deserializeAws_restJson1ChangeLogs(data.changeLogs, context);
|
|
2846
2301
|
}
|
|
2847
|
-
if (data.nextToken
|
|
2302
|
+
if (data.nextToken != null) {
|
|
2848
2303
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2849
2304
|
}
|
|
2850
|
-
return
|
|
2305
|
+
return contents;
|
|
2851
2306
|
};
|
|
2852
2307
|
exports.deserializeAws_restJson1GetChangeLogsCommand = deserializeAws_restJson1GetChangeLogsCommand;
|
|
2853
2308
|
const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context) => {
|
|
@@ -2855,7 +2310,6 @@ const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context
|
|
|
2855
2310
|
...output,
|
|
2856
2311
|
body: await parseBody(output.body, context),
|
|
2857
2312
|
};
|
|
2858
|
-
let response;
|
|
2859
2313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
2314
|
switch (errorCode) {
|
|
2861
2315
|
case "AccessDeniedException":
|
|
@@ -2872,29 +2326,26 @@ const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context
|
|
|
2872
2326
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2873
2327
|
default:
|
|
2874
2328
|
const parsedBody = parsedOutput.body;
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
$metadata,
|
|
2329
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2330
|
+
output,
|
|
2331
|
+
parsedBody,
|
|
2332
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2333
|
+
errorCode,
|
|
2881
2334
|
});
|
|
2882
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2883
2335
|
}
|
|
2884
2336
|
};
|
|
2885
2337
|
const deserializeAws_restJson1GetControlCommand = async (output, context) => {
|
|
2886
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2887
2339
|
return deserializeAws_restJson1GetControlCommandError(output, context);
|
|
2888
2340
|
}
|
|
2889
|
-
const contents = {
|
|
2341
|
+
const contents = map({
|
|
2890
2342
|
$metadata: deserializeMetadata(output),
|
|
2891
|
-
|
|
2892
|
-
};
|
|
2343
|
+
});
|
|
2893
2344
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2894
|
-
if (data.control
|
|
2345
|
+
if (data.control != null) {
|
|
2895
2346
|
contents.control = deserializeAws_restJson1Control(data.control, context);
|
|
2896
2347
|
}
|
|
2897
|
-
return
|
|
2348
|
+
return contents;
|
|
2898
2349
|
};
|
|
2899
2350
|
exports.deserializeAws_restJson1GetControlCommand = deserializeAws_restJson1GetControlCommand;
|
|
2900
2351
|
const deserializeAws_restJson1GetControlCommandError = async (output, context) => {
|
|
@@ -2902,7 +2353,6 @@ const deserializeAws_restJson1GetControlCommandError = async (output, context) =
|
|
|
2902
2353
|
...output,
|
|
2903
2354
|
body: await parseBody(output.body, context),
|
|
2904
2355
|
};
|
|
2905
|
-
let response;
|
|
2906
2356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
2357
|
switch (errorCode) {
|
|
2908
2358
|
case "AccessDeniedException":
|
|
@@ -2919,33 +2369,29 @@ const deserializeAws_restJson1GetControlCommandError = async (output, context) =
|
|
|
2919
2369
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2920
2370
|
default:
|
|
2921
2371
|
const parsedBody = parsedOutput.body;
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
$metadata,
|
|
2372
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2373
|
+
output,
|
|
2374
|
+
parsedBody,
|
|
2375
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2376
|
+
errorCode,
|
|
2928
2377
|
});
|
|
2929
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2930
2378
|
}
|
|
2931
2379
|
};
|
|
2932
2380
|
const deserializeAws_restJson1GetDelegationsCommand = async (output, context) => {
|
|
2933
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2934
2382
|
return deserializeAws_restJson1GetDelegationsCommandError(output, context);
|
|
2935
2383
|
}
|
|
2936
|
-
const contents = {
|
|
2384
|
+
const contents = map({
|
|
2937
2385
|
$metadata: deserializeMetadata(output),
|
|
2938
|
-
|
|
2939
|
-
nextToken: undefined,
|
|
2940
|
-
};
|
|
2386
|
+
});
|
|
2941
2387
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2942
|
-
if (data.delegations
|
|
2388
|
+
if (data.delegations != null) {
|
|
2943
2389
|
contents.delegations = deserializeAws_restJson1DelegationMetadataList(data.delegations, context);
|
|
2944
2390
|
}
|
|
2945
|
-
if (data.nextToken
|
|
2391
|
+
if (data.nextToken != null) {
|
|
2946
2392
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2947
2393
|
}
|
|
2948
|
-
return
|
|
2394
|
+
return contents;
|
|
2949
2395
|
};
|
|
2950
2396
|
exports.deserializeAws_restJson1GetDelegationsCommand = deserializeAws_restJson1GetDelegationsCommand;
|
|
2951
2397
|
const deserializeAws_restJson1GetDelegationsCommandError = async (output, context) => {
|
|
@@ -2953,7 +2399,6 @@ const deserializeAws_restJson1GetDelegationsCommandError = async (output, contex
|
|
|
2953
2399
|
...output,
|
|
2954
2400
|
body: await parseBody(output.body, context),
|
|
2955
2401
|
};
|
|
2956
|
-
let response;
|
|
2957
2402
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
2403
|
switch (errorCode) {
|
|
2959
2404
|
case "AccessDeniedException":
|
|
@@ -2967,29 +2412,26 @@ const deserializeAws_restJson1GetDelegationsCommandError = async (output, contex
|
|
|
2967
2412
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2968
2413
|
default:
|
|
2969
2414
|
const parsedBody = parsedOutput.body;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
$metadata,
|
|
2415
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2416
|
+
output,
|
|
2417
|
+
parsedBody,
|
|
2418
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2419
|
+
errorCode,
|
|
2976
2420
|
});
|
|
2977
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2978
2421
|
}
|
|
2979
2422
|
};
|
|
2980
2423
|
const deserializeAws_restJson1GetEvidenceCommand = async (output, context) => {
|
|
2981
2424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2982
2425
|
return deserializeAws_restJson1GetEvidenceCommandError(output, context);
|
|
2983
2426
|
}
|
|
2984
|
-
const contents = {
|
|
2427
|
+
const contents = map({
|
|
2985
2428
|
$metadata: deserializeMetadata(output),
|
|
2986
|
-
|
|
2987
|
-
};
|
|
2429
|
+
});
|
|
2988
2430
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2989
|
-
if (data.evidence
|
|
2431
|
+
if (data.evidence != null) {
|
|
2990
2432
|
contents.evidence = deserializeAws_restJson1Evidence(data.evidence, context);
|
|
2991
2433
|
}
|
|
2992
|
-
return
|
|
2434
|
+
return contents;
|
|
2993
2435
|
};
|
|
2994
2436
|
exports.deserializeAws_restJson1GetEvidenceCommand = deserializeAws_restJson1GetEvidenceCommand;
|
|
2995
2437
|
const deserializeAws_restJson1GetEvidenceCommandError = async (output, context) => {
|
|
@@ -2997,7 +2439,6 @@ const deserializeAws_restJson1GetEvidenceCommandError = async (output, context)
|
|
|
2997
2439
|
...output,
|
|
2998
2440
|
body: await parseBody(output.body, context),
|
|
2999
2441
|
};
|
|
3000
|
-
let response;
|
|
3001
2442
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
2443
|
switch (errorCode) {
|
|
3003
2444
|
case "AccessDeniedException":
|
|
@@ -3014,33 +2455,29 @@ const deserializeAws_restJson1GetEvidenceCommandError = async (output, context)
|
|
|
3014
2455
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3015
2456
|
default:
|
|
3016
2457
|
const parsedBody = parsedOutput.body;
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
$metadata,
|
|
2458
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2459
|
+
output,
|
|
2460
|
+
parsedBody,
|
|
2461
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2462
|
+
errorCode,
|
|
3023
2463
|
});
|
|
3024
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3025
2464
|
}
|
|
3026
2465
|
};
|
|
3027
2466
|
const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand = async (output, context) => {
|
|
3028
2467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3029
2468
|
return deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError(output, context);
|
|
3030
2469
|
}
|
|
3031
|
-
const contents = {
|
|
2470
|
+
const contents = map({
|
|
3032
2471
|
$metadata: deserializeMetadata(output),
|
|
3033
|
-
|
|
3034
|
-
nextToken: undefined,
|
|
3035
|
-
};
|
|
2472
|
+
});
|
|
3036
2473
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3037
|
-
if (data.evidence
|
|
2474
|
+
if (data.evidence != null) {
|
|
3038
2475
|
contents.evidence = deserializeAws_restJson1EvidenceList(data.evidence, context);
|
|
3039
2476
|
}
|
|
3040
|
-
if (data.nextToken
|
|
2477
|
+
if (data.nextToken != null) {
|
|
3041
2478
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3042
2479
|
}
|
|
3043
|
-
return
|
|
2480
|
+
return contents;
|
|
3044
2481
|
};
|
|
3045
2482
|
exports.deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand = deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand;
|
|
3046
2483
|
const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
@@ -3048,7 +2485,6 @@ const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (o
|
|
|
3048
2485
|
...output,
|
|
3049
2486
|
body: await parseBody(output.body, context),
|
|
3050
2487
|
};
|
|
3051
|
-
let response;
|
|
3052
2488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
2489
|
switch (errorCode) {
|
|
3054
2490
|
case "AccessDeniedException":
|
|
@@ -3065,29 +2501,26 @@ const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (o
|
|
|
3065
2501
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3066
2502
|
default:
|
|
3067
2503
|
const parsedBody = parsedOutput.body;
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
$metadata,
|
|
2504
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2505
|
+
output,
|
|
2506
|
+
parsedBody,
|
|
2507
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2508
|
+
errorCode,
|
|
3074
2509
|
});
|
|
3075
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3076
2510
|
}
|
|
3077
2511
|
};
|
|
3078
2512
|
const deserializeAws_restJson1GetEvidenceFolderCommand = async (output, context) => {
|
|
3079
2513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3080
2514
|
return deserializeAws_restJson1GetEvidenceFolderCommandError(output, context);
|
|
3081
2515
|
}
|
|
3082
|
-
const contents = {
|
|
2516
|
+
const contents = map({
|
|
3083
2517
|
$metadata: deserializeMetadata(output),
|
|
3084
|
-
|
|
3085
|
-
};
|
|
2518
|
+
});
|
|
3086
2519
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3087
|
-
if (data.evidenceFolder
|
|
2520
|
+
if (data.evidenceFolder != null) {
|
|
3088
2521
|
contents.evidenceFolder = deserializeAws_restJson1AssessmentEvidenceFolder(data.evidenceFolder, context);
|
|
3089
2522
|
}
|
|
3090
|
-
return
|
|
2523
|
+
return contents;
|
|
3091
2524
|
};
|
|
3092
2525
|
exports.deserializeAws_restJson1GetEvidenceFolderCommand = deserializeAws_restJson1GetEvidenceFolderCommand;
|
|
3093
2526
|
const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, context) => {
|
|
@@ -3095,7 +2528,6 @@ const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, con
|
|
|
3095
2528
|
...output,
|
|
3096
2529
|
body: await parseBody(output.body, context),
|
|
3097
2530
|
};
|
|
3098
|
-
let response;
|
|
3099
2531
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
2532
|
switch (errorCode) {
|
|
3101
2533
|
case "AccessDeniedException":
|
|
@@ -3112,33 +2544,29 @@ const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, con
|
|
|
3112
2544
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3113
2545
|
default:
|
|
3114
2546
|
const parsedBody = parsedOutput.body;
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
$metadata,
|
|
2547
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2548
|
+
output,
|
|
2549
|
+
parsedBody,
|
|
2550
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2551
|
+
errorCode,
|
|
3121
2552
|
});
|
|
3122
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3123
2553
|
}
|
|
3124
2554
|
};
|
|
3125
2555
|
const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = async (output, context) => {
|
|
3126
2556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3127
2557
|
return deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError(output, context);
|
|
3128
2558
|
}
|
|
3129
|
-
const contents = {
|
|
2559
|
+
const contents = map({
|
|
3130
2560
|
$metadata: deserializeMetadata(output),
|
|
3131
|
-
|
|
3132
|
-
nextToken: undefined,
|
|
3133
|
-
};
|
|
2561
|
+
});
|
|
3134
2562
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3135
|
-
if (data.evidenceFolders
|
|
2563
|
+
if (data.evidenceFolders != null) {
|
|
3136
2564
|
contents.evidenceFolders = deserializeAws_restJson1AssessmentEvidenceFolders(data.evidenceFolders, context);
|
|
3137
2565
|
}
|
|
3138
|
-
if (data.nextToken
|
|
2566
|
+
if (data.nextToken != null) {
|
|
3139
2567
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3140
2568
|
}
|
|
3141
|
-
return
|
|
2569
|
+
return contents;
|
|
3142
2570
|
};
|
|
3143
2571
|
exports.deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand;
|
|
3144
2572
|
const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async (output, context) => {
|
|
@@ -3146,7 +2574,6 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async
|
|
|
3146
2574
|
...output,
|
|
3147
2575
|
body: await parseBody(output.body, context),
|
|
3148
2576
|
};
|
|
3149
|
-
let response;
|
|
3150
2577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3151
2578
|
switch (errorCode) {
|
|
3152
2579
|
case "AccessDeniedException":
|
|
@@ -3163,33 +2590,29 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async
|
|
|
3163
2590
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3164
2591
|
default:
|
|
3165
2592
|
const parsedBody = parsedOutput.body;
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
$metadata,
|
|
2593
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2594
|
+
output,
|
|
2595
|
+
parsedBody,
|
|
2596
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2597
|
+
errorCode,
|
|
3172
2598
|
});
|
|
3173
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3174
2599
|
}
|
|
3175
2600
|
};
|
|
3176
2601
|
const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = async (output, context) => {
|
|
3177
2602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3178
2603
|
return deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError(output, context);
|
|
3179
2604
|
}
|
|
3180
|
-
const contents = {
|
|
2605
|
+
const contents = map({
|
|
3181
2606
|
$metadata: deserializeMetadata(output),
|
|
3182
|
-
|
|
3183
|
-
nextToken: undefined,
|
|
3184
|
-
};
|
|
2607
|
+
});
|
|
3185
2608
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3186
|
-
if (data.evidenceFolders
|
|
2609
|
+
if (data.evidenceFolders != null) {
|
|
3187
2610
|
contents.evidenceFolders = deserializeAws_restJson1AssessmentEvidenceFolders(data.evidenceFolders, context);
|
|
3188
2611
|
}
|
|
3189
|
-
if (data.nextToken
|
|
2612
|
+
if (data.nextToken != null) {
|
|
3190
2613
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3191
2614
|
}
|
|
3192
|
-
return
|
|
2615
|
+
return contents;
|
|
3193
2616
|
};
|
|
3194
2617
|
exports.deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand;
|
|
3195
2618
|
const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError = async (output, context) => {
|
|
@@ -3197,7 +2620,6 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
|
|
|
3197
2620
|
...output,
|
|
3198
2621
|
body: await parseBody(output.body, context),
|
|
3199
2622
|
};
|
|
3200
|
-
let response;
|
|
3201
2623
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3202
2624
|
switch (errorCode) {
|
|
3203
2625
|
case "AccessDeniedException":
|
|
@@ -3214,29 +2636,26 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
|
|
|
3214
2636
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3215
2637
|
default:
|
|
3216
2638
|
const parsedBody = parsedOutput.body;
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
$metadata,
|
|
2639
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2640
|
+
output,
|
|
2641
|
+
parsedBody,
|
|
2642
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2643
|
+
errorCode,
|
|
3223
2644
|
});
|
|
3224
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3225
2645
|
}
|
|
3226
2646
|
};
|
|
3227
2647
|
const deserializeAws_restJson1GetInsightsCommand = async (output, context) => {
|
|
3228
2648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3229
2649
|
return deserializeAws_restJson1GetInsightsCommandError(output, context);
|
|
3230
2650
|
}
|
|
3231
|
-
const contents = {
|
|
2651
|
+
const contents = map({
|
|
3232
2652
|
$metadata: deserializeMetadata(output),
|
|
3233
|
-
|
|
3234
|
-
};
|
|
2653
|
+
});
|
|
3235
2654
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3236
|
-
if (data.insights
|
|
2655
|
+
if (data.insights != null) {
|
|
3237
2656
|
contents.insights = deserializeAws_restJson1Insights(data.insights, context);
|
|
3238
2657
|
}
|
|
3239
|
-
return
|
|
2658
|
+
return contents;
|
|
3240
2659
|
};
|
|
3241
2660
|
exports.deserializeAws_restJson1GetInsightsCommand = deserializeAws_restJson1GetInsightsCommand;
|
|
3242
2661
|
const deserializeAws_restJson1GetInsightsCommandError = async (output, context) => {
|
|
@@ -3244,7 +2663,6 @@ const deserializeAws_restJson1GetInsightsCommandError = async (output, context)
|
|
|
3244
2663
|
...output,
|
|
3245
2664
|
body: await parseBody(output.body, context),
|
|
3246
2665
|
};
|
|
3247
|
-
let response;
|
|
3248
2666
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3249
2667
|
switch (errorCode) {
|
|
3250
2668
|
case "AccessDeniedException":
|
|
@@ -3255,29 +2673,26 @@ const deserializeAws_restJson1GetInsightsCommandError = async (output, context)
|
|
|
3255
2673
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3256
2674
|
default:
|
|
3257
2675
|
const parsedBody = parsedOutput.body;
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
$metadata,
|
|
2676
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2677
|
+
output,
|
|
2678
|
+
parsedBody,
|
|
2679
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2680
|
+
errorCode,
|
|
3264
2681
|
});
|
|
3265
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3266
2682
|
}
|
|
3267
2683
|
};
|
|
3268
2684
|
const deserializeAws_restJson1GetInsightsByAssessmentCommand = async (output, context) => {
|
|
3269
2685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3270
2686
|
return deserializeAws_restJson1GetInsightsByAssessmentCommandError(output, context);
|
|
3271
2687
|
}
|
|
3272
|
-
const contents = {
|
|
2688
|
+
const contents = map({
|
|
3273
2689
|
$metadata: deserializeMetadata(output),
|
|
3274
|
-
|
|
3275
|
-
};
|
|
2690
|
+
});
|
|
3276
2691
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3277
|
-
if (data.insights
|
|
2692
|
+
if (data.insights != null) {
|
|
3278
2693
|
contents.insights = deserializeAws_restJson1InsightsByAssessment(data.insights, context);
|
|
3279
2694
|
}
|
|
3280
|
-
return
|
|
2695
|
+
return contents;
|
|
3281
2696
|
};
|
|
3282
2697
|
exports.deserializeAws_restJson1GetInsightsByAssessmentCommand = deserializeAws_restJson1GetInsightsByAssessmentCommand;
|
|
3283
2698
|
const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (output, context) => {
|
|
@@ -3285,7 +2700,6 @@ const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (outpu
|
|
|
3285
2700
|
...output,
|
|
3286
2701
|
body: await parseBody(output.body, context),
|
|
3287
2702
|
};
|
|
3288
|
-
let response;
|
|
3289
2703
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3290
2704
|
switch (errorCode) {
|
|
3291
2705
|
case "AccessDeniedException":
|
|
@@ -3302,33 +2716,29 @@ const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (outpu
|
|
|
3302
2716
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3303
2717
|
default:
|
|
3304
2718
|
const parsedBody = parsedOutput.body;
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
$metadata,
|
|
2719
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2720
|
+
output,
|
|
2721
|
+
parsedBody,
|
|
2722
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2723
|
+
errorCode,
|
|
3311
2724
|
});
|
|
3312
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3313
2725
|
}
|
|
3314
2726
|
};
|
|
3315
2727
|
const deserializeAws_restJson1GetOrganizationAdminAccountCommand = async (output, context) => {
|
|
3316
2728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3317
2729
|
return deserializeAws_restJson1GetOrganizationAdminAccountCommandError(output, context);
|
|
3318
2730
|
}
|
|
3319
|
-
const contents = {
|
|
2731
|
+
const contents = map({
|
|
3320
2732
|
$metadata: deserializeMetadata(output),
|
|
3321
|
-
|
|
3322
|
-
organizationId: undefined,
|
|
3323
|
-
};
|
|
2733
|
+
});
|
|
3324
2734
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3325
|
-
if (data.adminAccountId
|
|
2735
|
+
if (data.adminAccountId != null) {
|
|
3326
2736
|
contents.adminAccountId = (0, smithy_client_1.expectString)(data.adminAccountId);
|
|
3327
2737
|
}
|
|
3328
|
-
if (data.organizationId
|
|
2738
|
+
if (data.organizationId != null) {
|
|
3329
2739
|
contents.organizationId = (0, smithy_client_1.expectString)(data.organizationId);
|
|
3330
2740
|
}
|
|
3331
|
-
return
|
|
2741
|
+
return contents;
|
|
3332
2742
|
};
|
|
3333
2743
|
exports.deserializeAws_restJson1GetOrganizationAdminAccountCommand = deserializeAws_restJson1GetOrganizationAdminAccountCommand;
|
|
3334
2744
|
const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -3336,7 +2746,6 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
|
|
|
3336
2746
|
...output,
|
|
3337
2747
|
body: await parseBody(output.body, context),
|
|
3338
2748
|
};
|
|
3339
|
-
let response;
|
|
3340
2749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
2750
|
switch (errorCode) {
|
|
3342
2751
|
case "AccessDeniedException":
|
|
@@ -3353,29 +2762,26 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
|
|
|
3353
2762
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3354
2763
|
default:
|
|
3355
2764
|
const parsedBody = parsedOutput.body;
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
$metadata,
|
|
2765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2766
|
+
output,
|
|
2767
|
+
parsedBody,
|
|
2768
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2769
|
+
errorCode,
|
|
3362
2770
|
});
|
|
3363
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3364
2771
|
}
|
|
3365
2772
|
};
|
|
3366
2773
|
const deserializeAws_restJson1GetServicesInScopeCommand = async (output, context) => {
|
|
3367
2774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3368
2775
|
return deserializeAws_restJson1GetServicesInScopeCommandError(output, context);
|
|
3369
2776
|
}
|
|
3370
|
-
const contents = {
|
|
2777
|
+
const contents = map({
|
|
3371
2778
|
$metadata: deserializeMetadata(output),
|
|
3372
|
-
|
|
3373
|
-
};
|
|
2779
|
+
});
|
|
3374
2780
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3375
|
-
if (data.serviceMetadata
|
|
2781
|
+
if (data.serviceMetadata != null) {
|
|
3376
2782
|
contents.serviceMetadata = deserializeAws_restJson1ServiceMetadataList(data.serviceMetadata, context);
|
|
3377
2783
|
}
|
|
3378
|
-
return
|
|
2784
|
+
return contents;
|
|
3379
2785
|
};
|
|
3380
2786
|
exports.deserializeAws_restJson1GetServicesInScopeCommand = deserializeAws_restJson1GetServicesInScopeCommand;
|
|
3381
2787
|
const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, context) => {
|
|
@@ -3383,7 +2789,6 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
|
|
|
3383
2789
|
...output,
|
|
3384
2790
|
body: await parseBody(output.body, context),
|
|
3385
2791
|
};
|
|
3386
|
-
let response;
|
|
3387
2792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3388
2793
|
switch (errorCode) {
|
|
3389
2794
|
case "AccessDeniedException":
|
|
@@ -3397,29 +2802,26 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
|
|
|
3397
2802
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3398
2803
|
default:
|
|
3399
2804
|
const parsedBody = parsedOutput.body;
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
$metadata,
|
|
2805
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2806
|
+
output,
|
|
2807
|
+
parsedBody,
|
|
2808
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2809
|
+
errorCode,
|
|
3406
2810
|
});
|
|
3407
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3408
2811
|
}
|
|
3409
2812
|
};
|
|
3410
2813
|
const deserializeAws_restJson1GetSettingsCommand = async (output, context) => {
|
|
3411
2814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3412
2815
|
return deserializeAws_restJson1GetSettingsCommandError(output, context);
|
|
3413
2816
|
}
|
|
3414
|
-
const contents = {
|
|
2817
|
+
const contents = map({
|
|
3415
2818
|
$metadata: deserializeMetadata(output),
|
|
3416
|
-
|
|
3417
|
-
};
|
|
2819
|
+
});
|
|
3418
2820
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3419
|
-
if (data.settings
|
|
2821
|
+
if (data.settings != null) {
|
|
3420
2822
|
contents.settings = deserializeAws_restJson1Settings(data.settings, context);
|
|
3421
2823
|
}
|
|
3422
|
-
return
|
|
2824
|
+
return contents;
|
|
3423
2825
|
};
|
|
3424
2826
|
exports.deserializeAws_restJson1GetSettingsCommand = deserializeAws_restJson1GetSettingsCommand;
|
|
3425
2827
|
const deserializeAws_restJson1GetSettingsCommandError = async (output, context) => {
|
|
@@ -3427,7 +2829,6 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
|
|
|
3427
2829
|
...output,
|
|
3428
2830
|
body: await parseBody(output.body, context),
|
|
3429
2831
|
};
|
|
3430
|
-
let response;
|
|
3431
2832
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3432
2833
|
switch (errorCode) {
|
|
3433
2834
|
case "AccessDeniedException":
|
|
@@ -3438,33 +2839,29 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
|
|
|
3438
2839
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3439
2840
|
default:
|
|
3440
2841
|
const parsedBody = parsedOutput.body;
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
$metadata,
|
|
2842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2843
|
+
output,
|
|
2844
|
+
parsedBody,
|
|
2845
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2846
|
+
errorCode,
|
|
3447
2847
|
});
|
|
3448
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3449
2848
|
}
|
|
3450
2849
|
};
|
|
3451
2850
|
const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = async (output, context) => {
|
|
3452
2851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3453
2852
|
return deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError(output, context);
|
|
3454
2853
|
}
|
|
3455
|
-
const contents = {
|
|
2854
|
+
const contents = map({
|
|
3456
2855
|
$metadata: deserializeMetadata(output),
|
|
3457
|
-
|
|
3458
|
-
nextToken: undefined,
|
|
3459
|
-
};
|
|
2856
|
+
});
|
|
3460
2857
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3461
|
-
if (data.controlInsightsByAssessment
|
|
2858
|
+
if (data.controlInsightsByAssessment != null) {
|
|
3462
2859
|
contents.controlInsightsByAssessment = deserializeAws_restJson1ControlInsightsMetadataByAssessment(data.controlInsightsByAssessment, context);
|
|
3463
2860
|
}
|
|
3464
|
-
if (data.nextToken
|
|
2861
|
+
if (data.nextToken != null) {
|
|
3465
2862
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3466
2863
|
}
|
|
3467
|
-
return
|
|
2864
|
+
return contents;
|
|
3468
2865
|
};
|
|
3469
2866
|
exports.deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand;
|
|
3470
2867
|
const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
@@ -3472,7 +2869,6 @@ const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
|
|
|
3472
2869
|
...output,
|
|
3473
2870
|
body: await parseBody(output.body, context),
|
|
3474
2871
|
};
|
|
3475
|
-
let response;
|
|
3476
2872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3477
2873
|
switch (errorCode) {
|
|
3478
2874
|
case "AccessDeniedException":
|
|
@@ -3489,33 +2885,29 @@ const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
|
|
|
3489
2885
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3490
2886
|
default:
|
|
3491
2887
|
const parsedBody = parsedOutput.body;
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
$metadata,
|
|
2888
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2889
|
+
output,
|
|
2890
|
+
parsedBody,
|
|
2891
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2892
|
+
errorCode,
|
|
3498
2893
|
});
|
|
3499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3500
2894
|
}
|
|
3501
2895
|
};
|
|
3502
2896
|
const deserializeAws_restJson1ListAssessmentFrameworksCommand = async (output, context) => {
|
|
3503
2897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3504
2898
|
return deserializeAws_restJson1ListAssessmentFrameworksCommandError(output, context);
|
|
3505
2899
|
}
|
|
3506
|
-
const contents = {
|
|
2900
|
+
const contents = map({
|
|
3507
2901
|
$metadata: deserializeMetadata(output),
|
|
3508
|
-
|
|
3509
|
-
nextToken: undefined,
|
|
3510
|
-
};
|
|
2902
|
+
});
|
|
3511
2903
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3512
|
-
if (data.frameworkMetadataList
|
|
2904
|
+
if (data.frameworkMetadataList != null) {
|
|
3513
2905
|
contents.frameworkMetadataList = deserializeAws_restJson1FrameworkMetadataList(data.frameworkMetadataList, context);
|
|
3514
2906
|
}
|
|
3515
|
-
if (data.nextToken
|
|
2907
|
+
if (data.nextToken != null) {
|
|
3516
2908
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3517
2909
|
}
|
|
3518
|
-
return
|
|
2910
|
+
return contents;
|
|
3519
2911
|
};
|
|
3520
2912
|
exports.deserializeAws_restJson1ListAssessmentFrameworksCommand = deserializeAws_restJson1ListAssessmentFrameworksCommand;
|
|
3521
2913
|
const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (output, context) => {
|
|
@@ -3523,7 +2915,6 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
|
|
|
3523
2915
|
...output,
|
|
3524
2916
|
body: await parseBody(output.body, context),
|
|
3525
2917
|
};
|
|
3526
|
-
let response;
|
|
3527
2918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3528
2919
|
switch (errorCode) {
|
|
3529
2920
|
case "AccessDeniedException":
|
|
@@ -3537,33 +2928,29 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
|
|
|
3537
2928
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3538
2929
|
default:
|
|
3539
2930
|
const parsedBody = parsedOutput.body;
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
$metadata,
|
|
2931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2932
|
+
output,
|
|
2933
|
+
parsedBody,
|
|
2934
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2935
|
+
errorCode,
|
|
3546
2936
|
});
|
|
3547
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3548
2937
|
}
|
|
3549
2938
|
};
|
|
3550
2939
|
const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async (output, context) => {
|
|
3551
2940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3552
2941
|
return deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError(output, context);
|
|
3553
2942
|
}
|
|
3554
|
-
const contents = {
|
|
2943
|
+
const contents = map({
|
|
3555
2944
|
$metadata: deserializeMetadata(output),
|
|
3556
|
-
|
|
3557
|
-
nextToken: undefined,
|
|
3558
|
-
};
|
|
2945
|
+
});
|
|
3559
2946
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3560
|
-
if (data.assessmentFrameworkShareRequests
|
|
2947
|
+
if (data.assessmentFrameworkShareRequests != null) {
|
|
3561
2948
|
contents.assessmentFrameworkShareRequests = deserializeAws_restJson1AssessmentFrameworkShareRequestList(data.assessmentFrameworkShareRequests, context);
|
|
3562
2949
|
}
|
|
3563
|
-
if (data.nextToken
|
|
2950
|
+
if (data.nextToken != null) {
|
|
3564
2951
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3565
2952
|
}
|
|
3566
|
-
return
|
|
2953
|
+
return contents;
|
|
3567
2954
|
};
|
|
3568
2955
|
exports.deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand;
|
|
3569
2956
|
const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
|
|
@@ -3571,7 +2958,6 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
|
|
|
3571
2958
|
...output,
|
|
3572
2959
|
body: await parseBody(output.body, context),
|
|
3573
2960
|
};
|
|
3574
|
-
let response;
|
|
3575
2961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3576
2962
|
switch (errorCode) {
|
|
3577
2963
|
case "AccessDeniedException":
|
|
@@ -3585,33 +2971,29 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
|
|
|
3585
2971
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3586
2972
|
default:
|
|
3587
2973
|
const parsedBody = parsedOutput.body;
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
$metadata,
|
|
2974
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2975
|
+
output,
|
|
2976
|
+
parsedBody,
|
|
2977
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
2978
|
+
errorCode,
|
|
3594
2979
|
});
|
|
3595
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3596
2980
|
}
|
|
3597
2981
|
};
|
|
3598
2982
|
const deserializeAws_restJson1ListAssessmentReportsCommand = async (output, context) => {
|
|
3599
2983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3600
2984
|
return deserializeAws_restJson1ListAssessmentReportsCommandError(output, context);
|
|
3601
2985
|
}
|
|
3602
|
-
const contents = {
|
|
2986
|
+
const contents = map({
|
|
3603
2987
|
$metadata: deserializeMetadata(output),
|
|
3604
|
-
|
|
3605
|
-
nextToken: undefined,
|
|
3606
|
-
};
|
|
2988
|
+
});
|
|
3607
2989
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3608
|
-
if (data.assessmentReports
|
|
2990
|
+
if (data.assessmentReports != null) {
|
|
3609
2991
|
contents.assessmentReports = deserializeAws_restJson1AssessmentReportsMetadata(data.assessmentReports, context);
|
|
3610
2992
|
}
|
|
3611
|
-
if (data.nextToken
|
|
2993
|
+
if (data.nextToken != null) {
|
|
3612
2994
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3613
2995
|
}
|
|
3614
|
-
return
|
|
2996
|
+
return contents;
|
|
3615
2997
|
};
|
|
3616
2998
|
exports.deserializeAws_restJson1ListAssessmentReportsCommand = deserializeAws_restJson1ListAssessmentReportsCommand;
|
|
3617
2999
|
const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output, context) => {
|
|
@@ -3619,7 +3001,6 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
|
|
|
3619
3001
|
...output,
|
|
3620
3002
|
body: await parseBody(output.body, context),
|
|
3621
3003
|
};
|
|
3622
|
-
let response;
|
|
3623
3004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
3005
|
switch (errorCode) {
|
|
3625
3006
|
case "AccessDeniedException":
|
|
@@ -3633,33 +3014,29 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
|
|
|
3633
3014
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3634
3015
|
default:
|
|
3635
3016
|
const parsedBody = parsedOutput.body;
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
$metadata,
|
|
3017
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3018
|
+
output,
|
|
3019
|
+
parsedBody,
|
|
3020
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3021
|
+
errorCode,
|
|
3642
3022
|
});
|
|
3643
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3644
3023
|
}
|
|
3645
3024
|
};
|
|
3646
3025
|
const deserializeAws_restJson1ListAssessmentsCommand = async (output, context) => {
|
|
3647
3026
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3648
3027
|
return deserializeAws_restJson1ListAssessmentsCommandError(output, context);
|
|
3649
3028
|
}
|
|
3650
|
-
const contents = {
|
|
3029
|
+
const contents = map({
|
|
3651
3030
|
$metadata: deserializeMetadata(output),
|
|
3652
|
-
|
|
3653
|
-
nextToken: undefined,
|
|
3654
|
-
};
|
|
3031
|
+
});
|
|
3655
3032
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3656
|
-
if (data.assessmentMetadata
|
|
3033
|
+
if (data.assessmentMetadata != null) {
|
|
3657
3034
|
contents.assessmentMetadata = deserializeAws_restJson1ListAssessmentMetadata(data.assessmentMetadata, context);
|
|
3658
3035
|
}
|
|
3659
|
-
if (data.nextToken
|
|
3036
|
+
if (data.nextToken != null) {
|
|
3660
3037
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3661
3038
|
}
|
|
3662
|
-
return
|
|
3039
|
+
return contents;
|
|
3663
3040
|
};
|
|
3664
3041
|
exports.deserializeAws_restJson1ListAssessmentsCommand = deserializeAws_restJson1ListAssessmentsCommand;
|
|
3665
3042
|
const deserializeAws_restJson1ListAssessmentsCommandError = async (output, context) => {
|
|
@@ -3667,7 +3044,6 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
|
|
|
3667
3044
|
...output,
|
|
3668
3045
|
body: await parseBody(output.body, context),
|
|
3669
3046
|
};
|
|
3670
|
-
let response;
|
|
3671
3047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
3048
|
switch (errorCode) {
|
|
3673
3049
|
case "AccessDeniedException":
|
|
@@ -3681,33 +3057,29 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
|
|
|
3681
3057
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3682
3058
|
default:
|
|
3683
3059
|
const parsedBody = parsedOutput.body;
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
$metadata,
|
|
3060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3061
|
+
output,
|
|
3062
|
+
parsedBody,
|
|
3063
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3064
|
+
errorCode,
|
|
3690
3065
|
});
|
|
3691
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3692
3066
|
}
|
|
3693
3067
|
};
|
|
3694
3068
|
const deserializeAws_restJson1ListControlDomainInsightsCommand = async (output, context) => {
|
|
3695
3069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3696
3070
|
return deserializeAws_restJson1ListControlDomainInsightsCommandError(output, context);
|
|
3697
3071
|
}
|
|
3698
|
-
const contents = {
|
|
3072
|
+
const contents = map({
|
|
3699
3073
|
$metadata: deserializeMetadata(output),
|
|
3700
|
-
|
|
3701
|
-
nextToken: undefined,
|
|
3702
|
-
};
|
|
3074
|
+
});
|
|
3703
3075
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3704
|
-
if (data.controlDomainInsights
|
|
3076
|
+
if (data.controlDomainInsights != null) {
|
|
3705
3077
|
contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
|
|
3706
3078
|
}
|
|
3707
|
-
if (data.nextToken
|
|
3079
|
+
if (data.nextToken != null) {
|
|
3708
3080
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3709
3081
|
}
|
|
3710
|
-
return
|
|
3082
|
+
return contents;
|
|
3711
3083
|
};
|
|
3712
3084
|
exports.deserializeAws_restJson1ListControlDomainInsightsCommand = deserializeAws_restJson1ListControlDomainInsightsCommand;
|
|
3713
3085
|
const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (output, context) => {
|
|
@@ -3715,7 +3087,6 @@ const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (out
|
|
|
3715
3087
|
...output,
|
|
3716
3088
|
body: await parseBody(output.body, context),
|
|
3717
3089
|
};
|
|
3718
|
-
let response;
|
|
3719
3090
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3720
3091
|
switch (errorCode) {
|
|
3721
3092
|
case "AccessDeniedException":
|
|
@@ -3732,33 +3103,29 @@ const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (out
|
|
|
3732
3103
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3733
3104
|
default:
|
|
3734
3105
|
const parsedBody = parsedOutput.body;
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
$metadata,
|
|
3106
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3107
|
+
output,
|
|
3108
|
+
parsedBody,
|
|
3109
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3110
|
+
errorCode,
|
|
3741
3111
|
});
|
|
3742
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3743
3112
|
}
|
|
3744
3113
|
};
|
|
3745
3114
|
const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
|
|
3746
3115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3747
3116
|
return deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError(output, context);
|
|
3748
3117
|
}
|
|
3749
|
-
const contents = {
|
|
3118
|
+
const contents = map({
|
|
3750
3119
|
$metadata: deserializeMetadata(output),
|
|
3751
|
-
|
|
3752
|
-
nextToken: undefined,
|
|
3753
|
-
};
|
|
3120
|
+
});
|
|
3754
3121
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3755
|
-
if (data.controlDomainInsights
|
|
3122
|
+
if (data.controlDomainInsights != null) {
|
|
3756
3123
|
contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
|
|
3757
3124
|
}
|
|
3758
|
-
if (data.nextToken
|
|
3125
|
+
if (data.nextToken != null) {
|
|
3759
3126
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3760
3127
|
}
|
|
3761
|
-
return
|
|
3128
|
+
return contents;
|
|
3762
3129
|
};
|
|
3763
3130
|
exports.deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand;
|
|
3764
3131
|
const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError = async (output, context) => {
|
|
@@ -3766,7 +3133,6 @@ const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError
|
|
|
3766
3133
|
...output,
|
|
3767
3134
|
body: await parseBody(output.body, context),
|
|
3768
3135
|
};
|
|
3769
|
-
let response;
|
|
3770
3136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3771
3137
|
switch (errorCode) {
|
|
3772
3138
|
case "AccessDeniedException":
|
|
@@ -3783,33 +3149,29 @@ const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError
|
|
|
3783
3149
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3784
3150
|
default:
|
|
3785
3151
|
const parsedBody = parsedOutput.body;
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
$metadata,
|
|
3152
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3153
|
+
output,
|
|
3154
|
+
parsedBody,
|
|
3155
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3156
|
+
errorCode,
|
|
3792
3157
|
});
|
|
3793
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3794
3158
|
}
|
|
3795
3159
|
};
|
|
3796
3160
|
const deserializeAws_restJson1ListControlInsightsByControlDomainCommand = async (output, context) => {
|
|
3797
3161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3798
3162
|
return deserializeAws_restJson1ListControlInsightsByControlDomainCommandError(output, context);
|
|
3799
3163
|
}
|
|
3800
|
-
const contents = {
|
|
3164
|
+
const contents = map({
|
|
3801
3165
|
$metadata: deserializeMetadata(output),
|
|
3802
|
-
|
|
3803
|
-
nextToken: undefined,
|
|
3804
|
-
};
|
|
3166
|
+
});
|
|
3805
3167
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3806
|
-
if (data.controlInsightsMetadata
|
|
3168
|
+
if (data.controlInsightsMetadata != null) {
|
|
3807
3169
|
contents.controlInsightsMetadata = deserializeAws_restJson1ControlInsightsMetadata(data.controlInsightsMetadata, context);
|
|
3808
3170
|
}
|
|
3809
|
-
if (data.nextToken
|
|
3171
|
+
if (data.nextToken != null) {
|
|
3810
3172
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3811
3173
|
}
|
|
3812
|
-
return
|
|
3174
|
+
return contents;
|
|
3813
3175
|
};
|
|
3814
3176
|
exports.deserializeAws_restJson1ListControlInsightsByControlDomainCommand = deserializeAws_restJson1ListControlInsightsByControlDomainCommand;
|
|
3815
3177
|
const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
@@ -3817,7 +3179,6 @@ const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = a
|
|
|
3817
3179
|
...output,
|
|
3818
3180
|
body: await parseBody(output.body, context),
|
|
3819
3181
|
};
|
|
3820
|
-
let response;
|
|
3821
3182
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3822
3183
|
switch (errorCode) {
|
|
3823
3184
|
case "AccessDeniedException":
|
|
@@ -3834,33 +3195,29 @@ const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = a
|
|
|
3834
3195
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3835
3196
|
default:
|
|
3836
3197
|
const parsedBody = parsedOutput.body;
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
$metadata,
|
|
3198
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3199
|
+
output,
|
|
3200
|
+
parsedBody,
|
|
3201
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3202
|
+
errorCode,
|
|
3843
3203
|
});
|
|
3844
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3845
3204
|
}
|
|
3846
3205
|
};
|
|
3847
3206
|
const deserializeAws_restJson1ListControlsCommand = async (output, context) => {
|
|
3848
3207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3849
3208
|
return deserializeAws_restJson1ListControlsCommandError(output, context);
|
|
3850
3209
|
}
|
|
3851
|
-
const contents = {
|
|
3210
|
+
const contents = map({
|
|
3852
3211
|
$metadata: deserializeMetadata(output),
|
|
3853
|
-
|
|
3854
|
-
nextToken: undefined,
|
|
3855
|
-
};
|
|
3212
|
+
});
|
|
3856
3213
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3857
|
-
if (data.controlMetadataList
|
|
3214
|
+
if (data.controlMetadataList != null) {
|
|
3858
3215
|
contents.controlMetadataList = deserializeAws_restJson1ControlMetadataList(data.controlMetadataList, context);
|
|
3859
3216
|
}
|
|
3860
|
-
if (data.nextToken
|
|
3217
|
+
if (data.nextToken != null) {
|
|
3861
3218
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3862
3219
|
}
|
|
3863
|
-
return
|
|
3220
|
+
return contents;
|
|
3864
3221
|
};
|
|
3865
3222
|
exports.deserializeAws_restJson1ListControlsCommand = deserializeAws_restJson1ListControlsCommand;
|
|
3866
3223
|
const deserializeAws_restJson1ListControlsCommandError = async (output, context) => {
|
|
@@ -3868,7 +3225,6 @@ const deserializeAws_restJson1ListControlsCommandError = async (output, context)
|
|
|
3868
3225
|
...output,
|
|
3869
3226
|
body: await parseBody(output.body, context),
|
|
3870
3227
|
};
|
|
3871
|
-
let response;
|
|
3872
3228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3873
3229
|
switch (errorCode) {
|
|
3874
3230
|
case "AccessDeniedException":
|
|
@@ -3882,33 +3238,29 @@ const deserializeAws_restJson1ListControlsCommandError = async (output, context)
|
|
|
3882
3238
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3883
3239
|
default:
|
|
3884
3240
|
const parsedBody = parsedOutput.body;
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
$metadata,
|
|
3241
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3242
|
+
output,
|
|
3243
|
+
parsedBody,
|
|
3244
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3245
|
+
errorCode,
|
|
3891
3246
|
});
|
|
3892
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3893
3247
|
}
|
|
3894
3248
|
};
|
|
3895
3249
|
const deserializeAws_restJson1ListKeywordsForDataSourceCommand = async (output, context) => {
|
|
3896
3250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3897
3251
|
return deserializeAws_restJson1ListKeywordsForDataSourceCommandError(output, context);
|
|
3898
3252
|
}
|
|
3899
|
-
const contents = {
|
|
3253
|
+
const contents = map({
|
|
3900
3254
|
$metadata: deserializeMetadata(output),
|
|
3901
|
-
|
|
3902
|
-
nextToken: undefined,
|
|
3903
|
-
};
|
|
3255
|
+
});
|
|
3904
3256
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3905
|
-
if (data.keywords
|
|
3257
|
+
if (data.keywords != null) {
|
|
3906
3258
|
contents.keywords = deserializeAws_restJson1Keywords(data.keywords, context);
|
|
3907
3259
|
}
|
|
3908
|
-
if (data.nextToken
|
|
3260
|
+
if (data.nextToken != null) {
|
|
3909
3261
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3910
3262
|
}
|
|
3911
|
-
return
|
|
3263
|
+
return contents;
|
|
3912
3264
|
};
|
|
3913
3265
|
exports.deserializeAws_restJson1ListKeywordsForDataSourceCommand = deserializeAws_restJson1ListKeywordsForDataSourceCommand;
|
|
3914
3266
|
const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (output, context) => {
|
|
@@ -3916,7 +3268,6 @@ const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (out
|
|
|
3916
3268
|
...output,
|
|
3917
3269
|
body: await parseBody(output.body, context),
|
|
3918
3270
|
};
|
|
3919
|
-
let response;
|
|
3920
3271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
3272
|
switch (errorCode) {
|
|
3922
3273
|
case "AccessDeniedException":
|
|
@@ -3930,33 +3281,29 @@ const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (out
|
|
|
3930
3281
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3931
3282
|
default:
|
|
3932
3283
|
const parsedBody = parsedOutput.body;
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
$metadata,
|
|
3284
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3285
|
+
output,
|
|
3286
|
+
parsedBody,
|
|
3287
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3288
|
+
errorCode,
|
|
3939
3289
|
});
|
|
3940
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3941
3290
|
}
|
|
3942
3291
|
};
|
|
3943
3292
|
const deserializeAws_restJson1ListNotificationsCommand = async (output, context) => {
|
|
3944
3293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3945
3294
|
return deserializeAws_restJson1ListNotificationsCommandError(output, context);
|
|
3946
3295
|
}
|
|
3947
|
-
const contents = {
|
|
3296
|
+
const contents = map({
|
|
3948
3297
|
$metadata: deserializeMetadata(output),
|
|
3949
|
-
|
|
3950
|
-
notifications: undefined,
|
|
3951
|
-
};
|
|
3298
|
+
});
|
|
3952
3299
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3953
|
-
if (data.nextToken
|
|
3300
|
+
if (data.nextToken != null) {
|
|
3954
3301
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3955
3302
|
}
|
|
3956
|
-
if (data.notifications
|
|
3303
|
+
if (data.notifications != null) {
|
|
3957
3304
|
contents.notifications = deserializeAws_restJson1Notifications(data.notifications, context);
|
|
3958
3305
|
}
|
|
3959
|
-
return
|
|
3306
|
+
return contents;
|
|
3960
3307
|
};
|
|
3961
3308
|
exports.deserializeAws_restJson1ListNotificationsCommand = deserializeAws_restJson1ListNotificationsCommand;
|
|
3962
3309
|
const deserializeAws_restJson1ListNotificationsCommandError = async (output, context) => {
|
|
@@ -3964,7 +3311,6 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
3964
3311
|
...output,
|
|
3965
3312
|
body: await parseBody(output.body, context),
|
|
3966
3313
|
};
|
|
3967
|
-
let response;
|
|
3968
3314
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3969
3315
|
switch (errorCode) {
|
|
3970
3316
|
case "AccessDeniedException":
|
|
@@ -3978,29 +3324,26 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
3978
3324
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3979
3325
|
default:
|
|
3980
3326
|
const parsedBody = parsedOutput.body;
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
$metadata,
|
|
3327
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3328
|
+
output,
|
|
3329
|
+
parsedBody,
|
|
3330
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3331
|
+
errorCode,
|
|
3987
3332
|
});
|
|
3988
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3989
3333
|
}
|
|
3990
3334
|
};
|
|
3991
3335
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
3992
3336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3993
3337
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
3994
3338
|
}
|
|
3995
|
-
const contents = {
|
|
3339
|
+
const contents = map({
|
|
3996
3340
|
$metadata: deserializeMetadata(output),
|
|
3997
|
-
|
|
3998
|
-
};
|
|
3341
|
+
});
|
|
3999
3342
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4000
|
-
if (data.tags
|
|
3343
|
+
if (data.tags != null) {
|
|
4001
3344
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4002
3345
|
}
|
|
4003
|
-
return
|
|
3346
|
+
return contents;
|
|
4004
3347
|
};
|
|
4005
3348
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
4006
3349
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -4008,7 +3351,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4008
3351
|
...output,
|
|
4009
3352
|
body: await parseBody(output.body, context),
|
|
4010
3353
|
};
|
|
4011
|
-
let response;
|
|
4012
3354
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4013
3355
|
switch (errorCode) {
|
|
4014
3356
|
case "InternalServerException":
|
|
@@ -4022,29 +3364,26 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4022
3364
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4023
3365
|
default:
|
|
4024
3366
|
const parsedBody = parsedOutput.body;
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
$metadata,
|
|
3367
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3368
|
+
output,
|
|
3369
|
+
parsedBody,
|
|
3370
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3371
|
+
errorCode,
|
|
4031
3372
|
});
|
|
4032
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4033
3373
|
}
|
|
4034
3374
|
};
|
|
4035
3375
|
const deserializeAws_restJson1RegisterAccountCommand = async (output, context) => {
|
|
4036
3376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4037
3377
|
return deserializeAws_restJson1RegisterAccountCommandError(output, context);
|
|
4038
3378
|
}
|
|
4039
|
-
const contents = {
|
|
3379
|
+
const contents = map({
|
|
4040
3380
|
$metadata: deserializeMetadata(output),
|
|
4041
|
-
|
|
4042
|
-
};
|
|
3381
|
+
});
|
|
4043
3382
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4044
|
-
if (data.status
|
|
3383
|
+
if (data.status != null) {
|
|
4045
3384
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
4046
3385
|
}
|
|
4047
|
-
return
|
|
3386
|
+
return contents;
|
|
4048
3387
|
};
|
|
4049
3388
|
exports.deserializeAws_restJson1RegisterAccountCommand = deserializeAws_restJson1RegisterAccountCommand;
|
|
4050
3389
|
const deserializeAws_restJson1RegisterAccountCommandError = async (output, context) => {
|
|
@@ -4052,7 +3391,6 @@ const deserializeAws_restJson1RegisterAccountCommandError = async (output, conte
|
|
|
4052
3391
|
...output,
|
|
4053
3392
|
body: await parseBody(output.body, context),
|
|
4054
3393
|
};
|
|
4055
|
-
let response;
|
|
4056
3394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4057
3395
|
switch (errorCode) {
|
|
4058
3396
|
case "AccessDeniedException":
|
|
@@ -4072,33 +3410,29 @@ const deserializeAws_restJson1RegisterAccountCommandError = async (output, conte
|
|
|
4072
3410
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4073
3411
|
default:
|
|
4074
3412
|
const parsedBody = parsedOutput.body;
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
$metadata,
|
|
3413
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3414
|
+
output,
|
|
3415
|
+
parsedBody,
|
|
3416
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3417
|
+
errorCode,
|
|
4081
3418
|
});
|
|
4082
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4083
3419
|
}
|
|
4084
3420
|
};
|
|
4085
3421
|
const deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = async (output, context) => {
|
|
4086
3422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4087
3423
|
return deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError(output, context);
|
|
4088
3424
|
}
|
|
4089
|
-
const contents = {
|
|
3425
|
+
const contents = map({
|
|
4090
3426
|
$metadata: deserializeMetadata(output),
|
|
4091
|
-
|
|
4092
|
-
organizationId: undefined,
|
|
4093
|
-
};
|
|
3427
|
+
});
|
|
4094
3428
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4095
|
-
if (data.adminAccountId
|
|
3429
|
+
if (data.adminAccountId != null) {
|
|
4096
3430
|
contents.adminAccountId = (0, smithy_client_1.expectString)(data.adminAccountId);
|
|
4097
3431
|
}
|
|
4098
|
-
if (data.organizationId
|
|
3432
|
+
if (data.organizationId != null) {
|
|
4099
3433
|
contents.organizationId = (0, smithy_client_1.expectString)(data.organizationId);
|
|
4100
3434
|
}
|
|
4101
|
-
return
|
|
3435
|
+
return contents;
|
|
4102
3436
|
};
|
|
4103
3437
|
exports.deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = deserializeAws_restJson1RegisterOrganizationAdminAccountCommand;
|
|
4104
3438
|
const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -4106,7 +3440,6 @@ const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = asy
|
|
|
4106
3440
|
...output,
|
|
4107
3441
|
body: await parseBody(output.body, context),
|
|
4108
3442
|
};
|
|
4109
|
-
let response;
|
|
4110
3443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
3444
|
switch (errorCode) {
|
|
4112
3445
|
case "AccessDeniedException":
|
|
@@ -4123,29 +3456,26 @@ const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = asy
|
|
|
4123
3456
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4124
3457
|
default:
|
|
4125
3458
|
const parsedBody = parsedOutput.body;
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
$metadata,
|
|
3459
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3460
|
+
output,
|
|
3461
|
+
parsedBody,
|
|
3462
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3463
|
+
errorCode,
|
|
4132
3464
|
});
|
|
4133
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4134
3465
|
}
|
|
4135
3466
|
};
|
|
4136
3467
|
const deserializeAws_restJson1StartAssessmentFrameworkShareCommand = async (output, context) => {
|
|
4137
3468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4138
3469
|
return deserializeAws_restJson1StartAssessmentFrameworkShareCommandError(output, context);
|
|
4139
3470
|
}
|
|
4140
|
-
const contents = {
|
|
3471
|
+
const contents = map({
|
|
4141
3472
|
$metadata: deserializeMetadata(output),
|
|
4142
|
-
|
|
4143
|
-
};
|
|
3473
|
+
});
|
|
4144
3474
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4145
|
-
if (data.assessmentFrameworkShareRequest
|
|
3475
|
+
if (data.assessmentFrameworkShareRequest != null) {
|
|
4146
3476
|
contents.assessmentFrameworkShareRequest = deserializeAws_restJson1AssessmentFrameworkShareRequest(data.assessmentFrameworkShareRequest, context);
|
|
4147
3477
|
}
|
|
4148
|
-
return
|
|
3478
|
+
return contents;
|
|
4149
3479
|
};
|
|
4150
3480
|
exports.deserializeAws_restJson1StartAssessmentFrameworkShareCommand = deserializeAws_restJson1StartAssessmentFrameworkShareCommand;
|
|
4151
3481
|
const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
@@ -4153,7 +3483,6 @@ const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async
|
|
|
4153
3483
|
...output,
|
|
4154
3484
|
body: await parseBody(output.body, context),
|
|
4155
3485
|
};
|
|
4156
|
-
let response;
|
|
4157
3486
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4158
3487
|
switch (errorCode) {
|
|
4159
3488
|
case "AccessDeniedException":
|
|
@@ -4170,25 +3499,23 @@ const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async
|
|
|
4170
3499
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4171
3500
|
default:
|
|
4172
3501
|
const parsedBody = parsedOutput.body;
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
$metadata,
|
|
3502
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3503
|
+
output,
|
|
3504
|
+
parsedBody,
|
|
3505
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3506
|
+
errorCode,
|
|
4179
3507
|
});
|
|
4180
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4181
3508
|
}
|
|
4182
3509
|
};
|
|
4183
3510
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
4184
3511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4185
3512
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
4186
3513
|
}
|
|
4187
|
-
const contents = {
|
|
3514
|
+
const contents = map({
|
|
4188
3515
|
$metadata: deserializeMetadata(output),
|
|
4189
|
-
};
|
|
3516
|
+
});
|
|
4190
3517
|
await collectBody(output.body, context);
|
|
4191
|
-
return
|
|
3518
|
+
return contents;
|
|
4192
3519
|
};
|
|
4193
3520
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
4194
3521
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -4196,7 +3523,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4196
3523
|
...output,
|
|
4197
3524
|
body: await parseBody(output.body, context),
|
|
4198
3525
|
};
|
|
4199
|
-
let response;
|
|
4200
3526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4201
3527
|
switch (errorCode) {
|
|
4202
3528
|
case "InternalServerException":
|
|
@@ -4210,25 +3536,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4210
3536
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4211
3537
|
default:
|
|
4212
3538
|
const parsedBody = parsedOutput.body;
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
$metadata,
|
|
3539
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3540
|
+
output,
|
|
3541
|
+
parsedBody,
|
|
3542
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3543
|
+
errorCode,
|
|
4219
3544
|
});
|
|
4220
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4221
3545
|
}
|
|
4222
3546
|
};
|
|
4223
3547
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4224
3548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4225
3549
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
4226
3550
|
}
|
|
4227
|
-
const contents = {
|
|
3551
|
+
const contents = map({
|
|
4228
3552
|
$metadata: deserializeMetadata(output),
|
|
4229
|
-
};
|
|
3553
|
+
});
|
|
4230
3554
|
await collectBody(output.body, context);
|
|
4231
|
-
return
|
|
3555
|
+
return contents;
|
|
4232
3556
|
};
|
|
4233
3557
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
4234
3558
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -4236,7 +3560,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4236
3560
|
...output,
|
|
4237
3561
|
body: await parseBody(output.body, context),
|
|
4238
3562
|
};
|
|
4239
|
-
let response;
|
|
4240
3563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4241
3564
|
switch (errorCode) {
|
|
4242
3565
|
case "InternalServerException":
|
|
@@ -4250,29 +3573,26 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4250
3573
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4251
3574
|
default:
|
|
4252
3575
|
const parsedBody = parsedOutput.body;
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
$metadata,
|
|
3576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3577
|
+
output,
|
|
3578
|
+
parsedBody,
|
|
3579
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3580
|
+
errorCode,
|
|
4259
3581
|
});
|
|
4260
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4261
3582
|
}
|
|
4262
3583
|
};
|
|
4263
3584
|
const deserializeAws_restJson1UpdateAssessmentCommand = async (output, context) => {
|
|
4264
3585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4265
3586
|
return deserializeAws_restJson1UpdateAssessmentCommandError(output, context);
|
|
4266
3587
|
}
|
|
4267
|
-
const contents = {
|
|
3588
|
+
const contents = map({
|
|
4268
3589
|
$metadata: deserializeMetadata(output),
|
|
4269
|
-
|
|
4270
|
-
};
|
|
3590
|
+
});
|
|
4271
3591
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4272
|
-
if (data.assessment
|
|
3592
|
+
if (data.assessment != null) {
|
|
4273
3593
|
contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
|
|
4274
3594
|
}
|
|
4275
|
-
return
|
|
3595
|
+
return contents;
|
|
4276
3596
|
};
|
|
4277
3597
|
exports.deserializeAws_restJson1UpdateAssessmentCommand = deserializeAws_restJson1UpdateAssessmentCommand;
|
|
4278
3598
|
const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, context) => {
|
|
@@ -4280,7 +3600,6 @@ const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, cont
|
|
|
4280
3600
|
...output,
|
|
4281
3601
|
body: await parseBody(output.body, context),
|
|
4282
3602
|
};
|
|
4283
|
-
let response;
|
|
4284
3603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4285
3604
|
switch (errorCode) {
|
|
4286
3605
|
case "AccessDeniedException":
|
|
@@ -4297,29 +3616,26 @@ const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, cont
|
|
|
4297
3616
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4298
3617
|
default:
|
|
4299
3618
|
const parsedBody = parsedOutput.body;
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
$metadata,
|
|
3619
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3620
|
+
output,
|
|
3621
|
+
parsedBody,
|
|
3622
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3623
|
+
errorCode,
|
|
4306
3624
|
});
|
|
4307
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4308
3625
|
}
|
|
4309
3626
|
};
|
|
4310
3627
|
const deserializeAws_restJson1UpdateAssessmentControlCommand = async (output, context) => {
|
|
4311
3628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4312
3629
|
return deserializeAws_restJson1UpdateAssessmentControlCommandError(output, context);
|
|
4313
3630
|
}
|
|
4314
|
-
const contents = {
|
|
3631
|
+
const contents = map({
|
|
4315
3632
|
$metadata: deserializeMetadata(output),
|
|
4316
|
-
|
|
4317
|
-
};
|
|
3633
|
+
});
|
|
4318
3634
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4319
|
-
if (data.control
|
|
3635
|
+
if (data.control != null) {
|
|
4320
3636
|
contents.control = deserializeAws_restJson1AssessmentControl(data.control, context);
|
|
4321
3637
|
}
|
|
4322
|
-
return
|
|
3638
|
+
return contents;
|
|
4323
3639
|
};
|
|
4324
3640
|
exports.deserializeAws_restJson1UpdateAssessmentControlCommand = deserializeAws_restJson1UpdateAssessmentControlCommand;
|
|
4325
3641
|
const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (output, context) => {
|
|
@@ -4327,7 +3643,6 @@ const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (outpu
|
|
|
4327
3643
|
...output,
|
|
4328
3644
|
body: await parseBody(output.body, context),
|
|
4329
3645
|
};
|
|
4330
|
-
let response;
|
|
4331
3646
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4332
3647
|
switch (errorCode) {
|
|
4333
3648
|
case "AccessDeniedException":
|
|
@@ -4344,29 +3659,26 @@ const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (outpu
|
|
|
4344
3659
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4345
3660
|
default:
|
|
4346
3661
|
const parsedBody = parsedOutput.body;
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
$metadata,
|
|
3662
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3663
|
+
output,
|
|
3664
|
+
parsedBody,
|
|
3665
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3666
|
+
errorCode,
|
|
4353
3667
|
});
|
|
4354
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4355
3668
|
}
|
|
4356
3669
|
};
|
|
4357
3670
|
const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = async (output, context) => {
|
|
4358
3671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4359
3672
|
return deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError(output, context);
|
|
4360
3673
|
}
|
|
4361
|
-
const contents = {
|
|
3674
|
+
const contents = map({
|
|
4362
3675
|
$metadata: deserializeMetadata(output),
|
|
4363
|
-
|
|
4364
|
-
};
|
|
3676
|
+
});
|
|
4365
3677
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4366
|
-
if (data.controlSet
|
|
3678
|
+
if (data.controlSet != null) {
|
|
4367
3679
|
contents.controlSet = deserializeAws_restJson1AssessmentControlSet(data.controlSet, context);
|
|
4368
3680
|
}
|
|
4369
|
-
return
|
|
3681
|
+
return contents;
|
|
4370
3682
|
};
|
|
4371
3683
|
exports.deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand;
|
|
4372
3684
|
const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = async (output, context) => {
|
|
@@ -4374,7 +3686,6 @@ const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = asy
|
|
|
4374
3686
|
...output,
|
|
4375
3687
|
body: await parseBody(output.body, context),
|
|
4376
3688
|
};
|
|
4377
|
-
let response;
|
|
4378
3689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4379
3690
|
switch (errorCode) {
|
|
4380
3691
|
case "AccessDeniedException":
|
|
@@ -4391,29 +3702,26 @@ const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = asy
|
|
|
4391
3702
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4392
3703
|
default:
|
|
4393
3704
|
const parsedBody = parsedOutput.body;
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
$metadata,
|
|
3705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3706
|
+
output,
|
|
3707
|
+
parsedBody,
|
|
3708
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3709
|
+
errorCode,
|
|
4400
3710
|
});
|
|
4401
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4402
3711
|
}
|
|
4403
3712
|
};
|
|
4404
3713
|
const deserializeAws_restJson1UpdateAssessmentFrameworkCommand = async (output, context) => {
|
|
4405
3714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4406
3715
|
return deserializeAws_restJson1UpdateAssessmentFrameworkCommandError(output, context);
|
|
4407
3716
|
}
|
|
4408
|
-
const contents = {
|
|
3717
|
+
const contents = map({
|
|
4409
3718
|
$metadata: deserializeMetadata(output),
|
|
4410
|
-
|
|
4411
|
-
};
|
|
3719
|
+
});
|
|
4412
3720
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4413
|
-
if (data.framework
|
|
3721
|
+
if (data.framework != null) {
|
|
4414
3722
|
contents.framework = deserializeAws_restJson1Framework(data.framework, context);
|
|
4415
3723
|
}
|
|
4416
|
-
return
|
|
3724
|
+
return contents;
|
|
4417
3725
|
};
|
|
4418
3726
|
exports.deserializeAws_restJson1UpdateAssessmentFrameworkCommand = deserializeAws_restJson1UpdateAssessmentFrameworkCommand;
|
|
4419
3727
|
const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -4421,7 +3729,6 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (out
|
|
|
4421
3729
|
...output,
|
|
4422
3730
|
body: await parseBody(output.body, context),
|
|
4423
3731
|
};
|
|
4424
|
-
let response;
|
|
4425
3732
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4426
3733
|
switch (errorCode) {
|
|
4427
3734
|
case "AccessDeniedException":
|
|
@@ -4438,29 +3745,26 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (out
|
|
|
4438
3745
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4439
3746
|
default:
|
|
4440
3747
|
const parsedBody = parsedOutput.body;
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
$metadata,
|
|
3748
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3749
|
+
output,
|
|
3750
|
+
parsedBody,
|
|
3751
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3752
|
+
errorCode,
|
|
4447
3753
|
});
|
|
4448
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4449
3754
|
}
|
|
4450
3755
|
};
|
|
4451
3756
|
const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async (output, context) => {
|
|
4452
3757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4453
3758
|
return deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError(output, context);
|
|
4454
3759
|
}
|
|
4455
|
-
const contents = {
|
|
3760
|
+
const contents = map({
|
|
4456
3761
|
$metadata: deserializeMetadata(output),
|
|
4457
|
-
|
|
4458
|
-
};
|
|
3762
|
+
});
|
|
4459
3763
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4460
|
-
if (data.assessmentFrameworkShareRequest
|
|
3764
|
+
if (data.assessmentFrameworkShareRequest != null) {
|
|
4461
3765
|
contents.assessmentFrameworkShareRequest = deserializeAws_restJson1AssessmentFrameworkShareRequest(data.assessmentFrameworkShareRequest, context);
|
|
4462
3766
|
}
|
|
4463
|
-
return
|
|
3767
|
+
return contents;
|
|
4464
3768
|
};
|
|
4465
3769
|
exports.deserializeAws_restJson1UpdateAssessmentFrameworkShareCommand = deserializeAws_restJson1UpdateAssessmentFrameworkShareCommand;
|
|
4466
3770
|
const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
@@ -4468,7 +3772,6 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async
|
|
|
4468
3772
|
...output,
|
|
4469
3773
|
body: await parseBody(output.body, context),
|
|
4470
3774
|
};
|
|
4471
|
-
let response;
|
|
4472
3775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4473
3776
|
switch (errorCode) {
|
|
4474
3777
|
case "AccessDeniedException":
|
|
@@ -4485,29 +3788,26 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async
|
|
|
4485
3788
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4486
3789
|
default:
|
|
4487
3790
|
const parsedBody = parsedOutput.body;
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
$metadata,
|
|
3791
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3792
|
+
output,
|
|
3793
|
+
parsedBody,
|
|
3794
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3795
|
+
errorCode,
|
|
4494
3796
|
});
|
|
4495
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4496
3797
|
}
|
|
4497
3798
|
};
|
|
4498
3799
|
const deserializeAws_restJson1UpdateAssessmentStatusCommand = async (output, context) => {
|
|
4499
3800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4500
3801
|
return deserializeAws_restJson1UpdateAssessmentStatusCommandError(output, context);
|
|
4501
3802
|
}
|
|
4502
|
-
const contents = {
|
|
3803
|
+
const contents = map({
|
|
4503
3804
|
$metadata: deserializeMetadata(output),
|
|
4504
|
-
|
|
4505
|
-
};
|
|
3805
|
+
});
|
|
4506
3806
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4507
|
-
if (data.assessment
|
|
3807
|
+
if (data.assessment != null) {
|
|
4508
3808
|
contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
|
|
4509
3809
|
}
|
|
4510
|
-
return
|
|
3810
|
+
return contents;
|
|
4511
3811
|
};
|
|
4512
3812
|
exports.deserializeAws_restJson1UpdateAssessmentStatusCommand = deserializeAws_restJson1UpdateAssessmentStatusCommand;
|
|
4513
3813
|
const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output, context) => {
|
|
@@ -4515,7 +3815,6 @@ const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output
|
|
|
4515
3815
|
...output,
|
|
4516
3816
|
body: await parseBody(output.body, context),
|
|
4517
3817
|
};
|
|
4518
|
-
let response;
|
|
4519
3818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4520
3819
|
switch (errorCode) {
|
|
4521
3820
|
case "AccessDeniedException":
|
|
@@ -4527,34 +3826,34 @@ const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output
|
|
|
4527
3826
|
case "ResourceNotFoundException":
|
|
4528
3827
|
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4529
3828
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3829
|
+
case "ServiceQuotaExceededException":
|
|
3830
|
+
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
3831
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4530
3832
|
case "ValidationException":
|
|
4531
3833
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
4532
3834
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4533
3835
|
default:
|
|
4534
3836
|
const parsedBody = parsedOutput.body;
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
$metadata,
|
|
3837
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3838
|
+
output,
|
|
3839
|
+
parsedBody,
|
|
3840
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3841
|
+
errorCode,
|
|
4541
3842
|
});
|
|
4542
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4543
3843
|
}
|
|
4544
3844
|
};
|
|
4545
3845
|
const deserializeAws_restJson1UpdateControlCommand = async (output, context) => {
|
|
4546
3846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4547
3847
|
return deserializeAws_restJson1UpdateControlCommandError(output, context);
|
|
4548
3848
|
}
|
|
4549
|
-
const contents = {
|
|
3849
|
+
const contents = map({
|
|
4550
3850
|
$metadata: deserializeMetadata(output),
|
|
4551
|
-
|
|
4552
|
-
};
|
|
3851
|
+
});
|
|
4553
3852
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4554
|
-
if (data.control
|
|
3853
|
+
if (data.control != null) {
|
|
4555
3854
|
contents.control = deserializeAws_restJson1Control(data.control, context);
|
|
4556
3855
|
}
|
|
4557
|
-
return
|
|
3856
|
+
return contents;
|
|
4558
3857
|
};
|
|
4559
3858
|
exports.deserializeAws_restJson1UpdateControlCommand = deserializeAws_restJson1UpdateControlCommand;
|
|
4560
3859
|
const deserializeAws_restJson1UpdateControlCommandError = async (output, context) => {
|
|
@@ -4562,7 +3861,6 @@ const deserializeAws_restJson1UpdateControlCommandError = async (output, context
|
|
|
4562
3861
|
...output,
|
|
4563
3862
|
body: await parseBody(output.body, context),
|
|
4564
3863
|
};
|
|
4565
|
-
let response;
|
|
4566
3864
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4567
3865
|
switch (errorCode) {
|
|
4568
3866
|
case "AccessDeniedException":
|
|
@@ -4579,29 +3877,26 @@ const deserializeAws_restJson1UpdateControlCommandError = async (output, context
|
|
|
4579
3877
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4580
3878
|
default:
|
|
4581
3879
|
const parsedBody = parsedOutput.body;
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
$metadata,
|
|
3880
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3881
|
+
output,
|
|
3882
|
+
parsedBody,
|
|
3883
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3884
|
+
errorCode,
|
|
4588
3885
|
});
|
|
4589
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4590
3886
|
}
|
|
4591
3887
|
};
|
|
4592
3888
|
const deserializeAws_restJson1UpdateSettingsCommand = async (output, context) => {
|
|
4593
3889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4594
3890
|
return deserializeAws_restJson1UpdateSettingsCommandError(output, context);
|
|
4595
3891
|
}
|
|
4596
|
-
const contents = {
|
|
3892
|
+
const contents = map({
|
|
4597
3893
|
$metadata: deserializeMetadata(output),
|
|
4598
|
-
|
|
4599
|
-
};
|
|
3894
|
+
});
|
|
4600
3895
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4601
|
-
if (data.settings
|
|
3896
|
+
if (data.settings != null) {
|
|
4602
3897
|
contents.settings = deserializeAws_restJson1Settings(data.settings, context);
|
|
4603
3898
|
}
|
|
4604
|
-
return
|
|
3899
|
+
return contents;
|
|
4605
3900
|
};
|
|
4606
3901
|
exports.deserializeAws_restJson1UpdateSettingsCommand = deserializeAws_restJson1UpdateSettingsCommand;
|
|
4607
3902
|
const deserializeAws_restJson1UpdateSettingsCommandError = async (output, context) => {
|
|
@@ -4609,7 +3904,6 @@ const deserializeAws_restJson1UpdateSettingsCommandError = async (output, contex
|
|
|
4609
3904
|
...output,
|
|
4610
3905
|
body: await parseBody(output.body, context),
|
|
4611
3906
|
};
|
|
4612
|
-
let response;
|
|
4613
3907
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4614
3908
|
switch (errorCode) {
|
|
4615
3909
|
case "AccessDeniedException":
|
|
@@ -4623,45 +3917,38 @@ const deserializeAws_restJson1UpdateSettingsCommandError = async (output, contex
|
|
|
4623
3917
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4624
3918
|
default:
|
|
4625
3919
|
const parsedBody = parsedOutput.body;
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
$metadata,
|
|
3920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3921
|
+
output,
|
|
3922
|
+
parsedBody,
|
|
3923
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3924
|
+
errorCode,
|
|
4632
3925
|
});
|
|
4633
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4634
3926
|
}
|
|
4635
3927
|
};
|
|
4636
3928
|
const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = async (output, context) => {
|
|
4637
3929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4638
3930
|
return deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError(output, context);
|
|
4639
3931
|
}
|
|
4640
|
-
const contents = {
|
|
3932
|
+
const contents = map({
|
|
4641
3933
|
$metadata: deserializeMetadata(output),
|
|
4642
|
-
|
|
4643
|
-
signatureDateTime: undefined,
|
|
4644
|
-
signatureKeyId: undefined,
|
|
4645
|
-
signatureValid: undefined,
|
|
4646
|
-
validationErrors: undefined,
|
|
4647
|
-
};
|
|
3934
|
+
});
|
|
4648
3935
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4649
|
-
if (data.signatureAlgorithm
|
|
3936
|
+
if (data.signatureAlgorithm != null) {
|
|
4650
3937
|
contents.signatureAlgorithm = (0, smithy_client_1.expectString)(data.signatureAlgorithm);
|
|
4651
3938
|
}
|
|
4652
|
-
if (data.signatureDateTime
|
|
3939
|
+
if (data.signatureDateTime != null) {
|
|
4653
3940
|
contents.signatureDateTime = (0, smithy_client_1.expectString)(data.signatureDateTime);
|
|
4654
3941
|
}
|
|
4655
|
-
if (data.signatureKeyId
|
|
3942
|
+
if (data.signatureKeyId != null) {
|
|
4656
3943
|
contents.signatureKeyId = (0, smithy_client_1.expectString)(data.signatureKeyId);
|
|
4657
3944
|
}
|
|
4658
|
-
if (data.signatureValid
|
|
3945
|
+
if (data.signatureValid != null) {
|
|
4659
3946
|
contents.signatureValid = (0, smithy_client_1.expectBoolean)(data.signatureValid);
|
|
4660
3947
|
}
|
|
4661
|
-
if (data.validationErrors
|
|
3948
|
+
if (data.validationErrors != null) {
|
|
4662
3949
|
contents.validationErrors = deserializeAws_restJson1ValidationErrors(data.validationErrors, context);
|
|
4663
3950
|
}
|
|
4664
|
-
return
|
|
3951
|
+
return contents;
|
|
4665
3952
|
};
|
|
4666
3953
|
exports.deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand;
|
|
4667
3954
|
const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = async (output, context) => {
|
|
@@ -4669,7 +3956,6 @@ const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = as
|
|
|
4669
3956
|
...output,
|
|
4670
3957
|
body: await parseBody(output.body, context),
|
|
4671
3958
|
};
|
|
4672
|
-
let response;
|
|
4673
3959
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4674
3960
|
switch (errorCode) {
|
|
4675
3961
|
case "AccessDeniedException":
|
|
@@ -4686,20 +3972,19 @@ const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = as
|
|
|
4686
3972
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4687
3973
|
default:
|
|
4688
3974
|
const parsedBody = parsedOutput.body;
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
$metadata,
|
|
3975
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3976
|
+
output,
|
|
3977
|
+
parsedBody,
|
|
3978
|
+
exceptionCtor: AuditManagerServiceException_1.AuditManagerServiceException,
|
|
3979
|
+
errorCode,
|
|
4695
3980
|
});
|
|
4696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4697
3981
|
}
|
|
4698
3982
|
};
|
|
3983
|
+
const map = smithy_client_1.map;
|
|
4699
3984
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4700
|
-
const contents = {};
|
|
3985
|
+
const contents = map({});
|
|
4701
3986
|
const data = parsedOutput.body;
|
|
4702
|
-
if (data.message
|
|
3987
|
+
if (data.message != null) {
|
|
4703
3988
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4704
3989
|
}
|
|
4705
3990
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -4709,9 +3994,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
4709
3994
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4710
3995
|
};
|
|
4711
3996
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
4712
|
-
const contents = {};
|
|
3997
|
+
const contents = map({});
|
|
4713
3998
|
const data = parsedOutput.body;
|
|
4714
|
-
if (data.message
|
|
3999
|
+
if (data.message != null) {
|
|
4715
4000
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4716
4001
|
}
|
|
4717
4002
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -4721,15 +4006,15 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
4721
4006
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4722
4007
|
};
|
|
4723
4008
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4724
|
-
const contents = {};
|
|
4009
|
+
const contents = map({});
|
|
4725
4010
|
const data = parsedOutput.body;
|
|
4726
|
-
if (data.message
|
|
4011
|
+
if (data.message != null) {
|
|
4727
4012
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4728
4013
|
}
|
|
4729
|
-
if (data.resourceId
|
|
4014
|
+
if (data.resourceId != null) {
|
|
4730
4015
|
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
4731
4016
|
}
|
|
4732
|
-
if (data.resourceType
|
|
4017
|
+
if (data.resourceType != null) {
|
|
4733
4018
|
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
4734
4019
|
}
|
|
4735
4020
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -4738,10 +4023,22 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4738
4023
|
});
|
|
4739
4024
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4740
4025
|
};
|
|
4026
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4027
|
+
const contents = map({});
|
|
4028
|
+
const data = parsedOutput.body;
|
|
4029
|
+
if (data.message != null) {
|
|
4030
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4031
|
+
}
|
|
4032
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
4033
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4034
|
+
...contents,
|
|
4035
|
+
});
|
|
4036
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4037
|
+
};
|
|
4741
4038
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
4742
|
-
const contents = {};
|
|
4039
|
+
const contents = map({});
|
|
4743
4040
|
const data = parsedOutput.body;
|
|
4744
|
-
if (data.message
|
|
4041
|
+
if (data.message != null) {
|
|
4745
4042
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4746
4043
|
}
|
|
4747
4044
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -4751,15 +4048,15 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4751
4048
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4752
4049
|
};
|
|
4753
4050
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
4754
|
-
const contents = {};
|
|
4051
|
+
const contents = map({});
|
|
4755
4052
|
const data = parsedOutput.body;
|
|
4756
|
-
if (data.fields
|
|
4053
|
+
if (data.fields != null) {
|
|
4757
4054
|
contents.fields = deserializeAws_restJson1ValidationExceptionFieldList(data.fields, context);
|
|
4758
4055
|
}
|
|
4759
|
-
if (data.message
|
|
4056
|
+
if (data.message != null) {
|
|
4760
4057
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4761
4058
|
}
|
|
4762
|
-
if (data.reason
|
|
4059
|
+
if (data.reason != null) {
|
|
4763
4060
|
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
4764
4061
|
}
|
|
4765
4062
|
const exception = new models_0_1.ValidationException({
|
|
@@ -4785,9 +4082,6 @@ const serializeAws_restJson1AWSAccounts = (input, context) => {
|
|
|
4785
4082
|
return input
|
|
4786
4083
|
.filter((e) => e != null)
|
|
4787
4084
|
.map((entry) => {
|
|
4788
|
-
if (entry === null) {
|
|
4789
|
-
return null;
|
|
4790
|
-
}
|
|
4791
4085
|
return serializeAws_restJson1AWSAccount(entry, context);
|
|
4792
4086
|
});
|
|
4793
4087
|
};
|
|
@@ -4800,9 +4094,6 @@ const serializeAws_restJson1AWSServices = (input, context) => {
|
|
|
4800
4094
|
return input
|
|
4801
4095
|
.filter((e) => e != null)
|
|
4802
4096
|
.map((entry) => {
|
|
4803
|
-
if (entry === null) {
|
|
4804
|
-
return null;
|
|
4805
|
-
}
|
|
4806
4097
|
return serializeAws_restJson1AWSService(entry, context);
|
|
4807
4098
|
});
|
|
4808
4099
|
};
|
|
@@ -4824,9 +4115,6 @@ const serializeAws_restJson1ControlMappingSources = (input, context) => {
|
|
|
4824
4115
|
return input
|
|
4825
4116
|
.filter((e) => e != null)
|
|
4826
4117
|
.map((entry) => {
|
|
4827
|
-
if (entry === null) {
|
|
4828
|
-
return null;
|
|
4829
|
-
}
|
|
4830
4118
|
return serializeAws_restJson1ControlMappingSource(entry, context);
|
|
4831
4119
|
});
|
|
4832
4120
|
};
|
|
@@ -4839,9 +4127,6 @@ const serializeAws_restJson1CreateAssessmentFrameworkControls = (input, context)
|
|
|
4839
4127
|
return input
|
|
4840
4128
|
.filter((e) => e != null)
|
|
4841
4129
|
.map((entry) => {
|
|
4842
|
-
if (entry === null) {
|
|
4843
|
-
return null;
|
|
4844
|
-
}
|
|
4845
4130
|
return serializeAws_restJson1CreateAssessmentFrameworkControl(entry, context);
|
|
4846
4131
|
});
|
|
4847
4132
|
};
|
|
@@ -4857,9 +4142,6 @@ const serializeAws_restJson1CreateAssessmentFrameworkControlSets = (input, conte
|
|
|
4857
4142
|
return input
|
|
4858
4143
|
.filter((e) => e != null)
|
|
4859
4144
|
.map((entry) => {
|
|
4860
|
-
if (entry === null) {
|
|
4861
|
-
return null;
|
|
4862
|
-
}
|
|
4863
4145
|
return serializeAws_restJson1CreateAssessmentFrameworkControlSet(entry, context);
|
|
4864
4146
|
});
|
|
4865
4147
|
};
|
|
@@ -4880,9 +4162,6 @@ const serializeAws_restJson1CreateControlMappingSources = (input, context) => {
|
|
|
4880
4162
|
return input
|
|
4881
4163
|
.filter((e) => e != null)
|
|
4882
4164
|
.map((entry) => {
|
|
4883
|
-
if (entry === null) {
|
|
4884
|
-
return null;
|
|
4885
|
-
}
|
|
4886
4165
|
return serializeAws_restJson1CreateControlMappingSource(entry, context);
|
|
4887
4166
|
});
|
|
4888
4167
|
};
|
|
@@ -4898,9 +4177,6 @@ const serializeAws_restJson1CreateDelegationRequests = (input, context) => {
|
|
|
4898
4177
|
return input
|
|
4899
4178
|
.filter((e) => e != null)
|
|
4900
4179
|
.map((entry) => {
|
|
4901
|
-
if (entry === null) {
|
|
4902
|
-
return null;
|
|
4903
|
-
}
|
|
4904
4180
|
return serializeAws_restJson1CreateDelegationRequest(entry, context);
|
|
4905
4181
|
});
|
|
4906
4182
|
};
|
|
@@ -4908,9 +4184,6 @@ const serializeAws_restJson1DelegationIds = (input, context) => {
|
|
|
4908
4184
|
return input
|
|
4909
4185
|
.filter((e) => e != null)
|
|
4910
4186
|
.map((entry) => {
|
|
4911
|
-
if (entry === null) {
|
|
4912
|
-
return null;
|
|
4913
|
-
}
|
|
4914
4187
|
return entry;
|
|
4915
4188
|
});
|
|
4916
4189
|
};
|
|
@@ -4918,9 +4191,6 @@ const serializeAws_restJson1EvidenceIds = (input, context) => {
|
|
|
4918
4191
|
return input
|
|
4919
4192
|
.filter((e) => e != null)
|
|
4920
4193
|
.map((entry) => {
|
|
4921
|
-
if (entry === null) {
|
|
4922
|
-
return null;
|
|
4923
|
-
}
|
|
4924
4194
|
return entry;
|
|
4925
4195
|
});
|
|
4926
4196
|
};
|
|
@@ -4933,9 +4203,6 @@ const serializeAws_restJson1ManualEvidenceList = (input, context) => {
|
|
|
4933
4203
|
return input
|
|
4934
4204
|
.filter((e) => e != null)
|
|
4935
4205
|
.map((entry) => {
|
|
4936
|
-
if (entry === null) {
|
|
4937
|
-
return null;
|
|
4938
|
-
}
|
|
4939
4206
|
return serializeAws_restJson1ManualEvidence(entry, context);
|
|
4940
4207
|
});
|
|
4941
4208
|
};
|
|
@@ -4949,9 +4216,6 @@ const serializeAws_restJson1Roles = (input, context) => {
|
|
|
4949
4216
|
return input
|
|
4950
4217
|
.filter((e) => e != null)
|
|
4951
4218
|
.map((entry) => {
|
|
4952
|
-
if (entry === null) {
|
|
4953
|
-
return null;
|
|
4954
|
-
}
|
|
4955
4219
|
return serializeAws_restJson1Role(entry, context);
|
|
4956
4220
|
});
|
|
4957
4221
|
};
|
|
@@ -4991,9 +4255,6 @@ const serializeAws_restJson1UpdateAssessmentFrameworkControlSets = (input, conte
|
|
|
4991
4255
|
return input
|
|
4992
4256
|
.filter((e) => e != null)
|
|
4993
4257
|
.map((entry) => {
|
|
4994
|
-
if (entry === null) {
|
|
4995
|
-
return null;
|
|
4996
|
-
}
|
|
4997
4258
|
return serializeAws_restJson1UpdateAssessmentFrameworkControlSet(entry, context);
|
|
4998
4259
|
});
|
|
4999
4260
|
};
|