@aws-sdk/client-auditmanager 3.121.0 → 3.130.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.
@@ -26,8 +26,7 @@ const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = asy
26
26
  }
27
27
  let body;
28
28
  body = JSON.stringify({
29
- ...(input.evidenceFolderId !== undefined &&
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 !== undefined &&
63
- input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId }),
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
166
- input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId }),
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 !== undefined &&
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 !== undefined &&
245
- input.assessmentReportsDestination !== null && {
236
+ ...(input.assessmentReportsDestination != null && {
246
237
  assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
247
238
  }),
248
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
249
- ...(input.frameworkId !== undefined && input.frameworkId !== null && { frameworkId: input.frameworkId }),
250
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
251
- ...(input.roles !== undefined &&
252
- input.roles !== null && { roles: serializeAws_restJson1Roles(input.roles, context) }),
253
- ...(input.scope !== undefined &&
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 !== undefined &&
277
- input.complianceType !== null && { complianceType: input.complianceType }),
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 !== undefined && input.description !== null && { description: input.description }),
283
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
284
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined && input.description !== null && { description: input.description }),
316
- ...(input.name !== undefined && input.name !== null && { name: 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 !== undefined &&
338
- input.actionPlanInstructions !== null && { actionPlanInstructions: input.actionPlanInstructions }),
339
- ...(input.actionPlanTitle !== undefined &&
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 !== undefined && input.description !== null && { description: input.description }),
346
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
347
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
348
- ...(input.testingInformation !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
1395
- input.delegatedAdminAccount !== null && { delegatedAdminAccount: input.delegatedAdminAccount }),
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 !== undefined &&
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 !== undefined && input.comment !== null && { comment: input.comment }),
1451
- ...(input.destinationAccount !== undefined &&
1452
- input.destinationAccount !== null && { destinationAccount: input.destinationAccount }),
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 !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined &&
1547
- input.assessmentDescription !== null && { assessmentDescription: input.assessmentDescription }),
1548
- ...(input.assessmentName !== undefined &&
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 !== undefined &&
1555
- input.roles !== null && { roles: serializeAws_restJson1Roles(input.roles, context) }),
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 !== undefined && input.commentBody !== null && { commentBody: input.commentBody }),
1610
- ...(input.controlStatus !== undefined && input.controlStatus !== null && { controlStatus: 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 !== undefined && input.comment !== null && { comment: input.comment }),
1653
- ...(input.status !== undefined && input.status !== null && { status: 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 !== undefined &&
1685
- input.complianceType !== null && { complianceType: input.complianceType }),
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 !== undefined && input.description !== null && { description: input.description }),
1691
- ...(input.name !== undefined && input.name !== null && { name: 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 !== undefined && input.action !== null && { action: input.action }),
1724
- ...(input.requestType !== undefined && input.requestType !== null && { requestType: 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 !== undefined && input.status !== null && { status: 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 !== undefined &&
1787
- input.actionPlanInstructions !== null && { actionPlanInstructions: input.actionPlanInstructions }),
1788
- ...(input.actionPlanTitle !== undefined &&
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 !== undefined && input.description !== null && { description: input.description }),
1795
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1796
- ...(input.testingInformation !== undefined &&
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 !== undefined &&
1819
- input.defaultAssessmentReportsDestination !== null && {
1784
+ ...(input.defaultAssessmentReportsDestination != null && {
1820
1785
  defaultAssessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.defaultAssessmentReportsDestination, context),
1821
1786
  }),
1822
- ...(input.defaultProcessOwners !== undefined &&
1823
- input.defaultProcessOwners !== null && {
1787
+ ...(input.defaultProcessOwners != null && {
1824
1788
  defaultProcessOwners: serializeAws_restJson1Roles(input.defaultProcessOwners, context),
1825
1789
  }),
1826
- ...(input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }),
1827
- ...(input.snsTopic !== undefined && input.snsTopic !== null && { snsTopic: 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 !== undefined &&
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,
@@ -4807,16 +4770,15 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
4807
4770
  };
4808
4771
  const serializeAws_restJson1AssessmentReportsDestination = (input, context) => {
4809
4772
  return {
4810
- ...(input.destination !== undefined && input.destination !== null && { destination: input.destination }),
4811
- ...(input.destinationType !== undefined &&
4812
- input.destinationType !== null && { destinationType: input.destinationType }),
4773
+ ...(input.destination != null && { destination: input.destination }),
4774
+ ...(input.destinationType != null && { destinationType: input.destinationType }),
4813
4775
  };
4814
4776
  };
4815
4777
  const serializeAws_restJson1AWSAccount = (input, context) => {
4816
4778
  return {
4817
- ...(input.emailAddress !== undefined && input.emailAddress !== null && { emailAddress: input.emailAddress }),
4818
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
4819
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4779
+ ...(input.emailAddress != null && { emailAddress: input.emailAddress }),
4780
+ ...(input.id != null && { id: input.id }),
4781
+ ...(input.name != null && { name: input.name }),
4820
4782
  };
4821
4783
  };
4822
4784
  const serializeAws_restJson1AWSAccounts = (input, context) => {
@@ -4831,7 +4793,7 @@ const serializeAws_restJson1AWSAccounts = (input, context) => {
4831
4793
  };
4832
4794
  const serializeAws_restJson1AWSService = (input, context) => {
4833
4795
  return {
4834
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4796
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4835
4797
  };
4836
4798
  };
4837
4799
  const serializeAws_restJson1AWSServices = (input, context) => {
@@ -4846,21 +4808,16 @@ const serializeAws_restJson1AWSServices = (input, context) => {
4846
4808
  };
4847
4809
  const serializeAws_restJson1ControlMappingSource = (input, context) => {
4848
4810
  return {
4849
- ...(input.sourceDescription !== undefined &&
4850
- input.sourceDescription !== null && { sourceDescription: input.sourceDescription }),
4851
- ...(input.sourceFrequency !== undefined &&
4852
- input.sourceFrequency !== null && { sourceFrequency: input.sourceFrequency }),
4853
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
4854
- ...(input.sourceKeyword !== undefined &&
4855
- 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 && {
4856
4815
  sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
4857
4816
  }),
4858
- ...(input.sourceName !== undefined && input.sourceName !== null && { sourceName: input.sourceName }),
4859
- ...(input.sourceSetUpOption !== undefined &&
4860
- input.sourceSetUpOption !== null && { sourceSetUpOption: input.sourceSetUpOption }),
4861
- ...(input.sourceType !== undefined && input.sourceType !== null && { sourceType: input.sourceType }),
4862
- ...(input.troubleshootingText !== undefined &&
4863
- 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 }),
4864
4821
  };
4865
4822
  };
4866
4823
  const serializeAws_restJson1ControlMappingSources = (input, context) => {
@@ -4875,7 +4832,7 @@ const serializeAws_restJson1ControlMappingSources = (input, context) => {
4875
4832
  };
4876
4833
  const serializeAws_restJson1CreateAssessmentFrameworkControl = (input, context) => {
4877
4834
  return {
4878
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
4835
+ ...(input.id != null && { id: input.id }),
4879
4836
  };
4880
4837
  };
4881
4838
  const serializeAws_restJson1CreateAssessmentFrameworkControls = (input, context) => {
@@ -4890,11 +4847,10 @@ const serializeAws_restJson1CreateAssessmentFrameworkControls = (input, context)
4890
4847
  };
4891
4848
  const serializeAws_restJson1CreateAssessmentFrameworkControlSet = (input, context) => {
4892
4849
  return {
4893
- ...(input.controls !== undefined &&
4894
- input.controls !== null && {
4850
+ ...(input.controls != null && {
4895
4851
  controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
4896
4852
  }),
4897
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4853
+ ...(input.name != null && { name: input.name }),
4898
4854
  };
4899
4855
  };
4900
4856
  const serializeAws_restJson1CreateAssessmentFrameworkControlSets = (input, context) => {
@@ -4909,20 +4865,15 @@ const serializeAws_restJson1CreateAssessmentFrameworkControlSets = (input, conte
4909
4865
  };
4910
4866
  const serializeAws_restJson1CreateControlMappingSource = (input, context) => {
4911
4867
  return {
4912
- ...(input.sourceDescription !== undefined &&
4913
- input.sourceDescription !== null && { sourceDescription: input.sourceDescription }),
4914
- ...(input.sourceFrequency !== undefined &&
4915
- input.sourceFrequency !== null && { sourceFrequency: input.sourceFrequency }),
4916
- ...(input.sourceKeyword !== undefined &&
4917
- input.sourceKeyword !== null && {
4868
+ ...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
4869
+ ...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
4870
+ ...(input.sourceKeyword != null && {
4918
4871
  sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
4919
4872
  }),
4920
- ...(input.sourceName !== undefined && input.sourceName !== null && { sourceName: input.sourceName }),
4921
- ...(input.sourceSetUpOption !== undefined &&
4922
- input.sourceSetUpOption !== null && { sourceSetUpOption: input.sourceSetUpOption }),
4923
- ...(input.sourceType !== undefined && input.sourceType !== null && { sourceType: input.sourceType }),
4924
- ...(input.troubleshootingText !== undefined &&
4925
- 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 }),
4926
4877
  };
4927
4878
  };
4928
4879
  const serializeAws_restJson1CreateControlMappingSources = (input, context) => {
@@ -4937,10 +4888,10 @@ const serializeAws_restJson1CreateControlMappingSources = (input, context) => {
4937
4888
  };
4938
4889
  const serializeAws_restJson1CreateDelegationRequest = (input, context) => {
4939
4890
  return {
4940
- ...(input.comment !== undefined && input.comment !== null && { comment: input.comment }),
4941
- ...(input.controlSetId !== undefined && input.controlSetId !== null && { controlSetId: input.controlSetId }),
4942
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
4943
- ...(input.roleType !== undefined && input.roleType !== null && { roleType: 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 }),
4944
4895
  };
4945
4896
  };
4946
4897
  const serializeAws_restJson1CreateDelegationRequests = (input, context) => {
@@ -4975,8 +4926,7 @@ const serializeAws_restJson1EvidenceIds = (input, context) => {
4975
4926
  };
4976
4927
  const serializeAws_restJson1ManualEvidence = (input, context) => {
4977
4928
  return {
4978
- ...(input.s3ResourcePath !== undefined &&
4979
- input.s3ResourcePath !== null && { s3ResourcePath: input.s3ResourcePath }),
4929
+ ...(input.s3ResourcePath != null && { s3ResourcePath: input.s3ResourcePath }),
4980
4930
  };
4981
4931
  };
4982
4932
  const serializeAws_restJson1ManualEvidenceList = (input, context) => {
@@ -4991,8 +4941,8 @@ const serializeAws_restJson1ManualEvidenceList = (input, context) => {
4991
4941
  };
4992
4942
  const serializeAws_restJson1Role = (input, context) => {
4993
4943
  return {
4994
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
4995
- ...(input.roleType !== undefined && input.roleType !== null && { roleType: input.roleType }),
4944
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
4945
+ ...(input.roleType != null && { roleType: input.roleType }),
4996
4946
  };
4997
4947
  };
4998
4948
  const serializeAws_restJson1Roles = (input, context) => {
@@ -5007,17 +4957,14 @@ const serializeAws_restJson1Roles = (input, context) => {
5007
4957
  };
5008
4958
  const serializeAws_restJson1Scope = (input, context) => {
5009
4959
  return {
5010
- ...(input.awsAccounts !== undefined &&
5011
- input.awsAccounts !== null && { awsAccounts: serializeAws_restJson1AWSAccounts(input.awsAccounts, context) }),
5012
- ...(input.awsServices !== undefined &&
5013
- 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) }),
5014
4962
  };
5015
4963
  };
5016
4964
  const serializeAws_restJson1SourceKeyword = (input, context) => {
5017
4965
  return {
5018
- ...(input.keywordInputType !== undefined &&
5019
- input.keywordInputType !== null && { keywordInputType: input.keywordInputType }),
5020
- ...(input.keywordValue !== undefined && input.keywordValue !== null && { keywordValue: input.keywordValue }),
4966
+ ...(input.keywordInputType != null && { keywordInputType: input.keywordInputType }),
4967
+ ...(input.keywordValue != null && { keywordValue: input.keywordValue }),
5021
4968
  };
5022
4969
  };
5023
4970
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -5033,12 +4980,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
5033
4980
  };
5034
4981
  const serializeAws_restJson1UpdateAssessmentFrameworkControlSet = (input, context) => {
5035
4982
  return {
5036
- ...(input.controls !== undefined &&
5037
- input.controls !== null && {
4983
+ ...(input.controls != null && {
5038
4984
  controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
5039
4985
  }),
5040
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
5041
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4986
+ ...(input.id != null && { id: input.id }),
4987
+ ...(input.name != null && { name: input.name }),
5042
4988
  };
5043
4989
  };
5044
4990
  const serializeAws_restJson1UpdateAssessmentFrameworkControlSets = (input, context) => {
@@ -5054,29 +5000,19 @@ const serializeAws_restJson1UpdateAssessmentFrameworkControlSets = (input, conte
5054
5000
  const deserializeAws_restJson1Assessment = (output, context) => {
5055
5001
  return {
5056
5002
  arn: (0, smithy_client_1.expectString)(output.arn),
5057
- awsAccount: output.awsAccount !== undefined && output.awsAccount !== null
5058
- ? deserializeAws_restJson1AWSAccount(output.awsAccount, context)
5059
- : undefined,
5060
- framework: output.framework !== undefined && output.framework !== null
5061
- ? deserializeAws_restJson1AssessmentFramework(output.framework, context)
5062
- : undefined,
5063
- metadata: output.metadata !== undefined && output.metadata !== null
5064
- ? deserializeAws_restJson1AssessmentMetadata(output.metadata, context)
5065
- : undefined,
5066
- tags: output.tags !== undefined && output.tags !== null
5067
- ? deserializeAws_restJson1TagMap(output.tags, context)
5068
- : 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,
5069
5007
  };
5070
5008
  };
5071
5009
  const deserializeAws_restJson1AssessmentControl = (output, context) => {
5072
5010
  return {
5073
5011
  assessmentReportEvidenceCount: (0, smithy_client_1.expectInt32)(output.assessmentReportEvidenceCount),
5074
- comments: output.comments !== undefined && output.comments !== null
5075
- ? deserializeAws_restJson1ControlComments(output.comments, context)
5076
- : undefined,
5012
+ comments: output.comments != null ? deserializeAws_restJson1ControlComments(output.comments, context) : undefined,
5077
5013
  description: (0, smithy_client_1.expectString)(output.description),
5078
5014
  evidenceCount: (0, smithy_client_1.expectInt32)(output.evidenceCount),
5079
- evidenceSources: output.evidenceSources !== undefined && output.evidenceSources !== null
5015
+ evidenceSources: output.evidenceSources != null
5080
5016
  ? deserializeAws_restJson1EvidenceSources(output.evidenceSources, context)
5081
5017
  : undefined,
5082
5018
  id: (0, smithy_client_1.expectString)(output.id),
@@ -5098,18 +5034,12 @@ const deserializeAws_restJson1AssessmentControls = (output, context) => {
5098
5034
  };
5099
5035
  const deserializeAws_restJson1AssessmentControlSet = (output, context) => {
5100
5036
  return {
5101
- controls: output.controls !== undefined && output.controls !== null
5102
- ? deserializeAws_restJson1AssessmentControls(output.controls, context)
5103
- : undefined,
5104
- delegations: output.delegations !== undefined && output.delegations !== null
5105
- ? deserializeAws_restJson1Delegations(output.delegations, context)
5106
- : undefined,
5037
+ controls: output.controls != null ? deserializeAws_restJson1AssessmentControls(output.controls, context) : undefined,
5038
+ delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
5107
5039
  description: (0, smithy_client_1.expectString)(output.description),
5108
5040
  id: (0, smithy_client_1.expectString)(output.id),
5109
5041
  manualEvidenceCount: (0, smithy_client_1.expectInt32)(output.manualEvidenceCount),
5110
- roles: output.roles !== undefined && output.roles !== null
5111
- ? deserializeAws_restJson1Roles(output.roles, context)
5112
- : undefined,
5042
+ roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
5113
5043
  status: (0, smithy_client_1.expectString)(output.status),
5114
5044
  systemEvidenceCount: (0, smithy_client_1.expectInt32)(output.systemEvidenceCount),
5115
5045
  };
@@ -5134,9 +5064,7 @@ const deserializeAws_restJson1AssessmentEvidenceFolder = (output, context) => {
5134
5064
  controlName: (0, smithy_client_1.expectString)(output.controlName),
5135
5065
  controlSetId: (0, smithy_client_1.expectString)(output.controlSetId),
5136
5066
  dataSource: (0, smithy_client_1.expectString)(output.dataSource),
5137
- date: output.date !== undefined && output.date !== null
5138
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date)))
5139
- : undefined,
5067
+ date: output.date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date))) : undefined,
5140
5068
  evidenceAwsServiceSourceCount: (0, smithy_client_1.expectInt32)(output.evidenceAwsServiceSourceCount),
5141
5069
  evidenceByTypeComplianceCheckCount: (0, smithy_client_1.expectInt32)(output.evidenceByTypeComplianceCheckCount),
5142
5070
  evidenceByTypeComplianceCheckIssuesCount: (0, smithy_client_1.expectInt32)(output.evidenceByTypeComplianceCheckIssuesCount),
@@ -5163,13 +5091,11 @@ const deserializeAws_restJson1AssessmentEvidenceFolders = (output, context) => {
5163
5091
  const deserializeAws_restJson1AssessmentFramework = (output, context) => {
5164
5092
  return {
5165
5093
  arn: (0, smithy_client_1.expectString)(output.arn),
5166
- controlSets: output.controlSets !== undefined && output.controlSets !== null
5094
+ controlSets: output.controlSets != null
5167
5095
  ? deserializeAws_restJson1AssessmentControlSets(output.controlSets, context)
5168
5096
  : undefined,
5169
5097
  id: (0, smithy_client_1.expectString)(output.id),
5170
- metadata: output.metadata !== undefined && output.metadata !== null
5171
- ? deserializeAws_restJson1FrameworkMetadata(output.metadata, context)
5172
- : undefined,
5098
+ metadata: output.metadata != null ? deserializeAws_restJson1FrameworkMetadata(output.metadata, context) : undefined,
5173
5099
  };
5174
5100
  };
5175
5101
  const deserializeAws_restJson1AssessmentFrameworkMetadata = (output, context) => {
@@ -5178,12 +5104,10 @@ const deserializeAws_restJson1AssessmentFrameworkMetadata = (output, context) =>
5178
5104
  complianceType: (0, smithy_client_1.expectString)(output.complianceType),
5179
5105
  controlSetsCount: (0, smithy_client_1.expectInt32)(output.controlSetsCount),
5180
5106
  controlsCount: (0, smithy_client_1.expectInt32)(output.controlsCount),
5181
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5182
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5183
- : undefined,
5107
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5184
5108
  description: (0, smithy_client_1.expectString)(output.description),
5185
5109
  id: (0, smithy_client_1.expectString)(output.id),
5186
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
5110
+ lastUpdatedAt: output.lastUpdatedAt != null
5187
5111
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
5188
5112
  : undefined,
5189
5113
  logo: (0, smithy_client_1.expectString)(output.logo),
@@ -5195,20 +5119,20 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequest = (output, context
5195
5119
  return {
5196
5120
  comment: (0, smithy_client_1.expectString)(output.comment),
5197
5121
  complianceType: (0, smithy_client_1.expectString)(output.complianceType),
5198
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5122
+ creationTime: output.creationTime != null
5199
5123
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5200
5124
  : undefined,
5201
5125
  customControlsCount: (0, smithy_client_1.expectInt32)(output.customControlsCount),
5202
5126
  destinationAccount: (0, smithy_client_1.expectString)(output.destinationAccount),
5203
5127
  destinationRegion: (0, smithy_client_1.expectString)(output.destinationRegion),
5204
- expirationTime: output.expirationTime !== undefined && output.expirationTime !== null
5128
+ expirationTime: output.expirationTime != null
5205
5129
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationTime)))
5206
5130
  : undefined,
5207
5131
  frameworkDescription: (0, smithy_client_1.expectString)(output.frameworkDescription),
5208
5132
  frameworkId: (0, smithy_client_1.expectString)(output.frameworkId),
5209
5133
  frameworkName: (0, smithy_client_1.expectString)(output.frameworkName),
5210
5134
  id: (0, smithy_client_1.expectString)(output.id),
5211
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5135
+ lastUpdated: output.lastUpdated != null
5212
5136
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5213
5137
  : undefined,
5214
5138
  sourceAccount: (0, smithy_client_1.expectString)(output.sourceAccount),
@@ -5229,48 +5153,38 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequestList = (output, con
5229
5153
  };
5230
5154
  const deserializeAws_restJson1AssessmentMetadata = (output, context) => {
5231
5155
  return {
5232
- assessmentReportsDestination: output.assessmentReportsDestination !== undefined && output.assessmentReportsDestination !== null
5156
+ assessmentReportsDestination: output.assessmentReportsDestination != null
5233
5157
  ? deserializeAws_restJson1AssessmentReportsDestination(output.assessmentReportsDestination, context)
5234
5158
  : undefined,
5235
5159
  complianceType: (0, smithy_client_1.expectString)(output.complianceType),
5236
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5160
+ creationTime: output.creationTime != null
5237
5161
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5238
5162
  : undefined,
5239
- delegations: output.delegations !== undefined && output.delegations !== null
5240
- ? deserializeAws_restJson1Delegations(output.delegations, context)
5241
- : undefined,
5163
+ delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
5242
5164
  description: (0, smithy_client_1.expectString)(output.description),
5243
5165
  id: (0, smithy_client_1.expectString)(output.id),
5244
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5166
+ lastUpdated: output.lastUpdated != null
5245
5167
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5246
5168
  : undefined,
5247
5169
  name: (0, smithy_client_1.expectString)(output.name),
5248
- roles: output.roles !== undefined && output.roles !== null
5249
- ? deserializeAws_restJson1Roles(output.roles, context)
5250
- : undefined,
5251
- scope: output.scope !== undefined && output.scope !== null
5252
- ? deserializeAws_restJson1Scope(output.scope, context)
5253
- : undefined,
5170
+ roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
5171
+ scope: output.scope != null ? deserializeAws_restJson1Scope(output.scope, context) : undefined,
5254
5172
  status: (0, smithy_client_1.expectString)(output.status),
5255
5173
  };
5256
5174
  };
5257
5175
  const deserializeAws_restJson1AssessmentMetadataItem = (output, context) => {
5258
5176
  return {
5259
5177
  complianceType: (0, smithy_client_1.expectString)(output.complianceType),
5260
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5178
+ creationTime: output.creationTime != null
5261
5179
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5262
5180
  : undefined,
5263
- delegations: output.delegations !== undefined && output.delegations !== null
5264
- ? deserializeAws_restJson1Delegations(output.delegations, context)
5265
- : undefined,
5181
+ delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
5266
5182
  id: (0, smithy_client_1.expectString)(output.id),
5267
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5183
+ lastUpdated: output.lastUpdated != null
5268
5184
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5269
5185
  : undefined,
5270
5186
  name: (0, smithy_client_1.expectString)(output.name),
5271
- roles: output.roles !== undefined && output.roles !== null
5272
- ? deserializeAws_restJson1Roles(output.roles, context)
5273
- : undefined,
5187
+ roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
5274
5188
  status: (0, smithy_client_1.expectString)(output.status),
5275
5189
  };
5276
5190
  };
@@ -5280,7 +5194,7 @@ const deserializeAws_restJson1AssessmentReport = (output, context) => {
5280
5194
  assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
5281
5195
  author: (0, smithy_client_1.expectString)(output.author),
5282
5196
  awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
5283
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5197
+ creationTime: output.creationTime != null
5284
5198
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5285
5199
  : undefined,
5286
5200
  description: (0, smithy_client_1.expectString)(output.description),
@@ -5312,7 +5226,7 @@ const deserializeAws_restJson1AssessmentReportMetadata = (output, context) => {
5312
5226
  assessmentId: (0, smithy_client_1.expectString)(output.assessmentId),
5313
5227
  assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
5314
5228
  author: (0, smithy_client_1.expectString)(output.author),
5315
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5229
+ creationTime: output.creationTime != null
5316
5230
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5317
5231
  : undefined,
5318
5232
  description: (0, smithy_client_1.expectString)(output.description),
@@ -5374,7 +5288,7 @@ const deserializeAws_restJson1AWSServices = (output, context) => {
5374
5288
  };
5375
5289
  const deserializeAws_restJson1BatchCreateDelegationByAssessmentError = (output, context) => {
5376
5290
  return {
5377
- createDelegationRequest: output.createDelegationRequest !== undefined && output.createDelegationRequest !== null
5291
+ createDelegationRequest: output.createDelegationRequest != null
5378
5292
  ? deserializeAws_restJson1CreateDelegationRequest(output.createDelegationRequest, context)
5379
5293
  : undefined,
5380
5294
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
@@ -5414,7 +5328,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError = (out
5414
5328
  return {
5415
5329
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
5416
5330
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
5417
- manualEvidence: output.manualEvidence !== undefined && output.manualEvidence !== null
5331
+ manualEvidence: output.manualEvidence != null
5418
5332
  ? deserializeAws_restJson1ManualEvidence(output.manualEvidence, context)
5419
5333
  : undefined,
5420
5334
  };
@@ -5433,9 +5347,7 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors = (ou
5433
5347
  const deserializeAws_restJson1ChangeLog = (output, context) => {
5434
5348
  return {
5435
5349
  action: (0, smithy_client_1.expectString)(output.action),
5436
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5437
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5438
- : undefined,
5350
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5439
5351
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
5440
5352
  objectName: (0, smithy_client_1.expectString)(output.objectName),
5441
5353
  objectType: (0, smithy_client_1.expectString)(output.objectType),
@@ -5457,24 +5369,20 @@ const deserializeAws_restJson1Control = (output, context) => {
5457
5369
  actionPlanInstructions: (0, smithy_client_1.expectString)(output.actionPlanInstructions),
5458
5370
  actionPlanTitle: (0, smithy_client_1.expectString)(output.actionPlanTitle),
5459
5371
  arn: (0, smithy_client_1.expectString)(output.arn),
5460
- controlMappingSources: output.controlMappingSources !== undefined && output.controlMappingSources !== null
5372
+ controlMappingSources: output.controlMappingSources != null
5461
5373
  ? deserializeAws_restJson1ControlMappingSources(output.controlMappingSources, context)
5462
5374
  : undefined,
5463
5375
  controlSources: (0, smithy_client_1.expectString)(output.controlSources),
5464
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5465
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5466
- : undefined,
5376
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5467
5377
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
5468
5378
  description: (0, smithy_client_1.expectString)(output.description),
5469
5379
  id: (0, smithy_client_1.expectString)(output.id),
5470
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
5380
+ lastUpdatedAt: output.lastUpdatedAt != null
5471
5381
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
5472
5382
  : undefined,
5473
5383
  lastUpdatedBy: (0, smithy_client_1.expectString)(output.lastUpdatedBy),
5474
5384
  name: (0, smithy_client_1.expectString)(output.name),
5475
- tags: output.tags !== undefined && output.tags !== null
5476
- ? deserializeAws_restJson1TagMap(output.tags, context)
5477
- : undefined,
5385
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5478
5386
  testingInformation: (0, smithy_client_1.expectString)(output.testingInformation),
5479
5387
  type: (0, smithy_client_1.expectString)(output.type),
5480
5388
  };
@@ -5483,9 +5391,7 @@ const deserializeAws_restJson1ControlComment = (output, context) => {
5483
5391
  return {
5484
5392
  authorName: (0, smithy_client_1.expectString)(output.authorName),
5485
5393
  commentBody: (0, smithy_client_1.expectString)(output.commentBody),
5486
- postedDate: output.postedDate !== undefined && output.postedDate !== null
5487
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.postedDate)))
5488
- : undefined,
5394
+ postedDate: output.postedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.postedDate))) : undefined,
5489
5395
  };
5490
5396
  };
5491
5397
  const deserializeAws_restJson1ControlComments = (output, context) => {
@@ -5502,11 +5408,11 @@ const deserializeAws_restJson1ControlComments = (output, context) => {
5502
5408
  const deserializeAws_restJson1ControlDomainInsights = (output, context) => {
5503
5409
  return {
5504
5410
  controlsCountByNoncompliantEvidence: (0, smithy_client_1.expectInt32)(output.controlsCountByNoncompliantEvidence),
5505
- evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
5411
+ evidenceInsights: output.evidenceInsights != null
5506
5412
  ? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
5507
5413
  : undefined,
5508
5414
  id: (0, smithy_client_1.expectString)(output.id),
5509
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5415
+ lastUpdated: output.lastUpdated != null
5510
5416
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5511
5417
  : undefined,
5512
5418
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5549,11 +5455,11 @@ const deserializeAws_restJson1ControlInsightsMetadataByAssessment = (output, con
5549
5455
  const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output, context) => {
5550
5456
  return {
5551
5457
  controlSetName: (0, smithy_client_1.expectString)(output.controlSetName),
5552
- evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
5458
+ evidenceInsights: output.evidenceInsights != null
5553
5459
  ? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
5554
5460
  : undefined,
5555
5461
  id: (0, smithy_client_1.expectString)(output.id),
5556
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5462
+ lastUpdated: output.lastUpdated != null
5557
5463
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5558
5464
  : undefined,
5559
5465
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5561,11 +5467,11 @@ const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output,
5561
5467
  };
5562
5468
  const deserializeAws_restJson1ControlInsightsMetadataItem = (output, context) => {
5563
5469
  return {
5564
- evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
5470
+ evidenceInsights: output.evidenceInsights != null
5565
5471
  ? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
5566
5472
  : undefined,
5567
5473
  id: (0, smithy_client_1.expectString)(output.id),
5568
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5474
+ lastUpdated: output.lastUpdated != null
5569
5475
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5570
5476
  : undefined,
5571
5477
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5576,9 +5482,7 @@ const deserializeAws_restJson1ControlMappingSource = (output, context) => {
5576
5482
  sourceDescription: (0, smithy_client_1.expectString)(output.sourceDescription),
5577
5483
  sourceFrequency: (0, smithy_client_1.expectString)(output.sourceFrequency),
5578
5484
  sourceId: (0, smithy_client_1.expectString)(output.sourceId),
5579
- sourceKeyword: output.sourceKeyword !== undefined && output.sourceKeyword !== null
5580
- ? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context)
5581
- : undefined,
5485
+ sourceKeyword: output.sourceKeyword != null ? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context) : undefined,
5582
5486
  sourceName: (0, smithy_client_1.expectString)(output.sourceName),
5583
5487
  sourceSetUpOption: (0, smithy_client_1.expectString)(output.sourceSetUpOption),
5584
5488
  sourceType: (0, smithy_client_1.expectString)(output.sourceType),
@@ -5600,11 +5504,9 @@ const deserializeAws_restJson1ControlMetadata = (output, context) => {
5600
5504
  return {
5601
5505
  arn: (0, smithy_client_1.expectString)(output.arn),
5602
5506
  controlSources: (0, smithy_client_1.expectString)(output.controlSources),
5603
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5604
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5605
- : undefined,
5507
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5606
5508
  id: (0, smithy_client_1.expectString)(output.id),
5607
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
5509
+ lastUpdatedAt: output.lastUpdatedAt != null
5608
5510
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
5609
5511
  : undefined,
5610
5512
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5634,9 +5536,7 @@ const deserializeAws_restJson1Controls = (output, context) => {
5634
5536
  };
5635
5537
  const deserializeAws_restJson1ControlSet = (output, context) => {
5636
5538
  return {
5637
- controls: output.controls !== undefined && output.controls !== null
5638
- ? deserializeAws_restJson1Controls(output.controls, context)
5639
- : undefined,
5539
+ controls: output.controls != null ? deserializeAws_restJson1Controls(output.controls, context) : undefined,
5640
5540
  id: (0, smithy_client_1.expectString)(output.id),
5641
5541
  name: (0, smithy_client_1.expectString)(output.name),
5642
5542
  };
@@ -5667,11 +5567,11 @@ const deserializeAws_restJson1Delegation = (output, context) => {
5667
5567
  comment: (0, smithy_client_1.expectString)(output.comment),
5668
5568
  controlSetId: (0, smithy_client_1.expectString)(output.controlSetId),
5669
5569
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
5670
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5570
+ creationTime: output.creationTime != null
5671
5571
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5672
5572
  : undefined,
5673
5573
  id: (0, smithy_client_1.expectString)(output.id),
5674
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5574
+ lastUpdated: output.lastUpdated != null
5675
5575
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5676
5576
  : undefined,
5677
5577
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -5684,7 +5584,7 @@ const deserializeAws_restJson1DelegationMetadata = (output, context) => {
5684
5584
  assessmentId: (0, smithy_client_1.expectString)(output.assessmentId),
5685
5585
  assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
5686
5586
  controlSetName: (0, smithy_client_1.expectString)(output.controlSetName),
5687
- creationTime: output.creationTime !== undefined && output.creationTime !== null
5587
+ creationTime: output.creationTime != null
5688
5588
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
5689
5589
  : undefined,
5690
5590
  id: (0, smithy_client_1.expectString)(output.id),
@@ -5717,9 +5617,7 @@ const deserializeAws_restJson1Delegations = (output, context) => {
5717
5617
  const deserializeAws_restJson1Evidence = (output, context) => {
5718
5618
  return {
5719
5619
  assessmentReportSelection: (0, smithy_client_1.expectString)(output.assessmentReportSelection),
5720
- attributes: output.attributes !== undefined && output.attributes !== null
5721
- ? deserializeAws_restJson1EvidenceAttributes(output.attributes, context)
5722
- : undefined,
5620
+ attributes: output.attributes != null ? deserializeAws_restJson1EvidenceAttributes(output.attributes, context) : undefined,
5723
5621
  awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
5724
5622
  awsOrganization: (0, smithy_client_1.expectString)(output.awsOrganization),
5725
5623
  complianceCheck: (0, smithy_client_1.expectString)(output.complianceCheck),
@@ -5731,12 +5629,10 @@ const deserializeAws_restJson1Evidence = (output, context) => {
5731
5629
  evidenceFolderId: (0, smithy_client_1.expectString)(output.evidenceFolderId),
5732
5630
  iamId: (0, smithy_client_1.expectString)(output.iamId),
5733
5631
  id: (0, smithy_client_1.expectString)(output.id),
5734
- resourcesIncluded: output.resourcesIncluded !== undefined && output.resourcesIncluded !== null
5632
+ resourcesIncluded: output.resourcesIncluded != null
5735
5633
  ? deserializeAws_restJson1Resources(output.resourcesIncluded, context)
5736
5634
  : undefined,
5737
- time: output.time !== undefined && output.time !== null
5738
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time)))
5739
- : undefined,
5635
+ time: output.time != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time))) : undefined,
5740
5636
  };
5741
5637
  };
5742
5638
  const deserializeAws_restJson1EvidenceAttributes = (output, context) => {
@@ -5794,25 +5690,19 @@ const deserializeAws_restJson1Framework = (output, context) => {
5794
5690
  return {
5795
5691
  arn: (0, smithy_client_1.expectString)(output.arn),
5796
5692
  complianceType: (0, smithy_client_1.expectString)(output.complianceType),
5797
- controlSets: output.controlSets !== undefined && output.controlSets !== null
5798
- ? deserializeAws_restJson1ControlSets(output.controlSets, context)
5799
- : undefined,
5693
+ controlSets: output.controlSets != null ? deserializeAws_restJson1ControlSets(output.controlSets, context) : undefined,
5800
5694
  controlSources: (0, smithy_client_1.expectString)(output.controlSources),
5801
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5802
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5803
- : undefined,
5695
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5804
5696
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
5805
5697
  description: (0, smithy_client_1.expectString)(output.description),
5806
5698
  id: (0, smithy_client_1.expectString)(output.id),
5807
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
5699
+ lastUpdatedAt: output.lastUpdatedAt != null
5808
5700
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
5809
5701
  : undefined,
5810
5702
  lastUpdatedBy: (0, smithy_client_1.expectString)(output.lastUpdatedBy),
5811
5703
  logo: (0, smithy_client_1.expectString)(output.logo),
5812
5704
  name: (0, smithy_client_1.expectString)(output.name),
5813
- tags: output.tags !== undefined && output.tags !== null
5814
- ? deserializeAws_restJson1TagMap(output.tags, context)
5815
- : undefined,
5705
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5816
5706
  type: (0, smithy_client_1.expectString)(output.type),
5817
5707
  };
5818
5708
  };
@@ -5841,7 +5731,7 @@ const deserializeAws_restJson1Insights = (output, context) => {
5841
5731
  assessmentControlsCountByNoncompliantEvidence: (0, smithy_client_1.expectInt32)(output.assessmentControlsCountByNoncompliantEvidence),
5842
5732
  compliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.compliantEvidenceCount),
5843
5733
  inconclusiveEvidenceCount: (0, smithy_client_1.expectInt32)(output.inconclusiveEvidenceCount),
5844
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5734
+ lastUpdated: output.lastUpdated != null
5845
5735
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5846
5736
  : undefined,
5847
5737
  noncompliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.noncompliantEvidenceCount),
@@ -5853,7 +5743,7 @@ const deserializeAws_restJson1InsightsByAssessment = (output, context) => {
5853
5743
  assessmentControlsCountByNoncompliantEvidence: (0, smithy_client_1.expectInt32)(output.assessmentControlsCountByNoncompliantEvidence),
5854
5744
  compliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.compliantEvidenceCount),
5855
5745
  inconclusiveEvidenceCount: (0, smithy_client_1.expectInt32)(output.inconclusiveEvidenceCount),
5856
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
5746
+ lastUpdated: output.lastUpdated != null
5857
5747
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdated)))
5858
5748
  : undefined,
5859
5749
  noncompliantEvidenceCount: (0, smithy_client_1.expectInt32)(output.noncompliantEvidenceCount),
@@ -5894,9 +5784,7 @@ const deserializeAws_restJson1Notification = (output, context) => {
5894
5784
  controlSetId: (0, smithy_client_1.expectString)(output.controlSetId),
5895
5785
  controlSetName: (0, smithy_client_1.expectString)(output.controlSetName),
5896
5786
  description: (0, smithy_client_1.expectString)(output.description),
5897
- eventTime: output.eventTime !== undefined && output.eventTime !== null
5898
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
5899
- : undefined,
5787
+ eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
5900
5788
  id: (0, smithy_client_1.expectString)(output.id),
5901
5789
  source: (0, smithy_client_1.expectString)(output.source),
5902
5790
  };
@@ -5948,12 +5836,8 @@ const deserializeAws_restJson1Roles = (output, context) => {
5948
5836
  };
5949
5837
  const deserializeAws_restJson1Scope = (output, context) => {
5950
5838
  return {
5951
- awsAccounts: output.awsAccounts !== undefined && output.awsAccounts !== null
5952
- ? deserializeAws_restJson1AWSAccounts(output.awsAccounts, context)
5953
- : undefined,
5954
- awsServices: output.awsServices !== undefined && output.awsServices !== null
5955
- ? deserializeAws_restJson1AWSServices(output.awsServices, context)
5956
- : undefined,
5839
+ awsAccounts: output.awsAccounts != null ? deserializeAws_restJson1AWSAccounts(output.awsAccounts, context) : undefined,
5840
+ awsServices: output.awsServices != null ? deserializeAws_restJson1AWSServices(output.awsServices, context) : undefined,
5957
5841
  };
5958
5842
  };
5959
5843
  const deserializeAws_restJson1ServiceMetadata = (output, context) => {
@@ -5977,10 +5861,10 @@ const deserializeAws_restJson1ServiceMetadataList = (output, context) => {
5977
5861
  };
5978
5862
  const deserializeAws_restJson1Settings = (output, context) => {
5979
5863
  return {
5980
- defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination !== undefined && output.defaultAssessmentReportsDestination !== null
5864
+ defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination != null
5981
5865
  ? deserializeAws_restJson1AssessmentReportsDestination(output.defaultAssessmentReportsDestination, context)
5982
5866
  : undefined,
5983
- defaultProcessOwners: output.defaultProcessOwners !== undefined && output.defaultProcessOwners !== null
5867
+ defaultProcessOwners: output.defaultProcessOwners != null
5984
5868
  ? deserializeAws_restJson1Roles(output.defaultProcessOwners, context)
5985
5869
  : undefined,
5986
5870
  isAwsOrgEnabled: (0, smithy_client_1.expectBoolean)(output.isAwsOrgEnabled),
@@ -6070,6 +5954,9 @@ const loadRestJsonErrorCode = (output, data) => {
6070
5954
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
6071
5955
  const sanitizeErrorCode = (rawValue) => {
6072
5956
  let cleanValue = rawValue;
5957
+ if (typeof cleanValue === "number") {
5958
+ cleanValue = cleanValue.toString();
5959
+ }
6073
5960
  if (cleanValue.indexOf(":") >= 0) {
6074
5961
  cleanValue = cleanValue.split(":")[0];
6075
5962
  }