@aws-sdk/client-auditmanager 3.121.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +167 -283
- package/dist-es/protocols/Aws_restJson1.js +114 -230
- package/package.json +26 -26
|
@@ -25,8 +25,7 @@ export var serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand
|
|
|
25
25
|
else {
|
|
26
26
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
27
27
|
}
|
|
28
|
-
body = JSON.stringify(__assign({}, (input.evidenceFolderId
|
|
29
|
-
input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId })));
|
|
28
|
+
body = JSON.stringify(__assign({}, (input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId })));
|
|
30
29
|
return [2, new __HttpRequest({
|
|
31
30
|
protocol: protocol,
|
|
32
31
|
hostname: hostname,
|
|
@@ -61,9 +60,7 @@ export var serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand =
|
|
|
61
60
|
else {
|
|
62
61
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
63
62
|
}
|
|
64
|
-
body = JSON.stringify(__assign(__assign({}, (input.evidenceFolderId
|
|
65
|
-
input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId })), (input.evidenceIds !== undefined &&
|
|
66
|
-
input.evidenceIds !== null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) })));
|
|
63
|
+
body = JSON.stringify(__assign(__assign({}, (input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId })), (input.evidenceIds != null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) })));
|
|
67
64
|
return [2, new __HttpRequest({
|
|
68
65
|
protocol: protocol,
|
|
69
66
|
hostname: hostname,
|
|
@@ -97,8 +94,7 @@ export var serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = func
|
|
|
97
94
|
else {
|
|
98
95
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
99
96
|
}
|
|
100
|
-
body = JSON.stringify(__assign({}, (input.createDelegationRequests
|
|
101
|
-
input.createDelegationRequests !== null && {
|
|
97
|
+
body = JSON.stringify(__assign({}, (input.createDelegationRequests != null && {
|
|
102
98
|
createDelegationRequests: serializeAws_restJson1CreateDelegationRequests(input.createDelegationRequests, context),
|
|
103
99
|
})));
|
|
104
100
|
return [2, new __HttpRequest({
|
|
@@ -134,8 +130,7 @@ export var serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = func
|
|
|
134
130
|
else {
|
|
135
131
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
136
132
|
}
|
|
137
|
-
body = JSON.stringify(__assign({}, (input.delegationIds
|
|
138
|
-
input.delegationIds !== null && {
|
|
133
|
+
body = JSON.stringify(__assign({}, (input.delegationIds != null && {
|
|
139
134
|
delegationIds: serializeAws_restJson1DelegationIds(input.delegationIds, context),
|
|
140
135
|
})));
|
|
141
136
|
return [2, new __HttpRequest({
|
|
@@ -172,9 +167,7 @@ export var serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceComman
|
|
|
172
167
|
else {
|
|
173
168
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
174
169
|
}
|
|
175
|
-
body = JSON.stringify(__assign(__assign({}, (input.evidenceFolderId
|
|
176
|
-
input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId })), (input.evidenceIds !== undefined &&
|
|
177
|
-
input.evidenceIds !== null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) })));
|
|
170
|
+
body = JSON.stringify(__assign(__assign({}, (input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId })), (input.evidenceIds != null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) })));
|
|
178
171
|
return [2, new __HttpRequest({
|
|
179
172
|
protocol: protocol,
|
|
180
173
|
hostname: hostname,
|
|
@@ -229,8 +222,7 @@ export var serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand =
|
|
|
229
222
|
else {
|
|
230
223
|
throw new Error("No value provided for input HTTP label: controlId.");
|
|
231
224
|
}
|
|
232
|
-
body = JSON.stringify(__assign({}, (input.manualEvidence
|
|
233
|
-
input.manualEvidence !== null && {
|
|
225
|
+
body = JSON.stringify(__assign({}, (input.manualEvidence != null && {
|
|
234
226
|
manualEvidence: serializeAws_restJson1ManualEvidenceList(input.manualEvidence, context),
|
|
235
227
|
})));
|
|
236
228
|
return [2, new __HttpRequest({
|
|
@@ -256,12 +248,9 @@ export var serializeAws_restJson1CreateAssessmentCommand = function (input, cont
|
|
|
256
248
|
"content-type": "application/json",
|
|
257
249
|
};
|
|
258
250
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assessments";
|
|
259
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assessmentReportsDestination
|
|
260
|
-
input.assessmentReportsDestination !== null && {
|
|
251
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assessmentReportsDestination != null && {
|
|
261
252
|
assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
|
|
262
|
-
})), (input.description
|
|
263
|
-
input.roles !== null && { roles: serializeAws_restJson1Roles(input.roles, context) })), (input.scope !== undefined &&
|
|
264
|
-
input.scope !== null && { scope: serializeAws_restJson1Scope(input.scope, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
253
|
+
})), (input.description != null && { description: input.description })), (input.frameworkId != null && { frameworkId: input.frameworkId })), (input.name != null && { name: input.name })), (input.roles != null && { roles: serializeAws_restJson1Roles(input.roles, context) })), (input.scope != null && { scope: serializeAws_restJson1Scope(input.scope, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
265
254
|
return [2, new __HttpRequest({
|
|
266
255
|
protocol: protocol,
|
|
267
256
|
hostname: hostname,
|
|
@@ -285,11 +274,9 @@ export var serializeAws_restJson1CreateAssessmentFrameworkCommand = function (in
|
|
|
285
274
|
"content-type": "application/json",
|
|
286
275
|
};
|
|
287
276
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assessmentFrameworks";
|
|
288
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.complianceType
|
|
289
|
-
input.complianceType !== null && { complianceType: input.complianceType })), (input.controlSets !== undefined &&
|
|
290
|
-
input.controlSets !== null && {
|
|
277
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.complianceType != null && { complianceType: input.complianceType })), (input.controlSets != null && {
|
|
291
278
|
controlSets: serializeAws_restJson1CreateAssessmentFrameworkControlSets(input.controlSets, context),
|
|
292
|
-
})), (input.description
|
|
279
|
+
})), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
293
280
|
return [2, new __HttpRequest({
|
|
294
281
|
protocol: protocol,
|
|
295
282
|
hostname: hostname,
|
|
@@ -323,7 +310,7 @@ export var serializeAws_restJson1CreateAssessmentReportCommand = function (input
|
|
|
323
310
|
else {
|
|
324
311
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
325
312
|
}
|
|
326
|
-
body = JSON.stringify(__assign(__assign({}, (input.description
|
|
313
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
327
314
|
return [2, new __HttpRequest({
|
|
328
315
|
protocol: protocol,
|
|
329
316
|
hostname: hostname,
|
|
@@ -347,13 +334,9 @@ export var serializeAws_restJson1CreateControlCommand = function (input, context
|
|
|
347
334
|
"content-type": "application/json",
|
|
348
335
|
};
|
|
349
336
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/controls";
|
|
350
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actionPlanInstructions
|
|
351
|
-
input.actionPlanInstructions !== null && { actionPlanInstructions: input.actionPlanInstructions })), (input.actionPlanTitle !== undefined &&
|
|
352
|
-
input.actionPlanTitle !== null && { actionPlanTitle: input.actionPlanTitle })), (input.controlMappingSources !== undefined &&
|
|
353
|
-
input.controlMappingSources !== null && {
|
|
337
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions })), (input.actionPlanTitle != null && { actionPlanTitle: input.actionPlanTitle })), (input.controlMappingSources != null && {
|
|
354
338
|
controlMappingSources: serializeAws_restJson1CreateControlMappingSources(input.controlMappingSources, context),
|
|
355
|
-
})), (input.description
|
|
356
|
-
input.testingInformation !== null && { testingInformation: input.testingInformation })));
|
|
339
|
+
})), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.testingInformation != null && { testingInformation: input.testingInformation })));
|
|
357
340
|
return [2, new __HttpRequest({
|
|
358
341
|
protocol: protocol,
|
|
359
342
|
hostname: hostname,
|
|
@@ -571,8 +554,7 @@ export var serializeAws_restJson1DeregisterOrganizationAdminAccountCommand = fun
|
|
|
571
554
|
};
|
|
572
555
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
573
556
|
"/account/deregisterOrganizationAdminAccount";
|
|
574
|
-
body = JSON.stringify(__assign({}, (input.adminAccountId
|
|
575
|
-
input.adminAccountId !== null && { adminAccountId: input.adminAccountId })));
|
|
557
|
+
body = JSON.stringify(__assign({}, (input.adminAccountId != null && { adminAccountId: input.adminAccountId })));
|
|
576
558
|
return [2, new __HttpRequest({
|
|
577
559
|
protocol: protocol,
|
|
578
560
|
hostname: hostname,
|
|
@@ -607,8 +589,7 @@ export var serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderComma
|
|
|
607
589
|
else {
|
|
608
590
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
609
591
|
}
|
|
610
|
-
body = JSON.stringify(__assign({}, (input.evidenceFolderId
|
|
611
|
-
input.evidenceFolderId !== null && { evidenceFolderId: input.evidenceFolderId })));
|
|
592
|
+
body = JSON.stringify(__assign({}, (input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId })));
|
|
612
593
|
return [2, new __HttpRequest({
|
|
613
594
|
protocol: protocol,
|
|
614
595
|
hostname: hostname,
|
|
@@ -1521,8 +1502,7 @@ export var serializeAws_restJson1RegisterAccountCommand = function (input, conte
|
|
|
1521
1502
|
"content-type": "application/json",
|
|
1522
1503
|
};
|
|
1523
1504
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account/registerAccount";
|
|
1524
|
-
body = JSON.stringify(__assign(__assign({}, (input.delegatedAdminAccount
|
|
1525
|
-
input.delegatedAdminAccount !== null && { delegatedAdminAccount: input.delegatedAdminAccount })), (input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey })));
|
|
1505
|
+
body = JSON.stringify(__assign(__assign({}, (input.delegatedAdminAccount != null && { delegatedAdminAccount: input.delegatedAdminAccount })), (input.kmsKey != null && { kmsKey: input.kmsKey })));
|
|
1526
1506
|
return [2, new __HttpRequest({
|
|
1527
1507
|
protocol: protocol,
|
|
1528
1508
|
hostname: hostname,
|
|
@@ -1546,8 +1526,7 @@ export var serializeAws_restJson1RegisterOrganizationAdminAccountCommand = funct
|
|
|
1546
1526
|
"content-type": "application/json",
|
|
1547
1527
|
};
|
|
1548
1528
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account/registerOrganizationAdminAccount";
|
|
1549
|
-
body = JSON.stringify(__assign({}, (input.adminAccountId
|
|
1550
|
-
input.adminAccountId !== null && { adminAccountId: input.adminAccountId })));
|
|
1529
|
+
body = JSON.stringify(__assign({}, (input.adminAccountId != null && { adminAccountId: input.adminAccountId })));
|
|
1551
1530
|
return [2, new __HttpRequest({
|
|
1552
1531
|
protocol: protocol,
|
|
1553
1532
|
hostname: hostname,
|
|
@@ -1582,9 +1561,7 @@ export var serializeAws_restJson1StartAssessmentFrameworkShareCommand = function
|
|
|
1582
1561
|
else {
|
|
1583
1562
|
throw new Error("No value provided for input HTTP label: frameworkId.");
|
|
1584
1563
|
}
|
|
1585
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.comment
|
|
1586
|
-
input.destinationAccount !== null && { destinationAccount: input.destinationAccount })), (input.destinationRegion !== undefined &&
|
|
1587
|
-
input.destinationRegion !== null && { destinationRegion: input.destinationRegion })));
|
|
1564
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.destinationAccount != null && { destinationAccount: input.destinationAccount })), (input.destinationRegion != null && { destinationRegion: input.destinationRegion })));
|
|
1588
1565
|
return [2, new __HttpRequest({
|
|
1589
1566
|
protocol: protocol,
|
|
1590
1567
|
hostname: hostname,
|
|
@@ -1618,7 +1595,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1618
1595
|
else {
|
|
1619
1596
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1620
1597
|
}
|
|
1621
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1598
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1622
1599
|
return [2, new __HttpRequest({
|
|
1623
1600
|
protocol: protocol,
|
|
1624
1601
|
hostname: hostname,
|
|
@@ -1685,14 +1662,9 @@ export var serializeAws_restJson1UpdateAssessmentCommand = function (input, cont
|
|
|
1685
1662
|
else {
|
|
1686
1663
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1687
1664
|
}
|
|
1688
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.assessmentDescription
|
|
1689
|
-
input.assessmentDescription !== null && { assessmentDescription: input.assessmentDescription })), (input.assessmentName !== undefined &&
|
|
1690
|
-
input.assessmentName !== null && { assessmentName: input.assessmentName })), (input.assessmentReportsDestination !== undefined &&
|
|
1691
|
-
input.assessmentReportsDestination !== null && {
|
|
1665
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.assessmentDescription != null && { assessmentDescription: input.assessmentDescription })), (input.assessmentName != null && { assessmentName: input.assessmentName })), (input.assessmentReportsDestination != null && {
|
|
1692
1666
|
assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
|
|
1693
|
-
})), (input.roles
|
|
1694
|
-
input.roles !== null && { roles: serializeAws_restJson1Roles(input.roles, context) })), (input.scope !== undefined &&
|
|
1695
|
-
input.scope !== null && { scope: serializeAws_restJson1Scope(input.scope, context) })));
|
|
1667
|
+
})), (input.roles != null && { roles: serializeAws_restJson1Roles(input.roles, context) })), (input.scope != null && { scope: serializeAws_restJson1Scope(input.scope, context) })));
|
|
1696
1668
|
return [2, new __HttpRequest({
|
|
1697
1669
|
protocol: protocol,
|
|
1698
1670
|
hostname: hostname,
|
|
@@ -1747,7 +1719,7 @@ export var serializeAws_restJson1UpdateAssessmentControlCommand = function (inpu
|
|
|
1747
1719
|
else {
|
|
1748
1720
|
throw new Error("No value provided for input HTTP label: controlId.");
|
|
1749
1721
|
}
|
|
1750
|
-
body = JSON.stringify(__assign(__assign({}, (input.commentBody
|
|
1722
|
+
body = JSON.stringify(__assign(__assign({}, (input.commentBody != null && { commentBody: input.commentBody })), (input.controlStatus != null && { controlStatus: input.controlStatus })));
|
|
1751
1723
|
return [2, new __HttpRequest({
|
|
1752
1724
|
protocol: protocol,
|
|
1753
1725
|
hostname: hostname,
|
|
@@ -1792,7 +1764,7 @@ export var serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = funct
|
|
|
1792
1764
|
else {
|
|
1793
1765
|
throw new Error("No value provided for input HTTP label: controlSetId.");
|
|
1794
1766
|
}
|
|
1795
|
-
body = JSON.stringify(__assign(__assign({}, (input.comment
|
|
1767
|
+
body = JSON.stringify(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.status != null && { status: input.status })));
|
|
1796
1768
|
return [2, new __HttpRequest({
|
|
1797
1769
|
protocol: protocol,
|
|
1798
1770
|
hostname: hostname,
|
|
@@ -1826,11 +1798,9 @@ export var serializeAws_restJson1UpdateAssessmentFrameworkCommand = function (in
|
|
|
1826
1798
|
else {
|
|
1827
1799
|
throw new Error("No value provided for input HTTP label: frameworkId.");
|
|
1828
1800
|
}
|
|
1829
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.complianceType
|
|
1830
|
-
input.complianceType !== null && { complianceType: input.complianceType })), (input.controlSets !== undefined &&
|
|
1831
|
-
input.controlSets !== null && {
|
|
1801
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.complianceType != null && { complianceType: input.complianceType })), (input.controlSets != null && {
|
|
1832
1802
|
controlSets: serializeAws_restJson1UpdateAssessmentFrameworkControlSets(input.controlSets, context),
|
|
1833
|
-
})), (input.description
|
|
1803
|
+
})), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
1834
1804
|
return [2, new __HttpRequest({
|
|
1835
1805
|
protocol: protocol,
|
|
1836
1806
|
hostname: hostname,
|
|
@@ -1865,7 +1835,7 @@ export var serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = functio
|
|
|
1865
1835
|
else {
|
|
1866
1836
|
throw new Error("No value provided for input HTTP label: requestId.");
|
|
1867
1837
|
}
|
|
1868
|
-
body = JSON.stringify(__assign(__assign({}, (input.action
|
|
1838
|
+
body = JSON.stringify(__assign(__assign({}, (input.action != null && { action: input.action })), (input.requestType != null && { requestType: input.requestType })));
|
|
1869
1839
|
return [2, new __HttpRequest({
|
|
1870
1840
|
protocol: protocol,
|
|
1871
1841
|
hostname: hostname,
|
|
@@ -1899,7 +1869,7 @@ export var serializeAws_restJson1UpdateAssessmentStatusCommand = function (input
|
|
|
1899
1869
|
else {
|
|
1900
1870
|
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1901
1871
|
}
|
|
1902
|
-
body = JSON.stringify(__assign({}, (input.status
|
|
1872
|
+
body = JSON.stringify(__assign({}, (input.status != null && { status: input.status })));
|
|
1903
1873
|
return [2, new __HttpRequest({
|
|
1904
1874
|
protocol: protocol,
|
|
1905
1875
|
hostname: hostname,
|
|
@@ -1933,13 +1903,9 @@ export var serializeAws_restJson1UpdateControlCommand = function (input, context
|
|
|
1933
1903
|
else {
|
|
1934
1904
|
throw new Error("No value provided for input HTTP label: controlId.");
|
|
1935
1905
|
}
|
|
1936
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actionPlanInstructions
|
|
1937
|
-
input.actionPlanInstructions !== null && { actionPlanInstructions: input.actionPlanInstructions })), (input.actionPlanTitle !== undefined &&
|
|
1938
|
-
input.actionPlanTitle !== null && { actionPlanTitle: input.actionPlanTitle })), (input.controlMappingSources !== undefined &&
|
|
1939
|
-
input.controlMappingSources !== null && {
|
|
1906
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions })), (input.actionPlanTitle != null && { actionPlanTitle: input.actionPlanTitle })), (input.controlMappingSources != null && {
|
|
1940
1907
|
controlMappingSources: serializeAws_restJson1ControlMappingSources(input.controlMappingSources, context),
|
|
1941
|
-
})), (input.description
|
|
1942
|
-
input.testingInformation !== null && { testingInformation: input.testingInformation })));
|
|
1908
|
+
})), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.testingInformation != null && { testingInformation: input.testingInformation })));
|
|
1943
1909
|
return [2, new __HttpRequest({
|
|
1944
1910
|
protocol: protocol,
|
|
1945
1911
|
hostname: hostname,
|
|
@@ -1963,13 +1929,11 @@ export var serializeAws_restJson1UpdateSettingsCommand = function (input, contex
|
|
|
1963
1929
|
"content-type": "application/json",
|
|
1964
1930
|
};
|
|
1965
1931
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/settings";
|
|
1966
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.defaultAssessmentReportsDestination
|
|
1967
|
-
input.defaultAssessmentReportsDestination !== null && {
|
|
1932
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.defaultAssessmentReportsDestination != null && {
|
|
1968
1933
|
defaultAssessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.defaultAssessmentReportsDestination, context),
|
|
1969
|
-
})), (input.defaultProcessOwners
|
|
1970
|
-
input.defaultProcessOwners !== null && {
|
|
1934
|
+
})), (input.defaultProcessOwners != null && {
|
|
1971
1935
|
defaultProcessOwners: serializeAws_restJson1Roles(input.defaultProcessOwners, context),
|
|
1972
|
-
})), (input.kmsKey
|
|
1936
|
+
})), (input.kmsKey != null && { kmsKey: input.kmsKey })), (input.snsTopic != null && { snsTopic: input.snsTopic })));
|
|
1973
1937
|
return [2, new __HttpRequest({
|
|
1974
1938
|
protocol: protocol,
|
|
1975
1939
|
hostname: hostname,
|
|
@@ -1993,8 +1957,7 @@ export var serializeAws_restJson1ValidateAssessmentReportIntegrityCommand = func
|
|
|
1993
1957
|
"content-type": "application/json",
|
|
1994
1958
|
};
|
|
1995
1959
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assessmentReports/integrity";
|
|
1996
|
-
body = JSON.stringify(__assign({}, (input.s3RelativePath
|
|
1997
|
-
input.s3RelativePath !== null && { s3RelativePath: input.s3RelativePath })));
|
|
1960
|
+
body = JSON.stringify(__assign({}, (input.s3RelativePath != null && { s3RelativePath: input.s3RelativePath })));
|
|
1998
1961
|
return [2, new __HttpRequest({
|
|
1999
1962
|
protocol: protocol,
|
|
2000
1963
|
hostname: hostname,
|
|
@@ -6257,11 +6220,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
6257
6220
|
});
|
|
6258
6221
|
}); };
|
|
6259
6222
|
var serializeAws_restJson1AssessmentReportsDestination = function (input, context) {
|
|
6260
|
-
return __assign(__assign({}, (input.destination
|
|
6261
|
-
input.destinationType !== null && { destinationType: input.destinationType }));
|
|
6223
|
+
return __assign(__assign({}, (input.destination != null && { destination: input.destination })), (input.destinationType != null && { destinationType: input.destinationType }));
|
|
6262
6224
|
};
|
|
6263
6225
|
var serializeAws_restJson1AWSAccount = function (input, context) {
|
|
6264
|
-
return __assign(__assign(__assign({}, (input.emailAddress
|
|
6226
|
+
return __assign(__assign(__assign({}, (input.emailAddress != null && { emailAddress: input.emailAddress })), (input.id != null && { id: input.id })), (input.name != null && { name: input.name }));
|
|
6265
6227
|
};
|
|
6266
6228
|
var serializeAws_restJson1AWSAccounts = function (input, context) {
|
|
6267
6229
|
return input
|
|
@@ -6274,7 +6236,7 @@ var serializeAws_restJson1AWSAccounts = function (input, context) {
|
|
|
6274
6236
|
});
|
|
6275
6237
|
};
|
|
6276
6238
|
var serializeAws_restJson1AWSService = function (input, context) {
|
|
6277
|
-
return __assign({}, (input.serviceName
|
|
6239
|
+
return __assign({}, (input.serviceName != null && { serviceName: input.serviceName }));
|
|
6278
6240
|
};
|
|
6279
6241
|
var serializeAws_restJson1AWSServices = function (input, context) {
|
|
6280
6242
|
return input
|
|
@@ -6287,14 +6249,9 @@ var serializeAws_restJson1AWSServices = function (input, context) {
|
|
|
6287
6249
|
});
|
|
6288
6250
|
};
|
|
6289
6251
|
var serializeAws_restJson1ControlMappingSource = function (input, context) {
|
|
6290
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.sourceDescription
|
|
6291
|
-
input.sourceDescription !== null && { sourceDescription: input.sourceDescription })), (input.sourceFrequency !== undefined &&
|
|
6292
|
-
input.sourceFrequency !== null && { sourceFrequency: input.sourceFrequency })), (input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId })), (input.sourceKeyword !== undefined &&
|
|
6293
|
-
input.sourceKeyword !== null && {
|
|
6252
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.sourceDescription != null && { sourceDescription: input.sourceDescription })), (input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency })), (input.sourceId != null && { sourceId: input.sourceId })), (input.sourceKeyword != null && {
|
|
6294
6253
|
sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
|
|
6295
|
-
})), (input.sourceName
|
|
6296
|
-
input.sourceSetUpOption !== null && { sourceSetUpOption: input.sourceSetUpOption })), (input.sourceType !== undefined && input.sourceType !== null && { sourceType: input.sourceType })), (input.troubleshootingText !== undefined &&
|
|
6297
|
-
input.troubleshootingText !== null && { troubleshootingText: input.troubleshootingText }));
|
|
6254
|
+
})), (input.sourceName != null && { sourceName: input.sourceName })), (input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption })), (input.sourceType != null && { sourceType: input.sourceType })), (input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }));
|
|
6298
6255
|
};
|
|
6299
6256
|
var serializeAws_restJson1ControlMappingSources = function (input, context) {
|
|
6300
6257
|
return input
|
|
@@ -6307,7 +6264,7 @@ var serializeAws_restJson1ControlMappingSources = function (input, context) {
|
|
|
6307
6264
|
});
|
|
6308
6265
|
};
|
|
6309
6266
|
var serializeAws_restJson1CreateAssessmentFrameworkControl = function (input, context) {
|
|
6310
|
-
return __assign({}, (input.id
|
|
6267
|
+
return __assign({}, (input.id != null && { id: input.id }));
|
|
6311
6268
|
};
|
|
6312
6269
|
var serializeAws_restJson1CreateAssessmentFrameworkControls = function (input, context) {
|
|
6313
6270
|
return input
|
|
@@ -6320,10 +6277,9 @@ var serializeAws_restJson1CreateAssessmentFrameworkControls = function (input, c
|
|
|
6320
6277
|
});
|
|
6321
6278
|
};
|
|
6322
6279
|
var serializeAws_restJson1CreateAssessmentFrameworkControlSet = function (input, context) {
|
|
6323
|
-
return __assign(__assign({}, (input.controls
|
|
6324
|
-
input.controls !== null && {
|
|
6280
|
+
return __assign(__assign({}, (input.controls != null && {
|
|
6325
6281
|
controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
|
|
6326
|
-
})), (input.name
|
|
6282
|
+
})), (input.name != null && { name: input.name }));
|
|
6327
6283
|
};
|
|
6328
6284
|
var serializeAws_restJson1CreateAssessmentFrameworkControlSets = function (input, context) {
|
|
6329
6285
|
return input
|
|
@@ -6336,14 +6292,9 @@ var serializeAws_restJson1CreateAssessmentFrameworkControlSets = function (input
|
|
|
6336
6292
|
});
|
|
6337
6293
|
};
|
|
6338
6294
|
var serializeAws_restJson1CreateControlMappingSource = function (input, context) {
|
|
6339
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.sourceDescription
|
|
6340
|
-
input.sourceDescription !== null && { sourceDescription: input.sourceDescription })), (input.sourceFrequency !== undefined &&
|
|
6341
|
-
input.sourceFrequency !== null && { sourceFrequency: input.sourceFrequency })), (input.sourceKeyword !== undefined &&
|
|
6342
|
-
input.sourceKeyword !== null && {
|
|
6295
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.sourceDescription != null && { sourceDescription: input.sourceDescription })), (input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency })), (input.sourceKeyword != null && {
|
|
6343
6296
|
sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
|
|
6344
|
-
})), (input.sourceName
|
|
6345
|
-
input.sourceSetUpOption !== null && { sourceSetUpOption: input.sourceSetUpOption })), (input.sourceType !== undefined && input.sourceType !== null && { sourceType: input.sourceType })), (input.troubleshootingText !== undefined &&
|
|
6346
|
-
input.troubleshootingText !== null && { troubleshootingText: input.troubleshootingText }));
|
|
6297
|
+
})), (input.sourceName != null && { sourceName: input.sourceName })), (input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption })), (input.sourceType != null && { sourceType: input.sourceType })), (input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }));
|
|
6347
6298
|
};
|
|
6348
6299
|
var serializeAws_restJson1CreateControlMappingSources = function (input, context) {
|
|
6349
6300
|
return input
|
|
@@ -6356,7 +6307,7 @@ var serializeAws_restJson1CreateControlMappingSources = function (input, context
|
|
|
6356
6307
|
});
|
|
6357
6308
|
};
|
|
6358
6309
|
var serializeAws_restJson1CreateDelegationRequest = function (input, context) {
|
|
6359
|
-
return __assign(__assign(__assign(__assign({}, (input.comment
|
|
6310
|
+
return __assign(__assign(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.controlSetId != null && { controlSetId: input.controlSetId })), (input.roleArn != null && { roleArn: input.roleArn })), (input.roleType != null && { roleType: input.roleType }));
|
|
6360
6311
|
};
|
|
6361
6312
|
var serializeAws_restJson1CreateDelegationRequests = function (input, context) {
|
|
6362
6313
|
return input
|
|
@@ -6389,8 +6340,7 @@ var serializeAws_restJson1EvidenceIds = function (input, context) {
|
|
|
6389
6340
|
});
|
|
6390
6341
|
};
|
|
6391
6342
|
var serializeAws_restJson1ManualEvidence = function (input, context) {
|
|
6392
|
-
return __assign({}, (input.s3ResourcePath
|
|
6393
|
-
input.s3ResourcePath !== null && { s3ResourcePath: input.s3ResourcePath }));
|
|
6343
|
+
return __assign({}, (input.s3ResourcePath != null && { s3ResourcePath: input.s3ResourcePath }));
|
|
6394
6344
|
};
|
|
6395
6345
|
var serializeAws_restJson1ManualEvidenceList = function (input, context) {
|
|
6396
6346
|
return input
|
|
@@ -6403,7 +6353,7 @@ var serializeAws_restJson1ManualEvidenceList = function (input, context) {
|
|
|
6403
6353
|
});
|
|
6404
6354
|
};
|
|
6405
6355
|
var serializeAws_restJson1Role = function (input, context) {
|
|
6406
|
-
return __assign(__assign({}, (input.roleArn
|
|
6356
|
+
return __assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.roleType != null && { roleType: input.roleType }));
|
|
6407
6357
|
};
|
|
6408
6358
|
var serializeAws_restJson1Roles = function (input, context) {
|
|
6409
6359
|
return input
|
|
@@ -6416,13 +6366,10 @@ var serializeAws_restJson1Roles = function (input, context) {
|
|
|
6416
6366
|
});
|
|
6417
6367
|
};
|
|
6418
6368
|
var serializeAws_restJson1Scope = function (input, context) {
|
|
6419
|
-
return __assign(__assign({}, (input.awsAccounts
|
|
6420
|
-
input.awsAccounts !== null && { awsAccounts: serializeAws_restJson1AWSAccounts(input.awsAccounts, context) })), (input.awsServices !== undefined &&
|
|
6421
|
-
input.awsServices !== null && { awsServices: serializeAws_restJson1AWSServices(input.awsServices, context) }));
|
|
6369
|
+
return __assign(__assign({}, (input.awsAccounts != null && { awsAccounts: serializeAws_restJson1AWSAccounts(input.awsAccounts, context) })), (input.awsServices != null && { awsServices: serializeAws_restJson1AWSServices(input.awsServices, context) }));
|
|
6422
6370
|
};
|
|
6423
6371
|
var serializeAws_restJson1SourceKeyword = function (input, context) {
|
|
6424
|
-
return __assign(__assign({}, (input.keywordInputType
|
|
6425
|
-
input.keywordInputType !== null && { keywordInputType: input.keywordInputType })), (input.keywordValue !== undefined && input.keywordValue !== null && { keywordValue: input.keywordValue }));
|
|
6372
|
+
return __assign(__assign({}, (input.keywordInputType != null && { keywordInputType: input.keywordInputType })), (input.keywordValue != null && { keywordValue: input.keywordValue }));
|
|
6426
6373
|
};
|
|
6427
6374
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
6428
6375
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -6435,10 +6382,9 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
6435
6382
|
}, {});
|
|
6436
6383
|
};
|
|
6437
6384
|
var serializeAws_restJson1UpdateAssessmentFrameworkControlSet = function (input, context) {
|
|
6438
|
-
return __assign(__assign(__assign({}, (input.controls
|
|
6439
|
-
input.controls !== null && {
|
|
6385
|
+
return __assign(__assign(__assign({}, (input.controls != null && {
|
|
6440
6386
|
controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
|
|
6441
|
-
})), (input.id
|
|
6387
|
+
})), (input.id != null && { id: input.id })), (input.name != null && { name: input.name }));
|
|
6442
6388
|
};
|
|
6443
6389
|
var serializeAws_restJson1UpdateAssessmentFrameworkControlSets = function (input, context) {
|
|
6444
6390
|
return input
|
|
@@ -6453,29 +6399,19 @@ var serializeAws_restJson1UpdateAssessmentFrameworkControlSets = function (input
|
|
|
6453
6399
|
var deserializeAws_restJson1Assessment = function (output, context) {
|
|
6454
6400
|
return {
|
|
6455
6401
|
arn: __expectString(output.arn),
|
|
6456
|
-
awsAccount: output.awsAccount
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
? deserializeAws_restJson1AssessmentFramework(output.framework, context)
|
|
6461
|
-
: undefined,
|
|
6462
|
-
metadata: output.metadata !== undefined && output.metadata !== null
|
|
6463
|
-
? deserializeAws_restJson1AssessmentMetadata(output.metadata, context)
|
|
6464
|
-
: undefined,
|
|
6465
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6466
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6467
|
-
: undefined,
|
|
6402
|
+
awsAccount: output.awsAccount != null ? deserializeAws_restJson1AWSAccount(output.awsAccount, context) : undefined,
|
|
6403
|
+
framework: output.framework != null ? deserializeAws_restJson1AssessmentFramework(output.framework, context) : undefined,
|
|
6404
|
+
metadata: output.metadata != null ? deserializeAws_restJson1AssessmentMetadata(output.metadata, context) : undefined,
|
|
6405
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6468
6406
|
};
|
|
6469
6407
|
};
|
|
6470
6408
|
var deserializeAws_restJson1AssessmentControl = function (output, context) {
|
|
6471
6409
|
return {
|
|
6472
6410
|
assessmentReportEvidenceCount: __expectInt32(output.assessmentReportEvidenceCount),
|
|
6473
|
-
comments: output.comments
|
|
6474
|
-
? deserializeAws_restJson1ControlComments(output.comments, context)
|
|
6475
|
-
: undefined,
|
|
6411
|
+
comments: output.comments != null ? deserializeAws_restJson1ControlComments(output.comments, context) : undefined,
|
|
6476
6412
|
description: __expectString(output.description),
|
|
6477
6413
|
evidenceCount: __expectInt32(output.evidenceCount),
|
|
6478
|
-
evidenceSources: output.evidenceSources
|
|
6414
|
+
evidenceSources: output.evidenceSources != null
|
|
6479
6415
|
? deserializeAws_restJson1EvidenceSources(output.evidenceSources, context)
|
|
6480
6416
|
: undefined,
|
|
6481
6417
|
id: __expectString(output.id),
|
|
@@ -6497,18 +6433,12 @@ var deserializeAws_restJson1AssessmentControls = function (output, context) {
|
|
|
6497
6433
|
};
|
|
6498
6434
|
var deserializeAws_restJson1AssessmentControlSet = function (output, context) {
|
|
6499
6435
|
return {
|
|
6500
|
-
controls: output.controls
|
|
6501
|
-
|
|
6502
|
-
: undefined,
|
|
6503
|
-
delegations: output.delegations !== undefined && output.delegations !== null
|
|
6504
|
-
? deserializeAws_restJson1Delegations(output.delegations, context)
|
|
6505
|
-
: undefined,
|
|
6436
|
+
controls: output.controls != null ? deserializeAws_restJson1AssessmentControls(output.controls, context) : undefined,
|
|
6437
|
+
delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
|
|
6506
6438
|
description: __expectString(output.description),
|
|
6507
6439
|
id: __expectString(output.id),
|
|
6508
6440
|
manualEvidenceCount: __expectInt32(output.manualEvidenceCount),
|
|
6509
|
-
roles: output.roles
|
|
6510
|
-
? deserializeAws_restJson1Roles(output.roles, context)
|
|
6511
|
-
: undefined,
|
|
6441
|
+
roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
|
|
6512
6442
|
status: __expectString(output.status),
|
|
6513
6443
|
systemEvidenceCount: __expectInt32(output.systemEvidenceCount),
|
|
6514
6444
|
};
|
|
@@ -6533,9 +6463,7 @@ var deserializeAws_restJson1AssessmentEvidenceFolder = function (output, context
|
|
|
6533
6463
|
controlName: __expectString(output.controlName),
|
|
6534
6464
|
controlSetId: __expectString(output.controlSetId),
|
|
6535
6465
|
dataSource: __expectString(output.dataSource),
|
|
6536
|
-
date: output.date
|
|
6537
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.date)))
|
|
6538
|
-
: undefined,
|
|
6466
|
+
date: output.date != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.date))) : undefined,
|
|
6539
6467
|
evidenceAwsServiceSourceCount: __expectInt32(output.evidenceAwsServiceSourceCount),
|
|
6540
6468
|
evidenceByTypeComplianceCheckCount: __expectInt32(output.evidenceByTypeComplianceCheckCount),
|
|
6541
6469
|
evidenceByTypeComplianceCheckIssuesCount: __expectInt32(output.evidenceByTypeComplianceCheckIssuesCount),
|
|
@@ -6562,13 +6490,11 @@ var deserializeAws_restJson1AssessmentEvidenceFolders = function (output, contex
|
|
|
6562
6490
|
var deserializeAws_restJson1AssessmentFramework = function (output, context) {
|
|
6563
6491
|
return {
|
|
6564
6492
|
arn: __expectString(output.arn),
|
|
6565
|
-
controlSets: output.controlSets
|
|
6493
|
+
controlSets: output.controlSets != null
|
|
6566
6494
|
? deserializeAws_restJson1AssessmentControlSets(output.controlSets, context)
|
|
6567
6495
|
: undefined,
|
|
6568
6496
|
id: __expectString(output.id),
|
|
6569
|
-
metadata: output.metadata
|
|
6570
|
-
? deserializeAws_restJson1FrameworkMetadata(output.metadata, context)
|
|
6571
|
-
: undefined,
|
|
6497
|
+
metadata: output.metadata != null ? deserializeAws_restJson1FrameworkMetadata(output.metadata, context) : undefined,
|
|
6572
6498
|
};
|
|
6573
6499
|
};
|
|
6574
6500
|
var deserializeAws_restJson1AssessmentFrameworkMetadata = function (output, context) {
|
|
@@ -6577,12 +6503,10 @@ var deserializeAws_restJson1AssessmentFrameworkMetadata = function (output, cont
|
|
|
6577
6503
|
complianceType: __expectString(output.complianceType),
|
|
6578
6504
|
controlSetsCount: __expectInt32(output.controlSetsCount),
|
|
6579
6505
|
controlsCount: __expectInt32(output.controlsCount),
|
|
6580
|
-
createdAt: output.createdAt
|
|
6581
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
6582
|
-
: undefined,
|
|
6506
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6583
6507
|
description: __expectString(output.description),
|
|
6584
6508
|
id: __expectString(output.id),
|
|
6585
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
6509
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6586
6510
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6587
6511
|
: undefined,
|
|
6588
6512
|
logo: __expectString(output.logo),
|
|
@@ -6594,20 +6518,20 @@ var deserializeAws_restJson1AssessmentFrameworkShareRequest = function (output,
|
|
|
6594
6518
|
return {
|
|
6595
6519
|
comment: __expectString(output.comment),
|
|
6596
6520
|
complianceType: __expectString(output.complianceType),
|
|
6597
|
-
creationTime: output.creationTime
|
|
6521
|
+
creationTime: output.creationTime != null
|
|
6598
6522
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
6599
6523
|
: undefined,
|
|
6600
6524
|
customControlsCount: __expectInt32(output.customControlsCount),
|
|
6601
6525
|
destinationAccount: __expectString(output.destinationAccount),
|
|
6602
6526
|
destinationRegion: __expectString(output.destinationRegion),
|
|
6603
|
-
expirationTime: output.expirationTime
|
|
6527
|
+
expirationTime: output.expirationTime != null
|
|
6604
6528
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expirationTime)))
|
|
6605
6529
|
: undefined,
|
|
6606
6530
|
frameworkDescription: __expectString(output.frameworkDescription),
|
|
6607
6531
|
frameworkId: __expectString(output.frameworkId),
|
|
6608
6532
|
frameworkName: __expectString(output.frameworkName),
|
|
6609
6533
|
id: __expectString(output.id),
|
|
6610
|
-
lastUpdated: output.lastUpdated
|
|
6534
|
+
lastUpdated: output.lastUpdated != null
|
|
6611
6535
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
6612
6536
|
: undefined,
|
|
6613
6537
|
sourceAccount: __expectString(output.sourceAccount),
|
|
@@ -6628,48 +6552,38 @@ var deserializeAws_restJson1AssessmentFrameworkShareRequestList = function (outp
|
|
|
6628
6552
|
};
|
|
6629
6553
|
var deserializeAws_restJson1AssessmentMetadata = function (output, context) {
|
|
6630
6554
|
return {
|
|
6631
|
-
assessmentReportsDestination: output.assessmentReportsDestination
|
|
6555
|
+
assessmentReportsDestination: output.assessmentReportsDestination != null
|
|
6632
6556
|
? deserializeAws_restJson1AssessmentReportsDestination(output.assessmentReportsDestination, context)
|
|
6633
6557
|
: undefined,
|
|
6634
6558
|
complianceType: __expectString(output.complianceType),
|
|
6635
|
-
creationTime: output.creationTime
|
|
6559
|
+
creationTime: output.creationTime != null
|
|
6636
6560
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
6637
6561
|
: undefined,
|
|
6638
|
-
delegations: output.delegations
|
|
6639
|
-
? deserializeAws_restJson1Delegations(output.delegations, context)
|
|
6640
|
-
: undefined,
|
|
6562
|
+
delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
|
|
6641
6563
|
description: __expectString(output.description),
|
|
6642
6564
|
id: __expectString(output.id),
|
|
6643
|
-
lastUpdated: output.lastUpdated
|
|
6565
|
+
lastUpdated: output.lastUpdated != null
|
|
6644
6566
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
6645
6567
|
: undefined,
|
|
6646
6568
|
name: __expectString(output.name),
|
|
6647
|
-
roles: output.roles
|
|
6648
|
-
|
|
6649
|
-
: undefined,
|
|
6650
|
-
scope: output.scope !== undefined && output.scope !== null
|
|
6651
|
-
? deserializeAws_restJson1Scope(output.scope, context)
|
|
6652
|
-
: undefined,
|
|
6569
|
+
roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
|
|
6570
|
+
scope: output.scope != null ? deserializeAws_restJson1Scope(output.scope, context) : undefined,
|
|
6653
6571
|
status: __expectString(output.status),
|
|
6654
6572
|
};
|
|
6655
6573
|
};
|
|
6656
6574
|
var deserializeAws_restJson1AssessmentMetadataItem = function (output, context) {
|
|
6657
6575
|
return {
|
|
6658
6576
|
complianceType: __expectString(output.complianceType),
|
|
6659
|
-
creationTime: output.creationTime
|
|
6577
|
+
creationTime: output.creationTime != null
|
|
6660
6578
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
6661
6579
|
: undefined,
|
|
6662
|
-
delegations: output.delegations
|
|
6663
|
-
? deserializeAws_restJson1Delegations(output.delegations, context)
|
|
6664
|
-
: undefined,
|
|
6580
|
+
delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
|
|
6665
6581
|
id: __expectString(output.id),
|
|
6666
|
-
lastUpdated: output.lastUpdated
|
|
6582
|
+
lastUpdated: output.lastUpdated != null
|
|
6667
6583
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
6668
6584
|
: undefined,
|
|
6669
6585
|
name: __expectString(output.name),
|
|
6670
|
-
roles: output.roles
|
|
6671
|
-
? deserializeAws_restJson1Roles(output.roles, context)
|
|
6672
|
-
: undefined,
|
|
6586
|
+
roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
|
|
6673
6587
|
status: __expectString(output.status),
|
|
6674
6588
|
};
|
|
6675
6589
|
};
|
|
@@ -6679,7 +6593,7 @@ var deserializeAws_restJson1AssessmentReport = function (output, context) {
|
|
|
6679
6593
|
assessmentName: __expectString(output.assessmentName),
|
|
6680
6594
|
author: __expectString(output.author),
|
|
6681
6595
|
awsAccountId: __expectString(output.awsAccountId),
|
|
6682
|
-
creationTime: output.creationTime
|
|
6596
|
+
creationTime: output.creationTime != null
|
|
6683
6597
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
6684
6598
|
: undefined,
|
|
6685
6599
|
description: __expectString(output.description),
|
|
@@ -6711,7 +6625,7 @@ var deserializeAws_restJson1AssessmentReportMetadata = function (output, context
|
|
|
6711
6625
|
assessmentId: __expectString(output.assessmentId),
|
|
6712
6626
|
assessmentName: __expectString(output.assessmentName),
|
|
6713
6627
|
author: __expectString(output.author),
|
|
6714
|
-
creationTime: output.creationTime
|
|
6628
|
+
creationTime: output.creationTime != null
|
|
6715
6629
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
6716
6630
|
: undefined,
|
|
6717
6631
|
description: __expectString(output.description),
|
|
@@ -6773,7 +6687,7 @@ var deserializeAws_restJson1AWSServices = function (output, context) {
|
|
|
6773
6687
|
};
|
|
6774
6688
|
var deserializeAws_restJson1BatchCreateDelegationByAssessmentError = function (output, context) {
|
|
6775
6689
|
return {
|
|
6776
|
-
createDelegationRequest: output.createDelegationRequest
|
|
6690
|
+
createDelegationRequest: output.createDelegationRequest != null
|
|
6777
6691
|
? deserializeAws_restJson1CreateDelegationRequest(output.createDelegationRequest, context)
|
|
6778
6692
|
: undefined,
|
|
6779
6693
|
errorCode: __expectString(output.errorCode),
|
|
@@ -6813,7 +6727,7 @@ var deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError = functi
|
|
|
6813
6727
|
return {
|
|
6814
6728
|
errorCode: __expectString(output.errorCode),
|
|
6815
6729
|
errorMessage: __expectString(output.errorMessage),
|
|
6816
|
-
manualEvidence: output.manualEvidence
|
|
6730
|
+
manualEvidence: output.manualEvidence != null
|
|
6817
6731
|
? deserializeAws_restJson1ManualEvidence(output.manualEvidence, context)
|
|
6818
6732
|
: undefined,
|
|
6819
6733
|
};
|
|
@@ -6832,9 +6746,7 @@ var deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors = funct
|
|
|
6832
6746
|
var deserializeAws_restJson1ChangeLog = function (output, context) {
|
|
6833
6747
|
return {
|
|
6834
6748
|
action: __expectString(output.action),
|
|
6835
|
-
createdAt: output.createdAt
|
|
6836
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
6837
|
-
: undefined,
|
|
6749
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6838
6750
|
createdBy: __expectString(output.createdBy),
|
|
6839
6751
|
objectName: __expectString(output.objectName),
|
|
6840
6752
|
objectType: __expectString(output.objectType),
|
|
@@ -6856,24 +6768,20 @@ var deserializeAws_restJson1Control = function (output, context) {
|
|
|
6856
6768
|
actionPlanInstructions: __expectString(output.actionPlanInstructions),
|
|
6857
6769
|
actionPlanTitle: __expectString(output.actionPlanTitle),
|
|
6858
6770
|
arn: __expectString(output.arn),
|
|
6859
|
-
controlMappingSources: output.controlMappingSources
|
|
6771
|
+
controlMappingSources: output.controlMappingSources != null
|
|
6860
6772
|
? deserializeAws_restJson1ControlMappingSources(output.controlMappingSources, context)
|
|
6861
6773
|
: undefined,
|
|
6862
6774
|
controlSources: __expectString(output.controlSources),
|
|
6863
|
-
createdAt: output.createdAt
|
|
6864
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
6865
|
-
: undefined,
|
|
6775
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6866
6776
|
createdBy: __expectString(output.createdBy),
|
|
6867
6777
|
description: __expectString(output.description),
|
|
6868
6778
|
id: __expectString(output.id),
|
|
6869
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
6779
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6870
6780
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6871
6781
|
: undefined,
|
|
6872
6782
|
lastUpdatedBy: __expectString(output.lastUpdatedBy),
|
|
6873
6783
|
name: __expectString(output.name),
|
|
6874
|
-
tags: output.tags
|
|
6875
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6876
|
-
: undefined,
|
|
6784
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6877
6785
|
testingInformation: __expectString(output.testingInformation),
|
|
6878
6786
|
type: __expectString(output.type),
|
|
6879
6787
|
};
|
|
@@ -6882,9 +6790,7 @@ var deserializeAws_restJson1ControlComment = function (output, context) {
|
|
|
6882
6790
|
return {
|
|
6883
6791
|
authorName: __expectString(output.authorName),
|
|
6884
6792
|
commentBody: __expectString(output.commentBody),
|
|
6885
|
-
postedDate: output.postedDate
|
|
6886
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.postedDate)))
|
|
6887
|
-
: undefined,
|
|
6793
|
+
postedDate: output.postedDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.postedDate))) : undefined,
|
|
6888
6794
|
};
|
|
6889
6795
|
};
|
|
6890
6796
|
var deserializeAws_restJson1ControlComments = function (output, context) {
|
|
@@ -6901,11 +6807,11 @@ var deserializeAws_restJson1ControlComments = function (output, context) {
|
|
|
6901
6807
|
var deserializeAws_restJson1ControlDomainInsights = function (output, context) {
|
|
6902
6808
|
return {
|
|
6903
6809
|
controlsCountByNoncompliantEvidence: __expectInt32(output.controlsCountByNoncompliantEvidence),
|
|
6904
|
-
evidenceInsights: output.evidenceInsights
|
|
6810
|
+
evidenceInsights: output.evidenceInsights != null
|
|
6905
6811
|
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
6906
6812
|
: undefined,
|
|
6907
6813
|
id: __expectString(output.id),
|
|
6908
|
-
lastUpdated: output.lastUpdated
|
|
6814
|
+
lastUpdated: output.lastUpdated != null
|
|
6909
6815
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
6910
6816
|
: undefined,
|
|
6911
6817
|
name: __expectString(output.name),
|
|
@@ -6948,11 +6854,11 @@ var deserializeAws_restJson1ControlInsightsMetadataByAssessment = function (outp
|
|
|
6948
6854
|
var deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = function (output, context) {
|
|
6949
6855
|
return {
|
|
6950
6856
|
controlSetName: __expectString(output.controlSetName),
|
|
6951
|
-
evidenceInsights: output.evidenceInsights
|
|
6857
|
+
evidenceInsights: output.evidenceInsights != null
|
|
6952
6858
|
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
6953
6859
|
: undefined,
|
|
6954
6860
|
id: __expectString(output.id),
|
|
6955
|
-
lastUpdated: output.lastUpdated
|
|
6861
|
+
lastUpdated: output.lastUpdated != null
|
|
6956
6862
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
6957
6863
|
: undefined,
|
|
6958
6864
|
name: __expectString(output.name),
|
|
@@ -6960,11 +6866,11 @@ var deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = function (
|
|
|
6960
6866
|
};
|
|
6961
6867
|
var deserializeAws_restJson1ControlInsightsMetadataItem = function (output, context) {
|
|
6962
6868
|
return {
|
|
6963
|
-
evidenceInsights: output.evidenceInsights
|
|
6869
|
+
evidenceInsights: output.evidenceInsights != null
|
|
6964
6870
|
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
6965
6871
|
: undefined,
|
|
6966
6872
|
id: __expectString(output.id),
|
|
6967
|
-
lastUpdated: output.lastUpdated
|
|
6873
|
+
lastUpdated: output.lastUpdated != null
|
|
6968
6874
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
6969
6875
|
: undefined,
|
|
6970
6876
|
name: __expectString(output.name),
|
|
@@ -6975,9 +6881,7 @@ var deserializeAws_restJson1ControlMappingSource = function (output, context) {
|
|
|
6975
6881
|
sourceDescription: __expectString(output.sourceDescription),
|
|
6976
6882
|
sourceFrequency: __expectString(output.sourceFrequency),
|
|
6977
6883
|
sourceId: __expectString(output.sourceId),
|
|
6978
|
-
sourceKeyword: output.sourceKeyword
|
|
6979
|
-
? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context)
|
|
6980
|
-
: undefined,
|
|
6884
|
+
sourceKeyword: output.sourceKeyword != null ? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context) : undefined,
|
|
6981
6885
|
sourceName: __expectString(output.sourceName),
|
|
6982
6886
|
sourceSetUpOption: __expectString(output.sourceSetUpOption),
|
|
6983
6887
|
sourceType: __expectString(output.sourceType),
|
|
@@ -6999,11 +6903,9 @@ var deserializeAws_restJson1ControlMetadata = function (output, context) {
|
|
|
6999
6903
|
return {
|
|
7000
6904
|
arn: __expectString(output.arn),
|
|
7001
6905
|
controlSources: __expectString(output.controlSources),
|
|
7002
|
-
createdAt: output.createdAt
|
|
7003
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
7004
|
-
: undefined,
|
|
6906
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
7005
6907
|
id: __expectString(output.id),
|
|
7006
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
6908
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7007
6909
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7008
6910
|
: undefined,
|
|
7009
6911
|
name: __expectString(output.name),
|
|
@@ -7033,9 +6935,7 @@ var deserializeAws_restJson1Controls = function (output, context) {
|
|
|
7033
6935
|
};
|
|
7034
6936
|
var deserializeAws_restJson1ControlSet = function (output, context) {
|
|
7035
6937
|
return {
|
|
7036
|
-
controls: output.controls
|
|
7037
|
-
? deserializeAws_restJson1Controls(output.controls, context)
|
|
7038
|
-
: undefined,
|
|
6938
|
+
controls: output.controls != null ? deserializeAws_restJson1Controls(output.controls, context) : undefined,
|
|
7039
6939
|
id: __expectString(output.id),
|
|
7040
6940
|
name: __expectString(output.name),
|
|
7041
6941
|
};
|
|
@@ -7066,11 +6966,11 @@ var deserializeAws_restJson1Delegation = function (output, context) {
|
|
|
7066
6966
|
comment: __expectString(output.comment),
|
|
7067
6967
|
controlSetId: __expectString(output.controlSetId),
|
|
7068
6968
|
createdBy: __expectString(output.createdBy),
|
|
7069
|
-
creationTime: output.creationTime
|
|
6969
|
+
creationTime: output.creationTime != null
|
|
7070
6970
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
7071
6971
|
: undefined,
|
|
7072
6972
|
id: __expectString(output.id),
|
|
7073
|
-
lastUpdated: output.lastUpdated
|
|
6973
|
+
lastUpdated: output.lastUpdated != null
|
|
7074
6974
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7075
6975
|
: undefined,
|
|
7076
6976
|
roleArn: __expectString(output.roleArn),
|
|
@@ -7083,7 +6983,7 @@ var deserializeAws_restJson1DelegationMetadata = function (output, context) {
|
|
|
7083
6983
|
assessmentId: __expectString(output.assessmentId),
|
|
7084
6984
|
assessmentName: __expectString(output.assessmentName),
|
|
7085
6985
|
controlSetName: __expectString(output.controlSetName),
|
|
7086
|
-
creationTime: output.creationTime
|
|
6986
|
+
creationTime: output.creationTime != null
|
|
7087
6987
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
7088
6988
|
: undefined,
|
|
7089
6989
|
id: __expectString(output.id),
|
|
@@ -7116,9 +7016,7 @@ var deserializeAws_restJson1Delegations = function (output, context) {
|
|
|
7116
7016
|
var deserializeAws_restJson1Evidence = function (output, context) {
|
|
7117
7017
|
return {
|
|
7118
7018
|
assessmentReportSelection: __expectString(output.assessmentReportSelection),
|
|
7119
|
-
attributes: output.attributes
|
|
7120
|
-
? deserializeAws_restJson1EvidenceAttributes(output.attributes, context)
|
|
7121
|
-
: undefined,
|
|
7019
|
+
attributes: output.attributes != null ? deserializeAws_restJson1EvidenceAttributes(output.attributes, context) : undefined,
|
|
7122
7020
|
awsAccountId: __expectString(output.awsAccountId),
|
|
7123
7021
|
awsOrganization: __expectString(output.awsOrganization),
|
|
7124
7022
|
complianceCheck: __expectString(output.complianceCheck),
|
|
@@ -7130,12 +7028,10 @@ var deserializeAws_restJson1Evidence = function (output, context) {
|
|
|
7130
7028
|
evidenceFolderId: __expectString(output.evidenceFolderId),
|
|
7131
7029
|
iamId: __expectString(output.iamId),
|
|
7132
7030
|
id: __expectString(output.id),
|
|
7133
|
-
resourcesIncluded: output.resourcesIncluded
|
|
7031
|
+
resourcesIncluded: output.resourcesIncluded != null
|
|
7134
7032
|
? deserializeAws_restJson1Resources(output.resourcesIncluded, context)
|
|
7135
7033
|
: undefined,
|
|
7136
|
-
time: output.time
|
|
7137
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.time)))
|
|
7138
|
-
: undefined,
|
|
7034
|
+
time: output.time != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.time))) : undefined,
|
|
7139
7035
|
};
|
|
7140
7036
|
};
|
|
7141
7037
|
var deserializeAws_restJson1EvidenceAttributes = function (output, context) {
|
|
@@ -7192,25 +7088,19 @@ var deserializeAws_restJson1Framework = function (output, context) {
|
|
|
7192
7088
|
return {
|
|
7193
7089
|
arn: __expectString(output.arn),
|
|
7194
7090
|
complianceType: __expectString(output.complianceType),
|
|
7195
|
-
controlSets: output.controlSets
|
|
7196
|
-
? deserializeAws_restJson1ControlSets(output.controlSets, context)
|
|
7197
|
-
: undefined,
|
|
7091
|
+
controlSets: output.controlSets != null ? deserializeAws_restJson1ControlSets(output.controlSets, context) : undefined,
|
|
7198
7092
|
controlSources: __expectString(output.controlSources),
|
|
7199
|
-
createdAt: output.createdAt
|
|
7200
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
7201
|
-
: undefined,
|
|
7093
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
7202
7094
|
createdBy: __expectString(output.createdBy),
|
|
7203
7095
|
description: __expectString(output.description),
|
|
7204
7096
|
id: __expectString(output.id),
|
|
7205
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
7097
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7206
7098
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7207
7099
|
: undefined,
|
|
7208
7100
|
lastUpdatedBy: __expectString(output.lastUpdatedBy),
|
|
7209
7101
|
logo: __expectString(output.logo),
|
|
7210
7102
|
name: __expectString(output.name),
|
|
7211
|
-
tags: output.tags
|
|
7212
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
7213
|
-
: undefined,
|
|
7103
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
7214
7104
|
type: __expectString(output.type),
|
|
7215
7105
|
};
|
|
7216
7106
|
};
|
|
@@ -7239,7 +7129,7 @@ var deserializeAws_restJson1Insights = function (output, context) {
|
|
|
7239
7129
|
assessmentControlsCountByNoncompliantEvidence: __expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
|
|
7240
7130
|
compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
|
|
7241
7131
|
inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
|
|
7242
|
-
lastUpdated: output.lastUpdated
|
|
7132
|
+
lastUpdated: output.lastUpdated != null
|
|
7243
7133
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7244
7134
|
: undefined,
|
|
7245
7135
|
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
@@ -7251,7 +7141,7 @@ var deserializeAws_restJson1InsightsByAssessment = function (output, context) {
|
|
|
7251
7141
|
assessmentControlsCountByNoncompliantEvidence: __expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
|
|
7252
7142
|
compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
|
|
7253
7143
|
inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
|
|
7254
|
-
lastUpdated: output.lastUpdated
|
|
7144
|
+
lastUpdated: output.lastUpdated != null
|
|
7255
7145
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7256
7146
|
: undefined,
|
|
7257
7147
|
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
@@ -7292,9 +7182,7 @@ var deserializeAws_restJson1Notification = function (output, context) {
|
|
|
7292
7182
|
controlSetId: __expectString(output.controlSetId),
|
|
7293
7183
|
controlSetName: __expectString(output.controlSetName),
|
|
7294
7184
|
description: __expectString(output.description),
|
|
7295
|
-
eventTime: output.eventTime
|
|
7296
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
|
|
7297
|
-
: undefined,
|
|
7185
|
+
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
7298
7186
|
id: __expectString(output.id),
|
|
7299
7187
|
source: __expectString(output.source),
|
|
7300
7188
|
};
|
|
@@ -7346,12 +7234,8 @@ var deserializeAws_restJson1Roles = function (output, context) {
|
|
|
7346
7234
|
};
|
|
7347
7235
|
var deserializeAws_restJson1Scope = function (output, context) {
|
|
7348
7236
|
return {
|
|
7349
|
-
awsAccounts: output.awsAccounts
|
|
7350
|
-
|
|
7351
|
-
: undefined,
|
|
7352
|
-
awsServices: output.awsServices !== undefined && output.awsServices !== null
|
|
7353
|
-
? deserializeAws_restJson1AWSServices(output.awsServices, context)
|
|
7354
|
-
: undefined,
|
|
7237
|
+
awsAccounts: output.awsAccounts != null ? deserializeAws_restJson1AWSAccounts(output.awsAccounts, context) : undefined,
|
|
7238
|
+
awsServices: output.awsServices != null ? deserializeAws_restJson1AWSServices(output.awsServices, context) : undefined,
|
|
7355
7239
|
};
|
|
7356
7240
|
};
|
|
7357
7241
|
var deserializeAws_restJson1ServiceMetadata = function (output, context) {
|
|
@@ -7375,10 +7259,10 @@ var deserializeAws_restJson1ServiceMetadataList = function (output, context) {
|
|
|
7375
7259
|
};
|
|
7376
7260
|
var deserializeAws_restJson1Settings = function (output, context) {
|
|
7377
7261
|
return {
|
|
7378
|
-
defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination
|
|
7262
|
+
defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination != null
|
|
7379
7263
|
? deserializeAws_restJson1AssessmentReportsDestination(output.defaultAssessmentReportsDestination, context)
|
|
7380
7264
|
: undefined,
|
|
7381
|
-
defaultProcessOwners: output.defaultProcessOwners
|
|
7265
|
+
defaultProcessOwners: output.defaultProcessOwners != null
|
|
7382
7266
|
? deserializeAws_restJson1Roles(output.defaultProcessOwners, context)
|
|
7383
7267
|
: undefined,
|
|
7384
7268
|
isAwsOrgEnabled: __expectBoolean(output.isAwsOrgEnabled),
|