@aws-sdk/client-auditmanager 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +472 -528
- package/dist-es/protocols/Aws_restJson1.js +419 -475
- package/package.json +26 -26
|
@@ -26,8 +26,7 @@ const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = asy
|
|
|
26
26
|
}
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.evidenceFolderId
|
|
30
|
-
input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId }),
|
|
29
|
+
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
31
30
|
});
|
|
32
31
|
return new protocol_http_1.HttpRequest({
|
|
33
32
|
protocol,
|
|
@@ -59,10 +58,8 @@ const serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = asyn
|
|
|
59
58
|
}
|
|
60
59
|
let body;
|
|
61
60
|
body = JSON.stringify({
|
|
62
|
-
...(input.evidenceFolderId
|
|
63
|
-
|
|
64
|
-
...(input.evidenceIds !== undefined &&
|
|
65
|
-
input.evidenceIds !== null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) }),
|
|
61
|
+
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
62
|
+
...(input.evidenceIds != null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) }),
|
|
66
63
|
});
|
|
67
64
|
return new protocol_http_1.HttpRequest({
|
|
68
65
|
protocol,
|
|
@@ -93,8 +90,7 @@ const serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = async (in
|
|
|
93
90
|
}
|
|
94
91
|
let body;
|
|
95
92
|
body = JSON.stringify({
|
|
96
|
-
...(input.createDelegationRequests
|
|
97
|
-
input.createDelegationRequests !== null && {
|
|
93
|
+
...(input.createDelegationRequests != null && {
|
|
98
94
|
createDelegationRequests: serializeAws_restJson1CreateDelegationRequests(input.createDelegationRequests, context),
|
|
99
95
|
}),
|
|
100
96
|
});
|
|
@@ -127,8 +123,7 @@ const serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = async (in
|
|
|
127
123
|
}
|
|
128
124
|
let body;
|
|
129
125
|
body = JSON.stringify({
|
|
130
|
-
...(input.delegationIds
|
|
131
|
-
input.delegationIds !== null && {
|
|
126
|
+
...(input.delegationIds != null && {
|
|
132
127
|
delegationIds: serializeAws_restJson1DelegationIds(input.delegationIds, context),
|
|
133
128
|
}),
|
|
134
129
|
});
|
|
@@ -162,10 +157,8 @@ const serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = a
|
|
|
162
157
|
}
|
|
163
158
|
let body;
|
|
164
159
|
body = JSON.stringify({
|
|
165
|
-
...(input.evidenceFolderId
|
|
166
|
-
|
|
167
|
-
...(input.evidenceIds !== undefined &&
|
|
168
|
-
input.evidenceIds !== null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) }),
|
|
160
|
+
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
161
|
+
...(input.evidenceIds != null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) }),
|
|
169
162
|
});
|
|
170
163
|
return new protocol_http_1.HttpRequest({
|
|
171
164
|
protocol,
|
|
@@ -217,8 +210,7 @@ const serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = asyn
|
|
|
217
210
|
}
|
|
218
211
|
let body;
|
|
219
212
|
body = JSON.stringify({
|
|
220
|
-
...(input.manualEvidence
|
|
221
|
-
input.manualEvidence !== null && {
|
|
213
|
+
...(input.manualEvidence != null && {
|
|
222
214
|
manualEvidence: serializeAws_restJson1ManualEvidenceList(input.manualEvidence, context),
|
|
223
215
|
}),
|
|
224
216
|
});
|
|
@@ -241,18 +233,15 @@ const serializeAws_restJson1CreateAssessmentCommand = async (input, context) =>
|
|
|
241
233
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
|
|
242
234
|
let body;
|
|
243
235
|
body = JSON.stringify({
|
|
244
|
-
...(input.assessmentReportsDestination
|
|
245
|
-
input.assessmentReportsDestination !== null && {
|
|
236
|
+
...(input.assessmentReportsDestination != null && {
|
|
246
237
|
assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
|
|
247
238
|
}),
|
|
248
|
-
...(input.description
|
|
249
|
-
...(input.frameworkId
|
|
250
|
-
...(input.name
|
|
251
|
-
...(input.roles
|
|
252
|
-
|
|
253
|
-
...(input.
|
|
254
|
-
input.scope !== null && { scope: serializeAws_restJson1Scope(input.scope, context) }),
|
|
255
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
239
|
+
...(input.description != null && { description: input.description }),
|
|
240
|
+
...(input.frameworkId != null && { frameworkId: input.frameworkId }),
|
|
241
|
+
...(input.name != null && { name: input.name }),
|
|
242
|
+
...(input.roles != null && { roles: serializeAws_restJson1Roles(input.roles, context) }),
|
|
243
|
+
...(input.scope != null && { scope: serializeAws_restJson1Scope(input.scope, context) }),
|
|
244
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
256
245
|
});
|
|
257
246
|
return new protocol_http_1.HttpRequest({
|
|
258
247
|
protocol,
|
|
@@ -273,15 +262,13 @@ const serializeAws_restJson1CreateAssessmentFrameworkCommand = async (input, con
|
|
|
273
262
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
|
|
274
263
|
let body;
|
|
275
264
|
body = JSON.stringify({
|
|
276
|
-
...(input.complianceType
|
|
277
|
-
|
|
278
|
-
...(input.controlSets !== undefined &&
|
|
279
|
-
input.controlSets !== null && {
|
|
265
|
+
...(input.complianceType != null && { complianceType: input.complianceType }),
|
|
266
|
+
...(input.controlSets != null && {
|
|
280
267
|
controlSets: serializeAws_restJson1CreateAssessmentFrameworkControlSets(input.controlSets, context),
|
|
281
268
|
}),
|
|
282
|
-
...(input.description
|
|
283
|
-
...(input.name
|
|
284
|
-
...(input.tags
|
|
269
|
+
...(input.description != null && { description: input.description }),
|
|
270
|
+
...(input.name != null && { name: input.name }),
|
|
271
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
285
272
|
});
|
|
286
273
|
return new protocol_http_1.HttpRequest({
|
|
287
274
|
protocol,
|
|
@@ -312,8 +299,8 @@ const serializeAws_restJson1CreateAssessmentReportCommand = async (input, contex
|
|
|
312
299
|
}
|
|
313
300
|
let body;
|
|
314
301
|
body = JSON.stringify({
|
|
315
|
-
...(input.description
|
|
316
|
-
...(input.name
|
|
302
|
+
...(input.description != null && { description: input.description }),
|
|
303
|
+
...(input.name != null && { name: input.name }),
|
|
317
304
|
});
|
|
318
305
|
return new protocol_http_1.HttpRequest({
|
|
319
306
|
protocol,
|
|
@@ -334,19 +321,15 @@ const serializeAws_restJson1CreateControlCommand = async (input, context) => {
|
|
|
334
321
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
|
|
335
322
|
let body;
|
|
336
323
|
body = JSON.stringify({
|
|
337
|
-
...(input.actionPlanInstructions
|
|
338
|
-
|
|
339
|
-
...(input.
|
|
340
|
-
input.actionPlanTitle !== null && { actionPlanTitle: input.actionPlanTitle }),
|
|
341
|
-
...(input.controlMappingSources !== undefined &&
|
|
342
|
-
input.controlMappingSources !== null && {
|
|
324
|
+
...(input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions }),
|
|
325
|
+
...(input.actionPlanTitle != null && { actionPlanTitle: input.actionPlanTitle }),
|
|
326
|
+
...(input.controlMappingSources != null && {
|
|
343
327
|
controlMappingSources: serializeAws_restJson1CreateControlMappingSources(input.controlMappingSources, context),
|
|
344
328
|
}),
|
|
345
|
-
...(input.description
|
|
346
|
-
...(input.name
|
|
347
|
-
...(input.tags
|
|
348
|
-
...(input.testingInformation
|
|
349
|
-
input.testingInformation !== null && { testingInformation: input.testingInformation }),
|
|
329
|
+
...(input.description != null && { description: input.description }),
|
|
330
|
+
...(input.name != null && { name: input.name }),
|
|
331
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
332
|
+
...(input.testingInformation != null && { testingInformation: input.testingInformation }),
|
|
350
333
|
});
|
|
351
334
|
return new protocol_http_1.HttpRequest({
|
|
352
335
|
protocol,
|
|
@@ -533,8 +516,7 @@ const serializeAws_restJson1DeregisterOrganizationAdminAccountCommand = async (i
|
|
|
533
516
|
"/account/deregisterOrganizationAdminAccount";
|
|
534
517
|
let body;
|
|
535
518
|
body = JSON.stringify({
|
|
536
|
-
...(input.adminAccountId
|
|
537
|
-
input.adminAccountId !== null && { adminAccountId: input.adminAccountId }),
|
|
519
|
+
...(input.adminAccountId != null && { adminAccountId: input.adminAccountId }),
|
|
538
520
|
});
|
|
539
521
|
return new protocol_http_1.HttpRequest({
|
|
540
522
|
protocol,
|
|
@@ -566,8 +548,7 @@ const serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand =
|
|
|
566
548
|
}
|
|
567
549
|
let body;
|
|
568
550
|
body = JSON.stringify({
|
|
569
|
-
...(input.evidenceFolderId
|
|
570
|
-
input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId }),
|
|
551
|
+
...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
|
|
571
552
|
});
|
|
572
553
|
return new protocol_http_1.HttpRequest({
|
|
573
554
|
protocol,
|
|
@@ -1391,9 +1372,8 @@ const serializeAws_restJson1RegisterAccountCommand = async (input, context) => {
|
|
|
1391
1372
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerAccount";
|
|
1392
1373
|
let body;
|
|
1393
1374
|
body = JSON.stringify({
|
|
1394
|
-
...(input.delegatedAdminAccount
|
|
1395
|
-
|
|
1396
|
-
...(input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }),
|
|
1375
|
+
...(input.delegatedAdminAccount != null && { delegatedAdminAccount: input.delegatedAdminAccount }),
|
|
1376
|
+
...(input.kmsKey != null && { kmsKey: input.kmsKey }),
|
|
1397
1377
|
});
|
|
1398
1378
|
return new protocol_http_1.HttpRequest({
|
|
1399
1379
|
protocol,
|
|
@@ -1414,8 +1394,7 @@ const serializeAws_restJson1RegisterOrganizationAdminAccountCommand = async (inp
|
|
|
1414
1394
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerOrganizationAdminAccount";
|
|
1415
1395
|
let body;
|
|
1416
1396
|
body = JSON.stringify({
|
|
1417
|
-
...(input.adminAccountId
|
|
1418
|
-
input.adminAccountId !== null && { adminAccountId: input.adminAccountId }),
|
|
1397
|
+
...(input.adminAccountId != null && { adminAccountId: input.adminAccountId }),
|
|
1419
1398
|
});
|
|
1420
1399
|
return new protocol_http_1.HttpRequest({
|
|
1421
1400
|
protocol,
|
|
@@ -1447,11 +1426,9 @@ const serializeAws_restJson1StartAssessmentFrameworkShareCommand = async (input,
|
|
|
1447
1426
|
}
|
|
1448
1427
|
let body;
|
|
1449
1428
|
body = JSON.stringify({
|
|
1450
|
-
...(input.comment
|
|
1451
|
-
...(input.destinationAccount
|
|
1452
|
-
|
|
1453
|
-
...(input.destinationRegion !== undefined &&
|
|
1454
|
-
input.destinationRegion !== null && { destinationRegion: input.destinationRegion }),
|
|
1429
|
+
...(input.comment != null && { comment: input.comment }),
|
|
1430
|
+
...(input.destinationAccount != null && { destinationAccount: input.destinationAccount }),
|
|
1431
|
+
...(input.destinationRegion != null && { destinationRegion: input.destinationRegion }),
|
|
1455
1432
|
});
|
|
1456
1433
|
return new protocol_http_1.HttpRequest({
|
|
1457
1434
|
protocol,
|
|
@@ -1482,7 +1459,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1482
1459
|
}
|
|
1483
1460
|
let body;
|
|
1484
1461
|
body = JSON.stringify({
|
|
1485
|
-
...(input.tags
|
|
1462
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
1486
1463
|
});
|
|
1487
1464
|
return new protocol_http_1.HttpRequest({
|
|
1488
1465
|
protocol,
|
|
@@ -1543,18 +1520,13 @@ const serializeAws_restJson1UpdateAssessmentCommand = async (input, context) =>
|
|
|
1543
1520
|
}
|
|
1544
1521
|
let body;
|
|
1545
1522
|
body = JSON.stringify({
|
|
1546
|
-
...(input.assessmentDescription
|
|
1547
|
-
|
|
1548
|
-
...(input.
|
|
1549
|
-
input.assessmentName !== null && { assessmentName: input.assessmentName }),
|
|
1550
|
-
...(input.assessmentReportsDestination !== undefined &&
|
|
1551
|
-
input.assessmentReportsDestination !== null && {
|
|
1523
|
+
...(input.assessmentDescription != null && { assessmentDescription: input.assessmentDescription }),
|
|
1524
|
+
...(input.assessmentName != null && { assessmentName: input.assessmentName }),
|
|
1525
|
+
...(input.assessmentReportsDestination != null && {
|
|
1552
1526
|
assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
|
|
1553
1527
|
}),
|
|
1554
|
-
...(input.roles
|
|
1555
|
-
|
|
1556
|
-
...(input.scope !== undefined &&
|
|
1557
|
-
input.scope !== null && { scope: serializeAws_restJson1Scope(input.scope, context) }),
|
|
1528
|
+
...(input.roles != null && { roles: serializeAws_restJson1Roles(input.roles, context) }),
|
|
1529
|
+
...(input.scope != null && { scope: serializeAws_restJson1Scope(input.scope, context) }),
|
|
1558
1530
|
});
|
|
1559
1531
|
return new protocol_http_1.HttpRequest({
|
|
1560
1532
|
protocol,
|
|
@@ -1606,8 +1578,8 @@ const serializeAws_restJson1UpdateAssessmentControlCommand = async (input, conte
|
|
|
1606
1578
|
}
|
|
1607
1579
|
let body;
|
|
1608
1580
|
body = JSON.stringify({
|
|
1609
|
-
...(input.commentBody
|
|
1610
|
-
...(input.controlStatus
|
|
1581
|
+
...(input.commentBody != null && { commentBody: input.commentBody }),
|
|
1582
|
+
...(input.controlStatus != null && { controlStatus: input.controlStatus }),
|
|
1611
1583
|
});
|
|
1612
1584
|
return new protocol_http_1.HttpRequest({
|
|
1613
1585
|
protocol,
|
|
@@ -1649,8 +1621,8 @@ const serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = async (inp
|
|
|
1649
1621
|
}
|
|
1650
1622
|
let body;
|
|
1651
1623
|
body = JSON.stringify({
|
|
1652
|
-
...(input.comment
|
|
1653
|
-
...(input.status
|
|
1624
|
+
...(input.comment != null && { comment: input.comment }),
|
|
1625
|
+
...(input.status != null && { status: input.status }),
|
|
1654
1626
|
});
|
|
1655
1627
|
return new protocol_http_1.HttpRequest({
|
|
1656
1628
|
protocol,
|
|
@@ -1681,14 +1653,12 @@ const serializeAws_restJson1UpdateAssessmentFrameworkCommand = async (input, con
|
|
|
1681
1653
|
}
|
|
1682
1654
|
let body;
|
|
1683
1655
|
body = JSON.stringify({
|
|
1684
|
-
...(input.complianceType
|
|
1685
|
-
|
|
1686
|
-
...(input.controlSets !== undefined &&
|
|
1687
|
-
input.controlSets !== null && {
|
|
1656
|
+
...(input.complianceType != null && { complianceType: input.complianceType }),
|
|
1657
|
+
...(input.controlSets != null && {
|
|
1688
1658
|
controlSets: serializeAws_restJson1UpdateAssessmentFrameworkControlSets(input.controlSets, context),
|
|
1689
1659
|
}),
|
|
1690
|
-
...(input.description
|
|
1691
|
-
...(input.name
|
|
1660
|
+
...(input.description != null && { description: input.description }),
|
|
1661
|
+
...(input.name != null && { name: input.name }),
|
|
1692
1662
|
});
|
|
1693
1663
|
return new protocol_http_1.HttpRequest({
|
|
1694
1664
|
protocol,
|
|
@@ -1720,8 +1690,8 @@ const serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async (input
|
|
|
1720
1690
|
}
|
|
1721
1691
|
let body;
|
|
1722
1692
|
body = JSON.stringify({
|
|
1723
|
-
...(input.action
|
|
1724
|
-
...(input.requestType
|
|
1693
|
+
...(input.action != null && { action: input.action }),
|
|
1694
|
+
...(input.requestType != null && { requestType: input.requestType }),
|
|
1725
1695
|
});
|
|
1726
1696
|
return new protocol_http_1.HttpRequest({
|
|
1727
1697
|
protocol,
|
|
@@ -1752,7 +1722,7 @@ const serializeAws_restJson1UpdateAssessmentStatusCommand = async (input, contex
|
|
|
1752
1722
|
}
|
|
1753
1723
|
let body;
|
|
1754
1724
|
body = JSON.stringify({
|
|
1755
|
-
...(input.status
|
|
1725
|
+
...(input.status != null && { status: input.status }),
|
|
1756
1726
|
});
|
|
1757
1727
|
return new protocol_http_1.HttpRequest({
|
|
1758
1728
|
protocol,
|
|
@@ -1783,18 +1753,14 @@ const serializeAws_restJson1UpdateControlCommand = async (input, context) => {
|
|
|
1783
1753
|
}
|
|
1784
1754
|
let body;
|
|
1785
1755
|
body = JSON.stringify({
|
|
1786
|
-
...(input.actionPlanInstructions
|
|
1787
|
-
|
|
1788
|
-
...(input.
|
|
1789
|
-
input.actionPlanTitle !== null && { actionPlanTitle: input.actionPlanTitle }),
|
|
1790
|
-
...(input.controlMappingSources !== undefined &&
|
|
1791
|
-
input.controlMappingSources !== null && {
|
|
1756
|
+
...(input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions }),
|
|
1757
|
+
...(input.actionPlanTitle != null && { actionPlanTitle: input.actionPlanTitle }),
|
|
1758
|
+
...(input.controlMappingSources != null && {
|
|
1792
1759
|
controlMappingSources: serializeAws_restJson1ControlMappingSources(input.controlMappingSources, context),
|
|
1793
1760
|
}),
|
|
1794
|
-
...(input.description
|
|
1795
|
-
...(input.name
|
|
1796
|
-
...(input.testingInformation
|
|
1797
|
-
input.testingInformation !== null && { testingInformation: input.testingInformation }),
|
|
1761
|
+
...(input.description != null && { description: input.description }),
|
|
1762
|
+
...(input.name != null && { name: input.name }),
|
|
1763
|
+
...(input.testingInformation != null && { testingInformation: input.testingInformation }),
|
|
1798
1764
|
});
|
|
1799
1765
|
return new protocol_http_1.HttpRequest({
|
|
1800
1766
|
protocol,
|
|
@@ -1815,16 +1781,14 @@ const serializeAws_restJson1UpdateSettingsCommand = async (input, context) => {
|
|
|
1815
1781
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
|
|
1816
1782
|
let body;
|
|
1817
1783
|
body = JSON.stringify({
|
|
1818
|
-
...(input.defaultAssessmentReportsDestination
|
|
1819
|
-
input.defaultAssessmentReportsDestination !== null && {
|
|
1784
|
+
...(input.defaultAssessmentReportsDestination != null && {
|
|
1820
1785
|
defaultAssessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.defaultAssessmentReportsDestination, context),
|
|
1821
1786
|
}),
|
|
1822
|
-
...(input.defaultProcessOwners
|
|
1823
|
-
input.defaultProcessOwners !== null && {
|
|
1787
|
+
...(input.defaultProcessOwners != null && {
|
|
1824
1788
|
defaultProcessOwners: serializeAws_restJson1Roles(input.defaultProcessOwners, context),
|
|
1825
1789
|
}),
|
|
1826
|
-
...(input.kmsKey
|
|
1827
|
-
...(input.snsTopic
|
|
1790
|
+
...(input.kmsKey != null && { kmsKey: input.kmsKey }),
|
|
1791
|
+
...(input.snsTopic != null && { snsTopic: input.snsTopic }),
|
|
1828
1792
|
});
|
|
1829
1793
|
return new protocol_http_1.HttpRequest({
|
|
1830
1794
|
protocol,
|
|
@@ -1845,8 +1809,7 @@ const serializeAws_restJson1ValidateAssessmentReportIntegrityCommand = async (in
|
|
|
1845
1809
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports/integrity";
|
|
1846
1810
|
let body;
|
|
1847
1811
|
body = JSON.stringify({
|
|
1848
|
-
...(input.s3RelativePath
|
|
1849
|
-
input.s3RelativePath !== null && { s3RelativePath: input.s3RelativePath }),
|
|
1812
|
+
...(input.s3RelativePath != null && { s3RelativePath: input.s3RelativePath }),
|
|
1850
1813
|
});
|
|
1851
1814
|
return new protocol_http_1.HttpRequest({
|
|
1852
1815
|
protocol,
|
|
@@ -1876,8 +1839,7 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandErro
|
|
|
1876
1839
|
body: await parseBody(output.body, context),
|
|
1877
1840
|
};
|
|
1878
1841
|
let response;
|
|
1879
|
-
|
|
1880
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
1843
|
switch (errorCode) {
|
|
1882
1844
|
case "AccessDeniedException":
|
|
1883
1845
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -1893,10 +1855,12 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandErro
|
|
|
1893
1855
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1894
1856
|
default:
|
|
1895
1857
|
const parsedBody = parsedOutput.body;
|
|
1858
|
+
const $metadata = deserializeMetadata(output);
|
|
1859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1896
1860
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
1897
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1898
1862
|
$fault: "client",
|
|
1899
|
-
$metadata
|
|
1863
|
+
$metadata,
|
|
1900
1864
|
});
|
|
1901
1865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1902
1866
|
}
|
|
@@ -1926,8 +1890,7 @@ const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError
|
|
|
1926
1890
|
body: await parseBody(output.body, context),
|
|
1927
1891
|
};
|
|
1928
1892
|
let response;
|
|
1929
|
-
|
|
1930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1931
1894
|
switch (errorCode) {
|
|
1932
1895
|
case "AccessDeniedException":
|
|
1933
1896
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -1943,10 +1906,12 @@ const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError
|
|
|
1943
1906
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1944
1907
|
default:
|
|
1945
1908
|
const parsedBody = parsedOutput.body;
|
|
1909
|
+
const $metadata = deserializeMetadata(output);
|
|
1910
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1946
1911
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
1947
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1912
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1948
1913
|
$fault: "client",
|
|
1949
|
-
$metadata
|
|
1914
|
+
$metadata,
|
|
1950
1915
|
});
|
|
1951
1916
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1952
1917
|
}
|
|
@@ -1976,8 +1941,7 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = as
|
|
|
1976
1941
|
body: await parseBody(output.body, context),
|
|
1977
1942
|
};
|
|
1978
1943
|
let response;
|
|
1979
|
-
|
|
1980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
1945
|
switch (errorCode) {
|
|
1982
1946
|
case "AccessDeniedException":
|
|
1983
1947
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -1993,10 +1957,12 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = as
|
|
|
1993
1957
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1994
1958
|
default:
|
|
1995
1959
|
const parsedBody = parsedOutput.body;
|
|
1960
|
+
const $metadata = deserializeMetadata(output);
|
|
1961
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1996
1962
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
1997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1963
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1998
1964
|
$fault: "client",
|
|
1999
|
-
$metadata
|
|
1965
|
+
$metadata,
|
|
2000
1966
|
});
|
|
2001
1967
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2002
1968
|
}
|
|
@@ -2022,8 +1988,7 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = as
|
|
|
2022
1988
|
body: await parseBody(output.body, context),
|
|
2023
1989
|
};
|
|
2024
1990
|
let response;
|
|
2025
|
-
|
|
2026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
1992
|
switch (errorCode) {
|
|
2028
1993
|
case "AccessDeniedException":
|
|
2029
1994
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2039,10 +2004,12 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = as
|
|
|
2039
2004
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2040
2005
|
default:
|
|
2041
2006
|
const parsedBody = parsedOutput.body;
|
|
2007
|
+
const $metadata = deserializeMetadata(output);
|
|
2008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2042
2009
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2044
2011
|
$fault: "client",
|
|
2045
|
-
$metadata
|
|
2012
|
+
$metadata,
|
|
2046
2013
|
});
|
|
2047
2014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2048
2015
|
}
|
|
@@ -2072,8 +2039,7 @@ const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandEr
|
|
|
2072
2039
|
body: await parseBody(output.body, context),
|
|
2073
2040
|
};
|
|
2074
2041
|
let response;
|
|
2075
|
-
|
|
2076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
2043
|
switch (errorCode) {
|
|
2078
2044
|
case "AccessDeniedException":
|
|
2079
2045
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2089,10 +2055,12 @@ const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandEr
|
|
|
2089
2055
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2090
2056
|
default:
|
|
2091
2057
|
const parsedBody = parsedOutput.body;
|
|
2058
|
+
const $metadata = deserializeMetadata(output);
|
|
2059
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2092
2060
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2093
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2094
2062
|
$fault: "client",
|
|
2095
|
-
$metadata
|
|
2063
|
+
$metadata,
|
|
2096
2064
|
});
|
|
2097
2065
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2098
2066
|
}
|
|
@@ -2118,8 +2086,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError
|
|
|
2118
2086
|
body: await parseBody(output.body, context),
|
|
2119
2087
|
};
|
|
2120
2088
|
let response;
|
|
2121
|
-
|
|
2122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
2090
|
switch (errorCode) {
|
|
2124
2091
|
case "AccessDeniedException":
|
|
2125
2092
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2135,10 +2102,12 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError
|
|
|
2135
2102
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2136
2103
|
default:
|
|
2137
2104
|
const parsedBody = parsedOutput.body;
|
|
2105
|
+
const $metadata = deserializeMetadata(output);
|
|
2106
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2138
2107
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2108
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2140
2109
|
$fault: "client",
|
|
2141
|
-
$metadata
|
|
2110
|
+
$metadata,
|
|
2142
2111
|
});
|
|
2143
2112
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2144
2113
|
}
|
|
@@ -2164,8 +2133,7 @@ const deserializeAws_restJson1CreateAssessmentCommandError = async (output, cont
|
|
|
2164
2133
|
body: await parseBody(output.body, context),
|
|
2165
2134
|
};
|
|
2166
2135
|
let response;
|
|
2167
|
-
|
|
2168
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
2137
|
switch (errorCode) {
|
|
2170
2138
|
case "AccessDeniedException":
|
|
2171
2139
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2181,10 +2149,12 @@ const deserializeAws_restJson1CreateAssessmentCommandError = async (output, cont
|
|
|
2181
2149
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2182
2150
|
default:
|
|
2183
2151
|
const parsedBody = parsedOutput.body;
|
|
2152
|
+
const $metadata = deserializeMetadata(output);
|
|
2153
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2184
2154
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2155
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2186
2156
|
$fault: "client",
|
|
2187
|
-
$metadata
|
|
2157
|
+
$metadata,
|
|
2188
2158
|
});
|
|
2189
2159
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2190
2160
|
}
|
|
@@ -2210,8 +2180,7 @@ const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (out
|
|
|
2210
2180
|
body: await parseBody(output.body, context),
|
|
2211
2181
|
};
|
|
2212
2182
|
let response;
|
|
2213
|
-
|
|
2214
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2215
2184
|
switch (errorCode) {
|
|
2216
2185
|
case "AccessDeniedException":
|
|
2217
2186
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2227,10 +2196,12 @@ const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (out
|
|
|
2227
2196
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2228
2197
|
default:
|
|
2229
2198
|
const parsedBody = parsedOutput.body;
|
|
2199
|
+
const $metadata = deserializeMetadata(output);
|
|
2200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2230
2201
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2231
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2232
2203
|
$fault: "client",
|
|
2233
|
-
$metadata
|
|
2204
|
+
$metadata,
|
|
2234
2205
|
});
|
|
2235
2206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2236
2207
|
}
|
|
@@ -2256,8 +2227,7 @@ const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output
|
|
|
2256
2227
|
body: await parseBody(output.body, context),
|
|
2257
2228
|
};
|
|
2258
2229
|
let response;
|
|
2259
|
-
|
|
2260
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2261
2231
|
switch (errorCode) {
|
|
2262
2232
|
case "AccessDeniedException":
|
|
2263
2233
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2273,10 +2243,12 @@ const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output
|
|
|
2273
2243
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2274
2244
|
default:
|
|
2275
2245
|
const parsedBody = parsedOutput.body;
|
|
2246
|
+
const $metadata = deserializeMetadata(output);
|
|
2247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2276
2248
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2277
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2278
2250
|
$fault: "client",
|
|
2279
|
-
$metadata
|
|
2251
|
+
$metadata,
|
|
2280
2252
|
});
|
|
2281
2253
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2282
2254
|
}
|
|
@@ -2302,8 +2274,7 @@ const deserializeAws_restJson1CreateControlCommandError = async (output, context
|
|
|
2302
2274
|
body: await parseBody(output.body, context),
|
|
2303
2275
|
};
|
|
2304
2276
|
let response;
|
|
2305
|
-
|
|
2306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
2278
|
switch (errorCode) {
|
|
2308
2279
|
case "AccessDeniedException":
|
|
2309
2280
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2319,10 +2290,12 @@ const deserializeAws_restJson1CreateControlCommandError = async (output, context
|
|
|
2319
2290
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2320
2291
|
default:
|
|
2321
2292
|
const parsedBody = parsedOutput.body;
|
|
2293
|
+
const $metadata = deserializeMetadata(output);
|
|
2294
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2322
2295
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2296
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2324
2297
|
$fault: "client",
|
|
2325
|
-
$metadata
|
|
2298
|
+
$metadata,
|
|
2326
2299
|
});
|
|
2327
2300
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2328
2301
|
}
|
|
@@ -2344,8 +2317,7 @@ const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, cont
|
|
|
2344
2317
|
body: await parseBody(output.body, context),
|
|
2345
2318
|
};
|
|
2346
2319
|
let response;
|
|
2347
|
-
|
|
2348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2349
2321
|
switch (errorCode) {
|
|
2350
2322
|
case "AccessDeniedException":
|
|
2351
2323
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2361,10 +2333,12 @@ const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, cont
|
|
|
2361
2333
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2362
2334
|
default:
|
|
2363
2335
|
const parsedBody = parsedOutput.body;
|
|
2336
|
+
const $metadata = deserializeMetadata(output);
|
|
2337
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2364
2338
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2339
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2366
2340
|
$fault: "client",
|
|
2367
|
-
$metadata
|
|
2341
|
+
$metadata,
|
|
2368
2342
|
});
|
|
2369
2343
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2370
2344
|
}
|
|
@@ -2386,8 +2360,7 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (out
|
|
|
2386
2360
|
body: await parseBody(output.body, context),
|
|
2387
2361
|
};
|
|
2388
2362
|
let response;
|
|
2389
|
-
|
|
2390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
2364
|
switch (errorCode) {
|
|
2392
2365
|
case "AccessDeniedException":
|
|
2393
2366
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2403,10 +2376,12 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (out
|
|
|
2403
2376
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2404
2377
|
default:
|
|
2405
2378
|
const parsedBody = parsedOutput.body;
|
|
2379
|
+
const $metadata = deserializeMetadata(output);
|
|
2380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2406
2381
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2408
2383
|
$fault: "client",
|
|
2409
|
-
$metadata
|
|
2384
|
+
$metadata,
|
|
2410
2385
|
});
|
|
2411
2386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2412
2387
|
}
|
|
@@ -2428,8 +2403,7 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async
|
|
|
2428
2403
|
body: await parseBody(output.body, context),
|
|
2429
2404
|
};
|
|
2430
2405
|
let response;
|
|
2431
|
-
|
|
2432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2406
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
2407
|
switch (errorCode) {
|
|
2434
2408
|
case "AccessDeniedException":
|
|
2435
2409
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2445,10 +2419,12 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async
|
|
|
2445
2419
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2446
2420
|
default:
|
|
2447
2421
|
const parsedBody = parsedOutput.body;
|
|
2422
|
+
const $metadata = deserializeMetadata(output);
|
|
2423
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2448
2424
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2425
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2450
2426
|
$fault: "client",
|
|
2451
|
-
$metadata
|
|
2427
|
+
$metadata,
|
|
2452
2428
|
});
|
|
2453
2429
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2454
2430
|
}
|
|
@@ -2470,8 +2446,7 @@ const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output
|
|
|
2470
2446
|
body: await parseBody(output.body, context),
|
|
2471
2447
|
};
|
|
2472
2448
|
let response;
|
|
2473
|
-
|
|
2474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2449
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2475
2450
|
switch (errorCode) {
|
|
2476
2451
|
case "AccessDeniedException":
|
|
2477
2452
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2487,10 +2462,12 @@ const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output
|
|
|
2487
2462
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2488
2463
|
default:
|
|
2489
2464
|
const parsedBody = parsedOutput.body;
|
|
2465
|
+
const $metadata = deserializeMetadata(output);
|
|
2466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2490
2467
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2491
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2492
2469
|
$fault: "client",
|
|
2493
|
-
$metadata
|
|
2470
|
+
$metadata,
|
|
2494
2471
|
});
|
|
2495
2472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2496
2473
|
}
|
|
@@ -2512,8 +2489,7 @@ const deserializeAws_restJson1DeleteControlCommandError = async (output, context
|
|
|
2512
2489
|
body: await parseBody(output.body, context),
|
|
2513
2490
|
};
|
|
2514
2491
|
let response;
|
|
2515
|
-
|
|
2516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
2493
|
switch (errorCode) {
|
|
2518
2494
|
case "AccessDeniedException":
|
|
2519
2495
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2529,10 +2505,12 @@ const deserializeAws_restJson1DeleteControlCommandError = async (output, context
|
|
|
2529
2505
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2530
2506
|
default:
|
|
2531
2507
|
const parsedBody = parsedOutput.body;
|
|
2508
|
+
const $metadata = deserializeMetadata(output);
|
|
2509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2532
2510
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2534
2512
|
$fault: "client",
|
|
2535
|
-
$metadata
|
|
2513
|
+
$metadata,
|
|
2536
2514
|
});
|
|
2537
2515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2538
2516
|
}
|
|
@@ -2558,8 +2536,7 @@ const deserializeAws_restJson1DeregisterAccountCommandError = async (output, con
|
|
|
2558
2536
|
body: await parseBody(output.body, context),
|
|
2559
2537
|
};
|
|
2560
2538
|
let response;
|
|
2561
|
-
|
|
2562
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
2540
|
switch (errorCode) {
|
|
2564
2541
|
case "AccessDeniedException":
|
|
2565
2542
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2575,10 +2552,12 @@ const deserializeAws_restJson1DeregisterAccountCommandError = async (output, con
|
|
|
2575
2552
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2576
2553
|
default:
|
|
2577
2554
|
const parsedBody = parsedOutput.body;
|
|
2555
|
+
const $metadata = deserializeMetadata(output);
|
|
2556
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2578
2557
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2558
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2580
2559
|
$fault: "client",
|
|
2581
|
-
$metadata
|
|
2560
|
+
$metadata,
|
|
2582
2561
|
});
|
|
2583
2562
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2584
2563
|
}
|
|
@@ -2600,8 +2579,7 @@ const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = a
|
|
|
2600
2579
|
body: await parseBody(output.body, context),
|
|
2601
2580
|
};
|
|
2602
2581
|
let response;
|
|
2603
|
-
|
|
2604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2605
2583
|
switch (errorCode) {
|
|
2606
2584
|
case "AccessDeniedException":
|
|
2607
2585
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2617,10 +2595,12 @@ const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = a
|
|
|
2617
2595
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2618
2596
|
default:
|
|
2619
2597
|
const parsedBody = parsedOutput.body;
|
|
2598
|
+
const $metadata = deserializeMetadata(output);
|
|
2599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2620
2600
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2601
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2622
2602
|
$fault: "client",
|
|
2623
|
-
$metadata
|
|
2603
|
+
$metadata,
|
|
2624
2604
|
});
|
|
2625
2605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2626
2606
|
}
|
|
@@ -2642,8 +2622,7 @@ const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandE
|
|
|
2642
2622
|
body: await parseBody(output.body, context),
|
|
2643
2623
|
};
|
|
2644
2624
|
let response;
|
|
2645
|
-
|
|
2646
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
2626
|
switch (errorCode) {
|
|
2648
2627
|
case "AccessDeniedException":
|
|
2649
2628
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2659,10 +2638,12 @@ const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandE
|
|
|
2659
2638
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2660
2639
|
default:
|
|
2661
2640
|
const parsedBody = parsedOutput.body;
|
|
2641
|
+
const $metadata = deserializeMetadata(output);
|
|
2642
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2662
2643
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2644
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2664
2645
|
$fault: "client",
|
|
2665
|
-
$metadata
|
|
2646
|
+
$metadata,
|
|
2666
2647
|
});
|
|
2667
2648
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2668
2649
|
}
|
|
@@ -2688,18 +2669,19 @@ const deserializeAws_restJson1GetAccountStatusCommandError = async (output, cont
|
|
|
2688
2669
|
body: await parseBody(output.body, context),
|
|
2689
2670
|
};
|
|
2690
2671
|
let response;
|
|
2691
|
-
|
|
2692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2693
2673
|
switch (errorCode) {
|
|
2694
2674
|
case "InternalServerException":
|
|
2695
2675
|
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2696
2676
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2697
2677
|
default:
|
|
2698
2678
|
const parsedBody = parsedOutput.body;
|
|
2679
|
+
const $metadata = deserializeMetadata(output);
|
|
2680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2699
2681
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2700
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2701
2683
|
$fault: "client",
|
|
2702
|
-
$metadata
|
|
2684
|
+
$metadata,
|
|
2703
2685
|
});
|
|
2704
2686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2705
2687
|
}
|
|
@@ -2729,8 +2711,7 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
|
|
|
2729
2711
|
body: await parseBody(output.body, context),
|
|
2730
2712
|
};
|
|
2731
2713
|
let response;
|
|
2732
|
-
|
|
2733
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2734
2715
|
switch (errorCode) {
|
|
2735
2716
|
case "AccessDeniedException":
|
|
2736
2717
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2746,10 +2727,12 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
|
|
|
2746
2727
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2747
2728
|
default:
|
|
2748
2729
|
const parsedBody = parsedOutput.body;
|
|
2730
|
+
const $metadata = deserializeMetadata(output);
|
|
2731
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2749
2732
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2733
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2751
2734
|
$fault: "client",
|
|
2752
|
-
$metadata
|
|
2735
|
+
$metadata,
|
|
2753
2736
|
});
|
|
2754
2737
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2755
2738
|
}
|
|
@@ -2775,8 +2758,7 @@ const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output
|
|
|
2775
2758
|
body: await parseBody(output.body, context),
|
|
2776
2759
|
};
|
|
2777
2760
|
let response;
|
|
2778
|
-
|
|
2779
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2780
2762
|
switch (errorCode) {
|
|
2781
2763
|
case "AccessDeniedException":
|
|
2782
2764
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2792,10 +2774,12 @@ const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output
|
|
|
2792
2774
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2793
2775
|
default:
|
|
2794
2776
|
const parsedBody = parsedOutput.body;
|
|
2777
|
+
const $metadata = deserializeMetadata(output);
|
|
2778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2795
2779
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2797
2781
|
$fault: "client",
|
|
2798
|
-
$metadata
|
|
2782
|
+
$metadata,
|
|
2799
2783
|
});
|
|
2800
2784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2801
2785
|
}
|
|
@@ -2821,8 +2805,7 @@ const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output
|
|
|
2821
2805
|
body: await parseBody(output.body, context),
|
|
2822
2806
|
};
|
|
2823
2807
|
let response;
|
|
2824
|
-
|
|
2825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2826
2809
|
switch (errorCode) {
|
|
2827
2810
|
case "AccessDeniedException":
|
|
2828
2811
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2838,10 +2821,12 @@ const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output
|
|
|
2838
2821
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2839
2822
|
default:
|
|
2840
2823
|
const parsedBody = parsedOutput.body;
|
|
2824
|
+
const $metadata = deserializeMetadata(output);
|
|
2825
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2841
2826
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2842
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2827
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2843
2828
|
$fault: "client",
|
|
2844
|
-
$metadata
|
|
2829
|
+
$metadata,
|
|
2845
2830
|
});
|
|
2846
2831
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2847
2832
|
}
|
|
@@ -2871,8 +2856,7 @@ const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context
|
|
|
2871
2856
|
body: await parseBody(output.body, context),
|
|
2872
2857
|
};
|
|
2873
2858
|
let response;
|
|
2874
|
-
|
|
2875
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
2860
|
switch (errorCode) {
|
|
2877
2861
|
case "AccessDeniedException":
|
|
2878
2862
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2888,10 +2872,12 @@ const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context
|
|
|
2888
2872
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2889
2873
|
default:
|
|
2890
2874
|
const parsedBody = parsedOutput.body;
|
|
2875
|
+
const $metadata = deserializeMetadata(output);
|
|
2876
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2891
2877
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2892
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2893
2879
|
$fault: "client",
|
|
2894
|
-
$metadata
|
|
2880
|
+
$metadata,
|
|
2895
2881
|
});
|
|
2896
2882
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2897
2883
|
}
|
|
@@ -2917,8 +2903,7 @@ const deserializeAws_restJson1GetControlCommandError = async (output, context) =
|
|
|
2917
2903
|
body: await parseBody(output.body, context),
|
|
2918
2904
|
};
|
|
2919
2905
|
let response;
|
|
2920
|
-
|
|
2921
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2906
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2922
2907
|
switch (errorCode) {
|
|
2923
2908
|
case "AccessDeniedException":
|
|
2924
2909
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2934,10 +2919,12 @@ const deserializeAws_restJson1GetControlCommandError = async (output, context) =
|
|
|
2934
2919
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2935
2920
|
default:
|
|
2936
2921
|
const parsedBody = parsedOutput.body;
|
|
2922
|
+
const $metadata = deserializeMetadata(output);
|
|
2923
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2937
2924
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2925
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2939
2926
|
$fault: "client",
|
|
2940
|
-
$metadata
|
|
2927
|
+
$metadata,
|
|
2941
2928
|
});
|
|
2942
2929
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2943
2930
|
}
|
|
@@ -2967,8 +2954,7 @@ const deserializeAws_restJson1GetDelegationsCommandError = async (output, contex
|
|
|
2967
2954
|
body: await parseBody(output.body, context),
|
|
2968
2955
|
};
|
|
2969
2956
|
let response;
|
|
2970
|
-
|
|
2971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
2958
|
switch (errorCode) {
|
|
2973
2959
|
case "AccessDeniedException":
|
|
2974
2960
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -2981,10 +2967,12 @@ const deserializeAws_restJson1GetDelegationsCommandError = async (output, contex
|
|
|
2981
2967
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2982
2968
|
default:
|
|
2983
2969
|
const parsedBody = parsedOutput.body;
|
|
2970
|
+
const $metadata = deserializeMetadata(output);
|
|
2971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2984
2972
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
2985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2986
2974
|
$fault: "client",
|
|
2987
|
-
$metadata
|
|
2975
|
+
$metadata,
|
|
2988
2976
|
});
|
|
2989
2977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2990
2978
|
}
|
|
@@ -3010,8 +2998,7 @@ const deserializeAws_restJson1GetEvidenceCommandError = async (output, context)
|
|
|
3010
2998
|
body: await parseBody(output.body, context),
|
|
3011
2999
|
};
|
|
3012
3000
|
let response;
|
|
3013
|
-
|
|
3014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3015
3002
|
switch (errorCode) {
|
|
3016
3003
|
case "AccessDeniedException":
|
|
3017
3004
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3027,10 +3014,12 @@ const deserializeAws_restJson1GetEvidenceCommandError = async (output, context)
|
|
|
3027
3014
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3028
3015
|
default:
|
|
3029
3016
|
const parsedBody = parsedOutput.body;
|
|
3017
|
+
const $metadata = deserializeMetadata(output);
|
|
3018
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3030
3019
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3031
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3020
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3032
3021
|
$fault: "client",
|
|
3033
|
-
$metadata
|
|
3022
|
+
$metadata,
|
|
3034
3023
|
});
|
|
3035
3024
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3036
3025
|
}
|
|
@@ -3060,8 +3049,7 @@ const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (o
|
|
|
3060
3049
|
body: await parseBody(output.body, context),
|
|
3061
3050
|
};
|
|
3062
3051
|
let response;
|
|
3063
|
-
|
|
3064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
3053
|
switch (errorCode) {
|
|
3066
3054
|
case "AccessDeniedException":
|
|
3067
3055
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3077,10 +3065,12 @@ const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (o
|
|
|
3077
3065
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3078
3066
|
default:
|
|
3079
3067
|
const parsedBody = parsedOutput.body;
|
|
3068
|
+
const $metadata = deserializeMetadata(output);
|
|
3069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3080
3070
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3082
3072
|
$fault: "client",
|
|
3083
|
-
$metadata
|
|
3073
|
+
$metadata,
|
|
3084
3074
|
});
|
|
3085
3075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3086
3076
|
}
|
|
@@ -3106,8 +3096,7 @@ const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, con
|
|
|
3106
3096
|
body: await parseBody(output.body, context),
|
|
3107
3097
|
};
|
|
3108
3098
|
let response;
|
|
3109
|
-
|
|
3110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3111
3100
|
switch (errorCode) {
|
|
3112
3101
|
case "AccessDeniedException":
|
|
3113
3102
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3123,10 +3112,12 @@ const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, con
|
|
|
3123
3112
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3124
3113
|
default:
|
|
3125
3114
|
const parsedBody = parsedOutput.body;
|
|
3115
|
+
const $metadata = deserializeMetadata(output);
|
|
3116
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3126
3117
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3118
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3128
3119
|
$fault: "client",
|
|
3129
|
-
$metadata
|
|
3120
|
+
$metadata,
|
|
3130
3121
|
});
|
|
3131
3122
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3132
3123
|
}
|
|
@@ -3156,8 +3147,7 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async
|
|
|
3156
3147
|
body: await parseBody(output.body, context),
|
|
3157
3148
|
};
|
|
3158
3149
|
let response;
|
|
3159
|
-
|
|
3160
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3161
3151
|
switch (errorCode) {
|
|
3162
3152
|
case "AccessDeniedException":
|
|
3163
3153
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3173,10 +3163,12 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async
|
|
|
3173
3163
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3174
3164
|
default:
|
|
3175
3165
|
const parsedBody = parsedOutput.body;
|
|
3166
|
+
const $metadata = deserializeMetadata(output);
|
|
3167
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3176
3168
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3177
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3178
3170
|
$fault: "client",
|
|
3179
|
-
$metadata
|
|
3171
|
+
$metadata,
|
|
3180
3172
|
});
|
|
3181
3173
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3182
3174
|
}
|
|
@@ -3206,8 +3198,7 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
|
|
|
3206
3198
|
body: await parseBody(output.body, context),
|
|
3207
3199
|
};
|
|
3208
3200
|
let response;
|
|
3209
|
-
|
|
3210
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
3202
|
switch (errorCode) {
|
|
3212
3203
|
case "AccessDeniedException":
|
|
3213
3204
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3223,10 +3214,12 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
|
|
|
3223
3214
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3224
3215
|
default:
|
|
3225
3216
|
const parsedBody = parsedOutput.body;
|
|
3217
|
+
const $metadata = deserializeMetadata(output);
|
|
3218
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3226
3219
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3227
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3220
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3228
3221
|
$fault: "client",
|
|
3229
|
-
$metadata
|
|
3222
|
+
$metadata,
|
|
3230
3223
|
});
|
|
3231
3224
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3232
3225
|
}
|
|
@@ -3252,8 +3245,7 @@ const deserializeAws_restJson1GetInsightsCommandError = async (output, context)
|
|
|
3252
3245
|
body: await parseBody(output.body, context),
|
|
3253
3246
|
};
|
|
3254
3247
|
let response;
|
|
3255
|
-
|
|
3256
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3257
3249
|
switch (errorCode) {
|
|
3258
3250
|
case "AccessDeniedException":
|
|
3259
3251
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3263,10 +3255,12 @@ const deserializeAws_restJson1GetInsightsCommandError = async (output, context)
|
|
|
3263
3255
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3264
3256
|
default:
|
|
3265
3257
|
const parsedBody = parsedOutput.body;
|
|
3258
|
+
const $metadata = deserializeMetadata(output);
|
|
3259
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3266
3260
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3268
3262
|
$fault: "client",
|
|
3269
|
-
$metadata
|
|
3263
|
+
$metadata,
|
|
3270
3264
|
});
|
|
3271
3265
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3272
3266
|
}
|
|
@@ -3292,8 +3286,7 @@ const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (outpu
|
|
|
3292
3286
|
body: await parseBody(output.body, context),
|
|
3293
3287
|
};
|
|
3294
3288
|
let response;
|
|
3295
|
-
|
|
3296
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3289
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
3290
|
switch (errorCode) {
|
|
3298
3291
|
case "AccessDeniedException":
|
|
3299
3292
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3309,10 +3302,12 @@ const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (outpu
|
|
|
3309
3302
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3310
3303
|
default:
|
|
3311
3304
|
const parsedBody = parsedOutput.body;
|
|
3305
|
+
const $metadata = deserializeMetadata(output);
|
|
3306
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3312
3307
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3313
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3308
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3314
3309
|
$fault: "client",
|
|
3315
|
-
$metadata
|
|
3310
|
+
$metadata,
|
|
3316
3311
|
});
|
|
3317
3312
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3318
3313
|
}
|
|
@@ -3342,8 +3337,7 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
|
|
|
3342
3337
|
body: await parseBody(output.body, context),
|
|
3343
3338
|
};
|
|
3344
3339
|
let response;
|
|
3345
|
-
|
|
3346
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3340
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3347
3341
|
switch (errorCode) {
|
|
3348
3342
|
case "AccessDeniedException":
|
|
3349
3343
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3359,10 +3353,12 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
|
|
|
3359
3353
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3360
3354
|
default:
|
|
3361
3355
|
const parsedBody = parsedOutput.body;
|
|
3356
|
+
const $metadata = deserializeMetadata(output);
|
|
3357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3362
3358
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3364
3360
|
$fault: "client",
|
|
3365
|
-
$metadata
|
|
3361
|
+
$metadata,
|
|
3366
3362
|
});
|
|
3367
3363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3368
3364
|
}
|
|
@@ -3388,8 +3384,7 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
|
|
|
3388
3384
|
body: await parseBody(output.body, context),
|
|
3389
3385
|
};
|
|
3390
3386
|
let response;
|
|
3391
|
-
|
|
3392
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3393
3388
|
switch (errorCode) {
|
|
3394
3389
|
case "AccessDeniedException":
|
|
3395
3390
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3402,10 +3397,12 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
|
|
|
3402
3397
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3403
3398
|
default:
|
|
3404
3399
|
const parsedBody = parsedOutput.body;
|
|
3400
|
+
const $metadata = deserializeMetadata(output);
|
|
3401
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3405
3402
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3403
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3407
3404
|
$fault: "client",
|
|
3408
|
-
$metadata
|
|
3405
|
+
$metadata,
|
|
3409
3406
|
});
|
|
3410
3407
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3411
3408
|
}
|
|
@@ -3431,8 +3428,7 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
|
|
|
3431
3428
|
body: await parseBody(output.body, context),
|
|
3432
3429
|
};
|
|
3433
3430
|
let response;
|
|
3434
|
-
|
|
3435
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3436
3432
|
switch (errorCode) {
|
|
3437
3433
|
case "AccessDeniedException":
|
|
3438
3434
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3442,10 +3438,12 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
|
|
|
3442
3438
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3443
3439
|
default:
|
|
3444
3440
|
const parsedBody = parsedOutput.body;
|
|
3441
|
+
const $metadata = deserializeMetadata(output);
|
|
3442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3445
3443
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3447
3445
|
$fault: "client",
|
|
3448
|
-
$metadata
|
|
3446
|
+
$metadata,
|
|
3449
3447
|
});
|
|
3450
3448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3451
3449
|
}
|
|
@@ -3475,8 +3473,7 @@ const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
|
|
|
3475
3473
|
body: await parseBody(output.body, context),
|
|
3476
3474
|
};
|
|
3477
3475
|
let response;
|
|
3478
|
-
|
|
3479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
3477
|
switch (errorCode) {
|
|
3481
3478
|
case "AccessDeniedException":
|
|
3482
3479
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3492,10 +3489,12 @@ const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
|
|
|
3492
3489
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3493
3490
|
default:
|
|
3494
3491
|
const parsedBody = parsedOutput.body;
|
|
3492
|
+
const $metadata = deserializeMetadata(output);
|
|
3493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3495
3494
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3496
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3497
3496
|
$fault: "client",
|
|
3498
|
-
$metadata
|
|
3497
|
+
$metadata,
|
|
3499
3498
|
});
|
|
3500
3499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3501
3500
|
}
|
|
@@ -3525,8 +3524,7 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
|
|
|
3525
3524
|
body: await parseBody(output.body, context),
|
|
3526
3525
|
};
|
|
3527
3526
|
let response;
|
|
3528
|
-
|
|
3529
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3527
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3530
3528
|
switch (errorCode) {
|
|
3531
3529
|
case "AccessDeniedException":
|
|
3532
3530
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3539,10 +3537,12 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
|
|
|
3539
3537
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3540
3538
|
default:
|
|
3541
3539
|
const parsedBody = parsedOutput.body;
|
|
3540
|
+
const $metadata = deserializeMetadata(output);
|
|
3541
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3542
3542
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3543
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3544
3544
|
$fault: "client",
|
|
3545
|
-
$metadata
|
|
3545
|
+
$metadata,
|
|
3546
3546
|
});
|
|
3547
3547
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3548
3548
|
}
|
|
@@ -3572,8 +3572,7 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
|
|
|
3572
3572
|
body: await parseBody(output.body, context),
|
|
3573
3573
|
};
|
|
3574
3574
|
let response;
|
|
3575
|
-
|
|
3576
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3575
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3577
3576
|
switch (errorCode) {
|
|
3578
3577
|
case "AccessDeniedException":
|
|
3579
3578
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3586,10 +3585,12 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
|
|
|
3586
3585
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3587
3586
|
default:
|
|
3588
3587
|
const parsedBody = parsedOutput.body;
|
|
3588
|
+
const $metadata = deserializeMetadata(output);
|
|
3589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3589
3590
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3590
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3591
3592
|
$fault: "client",
|
|
3592
|
-
$metadata
|
|
3593
|
+
$metadata,
|
|
3593
3594
|
});
|
|
3594
3595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3595
3596
|
}
|
|
@@ -3619,8 +3620,7 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
|
|
|
3619
3620
|
body: await parseBody(output.body, context),
|
|
3620
3621
|
};
|
|
3621
3622
|
let response;
|
|
3622
|
-
|
|
3623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
3624
|
switch (errorCode) {
|
|
3625
3625
|
case "AccessDeniedException":
|
|
3626
3626
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3633,10 +3633,12 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
|
|
|
3633
3633
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3634
3634
|
default:
|
|
3635
3635
|
const parsedBody = parsedOutput.body;
|
|
3636
|
+
const $metadata = deserializeMetadata(output);
|
|
3637
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3636
3638
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3639
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3638
3640
|
$fault: "client",
|
|
3639
|
-
$metadata
|
|
3641
|
+
$metadata,
|
|
3640
3642
|
});
|
|
3641
3643
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3642
3644
|
}
|
|
@@ -3666,8 +3668,7 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
|
|
|
3666
3668
|
body: await parseBody(output.body, context),
|
|
3667
3669
|
};
|
|
3668
3670
|
let response;
|
|
3669
|
-
|
|
3670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3671
3672
|
switch (errorCode) {
|
|
3672
3673
|
case "AccessDeniedException":
|
|
3673
3674
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3680,10 +3681,12 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
|
|
|
3680
3681
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3681
3682
|
default:
|
|
3682
3683
|
const parsedBody = parsedOutput.body;
|
|
3684
|
+
const $metadata = deserializeMetadata(output);
|
|
3685
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3683
3686
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3685
3688
|
$fault: "client",
|
|
3686
|
-
$metadata
|
|
3689
|
+
$metadata,
|
|
3687
3690
|
});
|
|
3688
3691
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3689
3692
|
}
|
|
@@ -3713,8 +3716,7 @@ const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (out
|
|
|
3713
3716
|
body: await parseBody(output.body, context),
|
|
3714
3717
|
};
|
|
3715
3718
|
let response;
|
|
3716
|
-
|
|
3717
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3718
3720
|
switch (errorCode) {
|
|
3719
3721
|
case "AccessDeniedException":
|
|
3720
3722
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3730,10 +3732,12 @@ const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (out
|
|
|
3730
3732
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3731
3733
|
default:
|
|
3732
3734
|
const parsedBody = parsedOutput.body;
|
|
3735
|
+
const $metadata = deserializeMetadata(output);
|
|
3736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3733
3737
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3735
3739
|
$fault: "client",
|
|
3736
|
-
$metadata
|
|
3740
|
+
$metadata,
|
|
3737
3741
|
});
|
|
3738
3742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3739
3743
|
}
|
|
@@ -3763,8 +3767,7 @@ const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError
|
|
|
3763
3767
|
body: await parseBody(output.body, context),
|
|
3764
3768
|
};
|
|
3765
3769
|
let response;
|
|
3766
|
-
|
|
3767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3770
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3768
3771
|
switch (errorCode) {
|
|
3769
3772
|
case "AccessDeniedException":
|
|
3770
3773
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3780,10 +3783,12 @@ const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError
|
|
|
3780
3783
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3781
3784
|
default:
|
|
3782
3785
|
const parsedBody = parsedOutput.body;
|
|
3786
|
+
const $metadata = deserializeMetadata(output);
|
|
3787
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3783
3788
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3789
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3785
3790
|
$fault: "client",
|
|
3786
|
-
$metadata
|
|
3791
|
+
$metadata,
|
|
3787
3792
|
});
|
|
3788
3793
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3789
3794
|
}
|
|
@@ -3813,8 +3818,7 @@ const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = a
|
|
|
3813
3818
|
body: await parseBody(output.body, context),
|
|
3814
3819
|
};
|
|
3815
3820
|
let response;
|
|
3816
|
-
|
|
3817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3818
3822
|
switch (errorCode) {
|
|
3819
3823
|
case "AccessDeniedException":
|
|
3820
3824
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3830,10 +3834,12 @@ const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = a
|
|
|
3830
3834
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3831
3835
|
default:
|
|
3832
3836
|
const parsedBody = parsedOutput.body;
|
|
3837
|
+
const $metadata = deserializeMetadata(output);
|
|
3838
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3833
3839
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3834
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3835
3841
|
$fault: "client",
|
|
3836
|
-
$metadata
|
|
3842
|
+
$metadata,
|
|
3837
3843
|
});
|
|
3838
3844
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3839
3845
|
}
|
|
@@ -3863,8 +3869,7 @@ const deserializeAws_restJson1ListControlsCommandError = async (output, context)
|
|
|
3863
3869
|
body: await parseBody(output.body, context),
|
|
3864
3870
|
};
|
|
3865
3871
|
let response;
|
|
3866
|
-
|
|
3867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3872
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3868
3873
|
switch (errorCode) {
|
|
3869
3874
|
case "AccessDeniedException":
|
|
3870
3875
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3877,10 +3882,12 @@ const deserializeAws_restJson1ListControlsCommandError = async (output, context)
|
|
|
3877
3882
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3878
3883
|
default:
|
|
3879
3884
|
const parsedBody = parsedOutput.body;
|
|
3885
|
+
const $metadata = deserializeMetadata(output);
|
|
3886
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3880
3887
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3888
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3882
3889
|
$fault: "client",
|
|
3883
|
-
$metadata
|
|
3890
|
+
$metadata,
|
|
3884
3891
|
});
|
|
3885
3892
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3886
3893
|
}
|
|
@@ -3910,8 +3917,7 @@ const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (out
|
|
|
3910
3917
|
body: await parseBody(output.body, context),
|
|
3911
3918
|
};
|
|
3912
3919
|
let response;
|
|
3913
|
-
|
|
3914
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3915
3921
|
switch (errorCode) {
|
|
3916
3922
|
case "AccessDeniedException":
|
|
3917
3923
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3924,10 +3930,12 @@ const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (out
|
|
|
3924
3930
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3925
3931
|
default:
|
|
3926
3932
|
const parsedBody = parsedOutput.body;
|
|
3933
|
+
const $metadata = deserializeMetadata(output);
|
|
3934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3927
3935
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3928
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3929
3937
|
$fault: "client",
|
|
3930
|
-
$metadata
|
|
3938
|
+
$metadata,
|
|
3931
3939
|
});
|
|
3932
3940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3933
3941
|
}
|
|
@@ -3957,8 +3965,7 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
3957
3965
|
body: await parseBody(output.body, context),
|
|
3958
3966
|
};
|
|
3959
3967
|
let response;
|
|
3960
|
-
|
|
3961
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3968
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3962
3969
|
switch (errorCode) {
|
|
3963
3970
|
case "AccessDeniedException":
|
|
3964
3971
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -3971,10 +3978,12 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
3971
3978
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3972
3979
|
default:
|
|
3973
3980
|
const parsedBody = parsedOutput.body;
|
|
3981
|
+
const $metadata = deserializeMetadata(output);
|
|
3982
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3974
3983
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
3975
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3984
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3976
3985
|
$fault: "client",
|
|
3977
|
-
$metadata
|
|
3986
|
+
$metadata,
|
|
3978
3987
|
});
|
|
3979
3988
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3980
3989
|
}
|
|
@@ -4000,8 +4009,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4000
4009
|
body: await parseBody(output.body, context),
|
|
4001
4010
|
};
|
|
4002
4011
|
let response;
|
|
4003
|
-
|
|
4004
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4005
4013
|
switch (errorCode) {
|
|
4006
4014
|
case "InternalServerException":
|
|
4007
4015
|
case "com.amazonaws.auditmanager#InternalServerException":
|
|
@@ -4014,10 +4022,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4014
4022
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4015
4023
|
default:
|
|
4016
4024
|
const parsedBody = parsedOutput.body;
|
|
4025
|
+
const $metadata = deserializeMetadata(output);
|
|
4026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4017
4027
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4019
4029
|
$fault: "client",
|
|
4020
|
-
$metadata
|
|
4030
|
+
$metadata,
|
|
4021
4031
|
});
|
|
4022
4032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4023
4033
|
}
|
|
@@ -4043,8 +4053,7 @@ const deserializeAws_restJson1RegisterAccountCommandError = async (output, conte
|
|
|
4043
4053
|
body: await parseBody(output.body, context),
|
|
4044
4054
|
};
|
|
4045
4055
|
let response;
|
|
4046
|
-
|
|
4047
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4048
4057
|
switch (errorCode) {
|
|
4049
4058
|
case "AccessDeniedException":
|
|
4050
4059
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4063,10 +4072,12 @@ const deserializeAws_restJson1RegisterAccountCommandError = async (output, conte
|
|
|
4063
4072
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4064
4073
|
default:
|
|
4065
4074
|
const parsedBody = parsedOutput.body;
|
|
4075
|
+
const $metadata = deserializeMetadata(output);
|
|
4076
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4066
4077
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4067
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4078
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4068
4079
|
$fault: "client",
|
|
4069
|
-
$metadata
|
|
4080
|
+
$metadata,
|
|
4070
4081
|
});
|
|
4071
4082
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4072
4083
|
}
|
|
@@ -4096,8 +4107,7 @@ const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = asy
|
|
|
4096
4107
|
body: await parseBody(output.body, context),
|
|
4097
4108
|
};
|
|
4098
4109
|
let response;
|
|
4099
|
-
|
|
4100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4101
4111
|
switch (errorCode) {
|
|
4102
4112
|
case "AccessDeniedException":
|
|
4103
4113
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4113,10 +4123,12 @@ const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = asy
|
|
|
4113
4123
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4114
4124
|
default:
|
|
4115
4125
|
const parsedBody = parsedOutput.body;
|
|
4126
|
+
const $metadata = deserializeMetadata(output);
|
|
4127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4116
4128
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4118
4130
|
$fault: "client",
|
|
4119
|
-
$metadata
|
|
4131
|
+
$metadata,
|
|
4120
4132
|
});
|
|
4121
4133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4122
4134
|
}
|
|
@@ -4142,8 +4154,7 @@ const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async
|
|
|
4142
4154
|
body: await parseBody(output.body, context),
|
|
4143
4155
|
};
|
|
4144
4156
|
let response;
|
|
4145
|
-
|
|
4146
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4147
4158
|
switch (errorCode) {
|
|
4148
4159
|
case "AccessDeniedException":
|
|
4149
4160
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4159,10 +4170,12 @@ const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async
|
|
|
4159
4170
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4160
4171
|
default:
|
|
4161
4172
|
const parsedBody = parsedOutput.body;
|
|
4173
|
+
const $metadata = deserializeMetadata(output);
|
|
4174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4162
4175
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4163
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4164
4177
|
$fault: "client",
|
|
4165
|
-
$metadata
|
|
4178
|
+
$metadata,
|
|
4166
4179
|
});
|
|
4167
4180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4168
4181
|
}
|
|
@@ -4184,8 +4197,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4184
4197
|
body: await parseBody(output.body, context),
|
|
4185
4198
|
};
|
|
4186
4199
|
let response;
|
|
4187
|
-
|
|
4188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4189
4201
|
switch (errorCode) {
|
|
4190
4202
|
case "InternalServerException":
|
|
4191
4203
|
case "com.amazonaws.auditmanager#InternalServerException":
|
|
@@ -4198,10 +4210,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4198
4210
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4199
4211
|
default:
|
|
4200
4212
|
const parsedBody = parsedOutput.body;
|
|
4213
|
+
const $metadata = deserializeMetadata(output);
|
|
4214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4201
4215
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4202
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4203
4217
|
$fault: "client",
|
|
4204
|
-
$metadata
|
|
4218
|
+
$metadata,
|
|
4205
4219
|
});
|
|
4206
4220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4207
4221
|
}
|
|
@@ -4223,8 +4237,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4223
4237
|
body: await parseBody(output.body, context),
|
|
4224
4238
|
};
|
|
4225
4239
|
let response;
|
|
4226
|
-
|
|
4227
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4228
4241
|
switch (errorCode) {
|
|
4229
4242
|
case "InternalServerException":
|
|
4230
4243
|
case "com.amazonaws.auditmanager#InternalServerException":
|
|
@@ -4237,10 +4250,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4237
4250
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4238
4251
|
default:
|
|
4239
4252
|
const parsedBody = parsedOutput.body;
|
|
4253
|
+
const $metadata = deserializeMetadata(output);
|
|
4254
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4240
4255
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4242
4257
|
$fault: "client",
|
|
4243
|
-
$metadata
|
|
4258
|
+
$metadata,
|
|
4244
4259
|
});
|
|
4245
4260
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4246
4261
|
}
|
|
@@ -4266,8 +4281,7 @@ const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, cont
|
|
|
4266
4281
|
body: await parseBody(output.body, context),
|
|
4267
4282
|
};
|
|
4268
4283
|
let response;
|
|
4269
|
-
|
|
4270
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4284
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4271
4285
|
switch (errorCode) {
|
|
4272
4286
|
case "AccessDeniedException":
|
|
4273
4287
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4283,10 +4297,12 @@ const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, cont
|
|
|
4283
4297
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4284
4298
|
default:
|
|
4285
4299
|
const parsedBody = parsedOutput.body;
|
|
4300
|
+
const $metadata = deserializeMetadata(output);
|
|
4301
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4286
4302
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4287
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4303
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4288
4304
|
$fault: "client",
|
|
4289
|
-
$metadata
|
|
4305
|
+
$metadata,
|
|
4290
4306
|
});
|
|
4291
4307
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4292
4308
|
}
|
|
@@ -4312,8 +4328,7 @@ const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (outpu
|
|
|
4312
4328
|
body: await parseBody(output.body, context),
|
|
4313
4329
|
};
|
|
4314
4330
|
let response;
|
|
4315
|
-
|
|
4316
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4317
4332
|
switch (errorCode) {
|
|
4318
4333
|
case "AccessDeniedException":
|
|
4319
4334
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4329,10 +4344,12 @@ const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (outpu
|
|
|
4329
4344
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4330
4345
|
default:
|
|
4331
4346
|
const parsedBody = parsedOutput.body;
|
|
4347
|
+
const $metadata = deserializeMetadata(output);
|
|
4348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4332
4349
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4333
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4334
4351
|
$fault: "client",
|
|
4335
|
-
$metadata
|
|
4352
|
+
$metadata,
|
|
4336
4353
|
});
|
|
4337
4354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4338
4355
|
}
|
|
@@ -4358,8 +4375,7 @@ const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = asy
|
|
|
4358
4375
|
body: await parseBody(output.body, context),
|
|
4359
4376
|
};
|
|
4360
4377
|
let response;
|
|
4361
|
-
|
|
4362
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4363
4379
|
switch (errorCode) {
|
|
4364
4380
|
case "AccessDeniedException":
|
|
4365
4381
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4375,10 +4391,12 @@ const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = asy
|
|
|
4375
4391
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4376
4392
|
default:
|
|
4377
4393
|
const parsedBody = parsedOutput.body;
|
|
4394
|
+
const $metadata = deserializeMetadata(output);
|
|
4395
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4378
4396
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4397
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4380
4398
|
$fault: "client",
|
|
4381
|
-
$metadata
|
|
4399
|
+
$metadata,
|
|
4382
4400
|
});
|
|
4383
4401
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4384
4402
|
}
|
|
@@ -4404,8 +4422,7 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (out
|
|
|
4404
4422
|
body: await parseBody(output.body, context),
|
|
4405
4423
|
};
|
|
4406
4424
|
let response;
|
|
4407
|
-
|
|
4408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4409
4426
|
switch (errorCode) {
|
|
4410
4427
|
case "AccessDeniedException":
|
|
4411
4428
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4421,10 +4438,12 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (out
|
|
|
4421
4438
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4422
4439
|
default:
|
|
4423
4440
|
const parsedBody = parsedOutput.body;
|
|
4441
|
+
const $metadata = deserializeMetadata(output);
|
|
4442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4424
4443
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4425
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4426
4445
|
$fault: "client",
|
|
4427
|
-
$metadata
|
|
4446
|
+
$metadata,
|
|
4428
4447
|
});
|
|
4429
4448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4430
4449
|
}
|
|
@@ -4450,8 +4469,7 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async
|
|
|
4450
4469
|
body: await parseBody(output.body, context),
|
|
4451
4470
|
};
|
|
4452
4471
|
let response;
|
|
4453
|
-
|
|
4454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4455
4473
|
switch (errorCode) {
|
|
4456
4474
|
case "AccessDeniedException":
|
|
4457
4475
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4467,10 +4485,12 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async
|
|
|
4467
4485
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4468
4486
|
default:
|
|
4469
4487
|
const parsedBody = parsedOutput.body;
|
|
4488
|
+
const $metadata = deserializeMetadata(output);
|
|
4489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4470
4490
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4472
4492
|
$fault: "client",
|
|
4473
|
-
$metadata
|
|
4493
|
+
$metadata,
|
|
4474
4494
|
});
|
|
4475
4495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4476
4496
|
}
|
|
@@ -4496,8 +4516,7 @@ const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output
|
|
|
4496
4516
|
body: await parseBody(output.body, context),
|
|
4497
4517
|
};
|
|
4498
4518
|
let response;
|
|
4499
|
-
|
|
4500
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
4520
|
switch (errorCode) {
|
|
4502
4521
|
case "AccessDeniedException":
|
|
4503
4522
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4513,10 +4532,12 @@ const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output
|
|
|
4513
4532
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4514
4533
|
default:
|
|
4515
4534
|
const parsedBody = parsedOutput.body;
|
|
4535
|
+
const $metadata = deserializeMetadata(output);
|
|
4536
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4516
4537
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4538
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4518
4539
|
$fault: "client",
|
|
4519
|
-
$metadata
|
|
4540
|
+
$metadata,
|
|
4520
4541
|
});
|
|
4521
4542
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4522
4543
|
}
|
|
@@ -4542,8 +4563,7 @@ const deserializeAws_restJson1UpdateControlCommandError = async (output, context
|
|
|
4542
4563
|
body: await parseBody(output.body, context),
|
|
4543
4564
|
};
|
|
4544
4565
|
let response;
|
|
4545
|
-
|
|
4546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4547
4567
|
switch (errorCode) {
|
|
4548
4568
|
case "AccessDeniedException":
|
|
4549
4569
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4559,10 +4579,12 @@ const deserializeAws_restJson1UpdateControlCommandError = async (output, context
|
|
|
4559
4579
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4560
4580
|
default:
|
|
4561
4581
|
const parsedBody = parsedOutput.body;
|
|
4582
|
+
const $metadata = deserializeMetadata(output);
|
|
4583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4562
4584
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4563
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4585
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4564
4586
|
$fault: "client",
|
|
4565
|
-
$metadata
|
|
4587
|
+
$metadata,
|
|
4566
4588
|
});
|
|
4567
4589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4568
4590
|
}
|
|
@@ -4588,8 +4610,7 @@ const deserializeAws_restJson1UpdateSettingsCommandError = async (output, contex
|
|
|
4588
4610
|
body: await parseBody(output.body, context),
|
|
4589
4611
|
};
|
|
4590
4612
|
let response;
|
|
4591
|
-
|
|
4592
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4613
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4593
4614
|
switch (errorCode) {
|
|
4594
4615
|
case "AccessDeniedException":
|
|
4595
4616
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4602,10 +4623,12 @@ const deserializeAws_restJson1UpdateSettingsCommandError = async (output, contex
|
|
|
4602
4623
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4603
4624
|
default:
|
|
4604
4625
|
const parsedBody = parsedOutput.body;
|
|
4626
|
+
const $metadata = deserializeMetadata(output);
|
|
4627
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4605
4628
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4606
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4629
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4607
4630
|
$fault: "client",
|
|
4608
|
-
$metadata
|
|
4631
|
+
$metadata,
|
|
4609
4632
|
});
|
|
4610
4633
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4611
4634
|
}
|
|
@@ -4647,8 +4670,7 @@ const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = as
|
|
|
4647
4670
|
body: await parseBody(output.body, context),
|
|
4648
4671
|
};
|
|
4649
4672
|
let response;
|
|
4650
|
-
|
|
4651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4652
4674
|
switch (errorCode) {
|
|
4653
4675
|
case "AccessDeniedException":
|
|
4654
4676
|
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
@@ -4664,10 +4686,12 @@ const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = as
|
|
|
4664
4686
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4665
4687
|
default:
|
|
4666
4688
|
const parsedBody = parsedOutput.body;
|
|
4689
|
+
const $metadata = deserializeMetadata(output);
|
|
4690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4667
4691
|
response = new AuditManagerServiceException_1.AuditManagerServiceException({
|
|
4668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4669
4693
|
$fault: "client",
|
|
4670
|
-
$metadata
|
|
4694
|
+
$metadata,
|
|
4671
4695
|
});
|
|
4672
4696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4673
4697
|
}
|
|
@@ -4746,16 +4770,15 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
4746
4770
|
};
|
|
4747
4771
|
const serializeAws_restJson1AssessmentReportsDestination = (input, context) => {
|
|
4748
4772
|
return {
|
|
4749
|
-
...(input.destination
|
|
4750
|
-
...(input.destinationType
|
|
4751
|
-
input.destinationType !== null && { destinationType: input.destinationType }),
|
|
4773
|
+
...(input.destination != null && { destination: input.destination }),
|
|
4774
|
+
...(input.destinationType != null && { destinationType: input.destinationType }),
|
|
4752
4775
|
};
|
|
4753
4776
|
};
|
|
4754
4777
|
const serializeAws_restJson1AWSAccount = (input, context) => {
|
|
4755
4778
|
return {
|
|
4756
|
-
...(input.emailAddress
|
|
4757
|
-
...(input.id
|
|
4758
|
-
...(input.name
|
|
4779
|
+
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
4780
|
+
...(input.id != null && { id: input.id }),
|
|
4781
|
+
...(input.name != null && { name: input.name }),
|
|
4759
4782
|
};
|
|
4760
4783
|
};
|
|
4761
4784
|
const serializeAws_restJson1AWSAccounts = (input, context) => {
|
|
@@ -4770,7 +4793,7 @@ const serializeAws_restJson1AWSAccounts = (input, context) => {
|
|
|
4770
4793
|
};
|
|
4771
4794
|
const serializeAws_restJson1AWSService = (input, context) => {
|
|
4772
4795
|
return {
|
|
4773
|
-
...(input.serviceName
|
|
4796
|
+
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
4774
4797
|
};
|
|
4775
4798
|
};
|
|
4776
4799
|
const serializeAws_restJson1AWSServices = (input, context) => {
|
|
@@ -4785,21 +4808,16 @@ const serializeAws_restJson1AWSServices = (input, context) => {
|
|
|
4785
4808
|
};
|
|
4786
4809
|
const serializeAws_restJson1ControlMappingSource = (input, context) => {
|
|
4787
4810
|
return {
|
|
4788
|
-
...(input.sourceDescription
|
|
4789
|
-
|
|
4790
|
-
...(input.
|
|
4791
|
-
|
|
4792
|
-
...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
|
|
4793
|
-
...(input.sourceKeyword !== undefined &&
|
|
4794
|
-
input.sourceKeyword !== null && {
|
|
4811
|
+
...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
|
|
4812
|
+
...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
|
|
4813
|
+
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
4814
|
+
...(input.sourceKeyword != null && {
|
|
4795
4815
|
sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
|
|
4796
4816
|
}),
|
|
4797
|
-
...(input.sourceName
|
|
4798
|
-
...(input.sourceSetUpOption
|
|
4799
|
-
|
|
4800
|
-
...(input.
|
|
4801
|
-
...(input.troubleshootingText !== undefined &&
|
|
4802
|
-
input.troubleshootingText !== null && { troubleshootingText: input.troubleshootingText }),
|
|
4817
|
+
...(input.sourceName != null && { sourceName: input.sourceName }),
|
|
4818
|
+
...(input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption }),
|
|
4819
|
+
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
4820
|
+
...(input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }),
|
|
4803
4821
|
};
|
|
4804
4822
|
};
|
|
4805
4823
|
const serializeAws_restJson1ControlMappingSources = (input, context) => {
|
|
@@ -4814,7 +4832,7 @@ const serializeAws_restJson1ControlMappingSources = (input, context) => {
|
|
|
4814
4832
|
};
|
|
4815
4833
|
const serializeAws_restJson1CreateAssessmentFrameworkControl = (input, context) => {
|
|
4816
4834
|
return {
|
|
4817
|
-
...(input.id
|
|
4835
|
+
...(input.id != null && { id: input.id }),
|
|
4818
4836
|
};
|
|
4819
4837
|
};
|
|
4820
4838
|
const serializeAws_restJson1CreateAssessmentFrameworkControls = (input, context) => {
|
|
@@ -4829,11 +4847,10 @@ const serializeAws_restJson1CreateAssessmentFrameworkControls = (input, context)
|
|
|
4829
4847
|
};
|
|
4830
4848
|
const serializeAws_restJson1CreateAssessmentFrameworkControlSet = (input, context) => {
|
|
4831
4849
|
return {
|
|
4832
|
-
...(input.controls
|
|
4833
|
-
input.controls !== null && {
|
|
4850
|
+
...(input.controls != null && {
|
|
4834
4851
|
controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
|
|
4835
4852
|
}),
|
|
4836
|
-
...(input.name
|
|
4853
|
+
...(input.name != null && { name: input.name }),
|
|
4837
4854
|
};
|
|
4838
4855
|
};
|
|
4839
4856
|
const serializeAws_restJson1CreateAssessmentFrameworkControlSets = (input, context) => {
|
|
@@ -4848,20 +4865,15 @@ const serializeAws_restJson1CreateAssessmentFrameworkControlSets = (input, conte
|
|
|
4848
4865
|
};
|
|
4849
4866
|
const serializeAws_restJson1CreateControlMappingSource = (input, context) => {
|
|
4850
4867
|
return {
|
|
4851
|
-
...(input.sourceDescription
|
|
4852
|
-
|
|
4853
|
-
...(input.
|
|
4854
|
-
input.sourceFrequency !== null && { sourceFrequency: input.sourceFrequency }),
|
|
4855
|
-
...(input.sourceKeyword !== undefined &&
|
|
4856
|
-
input.sourceKeyword !== null && {
|
|
4868
|
+
...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
|
|
4869
|
+
...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
|
|
4870
|
+
...(input.sourceKeyword != null && {
|
|
4857
4871
|
sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
|
|
4858
4872
|
}),
|
|
4859
|
-
...(input.sourceName
|
|
4860
|
-
...(input.sourceSetUpOption
|
|
4861
|
-
|
|
4862
|
-
...(input.
|
|
4863
|
-
...(input.troubleshootingText !== undefined &&
|
|
4864
|
-
input.troubleshootingText !== null && { troubleshootingText: input.troubleshootingText }),
|
|
4873
|
+
...(input.sourceName != null && { sourceName: input.sourceName }),
|
|
4874
|
+
...(input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption }),
|
|
4875
|
+
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
4876
|
+
...(input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }),
|
|
4865
4877
|
};
|
|
4866
4878
|
};
|
|
4867
4879
|
const serializeAws_restJson1CreateControlMappingSources = (input, context) => {
|
|
@@ -4876,10 +4888,10 @@ const serializeAws_restJson1CreateControlMappingSources = (input, context) => {
|
|
|
4876
4888
|
};
|
|
4877
4889
|
const serializeAws_restJson1CreateDelegationRequest = (input, context) => {
|
|
4878
4890
|
return {
|
|
4879
|
-
...(input.comment
|
|
4880
|
-
...(input.controlSetId
|
|
4881
|
-
...(input.roleArn
|
|
4882
|
-
...(input.roleType
|
|
4891
|
+
...(input.comment != null && { comment: input.comment }),
|
|
4892
|
+
...(input.controlSetId != null && { controlSetId: input.controlSetId }),
|
|
4893
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
4894
|
+
...(input.roleType != null && { roleType: input.roleType }),
|
|
4883
4895
|
};
|
|
4884
4896
|
};
|
|
4885
4897
|
const serializeAws_restJson1CreateDelegationRequests = (input, context) => {
|
|
@@ -4914,8 +4926,7 @@ const serializeAws_restJson1EvidenceIds = (input, context) => {
|
|
|
4914
4926
|
};
|
|
4915
4927
|
const serializeAws_restJson1ManualEvidence = (input, context) => {
|
|
4916
4928
|
return {
|
|
4917
|
-
...(input.s3ResourcePath
|
|
4918
|
-
input.s3ResourcePath !== null && { s3ResourcePath: input.s3ResourcePath }),
|
|
4929
|
+
...(input.s3ResourcePath != null && { s3ResourcePath: input.s3ResourcePath }),
|
|
4919
4930
|
};
|
|
4920
4931
|
};
|
|
4921
4932
|
const serializeAws_restJson1ManualEvidenceList = (input, context) => {
|
|
@@ -4930,8 +4941,8 @@ const serializeAws_restJson1ManualEvidenceList = (input, context) => {
|
|
|
4930
4941
|
};
|
|
4931
4942
|
const serializeAws_restJson1Role = (input, context) => {
|
|
4932
4943
|
return {
|
|
4933
|
-
...(input.roleArn
|
|
4934
|
-
...(input.roleType
|
|
4944
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
4945
|
+
...(input.roleType != null && { roleType: input.roleType }),
|
|
4935
4946
|
};
|
|
4936
4947
|
};
|
|
4937
4948
|
const serializeAws_restJson1Roles = (input, context) => {
|
|
@@ -4946,17 +4957,14 @@ const serializeAws_restJson1Roles = (input, context) => {
|
|
|
4946
4957
|
};
|
|
4947
4958
|
const serializeAws_restJson1Scope = (input, context) => {
|
|
4948
4959
|
return {
|
|
4949
|
-
...(input.awsAccounts
|
|
4950
|
-
|
|
4951
|
-
...(input.awsServices !== undefined &&
|
|
4952
|
-
input.awsServices !== null && { awsServices: serializeAws_restJson1AWSServices(input.awsServices, context) }),
|
|
4960
|
+
...(input.awsAccounts != null && { awsAccounts: serializeAws_restJson1AWSAccounts(input.awsAccounts, context) }),
|
|
4961
|
+
...(input.awsServices != null && { awsServices: serializeAws_restJson1AWSServices(input.awsServices, context) }),
|
|
4953
4962
|
};
|
|
4954
4963
|
};
|
|
4955
4964
|
const serializeAws_restJson1SourceKeyword = (input, context) => {
|
|
4956
4965
|
return {
|
|
4957
|
-
...(input.keywordInputType
|
|
4958
|
-
|
|
4959
|
-
...(input.keywordValue !== undefined && input.keywordValue !== null && { keywordValue: input.keywordValue }),
|
|
4966
|
+
...(input.keywordInputType != null && { keywordInputType: input.keywordInputType }),
|
|
4967
|
+
...(input.keywordValue != null && { keywordValue: input.keywordValue }),
|
|
4960
4968
|
};
|
|
4961
4969
|
};
|
|
4962
4970
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -4972,12 +4980,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
4972
4980
|
};
|
|
4973
4981
|
const serializeAws_restJson1UpdateAssessmentFrameworkControlSet = (input, context) => {
|
|
4974
4982
|
return {
|
|
4975
|
-
...(input.controls
|
|
4976
|
-
input.controls !== null && {
|
|
4983
|
+
...(input.controls != null && {
|
|
4977
4984
|
controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
|
|
4978
4985
|
}),
|
|
4979
|
-
...(input.id
|
|
4980
|
-
...(input.name
|
|
4986
|
+
...(input.id != null && { id: input.id }),
|
|
4987
|
+
...(input.name != null && { name: input.name }),
|
|
4981
4988
|
};
|
|
4982
4989
|
};
|
|
4983
4990
|
const serializeAws_restJson1UpdateAssessmentFrameworkControlSets = (input, context) => {
|
|
@@ -4993,29 +5000,19 @@ const serializeAws_restJson1UpdateAssessmentFrameworkControlSets = (input, conte
|
|
|
4993
5000
|
const deserializeAws_restJson1Assessment = (output, context) => {
|
|
4994
5001
|
return {
|
|
4995
5002
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4996
|
-
awsAccount: output.awsAccount
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
? deserializeAws_restJson1AssessmentFramework(output.framework, context)
|
|
5001
|
-
: undefined,
|
|
5002
|
-
metadata: output.metadata !== undefined && output.metadata !== null
|
|
5003
|
-
? deserializeAws_restJson1AssessmentMetadata(output.metadata, context)
|
|
5004
|
-
: undefined,
|
|
5005
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
5006
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5007
|
-
: undefined,
|
|
5003
|
+
awsAccount: output.awsAccount != null ? deserializeAws_restJson1AWSAccount(output.awsAccount, context) : undefined,
|
|
5004
|
+
framework: output.framework != null ? deserializeAws_restJson1AssessmentFramework(output.framework, context) : undefined,
|
|
5005
|
+
metadata: output.metadata != null ? deserializeAws_restJson1AssessmentMetadata(output.metadata, context) : undefined,
|
|
5006
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5008
5007
|
};
|
|
5009
5008
|
};
|
|
5010
5009
|
const deserializeAws_restJson1AssessmentControl = (output, context) => {
|
|
5011
5010
|
return {
|
|
5012
5011
|
assessmentReportEvidenceCount: (0, smithy_client_1.expectInt32)(output.assessmentReportEvidenceCount),
|
|
5013
|
-
comments: output.comments
|
|
5014
|
-
? deserializeAws_restJson1ControlComments(output.comments, context)
|
|
5015
|
-
: undefined,
|
|
5012
|
+
comments: output.comments != null ? deserializeAws_restJson1ControlComments(output.comments, context) : undefined,
|
|
5016
5013
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5017
5014
|
evidenceCount: (0, smithy_client_1.expectInt32)(output.evidenceCount),
|
|
5018
|
-
evidenceSources: output.evidenceSources
|
|
5015
|
+
evidenceSources: output.evidenceSources != null
|
|
5019
5016
|
? deserializeAws_restJson1EvidenceSources(output.evidenceSources, context)
|
|
5020
5017
|
: undefined,
|
|
5021
5018
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -5037,18 +5034,12 @@ const deserializeAws_restJson1AssessmentControls = (output, context) => {
|
|
|
5037
5034
|
};
|
|
5038
5035
|
const deserializeAws_restJson1AssessmentControlSet = (output, context) => {
|
|
5039
5036
|
return {
|
|
5040
|
-
controls: output.controls
|
|
5041
|
-
|
|
5042
|
-
: undefined,
|
|
5043
|
-
delegations: output.delegations !== undefined && output.delegations !== null
|
|
5044
|
-
? deserializeAws_restJson1Delegations(output.delegations, context)
|
|
5045
|
-
: undefined,
|
|
5037
|
+
controls: output.controls != null ? deserializeAws_restJson1AssessmentControls(output.controls, context) : undefined,
|
|
5038
|
+
delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
|
|
5046
5039
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5047
5040
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5048
5041
|
manualEvidenceCount: (0, smithy_client_1.expectInt32)(output.manualEvidenceCount),
|
|
5049
|
-
roles: output.roles
|
|
5050
|
-
? deserializeAws_restJson1Roles(output.roles, context)
|
|
5051
|
-
: undefined,
|
|
5042
|
+
roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
|
|
5052
5043
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5053
5044
|
systemEvidenceCount: (0, smithy_client_1.expectInt32)(output.systemEvidenceCount),
|
|
5054
5045
|
};
|
|
@@ -5073,9 +5064,7 @@ const deserializeAws_restJson1AssessmentEvidenceFolder = (output, context) => {
|
|
|
5073
5064
|
controlName: (0, smithy_client_1.expectString)(output.controlName),
|
|
5074
5065
|
controlSetId: (0, smithy_client_1.expectString)(output.controlSetId),
|
|
5075
5066
|
dataSource: (0, smithy_client_1.expectString)(output.dataSource),
|
|
5076
|
-
date: output.date
|
|
5077
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date)))
|
|
5078
|
-
: undefined,
|
|
5067
|
+
date: output.date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date))) : undefined,
|
|
5079
5068
|
evidenceAwsServiceSourceCount: (0, smithy_client_1.expectInt32)(output.evidenceAwsServiceSourceCount),
|
|
5080
5069
|
evidenceByTypeComplianceCheckCount: (0, smithy_client_1.expectInt32)(output.evidenceByTypeComplianceCheckCount),
|
|
5081
5070
|
evidenceByTypeComplianceCheckIssuesCount: (0, smithy_client_1.expectInt32)(output.evidenceByTypeComplianceCheckIssuesCount),
|
|
@@ -5102,13 +5091,11 @@ const deserializeAws_restJson1AssessmentEvidenceFolders = (output, context) => {
|
|
|
5102
5091
|
const deserializeAws_restJson1AssessmentFramework = (output, context) => {
|
|
5103
5092
|
return {
|
|
5104
5093
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5105
|
-
controlSets: output.controlSets
|
|
5094
|
+
controlSets: output.controlSets != null
|
|
5106
5095
|
? deserializeAws_restJson1AssessmentControlSets(output.controlSets, context)
|
|
5107
5096
|
: undefined,
|
|
5108
5097
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5109
|
-
metadata: output.metadata
|
|
5110
|
-
? deserializeAws_restJson1FrameworkMetadata(output.metadata, context)
|
|
5111
|
-
: undefined,
|
|
5098
|
+
metadata: output.metadata != null ? deserializeAws_restJson1FrameworkMetadata(output.metadata, context) : undefined,
|
|
5112
5099
|
};
|
|
5113
5100
|
};
|
|
5114
5101
|
const deserializeAws_restJson1AssessmentFrameworkMetadata = (output, context) => {
|
|
@@ -5117,12 +5104,10 @@ const deserializeAws_restJson1AssessmentFrameworkMetadata = (output, context) =>
|
|
|
5117
5104
|
complianceType: (0, smithy_client_1.expectString)(output.complianceType),
|
|
5118
5105
|
controlSetsCount: (0, smithy_client_1.expectInt32)(output.controlSetsCount),
|
|
5119
5106
|
controlsCount: (0, smithy_client_1.expectInt32)(output.controlsCount),
|
|
5120
|
-
createdAt: output.createdAt
|
|
5121
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5122
|
-
: undefined,
|
|
5107
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5123
5108
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5124
5109
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5125
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
5110
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5126
5111
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5127
5112
|
: undefined,
|
|
5128
5113
|
logo: (0, smithy_client_1.expectString)(output.logo),
|
|
@@ -5134,20 +5119,20 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequest = (output, context
|
|
|
5134
5119
|
return {
|
|
5135
5120
|
comment: (0, smithy_client_1.expectString)(output.comment),
|
|
5136
5121
|
complianceType: (0, smithy_client_1.expectString)(output.complianceType),
|
|
5137
|
-
creationTime: output.creationTime
|
|
5122
|
+
creationTime: output.creationTime != null
|
|
5138
5123
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5139
5124
|
: undefined,
|
|
5140
5125
|
customControlsCount: (0, smithy_client_1.expectInt32)(output.customControlsCount),
|
|
5141
5126
|
destinationAccount: (0, smithy_client_1.expectString)(output.destinationAccount),
|
|
5142
5127
|
destinationRegion: (0, smithy_client_1.expectString)(output.destinationRegion),
|
|
5143
|
-
expirationTime: output.expirationTime
|
|
5128
|
+
expirationTime: output.expirationTime != null
|
|
5144
5129
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationTime)))
|
|
5145
5130
|
: undefined,
|
|
5146
5131
|
frameworkDescription: (0, smithy_client_1.expectString)(output.frameworkDescription),
|
|
5147
5132
|
frameworkId: (0, smithy_client_1.expectString)(output.frameworkId),
|
|
5148
5133
|
frameworkName: (0, smithy_client_1.expectString)(output.frameworkName),
|
|
5149
5134
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5150
|
-
lastUpdated: output.lastUpdated
|
|
5135
|
+
lastUpdated: output.lastUpdated != null
|
|
5151
5136
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5152
5137
|
: undefined,
|
|
5153
5138
|
sourceAccount: (0, smithy_client_1.expectString)(output.sourceAccount),
|
|
@@ -5168,48 +5153,38 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequestList = (output, con
|
|
|
5168
5153
|
};
|
|
5169
5154
|
const deserializeAws_restJson1AssessmentMetadata = (output, context) => {
|
|
5170
5155
|
return {
|
|
5171
|
-
assessmentReportsDestination: output.assessmentReportsDestination
|
|
5156
|
+
assessmentReportsDestination: output.assessmentReportsDestination != null
|
|
5172
5157
|
? deserializeAws_restJson1AssessmentReportsDestination(output.assessmentReportsDestination, context)
|
|
5173
5158
|
: undefined,
|
|
5174
5159
|
complianceType: (0, smithy_client_1.expectString)(output.complianceType),
|
|
5175
|
-
creationTime: output.creationTime
|
|
5160
|
+
creationTime: output.creationTime != null
|
|
5176
5161
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5177
5162
|
: undefined,
|
|
5178
|
-
delegations: output.delegations
|
|
5179
|
-
? deserializeAws_restJson1Delegations(output.delegations, context)
|
|
5180
|
-
: undefined,
|
|
5163
|
+
delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
|
|
5181
5164
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5182
5165
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5183
|
-
lastUpdated: output.lastUpdated
|
|
5166
|
+
lastUpdated: output.lastUpdated != null
|
|
5184
5167
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5185
5168
|
: undefined,
|
|
5186
5169
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5187
|
-
roles: output.roles
|
|
5188
|
-
|
|
5189
|
-
: undefined,
|
|
5190
|
-
scope: output.scope !== undefined && output.scope !== null
|
|
5191
|
-
? deserializeAws_restJson1Scope(output.scope, context)
|
|
5192
|
-
: undefined,
|
|
5170
|
+
roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
|
|
5171
|
+
scope: output.scope != null ? deserializeAws_restJson1Scope(output.scope, context) : undefined,
|
|
5193
5172
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5194
5173
|
};
|
|
5195
5174
|
};
|
|
5196
5175
|
const deserializeAws_restJson1AssessmentMetadataItem = (output, context) => {
|
|
5197
5176
|
return {
|
|
5198
5177
|
complianceType: (0, smithy_client_1.expectString)(output.complianceType),
|
|
5199
|
-
creationTime: output.creationTime
|
|
5178
|
+
creationTime: output.creationTime != null
|
|
5200
5179
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5201
5180
|
: undefined,
|
|
5202
|
-
delegations: output.delegations
|
|
5203
|
-
? deserializeAws_restJson1Delegations(output.delegations, context)
|
|
5204
|
-
: undefined,
|
|
5181
|
+
delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
|
|
5205
5182
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5206
|
-
lastUpdated: output.lastUpdated
|
|
5183
|
+
lastUpdated: output.lastUpdated != null
|
|
5207
5184
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5208
5185
|
: undefined,
|
|
5209
5186
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5210
|
-
roles: output.roles
|
|
5211
|
-
? deserializeAws_restJson1Roles(output.roles, context)
|
|
5212
|
-
: undefined,
|
|
5187
|
+
roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
|
|
5213
5188
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5214
5189
|
};
|
|
5215
5190
|
};
|
|
@@ -5219,7 +5194,7 @@ const deserializeAws_restJson1AssessmentReport = (output, context) => {
|
|
|
5219
5194
|
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
5220
5195
|
author: (0, smithy_client_1.expectString)(output.author),
|
|
5221
5196
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
5222
|
-
creationTime: output.creationTime
|
|
5197
|
+
creationTime: output.creationTime != null
|
|
5223
5198
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5224
5199
|
: undefined,
|
|
5225
5200
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -5251,7 +5226,7 @@ const deserializeAws_restJson1AssessmentReportMetadata = (output, context) => {
|
|
|
5251
5226
|
assessmentId: (0, smithy_client_1.expectString)(output.assessmentId),
|
|
5252
5227
|
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
5253
5228
|
author: (0, smithy_client_1.expectString)(output.author),
|
|
5254
|
-
creationTime: output.creationTime
|
|
5229
|
+
creationTime: output.creationTime != null
|
|
5255
5230
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5256
5231
|
: undefined,
|
|
5257
5232
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -5313,7 +5288,7 @@ const deserializeAws_restJson1AWSServices = (output, context) => {
|
|
|
5313
5288
|
};
|
|
5314
5289
|
const deserializeAws_restJson1BatchCreateDelegationByAssessmentError = (output, context) => {
|
|
5315
5290
|
return {
|
|
5316
|
-
createDelegationRequest: output.createDelegationRequest
|
|
5291
|
+
createDelegationRequest: output.createDelegationRequest != null
|
|
5317
5292
|
? deserializeAws_restJson1CreateDelegationRequest(output.createDelegationRequest, context)
|
|
5318
5293
|
: undefined,
|
|
5319
5294
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
@@ -5353,7 +5328,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError = (out
|
|
|
5353
5328
|
return {
|
|
5354
5329
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
5355
5330
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
5356
|
-
manualEvidence: output.manualEvidence
|
|
5331
|
+
manualEvidence: output.manualEvidence != null
|
|
5357
5332
|
? deserializeAws_restJson1ManualEvidence(output.manualEvidence, context)
|
|
5358
5333
|
: undefined,
|
|
5359
5334
|
};
|
|
@@ -5372,9 +5347,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors = (ou
|
|
|
5372
5347
|
const deserializeAws_restJson1ChangeLog = (output, context) => {
|
|
5373
5348
|
return {
|
|
5374
5349
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
5375
|
-
createdAt: output.createdAt
|
|
5376
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5377
|
-
: undefined,
|
|
5350
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5378
5351
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
5379
5352
|
objectName: (0, smithy_client_1.expectString)(output.objectName),
|
|
5380
5353
|
objectType: (0, smithy_client_1.expectString)(output.objectType),
|
|
@@ -5396,24 +5369,20 @@ const deserializeAws_restJson1Control = (output, context) => {
|
|
|
5396
5369
|
actionPlanInstructions: (0, smithy_client_1.expectString)(output.actionPlanInstructions),
|
|
5397
5370
|
actionPlanTitle: (0, smithy_client_1.expectString)(output.actionPlanTitle),
|
|
5398
5371
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5399
|
-
controlMappingSources: output.controlMappingSources
|
|
5372
|
+
controlMappingSources: output.controlMappingSources != null
|
|
5400
5373
|
? deserializeAws_restJson1ControlMappingSources(output.controlMappingSources, context)
|
|
5401
5374
|
: undefined,
|
|
5402
5375
|
controlSources: (0, smithy_client_1.expectString)(output.controlSources),
|
|
5403
|
-
createdAt: output.createdAt
|
|
5404
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5405
|
-
: undefined,
|
|
5376
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5406
5377
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
5407
5378
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5408
5379
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5409
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
5380
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5410
5381
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5411
5382
|
: undefined,
|
|
5412
5383
|
lastUpdatedBy: (0, smithy_client_1.expectString)(output.lastUpdatedBy),
|
|
5413
5384
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5414
|
-
tags: output.tags
|
|
5415
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5416
|
-
: undefined,
|
|
5385
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5417
5386
|
testingInformation: (0, smithy_client_1.expectString)(output.testingInformation),
|
|
5418
5387
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5419
5388
|
};
|
|
@@ -5422,9 +5391,7 @@ const deserializeAws_restJson1ControlComment = (output, context) => {
|
|
|
5422
5391
|
return {
|
|
5423
5392
|
authorName: (0, smithy_client_1.expectString)(output.authorName),
|
|
5424
5393
|
commentBody: (0, smithy_client_1.expectString)(output.commentBody),
|
|
5425
|
-
postedDate: output.postedDate
|
|
5426
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.postedDate)))
|
|
5427
|
-
: undefined,
|
|
5394
|
+
postedDate: output.postedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.postedDate))) : undefined,
|
|
5428
5395
|
};
|
|
5429
5396
|
};
|
|
5430
5397
|
const deserializeAws_restJson1ControlComments = (output, context) => {
|
|
@@ -5441,11 +5408,11 @@ const deserializeAws_restJson1ControlComments = (output, context) => {
|
|
|
5441
5408
|
const deserializeAws_restJson1ControlDomainInsights = (output, context) => {
|
|
5442
5409
|
return {
|
|
5443
5410
|
controlsCountByNoncompliantEvidence: (0, smithy_client_1.expectInt32)(output.controlsCountByNoncompliantEvidence),
|
|
5444
|
-
evidenceInsights: output.evidenceInsights
|
|
5411
|
+
evidenceInsights: output.evidenceInsights != null
|
|
5445
5412
|
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
5446
5413
|
: undefined,
|
|
5447
5414
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5448
|
-
lastUpdated: output.lastUpdated
|
|
5415
|
+
lastUpdated: output.lastUpdated != null
|
|
5449
5416
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5450
5417
|
: undefined,
|
|
5451
5418
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5488,11 +5455,11 @@ const deserializeAws_restJson1ControlInsightsMetadataByAssessment = (output, con
|
|
|
5488
5455
|
const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output, context) => {
|
|
5489
5456
|
return {
|
|
5490
5457
|
controlSetName: (0, smithy_client_1.expectString)(output.controlSetName),
|
|
5491
|
-
evidenceInsights: output.evidenceInsights
|
|
5458
|
+
evidenceInsights: output.evidenceInsights != null
|
|
5492
5459
|
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
5493
5460
|
: undefined,
|
|
5494
5461
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5495
|
-
lastUpdated: output.lastUpdated
|
|
5462
|
+
lastUpdated: output.lastUpdated != null
|
|
5496
5463
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5497
5464
|
: undefined,
|
|
5498
5465
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5500,11 +5467,11 @@ const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output,
|
|
|
5500
5467
|
};
|
|
5501
5468
|
const deserializeAws_restJson1ControlInsightsMetadataItem = (output, context) => {
|
|
5502
5469
|
return {
|
|
5503
|
-
evidenceInsights: output.evidenceInsights
|
|
5470
|
+
evidenceInsights: output.evidenceInsights != null
|
|
5504
5471
|
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
5505
5472
|
: undefined,
|
|
5506
5473
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5507
|
-
lastUpdated: output.lastUpdated
|
|
5474
|
+
lastUpdated: output.lastUpdated != null
|
|
5508
5475
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5509
5476
|
: undefined,
|
|
5510
5477
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5515,9 +5482,7 @@ const deserializeAws_restJson1ControlMappingSource = (output, context) => {
|
|
|
5515
5482
|
sourceDescription: (0, smithy_client_1.expectString)(output.sourceDescription),
|
|
5516
5483
|
sourceFrequency: (0, smithy_client_1.expectString)(output.sourceFrequency),
|
|
5517
5484
|
sourceId: (0, smithy_client_1.expectString)(output.sourceId),
|
|
5518
|
-
sourceKeyword: output.sourceKeyword
|
|
5519
|
-
? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context)
|
|
5520
|
-
: undefined,
|
|
5485
|
+
sourceKeyword: output.sourceKeyword != null ? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context) : undefined,
|
|
5521
5486
|
sourceName: (0, smithy_client_1.expectString)(output.sourceName),
|
|
5522
5487
|
sourceSetUpOption: (0, smithy_client_1.expectString)(output.sourceSetUpOption),
|
|
5523
5488
|
sourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
@@ -5539,11 +5504,9 @@ const deserializeAws_restJson1ControlMetadata = (output, context) => {
|
|
|
5539
5504
|
return {
|
|
5540
5505
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5541
5506
|
controlSources: (0, smithy_client_1.expectString)(output.controlSources),
|
|
5542
|
-
createdAt: output.createdAt
|
|
5543
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5544
|
-
: undefined,
|
|
5507
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5545
5508
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5546
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
5509
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5547
5510
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5548
5511
|
: undefined,
|
|
5549
5512
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5573,9 +5536,7 @@ const deserializeAws_restJson1Controls = (output, context) => {
|
|
|
5573
5536
|
};
|
|
5574
5537
|
const deserializeAws_restJson1ControlSet = (output, context) => {
|
|
5575
5538
|
return {
|
|
5576
|
-
controls: output.controls
|
|
5577
|
-
? deserializeAws_restJson1Controls(output.controls, context)
|
|
5578
|
-
: undefined,
|
|
5539
|
+
controls: output.controls != null ? deserializeAws_restJson1Controls(output.controls, context) : undefined,
|
|
5579
5540
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5580
5541
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5581
5542
|
};
|
|
@@ -5606,11 +5567,11 @@ const deserializeAws_restJson1Delegation = (output, context) => {
|
|
|
5606
5567
|
comment: (0, smithy_client_1.expectString)(output.comment),
|
|
5607
5568
|
controlSetId: (0, smithy_client_1.expectString)(output.controlSetId),
|
|
5608
5569
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
5609
|
-
creationTime: output.creationTime
|
|
5570
|
+
creationTime: output.creationTime != null
|
|
5610
5571
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5611
5572
|
: undefined,
|
|
5612
5573
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5613
|
-
lastUpdated: output.lastUpdated
|
|
5574
|
+
lastUpdated: output.lastUpdated != null
|
|
5614
5575
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5615
5576
|
: undefined,
|
|
5616
5577
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
@@ -5623,7 +5584,7 @@ const deserializeAws_restJson1DelegationMetadata = (output, context) => {
|
|
|
5623
5584
|
assessmentId: (0, smithy_client_1.expectString)(output.assessmentId),
|
|
5624
5585
|
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
5625
5586
|
controlSetName: (0, smithy_client_1.expectString)(output.controlSetName),
|
|
5626
|
-
creationTime: output.creationTime
|
|
5587
|
+
creationTime: output.creationTime != null
|
|
5627
5588
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
5628
5589
|
: undefined,
|
|
5629
5590
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -5656,9 +5617,7 @@ const deserializeAws_restJson1Delegations = (output, context) => {
|
|
|
5656
5617
|
const deserializeAws_restJson1Evidence = (output, context) => {
|
|
5657
5618
|
return {
|
|
5658
5619
|
assessmentReportSelection: (0, smithy_client_1.expectString)(output.assessmentReportSelection),
|
|
5659
|
-
attributes: output.attributes
|
|
5660
|
-
? deserializeAws_restJson1EvidenceAttributes(output.attributes, context)
|
|
5661
|
-
: undefined,
|
|
5620
|
+
attributes: output.attributes != null ? deserializeAws_restJson1EvidenceAttributes(output.attributes, context) : undefined,
|
|
5662
5621
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
5663
5622
|
awsOrganization: (0, smithy_client_1.expectString)(output.awsOrganization),
|
|
5664
5623
|
complianceCheck: (0, smithy_client_1.expectString)(output.complianceCheck),
|
|
@@ -5670,12 +5629,10 @@ const deserializeAws_restJson1Evidence = (output, context) => {
|
|
|
5670
5629
|
evidenceFolderId: (0, smithy_client_1.expectString)(output.evidenceFolderId),
|
|
5671
5630
|
iamId: (0, smithy_client_1.expectString)(output.iamId),
|
|
5672
5631
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5673
|
-
resourcesIncluded: output.resourcesIncluded
|
|
5632
|
+
resourcesIncluded: output.resourcesIncluded != null
|
|
5674
5633
|
? deserializeAws_restJson1Resources(output.resourcesIncluded, context)
|
|
5675
5634
|
: undefined,
|
|
5676
|
-
time: output.time
|
|
5677
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time)))
|
|
5678
|
-
: undefined,
|
|
5635
|
+
time: output.time != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time))) : undefined,
|
|
5679
5636
|
};
|
|
5680
5637
|
};
|
|
5681
5638
|
const deserializeAws_restJson1EvidenceAttributes = (output, context) => {
|
|
@@ -5733,25 +5690,19 @@ const deserializeAws_restJson1Framework = (output, context) => {
|
|
|
5733
5690
|
return {
|
|
5734
5691
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5735
5692
|
complianceType: (0, smithy_client_1.expectString)(output.complianceType),
|
|
5736
|
-
controlSets: output.controlSets
|
|
5737
|
-
? deserializeAws_restJson1ControlSets(output.controlSets, context)
|
|
5738
|
-
: undefined,
|
|
5693
|
+
controlSets: output.controlSets != null ? deserializeAws_restJson1ControlSets(output.controlSets, context) : undefined,
|
|
5739
5694
|
controlSources: (0, smithy_client_1.expectString)(output.controlSources),
|
|
5740
|
-
createdAt: output.createdAt
|
|
5741
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5742
|
-
: undefined,
|
|
5695
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5743
5696
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
5744
5697
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5745
5698
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5746
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
5699
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5747
5700
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5748
5701
|
: undefined,
|
|
5749
5702
|
lastUpdatedBy: (0, smithy_client_1.expectString)(output.lastUpdatedBy),
|
|
5750
5703
|
logo: (0, smithy_client_1.expectString)(output.logo),
|
|
5751
5704
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5752
|
-
tags: output.tags
|
|
5753
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5754
|
-
: undefined,
|
|
5705
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5755
5706
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5756
5707
|
};
|
|
5757
5708
|
};
|
|
@@ -5780,7 +5731,7 @@ const deserializeAws_restJson1Insights = (output, context) => {
|
|
|
5780
5731
|
assessmentControlsCountByNoncompliantEvidence: (0, smithy_client_1.expectInt32)(output.assessmentControlsCountByNoncompliantEvidence),
|
|
5781
5732
|
compliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.compliantEvidenceCount),
|
|
5782
5733
|
inconclusiveEvidenceCount: (0, smithy_client_1.expectInt32)(output.inconclusiveEvidenceCount),
|
|
5783
|
-
lastUpdated: output.lastUpdated
|
|
5734
|
+
lastUpdated: output.lastUpdated != null
|
|
5784
5735
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5785
5736
|
: undefined,
|
|
5786
5737
|
noncompliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.noncompliantEvidenceCount),
|
|
@@ -5792,7 +5743,7 @@ const deserializeAws_restJson1InsightsByAssessment = (output, context) => {
|
|
|
5792
5743
|
assessmentControlsCountByNoncompliantEvidence: (0, smithy_client_1.expectInt32)(output.assessmentControlsCountByNoncompliantEvidence),
|
|
5793
5744
|
compliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.compliantEvidenceCount),
|
|
5794
5745
|
inconclusiveEvidenceCount: (0, smithy_client_1.expectInt32)(output.inconclusiveEvidenceCount),
|
|
5795
|
-
lastUpdated: output.lastUpdated
|
|
5746
|
+
lastUpdated: output.lastUpdated != null
|
|
5796
5747
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
|
|
5797
5748
|
: undefined,
|
|
5798
5749
|
noncompliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.noncompliantEvidenceCount),
|
|
@@ -5833,9 +5784,7 @@ const deserializeAws_restJson1Notification = (output, context) => {
|
|
|
5833
5784
|
controlSetId: (0, smithy_client_1.expectString)(output.controlSetId),
|
|
5834
5785
|
controlSetName: (0, smithy_client_1.expectString)(output.controlSetName),
|
|
5835
5786
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5836
|
-
eventTime: output.eventTime
|
|
5837
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
|
|
5838
|
-
: undefined,
|
|
5787
|
+
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
|
|
5839
5788
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5840
5789
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
5841
5790
|
};
|
|
@@ -5887,12 +5836,8 @@ const deserializeAws_restJson1Roles = (output, context) => {
|
|
|
5887
5836
|
};
|
|
5888
5837
|
const deserializeAws_restJson1Scope = (output, context) => {
|
|
5889
5838
|
return {
|
|
5890
|
-
awsAccounts: output.awsAccounts
|
|
5891
|
-
|
|
5892
|
-
: undefined,
|
|
5893
|
-
awsServices: output.awsServices !== undefined && output.awsServices !== null
|
|
5894
|
-
? deserializeAws_restJson1AWSServices(output.awsServices, context)
|
|
5895
|
-
: undefined,
|
|
5839
|
+
awsAccounts: output.awsAccounts != null ? deserializeAws_restJson1AWSAccounts(output.awsAccounts, context) : undefined,
|
|
5840
|
+
awsServices: output.awsServices != null ? deserializeAws_restJson1AWSServices(output.awsServices, context) : undefined,
|
|
5896
5841
|
};
|
|
5897
5842
|
};
|
|
5898
5843
|
const deserializeAws_restJson1ServiceMetadata = (output, context) => {
|
|
@@ -5916,10 +5861,10 @@ const deserializeAws_restJson1ServiceMetadataList = (output, context) => {
|
|
|
5916
5861
|
};
|
|
5917
5862
|
const deserializeAws_restJson1Settings = (output, context) => {
|
|
5918
5863
|
return {
|
|
5919
|
-
defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination
|
|
5864
|
+
defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination != null
|
|
5920
5865
|
? deserializeAws_restJson1AssessmentReportsDestination(output.defaultAssessmentReportsDestination, context)
|
|
5921
5866
|
: undefined,
|
|
5922
|
-
defaultProcessOwners: output.defaultProcessOwners
|
|
5867
|
+
defaultProcessOwners: output.defaultProcessOwners != null
|
|
5923
5868
|
? deserializeAws_restJson1Roles(output.defaultProcessOwners, context)
|
|
5924
5869
|
: undefined,
|
|
5925
5870
|
isAwsOrgEnabled: (0, smithy_client_1.expectBoolean)(output.isAwsOrgEnabled),
|
|
@@ -6027,5 +5972,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6027
5972
|
if (data["__type"] !== undefined) {
|
|
6028
5973
|
return sanitizeErrorCode(data["__type"]);
|
|
6029
5974
|
}
|
|
6030
|
-
return "";
|
|
6031
5975
|
};
|