@aws-sdk/client-auditmanager 3.306.0 → 3.310.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.
Files changed (127) hide show
  1. package/dist-cjs/commands/AssociateAssessmentReportEvidenceFolderCommand.js +2 -2
  2. package/dist-cjs/commands/BatchAssociateAssessmentReportEvidenceCommand.js +2 -2
  3. package/dist-cjs/commands/BatchCreateDelegationByAssessmentCommand.js +2 -2
  4. package/dist-cjs/commands/BatchDeleteDelegationByAssessmentCommand.js +2 -2
  5. package/dist-cjs/commands/BatchDisassociateAssessmentReportEvidenceCommand.js +2 -2
  6. package/dist-cjs/commands/BatchImportEvidenceToAssessmentControlCommand.js +2 -2
  7. package/dist-cjs/commands/CreateAssessmentCommand.js +2 -2
  8. package/dist-cjs/commands/CreateAssessmentFrameworkCommand.js +2 -2
  9. package/dist-cjs/commands/CreateAssessmentReportCommand.js +2 -2
  10. package/dist-cjs/commands/CreateControlCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteAssessmentCommand.js +2 -2
  12. package/dist-cjs/commands/DeleteAssessmentFrameworkCommand.js +2 -2
  13. package/dist-cjs/commands/DeleteAssessmentFrameworkShareCommand.js +2 -2
  14. package/dist-cjs/commands/DeleteAssessmentReportCommand.js +2 -2
  15. package/dist-cjs/commands/DeleteControlCommand.js +2 -2
  16. package/dist-cjs/commands/DeregisterAccountCommand.js +2 -2
  17. package/dist-cjs/commands/DeregisterOrganizationAdminAccountCommand.js +2 -2
  18. package/dist-cjs/commands/DisassociateAssessmentReportEvidenceFolderCommand.js +2 -2
  19. package/dist-cjs/commands/GetAccountStatusCommand.js +2 -2
  20. package/dist-cjs/commands/GetAssessmentCommand.js +2 -2
  21. package/dist-cjs/commands/GetAssessmentFrameworkCommand.js +2 -2
  22. package/dist-cjs/commands/GetAssessmentReportUrlCommand.js +2 -2
  23. package/dist-cjs/commands/GetChangeLogsCommand.js +2 -2
  24. package/dist-cjs/commands/GetControlCommand.js +2 -2
  25. package/dist-cjs/commands/GetDelegationsCommand.js +2 -2
  26. package/dist-cjs/commands/GetEvidenceByEvidenceFolderCommand.js +2 -2
  27. package/dist-cjs/commands/GetEvidenceCommand.js +2 -2
  28. package/dist-cjs/commands/GetEvidenceFolderCommand.js +2 -2
  29. package/dist-cjs/commands/GetEvidenceFoldersByAssessmentCommand.js +2 -2
  30. package/dist-cjs/commands/GetEvidenceFoldersByAssessmentControlCommand.js +2 -2
  31. package/dist-cjs/commands/GetInsightsByAssessmentCommand.js +2 -2
  32. package/dist-cjs/commands/GetInsightsCommand.js +2 -2
  33. package/dist-cjs/commands/GetOrganizationAdminAccountCommand.js +2 -2
  34. package/dist-cjs/commands/GetServicesInScopeCommand.js +2 -2
  35. package/dist-cjs/commands/GetSettingsCommand.js +2 -2
  36. package/dist-cjs/commands/ListAssessmentControlInsightsByControlDomainCommand.js +2 -2
  37. package/dist-cjs/commands/ListAssessmentFrameworkShareRequestsCommand.js +2 -2
  38. package/dist-cjs/commands/ListAssessmentFrameworksCommand.js +2 -2
  39. package/dist-cjs/commands/ListAssessmentReportsCommand.js +2 -2
  40. package/dist-cjs/commands/ListAssessmentsCommand.js +2 -2
  41. package/dist-cjs/commands/ListControlDomainInsightsByAssessmentCommand.js +2 -2
  42. package/dist-cjs/commands/ListControlDomainInsightsCommand.js +2 -2
  43. package/dist-cjs/commands/ListControlInsightsByControlDomainCommand.js +2 -2
  44. package/dist-cjs/commands/ListControlsCommand.js +2 -2
  45. package/dist-cjs/commands/ListKeywordsForDataSourceCommand.js +2 -2
  46. package/dist-cjs/commands/ListNotificationsCommand.js +2 -2
  47. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  48. package/dist-cjs/commands/RegisterAccountCommand.js +2 -2
  49. package/dist-cjs/commands/RegisterOrganizationAdminAccountCommand.js +2 -2
  50. package/dist-cjs/commands/StartAssessmentFrameworkShareCommand.js +2 -2
  51. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  52. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  53. package/dist-cjs/commands/UpdateAssessmentCommand.js +2 -2
  54. package/dist-cjs/commands/UpdateAssessmentControlCommand.js +2 -2
  55. package/dist-cjs/commands/UpdateAssessmentControlSetStatusCommand.js +2 -2
  56. package/dist-cjs/commands/UpdateAssessmentFrameworkCommand.js +2 -2
  57. package/dist-cjs/commands/UpdateAssessmentFrameworkShareCommand.js +2 -2
  58. package/dist-cjs/commands/UpdateAssessmentStatusCommand.js +2 -2
  59. package/dist-cjs/commands/UpdateControlCommand.js +2 -2
  60. package/dist-cjs/commands/UpdateSettingsCommand.js +2 -2
  61. package/dist-cjs/commands/ValidateAssessmentReportIntegrityCommand.js +2 -2
  62. package/dist-cjs/protocols/Aws_restJson1.js +871 -903
  63. package/dist-es/commands/AssociateAssessmentReportEvidenceFolderCommand.js +3 -3
  64. package/dist-es/commands/BatchAssociateAssessmentReportEvidenceCommand.js +3 -3
  65. package/dist-es/commands/BatchCreateDelegationByAssessmentCommand.js +3 -3
  66. package/dist-es/commands/BatchDeleteDelegationByAssessmentCommand.js +3 -3
  67. package/dist-es/commands/BatchDisassociateAssessmentReportEvidenceCommand.js +3 -3
  68. package/dist-es/commands/BatchImportEvidenceToAssessmentControlCommand.js +3 -3
  69. package/dist-es/commands/CreateAssessmentCommand.js +3 -3
  70. package/dist-es/commands/CreateAssessmentFrameworkCommand.js +3 -3
  71. package/dist-es/commands/CreateAssessmentReportCommand.js +3 -3
  72. package/dist-es/commands/CreateControlCommand.js +3 -3
  73. package/dist-es/commands/DeleteAssessmentCommand.js +3 -3
  74. package/dist-es/commands/DeleteAssessmentFrameworkCommand.js +3 -3
  75. package/dist-es/commands/DeleteAssessmentFrameworkShareCommand.js +3 -3
  76. package/dist-es/commands/DeleteAssessmentReportCommand.js +3 -3
  77. package/dist-es/commands/DeleteControlCommand.js +3 -3
  78. package/dist-es/commands/DeregisterAccountCommand.js +3 -3
  79. package/dist-es/commands/DeregisterOrganizationAdminAccountCommand.js +3 -3
  80. package/dist-es/commands/DisassociateAssessmentReportEvidenceFolderCommand.js +3 -3
  81. package/dist-es/commands/GetAccountStatusCommand.js +3 -3
  82. package/dist-es/commands/GetAssessmentCommand.js +3 -3
  83. package/dist-es/commands/GetAssessmentFrameworkCommand.js +3 -3
  84. package/dist-es/commands/GetAssessmentReportUrlCommand.js +3 -3
  85. package/dist-es/commands/GetChangeLogsCommand.js +3 -3
  86. package/dist-es/commands/GetControlCommand.js +3 -3
  87. package/dist-es/commands/GetDelegationsCommand.js +3 -3
  88. package/dist-es/commands/GetEvidenceByEvidenceFolderCommand.js +3 -3
  89. package/dist-es/commands/GetEvidenceCommand.js +3 -3
  90. package/dist-es/commands/GetEvidenceFolderCommand.js +3 -3
  91. package/dist-es/commands/GetEvidenceFoldersByAssessmentCommand.js +3 -3
  92. package/dist-es/commands/GetEvidenceFoldersByAssessmentControlCommand.js +3 -3
  93. package/dist-es/commands/GetInsightsByAssessmentCommand.js +3 -3
  94. package/dist-es/commands/GetInsightsCommand.js +3 -3
  95. package/dist-es/commands/GetOrganizationAdminAccountCommand.js +3 -3
  96. package/dist-es/commands/GetServicesInScopeCommand.js +3 -3
  97. package/dist-es/commands/GetSettingsCommand.js +3 -3
  98. package/dist-es/commands/ListAssessmentControlInsightsByControlDomainCommand.js +3 -3
  99. package/dist-es/commands/ListAssessmentFrameworkShareRequestsCommand.js +3 -3
  100. package/dist-es/commands/ListAssessmentFrameworksCommand.js +3 -3
  101. package/dist-es/commands/ListAssessmentReportsCommand.js +3 -3
  102. package/dist-es/commands/ListAssessmentsCommand.js +3 -3
  103. package/dist-es/commands/ListControlDomainInsightsByAssessmentCommand.js +3 -3
  104. package/dist-es/commands/ListControlDomainInsightsCommand.js +3 -3
  105. package/dist-es/commands/ListControlInsightsByControlDomainCommand.js +3 -3
  106. package/dist-es/commands/ListControlsCommand.js +3 -3
  107. package/dist-es/commands/ListKeywordsForDataSourceCommand.js +3 -3
  108. package/dist-es/commands/ListNotificationsCommand.js +3 -3
  109. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  110. package/dist-es/commands/RegisterAccountCommand.js +3 -3
  111. package/dist-es/commands/RegisterOrganizationAdminAccountCommand.js +3 -3
  112. package/dist-es/commands/StartAssessmentFrameworkShareCommand.js +3 -3
  113. package/dist-es/commands/TagResourceCommand.js +3 -3
  114. package/dist-es/commands/UntagResourceCommand.js +3 -3
  115. package/dist-es/commands/UpdateAssessmentCommand.js +3 -3
  116. package/dist-es/commands/UpdateAssessmentControlCommand.js +3 -3
  117. package/dist-es/commands/UpdateAssessmentControlSetStatusCommand.js +3 -3
  118. package/dist-es/commands/UpdateAssessmentFrameworkCommand.js +3 -3
  119. package/dist-es/commands/UpdateAssessmentFrameworkShareCommand.js +3 -3
  120. package/dist-es/commands/UpdateAssessmentStatusCommand.js +3 -3
  121. package/dist-es/commands/UpdateControlCommand.js +3 -3
  122. package/dist-es/commands/UpdateSettingsCommand.js +3 -3
  123. package/dist-es/commands/ValidateAssessmentReportIntegrityCommand.js +3 -3
  124. package/dist-es/protocols/Aws_restJson1.js +746 -778
  125. package/dist-types/protocols/Aws_restJson1.d.ts +488 -122
  126. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +122 -122
  127. package/package.json +35 -35
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { AuditManagerServiceException as __BaseException } from "../models/AuditManagerServiceException";
4
4
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
5
+ export const se_AssociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -24,7 +24,7 @@ export const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderComman
24
24
  body,
25
25
  });
26
26
  };
27
- export const serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = async (input, context) => {
27
+ export const se_BatchAssociateAssessmentReportEvidenceCommand = async (input, context) => {
28
28
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
29
  const headers = {
30
30
  "content-type": "application/json",
@@ -35,7 +35,7 @@ export const serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand
35
35
  let body;
36
36
  body = JSON.stringify({
37
37
  ...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
38
- ...(input.evidenceIds != null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) }),
38
+ ...(input.evidenceIds != null && { evidenceIds: se_EvidenceIds(input.evidenceIds, context) }),
39
39
  });
40
40
  return new __HttpRequest({
41
41
  protocol,
@@ -47,7 +47,7 @@ export const serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand
47
47
  body,
48
48
  });
49
49
  };
50
- export const serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = async (input, context) => {
50
+ export const se_BatchCreateDelegationByAssessmentCommand = async (input, context) => {
51
51
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
52
  const headers = {
53
53
  "content-type": "application/json",
@@ -57,7 +57,7 @@ export const serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = as
57
57
  let body;
58
58
  body = JSON.stringify({
59
59
  ...(input.createDelegationRequests != null && {
60
- createDelegationRequests: serializeAws_restJson1CreateDelegationRequests(input.createDelegationRequests, context),
60
+ createDelegationRequests: se_CreateDelegationRequests(input.createDelegationRequests, context),
61
61
  }),
62
62
  });
63
63
  return new __HttpRequest({
@@ -70,7 +70,7 @@ export const serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = as
70
70
  body,
71
71
  });
72
72
  };
73
- export const serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = async (input, context) => {
73
+ export const se_BatchDeleteDelegationByAssessmentCommand = async (input, context) => {
74
74
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
75
  const headers = {
76
76
  "content-type": "application/json",
@@ -79,9 +79,7 @@ export const serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = as
79
79
  resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
80
80
  let body;
81
81
  body = JSON.stringify({
82
- ...(input.delegationIds != null && {
83
- delegationIds: serializeAws_restJson1DelegationIds(input.delegationIds, context),
84
- }),
82
+ ...(input.delegationIds != null && { delegationIds: se_DelegationIds(input.delegationIds, context) }),
85
83
  });
86
84
  return new __HttpRequest({
87
85
  protocol,
@@ -93,7 +91,7 @@ export const serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = as
93
91
  body,
94
92
  });
95
93
  };
96
- export const serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = async (input, context) => {
94
+ export const se_BatchDisassociateAssessmentReportEvidenceCommand = async (input, context) => {
97
95
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
96
  const headers = {
99
97
  "content-type": "application/json",
@@ -104,7 +102,7 @@ export const serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceComm
104
102
  let body;
105
103
  body = JSON.stringify({
106
104
  ...(input.evidenceFolderId != null && { evidenceFolderId: input.evidenceFolderId }),
107
- ...(input.evidenceIds != null && { evidenceIds: serializeAws_restJson1EvidenceIds(input.evidenceIds, context) }),
105
+ ...(input.evidenceIds != null && { evidenceIds: se_EvidenceIds(input.evidenceIds, context) }),
108
106
  });
109
107
  return new __HttpRequest({
110
108
  protocol,
@@ -116,7 +114,7 @@ export const serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceComm
116
114
  body,
117
115
  });
118
116
  };
119
- export const serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = async (input, context) => {
117
+ export const se_BatchImportEvidenceToAssessmentControlCommand = async (input, context) => {
120
118
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
119
  const headers = {
122
120
  "content-type": "application/json",
@@ -128,9 +126,7 @@ export const serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand
128
126
  resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
129
127
  let body;
130
128
  body = JSON.stringify({
131
- ...(input.manualEvidence != null && {
132
- manualEvidence: serializeAws_restJson1ManualEvidenceList(input.manualEvidence, context),
133
- }),
129
+ ...(input.manualEvidence != null && { manualEvidence: se_ManualEvidenceList(input.manualEvidence, context) }),
134
130
  });
135
131
  return new __HttpRequest({
136
132
  protocol,
@@ -142,7 +138,7 @@ export const serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand
142
138
  body,
143
139
  });
144
140
  };
145
- export const serializeAws_restJson1CreateAssessmentCommand = async (input, context) => {
141
+ export const se_CreateAssessmentCommand = async (input, context) => {
146
142
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
143
  const headers = {
148
144
  "content-type": "application/json",
@@ -151,14 +147,14 @@ export const serializeAws_restJson1CreateAssessmentCommand = async (input, conte
151
147
  let body;
152
148
  body = JSON.stringify({
153
149
  ...(input.assessmentReportsDestination != null && {
154
- assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
150
+ assessmentReportsDestination: se_AssessmentReportsDestination(input.assessmentReportsDestination, context),
155
151
  }),
156
152
  ...(input.description != null && { description: input.description }),
157
153
  ...(input.frameworkId != null && { frameworkId: input.frameworkId }),
158
154
  ...(input.name != null && { name: input.name }),
159
- ...(input.roles != null && { roles: serializeAws_restJson1Roles(input.roles, context) }),
160
- ...(input.scope != null && { scope: serializeAws_restJson1Scope(input.scope, context) }),
161
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
155
+ ...(input.roles != null && { roles: se_Roles(input.roles, context) }),
156
+ ...(input.scope != null && { scope: se_Scope(input.scope, context) }),
157
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
162
158
  });
163
159
  return new __HttpRequest({
164
160
  protocol,
@@ -170,7 +166,7 @@ export const serializeAws_restJson1CreateAssessmentCommand = async (input, conte
170
166
  body,
171
167
  });
172
168
  };
173
- export const serializeAws_restJson1CreateAssessmentFrameworkCommand = async (input, context) => {
169
+ export const se_CreateAssessmentFrameworkCommand = async (input, context) => {
174
170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
171
  const headers = {
176
172
  "content-type": "application/json",
@@ -180,11 +176,11 @@ export const serializeAws_restJson1CreateAssessmentFrameworkCommand = async (inp
180
176
  body = JSON.stringify({
181
177
  ...(input.complianceType != null && { complianceType: input.complianceType }),
182
178
  ...(input.controlSets != null && {
183
- controlSets: serializeAws_restJson1CreateAssessmentFrameworkControlSets(input.controlSets, context),
179
+ controlSets: se_CreateAssessmentFrameworkControlSets(input.controlSets, context),
184
180
  }),
185
181
  ...(input.description != null && { description: input.description }),
186
182
  ...(input.name != null && { name: input.name }),
187
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
183
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
188
184
  });
189
185
  return new __HttpRequest({
190
186
  protocol,
@@ -196,7 +192,7 @@ export const serializeAws_restJson1CreateAssessmentFrameworkCommand = async (inp
196
192
  body,
197
193
  });
198
194
  };
199
- export const serializeAws_restJson1CreateAssessmentReportCommand = async (input, context) => {
195
+ export const se_CreateAssessmentReportCommand = async (input, context) => {
200
196
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
201
197
  const headers = {
202
198
  "content-type": "application/json",
@@ -219,7 +215,7 @@ export const serializeAws_restJson1CreateAssessmentReportCommand = async (input,
219
215
  body,
220
216
  });
221
217
  };
222
- export const serializeAws_restJson1CreateControlCommand = async (input, context) => {
218
+ export const se_CreateControlCommand = async (input, context) => {
223
219
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
220
  const headers = {
225
221
  "content-type": "application/json",
@@ -230,11 +226,11 @@ export const serializeAws_restJson1CreateControlCommand = async (input, context)
230
226
  ...(input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions }),
231
227
  ...(input.actionPlanTitle != null && { actionPlanTitle: input.actionPlanTitle }),
232
228
  ...(input.controlMappingSources != null && {
233
- controlMappingSources: serializeAws_restJson1CreateControlMappingSources(input.controlMappingSources, context),
229
+ controlMappingSources: se_CreateControlMappingSources(input.controlMappingSources, context),
234
230
  }),
235
231
  ...(input.description != null && { description: input.description }),
236
232
  ...(input.name != null && { name: input.name }),
237
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
233
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
238
234
  ...(input.testingInformation != null && { testingInformation: input.testingInformation }),
239
235
  });
240
236
  return new __HttpRequest({
@@ -247,7 +243,7 @@ export const serializeAws_restJson1CreateControlCommand = async (input, context)
247
243
  body,
248
244
  });
249
245
  };
250
- export const serializeAws_restJson1DeleteAssessmentCommand = async (input, context) => {
246
+ export const se_DeleteAssessmentCommand = async (input, context) => {
251
247
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
248
  const headers = {};
253
249
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
@@ -263,7 +259,7 @@ export const serializeAws_restJson1DeleteAssessmentCommand = async (input, conte
263
259
  body,
264
260
  });
265
261
  };
266
- export const serializeAws_restJson1DeleteAssessmentFrameworkCommand = async (input, context) => {
262
+ export const se_DeleteAssessmentFrameworkCommand = async (input, context) => {
267
263
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
264
  const headers = {};
269
265
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
@@ -279,7 +275,7 @@ export const serializeAws_restJson1DeleteAssessmentFrameworkCommand = async (inp
279
275
  body,
280
276
  });
281
277
  };
282
- export const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async (input, context) => {
278
+ export const se_DeleteAssessmentFrameworkShareCommand = async (input, context) => {
283
279
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
280
  const headers = {};
285
281
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -300,7 +296,7 @@ export const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async
300
296
  body,
301
297
  });
302
298
  };
303
- export const serializeAws_restJson1DeleteAssessmentReportCommand = async (input, context) => {
299
+ export const se_DeleteAssessmentReportCommand = async (input, context) => {
304
300
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
305
301
  const headers = {};
306
302
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -318,7 +314,7 @@ export const serializeAws_restJson1DeleteAssessmentReportCommand = async (input,
318
314
  body,
319
315
  });
320
316
  };
321
- export const serializeAws_restJson1DeleteControlCommand = async (input, context) => {
317
+ export const se_DeleteControlCommand = async (input, context) => {
322
318
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
323
319
  const headers = {};
324
320
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
@@ -334,7 +330,7 @@ export const serializeAws_restJson1DeleteControlCommand = async (input, context)
334
330
  body,
335
331
  });
336
332
  };
337
- export const serializeAws_restJson1DeregisterAccountCommand = async (input, context) => {
333
+ export const se_DeregisterAccountCommand = async (input, context) => {
338
334
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
335
  const headers = {
340
336
  "content-type": "application/json",
@@ -352,7 +348,7 @@ export const serializeAws_restJson1DeregisterAccountCommand = async (input, cont
352
348
  body,
353
349
  });
354
350
  };
355
- export const serializeAws_restJson1DeregisterOrganizationAdminAccountCommand = async (input, context) => {
351
+ export const se_DeregisterOrganizationAdminAccountCommand = async (input, context) => {
356
352
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
353
  const headers = {
358
354
  "content-type": "application/json",
@@ -373,7 +369,7 @@ export const serializeAws_restJson1DeregisterOrganizationAdminAccountCommand = a
373
369
  body,
374
370
  });
375
371
  };
376
- export const serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
372
+ export const se_DisassociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
377
373
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
374
  const headers = {
379
375
  "content-type": "application/json",
@@ -395,7 +391,7 @@ export const serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCom
395
391
  body,
396
392
  });
397
393
  };
398
- export const serializeAws_restJson1GetAccountStatusCommand = async (input, context) => {
394
+ export const se_GetAccountStatusCommand = async (input, context) => {
399
395
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
400
396
  const headers = {
401
397
  "content-type": "application/json",
@@ -413,7 +409,7 @@ export const serializeAws_restJson1GetAccountStatusCommand = async (input, conte
413
409
  body,
414
410
  });
415
411
  };
416
- export const serializeAws_restJson1GetAssessmentCommand = async (input, context) => {
412
+ export const se_GetAssessmentCommand = async (input, context) => {
417
413
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
418
414
  const headers = {};
419
415
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
@@ -429,7 +425,7 @@ export const serializeAws_restJson1GetAssessmentCommand = async (input, context)
429
425
  body,
430
426
  });
431
427
  };
432
- export const serializeAws_restJson1GetAssessmentFrameworkCommand = async (input, context) => {
428
+ export const se_GetAssessmentFrameworkCommand = async (input, context) => {
433
429
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
434
430
  const headers = {};
435
431
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
@@ -445,7 +441,7 @@ export const serializeAws_restJson1GetAssessmentFrameworkCommand = async (input,
445
441
  body,
446
442
  });
447
443
  };
448
- export const serializeAws_restJson1GetAssessmentReportUrlCommand = async (input, context) => {
444
+ export const se_GetAssessmentReportUrlCommand = async (input, context) => {
449
445
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
450
446
  const headers = {};
451
447
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -463,7 +459,7 @@ export const serializeAws_restJson1GetAssessmentReportUrlCommand = async (input,
463
459
  body,
464
460
  });
465
461
  };
466
- export const serializeAws_restJson1GetChangeLogsCommand = async (input, context) => {
462
+ export const se_GetChangeLogsCommand = async (input, context) => {
467
463
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
468
464
  const headers = {};
469
465
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/changelogs";
@@ -486,7 +482,7 @@ export const serializeAws_restJson1GetChangeLogsCommand = async (input, context)
486
482
  body,
487
483
  });
488
484
  };
489
- export const serializeAws_restJson1GetControlCommand = async (input, context) => {
485
+ export const se_GetControlCommand = async (input, context) => {
490
486
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
491
487
  const headers = {};
492
488
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
@@ -502,7 +498,7 @@ export const serializeAws_restJson1GetControlCommand = async (input, context) =>
502
498
  body,
503
499
  });
504
500
  };
505
- export const serializeAws_restJson1GetDelegationsCommand = async (input, context) => {
501
+ export const se_GetDelegationsCommand = async (input, context) => {
506
502
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
507
503
  const headers = {};
508
504
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delegations";
@@ -522,7 +518,7 @@ export const serializeAws_restJson1GetDelegationsCommand = async (input, context
522
518
  body,
523
519
  });
524
520
  };
525
- export const serializeAws_restJson1GetEvidenceCommand = async (input, context) => {
521
+ export const se_GetEvidenceCommand = async (input, context) => {
526
522
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
523
  const headers = {};
528
524
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -542,7 +538,7 @@ export const serializeAws_restJson1GetEvidenceCommand = async (input, context) =
542
538
  body,
543
539
  });
544
540
  };
545
- export const serializeAws_restJson1GetEvidenceByEvidenceFolderCommand = async (input, context) => {
541
+ export const se_GetEvidenceByEvidenceFolderCommand = async (input, context) => {
546
542
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
547
543
  const headers = {};
548
544
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -566,7 +562,7 @@ export const serializeAws_restJson1GetEvidenceByEvidenceFolderCommand = async (i
566
562
  body,
567
563
  });
568
564
  };
569
- export const serializeAws_restJson1GetEvidenceFolderCommand = async (input, context) => {
565
+ export const se_GetEvidenceFolderCommand = async (input, context) => {
570
566
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
571
567
  const headers = {};
572
568
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -585,7 +581,7 @@ export const serializeAws_restJson1GetEvidenceFolderCommand = async (input, cont
585
581
  body,
586
582
  });
587
583
  };
588
- export const serializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = async (input, context) => {
584
+ export const se_GetEvidenceFoldersByAssessmentCommand = async (input, context) => {
589
585
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
586
  const headers = {};
591
587
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -607,7 +603,7 @@ export const serializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = async
607
603
  body,
608
604
  });
609
605
  };
610
- export const serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = async (input, context) => {
606
+ export const se_GetEvidenceFoldersByAssessmentControlCommand = async (input, context) => {
611
607
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
612
608
  const headers = {};
613
609
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -631,7 +627,7 @@ export const serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand
631
627
  body,
632
628
  });
633
629
  };
634
- export const serializeAws_restJson1GetInsightsCommand = async (input, context) => {
630
+ export const se_GetInsightsCommand = async (input, context) => {
635
631
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
636
632
  const headers = {
637
633
  "content-type": "application/json",
@@ -649,7 +645,7 @@ export const serializeAws_restJson1GetInsightsCommand = async (input, context) =
649
645
  body,
650
646
  });
651
647
  };
652
- export const serializeAws_restJson1GetInsightsByAssessmentCommand = async (input, context) => {
648
+ export const se_GetInsightsByAssessmentCommand = async (input, context) => {
653
649
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
654
650
  const headers = {};
655
651
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/assessments/{assessmentId}";
@@ -665,7 +661,7 @@ export const serializeAws_restJson1GetInsightsByAssessmentCommand = async (input
665
661
  body,
666
662
  });
667
663
  };
668
- export const serializeAws_restJson1GetOrganizationAdminAccountCommand = async (input, context) => {
664
+ export const se_GetOrganizationAdminAccountCommand = async (input, context) => {
669
665
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
666
  const headers = {
671
667
  "content-type": "application/json",
@@ -683,7 +679,7 @@ export const serializeAws_restJson1GetOrganizationAdminAccountCommand = async (i
683
679
  body,
684
680
  });
685
681
  };
686
- export const serializeAws_restJson1GetServicesInScopeCommand = async (input, context) => {
682
+ export const se_GetServicesInScopeCommand = async (input, context) => {
687
683
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
688
684
  const headers = {
689
685
  "content-type": "application/json",
@@ -701,7 +697,7 @@ export const serializeAws_restJson1GetServicesInScopeCommand = async (input, con
701
697
  body,
702
698
  });
703
699
  };
704
- export const serializeAws_restJson1GetSettingsCommand = async (input, context) => {
700
+ export const se_GetSettingsCommand = async (input, context) => {
705
701
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
706
702
  const headers = {};
707
703
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings/{attribute}";
@@ -717,7 +713,7 @@ export const serializeAws_restJson1GetSettingsCommand = async (input, context) =
717
713
  body,
718
714
  });
719
715
  };
720
- export const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = async (input, context) => {
716
+ export const se_ListAssessmentControlInsightsByControlDomainCommand = async (input, context) => {
721
717
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
722
718
  const headers = {};
723
719
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
@@ -739,7 +735,7 @@ export const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainC
739
735
  body,
740
736
  });
741
737
  };
742
- export const serializeAws_restJson1ListAssessmentFrameworksCommand = async (input, context) => {
738
+ export const se_ListAssessmentFrameworksCommand = async (input, context) => {
743
739
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
744
740
  const headers = {};
745
741
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
@@ -760,7 +756,7 @@ export const serializeAws_restJson1ListAssessmentFrameworksCommand = async (inpu
760
756
  body,
761
757
  });
762
758
  };
763
- export const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async (input, context) => {
759
+ export const se_ListAssessmentFrameworkShareRequestsCommand = async (input, context) => {
764
760
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
765
761
  const headers = {};
766
762
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
@@ -781,7 +777,7 @@ export const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand =
781
777
  body,
782
778
  });
783
779
  };
784
- export const serializeAws_restJson1ListAssessmentReportsCommand = async (input, context) => {
780
+ export const se_ListAssessmentReportsCommand = async (input, context) => {
785
781
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
782
  const headers = {};
787
783
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports";
@@ -801,7 +797,7 @@ export const serializeAws_restJson1ListAssessmentReportsCommand = async (input,
801
797
  body,
802
798
  });
803
799
  };
804
- export const serializeAws_restJson1ListAssessmentsCommand = async (input, context) => {
800
+ export const se_ListAssessmentsCommand = async (input, context) => {
805
801
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
806
802
  const headers = {};
807
803
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
@@ -822,7 +818,7 @@ export const serializeAws_restJson1ListAssessmentsCommand = async (input, contex
822
818
  body,
823
819
  });
824
820
  };
825
- export const serializeAws_restJson1ListControlDomainInsightsCommand = async (input, context) => {
821
+ export const se_ListControlDomainInsightsCommand = async (input, context) => {
826
822
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
827
823
  const headers = {};
828
824
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains";
@@ -842,7 +838,7 @@ export const serializeAws_restJson1ListControlDomainInsightsCommand = async (inp
842
838
  body,
843
839
  });
844
840
  };
845
- export const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async (input, context) => {
841
+ export const se_ListControlDomainInsightsByAssessmentCommand = async (input, context) => {
846
842
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
847
843
  const headers = {};
848
844
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
@@ -863,7 +859,7 @@ export const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand
863
859
  body,
864
860
  });
865
861
  };
866
- export const serializeAws_restJson1ListControlInsightsByControlDomainCommand = async (input, context) => {
862
+ export const se_ListControlInsightsByControlDomainCommand = async (input, context) => {
867
863
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
864
  const headers = {};
869
865
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
@@ -884,7 +880,7 @@ export const serializeAws_restJson1ListControlInsightsByControlDomainCommand = a
884
880
  body,
885
881
  });
886
882
  };
887
- export const serializeAws_restJson1ListControlsCommand = async (input, context) => {
883
+ export const se_ListControlsCommand = async (input, context) => {
888
884
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
889
885
  const headers = {};
890
886
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
@@ -905,7 +901,7 @@ export const serializeAws_restJson1ListControlsCommand = async (input, context)
905
901
  body,
906
902
  });
907
903
  };
908
- export const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (input, context) => {
904
+ export const se_ListKeywordsForDataSourceCommand = async (input, context) => {
909
905
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
910
906
  const headers = {};
911
907
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
@@ -926,7 +922,7 @@ export const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (inp
926
922
  body,
927
923
  });
928
924
  };
929
- export const serializeAws_restJson1ListNotificationsCommand = async (input, context) => {
925
+ export const se_ListNotificationsCommand = async (input, context) => {
930
926
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
931
927
  const headers = {};
932
928
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
@@ -946,7 +942,7 @@ export const serializeAws_restJson1ListNotificationsCommand = async (input, cont
946
942
  body,
947
943
  });
948
944
  };
949
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
945
+ export const se_ListTagsForResourceCommand = async (input, context) => {
950
946
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
951
947
  const headers = {};
952
948
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -962,7 +958,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
962
958
  body,
963
959
  });
964
960
  };
965
- export const serializeAws_restJson1RegisterAccountCommand = async (input, context) => {
961
+ export const se_RegisterAccountCommand = async (input, context) => {
966
962
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
967
963
  const headers = {
968
964
  "content-type": "application/json",
@@ -983,7 +979,7 @@ export const serializeAws_restJson1RegisterAccountCommand = async (input, contex
983
979
  body,
984
980
  });
985
981
  };
986
- export const serializeAws_restJson1RegisterOrganizationAdminAccountCommand = async (input, context) => {
982
+ export const se_RegisterOrganizationAdminAccountCommand = async (input, context) => {
987
983
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
988
984
  const headers = {
989
985
  "content-type": "application/json",
@@ -1003,7 +999,7 @@ export const serializeAws_restJson1RegisterOrganizationAdminAccountCommand = asy
1003
999
  body,
1004
1000
  });
1005
1001
  };
1006
- export const serializeAws_restJson1StartAssessmentFrameworkShareCommand = async (input, context) => {
1002
+ export const se_StartAssessmentFrameworkShareCommand = async (input, context) => {
1007
1003
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1008
1004
  const headers = {
1009
1005
  "content-type": "application/json",
@@ -1027,7 +1023,7 @@ export const serializeAws_restJson1StartAssessmentFrameworkShareCommand = async
1027
1023
  body,
1028
1024
  });
1029
1025
  };
1030
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1026
+ export const se_TagResourceCommand = async (input, context) => {
1031
1027
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1032
1028
  const headers = {
1033
1029
  "content-type": "application/json",
@@ -1036,7 +1032,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1036
1032
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1037
1033
  let body;
1038
1034
  body = JSON.stringify({
1039
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1035
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
1040
1036
  });
1041
1037
  return new __HttpRequest({
1042
1038
  protocol,
@@ -1048,7 +1044,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1048
1044
  body,
1049
1045
  });
1050
1046
  };
1051
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1047
+ export const se_UntagResourceCommand = async (input, context) => {
1052
1048
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1053
1049
  const headers = {};
1054
1050
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -1071,7 +1067,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
1071
1067
  body,
1072
1068
  });
1073
1069
  };
1074
- export const serializeAws_restJson1UpdateAssessmentCommand = async (input, context) => {
1070
+ export const se_UpdateAssessmentCommand = async (input, context) => {
1075
1071
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1076
1072
  const headers = {
1077
1073
  "content-type": "application/json",
@@ -1083,10 +1079,10 @@ export const serializeAws_restJson1UpdateAssessmentCommand = async (input, conte
1083
1079
  ...(input.assessmentDescription != null && { assessmentDescription: input.assessmentDescription }),
1084
1080
  ...(input.assessmentName != null && { assessmentName: input.assessmentName }),
1085
1081
  ...(input.assessmentReportsDestination != null && {
1086
- assessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.assessmentReportsDestination, context),
1082
+ assessmentReportsDestination: se_AssessmentReportsDestination(input.assessmentReportsDestination, context),
1087
1083
  }),
1088
- ...(input.roles != null && { roles: serializeAws_restJson1Roles(input.roles, context) }),
1089
- ...(input.scope != null && { scope: serializeAws_restJson1Scope(input.scope, context) }),
1084
+ ...(input.roles != null && { roles: se_Roles(input.roles, context) }),
1085
+ ...(input.scope != null && { scope: se_Scope(input.scope, context) }),
1090
1086
  });
1091
1087
  return new __HttpRequest({
1092
1088
  protocol,
@@ -1098,7 +1094,7 @@ export const serializeAws_restJson1UpdateAssessmentCommand = async (input, conte
1098
1094
  body,
1099
1095
  });
1100
1096
  };
1101
- export const serializeAws_restJson1UpdateAssessmentControlCommand = async (input, context) => {
1097
+ export const se_UpdateAssessmentControlCommand = async (input, context) => {
1102
1098
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1103
1099
  const headers = {
1104
1100
  "content-type": "application/json",
@@ -1123,7 +1119,7 @@ export const serializeAws_restJson1UpdateAssessmentControlCommand = async (input
1123
1119
  body,
1124
1120
  });
1125
1121
  };
1126
- export const serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = async (input, context) => {
1122
+ export const se_UpdateAssessmentControlSetStatusCommand = async (input, context) => {
1127
1123
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1128
1124
  const headers = {
1129
1125
  "content-type": "application/json",
@@ -1147,7 +1143,7 @@ export const serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = asy
1147
1143
  body,
1148
1144
  });
1149
1145
  };
1150
- export const serializeAws_restJson1UpdateAssessmentFrameworkCommand = async (input, context) => {
1146
+ export const se_UpdateAssessmentFrameworkCommand = async (input, context) => {
1151
1147
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1152
1148
  const headers = {
1153
1149
  "content-type": "application/json",
@@ -1158,7 +1154,7 @@ export const serializeAws_restJson1UpdateAssessmentFrameworkCommand = async (inp
1158
1154
  body = JSON.stringify({
1159
1155
  ...(input.complianceType != null && { complianceType: input.complianceType }),
1160
1156
  ...(input.controlSets != null && {
1161
- controlSets: serializeAws_restJson1UpdateAssessmentFrameworkControlSets(input.controlSets, context),
1157
+ controlSets: se_UpdateAssessmentFrameworkControlSets(input.controlSets, context),
1162
1158
  }),
1163
1159
  ...(input.description != null && { description: input.description }),
1164
1160
  ...(input.name != null && { name: input.name }),
@@ -1173,7 +1169,7 @@ export const serializeAws_restJson1UpdateAssessmentFrameworkCommand = async (inp
1173
1169
  body,
1174
1170
  });
1175
1171
  };
1176
- export const serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async (input, context) => {
1172
+ export const se_UpdateAssessmentFrameworkShareCommand = async (input, context) => {
1177
1173
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1178
1174
  const headers = {
1179
1175
  "content-type": "application/json",
@@ -1196,7 +1192,7 @@ export const serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async
1196
1192
  body,
1197
1193
  });
1198
1194
  };
1199
- export const serializeAws_restJson1UpdateAssessmentStatusCommand = async (input, context) => {
1195
+ export const se_UpdateAssessmentStatusCommand = async (input, context) => {
1200
1196
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1201
1197
  const headers = {
1202
1198
  "content-type": "application/json",
@@ -1217,7 +1213,7 @@ export const serializeAws_restJson1UpdateAssessmentStatusCommand = async (input,
1217
1213
  body,
1218
1214
  });
1219
1215
  };
1220
- export const serializeAws_restJson1UpdateControlCommand = async (input, context) => {
1216
+ export const se_UpdateControlCommand = async (input, context) => {
1221
1217
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1222
1218
  const headers = {
1223
1219
  "content-type": "application/json",
@@ -1229,7 +1225,7 @@ export const serializeAws_restJson1UpdateControlCommand = async (input, context)
1229
1225
  ...(input.actionPlanInstructions != null && { actionPlanInstructions: input.actionPlanInstructions }),
1230
1226
  ...(input.actionPlanTitle != null && { actionPlanTitle: input.actionPlanTitle }),
1231
1227
  ...(input.controlMappingSources != null && {
1232
- controlMappingSources: serializeAws_restJson1ControlMappingSources(input.controlMappingSources, context),
1228
+ controlMappingSources: se_ControlMappingSources(input.controlMappingSources, context),
1233
1229
  }),
1234
1230
  ...(input.description != null && { description: input.description }),
1235
1231
  ...(input.name != null && { name: input.name }),
@@ -1245,7 +1241,7 @@ export const serializeAws_restJson1UpdateControlCommand = async (input, context)
1245
1241
  body,
1246
1242
  });
1247
1243
  };
1248
- export const serializeAws_restJson1UpdateSettingsCommand = async (input, context) => {
1244
+ export const se_UpdateSettingsCommand = async (input, context) => {
1249
1245
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1250
1246
  const headers = {
1251
1247
  "content-type": "application/json",
@@ -1254,13 +1250,11 @@ export const serializeAws_restJson1UpdateSettingsCommand = async (input, context
1254
1250
  let body;
1255
1251
  body = JSON.stringify({
1256
1252
  ...(input.defaultAssessmentReportsDestination != null && {
1257
- defaultAssessmentReportsDestination: serializeAws_restJson1AssessmentReportsDestination(input.defaultAssessmentReportsDestination, context),
1258
- }),
1259
- ...(input.defaultProcessOwners != null && {
1260
- defaultProcessOwners: serializeAws_restJson1Roles(input.defaultProcessOwners, context),
1253
+ defaultAssessmentReportsDestination: se_AssessmentReportsDestination(input.defaultAssessmentReportsDestination, context),
1261
1254
  }),
1255
+ ...(input.defaultProcessOwners != null && { defaultProcessOwners: se_Roles(input.defaultProcessOwners, context) }),
1262
1256
  ...(input.deregistrationPolicy != null && {
1263
- deregistrationPolicy: serializeAws_restJson1DeregistrationPolicy(input.deregistrationPolicy, context),
1257
+ deregistrationPolicy: se_DeregistrationPolicy(input.deregistrationPolicy, context),
1264
1258
  }),
1265
1259
  ...(input.evidenceFinderEnabled != null && { evidenceFinderEnabled: input.evidenceFinderEnabled }),
1266
1260
  ...(input.kmsKey != null && { kmsKey: input.kmsKey }),
@@ -1276,7 +1270,7 @@ export const serializeAws_restJson1UpdateSettingsCommand = async (input, context
1276
1270
  body,
1277
1271
  });
1278
1272
  };
1279
- export const serializeAws_restJson1ValidateAssessmentReportIntegrityCommand = async (input, context) => {
1273
+ export const se_ValidateAssessmentReportIntegrityCommand = async (input, context) => {
1280
1274
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1281
1275
  const headers = {
1282
1276
  "content-type": "application/json",
@@ -1296,9 +1290,9 @@ export const serializeAws_restJson1ValidateAssessmentReportIntegrityCommand = as
1296
1290
  body,
1297
1291
  });
1298
1292
  };
1299
- export const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
1293
+ export const de_AssociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
1300
1294
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
- return deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandError(output, context);
1295
+ return de_AssociateAssessmentReportEvidenceFolderCommandError(output, context);
1302
1296
  }
1303
1297
  const contents = map({
1304
1298
  $metadata: deserializeMetadata(output),
@@ -1306,7 +1300,7 @@ export const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderComm
1306
1300
  await collectBody(output.body, context);
1307
1301
  return contents;
1308
1302
  };
1309
- const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
1303
+ const de_AssociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
1310
1304
  const parsedOutput = {
1311
1305
  ...output,
1312
1306
  body: await parseErrorBody(output.body, context),
@@ -1315,16 +1309,16 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandErro
1315
1309
  switch (errorCode) {
1316
1310
  case "AccessDeniedException":
1317
1311
  case "com.amazonaws.auditmanager#AccessDeniedException":
1318
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1312
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1319
1313
  case "InternalServerException":
1320
1314
  case "com.amazonaws.auditmanager#InternalServerException":
1321
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1315
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1322
1316
  case "ResourceNotFoundException":
1323
1317
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1324
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1318
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1325
1319
  case "ValidationException":
1326
1320
  case "com.amazonaws.auditmanager#ValidationException":
1327
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1321
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1328
1322
  default:
1329
1323
  const parsedBody = parsedOutput.body;
1330
1324
  throwDefaultError({
@@ -1335,23 +1329,23 @@ const deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommandErro
1335
1329
  });
1336
1330
  }
1337
1331
  };
1338
- export const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = async (output, context) => {
1332
+ export const de_BatchAssociateAssessmentReportEvidenceCommand = async (output, context) => {
1339
1333
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1340
- return deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError(output, context);
1334
+ return de_BatchAssociateAssessmentReportEvidenceCommandError(output, context);
1341
1335
  }
1342
1336
  const contents = map({
1343
1337
  $metadata: deserializeMetadata(output),
1344
1338
  });
1345
1339
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1346
1340
  if (data.errors != null) {
1347
- contents.errors = deserializeAws_restJson1AssessmentReportEvidenceErrors(data.errors, context);
1341
+ contents.errors = de_AssessmentReportEvidenceErrors(data.errors, context);
1348
1342
  }
1349
1343
  if (data.evidenceIds != null) {
1350
- contents.evidenceIds = deserializeAws_restJson1EvidenceIds(data.evidenceIds, context);
1344
+ contents.evidenceIds = de_EvidenceIds(data.evidenceIds, context);
1351
1345
  }
1352
1346
  return contents;
1353
1347
  };
1354
- const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError = async (output, context) => {
1348
+ const de_BatchAssociateAssessmentReportEvidenceCommandError = async (output, context) => {
1355
1349
  const parsedOutput = {
1356
1350
  ...output,
1357
1351
  body: await parseErrorBody(output.body, context),
@@ -1360,16 +1354,16 @@ const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError
1360
1354
  switch (errorCode) {
1361
1355
  case "AccessDeniedException":
1362
1356
  case "com.amazonaws.auditmanager#AccessDeniedException":
1363
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1357
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1364
1358
  case "InternalServerException":
1365
1359
  case "com.amazonaws.auditmanager#InternalServerException":
1366
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1360
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1367
1361
  case "ResourceNotFoundException":
1368
1362
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1369
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1363
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1370
1364
  case "ValidationException":
1371
1365
  case "com.amazonaws.auditmanager#ValidationException":
1372
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1366
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1373
1367
  default:
1374
1368
  const parsedBody = parsedOutput.body;
1375
1369
  throwDefaultError({
@@ -1380,23 +1374,23 @@ const deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommandError
1380
1374
  });
1381
1375
  }
1382
1376
  };
1383
- export const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand = async (output, context) => {
1377
+ export const de_BatchCreateDelegationByAssessmentCommand = async (output, context) => {
1384
1378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1385
- return deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError(output, context);
1379
+ return de_BatchCreateDelegationByAssessmentCommandError(output, context);
1386
1380
  }
1387
1381
  const contents = map({
1388
1382
  $metadata: deserializeMetadata(output),
1389
1383
  });
1390
1384
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1391
1385
  if (data.delegations != null) {
1392
- contents.delegations = deserializeAws_restJson1Delegations(data.delegations, context);
1386
+ contents.delegations = de_Delegations(data.delegations, context);
1393
1387
  }
1394
1388
  if (data.errors != null) {
1395
- contents.errors = deserializeAws_restJson1BatchCreateDelegationByAssessmentErrors(data.errors, context);
1389
+ contents.errors = de_BatchCreateDelegationByAssessmentErrors(data.errors, context);
1396
1390
  }
1397
1391
  return contents;
1398
1392
  };
1399
- const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = async (output, context) => {
1393
+ const de_BatchCreateDelegationByAssessmentCommandError = async (output, context) => {
1400
1394
  const parsedOutput = {
1401
1395
  ...output,
1402
1396
  body: await parseErrorBody(output.body, context),
@@ -1405,16 +1399,16 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = as
1405
1399
  switch (errorCode) {
1406
1400
  case "AccessDeniedException":
1407
1401
  case "com.amazonaws.auditmanager#AccessDeniedException":
1408
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1402
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1409
1403
  case "InternalServerException":
1410
1404
  case "com.amazonaws.auditmanager#InternalServerException":
1411
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1405
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1412
1406
  case "ResourceNotFoundException":
1413
1407
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1414
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1408
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1415
1409
  case "ValidationException":
1416
1410
  case "com.amazonaws.auditmanager#ValidationException":
1417
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1411
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1418
1412
  default:
1419
1413
  const parsedBody = parsedOutput.body;
1420
1414
  throwDefaultError({
@@ -1425,20 +1419,20 @@ const deserializeAws_restJson1BatchCreateDelegationByAssessmentCommandError = as
1425
1419
  });
1426
1420
  }
1427
1421
  };
1428
- export const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = async (output, context) => {
1422
+ export const de_BatchDeleteDelegationByAssessmentCommand = async (output, context) => {
1429
1423
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1430
- return deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError(output, context);
1424
+ return de_BatchDeleteDelegationByAssessmentCommandError(output, context);
1431
1425
  }
1432
1426
  const contents = map({
1433
1427
  $metadata: deserializeMetadata(output),
1434
1428
  });
1435
1429
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1436
1430
  if (data.errors != null) {
1437
- contents.errors = deserializeAws_restJson1BatchDeleteDelegationByAssessmentErrors(data.errors, context);
1431
+ contents.errors = de_BatchDeleteDelegationByAssessmentErrors(data.errors, context);
1438
1432
  }
1439
1433
  return contents;
1440
1434
  };
1441
- const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = async (output, context) => {
1435
+ const de_BatchDeleteDelegationByAssessmentCommandError = async (output, context) => {
1442
1436
  const parsedOutput = {
1443
1437
  ...output,
1444
1438
  body: await parseErrorBody(output.body, context),
@@ -1447,16 +1441,16 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = as
1447
1441
  switch (errorCode) {
1448
1442
  case "AccessDeniedException":
1449
1443
  case "com.amazonaws.auditmanager#AccessDeniedException":
1450
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1444
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1451
1445
  case "InternalServerException":
1452
1446
  case "com.amazonaws.auditmanager#InternalServerException":
1453
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1447
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1454
1448
  case "ResourceNotFoundException":
1455
1449
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1456
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1450
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1457
1451
  case "ValidationException":
1458
1452
  case "com.amazonaws.auditmanager#ValidationException":
1459
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1453
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1460
1454
  default:
1461
1455
  const parsedBody = parsedOutput.body;
1462
1456
  throwDefaultError({
@@ -1467,23 +1461,23 @@ const deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommandError = as
1467
1461
  });
1468
1462
  }
1469
1463
  };
1470
- export const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = async (output, context) => {
1464
+ export const de_BatchDisassociateAssessmentReportEvidenceCommand = async (output, context) => {
1471
1465
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
- return deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandError(output, context);
1466
+ return de_BatchDisassociateAssessmentReportEvidenceCommandError(output, context);
1473
1467
  }
1474
1468
  const contents = map({
1475
1469
  $metadata: deserializeMetadata(output),
1476
1470
  });
1477
1471
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1478
1472
  if (data.errors != null) {
1479
- contents.errors = deserializeAws_restJson1AssessmentReportEvidenceErrors(data.errors, context);
1473
+ contents.errors = de_AssessmentReportEvidenceErrors(data.errors, context);
1480
1474
  }
1481
1475
  if (data.evidenceIds != null) {
1482
- contents.evidenceIds = deserializeAws_restJson1EvidenceIds(data.evidenceIds, context);
1476
+ contents.evidenceIds = de_EvidenceIds(data.evidenceIds, context);
1483
1477
  }
1484
1478
  return contents;
1485
1479
  };
1486
- const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandError = async (output, context) => {
1480
+ const de_BatchDisassociateAssessmentReportEvidenceCommandError = async (output, context) => {
1487
1481
  const parsedOutput = {
1488
1482
  ...output,
1489
1483
  body: await parseErrorBody(output.body, context),
@@ -1492,16 +1486,16 @@ const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandEr
1492
1486
  switch (errorCode) {
1493
1487
  case "AccessDeniedException":
1494
1488
  case "com.amazonaws.auditmanager#AccessDeniedException":
1495
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1489
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1496
1490
  case "InternalServerException":
1497
1491
  case "com.amazonaws.auditmanager#InternalServerException":
1498
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1492
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1499
1493
  case "ResourceNotFoundException":
1500
1494
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1501
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1495
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1502
1496
  case "ValidationException":
1503
1497
  case "com.amazonaws.auditmanager#ValidationException":
1504
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1498
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1505
1499
  default:
1506
1500
  const parsedBody = parsedOutput.body;
1507
1501
  throwDefaultError({
@@ -1512,20 +1506,20 @@ const deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommandEr
1512
1506
  });
1513
1507
  }
1514
1508
  };
1515
- export const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = async (output, context) => {
1509
+ export const de_BatchImportEvidenceToAssessmentControlCommand = async (output, context) => {
1516
1510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1517
- return deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError(output, context);
1511
+ return de_BatchImportEvidenceToAssessmentControlCommandError(output, context);
1518
1512
  }
1519
1513
  const contents = map({
1520
1514
  $metadata: deserializeMetadata(output),
1521
1515
  });
1522
1516
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1523
1517
  if (data.errors != null) {
1524
- contents.errors = deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors(data.errors, context);
1518
+ contents.errors = de_BatchImportEvidenceToAssessmentControlErrors(data.errors, context);
1525
1519
  }
1526
1520
  return contents;
1527
1521
  };
1528
- const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError = async (output, context) => {
1522
+ const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, context) => {
1529
1523
  const parsedOutput = {
1530
1524
  ...output,
1531
1525
  body: await parseErrorBody(output.body, context),
@@ -1534,16 +1528,16 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError
1534
1528
  switch (errorCode) {
1535
1529
  case "AccessDeniedException":
1536
1530
  case "com.amazonaws.auditmanager#AccessDeniedException":
1537
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1531
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1538
1532
  case "InternalServerException":
1539
1533
  case "com.amazonaws.auditmanager#InternalServerException":
1540
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1534
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1541
1535
  case "ResourceNotFoundException":
1542
1536
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1543
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1537
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1544
1538
  case "ValidationException":
1545
1539
  case "com.amazonaws.auditmanager#ValidationException":
1546
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1540
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1547
1541
  default:
1548
1542
  const parsedBody = parsedOutput.body;
1549
1543
  throwDefaultError({
@@ -1554,20 +1548,20 @@ const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommandError
1554
1548
  });
1555
1549
  }
1556
1550
  };
1557
- export const deserializeAws_restJson1CreateAssessmentCommand = async (output, context) => {
1551
+ export const de_CreateAssessmentCommand = async (output, context) => {
1558
1552
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1559
- return deserializeAws_restJson1CreateAssessmentCommandError(output, context);
1553
+ return de_CreateAssessmentCommandError(output, context);
1560
1554
  }
1561
1555
  const contents = map({
1562
1556
  $metadata: deserializeMetadata(output),
1563
1557
  });
1564
1558
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1565
1559
  if (data.assessment != null) {
1566
- contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
1560
+ contents.assessment = de_Assessment(data.assessment, context);
1567
1561
  }
1568
1562
  return contents;
1569
1563
  };
1570
- const deserializeAws_restJson1CreateAssessmentCommandError = async (output, context) => {
1564
+ const de_CreateAssessmentCommandError = async (output, context) => {
1571
1565
  const parsedOutput = {
1572
1566
  ...output,
1573
1567
  body: await parseErrorBody(output.body, context),
@@ -1576,19 +1570,19 @@ const deserializeAws_restJson1CreateAssessmentCommandError = async (output, cont
1576
1570
  switch (errorCode) {
1577
1571
  case "AccessDeniedException":
1578
1572
  case "com.amazonaws.auditmanager#AccessDeniedException":
1579
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1573
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1580
1574
  case "InternalServerException":
1581
1575
  case "com.amazonaws.auditmanager#InternalServerException":
1582
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1576
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1583
1577
  case "ResourceNotFoundException":
1584
1578
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1585
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1579
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1586
1580
  case "ServiceQuotaExceededException":
1587
1581
  case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
1588
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1582
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1589
1583
  case "ValidationException":
1590
1584
  case "com.amazonaws.auditmanager#ValidationException":
1591
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1585
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1592
1586
  default:
1593
1587
  const parsedBody = parsedOutput.body;
1594
1588
  throwDefaultError({
@@ -1599,20 +1593,20 @@ const deserializeAws_restJson1CreateAssessmentCommandError = async (output, cont
1599
1593
  });
1600
1594
  }
1601
1595
  };
1602
- export const deserializeAws_restJson1CreateAssessmentFrameworkCommand = async (output, context) => {
1596
+ export const de_CreateAssessmentFrameworkCommand = async (output, context) => {
1603
1597
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1604
- return deserializeAws_restJson1CreateAssessmentFrameworkCommandError(output, context);
1598
+ return de_CreateAssessmentFrameworkCommandError(output, context);
1605
1599
  }
1606
1600
  const contents = map({
1607
1601
  $metadata: deserializeMetadata(output),
1608
1602
  });
1609
1603
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1610
1604
  if (data.framework != null) {
1611
- contents.framework = deserializeAws_restJson1Framework(data.framework, context);
1605
+ contents.framework = de_Framework(data.framework, context);
1612
1606
  }
1613
1607
  return contents;
1614
1608
  };
1615
- const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (output, context) => {
1609
+ const de_CreateAssessmentFrameworkCommandError = async (output, context) => {
1616
1610
  const parsedOutput = {
1617
1611
  ...output,
1618
1612
  body: await parseErrorBody(output.body, context),
@@ -1621,19 +1615,19 @@ const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (out
1621
1615
  switch (errorCode) {
1622
1616
  case "AccessDeniedException":
1623
1617
  case "com.amazonaws.auditmanager#AccessDeniedException":
1624
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1618
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1625
1619
  case "InternalServerException":
1626
1620
  case "com.amazonaws.auditmanager#InternalServerException":
1627
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1621
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1628
1622
  case "ResourceNotFoundException":
1629
1623
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1630
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1624
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1631
1625
  case "ServiceQuotaExceededException":
1632
1626
  case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
1633
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1627
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1634
1628
  case "ValidationException":
1635
1629
  case "com.amazonaws.auditmanager#ValidationException":
1636
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1630
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1637
1631
  default:
1638
1632
  const parsedBody = parsedOutput.body;
1639
1633
  throwDefaultError({
@@ -1644,20 +1638,20 @@ const deserializeAws_restJson1CreateAssessmentFrameworkCommandError = async (out
1644
1638
  });
1645
1639
  }
1646
1640
  };
1647
- export const deserializeAws_restJson1CreateAssessmentReportCommand = async (output, context) => {
1641
+ export const de_CreateAssessmentReportCommand = async (output, context) => {
1648
1642
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1649
- return deserializeAws_restJson1CreateAssessmentReportCommandError(output, context);
1643
+ return de_CreateAssessmentReportCommandError(output, context);
1650
1644
  }
1651
1645
  const contents = map({
1652
1646
  $metadata: deserializeMetadata(output),
1653
1647
  });
1654
1648
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1655
1649
  if (data.assessmentReport != null) {
1656
- contents.assessmentReport = deserializeAws_restJson1AssessmentReport(data.assessmentReport, context);
1650
+ contents.assessmentReport = de_AssessmentReport(data.assessmentReport, context);
1657
1651
  }
1658
1652
  return contents;
1659
1653
  };
1660
- const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output, context) => {
1654
+ const de_CreateAssessmentReportCommandError = async (output, context) => {
1661
1655
  const parsedOutput = {
1662
1656
  ...output,
1663
1657
  body: await parseErrorBody(output.body, context),
@@ -1666,16 +1660,16 @@ const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output
1666
1660
  switch (errorCode) {
1667
1661
  case "AccessDeniedException":
1668
1662
  case "com.amazonaws.auditmanager#AccessDeniedException":
1669
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1663
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1670
1664
  case "InternalServerException":
1671
1665
  case "com.amazonaws.auditmanager#InternalServerException":
1672
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1666
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1673
1667
  case "ResourceNotFoundException":
1674
1668
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1675
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1669
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1676
1670
  case "ValidationException":
1677
1671
  case "com.amazonaws.auditmanager#ValidationException":
1678
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1672
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1679
1673
  default:
1680
1674
  const parsedBody = parsedOutput.body;
1681
1675
  throwDefaultError({
@@ -1686,20 +1680,20 @@ const deserializeAws_restJson1CreateAssessmentReportCommandError = async (output
1686
1680
  });
1687
1681
  }
1688
1682
  };
1689
- export const deserializeAws_restJson1CreateControlCommand = async (output, context) => {
1683
+ export const de_CreateControlCommand = async (output, context) => {
1690
1684
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1691
- return deserializeAws_restJson1CreateControlCommandError(output, context);
1685
+ return de_CreateControlCommandError(output, context);
1692
1686
  }
1693
1687
  const contents = map({
1694
1688
  $metadata: deserializeMetadata(output),
1695
1689
  });
1696
1690
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1697
1691
  if (data.control != null) {
1698
- contents.control = deserializeAws_restJson1Control(data.control, context);
1692
+ contents.control = de_Control(data.control, context);
1699
1693
  }
1700
1694
  return contents;
1701
1695
  };
1702
- const deserializeAws_restJson1CreateControlCommandError = async (output, context) => {
1696
+ const de_CreateControlCommandError = async (output, context) => {
1703
1697
  const parsedOutput = {
1704
1698
  ...output,
1705
1699
  body: await parseErrorBody(output.body, context),
@@ -1708,19 +1702,19 @@ const deserializeAws_restJson1CreateControlCommandError = async (output, context
1708
1702
  switch (errorCode) {
1709
1703
  case "AccessDeniedException":
1710
1704
  case "com.amazonaws.auditmanager#AccessDeniedException":
1711
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1705
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1712
1706
  case "InternalServerException":
1713
1707
  case "com.amazonaws.auditmanager#InternalServerException":
1714
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1708
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1715
1709
  case "ResourceNotFoundException":
1716
1710
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1717
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1711
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1718
1712
  case "ServiceQuotaExceededException":
1719
1713
  case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
1720
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1714
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1721
1715
  case "ValidationException":
1722
1716
  case "com.amazonaws.auditmanager#ValidationException":
1723
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1717
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1724
1718
  default:
1725
1719
  const parsedBody = parsedOutput.body;
1726
1720
  throwDefaultError({
@@ -1731,9 +1725,9 @@ const deserializeAws_restJson1CreateControlCommandError = async (output, context
1731
1725
  });
1732
1726
  }
1733
1727
  };
1734
- export const deserializeAws_restJson1DeleteAssessmentCommand = async (output, context) => {
1728
+ export const de_DeleteAssessmentCommand = async (output, context) => {
1735
1729
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
- return deserializeAws_restJson1DeleteAssessmentCommandError(output, context);
1730
+ return de_DeleteAssessmentCommandError(output, context);
1737
1731
  }
1738
1732
  const contents = map({
1739
1733
  $metadata: deserializeMetadata(output),
@@ -1741,7 +1735,7 @@ export const deserializeAws_restJson1DeleteAssessmentCommand = async (output, co
1741
1735
  await collectBody(output.body, context);
1742
1736
  return contents;
1743
1737
  };
1744
- const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, context) => {
1738
+ const de_DeleteAssessmentCommandError = async (output, context) => {
1745
1739
  const parsedOutput = {
1746
1740
  ...output,
1747
1741
  body: await parseErrorBody(output.body, context),
@@ -1750,16 +1744,16 @@ const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, cont
1750
1744
  switch (errorCode) {
1751
1745
  case "AccessDeniedException":
1752
1746
  case "com.amazonaws.auditmanager#AccessDeniedException":
1753
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1747
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1754
1748
  case "InternalServerException":
1755
1749
  case "com.amazonaws.auditmanager#InternalServerException":
1756
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1750
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1757
1751
  case "ResourceNotFoundException":
1758
1752
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1759
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1753
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1760
1754
  case "ValidationException":
1761
1755
  case "com.amazonaws.auditmanager#ValidationException":
1762
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1756
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1763
1757
  default:
1764
1758
  const parsedBody = parsedOutput.body;
1765
1759
  throwDefaultError({
@@ -1770,9 +1764,9 @@ const deserializeAws_restJson1DeleteAssessmentCommandError = async (output, cont
1770
1764
  });
1771
1765
  }
1772
1766
  };
1773
- export const deserializeAws_restJson1DeleteAssessmentFrameworkCommand = async (output, context) => {
1767
+ export const de_DeleteAssessmentFrameworkCommand = async (output, context) => {
1774
1768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1775
- return deserializeAws_restJson1DeleteAssessmentFrameworkCommandError(output, context);
1769
+ return de_DeleteAssessmentFrameworkCommandError(output, context);
1776
1770
  }
1777
1771
  const contents = map({
1778
1772
  $metadata: deserializeMetadata(output),
@@ -1780,7 +1774,7 @@ export const deserializeAws_restJson1DeleteAssessmentFrameworkCommand = async (o
1780
1774
  await collectBody(output.body, context);
1781
1775
  return contents;
1782
1776
  };
1783
- const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (output, context) => {
1777
+ const de_DeleteAssessmentFrameworkCommandError = async (output, context) => {
1784
1778
  const parsedOutput = {
1785
1779
  ...output,
1786
1780
  body: await parseErrorBody(output.body, context),
@@ -1789,16 +1783,16 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (out
1789
1783
  switch (errorCode) {
1790
1784
  case "AccessDeniedException":
1791
1785
  case "com.amazonaws.auditmanager#AccessDeniedException":
1792
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1786
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1793
1787
  case "InternalServerException":
1794
1788
  case "com.amazonaws.auditmanager#InternalServerException":
1795
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1789
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1796
1790
  case "ResourceNotFoundException":
1797
1791
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1798
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1792
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1799
1793
  case "ValidationException":
1800
1794
  case "com.amazonaws.auditmanager#ValidationException":
1801
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1795
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1802
1796
  default:
1803
1797
  const parsedBody = parsedOutput.body;
1804
1798
  throwDefaultError({
@@ -1809,9 +1803,9 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkCommandError = async (out
1809
1803
  });
1810
1804
  }
1811
1805
  };
1812
- export const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async (output, context) => {
1806
+ export const de_DeleteAssessmentFrameworkShareCommand = async (output, context) => {
1813
1807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError(output, context);
1808
+ return de_DeleteAssessmentFrameworkShareCommandError(output, context);
1815
1809
  }
1816
1810
  const contents = map({
1817
1811
  $metadata: deserializeMetadata(output),
@@ -1819,7 +1813,7 @@ export const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommand = asy
1819
1813
  await collectBody(output.body, context);
1820
1814
  return contents;
1821
1815
  };
1822
- const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async (output, context) => {
1816
+ const de_DeleteAssessmentFrameworkShareCommandError = async (output, context) => {
1823
1817
  const parsedOutput = {
1824
1818
  ...output,
1825
1819
  body: await parseErrorBody(output.body, context),
@@ -1828,16 +1822,16 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async
1828
1822
  switch (errorCode) {
1829
1823
  case "AccessDeniedException":
1830
1824
  case "com.amazonaws.auditmanager#AccessDeniedException":
1831
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1825
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1832
1826
  case "InternalServerException":
1833
1827
  case "com.amazonaws.auditmanager#InternalServerException":
1834
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1828
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1835
1829
  case "ResourceNotFoundException":
1836
1830
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1837
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1831
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1838
1832
  case "ValidationException":
1839
1833
  case "com.amazonaws.auditmanager#ValidationException":
1840
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1834
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1841
1835
  default:
1842
1836
  const parsedBody = parsedOutput.body;
1843
1837
  throwDefaultError({
@@ -1848,9 +1842,9 @@ const deserializeAws_restJson1DeleteAssessmentFrameworkShareCommandError = async
1848
1842
  });
1849
1843
  }
1850
1844
  };
1851
- export const deserializeAws_restJson1DeleteAssessmentReportCommand = async (output, context) => {
1845
+ export const de_DeleteAssessmentReportCommand = async (output, context) => {
1852
1846
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1853
- return deserializeAws_restJson1DeleteAssessmentReportCommandError(output, context);
1847
+ return de_DeleteAssessmentReportCommandError(output, context);
1854
1848
  }
1855
1849
  const contents = map({
1856
1850
  $metadata: deserializeMetadata(output),
@@ -1858,7 +1852,7 @@ export const deserializeAws_restJson1DeleteAssessmentReportCommand = async (outp
1858
1852
  await collectBody(output.body, context);
1859
1853
  return contents;
1860
1854
  };
1861
- const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output, context) => {
1855
+ const de_DeleteAssessmentReportCommandError = async (output, context) => {
1862
1856
  const parsedOutput = {
1863
1857
  ...output,
1864
1858
  body: await parseErrorBody(output.body, context),
@@ -1867,16 +1861,16 @@ const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output
1867
1861
  switch (errorCode) {
1868
1862
  case "AccessDeniedException":
1869
1863
  case "com.amazonaws.auditmanager#AccessDeniedException":
1870
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1864
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1871
1865
  case "InternalServerException":
1872
1866
  case "com.amazonaws.auditmanager#InternalServerException":
1873
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1867
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1874
1868
  case "ResourceNotFoundException":
1875
1869
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1876
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1870
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1877
1871
  case "ValidationException":
1878
1872
  case "com.amazonaws.auditmanager#ValidationException":
1879
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1873
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1880
1874
  default:
1881
1875
  const parsedBody = parsedOutput.body;
1882
1876
  throwDefaultError({
@@ -1887,9 +1881,9 @@ const deserializeAws_restJson1DeleteAssessmentReportCommandError = async (output
1887
1881
  });
1888
1882
  }
1889
1883
  };
1890
- export const deserializeAws_restJson1DeleteControlCommand = async (output, context) => {
1884
+ export const de_DeleteControlCommand = async (output, context) => {
1891
1885
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1892
- return deserializeAws_restJson1DeleteControlCommandError(output, context);
1886
+ return de_DeleteControlCommandError(output, context);
1893
1887
  }
1894
1888
  const contents = map({
1895
1889
  $metadata: deserializeMetadata(output),
@@ -1897,7 +1891,7 @@ export const deserializeAws_restJson1DeleteControlCommand = async (output, conte
1897
1891
  await collectBody(output.body, context);
1898
1892
  return contents;
1899
1893
  };
1900
- const deserializeAws_restJson1DeleteControlCommandError = async (output, context) => {
1894
+ const de_DeleteControlCommandError = async (output, context) => {
1901
1895
  const parsedOutput = {
1902
1896
  ...output,
1903
1897
  body: await parseErrorBody(output.body, context),
@@ -1906,16 +1900,16 @@ const deserializeAws_restJson1DeleteControlCommandError = async (output, context
1906
1900
  switch (errorCode) {
1907
1901
  case "AccessDeniedException":
1908
1902
  case "com.amazonaws.auditmanager#AccessDeniedException":
1909
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1903
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1910
1904
  case "InternalServerException":
1911
1905
  case "com.amazonaws.auditmanager#InternalServerException":
1912
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1906
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1913
1907
  case "ResourceNotFoundException":
1914
1908
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1915
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1909
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1916
1910
  case "ValidationException":
1917
1911
  case "com.amazonaws.auditmanager#ValidationException":
1918
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1912
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1919
1913
  default:
1920
1914
  const parsedBody = parsedOutput.body;
1921
1915
  throwDefaultError({
@@ -1926,9 +1920,9 @@ const deserializeAws_restJson1DeleteControlCommandError = async (output, context
1926
1920
  });
1927
1921
  }
1928
1922
  };
1929
- export const deserializeAws_restJson1DeregisterAccountCommand = async (output, context) => {
1923
+ export const de_DeregisterAccountCommand = async (output, context) => {
1930
1924
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1931
- return deserializeAws_restJson1DeregisterAccountCommandError(output, context);
1925
+ return de_DeregisterAccountCommandError(output, context);
1932
1926
  }
1933
1927
  const contents = map({
1934
1928
  $metadata: deserializeMetadata(output),
@@ -1939,7 +1933,7 @@ export const deserializeAws_restJson1DeregisterAccountCommand = async (output, c
1939
1933
  }
1940
1934
  return contents;
1941
1935
  };
1942
- const deserializeAws_restJson1DeregisterAccountCommandError = async (output, context) => {
1936
+ const de_DeregisterAccountCommandError = async (output, context) => {
1943
1937
  const parsedOutput = {
1944
1938
  ...output,
1945
1939
  body: await parseErrorBody(output.body, context),
@@ -1948,16 +1942,16 @@ const deserializeAws_restJson1DeregisterAccountCommandError = async (output, con
1948
1942
  switch (errorCode) {
1949
1943
  case "AccessDeniedException":
1950
1944
  case "com.amazonaws.auditmanager#AccessDeniedException":
1951
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1945
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1952
1946
  case "InternalServerException":
1953
1947
  case "com.amazonaws.auditmanager#InternalServerException":
1954
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1948
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1955
1949
  case "ResourceNotFoundException":
1956
1950
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1957
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1951
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1958
1952
  case "ValidationException":
1959
1953
  case "com.amazonaws.auditmanager#ValidationException":
1960
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1954
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1961
1955
  default:
1962
1956
  const parsedBody = parsedOutput.body;
1963
1957
  throwDefaultError({
@@ -1968,9 +1962,9 @@ const deserializeAws_restJson1DeregisterAccountCommandError = async (output, con
1968
1962
  });
1969
1963
  }
1970
1964
  };
1971
- export const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommand = async (output, context) => {
1965
+ export const de_DeregisterOrganizationAdminAccountCommand = async (output, context) => {
1972
1966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1973
- return deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError(output, context);
1967
+ return de_DeregisterOrganizationAdminAccountCommandError(output, context);
1974
1968
  }
1975
1969
  const contents = map({
1976
1970
  $metadata: deserializeMetadata(output),
@@ -1978,7 +1972,7 @@ export const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommand =
1978
1972
  await collectBody(output.body, context);
1979
1973
  return contents;
1980
1974
  };
1981
- const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = async (output, context) => {
1975
+ const de_DeregisterOrganizationAdminAccountCommandError = async (output, context) => {
1982
1976
  const parsedOutput = {
1983
1977
  ...output,
1984
1978
  body: await parseErrorBody(output.body, context),
@@ -1987,16 +1981,16 @@ const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = a
1987
1981
  switch (errorCode) {
1988
1982
  case "AccessDeniedException":
1989
1983
  case "com.amazonaws.auditmanager#AccessDeniedException":
1990
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1984
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1991
1985
  case "InternalServerException":
1992
1986
  case "com.amazonaws.auditmanager#InternalServerException":
1993
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1987
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1994
1988
  case "ResourceNotFoundException":
1995
1989
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
1996
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1990
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1997
1991
  case "ValidationException":
1998
1992
  case "com.amazonaws.auditmanager#ValidationException":
1999
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1993
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2000
1994
  default:
2001
1995
  const parsedBody = parsedOutput.body;
2002
1996
  throwDefaultError({
@@ -2007,9 +2001,9 @@ const deserializeAws_restJson1DeregisterOrganizationAdminAccountCommandError = a
2007
2001
  });
2008
2002
  }
2009
2003
  };
2010
- export const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
2004
+ export const de_DisassociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
2011
2005
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2012
- return deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandError(output, context);
2006
+ return de_DisassociateAssessmentReportEvidenceFolderCommandError(output, context);
2013
2007
  }
2014
2008
  const contents = map({
2015
2009
  $metadata: deserializeMetadata(output),
@@ -2017,7 +2011,7 @@ export const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderC
2017
2011
  await collectBody(output.body, context);
2018
2012
  return contents;
2019
2013
  };
2020
- const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
2014
+ const de_DisassociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
2021
2015
  const parsedOutput = {
2022
2016
  ...output,
2023
2017
  body: await parseErrorBody(output.body, context),
@@ -2026,16 +2020,16 @@ const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandE
2026
2020
  switch (errorCode) {
2027
2021
  case "AccessDeniedException":
2028
2022
  case "com.amazonaws.auditmanager#AccessDeniedException":
2029
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2023
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2030
2024
  case "InternalServerException":
2031
2025
  case "com.amazonaws.auditmanager#InternalServerException":
2032
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2026
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2033
2027
  case "ResourceNotFoundException":
2034
2028
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2035
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2029
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2036
2030
  case "ValidationException":
2037
2031
  case "com.amazonaws.auditmanager#ValidationException":
2038
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2032
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2039
2033
  default:
2040
2034
  const parsedBody = parsedOutput.body;
2041
2035
  throwDefaultError({
@@ -2046,9 +2040,9 @@ const deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommandE
2046
2040
  });
2047
2041
  }
2048
2042
  };
2049
- export const deserializeAws_restJson1GetAccountStatusCommand = async (output, context) => {
2043
+ export const de_GetAccountStatusCommand = async (output, context) => {
2050
2044
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2051
- return deserializeAws_restJson1GetAccountStatusCommandError(output, context);
2045
+ return de_GetAccountStatusCommandError(output, context);
2052
2046
  }
2053
2047
  const contents = map({
2054
2048
  $metadata: deserializeMetadata(output),
@@ -2059,7 +2053,7 @@ export const deserializeAws_restJson1GetAccountStatusCommand = async (output, co
2059
2053
  }
2060
2054
  return contents;
2061
2055
  };
2062
- const deserializeAws_restJson1GetAccountStatusCommandError = async (output, context) => {
2056
+ const de_GetAccountStatusCommandError = async (output, context) => {
2063
2057
  const parsedOutput = {
2064
2058
  ...output,
2065
2059
  body: await parseErrorBody(output.body, context),
@@ -2068,7 +2062,7 @@ const deserializeAws_restJson1GetAccountStatusCommandError = async (output, cont
2068
2062
  switch (errorCode) {
2069
2063
  case "InternalServerException":
2070
2064
  case "com.amazonaws.auditmanager#InternalServerException":
2071
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2065
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2072
2066
  default:
2073
2067
  const parsedBody = parsedOutput.body;
2074
2068
  throwDefaultError({
@@ -2079,23 +2073,23 @@ const deserializeAws_restJson1GetAccountStatusCommandError = async (output, cont
2079
2073
  });
2080
2074
  }
2081
2075
  };
2082
- export const deserializeAws_restJson1GetAssessmentCommand = async (output, context) => {
2076
+ export const de_GetAssessmentCommand = async (output, context) => {
2083
2077
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2084
- return deserializeAws_restJson1GetAssessmentCommandError(output, context);
2078
+ return de_GetAssessmentCommandError(output, context);
2085
2079
  }
2086
2080
  const contents = map({
2087
2081
  $metadata: deserializeMetadata(output),
2088
2082
  });
2089
2083
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2090
2084
  if (data.assessment != null) {
2091
- contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
2085
+ contents.assessment = de_Assessment(data.assessment, context);
2092
2086
  }
2093
2087
  if (data.userRole != null) {
2094
- contents.userRole = deserializeAws_restJson1Role(data.userRole, context);
2088
+ contents.userRole = de_Role(data.userRole, context);
2095
2089
  }
2096
2090
  return contents;
2097
2091
  };
2098
- const deserializeAws_restJson1GetAssessmentCommandError = async (output, context) => {
2092
+ const de_GetAssessmentCommandError = async (output, context) => {
2099
2093
  const parsedOutput = {
2100
2094
  ...output,
2101
2095
  body: await parseErrorBody(output.body, context),
@@ -2104,16 +2098,16 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
2104
2098
  switch (errorCode) {
2105
2099
  case "AccessDeniedException":
2106
2100
  case "com.amazonaws.auditmanager#AccessDeniedException":
2107
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2101
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2108
2102
  case "InternalServerException":
2109
2103
  case "com.amazonaws.auditmanager#InternalServerException":
2110
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2104
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2111
2105
  case "ResourceNotFoundException":
2112
2106
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2113
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2107
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2114
2108
  case "ValidationException":
2115
2109
  case "com.amazonaws.auditmanager#ValidationException":
2116
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2110
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2117
2111
  default:
2118
2112
  const parsedBody = parsedOutput.body;
2119
2113
  throwDefaultError({
@@ -2124,20 +2118,20 @@ const deserializeAws_restJson1GetAssessmentCommandError = async (output, context
2124
2118
  });
2125
2119
  }
2126
2120
  };
2127
- export const deserializeAws_restJson1GetAssessmentFrameworkCommand = async (output, context) => {
2121
+ export const de_GetAssessmentFrameworkCommand = async (output, context) => {
2128
2122
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2129
- return deserializeAws_restJson1GetAssessmentFrameworkCommandError(output, context);
2123
+ return de_GetAssessmentFrameworkCommandError(output, context);
2130
2124
  }
2131
2125
  const contents = map({
2132
2126
  $metadata: deserializeMetadata(output),
2133
2127
  });
2134
2128
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2135
2129
  if (data.framework != null) {
2136
- contents.framework = deserializeAws_restJson1Framework(data.framework, context);
2130
+ contents.framework = de_Framework(data.framework, context);
2137
2131
  }
2138
2132
  return contents;
2139
2133
  };
2140
- const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output, context) => {
2134
+ const de_GetAssessmentFrameworkCommandError = async (output, context) => {
2141
2135
  const parsedOutput = {
2142
2136
  ...output,
2143
2137
  body: await parseErrorBody(output.body, context),
@@ -2146,16 +2140,16 @@ const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output
2146
2140
  switch (errorCode) {
2147
2141
  case "AccessDeniedException":
2148
2142
  case "com.amazonaws.auditmanager#AccessDeniedException":
2149
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2143
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2150
2144
  case "InternalServerException":
2151
2145
  case "com.amazonaws.auditmanager#InternalServerException":
2152
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2146
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2153
2147
  case "ResourceNotFoundException":
2154
2148
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2155
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2149
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2156
2150
  case "ValidationException":
2157
2151
  case "com.amazonaws.auditmanager#ValidationException":
2158
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2152
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2159
2153
  default:
2160
2154
  const parsedBody = parsedOutput.body;
2161
2155
  throwDefaultError({
@@ -2166,20 +2160,20 @@ const deserializeAws_restJson1GetAssessmentFrameworkCommandError = async (output
2166
2160
  });
2167
2161
  }
2168
2162
  };
2169
- export const deserializeAws_restJson1GetAssessmentReportUrlCommand = async (output, context) => {
2163
+ export const de_GetAssessmentReportUrlCommand = async (output, context) => {
2170
2164
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2171
- return deserializeAws_restJson1GetAssessmentReportUrlCommandError(output, context);
2165
+ return de_GetAssessmentReportUrlCommandError(output, context);
2172
2166
  }
2173
2167
  const contents = map({
2174
2168
  $metadata: deserializeMetadata(output),
2175
2169
  });
2176
2170
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2177
2171
  if (data.preSignedUrl != null) {
2178
- contents.preSignedUrl = deserializeAws_restJson1URL(data.preSignedUrl, context);
2172
+ contents.preSignedUrl = de_URL(data.preSignedUrl, context);
2179
2173
  }
2180
2174
  return contents;
2181
2175
  };
2182
- const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output, context) => {
2176
+ const de_GetAssessmentReportUrlCommandError = async (output, context) => {
2183
2177
  const parsedOutput = {
2184
2178
  ...output,
2185
2179
  body: await parseErrorBody(output.body, context),
@@ -2188,16 +2182,16 @@ const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output
2188
2182
  switch (errorCode) {
2189
2183
  case "AccessDeniedException":
2190
2184
  case "com.amazonaws.auditmanager#AccessDeniedException":
2191
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2185
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2192
2186
  case "InternalServerException":
2193
2187
  case "com.amazonaws.auditmanager#InternalServerException":
2194
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2188
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2195
2189
  case "ResourceNotFoundException":
2196
2190
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2197
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2191
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2198
2192
  case "ValidationException":
2199
2193
  case "com.amazonaws.auditmanager#ValidationException":
2200
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2194
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2201
2195
  default:
2202
2196
  const parsedBody = parsedOutput.body;
2203
2197
  throwDefaultError({
@@ -2208,23 +2202,23 @@ const deserializeAws_restJson1GetAssessmentReportUrlCommandError = async (output
2208
2202
  });
2209
2203
  }
2210
2204
  };
2211
- export const deserializeAws_restJson1GetChangeLogsCommand = async (output, context) => {
2205
+ export const de_GetChangeLogsCommand = async (output, context) => {
2212
2206
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2213
- return deserializeAws_restJson1GetChangeLogsCommandError(output, context);
2207
+ return de_GetChangeLogsCommandError(output, context);
2214
2208
  }
2215
2209
  const contents = map({
2216
2210
  $metadata: deserializeMetadata(output),
2217
2211
  });
2218
2212
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2219
2213
  if (data.changeLogs != null) {
2220
- contents.changeLogs = deserializeAws_restJson1ChangeLogs(data.changeLogs, context);
2214
+ contents.changeLogs = de_ChangeLogs(data.changeLogs, context);
2221
2215
  }
2222
2216
  if (data.nextToken != null) {
2223
2217
  contents.nextToken = __expectString(data.nextToken);
2224
2218
  }
2225
2219
  return contents;
2226
2220
  };
2227
- const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context) => {
2221
+ const de_GetChangeLogsCommandError = async (output, context) => {
2228
2222
  const parsedOutput = {
2229
2223
  ...output,
2230
2224
  body: await parseErrorBody(output.body, context),
@@ -2233,16 +2227,16 @@ const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context
2233
2227
  switch (errorCode) {
2234
2228
  case "AccessDeniedException":
2235
2229
  case "com.amazonaws.auditmanager#AccessDeniedException":
2236
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2230
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2237
2231
  case "InternalServerException":
2238
2232
  case "com.amazonaws.auditmanager#InternalServerException":
2239
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2233
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2240
2234
  case "ResourceNotFoundException":
2241
2235
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2242
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2236
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2243
2237
  case "ValidationException":
2244
2238
  case "com.amazonaws.auditmanager#ValidationException":
2245
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2239
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2246
2240
  default:
2247
2241
  const parsedBody = parsedOutput.body;
2248
2242
  throwDefaultError({
@@ -2253,20 +2247,20 @@ const deserializeAws_restJson1GetChangeLogsCommandError = async (output, context
2253
2247
  });
2254
2248
  }
2255
2249
  };
2256
- export const deserializeAws_restJson1GetControlCommand = async (output, context) => {
2250
+ export const de_GetControlCommand = async (output, context) => {
2257
2251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2258
- return deserializeAws_restJson1GetControlCommandError(output, context);
2252
+ return de_GetControlCommandError(output, context);
2259
2253
  }
2260
2254
  const contents = map({
2261
2255
  $metadata: deserializeMetadata(output),
2262
2256
  });
2263
2257
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2264
2258
  if (data.control != null) {
2265
- contents.control = deserializeAws_restJson1Control(data.control, context);
2259
+ contents.control = de_Control(data.control, context);
2266
2260
  }
2267
2261
  return contents;
2268
2262
  };
2269
- const deserializeAws_restJson1GetControlCommandError = async (output, context) => {
2263
+ const de_GetControlCommandError = async (output, context) => {
2270
2264
  const parsedOutput = {
2271
2265
  ...output,
2272
2266
  body: await parseErrorBody(output.body, context),
@@ -2275,16 +2269,16 @@ const deserializeAws_restJson1GetControlCommandError = async (output, context) =
2275
2269
  switch (errorCode) {
2276
2270
  case "AccessDeniedException":
2277
2271
  case "com.amazonaws.auditmanager#AccessDeniedException":
2278
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2272
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2279
2273
  case "InternalServerException":
2280
2274
  case "com.amazonaws.auditmanager#InternalServerException":
2281
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2275
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2282
2276
  case "ResourceNotFoundException":
2283
2277
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2284
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2278
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2285
2279
  case "ValidationException":
2286
2280
  case "com.amazonaws.auditmanager#ValidationException":
2287
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2281
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2288
2282
  default:
2289
2283
  const parsedBody = parsedOutput.body;
2290
2284
  throwDefaultError({
@@ -2295,23 +2289,23 @@ const deserializeAws_restJson1GetControlCommandError = async (output, context) =
2295
2289
  });
2296
2290
  }
2297
2291
  };
2298
- export const deserializeAws_restJson1GetDelegationsCommand = async (output, context) => {
2292
+ export const de_GetDelegationsCommand = async (output, context) => {
2299
2293
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2300
- return deserializeAws_restJson1GetDelegationsCommandError(output, context);
2294
+ return de_GetDelegationsCommandError(output, context);
2301
2295
  }
2302
2296
  const contents = map({
2303
2297
  $metadata: deserializeMetadata(output),
2304
2298
  });
2305
2299
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2306
2300
  if (data.delegations != null) {
2307
- contents.delegations = deserializeAws_restJson1DelegationMetadataList(data.delegations, context);
2301
+ contents.delegations = de_DelegationMetadataList(data.delegations, context);
2308
2302
  }
2309
2303
  if (data.nextToken != null) {
2310
2304
  contents.nextToken = __expectString(data.nextToken);
2311
2305
  }
2312
2306
  return contents;
2313
2307
  };
2314
- const deserializeAws_restJson1GetDelegationsCommandError = async (output, context) => {
2308
+ const de_GetDelegationsCommandError = async (output, context) => {
2315
2309
  const parsedOutput = {
2316
2310
  ...output,
2317
2311
  body: await parseErrorBody(output.body, context),
@@ -2320,13 +2314,13 @@ const deserializeAws_restJson1GetDelegationsCommandError = async (output, contex
2320
2314
  switch (errorCode) {
2321
2315
  case "AccessDeniedException":
2322
2316
  case "com.amazonaws.auditmanager#AccessDeniedException":
2323
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2317
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2324
2318
  case "InternalServerException":
2325
2319
  case "com.amazonaws.auditmanager#InternalServerException":
2326
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2320
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2327
2321
  case "ValidationException":
2328
2322
  case "com.amazonaws.auditmanager#ValidationException":
2329
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2323
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2330
2324
  default:
2331
2325
  const parsedBody = parsedOutput.body;
2332
2326
  throwDefaultError({
@@ -2337,20 +2331,20 @@ const deserializeAws_restJson1GetDelegationsCommandError = async (output, contex
2337
2331
  });
2338
2332
  }
2339
2333
  };
2340
- export const deserializeAws_restJson1GetEvidenceCommand = async (output, context) => {
2334
+ export const de_GetEvidenceCommand = async (output, context) => {
2341
2335
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2342
- return deserializeAws_restJson1GetEvidenceCommandError(output, context);
2336
+ return de_GetEvidenceCommandError(output, context);
2343
2337
  }
2344
2338
  const contents = map({
2345
2339
  $metadata: deserializeMetadata(output),
2346
2340
  });
2347
2341
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2348
2342
  if (data.evidence != null) {
2349
- contents.evidence = deserializeAws_restJson1Evidence(data.evidence, context);
2343
+ contents.evidence = de_Evidence(data.evidence, context);
2350
2344
  }
2351
2345
  return contents;
2352
2346
  };
2353
- const deserializeAws_restJson1GetEvidenceCommandError = async (output, context) => {
2347
+ const de_GetEvidenceCommandError = async (output, context) => {
2354
2348
  const parsedOutput = {
2355
2349
  ...output,
2356
2350
  body: await parseErrorBody(output.body, context),
@@ -2359,16 +2353,16 @@ const deserializeAws_restJson1GetEvidenceCommandError = async (output, context)
2359
2353
  switch (errorCode) {
2360
2354
  case "AccessDeniedException":
2361
2355
  case "com.amazonaws.auditmanager#AccessDeniedException":
2362
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2356
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2363
2357
  case "InternalServerException":
2364
2358
  case "com.amazonaws.auditmanager#InternalServerException":
2365
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2359
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2366
2360
  case "ResourceNotFoundException":
2367
2361
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2368
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2362
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2369
2363
  case "ValidationException":
2370
2364
  case "com.amazonaws.auditmanager#ValidationException":
2371
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2365
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2372
2366
  default:
2373
2367
  const parsedBody = parsedOutput.body;
2374
2368
  throwDefaultError({
@@ -2379,23 +2373,23 @@ const deserializeAws_restJson1GetEvidenceCommandError = async (output, context)
2379
2373
  });
2380
2374
  }
2381
2375
  };
2382
- export const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand = async (output, context) => {
2376
+ export const de_GetEvidenceByEvidenceFolderCommand = async (output, context) => {
2383
2377
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2384
- return deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError(output, context);
2378
+ return de_GetEvidenceByEvidenceFolderCommandError(output, context);
2385
2379
  }
2386
2380
  const contents = map({
2387
2381
  $metadata: deserializeMetadata(output),
2388
2382
  });
2389
2383
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2390
2384
  if (data.evidence != null) {
2391
- contents.evidence = deserializeAws_restJson1EvidenceList(data.evidence, context);
2385
+ contents.evidence = de_EvidenceList(data.evidence, context);
2392
2386
  }
2393
2387
  if (data.nextToken != null) {
2394
2388
  contents.nextToken = __expectString(data.nextToken);
2395
2389
  }
2396
2390
  return contents;
2397
2391
  };
2398
- const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
2392
+ const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
2399
2393
  const parsedOutput = {
2400
2394
  ...output,
2401
2395
  body: await parseErrorBody(output.body, context),
@@ -2404,16 +2398,16 @@ const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (o
2404
2398
  switch (errorCode) {
2405
2399
  case "AccessDeniedException":
2406
2400
  case "com.amazonaws.auditmanager#AccessDeniedException":
2407
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2401
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2408
2402
  case "InternalServerException":
2409
2403
  case "com.amazonaws.auditmanager#InternalServerException":
2410
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2404
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2411
2405
  case "ResourceNotFoundException":
2412
2406
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2413
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2407
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2414
2408
  case "ValidationException":
2415
2409
  case "com.amazonaws.auditmanager#ValidationException":
2416
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2410
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2417
2411
  default:
2418
2412
  const parsedBody = parsedOutput.body;
2419
2413
  throwDefaultError({
@@ -2424,20 +2418,20 @@ const deserializeAws_restJson1GetEvidenceByEvidenceFolderCommandError = async (o
2424
2418
  });
2425
2419
  }
2426
2420
  };
2427
- export const deserializeAws_restJson1GetEvidenceFolderCommand = async (output, context) => {
2421
+ export const de_GetEvidenceFolderCommand = async (output, context) => {
2428
2422
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2429
- return deserializeAws_restJson1GetEvidenceFolderCommandError(output, context);
2423
+ return de_GetEvidenceFolderCommandError(output, context);
2430
2424
  }
2431
2425
  const contents = map({
2432
2426
  $metadata: deserializeMetadata(output),
2433
2427
  });
2434
2428
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2435
2429
  if (data.evidenceFolder != null) {
2436
- contents.evidenceFolder = deserializeAws_restJson1AssessmentEvidenceFolder(data.evidenceFolder, context);
2430
+ contents.evidenceFolder = de_AssessmentEvidenceFolder(data.evidenceFolder, context);
2437
2431
  }
2438
2432
  return contents;
2439
2433
  };
2440
- const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, context) => {
2434
+ const de_GetEvidenceFolderCommandError = async (output, context) => {
2441
2435
  const parsedOutput = {
2442
2436
  ...output,
2443
2437
  body: await parseErrorBody(output.body, context),
@@ -2446,16 +2440,16 @@ const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, con
2446
2440
  switch (errorCode) {
2447
2441
  case "AccessDeniedException":
2448
2442
  case "com.amazonaws.auditmanager#AccessDeniedException":
2449
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2443
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2450
2444
  case "InternalServerException":
2451
2445
  case "com.amazonaws.auditmanager#InternalServerException":
2452
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2446
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2453
2447
  case "ResourceNotFoundException":
2454
2448
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2455
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2449
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2456
2450
  case "ValidationException":
2457
2451
  case "com.amazonaws.auditmanager#ValidationException":
2458
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2452
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2459
2453
  default:
2460
2454
  const parsedBody = parsedOutput.body;
2461
2455
  throwDefaultError({
@@ -2466,23 +2460,23 @@ const deserializeAws_restJson1GetEvidenceFolderCommandError = async (output, con
2466
2460
  });
2467
2461
  }
2468
2462
  };
2469
- export const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = async (output, context) => {
2463
+ export const de_GetEvidenceFoldersByAssessmentCommand = async (output, context) => {
2470
2464
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2471
- return deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError(output, context);
2465
+ return de_GetEvidenceFoldersByAssessmentCommandError(output, context);
2472
2466
  }
2473
2467
  const contents = map({
2474
2468
  $metadata: deserializeMetadata(output),
2475
2469
  });
2476
2470
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2477
2471
  if (data.evidenceFolders != null) {
2478
- contents.evidenceFolders = deserializeAws_restJson1AssessmentEvidenceFolders(data.evidenceFolders, context);
2472
+ contents.evidenceFolders = de_AssessmentEvidenceFolders(data.evidenceFolders, context);
2479
2473
  }
2480
2474
  if (data.nextToken != null) {
2481
2475
  contents.nextToken = __expectString(data.nextToken);
2482
2476
  }
2483
2477
  return contents;
2484
2478
  };
2485
- const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async (output, context) => {
2479
+ const de_GetEvidenceFoldersByAssessmentCommandError = async (output, context) => {
2486
2480
  const parsedOutput = {
2487
2481
  ...output,
2488
2482
  body: await parseErrorBody(output.body, context),
@@ -2491,16 +2485,16 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async
2491
2485
  switch (errorCode) {
2492
2486
  case "AccessDeniedException":
2493
2487
  case "com.amazonaws.auditmanager#AccessDeniedException":
2494
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2488
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2495
2489
  case "InternalServerException":
2496
2490
  case "com.amazonaws.auditmanager#InternalServerException":
2497
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2491
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2498
2492
  case "ResourceNotFoundException":
2499
2493
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2500
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2494
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2501
2495
  case "ValidationException":
2502
2496
  case "com.amazonaws.auditmanager#ValidationException":
2503
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2497
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2504
2498
  default:
2505
2499
  const parsedBody = parsedOutput.body;
2506
2500
  throwDefaultError({
@@ -2511,23 +2505,23 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommandError = async
2511
2505
  });
2512
2506
  }
2513
2507
  };
2514
- export const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = async (output, context) => {
2508
+ export const de_GetEvidenceFoldersByAssessmentControlCommand = async (output, context) => {
2515
2509
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2516
- return deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError(output, context);
2510
+ return de_GetEvidenceFoldersByAssessmentControlCommandError(output, context);
2517
2511
  }
2518
2512
  const contents = map({
2519
2513
  $metadata: deserializeMetadata(output),
2520
2514
  });
2521
2515
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2522
2516
  if (data.evidenceFolders != null) {
2523
- contents.evidenceFolders = deserializeAws_restJson1AssessmentEvidenceFolders(data.evidenceFolders, context);
2517
+ contents.evidenceFolders = de_AssessmentEvidenceFolders(data.evidenceFolders, context);
2524
2518
  }
2525
2519
  if (data.nextToken != null) {
2526
2520
  contents.nextToken = __expectString(data.nextToken);
2527
2521
  }
2528
2522
  return contents;
2529
2523
  };
2530
- const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError = async (output, context) => {
2524
+ const de_GetEvidenceFoldersByAssessmentControlCommandError = async (output, context) => {
2531
2525
  const parsedOutput = {
2532
2526
  ...output,
2533
2527
  body: await parseErrorBody(output.body, context),
@@ -2536,16 +2530,16 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
2536
2530
  switch (errorCode) {
2537
2531
  case "AccessDeniedException":
2538
2532
  case "com.amazonaws.auditmanager#AccessDeniedException":
2539
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2533
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2540
2534
  case "InternalServerException":
2541
2535
  case "com.amazonaws.auditmanager#InternalServerException":
2542
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2536
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2543
2537
  case "ResourceNotFoundException":
2544
2538
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2545
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2539
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2546
2540
  case "ValidationException":
2547
2541
  case "com.amazonaws.auditmanager#ValidationException":
2548
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2542
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2549
2543
  default:
2550
2544
  const parsedBody = parsedOutput.body;
2551
2545
  throwDefaultError({
@@ -2556,20 +2550,20 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
2556
2550
  });
2557
2551
  }
2558
2552
  };
2559
- export const deserializeAws_restJson1GetInsightsCommand = async (output, context) => {
2553
+ export const de_GetInsightsCommand = async (output, context) => {
2560
2554
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2561
- return deserializeAws_restJson1GetInsightsCommandError(output, context);
2555
+ return de_GetInsightsCommandError(output, context);
2562
2556
  }
2563
2557
  const contents = map({
2564
2558
  $metadata: deserializeMetadata(output),
2565
2559
  });
2566
2560
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2567
2561
  if (data.insights != null) {
2568
- contents.insights = deserializeAws_restJson1Insights(data.insights, context);
2562
+ contents.insights = de_Insights(data.insights, context);
2569
2563
  }
2570
2564
  return contents;
2571
2565
  };
2572
- const deserializeAws_restJson1GetInsightsCommandError = async (output, context) => {
2566
+ const de_GetInsightsCommandError = async (output, context) => {
2573
2567
  const parsedOutput = {
2574
2568
  ...output,
2575
2569
  body: await parseErrorBody(output.body, context),
@@ -2578,10 +2572,10 @@ const deserializeAws_restJson1GetInsightsCommandError = async (output, context)
2578
2572
  switch (errorCode) {
2579
2573
  case "AccessDeniedException":
2580
2574
  case "com.amazonaws.auditmanager#AccessDeniedException":
2581
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2575
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2582
2576
  case "InternalServerException":
2583
2577
  case "com.amazonaws.auditmanager#InternalServerException":
2584
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2578
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2585
2579
  default:
2586
2580
  const parsedBody = parsedOutput.body;
2587
2581
  throwDefaultError({
@@ -2592,20 +2586,20 @@ const deserializeAws_restJson1GetInsightsCommandError = async (output, context)
2592
2586
  });
2593
2587
  }
2594
2588
  };
2595
- export const deserializeAws_restJson1GetInsightsByAssessmentCommand = async (output, context) => {
2589
+ export const de_GetInsightsByAssessmentCommand = async (output, context) => {
2596
2590
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2597
- return deserializeAws_restJson1GetInsightsByAssessmentCommandError(output, context);
2591
+ return de_GetInsightsByAssessmentCommandError(output, context);
2598
2592
  }
2599
2593
  const contents = map({
2600
2594
  $metadata: deserializeMetadata(output),
2601
2595
  });
2602
2596
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2603
2597
  if (data.insights != null) {
2604
- contents.insights = deserializeAws_restJson1InsightsByAssessment(data.insights, context);
2598
+ contents.insights = de_InsightsByAssessment(data.insights, context);
2605
2599
  }
2606
2600
  return contents;
2607
2601
  };
2608
- const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (output, context) => {
2602
+ const de_GetInsightsByAssessmentCommandError = async (output, context) => {
2609
2603
  const parsedOutput = {
2610
2604
  ...output,
2611
2605
  body: await parseErrorBody(output.body, context),
@@ -2614,16 +2608,16 @@ const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (outpu
2614
2608
  switch (errorCode) {
2615
2609
  case "AccessDeniedException":
2616
2610
  case "com.amazonaws.auditmanager#AccessDeniedException":
2617
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2611
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2618
2612
  case "InternalServerException":
2619
2613
  case "com.amazonaws.auditmanager#InternalServerException":
2620
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2614
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2621
2615
  case "ResourceNotFoundException":
2622
2616
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2623
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2617
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2624
2618
  case "ValidationException":
2625
2619
  case "com.amazonaws.auditmanager#ValidationException":
2626
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2620
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2627
2621
  default:
2628
2622
  const parsedBody = parsedOutput.body;
2629
2623
  throwDefaultError({
@@ -2634,9 +2628,9 @@ const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (outpu
2634
2628
  });
2635
2629
  }
2636
2630
  };
2637
- export const deserializeAws_restJson1GetOrganizationAdminAccountCommand = async (output, context) => {
2631
+ export const de_GetOrganizationAdminAccountCommand = async (output, context) => {
2638
2632
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2639
- return deserializeAws_restJson1GetOrganizationAdminAccountCommandError(output, context);
2633
+ return de_GetOrganizationAdminAccountCommandError(output, context);
2640
2634
  }
2641
2635
  const contents = map({
2642
2636
  $metadata: deserializeMetadata(output),
@@ -2650,7 +2644,7 @@ export const deserializeAws_restJson1GetOrganizationAdminAccountCommand = async
2650
2644
  }
2651
2645
  return contents;
2652
2646
  };
2653
- const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (output, context) => {
2647
+ const de_GetOrganizationAdminAccountCommandError = async (output, context) => {
2654
2648
  const parsedOutput = {
2655
2649
  ...output,
2656
2650
  body: await parseErrorBody(output.body, context),
@@ -2659,16 +2653,16 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
2659
2653
  switch (errorCode) {
2660
2654
  case "AccessDeniedException":
2661
2655
  case "com.amazonaws.auditmanager#AccessDeniedException":
2662
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2656
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2663
2657
  case "InternalServerException":
2664
2658
  case "com.amazonaws.auditmanager#InternalServerException":
2665
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2659
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2666
2660
  case "ResourceNotFoundException":
2667
2661
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2668
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2662
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2669
2663
  case "ValidationException":
2670
2664
  case "com.amazonaws.auditmanager#ValidationException":
2671
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2665
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2672
2666
  default:
2673
2667
  const parsedBody = parsedOutput.body;
2674
2668
  throwDefaultError({
@@ -2679,20 +2673,20 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
2679
2673
  });
2680
2674
  }
2681
2675
  };
2682
- export const deserializeAws_restJson1GetServicesInScopeCommand = async (output, context) => {
2676
+ export const de_GetServicesInScopeCommand = async (output, context) => {
2683
2677
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2684
- return deserializeAws_restJson1GetServicesInScopeCommandError(output, context);
2678
+ return de_GetServicesInScopeCommandError(output, context);
2685
2679
  }
2686
2680
  const contents = map({
2687
2681
  $metadata: deserializeMetadata(output),
2688
2682
  });
2689
2683
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2690
2684
  if (data.serviceMetadata != null) {
2691
- contents.serviceMetadata = deserializeAws_restJson1ServiceMetadataList(data.serviceMetadata, context);
2685
+ contents.serviceMetadata = de_ServiceMetadataList(data.serviceMetadata, context);
2692
2686
  }
2693
2687
  return contents;
2694
2688
  };
2695
- const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, context) => {
2689
+ const de_GetServicesInScopeCommandError = async (output, context) => {
2696
2690
  const parsedOutput = {
2697
2691
  ...output,
2698
2692
  body: await parseErrorBody(output.body, context),
@@ -2701,13 +2695,13 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
2701
2695
  switch (errorCode) {
2702
2696
  case "AccessDeniedException":
2703
2697
  case "com.amazonaws.auditmanager#AccessDeniedException":
2704
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2698
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2705
2699
  case "InternalServerException":
2706
2700
  case "com.amazonaws.auditmanager#InternalServerException":
2707
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2701
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2708
2702
  case "ValidationException":
2709
2703
  case "com.amazonaws.auditmanager#ValidationException":
2710
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2704
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2711
2705
  default:
2712
2706
  const parsedBody = parsedOutput.body;
2713
2707
  throwDefaultError({
@@ -2718,20 +2712,20 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
2718
2712
  });
2719
2713
  }
2720
2714
  };
2721
- export const deserializeAws_restJson1GetSettingsCommand = async (output, context) => {
2715
+ export const de_GetSettingsCommand = async (output, context) => {
2722
2716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2723
- return deserializeAws_restJson1GetSettingsCommandError(output, context);
2717
+ return de_GetSettingsCommandError(output, context);
2724
2718
  }
2725
2719
  const contents = map({
2726
2720
  $metadata: deserializeMetadata(output),
2727
2721
  });
2728
2722
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2729
2723
  if (data.settings != null) {
2730
- contents.settings = deserializeAws_restJson1Settings(data.settings, context);
2724
+ contents.settings = de_Settings(data.settings, context);
2731
2725
  }
2732
2726
  return contents;
2733
2727
  };
2734
- const deserializeAws_restJson1GetSettingsCommandError = async (output, context) => {
2728
+ const de_GetSettingsCommandError = async (output, context) => {
2735
2729
  const parsedOutput = {
2736
2730
  ...output,
2737
2731
  body: await parseErrorBody(output.body, context),
@@ -2740,10 +2734,10 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
2740
2734
  switch (errorCode) {
2741
2735
  case "AccessDeniedException":
2742
2736
  case "com.amazonaws.auditmanager#AccessDeniedException":
2743
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2737
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2744
2738
  case "InternalServerException":
2745
2739
  case "com.amazonaws.auditmanager#InternalServerException":
2746
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2740
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2747
2741
  default:
2748
2742
  const parsedBody = parsedOutput.body;
2749
2743
  throwDefaultError({
@@ -2754,23 +2748,23 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
2754
2748
  });
2755
2749
  }
2756
2750
  };
2757
- export const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = async (output, context) => {
2751
+ export const de_ListAssessmentControlInsightsByControlDomainCommand = async (output, context) => {
2758
2752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2759
- return deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError(output, context);
2753
+ return de_ListAssessmentControlInsightsByControlDomainCommandError(output, context);
2760
2754
  }
2761
2755
  const contents = map({
2762
2756
  $metadata: deserializeMetadata(output),
2763
2757
  });
2764
2758
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2765
2759
  if (data.controlInsightsByAssessment != null) {
2766
- contents.controlInsightsByAssessment = deserializeAws_restJson1ControlInsightsMetadataByAssessment(data.controlInsightsByAssessment, context);
2760
+ contents.controlInsightsByAssessment = de_ControlInsightsMetadataByAssessment(data.controlInsightsByAssessment, context);
2767
2761
  }
2768
2762
  if (data.nextToken != null) {
2769
2763
  contents.nextToken = __expectString(data.nextToken);
2770
2764
  }
2771
2765
  return contents;
2772
2766
  };
2773
- const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
2767
+ const de_ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
2774
2768
  const parsedOutput = {
2775
2769
  ...output,
2776
2770
  body: await parseErrorBody(output.body, context),
@@ -2779,16 +2773,16 @@ const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
2779
2773
  switch (errorCode) {
2780
2774
  case "AccessDeniedException":
2781
2775
  case "com.amazonaws.auditmanager#AccessDeniedException":
2782
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2776
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2783
2777
  case "InternalServerException":
2784
2778
  case "com.amazonaws.auditmanager#InternalServerException":
2785
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2779
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2786
2780
  case "ResourceNotFoundException":
2787
2781
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
2788
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2782
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2789
2783
  case "ValidationException":
2790
2784
  case "com.amazonaws.auditmanager#ValidationException":
2791
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2785
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2792
2786
  default:
2793
2787
  const parsedBody = parsedOutput.body;
2794
2788
  throwDefaultError({
@@ -2799,23 +2793,23 @@ const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainComman
2799
2793
  });
2800
2794
  }
2801
2795
  };
2802
- export const deserializeAws_restJson1ListAssessmentFrameworksCommand = async (output, context) => {
2796
+ export const de_ListAssessmentFrameworksCommand = async (output, context) => {
2803
2797
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2804
- return deserializeAws_restJson1ListAssessmentFrameworksCommandError(output, context);
2798
+ return de_ListAssessmentFrameworksCommandError(output, context);
2805
2799
  }
2806
2800
  const contents = map({
2807
2801
  $metadata: deserializeMetadata(output),
2808
2802
  });
2809
2803
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2810
2804
  if (data.frameworkMetadataList != null) {
2811
- contents.frameworkMetadataList = deserializeAws_restJson1FrameworkMetadataList(data.frameworkMetadataList, context);
2805
+ contents.frameworkMetadataList = de_FrameworkMetadataList(data.frameworkMetadataList, context);
2812
2806
  }
2813
2807
  if (data.nextToken != null) {
2814
2808
  contents.nextToken = __expectString(data.nextToken);
2815
2809
  }
2816
2810
  return contents;
2817
2811
  };
2818
- const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (output, context) => {
2812
+ const de_ListAssessmentFrameworksCommandError = async (output, context) => {
2819
2813
  const parsedOutput = {
2820
2814
  ...output,
2821
2815
  body: await parseErrorBody(output.body, context),
@@ -2824,13 +2818,13 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
2824
2818
  switch (errorCode) {
2825
2819
  case "AccessDeniedException":
2826
2820
  case "com.amazonaws.auditmanager#AccessDeniedException":
2827
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2821
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2828
2822
  case "InternalServerException":
2829
2823
  case "com.amazonaws.auditmanager#InternalServerException":
2830
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2824
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2831
2825
  case "ValidationException":
2832
2826
  case "com.amazonaws.auditmanager#ValidationException":
2833
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2827
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2834
2828
  default:
2835
2829
  const parsedBody = parsedOutput.body;
2836
2830
  throwDefaultError({
@@ -2841,23 +2835,23 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
2841
2835
  });
2842
2836
  }
2843
2837
  };
2844
- export const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async (output, context) => {
2838
+ export const de_ListAssessmentFrameworkShareRequestsCommand = async (output, context) => {
2845
2839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2846
- return deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError(output, context);
2840
+ return de_ListAssessmentFrameworkShareRequestsCommandError(output, context);
2847
2841
  }
2848
2842
  const contents = map({
2849
2843
  $metadata: deserializeMetadata(output),
2850
2844
  });
2851
2845
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2852
2846
  if (data.assessmentFrameworkShareRequests != null) {
2853
- contents.assessmentFrameworkShareRequests = deserializeAws_restJson1AssessmentFrameworkShareRequestList(data.assessmentFrameworkShareRequests, context);
2847
+ contents.assessmentFrameworkShareRequests = de_AssessmentFrameworkShareRequestList(data.assessmentFrameworkShareRequests, context);
2854
2848
  }
2855
2849
  if (data.nextToken != null) {
2856
2850
  contents.nextToken = __expectString(data.nextToken);
2857
2851
  }
2858
2852
  return contents;
2859
2853
  };
2860
- const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
2854
+ const de_ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
2861
2855
  const parsedOutput = {
2862
2856
  ...output,
2863
2857
  body: await parseErrorBody(output.body, context),
@@ -2866,13 +2860,13 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
2866
2860
  switch (errorCode) {
2867
2861
  case "AccessDeniedException":
2868
2862
  case "com.amazonaws.auditmanager#AccessDeniedException":
2869
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2863
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2870
2864
  case "InternalServerException":
2871
2865
  case "com.amazonaws.auditmanager#InternalServerException":
2872
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2866
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2873
2867
  case "ValidationException":
2874
2868
  case "com.amazonaws.auditmanager#ValidationException":
2875
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2869
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2876
2870
  default:
2877
2871
  const parsedBody = parsedOutput.body;
2878
2872
  throwDefaultError({
@@ -2883,23 +2877,23 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
2883
2877
  });
2884
2878
  }
2885
2879
  };
2886
- export const deserializeAws_restJson1ListAssessmentReportsCommand = async (output, context) => {
2880
+ export const de_ListAssessmentReportsCommand = async (output, context) => {
2887
2881
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2888
- return deserializeAws_restJson1ListAssessmentReportsCommandError(output, context);
2882
+ return de_ListAssessmentReportsCommandError(output, context);
2889
2883
  }
2890
2884
  const contents = map({
2891
2885
  $metadata: deserializeMetadata(output),
2892
2886
  });
2893
2887
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2894
2888
  if (data.assessmentReports != null) {
2895
- contents.assessmentReports = deserializeAws_restJson1AssessmentReportsMetadata(data.assessmentReports, context);
2889
+ contents.assessmentReports = de_AssessmentReportsMetadata(data.assessmentReports, context);
2896
2890
  }
2897
2891
  if (data.nextToken != null) {
2898
2892
  contents.nextToken = __expectString(data.nextToken);
2899
2893
  }
2900
2894
  return contents;
2901
2895
  };
2902
- const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output, context) => {
2896
+ const de_ListAssessmentReportsCommandError = async (output, context) => {
2903
2897
  const parsedOutput = {
2904
2898
  ...output,
2905
2899
  body: await parseErrorBody(output.body, context),
@@ -2908,13 +2902,13 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
2908
2902
  switch (errorCode) {
2909
2903
  case "AccessDeniedException":
2910
2904
  case "com.amazonaws.auditmanager#AccessDeniedException":
2911
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2905
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2912
2906
  case "InternalServerException":
2913
2907
  case "com.amazonaws.auditmanager#InternalServerException":
2914
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2908
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2915
2909
  case "ValidationException":
2916
2910
  case "com.amazonaws.auditmanager#ValidationException":
2917
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2911
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2918
2912
  default:
2919
2913
  const parsedBody = parsedOutput.body;
2920
2914
  throwDefaultError({
@@ -2925,23 +2919,23 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
2925
2919
  });
2926
2920
  }
2927
2921
  };
2928
- export const deserializeAws_restJson1ListAssessmentsCommand = async (output, context) => {
2922
+ export const de_ListAssessmentsCommand = async (output, context) => {
2929
2923
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2930
- return deserializeAws_restJson1ListAssessmentsCommandError(output, context);
2924
+ return de_ListAssessmentsCommandError(output, context);
2931
2925
  }
2932
2926
  const contents = map({
2933
2927
  $metadata: deserializeMetadata(output),
2934
2928
  });
2935
2929
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2936
2930
  if (data.assessmentMetadata != null) {
2937
- contents.assessmentMetadata = deserializeAws_restJson1ListAssessmentMetadata(data.assessmentMetadata, context);
2931
+ contents.assessmentMetadata = de_ListAssessmentMetadata(data.assessmentMetadata, context);
2938
2932
  }
2939
2933
  if (data.nextToken != null) {
2940
2934
  contents.nextToken = __expectString(data.nextToken);
2941
2935
  }
2942
2936
  return contents;
2943
2937
  };
2944
- const deserializeAws_restJson1ListAssessmentsCommandError = async (output, context) => {
2938
+ const de_ListAssessmentsCommandError = async (output, context) => {
2945
2939
  const parsedOutput = {
2946
2940
  ...output,
2947
2941
  body: await parseErrorBody(output.body, context),
@@ -2950,13 +2944,13 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
2950
2944
  switch (errorCode) {
2951
2945
  case "AccessDeniedException":
2952
2946
  case "com.amazonaws.auditmanager#AccessDeniedException":
2953
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2947
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2954
2948
  case "InternalServerException":
2955
2949
  case "com.amazonaws.auditmanager#InternalServerException":
2956
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2950
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2957
2951
  case "ValidationException":
2958
2952
  case "com.amazonaws.auditmanager#ValidationException":
2959
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2953
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2960
2954
  default:
2961
2955
  const parsedBody = parsedOutput.body;
2962
2956
  throwDefaultError({
@@ -2967,23 +2961,23 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
2967
2961
  });
2968
2962
  }
2969
2963
  };
2970
- export const deserializeAws_restJson1ListControlDomainInsightsCommand = async (output, context) => {
2964
+ export const de_ListControlDomainInsightsCommand = async (output, context) => {
2971
2965
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2972
- return deserializeAws_restJson1ListControlDomainInsightsCommandError(output, context);
2966
+ return de_ListControlDomainInsightsCommandError(output, context);
2973
2967
  }
2974
2968
  const contents = map({
2975
2969
  $metadata: deserializeMetadata(output),
2976
2970
  });
2977
2971
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2978
2972
  if (data.controlDomainInsights != null) {
2979
- contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
2973
+ contents.controlDomainInsights = de_ControlDomainInsightsList(data.controlDomainInsights, context);
2980
2974
  }
2981
2975
  if (data.nextToken != null) {
2982
2976
  contents.nextToken = __expectString(data.nextToken);
2983
2977
  }
2984
2978
  return contents;
2985
2979
  };
2986
- const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (output, context) => {
2980
+ const de_ListControlDomainInsightsCommandError = async (output, context) => {
2987
2981
  const parsedOutput = {
2988
2982
  ...output,
2989
2983
  body: await parseErrorBody(output.body, context),
@@ -2992,16 +2986,16 @@ const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (out
2992
2986
  switch (errorCode) {
2993
2987
  case "AccessDeniedException":
2994
2988
  case "com.amazonaws.auditmanager#AccessDeniedException":
2995
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2989
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2996
2990
  case "InternalServerException":
2997
2991
  case "com.amazonaws.auditmanager#InternalServerException":
2998
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2992
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2999
2993
  case "ResourceNotFoundException":
3000
2994
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3001
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2995
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3002
2996
  case "ValidationException":
3003
2997
  case "com.amazonaws.auditmanager#ValidationException":
3004
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2998
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3005
2999
  default:
3006
3000
  const parsedBody = parsedOutput.body;
3007
3001
  throwDefaultError({
@@ -3012,23 +3006,23 @@ const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (out
3012
3006
  });
3013
3007
  }
3014
3008
  };
3015
- export const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
3009
+ export const de_ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
3016
3010
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3017
- return deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError(output, context);
3011
+ return de_ListControlDomainInsightsByAssessmentCommandError(output, context);
3018
3012
  }
3019
3013
  const contents = map({
3020
3014
  $metadata: deserializeMetadata(output),
3021
3015
  });
3022
3016
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3023
3017
  if (data.controlDomainInsights != null) {
3024
- contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
3018
+ contents.controlDomainInsights = de_ControlDomainInsightsList(data.controlDomainInsights, context);
3025
3019
  }
3026
3020
  if (data.nextToken != null) {
3027
3021
  contents.nextToken = __expectString(data.nextToken);
3028
3022
  }
3029
3023
  return contents;
3030
3024
  };
3031
- const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError = async (output, context) => {
3025
+ const de_ListControlDomainInsightsByAssessmentCommandError = async (output, context) => {
3032
3026
  const parsedOutput = {
3033
3027
  ...output,
3034
3028
  body: await parseErrorBody(output.body, context),
@@ -3037,16 +3031,16 @@ const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError
3037
3031
  switch (errorCode) {
3038
3032
  case "AccessDeniedException":
3039
3033
  case "com.amazonaws.auditmanager#AccessDeniedException":
3040
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3034
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3041
3035
  case "InternalServerException":
3042
3036
  case "com.amazonaws.auditmanager#InternalServerException":
3043
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3037
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3044
3038
  case "ResourceNotFoundException":
3045
3039
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3046
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3040
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3047
3041
  case "ValidationException":
3048
3042
  case "com.amazonaws.auditmanager#ValidationException":
3049
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3043
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3050
3044
  default:
3051
3045
  const parsedBody = parsedOutput.body;
3052
3046
  throwDefaultError({
@@ -3057,23 +3051,23 @@ const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError
3057
3051
  });
3058
3052
  }
3059
3053
  };
3060
- export const deserializeAws_restJson1ListControlInsightsByControlDomainCommand = async (output, context) => {
3054
+ export const de_ListControlInsightsByControlDomainCommand = async (output, context) => {
3061
3055
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3062
- return deserializeAws_restJson1ListControlInsightsByControlDomainCommandError(output, context);
3056
+ return de_ListControlInsightsByControlDomainCommandError(output, context);
3063
3057
  }
3064
3058
  const contents = map({
3065
3059
  $metadata: deserializeMetadata(output),
3066
3060
  });
3067
3061
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3068
3062
  if (data.controlInsightsMetadata != null) {
3069
- contents.controlInsightsMetadata = deserializeAws_restJson1ControlInsightsMetadata(data.controlInsightsMetadata, context);
3063
+ contents.controlInsightsMetadata = de_ControlInsightsMetadata(data.controlInsightsMetadata, context);
3070
3064
  }
3071
3065
  if (data.nextToken != null) {
3072
3066
  contents.nextToken = __expectString(data.nextToken);
3073
3067
  }
3074
3068
  return contents;
3075
3069
  };
3076
- const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = async (output, context) => {
3070
+ const de_ListControlInsightsByControlDomainCommandError = async (output, context) => {
3077
3071
  const parsedOutput = {
3078
3072
  ...output,
3079
3073
  body: await parseErrorBody(output.body, context),
@@ -3082,16 +3076,16 @@ const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = a
3082
3076
  switch (errorCode) {
3083
3077
  case "AccessDeniedException":
3084
3078
  case "com.amazonaws.auditmanager#AccessDeniedException":
3085
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3079
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3086
3080
  case "InternalServerException":
3087
3081
  case "com.amazonaws.auditmanager#InternalServerException":
3088
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3082
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3089
3083
  case "ResourceNotFoundException":
3090
3084
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3091
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3085
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3092
3086
  case "ValidationException":
3093
3087
  case "com.amazonaws.auditmanager#ValidationException":
3094
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3088
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3095
3089
  default:
3096
3090
  const parsedBody = parsedOutput.body;
3097
3091
  throwDefaultError({
@@ -3102,23 +3096,23 @@ const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = a
3102
3096
  });
3103
3097
  }
3104
3098
  };
3105
- export const deserializeAws_restJson1ListControlsCommand = async (output, context) => {
3099
+ export const de_ListControlsCommand = async (output, context) => {
3106
3100
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3107
- return deserializeAws_restJson1ListControlsCommandError(output, context);
3101
+ return de_ListControlsCommandError(output, context);
3108
3102
  }
3109
3103
  const contents = map({
3110
3104
  $metadata: deserializeMetadata(output),
3111
3105
  });
3112
3106
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3113
3107
  if (data.controlMetadataList != null) {
3114
- contents.controlMetadataList = deserializeAws_restJson1ControlMetadataList(data.controlMetadataList, context);
3108
+ contents.controlMetadataList = de_ControlMetadataList(data.controlMetadataList, context);
3115
3109
  }
3116
3110
  if (data.nextToken != null) {
3117
3111
  contents.nextToken = __expectString(data.nextToken);
3118
3112
  }
3119
3113
  return contents;
3120
3114
  };
3121
- const deserializeAws_restJson1ListControlsCommandError = async (output, context) => {
3115
+ const de_ListControlsCommandError = async (output, context) => {
3122
3116
  const parsedOutput = {
3123
3117
  ...output,
3124
3118
  body: await parseErrorBody(output.body, context),
@@ -3127,13 +3121,13 @@ const deserializeAws_restJson1ListControlsCommandError = async (output, context)
3127
3121
  switch (errorCode) {
3128
3122
  case "AccessDeniedException":
3129
3123
  case "com.amazonaws.auditmanager#AccessDeniedException":
3130
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3124
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3131
3125
  case "InternalServerException":
3132
3126
  case "com.amazonaws.auditmanager#InternalServerException":
3133
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3127
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3134
3128
  case "ValidationException":
3135
3129
  case "com.amazonaws.auditmanager#ValidationException":
3136
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3130
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3137
3131
  default:
3138
3132
  const parsedBody = parsedOutput.body;
3139
3133
  throwDefaultError({
@@ -3144,23 +3138,23 @@ const deserializeAws_restJson1ListControlsCommandError = async (output, context)
3144
3138
  });
3145
3139
  }
3146
3140
  };
3147
- export const deserializeAws_restJson1ListKeywordsForDataSourceCommand = async (output, context) => {
3141
+ export const de_ListKeywordsForDataSourceCommand = async (output, context) => {
3148
3142
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3149
- return deserializeAws_restJson1ListKeywordsForDataSourceCommandError(output, context);
3143
+ return de_ListKeywordsForDataSourceCommandError(output, context);
3150
3144
  }
3151
3145
  const contents = map({
3152
3146
  $metadata: deserializeMetadata(output),
3153
3147
  });
3154
3148
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3155
3149
  if (data.keywords != null) {
3156
- contents.keywords = deserializeAws_restJson1Keywords(data.keywords, context);
3150
+ contents.keywords = de_Keywords(data.keywords, context);
3157
3151
  }
3158
3152
  if (data.nextToken != null) {
3159
3153
  contents.nextToken = __expectString(data.nextToken);
3160
3154
  }
3161
3155
  return contents;
3162
3156
  };
3163
- const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (output, context) => {
3157
+ const de_ListKeywordsForDataSourceCommandError = async (output, context) => {
3164
3158
  const parsedOutput = {
3165
3159
  ...output,
3166
3160
  body: await parseErrorBody(output.body, context),
@@ -3169,13 +3163,13 @@ const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (out
3169
3163
  switch (errorCode) {
3170
3164
  case "AccessDeniedException":
3171
3165
  case "com.amazonaws.auditmanager#AccessDeniedException":
3172
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3166
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3173
3167
  case "InternalServerException":
3174
3168
  case "com.amazonaws.auditmanager#InternalServerException":
3175
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3169
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3176
3170
  case "ValidationException":
3177
3171
  case "com.amazonaws.auditmanager#ValidationException":
3178
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3172
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3179
3173
  default:
3180
3174
  const parsedBody = parsedOutput.body;
3181
3175
  throwDefaultError({
@@ -3186,9 +3180,9 @@ const deserializeAws_restJson1ListKeywordsForDataSourceCommandError = async (out
3186
3180
  });
3187
3181
  }
3188
3182
  };
3189
- export const deserializeAws_restJson1ListNotificationsCommand = async (output, context) => {
3183
+ export const de_ListNotificationsCommand = async (output, context) => {
3190
3184
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3191
- return deserializeAws_restJson1ListNotificationsCommandError(output, context);
3185
+ return de_ListNotificationsCommandError(output, context);
3192
3186
  }
3193
3187
  const contents = map({
3194
3188
  $metadata: deserializeMetadata(output),
@@ -3198,11 +3192,11 @@ export const deserializeAws_restJson1ListNotificationsCommand = async (output, c
3198
3192
  contents.nextToken = __expectString(data.nextToken);
3199
3193
  }
3200
3194
  if (data.notifications != null) {
3201
- contents.notifications = deserializeAws_restJson1Notifications(data.notifications, context);
3195
+ contents.notifications = de_Notifications(data.notifications, context);
3202
3196
  }
3203
3197
  return contents;
3204
3198
  };
3205
- const deserializeAws_restJson1ListNotificationsCommandError = async (output, context) => {
3199
+ const de_ListNotificationsCommandError = async (output, context) => {
3206
3200
  const parsedOutput = {
3207
3201
  ...output,
3208
3202
  body: await parseErrorBody(output.body, context),
@@ -3211,13 +3205,13 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
3211
3205
  switch (errorCode) {
3212
3206
  case "AccessDeniedException":
3213
3207
  case "com.amazonaws.auditmanager#AccessDeniedException":
3214
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3208
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3215
3209
  case "InternalServerException":
3216
3210
  case "com.amazonaws.auditmanager#InternalServerException":
3217
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3211
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3218
3212
  case "ValidationException":
3219
3213
  case "com.amazonaws.auditmanager#ValidationException":
3220
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3214
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3221
3215
  default:
3222
3216
  const parsedBody = parsedOutput.body;
3223
3217
  throwDefaultError({
@@ -3228,20 +3222,20 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
3228
3222
  });
3229
3223
  }
3230
3224
  };
3231
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3225
+ export const de_ListTagsForResourceCommand = async (output, context) => {
3232
3226
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3233
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3227
+ return de_ListTagsForResourceCommandError(output, context);
3234
3228
  }
3235
3229
  const contents = map({
3236
3230
  $metadata: deserializeMetadata(output),
3237
3231
  });
3238
3232
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3239
3233
  if (data.tags != null) {
3240
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3234
+ contents.tags = de_TagMap(data.tags, context);
3241
3235
  }
3242
3236
  return contents;
3243
3237
  };
3244
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3238
+ const de_ListTagsForResourceCommandError = async (output, context) => {
3245
3239
  const parsedOutput = {
3246
3240
  ...output,
3247
3241
  body: await parseErrorBody(output.body, context),
@@ -3250,13 +3244,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3250
3244
  switch (errorCode) {
3251
3245
  case "InternalServerException":
3252
3246
  case "com.amazonaws.auditmanager#InternalServerException":
3253
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3247
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3254
3248
  case "ResourceNotFoundException":
3255
3249
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3256
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3250
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3257
3251
  case "ValidationException":
3258
3252
  case "com.amazonaws.auditmanager#ValidationException":
3259
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3253
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3260
3254
  default:
3261
3255
  const parsedBody = parsedOutput.body;
3262
3256
  throwDefaultError({
@@ -3267,9 +3261,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3267
3261
  });
3268
3262
  }
3269
3263
  };
3270
- export const deserializeAws_restJson1RegisterAccountCommand = async (output, context) => {
3264
+ export const de_RegisterAccountCommand = async (output, context) => {
3271
3265
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3272
- return deserializeAws_restJson1RegisterAccountCommandError(output, context);
3266
+ return de_RegisterAccountCommandError(output, context);
3273
3267
  }
3274
3268
  const contents = map({
3275
3269
  $metadata: deserializeMetadata(output),
@@ -3280,7 +3274,7 @@ export const deserializeAws_restJson1RegisterAccountCommand = async (output, con
3280
3274
  }
3281
3275
  return contents;
3282
3276
  };
3283
- const deserializeAws_restJson1RegisterAccountCommandError = async (output, context) => {
3277
+ const de_RegisterAccountCommandError = async (output, context) => {
3284
3278
  const parsedOutput = {
3285
3279
  ...output,
3286
3280
  body: await parseErrorBody(output.body, context),
@@ -3289,19 +3283,19 @@ const deserializeAws_restJson1RegisterAccountCommandError = async (output, conte
3289
3283
  switch (errorCode) {
3290
3284
  case "AccessDeniedException":
3291
3285
  case "com.amazonaws.auditmanager#AccessDeniedException":
3292
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3286
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3293
3287
  case "InternalServerException":
3294
3288
  case "com.amazonaws.auditmanager#InternalServerException":
3295
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3289
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3296
3290
  case "ResourceNotFoundException":
3297
3291
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3298
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3292
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3299
3293
  case "ThrottlingException":
3300
3294
  case "com.amazonaws.auditmanager#ThrottlingException":
3301
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3295
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3302
3296
  case "ValidationException":
3303
3297
  case "com.amazonaws.auditmanager#ValidationException":
3304
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3298
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3305
3299
  default:
3306
3300
  const parsedBody = parsedOutput.body;
3307
3301
  throwDefaultError({
@@ -3312,9 +3306,9 @@ const deserializeAws_restJson1RegisterAccountCommandError = async (output, conte
3312
3306
  });
3313
3307
  }
3314
3308
  };
3315
- export const deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = async (output, context) => {
3309
+ export const de_RegisterOrganizationAdminAccountCommand = async (output, context) => {
3316
3310
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3317
- return deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError(output, context);
3311
+ return de_RegisterOrganizationAdminAccountCommandError(output, context);
3318
3312
  }
3319
3313
  const contents = map({
3320
3314
  $metadata: deserializeMetadata(output),
@@ -3328,7 +3322,7 @@ export const deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = a
3328
3322
  }
3329
3323
  return contents;
3330
3324
  };
3331
- const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = async (output, context) => {
3325
+ const de_RegisterOrganizationAdminAccountCommandError = async (output, context) => {
3332
3326
  const parsedOutput = {
3333
3327
  ...output,
3334
3328
  body: await parseErrorBody(output.body, context),
@@ -3337,16 +3331,16 @@ const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = asy
3337
3331
  switch (errorCode) {
3338
3332
  case "AccessDeniedException":
3339
3333
  case "com.amazonaws.auditmanager#AccessDeniedException":
3340
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3334
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3341
3335
  case "InternalServerException":
3342
3336
  case "com.amazonaws.auditmanager#InternalServerException":
3343
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3337
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3344
3338
  case "ResourceNotFoundException":
3345
3339
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3346
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3340
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3347
3341
  case "ValidationException":
3348
3342
  case "com.amazonaws.auditmanager#ValidationException":
3349
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3343
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3350
3344
  default:
3351
3345
  const parsedBody = parsedOutput.body;
3352
3346
  throwDefaultError({
@@ -3357,20 +3351,20 @@ const deserializeAws_restJson1RegisterOrganizationAdminAccountCommandError = asy
3357
3351
  });
3358
3352
  }
3359
3353
  };
3360
- export const deserializeAws_restJson1StartAssessmentFrameworkShareCommand = async (output, context) => {
3354
+ export const de_StartAssessmentFrameworkShareCommand = async (output, context) => {
3361
3355
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3362
- return deserializeAws_restJson1StartAssessmentFrameworkShareCommandError(output, context);
3356
+ return de_StartAssessmentFrameworkShareCommandError(output, context);
3363
3357
  }
3364
3358
  const contents = map({
3365
3359
  $metadata: deserializeMetadata(output),
3366
3360
  });
3367
3361
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3368
3362
  if (data.assessmentFrameworkShareRequest != null) {
3369
- contents.assessmentFrameworkShareRequest = deserializeAws_restJson1AssessmentFrameworkShareRequest(data.assessmentFrameworkShareRequest, context);
3363
+ contents.assessmentFrameworkShareRequest = de_AssessmentFrameworkShareRequest(data.assessmentFrameworkShareRequest, context);
3370
3364
  }
3371
3365
  return contents;
3372
3366
  };
3373
- const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async (output, context) => {
3367
+ const de_StartAssessmentFrameworkShareCommandError = async (output, context) => {
3374
3368
  const parsedOutput = {
3375
3369
  ...output,
3376
3370
  body: await parseErrorBody(output.body, context),
@@ -3379,16 +3373,16 @@ const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async
3379
3373
  switch (errorCode) {
3380
3374
  case "AccessDeniedException":
3381
3375
  case "com.amazonaws.auditmanager#AccessDeniedException":
3382
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3376
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3383
3377
  case "InternalServerException":
3384
3378
  case "com.amazonaws.auditmanager#InternalServerException":
3385
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3379
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3386
3380
  case "ResourceNotFoundException":
3387
3381
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3388
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3382
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3389
3383
  case "ValidationException":
3390
3384
  case "com.amazonaws.auditmanager#ValidationException":
3391
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3385
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3392
3386
  default:
3393
3387
  const parsedBody = parsedOutput.body;
3394
3388
  throwDefaultError({
@@ -3399,9 +3393,9 @@ const deserializeAws_restJson1StartAssessmentFrameworkShareCommandError = async
3399
3393
  });
3400
3394
  }
3401
3395
  };
3402
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
3396
+ export const de_TagResourceCommand = async (output, context) => {
3403
3397
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3404
- return deserializeAws_restJson1TagResourceCommandError(output, context);
3398
+ return de_TagResourceCommandError(output, context);
3405
3399
  }
3406
3400
  const contents = map({
3407
3401
  $metadata: deserializeMetadata(output),
@@ -3409,7 +3403,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
3409
3403
  await collectBody(output.body, context);
3410
3404
  return contents;
3411
3405
  };
3412
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
3406
+ const de_TagResourceCommandError = async (output, context) => {
3413
3407
  const parsedOutput = {
3414
3408
  ...output,
3415
3409
  body: await parseErrorBody(output.body, context),
@@ -3418,13 +3412,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
3418
3412
  switch (errorCode) {
3419
3413
  case "InternalServerException":
3420
3414
  case "com.amazonaws.auditmanager#InternalServerException":
3421
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3415
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3422
3416
  case "ResourceNotFoundException":
3423
3417
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3424
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3418
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3425
3419
  case "ValidationException":
3426
3420
  case "com.amazonaws.auditmanager#ValidationException":
3427
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3421
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3428
3422
  default:
3429
3423
  const parsedBody = parsedOutput.body;
3430
3424
  throwDefaultError({
@@ -3435,9 +3429,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
3435
3429
  });
3436
3430
  }
3437
3431
  };
3438
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
3432
+ export const de_UntagResourceCommand = async (output, context) => {
3439
3433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3440
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
3434
+ return de_UntagResourceCommandError(output, context);
3441
3435
  }
3442
3436
  const contents = map({
3443
3437
  $metadata: deserializeMetadata(output),
@@ -3445,7 +3439,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
3445
3439
  await collectBody(output.body, context);
3446
3440
  return contents;
3447
3441
  };
3448
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
3442
+ const de_UntagResourceCommandError = async (output, context) => {
3449
3443
  const parsedOutput = {
3450
3444
  ...output,
3451
3445
  body: await parseErrorBody(output.body, context),
@@ -3454,13 +3448,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
3454
3448
  switch (errorCode) {
3455
3449
  case "InternalServerException":
3456
3450
  case "com.amazonaws.auditmanager#InternalServerException":
3457
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3451
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3458
3452
  case "ResourceNotFoundException":
3459
3453
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3460
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3454
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3461
3455
  case "ValidationException":
3462
3456
  case "com.amazonaws.auditmanager#ValidationException":
3463
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3457
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3464
3458
  default:
3465
3459
  const parsedBody = parsedOutput.body;
3466
3460
  throwDefaultError({
@@ -3471,20 +3465,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
3471
3465
  });
3472
3466
  }
3473
3467
  };
3474
- export const deserializeAws_restJson1UpdateAssessmentCommand = async (output, context) => {
3468
+ export const de_UpdateAssessmentCommand = async (output, context) => {
3475
3469
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3476
- return deserializeAws_restJson1UpdateAssessmentCommandError(output, context);
3470
+ return de_UpdateAssessmentCommandError(output, context);
3477
3471
  }
3478
3472
  const contents = map({
3479
3473
  $metadata: deserializeMetadata(output),
3480
3474
  });
3481
3475
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3482
3476
  if (data.assessment != null) {
3483
- contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
3477
+ contents.assessment = de_Assessment(data.assessment, context);
3484
3478
  }
3485
3479
  return contents;
3486
3480
  };
3487
- const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, context) => {
3481
+ const de_UpdateAssessmentCommandError = async (output, context) => {
3488
3482
  const parsedOutput = {
3489
3483
  ...output,
3490
3484
  body: await parseErrorBody(output.body, context),
@@ -3493,16 +3487,16 @@ const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, cont
3493
3487
  switch (errorCode) {
3494
3488
  case "AccessDeniedException":
3495
3489
  case "com.amazonaws.auditmanager#AccessDeniedException":
3496
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3490
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3497
3491
  case "InternalServerException":
3498
3492
  case "com.amazonaws.auditmanager#InternalServerException":
3499
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3493
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3500
3494
  case "ResourceNotFoundException":
3501
3495
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3502
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3496
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3503
3497
  case "ValidationException":
3504
3498
  case "com.amazonaws.auditmanager#ValidationException":
3505
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3499
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3506
3500
  default:
3507
3501
  const parsedBody = parsedOutput.body;
3508
3502
  throwDefaultError({
@@ -3513,20 +3507,20 @@ const deserializeAws_restJson1UpdateAssessmentCommandError = async (output, cont
3513
3507
  });
3514
3508
  }
3515
3509
  };
3516
- export const deserializeAws_restJson1UpdateAssessmentControlCommand = async (output, context) => {
3510
+ export const de_UpdateAssessmentControlCommand = async (output, context) => {
3517
3511
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3518
- return deserializeAws_restJson1UpdateAssessmentControlCommandError(output, context);
3512
+ return de_UpdateAssessmentControlCommandError(output, context);
3519
3513
  }
3520
3514
  const contents = map({
3521
3515
  $metadata: deserializeMetadata(output),
3522
3516
  });
3523
3517
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3524
3518
  if (data.control != null) {
3525
- contents.control = deserializeAws_restJson1AssessmentControl(data.control, context);
3519
+ contents.control = de_AssessmentControl(data.control, context);
3526
3520
  }
3527
3521
  return contents;
3528
3522
  };
3529
- const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (output, context) => {
3523
+ const de_UpdateAssessmentControlCommandError = async (output, context) => {
3530
3524
  const parsedOutput = {
3531
3525
  ...output,
3532
3526
  body: await parseErrorBody(output.body, context),
@@ -3535,16 +3529,16 @@ const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (outpu
3535
3529
  switch (errorCode) {
3536
3530
  case "AccessDeniedException":
3537
3531
  case "com.amazonaws.auditmanager#AccessDeniedException":
3538
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3532
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3539
3533
  case "InternalServerException":
3540
3534
  case "com.amazonaws.auditmanager#InternalServerException":
3541
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3535
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3542
3536
  case "ResourceNotFoundException":
3543
3537
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3544
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3538
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3545
3539
  case "ValidationException":
3546
3540
  case "com.amazonaws.auditmanager#ValidationException":
3547
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3541
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3548
3542
  default:
3549
3543
  const parsedBody = parsedOutput.body;
3550
3544
  throwDefaultError({
@@ -3555,20 +3549,20 @@ const deserializeAws_restJson1UpdateAssessmentControlCommandError = async (outpu
3555
3549
  });
3556
3550
  }
3557
3551
  };
3558
- export const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = async (output, context) => {
3552
+ export const de_UpdateAssessmentControlSetStatusCommand = async (output, context) => {
3559
3553
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3560
- return deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError(output, context);
3554
+ return de_UpdateAssessmentControlSetStatusCommandError(output, context);
3561
3555
  }
3562
3556
  const contents = map({
3563
3557
  $metadata: deserializeMetadata(output),
3564
3558
  });
3565
3559
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3566
3560
  if (data.controlSet != null) {
3567
- contents.controlSet = deserializeAws_restJson1AssessmentControlSet(data.controlSet, context);
3561
+ contents.controlSet = de_AssessmentControlSet(data.controlSet, context);
3568
3562
  }
3569
3563
  return contents;
3570
3564
  };
3571
- const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = async (output, context) => {
3565
+ const de_UpdateAssessmentControlSetStatusCommandError = async (output, context) => {
3572
3566
  const parsedOutput = {
3573
3567
  ...output,
3574
3568
  body: await parseErrorBody(output.body, context),
@@ -3577,16 +3571,16 @@ const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = asy
3577
3571
  switch (errorCode) {
3578
3572
  case "AccessDeniedException":
3579
3573
  case "com.amazonaws.auditmanager#AccessDeniedException":
3580
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3574
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3581
3575
  case "InternalServerException":
3582
3576
  case "com.amazonaws.auditmanager#InternalServerException":
3583
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3577
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3584
3578
  case "ResourceNotFoundException":
3585
3579
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3586
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3580
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3587
3581
  case "ValidationException":
3588
3582
  case "com.amazonaws.auditmanager#ValidationException":
3589
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3583
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3590
3584
  default:
3591
3585
  const parsedBody = parsedOutput.body;
3592
3586
  throwDefaultError({
@@ -3597,20 +3591,20 @@ const deserializeAws_restJson1UpdateAssessmentControlSetStatusCommandError = asy
3597
3591
  });
3598
3592
  }
3599
3593
  };
3600
- export const deserializeAws_restJson1UpdateAssessmentFrameworkCommand = async (output, context) => {
3594
+ export const de_UpdateAssessmentFrameworkCommand = async (output, context) => {
3601
3595
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3602
- return deserializeAws_restJson1UpdateAssessmentFrameworkCommandError(output, context);
3596
+ return de_UpdateAssessmentFrameworkCommandError(output, context);
3603
3597
  }
3604
3598
  const contents = map({
3605
3599
  $metadata: deserializeMetadata(output),
3606
3600
  });
3607
3601
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3608
3602
  if (data.framework != null) {
3609
- contents.framework = deserializeAws_restJson1Framework(data.framework, context);
3603
+ contents.framework = de_Framework(data.framework, context);
3610
3604
  }
3611
3605
  return contents;
3612
3606
  };
3613
- const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (output, context) => {
3607
+ const de_UpdateAssessmentFrameworkCommandError = async (output, context) => {
3614
3608
  const parsedOutput = {
3615
3609
  ...output,
3616
3610
  body: await parseErrorBody(output.body, context),
@@ -3619,16 +3613,16 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (out
3619
3613
  switch (errorCode) {
3620
3614
  case "AccessDeniedException":
3621
3615
  case "com.amazonaws.auditmanager#AccessDeniedException":
3622
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3616
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3623
3617
  case "InternalServerException":
3624
3618
  case "com.amazonaws.auditmanager#InternalServerException":
3625
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3619
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3626
3620
  case "ResourceNotFoundException":
3627
3621
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3628
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3622
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3629
3623
  case "ValidationException":
3630
3624
  case "com.amazonaws.auditmanager#ValidationException":
3631
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3625
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3632
3626
  default:
3633
3627
  const parsedBody = parsedOutput.body;
3634
3628
  throwDefaultError({
@@ -3639,20 +3633,20 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkCommandError = async (out
3639
3633
  });
3640
3634
  }
3641
3635
  };
3642
- export const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommand = async (output, context) => {
3636
+ export const de_UpdateAssessmentFrameworkShareCommand = async (output, context) => {
3643
3637
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3644
- return deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError(output, context);
3638
+ return de_UpdateAssessmentFrameworkShareCommandError(output, context);
3645
3639
  }
3646
3640
  const contents = map({
3647
3641
  $metadata: deserializeMetadata(output),
3648
3642
  });
3649
3643
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3650
3644
  if (data.assessmentFrameworkShareRequest != null) {
3651
- contents.assessmentFrameworkShareRequest = deserializeAws_restJson1AssessmentFrameworkShareRequest(data.assessmentFrameworkShareRequest, context);
3645
+ contents.assessmentFrameworkShareRequest = de_AssessmentFrameworkShareRequest(data.assessmentFrameworkShareRequest, context);
3652
3646
  }
3653
3647
  return contents;
3654
3648
  };
3655
- const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async (output, context) => {
3649
+ const de_UpdateAssessmentFrameworkShareCommandError = async (output, context) => {
3656
3650
  const parsedOutput = {
3657
3651
  ...output,
3658
3652
  body: await parseErrorBody(output.body, context),
@@ -3661,19 +3655,19 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async
3661
3655
  switch (errorCode) {
3662
3656
  case "AccessDeniedException":
3663
3657
  case "com.amazonaws.auditmanager#AccessDeniedException":
3664
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3658
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3665
3659
  case "InternalServerException":
3666
3660
  case "com.amazonaws.auditmanager#InternalServerException":
3667
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3661
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3668
3662
  case "ResourceNotFoundException":
3669
3663
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3670
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3664
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3671
3665
  case "ServiceQuotaExceededException":
3672
3666
  case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
3673
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3667
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3674
3668
  case "ValidationException":
3675
3669
  case "com.amazonaws.auditmanager#ValidationException":
3676
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3670
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3677
3671
  default:
3678
3672
  const parsedBody = parsedOutput.body;
3679
3673
  throwDefaultError({
@@ -3684,20 +3678,20 @@ const deserializeAws_restJson1UpdateAssessmentFrameworkShareCommandError = async
3684
3678
  });
3685
3679
  }
3686
3680
  };
3687
- export const deserializeAws_restJson1UpdateAssessmentStatusCommand = async (output, context) => {
3681
+ export const de_UpdateAssessmentStatusCommand = async (output, context) => {
3688
3682
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3689
- return deserializeAws_restJson1UpdateAssessmentStatusCommandError(output, context);
3683
+ return de_UpdateAssessmentStatusCommandError(output, context);
3690
3684
  }
3691
3685
  const contents = map({
3692
3686
  $metadata: deserializeMetadata(output),
3693
3687
  });
3694
3688
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3695
3689
  if (data.assessment != null) {
3696
- contents.assessment = deserializeAws_restJson1Assessment(data.assessment, context);
3690
+ contents.assessment = de_Assessment(data.assessment, context);
3697
3691
  }
3698
3692
  return contents;
3699
3693
  };
3700
- const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output, context) => {
3694
+ const de_UpdateAssessmentStatusCommandError = async (output, context) => {
3701
3695
  const parsedOutput = {
3702
3696
  ...output,
3703
3697
  body: await parseErrorBody(output.body, context),
@@ -3706,19 +3700,19 @@ const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output
3706
3700
  switch (errorCode) {
3707
3701
  case "AccessDeniedException":
3708
3702
  case "com.amazonaws.auditmanager#AccessDeniedException":
3709
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3703
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3710
3704
  case "InternalServerException":
3711
3705
  case "com.amazonaws.auditmanager#InternalServerException":
3712
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3706
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3713
3707
  case "ResourceNotFoundException":
3714
3708
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3715
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3709
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3716
3710
  case "ServiceQuotaExceededException":
3717
3711
  case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
3718
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3712
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3719
3713
  case "ValidationException":
3720
3714
  case "com.amazonaws.auditmanager#ValidationException":
3721
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3715
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3722
3716
  default:
3723
3717
  const parsedBody = parsedOutput.body;
3724
3718
  throwDefaultError({
@@ -3729,20 +3723,20 @@ const deserializeAws_restJson1UpdateAssessmentStatusCommandError = async (output
3729
3723
  });
3730
3724
  }
3731
3725
  };
3732
- export const deserializeAws_restJson1UpdateControlCommand = async (output, context) => {
3726
+ export const de_UpdateControlCommand = async (output, context) => {
3733
3727
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3734
- return deserializeAws_restJson1UpdateControlCommandError(output, context);
3728
+ return de_UpdateControlCommandError(output, context);
3735
3729
  }
3736
3730
  const contents = map({
3737
3731
  $metadata: deserializeMetadata(output),
3738
3732
  });
3739
3733
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3740
3734
  if (data.control != null) {
3741
- contents.control = deserializeAws_restJson1Control(data.control, context);
3735
+ contents.control = de_Control(data.control, context);
3742
3736
  }
3743
3737
  return contents;
3744
3738
  };
3745
- const deserializeAws_restJson1UpdateControlCommandError = async (output, context) => {
3739
+ const de_UpdateControlCommandError = async (output, context) => {
3746
3740
  const parsedOutput = {
3747
3741
  ...output,
3748
3742
  body: await parseErrorBody(output.body, context),
@@ -3751,16 +3745,16 @@ const deserializeAws_restJson1UpdateControlCommandError = async (output, context
3751
3745
  switch (errorCode) {
3752
3746
  case "AccessDeniedException":
3753
3747
  case "com.amazonaws.auditmanager#AccessDeniedException":
3754
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3748
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3755
3749
  case "InternalServerException":
3756
3750
  case "com.amazonaws.auditmanager#InternalServerException":
3757
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3751
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3758
3752
  case "ResourceNotFoundException":
3759
3753
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3760
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3754
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3761
3755
  case "ValidationException":
3762
3756
  case "com.amazonaws.auditmanager#ValidationException":
3763
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3757
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3764
3758
  default:
3765
3759
  const parsedBody = parsedOutput.body;
3766
3760
  throwDefaultError({
@@ -3771,20 +3765,20 @@ const deserializeAws_restJson1UpdateControlCommandError = async (output, context
3771
3765
  });
3772
3766
  }
3773
3767
  };
3774
- export const deserializeAws_restJson1UpdateSettingsCommand = async (output, context) => {
3768
+ export const de_UpdateSettingsCommand = async (output, context) => {
3775
3769
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3776
- return deserializeAws_restJson1UpdateSettingsCommandError(output, context);
3770
+ return de_UpdateSettingsCommandError(output, context);
3777
3771
  }
3778
3772
  const contents = map({
3779
3773
  $metadata: deserializeMetadata(output),
3780
3774
  });
3781
3775
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3782
3776
  if (data.settings != null) {
3783
- contents.settings = deserializeAws_restJson1Settings(data.settings, context);
3777
+ contents.settings = de_Settings(data.settings, context);
3784
3778
  }
3785
3779
  return contents;
3786
3780
  };
3787
- const deserializeAws_restJson1UpdateSettingsCommandError = async (output, context) => {
3781
+ const de_UpdateSettingsCommandError = async (output, context) => {
3788
3782
  const parsedOutput = {
3789
3783
  ...output,
3790
3784
  body: await parseErrorBody(output.body, context),
@@ -3793,13 +3787,13 @@ const deserializeAws_restJson1UpdateSettingsCommandError = async (output, contex
3793
3787
  switch (errorCode) {
3794
3788
  case "AccessDeniedException":
3795
3789
  case "com.amazonaws.auditmanager#AccessDeniedException":
3796
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3790
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3797
3791
  case "InternalServerException":
3798
3792
  case "com.amazonaws.auditmanager#InternalServerException":
3799
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3793
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3800
3794
  case "ValidationException":
3801
3795
  case "com.amazonaws.auditmanager#ValidationException":
3802
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3796
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3803
3797
  default:
3804
3798
  const parsedBody = parsedOutput.body;
3805
3799
  throwDefaultError({
@@ -3810,9 +3804,9 @@ const deserializeAws_restJson1UpdateSettingsCommandError = async (output, contex
3810
3804
  });
3811
3805
  }
3812
3806
  };
3813
- export const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = async (output, context) => {
3807
+ export const de_ValidateAssessmentReportIntegrityCommand = async (output, context) => {
3814
3808
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3815
- return deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError(output, context);
3809
+ return de_ValidateAssessmentReportIntegrityCommandError(output, context);
3816
3810
  }
3817
3811
  const contents = map({
3818
3812
  $metadata: deserializeMetadata(output),
@@ -3831,11 +3825,11 @@ export const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand =
3831
3825
  contents.signatureValid = __expectBoolean(data.signatureValid);
3832
3826
  }
3833
3827
  if (data.validationErrors != null) {
3834
- contents.validationErrors = deserializeAws_restJson1ValidationErrors(data.validationErrors, context);
3828
+ contents.validationErrors = de_ValidationErrors(data.validationErrors, context);
3835
3829
  }
3836
3830
  return contents;
3837
3831
  };
3838
- const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = async (output, context) => {
3832
+ const de_ValidateAssessmentReportIntegrityCommandError = async (output, context) => {
3839
3833
  const parsedOutput = {
3840
3834
  ...output,
3841
3835
  body: await parseErrorBody(output.body, context),
@@ -3844,16 +3838,16 @@ const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = as
3844
3838
  switch (errorCode) {
3845
3839
  case "AccessDeniedException":
3846
3840
  case "com.amazonaws.auditmanager#AccessDeniedException":
3847
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3841
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3848
3842
  case "InternalServerException":
3849
3843
  case "com.amazonaws.auditmanager#InternalServerException":
3850
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3844
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3851
3845
  case "ResourceNotFoundException":
3852
3846
  case "com.amazonaws.auditmanager#ResourceNotFoundException":
3853
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3847
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3854
3848
  case "ValidationException":
3855
3849
  case "com.amazonaws.auditmanager#ValidationException":
3856
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3850
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3857
3851
  default:
3858
3852
  const parsedBody = parsedOutput.body;
3859
3853
  throwDefaultError({
@@ -3865,7 +3859,7 @@ const deserializeAws_restJson1ValidateAssessmentReportIntegrityCommandError = as
3865
3859
  }
3866
3860
  };
3867
3861
  const map = __map;
3868
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
3862
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3869
3863
  const contents = map({});
3870
3864
  const data = parsedOutput.body;
3871
3865
  if (data.message != null) {
@@ -3877,7 +3871,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
3877
3871
  });
3878
3872
  return __decorateServiceException(exception, parsedOutput.body);
3879
3873
  };
3880
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
3874
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
3881
3875
  const contents = map({});
3882
3876
  const data = parsedOutput.body;
3883
3877
  if (data.message != null) {
@@ -3889,7 +3883,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
3889
3883
  });
3890
3884
  return __decorateServiceException(exception, parsedOutput.body);
3891
3885
  };
3892
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
3886
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3893
3887
  const contents = map({});
3894
3888
  const data = parsedOutput.body;
3895
3889
  if (data.message != null) {
@@ -3907,7 +3901,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
3907
3901
  });
3908
3902
  return __decorateServiceException(exception, parsedOutput.body);
3909
3903
  };
3910
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
3904
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
3911
3905
  const contents = map({});
3912
3906
  const data = parsedOutput.body;
3913
3907
  if (data.message != null) {
@@ -3919,7 +3913,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
3919
3913
  });
3920
3914
  return __decorateServiceException(exception, parsedOutput.body);
3921
3915
  };
3922
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
3916
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3923
3917
  const contents = map({});
3924
3918
  const data = parsedOutput.body;
3925
3919
  if (data.message != null) {
@@ -3931,11 +3925,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
3931
3925
  });
3932
3926
  return __decorateServiceException(exception, parsedOutput.body);
3933
3927
  };
3934
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
3928
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
3935
3929
  const contents = map({});
3936
3930
  const data = parsedOutput.body;
3937
3931
  if (data.fields != null) {
3938
- contents.fields = deserializeAws_restJson1ValidationExceptionFieldList(data.fields, context);
3932
+ contents.fields = de_ValidationExceptionFieldList(data.fields, context);
3939
3933
  }
3940
3934
  if (data.message != null) {
3941
3935
  contents.message = __expectString(data.message);
@@ -3949,107 +3943,101 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
3949
3943
  });
3950
3944
  return __decorateServiceException(exception, parsedOutput.body);
3951
3945
  };
3952
- const serializeAws_restJson1AssessmentReportsDestination = (input, context) => {
3946
+ const se_AssessmentReportsDestination = (input, context) => {
3953
3947
  return {
3954
3948
  ...(input.destination != null && { destination: input.destination }),
3955
3949
  ...(input.destinationType != null && { destinationType: input.destinationType }),
3956
3950
  };
3957
3951
  };
3958
- const serializeAws_restJson1AWSAccount = (input, context) => {
3952
+ const se_AWSAccount = (input, context) => {
3959
3953
  return {
3960
3954
  ...(input.emailAddress != null && { emailAddress: input.emailAddress }),
3961
3955
  ...(input.id != null && { id: input.id }),
3962
3956
  ...(input.name != null && { name: input.name }),
3963
3957
  };
3964
3958
  };
3965
- const serializeAws_restJson1AWSAccounts = (input, context) => {
3959
+ const se_AWSAccounts = (input, context) => {
3966
3960
  return input
3967
3961
  .filter((e) => e != null)
3968
3962
  .map((entry) => {
3969
- return serializeAws_restJson1AWSAccount(entry, context);
3963
+ return se_AWSAccount(entry, context);
3970
3964
  });
3971
3965
  };
3972
- const serializeAws_restJson1AWSService = (input, context) => {
3966
+ const se_AWSService = (input, context) => {
3973
3967
  return {
3974
3968
  ...(input.serviceName != null && { serviceName: input.serviceName }),
3975
3969
  };
3976
3970
  };
3977
- const serializeAws_restJson1AWSServices = (input, context) => {
3971
+ const se_AWSServices = (input, context) => {
3978
3972
  return input
3979
3973
  .filter((e) => e != null)
3980
3974
  .map((entry) => {
3981
- return serializeAws_restJson1AWSService(entry, context);
3975
+ return se_AWSService(entry, context);
3982
3976
  });
3983
3977
  };
3984
- const serializeAws_restJson1ControlMappingSource = (input, context) => {
3978
+ const se_ControlMappingSource = (input, context) => {
3985
3979
  return {
3986
3980
  ...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
3987
3981
  ...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
3988
3982
  ...(input.sourceId != null && { sourceId: input.sourceId }),
3989
- ...(input.sourceKeyword != null && {
3990
- sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
3991
- }),
3983
+ ...(input.sourceKeyword != null && { sourceKeyword: se_SourceKeyword(input.sourceKeyword, context) }),
3992
3984
  ...(input.sourceName != null && { sourceName: input.sourceName }),
3993
3985
  ...(input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption }),
3994
3986
  ...(input.sourceType != null && { sourceType: input.sourceType }),
3995
3987
  ...(input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }),
3996
3988
  };
3997
3989
  };
3998
- const serializeAws_restJson1ControlMappingSources = (input, context) => {
3990
+ const se_ControlMappingSources = (input, context) => {
3999
3991
  return input
4000
3992
  .filter((e) => e != null)
4001
3993
  .map((entry) => {
4002
- return serializeAws_restJson1ControlMappingSource(entry, context);
3994
+ return se_ControlMappingSource(entry, context);
4003
3995
  });
4004
3996
  };
4005
- const serializeAws_restJson1CreateAssessmentFrameworkControl = (input, context) => {
3997
+ const se_CreateAssessmentFrameworkControl = (input, context) => {
4006
3998
  return {
4007
3999
  ...(input.id != null && { id: input.id }),
4008
4000
  };
4009
4001
  };
4010
- const serializeAws_restJson1CreateAssessmentFrameworkControls = (input, context) => {
4002
+ const se_CreateAssessmentFrameworkControls = (input, context) => {
4011
4003
  return input
4012
4004
  .filter((e) => e != null)
4013
4005
  .map((entry) => {
4014
- return serializeAws_restJson1CreateAssessmentFrameworkControl(entry, context);
4006
+ return se_CreateAssessmentFrameworkControl(entry, context);
4015
4007
  });
4016
4008
  };
4017
- const serializeAws_restJson1CreateAssessmentFrameworkControlSet = (input, context) => {
4009
+ const se_CreateAssessmentFrameworkControlSet = (input, context) => {
4018
4010
  return {
4019
- ...(input.controls != null && {
4020
- controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
4021
- }),
4011
+ ...(input.controls != null && { controls: se_CreateAssessmentFrameworkControls(input.controls, context) }),
4022
4012
  ...(input.name != null && { name: input.name }),
4023
4013
  };
4024
4014
  };
4025
- const serializeAws_restJson1CreateAssessmentFrameworkControlSets = (input, context) => {
4015
+ const se_CreateAssessmentFrameworkControlSets = (input, context) => {
4026
4016
  return input
4027
4017
  .filter((e) => e != null)
4028
4018
  .map((entry) => {
4029
- return serializeAws_restJson1CreateAssessmentFrameworkControlSet(entry, context);
4019
+ return se_CreateAssessmentFrameworkControlSet(entry, context);
4030
4020
  });
4031
4021
  };
4032
- const serializeAws_restJson1CreateControlMappingSource = (input, context) => {
4022
+ const se_CreateControlMappingSource = (input, context) => {
4033
4023
  return {
4034
4024
  ...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
4035
4025
  ...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
4036
- ...(input.sourceKeyword != null && {
4037
- sourceKeyword: serializeAws_restJson1SourceKeyword(input.sourceKeyword, context),
4038
- }),
4026
+ ...(input.sourceKeyword != null && { sourceKeyword: se_SourceKeyword(input.sourceKeyword, context) }),
4039
4027
  ...(input.sourceName != null && { sourceName: input.sourceName }),
4040
4028
  ...(input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption }),
4041
4029
  ...(input.sourceType != null && { sourceType: input.sourceType }),
4042
4030
  ...(input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }),
4043
4031
  };
4044
4032
  };
4045
- const serializeAws_restJson1CreateControlMappingSources = (input, context) => {
4033
+ const se_CreateControlMappingSources = (input, context) => {
4046
4034
  return input
4047
4035
  .filter((e) => e != null)
4048
4036
  .map((entry) => {
4049
- return serializeAws_restJson1CreateControlMappingSource(entry, context);
4037
+ return se_CreateControlMappingSource(entry, context);
4050
4038
  });
4051
4039
  };
4052
- const serializeAws_restJson1CreateDelegationRequest = (input, context) => {
4040
+ const se_CreateDelegationRequest = (input, context) => {
4053
4041
  return {
4054
4042
  ...(input.comment != null && { comment: input.comment }),
4055
4043
  ...(input.controlSetId != null && { controlSetId: input.controlSetId }),
@@ -4057,70 +4045,70 @@ const serializeAws_restJson1CreateDelegationRequest = (input, context) => {
4057
4045
  ...(input.roleType != null && { roleType: input.roleType }),
4058
4046
  };
4059
4047
  };
4060
- const serializeAws_restJson1CreateDelegationRequests = (input, context) => {
4048
+ const se_CreateDelegationRequests = (input, context) => {
4061
4049
  return input
4062
4050
  .filter((e) => e != null)
4063
4051
  .map((entry) => {
4064
- return serializeAws_restJson1CreateDelegationRequest(entry, context);
4052
+ return se_CreateDelegationRequest(entry, context);
4065
4053
  });
4066
4054
  };
4067
- const serializeAws_restJson1DelegationIds = (input, context) => {
4055
+ const se_DelegationIds = (input, context) => {
4068
4056
  return input
4069
4057
  .filter((e) => e != null)
4070
4058
  .map((entry) => {
4071
4059
  return entry;
4072
4060
  });
4073
4061
  };
4074
- const serializeAws_restJson1DeregistrationPolicy = (input, context) => {
4062
+ const se_DeregistrationPolicy = (input, context) => {
4075
4063
  return {
4076
4064
  ...(input.deleteResources != null && { deleteResources: input.deleteResources }),
4077
4065
  };
4078
4066
  };
4079
- const serializeAws_restJson1EvidenceIds = (input, context) => {
4067
+ const se_EvidenceIds = (input, context) => {
4080
4068
  return input
4081
4069
  .filter((e) => e != null)
4082
4070
  .map((entry) => {
4083
4071
  return entry;
4084
4072
  });
4085
4073
  };
4086
- const serializeAws_restJson1ManualEvidence = (input, context) => {
4074
+ const se_ManualEvidence = (input, context) => {
4087
4075
  return {
4088
4076
  ...(input.s3ResourcePath != null && { s3ResourcePath: input.s3ResourcePath }),
4089
4077
  };
4090
4078
  };
4091
- const serializeAws_restJson1ManualEvidenceList = (input, context) => {
4079
+ const se_ManualEvidenceList = (input, context) => {
4092
4080
  return input
4093
4081
  .filter((e) => e != null)
4094
4082
  .map((entry) => {
4095
- return serializeAws_restJson1ManualEvidence(entry, context);
4083
+ return se_ManualEvidence(entry, context);
4096
4084
  });
4097
4085
  };
4098
- const serializeAws_restJson1Role = (input, context) => {
4086
+ const se_Role = (input, context) => {
4099
4087
  return {
4100
4088
  ...(input.roleArn != null && { roleArn: input.roleArn }),
4101
4089
  ...(input.roleType != null && { roleType: input.roleType }),
4102
4090
  };
4103
4091
  };
4104
- const serializeAws_restJson1Roles = (input, context) => {
4092
+ const se_Roles = (input, context) => {
4105
4093
  return input
4106
4094
  .filter((e) => e != null)
4107
4095
  .map((entry) => {
4108
- return serializeAws_restJson1Role(entry, context);
4096
+ return se_Role(entry, context);
4109
4097
  });
4110
4098
  };
4111
- const serializeAws_restJson1Scope = (input, context) => {
4099
+ const se_Scope = (input, context) => {
4112
4100
  return {
4113
- ...(input.awsAccounts != null && { awsAccounts: serializeAws_restJson1AWSAccounts(input.awsAccounts, context) }),
4114
- ...(input.awsServices != null && { awsServices: serializeAws_restJson1AWSServices(input.awsServices, context) }),
4101
+ ...(input.awsAccounts != null && { awsAccounts: se_AWSAccounts(input.awsAccounts, context) }),
4102
+ ...(input.awsServices != null && { awsServices: se_AWSServices(input.awsServices, context) }),
4115
4103
  };
4116
4104
  };
4117
- const serializeAws_restJson1SourceKeyword = (input, context) => {
4105
+ const se_SourceKeyword = (input, context) => {
4118
4106
  return {
4119
4107
  ...(input.keywordInputType != null && { keywordInputType: input.keywordInputType }),
4120
4108
  ...(input.keywordValue != null && { keywordValue: input.keywordValue }),
4121
4109
  };
4122
4110
  };
4123
- const serializeAws_restJson1TagMap = (input, context) => {
4111
+ const se_TagMap = (input, context) => {
4124
4112
  return Object.entries(input).reduce((acc, [key, value]) => {
4125
4113
  if (value === null) {
4126
4114
  return acc;
@@ -4129,81 +4117,77 @@ const serializeAws_restJson1TagMap = (input, context) => {
4129
4117
  return acc;
4130
4118
  }, {});
4131
4119
  };
4132
- const serializeAws_restJson1UpdateAssessmentFrameworkControlSet = (input, context) => {
4120
+ const se_UpdateAssessmentFrameworkControlSet = (input, context) => {
4133
4121
  return {
4134
- ...(input.controls != null && {
4135
- controls: serializeAws_restJson1CreateAssessmentFrameworkControls(input.controls, context),
4136
- }),
4122
+ ...(input.controls != null && { controls: se_CreateAssessmentFrameworkControls(input.controls, context) }),
4137
4123
  ...(input.id != null && { id: input.id }),
4138
4124
  ...(input.name != null && { name: input.name }),
4139
4125
  };
4140
4126
  };
4141
- const serializeAws_restJson1UpdateAssessmentFrameworkControlSets = (input, context) => {
4127
+ const se_UpdateAssessmentFrameworkControlSets = (input, context) => {
4142
4128
  return input
4143
4129
  .filter((e) => e != null)
4144
4130
  .map((entry) => {
4145
- return serializeAws_restJson1UpdateAssessmentFrameworkControlSet(entry, context);
4131
+ return se_UpdateAssessmentFrameworkControlSet(entry, context);
4146
4132
  });
4147
4133
  };
4148
- const deserializeAws_restJson1Assessment = (output, context) => {
4134
+ const de_Assessment = (output, context) => {
4149
4135
  return {
4150
4136
  arn: __expectString(output.arn),
4151
- awsAccount: output.awsAccount != null ? deserializeAws_restJson1AWSAccount(output.awsAccount, context) : undefined,
4152
- framework: output.framework != null ? deserializeAws_restJson1AssessmentFramework(output.framework, context) : undefined,
4153
- metadata: output.metadata != null ? deserializeAws_restJson1AssessmentMetadata(output.metadata, context) : undefined,
4154
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4137
+ awsAccount: output.awsAccount != null ? de_AWSAccount(output.awsAccount, context) : undefined,
4138
+ framework: output.framework != null ? de_AssessmentFramework(output.framework, context) : undefined,
4139
+ metadata: output.metadata != null ? de_AssessmentMetadata(output.metadata, context) : undefined,
4140
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
4155
4141
  };
4156
4142
  };
4157
- const deserializeAws_restJson1AssessmentControl = (output, context) => {
4143
+ const de_AssessmentControl = (output, context) => {
4158
4144
  return {
4159
4145
  assessmentReportEvidenceCount: __expectInt32(output.assessmentReportEvidenceCount),
4160
- comments: output.comments != null ? deserializeAws_restJson1ControlComments(output.comments, context) : undefined,
4146
+ comments: output.comments != null ? de_ControlComments(output.comments, context) : undefined,
4161
4147
  description: __expectString(output.description),
4162
4148
  evidenceCount: __expectInt32(output.evidenceCount),
4163
- evidenceSources: output.evidenceSources != null
4164
- ? deserializeAws_restJson1EvidenceSources(output.evidenceSources, context)
4165
- : undefined,
4149
+ evidenceSources: output.evidenceSources != null ? de_EvidenceSources(output.evidenceSources, context) : undefined,
4166
4150
  id: __expectString(output.id),
4167
4151
  name: __expectString(output.name),
4168
4152
  response: __expectString(output.response),
4169
4153
  status: __expectString(output.status),
4170
4154
  };
4171
4155
  };
4172
- const deserializeAws_restJson1AssessmentControls = (output, context) => {
4156
+ const de_AssessmentControls = (output, context) => {
4173
4157
  const retVal = (output || [])
4174
4158
  .filter((e) => e != null)
4175
4159
  .map((entry) => {
4176
4160
  if (entry === null) {
4177
4161
  return null;
4178
4162
  }
4179
- return deserializeAws_restJson1AssessmentControl(entry, context);
4163
+ return de_AssessmentControl(entry, context);
4180
4164
  });
4181
4165
  return retVal;
4182
4166
  };
4183
- const deserializeAws_restJson1AssessmentControlSet = (output, context) => {
4167
+ const de_AssessmentControlSet = (output, context) => {
4184
4168
  return {
4185
- controls: output.controls != null ? deserializeAws_restJson1AssessmentControls(output.controls, context) : undefined,
4186
- delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
4169
+ controls: output.controls != null ? de_AssessmentControls(output.controls, context) : undefined,
4170
+ delegations: output.delegations != null ? de_Delegations(output.delegations, context) : undefined,
4187
4171
  description: __expectString(output.description),
4188
4172
  id: __expectString(output.id),
4189
4173
  manualEvidenceCount: __expectInt32(output.manualEvidenceCount),
4190
- roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
4174
+ roles: output.roles != null ? de_Roles(output.roles, context) : undefined,
4191
4175
  status: __expectString(output.status),
4192
4176
  systemEvidenceCount: __expectInt32(output.systemEvidenceCount),
4193
4177
  };
4194
4178
  };
4195
- const deserializeAws_restJson1AssessmentControlSets = (output, context) => {
4179
+ const de_AssessmentControlSets = (output, context) => {
4196
4180
  const retVal = (output || [])
4197
4181
  .filter((e) => e != null)
4198
4182
  .map((entry) => {
4199
4183
  if (entry === null) {
4200
4184
  return null;
4201
4185
  }
4202
- return deserializeAws_restJson1AssessmentControlSet(entry, context);
4186
+ return de_AssessmentControlSet(entry, context);
4203
4187
  });
4204
4188
  return retVal;
4205
4189
  };
4206
- const deserializeAws_restJson1AssessmentEvidenceFolder = (output, context) => {
4190
+ const de_AssessmentEvidenceFolder = (output, context) => {
4207
4191
  return {
4208
4192
  assessmentId: __expectString(output.assessmentId),
4209
4193
  assessmentReportSelectionCount: __expectInt32(output.assessmentReportSelectionCount),
@@ -4225,28 +4209,26 @@ const deserializeAws_restJson1AssessmentEvidenceFolder = (output, context) => {
4225
4209
  totalEvidence: __expectInt32(output.totalEvidence),
4226
4210
  };
4227
4211
  };
4228
- const deserializeAws_restJson1AssessmentEvidenceFolders = (output, context) => {
4212
+ const de_AssessmentEvidenceFolders = (output, context) => {
4229
4213
  const retVal = (output || [])
4230
4214
  .filter((e) => e != null)
4231
4215
  .map((entry) => {
4232
4216
  if (entry === null) {
4233
4217
  return null;
4234
4218
  }
4235
- return deserializeAws_restJson1AssessmentEvidenceFolder(entry, context);
4219
+ return de_AssessmentEvidenceFolder(entry, context);
4236
4220
  });
4237
4221
  return retVal;
4238
4222
  };
4239
- const deserializeAws_restJson1AssessmentFramework = (output, context) => {
4223
+ const de_AssessmentFramework = (output, context) => {
4240
4224
  return {
4241
4225
  arn: __expectString(output.arn),
4242
- controlSets: output.controlSets != null
4243
- ? deserializeAws_restJson1AssessmentControlSets(output.controlSets, context)
4244
- : undefined,
4226
+ controlSets: output.controlSets != null ? de_AssessmentControlSets(output.controlSets, context) : undefined,
4245
4227
  id: __expectString(output.id),
4246
- metadata: output.metadata != null ? deserializeAws_restJson1FrameworkMetadata(output.metadata, context) : undefined,
4228
+ metadata: output.metadata != null ? de_FrameworkMetadata(output.metadata, context) : undefined,
4247
4229
  };
4248
4230
  };
4249
- const deserializeAws_restJson1AssessmentFrameworkMetadata = (output, context) => {
4231
+ const de_AssessmentFrameworkMetadata = (output, context) => {
4250
4232
  return {
4251
4233
  arn: __expectString(output.arn),
4252
4234
  complianceType: __expectString(output.complianceType),
@@ -4263,7 +4245,7 @@ const deserializeAws_restJson1AssessmentFrameworkMetadata = (output, context) =>
4263
4245
  type: __expectString(output.type),
4264
4246
  };
4265
4247
  };
4266
- const deserializeAws_restJson1AssessmentFrameworkShareRequest = (output, context) => {
4248
+ const de_AssessmentFrameworkShareRequest = (output, context) => {
4267
4249
  return {
4268
4250
  comment: __expectString(output.comment),
4269
4251
  complianceType: __expectString(output.complianceType),
@@ -4288,55 +4270,55 @@ const deserializeAws_restJson1AssessmentFrameworkShareRequest = (output, context
4288
4270
  status: __expectString(output.status),
4289
4271
  };
4290
4272
  };
4291
- const deserializeAws_restJson1AssessmentFrameworkShareRequestList = (output, context) => {
4273
+ const de_AssessmentFrameworkShareRequestList = (output, context) => {
4292
4274
  const retVal = (output || [])
4293
4275
  .filter((e) => e != null)
4294
4276
  .map((entry) => {
4295
4277
  if (entry === null) {
4296
4278
  return null;
4297
4279
  }
4298
- return deserializeAws_restJson1AssessmentFrameworkShareRequest(entry, context);
4280
+ return de_AssessmentFrameworkShareRequest(entry, context);
4299
4281
  });
4300
4282
  return retVal;
4301
4283
  };
4302
- const deserializeAws_restJson1AssessmentMetadata = (output, context) => {
4284
+ const de_AssessmentMetadata = (output, context) => {
4303
4285
  return {
4304
4286
  assessmentReportsDestination: output.assessmentReportsDestination != null
4305
- ? deserializeAws_restJson1AssessmentReportsDestination(output.assessmentReportsDestination, context)
4287
+ ? de_AssessmentReportsDestination(output.assessmentReportsDestination, context)
4306
4288
  : undefined,
4307
4289
  complianceType: __expectString(output.complianceType),
4308
4290
  creationTime: output.creationTime != null
4309
4291
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4310
4292
  : undefined,
4311
- delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
4293
+ delegations: output.delegations != null ? de_Delegations(output.delegations, context) : undefined,
4312
4294
  description: __expectString(output.description),
4313
4295
  id: __expectString(output.id),
4314
4296
  lastUpdated: output.lastUpdated != null
4315
4297
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
4316
4298
  : undefined,
4317
4299
  name: __expectString(output.name),
4318
- roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
4319
- scope: output.scope != null ? deserializeAws_restJson1Scope(output.scope, context) : undefined,
4300
+ roles: output.roles != null ? de_Roles(output.roles, context) : undefined,
4301
+ scope: output.scope != null ? de_Scope(output.scope, context) : undefined,
4320
4302
  status: __expectString(output.status),
4321
4303
  };
4322
4304
  };
4323
- const deserializeAws_restJson1AssessmentMetadataItem = (output, context) => {
4305
+ const de_AssessmentMetadataItem = (output, context) => {
4324
4306
  return {
4325
4307
  complianceType: __expectString(output.complianceType),
4326
4308
  creationTime: output.creationTime != null
4327
4309
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4328
4310
  : undefined,
4329
- delegations: output.delegations != null ? deserializeAws_restJson1Delegations(output.delegations, context) : undefined,
4311
+ delegations: output.delegations != null ? de_Delegations(output.delegations, context) : undefined,
4330
4312
  id: __expectString(output.id),
4331
4313
  lastUpdated: output.lastUpdated != null
4332
4314
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
4333
4315
  : undefined,
4334
4316
  name: __expectString(output.name),
4335
- roles: output.roles != null ? deserializeAws_restJson1Roles(output.roles, context) : undefined,
4317
+ roles: output.roles != null ? de_Roles(output.roles, context) : undefined,
4336
4318
  status: __expectString(output.status),
4337
4319
  };
4338
4320
  };
4339
- const deserializeAws_restJson1AssessmentReport = (output, context) => {
4321
+ const de_AssessmentReport = (output, context) => {
4340
4322
  return {
4341
4323
  assessmentId: __expectString(output.assessmentId),
4342
4324
  assessmentName: __expectString(output.assessmentName),
@@ -4351,25 +4333,25 @@ const deserializeAws_restJson1AssessmentReport = (output, context) => {
4351
4333
  status: __expectString(output.status),
4352
4334
  };
4353
4335
  };
4354
- const deserializeAws_restJson1AssessmentReportEvidenceError = (output, context) => {
4336
+ const de_AssessmentReportEvidenceError = (output, context) => {
4355
4337
  return {
4356
4338
  errorCode: __expectString(output.errorCode),
4357
4339
  errorMessage: __expectString(output.errorMessage),
4358
4340
  evidenceId: __expectString(output.evidenceId),
4359
4341
  };
4360
4342
  };
4361
- const deserializeAws_restJson1AssessmentReportEvidenceErrors = (output, context) => {
4343
+ const de_AssessmentReportEvidenceErrors = (output, context) => {
4362
4344
  const retVal = (output || [])
4363
4345
  .filter((e) => e != null)
4364
4346
  .map((entry) => {
4365
4347
  if (entry === null) {
4366
4348
  return null;
4367
4349
  }
4368
- return deserializeAws_restJson1AssessmentReportEvidenceError(entry, context);
4350
+ return de_AssessmentReportEvidenceError(entry, context);
4369
4351
  });
4370
4352
  return retVal;
4371
4353
  };
4372
- const deserializeAws_restJson1AssessmentReportMetadata = (output, context) => {
4354
+ const de_AssessmentReportMetadata = (output, context) => {
4373
4355
  return {
4374
4356
  assessmentId: __expectString(output.assessmentId),
4375
4357
  assessmentName: __expectString(output.assessmentName),
@@ -4383,116 +4365,114 @@ const deserializeAws_restJson1AssessmentReportMetadata = (output, context) => {
4383
4365
  status: __expectString(output.status),
4384
4366
  };
4385
4367
  };
4386
- const deserializeAws_restJson1AssessmentReportsDestination = (output, context) => {
4368
+ const de_AssessmentReportsDestination = (output, context) => {
4387
4369
  return {
4388
4370
  destination: __expectString(output.destination),
4389
4371
  destinationType: __expectString(output.destinationType),
4390
4372
  };
4391
4373
  };
4392
- const deserializeAws_restJson1AssessmentReportsMetadata = (output, context) => {
4374
+ const de_AssessmentReportsMetadata = (output, context) => {
4393
4375
  const retVal = (output || [])
4394
4376
  .filter((e) => e != null)
4395
4377
  .map((entry) => {
4396
4378
  if (entry === null) {
4397
4379
  return null;
4398
4380
  }
4399
- return deserializeAws_restJson1AssessmentReportMetadata(entry, context);
4381
+ return de_AssessmentReportMetadata(entry, context);
4400
4382
  });
4401
4383
  return retVal;
4402
4384
  };
4403
- const deserializeAws_restJson1AWSAccount = (output, context) => {
4385
+ const de_AWSAccount = (output, context) => {
4404
4386
  return {
4405
4387
  emailAddress: __expectString(output.emailAddress),
4406
4388
  id: __expectString(output.id),
4407
4389
  name: __expectString(output.name),
4408
4390
  };
4409
4391
  };
4410
- const deserializeAws_restJson1AWSAccounts = (output, context) => {
4392
+ const de_AWSAccounts = (output, context) => {
4411
4393
  const retVal = (output || [])
4412
4394
  .filter((e) => e != null)
4413
4395
  .map((entry) => {
4414
4396
  if (entry === null) {
4415
4397
  return null;
4416
4398
  }
4417
- return deserializeAws_restJson1AWSAccount(entry, context);
4399
+ return de_AWSAccount(entry, context);
4418
4400
  });
4419
4401
  return retVal;
4420
4402
  };
4421
- const deserializeAws_restJson1AWSService = (output, context) => {
4403
+ const de_AWSService = (output, context) => {
4422
4404
  return {
4423
4405
  serviceName: __expectString(output.serviceName),
4424
4406
  };
4425
4407
  };
4426
- const deserializeAws_restJson1AWSServices = (output, context) => {
4408
+ const de_AWSServices = (output, context) => {
4427
4409
  const retVal = (output || [])
4428
4410
  .filter((e) => e != null)
4429
4411
  .map((entry) => {
4430
4412
  if (entry === null) {
4431
4413
  return null;
4432
4414
  }
4433
- return deserializeAws_restJson1AWSService(entry, context);
4415
+ return de_AWSService(entry, context);
4434
4416
  });
4435
4417
  return retVal;
4436
4418
  };
4437
- const deserializeAws_restJson1BatchCreateDelegationByAssessmentError = (output, context) => {
4419
+ const de_BatchCreateDelegationByAssessmentError = (output, context) => {
4438
4420
  return {
4439
4421
  createDelegationRequest: output.createDelegationRequest != null
4440
- ? deserializeAws_restJson1CreateDelegationRequest(output.createDelegationRequest, context)
4422
+ ? de_CreateDelegationRequest(output.createDelegationRequest, context)
4441
4423
  : undefined,
4442
4424
  errorCode: __expectString(output.errorCode),
4443
4425
  errorMessage: __expectString(output.errorMessage),
4444
4426
  };
4445
4427
  };
4446
- const deserializeAws_restJson1BatchCreateDelegationByAssessmentErrors = (output, context) => {
4428
+ const de_BatchCreateDelegationByAssessmentErrors = (output, context) => {
4447
4429
  const retVal = (output || [])
4448
4430
  .filter((e) => e != null)
4449
4431
  .map((entry) => {
4450
4432
  if (entry === null) {
4451
4433
  return null;
4452
4434
  }
4453
- return deserializeAws_restJson1BatchCreateDelegationByAssessmentError(entry, context);
4435
+ return de_BatchCreateDelegationByAssessmentError(entry, context);
4454
4436
  });
4455
4437
  return retVal;
4456
4438
  };
4457
- const deserializeAws_restJson1BatchDeleteDelegationByAssessmentError = (output, context) => {
4439
+ const de_BatchDeleteDelegationByAssessmentError = (output, context) => {
4458
4440
  return {
4459
4441
  delegationId: __expectString(output.delegationId),
4460
4442
  errorCode: __expectString(output.errorCode),
4461
4443
  errorMessage: __expectString(output.errorMessage),
4462
4444
  };
4463
4445
  };
4464
- const deserializeAws_restJson1BatchDeleteDelegationByAssessmentErrors = (output, context) => {
4446
+ const de_BatchDeleteDelegationByAssessmentErrors = (output, context) => {
4465
4447
  const retVal = (output || [])
4466
4448
  .filter((e) => e != null)
4467
4449
  .map((entry) => {
4468
4450
  if (entry === null) {
4469
4451
  return null;
4470
4452
  }
4471
- return deserializeAws_restJson1BatchDeleteDelegationByAssessmentError(entry, context);
4453
+ return de_BatchDeleteDelegationByAssessmentError(entry, context);
4472
4454
  });
4473
4455
  return retVal;
4474
4456
  };
4475
- const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError = (output, context) => {
4457
+ const de_BatchImportEvidenceToAssessmentControlError = (output, context) => {
4476
4458
  return {
4477
4459
  errorCode: __expectString(output.errorCode),
4478
4460
  errorMessage: __expectString(output.errorMessage),
4479
- manualEvidence: output.manualEvidence != null
4480
- ? deserializeAws_restJson1ManualEvidence(output.manualEvidence, context)
4481
- : undefined,
4461
+ manualEvidence: output.manualEvidence != null ? de_ManualEvidence(output.manualEvidence, context) : undefined,
4482
4462
  };
4483
4463
  };
4484
- const deserializeAws_restJson1BatchImportEvidenceToAssessmentControlErrors = (output, context) => {
4464
+ const de_BatchImportEvidenceToAssessmentControlErrors = (output, context) => {
4485
4465
  const retVal = (output || [])
4486
4466
  .filter((e) => e != null)
4487
4467
  .map((entry) => {
4488
4468
  if (entry === null) {
4489
4469
  return null;
4490
4470
  }
4491
- return deserializeAws_restJson1BatchImportEvidenceToAssessmentControlError(entry, context);
4471
+ return de_BatchImportEvidenceToAssessmentControlError(entry, context);
4492
4472
  });
4493
4473
  return retVal;
4494
4474
  };
4495
- const deserializeAws_restJson1ChangeLog = (output, context) => {
4475
+ const de_ChangeLog = (output, context) => {
4496
4476
  return {
4497
4477
  action: __expectString(output.action),
4498
4478
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
@@ -4501,24 +4481,24 @@ const deserializeAws_restJson1ChangeLog = (output, context) => {
4501
4481
  objectType: __expectString(output.objectType),
4502
4482
  };
4503
4483
  };
4504
- const deserializeAws_restJson1ChangeLogs = (output, context) => {
4484
+ const de_ChangeLogs = (output, context) => {
4505
4485
  const retVal = (output || [])
4506
4486
  .filter((e) => e != null)
4507
4487
  .map((entry) => {
4508
4488
  if (entry === null) {
4509
4489
  return null;
4510
4490
  }
4511
- return deserializeAws_restJson1ChangeLog(entry, context);
4491
+ return de_ChangeLog(entry, context);
4512
4492
  });
4513
4493
  return retVal;
4514
4494
  };
4515
- const deserializeAws_restJson1Control = (output, context) => {
4495
+ const de_Control = (output, context) => {
4516
4496
  return {
4517
4497
  actionPlanInstructions: __expectString(output.actionPlanInstructions),
4518
4498
  actionPlanTitle: __expectString(output.actionPlanTitle),
4519
4499
  arn: __expectString(output.arn),
4520
4500
  controlMappingSources: output.controlMappingSources != null
4521
- ? deserializeAws_restJson1ControlMappingSources(output.controlMappingSources, context)
4501
+ ? de_ControlMappingSources(output.controlMappingSources, context)
4522
4502
  : undefined,
4523
4503
  controlSources: __expectString(output.controlSources),
4524
4504
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
@@ -4530,35 +4510,33 @@ const deserializeAws_restJson1Control = (output, context) => {
4530
4510
  : undefined,
4531
4511
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
4532
4512
  name: __expectString(output.name),
4533
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4513
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
4534
4514
  testingInformation: __expectString(output.testingInformation),
4535
4515
  type: __expectString(output.type),
4536
4516
  };
4537
4517
  };
4538
- const deserializeAws_restJson1ControlComment = (output, context) => {
4518
+ const de_ControlComment = (output, context) => {
4539
4519
  return {
4540
4520
  authorName: __expectString(output.authorName),
4541
4521
  commentBody: __expectString(output.commentBody),
4542
4522
  postedDate: output.postedDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.postedDate))) : undefined,
4543
4523
  };
4544
4524
  };
4545
- const deserializeAws_restJson1ControlComments = (output, context) => {
4525
+ const de_ControlComments = (output, context) => {
4546
4526
  const retVal = (output || [])
4547
4527
  .filter((e) => e != null)
4548
4528
  .map((entry) => {
4549
4529
  if (entry === null) {
4550
4530
  return null;
4551
4531
  }
4552
- return deserializeAws_restJson1ControlComment(entry, context);
4532
+ return de_ControlComment(entry, context);
4553
4533
  });
4554
4534
  return retVal;
4555
4535
  };
4556
- const deserializeAws_restJson1ControlDomainInsights = (output, context) => {
4536
+ const de_ControlDomainInsights = (output, context) => {
4557
4537
  return {
4558
4538
  controlsCountByNoncompliantEvidence: __expectInt32(output.controlsCountByNoncompliantEvidence),
4559
- evidenceInsights: output.evidenceInsights != null
4560
- ? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
4561
- : undefined,
4539
+ evidenceInsights: output.evidenceInsights != null ? de_EvidenceInsights(output.evidenceInsights, context) : undefined,
4562
4540
  id: __expectString(output.id),
4563
4541
  lastUpdated: output.lastUpdated != null
4564
4542
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
@@ -4567,45 +4545,43 @@ const deserializeAws_restJson1ControlDomainInsights = (output, context) => {
4567
4545
  totalControlsCount: __expectInt32(output.totalControlsCount),
4568
4546
  };
4569
4547
  };
4570
- const deserializeAws_restJson1ControlDomainInsightsList = (output, context) => {
4548
+ const de_ControlDomainInsightsList = (output, context) => {
4571
4549
  const retVal = (output || [])
4572
4550
  .filter((e) => e != null)
4573
4551
  .map((entry) => {
4574
4552
  if (entry === null) {
4575
4553
  return null;
4576
4554
  }
4577
- return deserializeAws_restJson1ControlDomainInsights(entry, context);
4555
+ return de_ControlDomainInsights(entry, context);
4578
4556
  });
4579
4557
  return retVal;
4580
4558
  };
4581
- const deserializeAws_restJson1ControlInsightsMetadata = (output, context) => {
4559
+ const de_ControlInsightsMetadata = (output, context) => {
4582
4560
  const retVal = (output || [])
4583
4561
  .filter((e) => e != null)
4584
4562
  .map((entry) => {
4585
4563
  if (entry === null) {
4586
4564
  return null;
4587
4565
  }
4588
- return deserializeAws_restJson1ControlInsightsMetadataItem(entry, context);
4566
+ return de_ControlInsightsMetadataItem(entry, context);
4589
4567
  });
4590
4568
  return retVal;
4591
4569
  };
4592
- const deserializeAws_restJson1ControlInsightsMetadataByAssessment = (output, context) => {
4570
+ const de_ControlInsightsMetadataByAssessment = (output, context) => {
4593
4571
  const retVal = (output || [])
4594
4572
  .filter((e) => e != null)
4595
4573
  .map((entry) => {
4596
4574
  if (entry === null) {
4597
4575
  return null;
4598
4576
  }
4599
- return deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem(entry, context);
4577
+ return de_ControlInsightsMetadataByAssessmentItem(entry, context);
4600
4578
  });
4601
4579
  return retVal;
4602
4580
  };
4603
- const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output, context) => {
4581
+ const de_ControlInsightsMetadataByAssessmentItem = (output, context) => {
4604
4582
  return {
4605
4583
  controlSetName: __expectString(output.controlSetName),
4606
- evidenceInsights: output.evidenceInsights != null
4607
- ? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
4608
- : undefined,
4584
+ evidenceInsights: output.evidenceInsights != null ? de_EvidenceInsights(output.evidenceInsights, context) : undefined,
4609
4585
  id: __expectString(output.id),
4610
4586
  lastUpdated: output.lastUpdated != null
4611
4587
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
@@ -4613,11 +4589,9 @@ const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output,
4613
4589
  name: __expectString(output.name),
4614
4590
  };
4615
4591
  };
4616
- const deserializeAws_restJson1ControlInsightsMetadataItem = (output, context) => {
4592
+ const de_ControlInsightsMetadataItem = (output, context) => {
4617
4593
  return {
4618
- evidenceInsights: output.evidenceInsights != null
4619
- ? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
4620
- : undefined,
4594
+ evidenceInsights: output.evidenceInsights != null ? de_EvidenceInsights(output.evidenceInsights, context) : undefined,
4621
4595
  id: __expectString(output.id),
4622
4596
  lastUpdated: output.lastUpdated != null
4623
4597
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
@@ -4625,30 +4599,30 @@ const deserializeAws_restJson1ControlInsightsMetadataItem = (output, context) =>
4625
4599
  name: __expectString(output.name),
4626
4600
  };
4627
4601
  };
4628
- const deserializeAws_restJson1ControlMappingSource = (output, context) => {
4602
+ const de_ControlMappingSource = (output, context) => {
4629
4603
  return {
4630
4604
  sourceDescription: __expectString(output.sourceDescription),
4631
4605
  sourceFrequency: __expectString(output.sourceFrequency),
4632
4606
  sourceId: __expectString(output.sourceId),
4633
- sourceKeyword: output.sourceKeyword != null ? deserializeAws_restJson1SourceKeyword(output.sourceKeyword, context) : undefined,
4607
+ sourceKeyword: output.sourceKeyword != null ? de_SourceKeyword(output.sourceKeyword, context) : undefined,
4634
4608
  sourceName: __expectString(output.sourceName),
4635
4609
  sourceSetUpOption: __expectString(output.sourceSetUpOption),
4636
4610
  sourceType: __expectString(output.sourceType),
4637
4611
  troubleshootingText: __expectString(output.troubleshootingText),
4638
4612
  };
4639
4613
  };
4640
- const deserializeAws_restJson1ControlMappingSources = (output, context) => {
4614
+ const de_ControlMappingSources = (output, context) => {
4641
4615
  const retVal = (output || [])
4642
4616
  .filter((e) => e != null)
4643
4617
  .map((entry) => {
4644
4618
  if (entry === null) {
4645
4619
  return null;
4646
4620
  }
4647
- return deserializeAws_restJson1ControlMappingSource(entry, context);
4621
+ return de_ControlMappingSource(entry, context);
4648
4622
  });
4649
4623
  return retVal;
4650
4624
  };
4651
- const deserializeAws_restJson1ControlMetadata = (output, context) => {
4625
+ const de_ControlMetadata = (output, context) => {
4652
4626
  return {
4653
4627
  arn: __expectString(output.arn),
4654
4628
  controlSources: __expectString(output.controlSources),
@@ -4660,47 +4634,47 @@ const deserializeAws_restJson1ControlMetadata = (output, context) => {
4660
4634
  name: __expectString(output.name),
4661
4635
  };
4662
4636
  };
4663
- const deserializeAws_restJson1ControlMetadataList = (output, context) => {
4637
+ const de_ControlMetadataList = (output, context) => {
4664
4638
  const retVal = (output || [])
4665
4639
  .filter((e) => e != null)
4666
4640
  .map((entry) => {
4667
4641
  if (entry === null) {
4668
4642
  return null;
4669
4643
  }
4670
- return deserializeAws_restJson1ControlMetadata(entry, context);
4644
+ return de_ControlMetadata(entry, context);
4671
4645
  });
4672
4646
  return retVal;
4673
4647
  };
4674
- const deserializeAws_restJson1Controls = (output, context) => {
4648
+ const de_Controls = (output, context) => {
4675
4649
  const retVal = (output || [])
4676
4650
  .filter((e) => e != null)
4677
4651
  .map((entry) => {
4678
4652
  if (entry === null) {
4679
4653
  return null;
4680
4654
  }
4681
- return deserializeAws_restJson1Control(entry, context);
4655
+ return de_Control(entry, context);
4682
4656
  });
4683
4657
  return retVal;
4684
4658
  };
4685
- const deserializeAws_restJson1ControlSet = (output, context) => {
4659
+ const de_ControlSet = (output, context) => {
4686
4660
  return {
4687
- controls: output.controls != null ? deserializeAws_restJson1Controls(output.controls, context) : undefined,
4661
+ controls: output.controls != null ? de_Controls(output.controls, context) : undefined,
4688
4662
  id: __expectString(output.id),
4689
4663
  name: __expectString(output.name),
4690
4664
  };
4691
4665
  };
4692
- const deserializeAws_restJson1ControlSets = (output, context) => {
4666
+ const de_ControlSets = (output, context) => {
4693
4667
  const retVal = (output || [])
4694
4668
  .filter((e) => e != null)
4695
4669
  .map((entry) => {
4696
4670
  if (entry === null) {
4697
4671
  return null;
4698
4672
  }
4699
- return deserializeAws_restJson1ControlSet(entry, context);
4673
+ return de_ControlSet(entry, context);
4700
4674
  });
4701
4675
  return retVal;
4702
4676
  };
4703
- const deserializeAws_restJson1CreateDelegationRequest = (output, context) => {
4677
+ const de_CreateDelegationRequest = (output, context) => {
4704
4678
  return {
4705
4679
  comment: __expectString(output.comment),
4706
4680
  controlSetId: __expectString(output.controlSetId),
@@ -4708,7 +4682,7 @@ const deserializeAws_restJson1CreateDelegationRequest = (output, context) => {
4708
4682
  roleType: __expectString(output.roleType),
4709
4683
  };
4710
4684
  };
4711
- const deserializeAws_restJson1Delegation = (output, context) => {
4685
+ const de_Delegation = (output, context) => {
4712
4686
  return {
4713
4687
  assessmentId: __expectString(output.assessmentId),
4714
4688
  assessmentName: __expectString(output.assessmentName),
@@ -4727,7 +4701,7 @@ const deserializeAws_restJson1Delegation = (output, context) => {
4727
4701
  status: __expectString(output.status),
4728
4702
  };
4729
4703
  };
4730
- const deserializeAws_restJson1DelegationMetadata = (output, context) => {
4704
+ const de_DelegationMetadata = (output, context) => {
4731
4705
  return {
4732
4706
  assessmentId: __expectString(output.assessmentId),
4733
4707
  assessmentName: __expectString(output.assessmentName),
@@ -4740,37 +4714,37 @@ const deserializeAws_restJson1DelegationMetadata = (output, context) => {
4740
4714
  status: __expectString(output.status),
4741
4715
  };
4742
4716
  };
4743
- const deserializeAws_restJson1DelegationMetadataList = (output, context) => {
4717
+ const de_DelegationMetadataList = (output, context) => {
4744
4718
  const retVal = (output || [])
4745
4719
  .filter((e) => e != null)
4746
4720
  .map((entry) => {
4747
4721
  if (entry === null) {
4748
4722
  return null;
4749
4723
  }
4750
- return deserializeAws_restJson1DelegationMetadata(entry, context);
4724
+ return de_DelegationMetadata(entry, context);
4751
4725
  });
4752
4726
  return retVal;
4753
4727
  };
4754
- const deserializeAws_restJson1Delegations = (output, context) => {
4728
+ const de_Delegations = (output, context) => {
4755
4729
  const retVal = (output || [])
4756
4730
  .filter((e) => e != null)
4757
4731
  .map((entry) => {
4758
4732
  if (entry === null) {
4759
4733
  return null;
4760
4734
  }
4761
- return deserializeAws_restJson1Delegation(entry, context);
4735
+ return de_Delegation(entry, context);
4762
4736
  });
4763
4737
  return retVal;
4764
4738
  };
4765
- const deserializeAws_restJson1DeregistrationPolicy = (output, context) => {
4739
+ const de_DeregistrationPolicy = (output, context) => {
4766
4740
  return {
4767
4741
  deleteResources: __expectString(output.deleteResources),
4768
4742
  };
4769
4743
  };
4770
- const deserializeAws_restJson1Evidence = (output, context) => {
4744
+ const de_Evidence = (output, context) => {
4771
4745
  return {
4772
4746
  assessmentReportSelection: __expectString(output.assessmentReportSelection),
4773
- attributes: output.attributes != null ? deserializeAws_restJson1EvidenceAttributes(output.attributes, context) : undefined,
4747
+ attributes: output.attributes != null ? de_EvidenceAttributes(output.attributes, context) : undefined,
4774
4748
  awsAccountId: __expectString(output.awsAccountId),
4775
4749
  awsOrganization: __expectString(output.awsOrganization),
4776
4750
  complianceCheck: __expectString(output.complianceCheck),
@@ -4782,13 +4756,11 @@ const deserializeAws_restJson1Evidence = (output, context) => {
4782
4756
  evidenceFolderId: __expectString(output.evidenceFolderId),
4783
4757
  iamId: __expectString(output.iamId),
4784
4758
  id: __expectString(output.id),
4785
- resourcesIncluded: output.resourcesIncluded != null
4786
- ? deserializeAws_restJson1Resources(output.resourcesIncluded, context)
4787
- : undefined,
4759
+ resourcesIncluded: output.resourcesIncluded != null ? de_Resources(output.resourcesIncluded, context) : undefined,
4788
4760
  time: output.time != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.time))) : undefined,
4789
4761
  };
4790
4762
  };
4791
- const deserializeAws_restJson1EvidenceAttributes = (output, context) => {
4763
+ const de_EvidenceAttributes = (output, context) => {
4792
4764
  return Object.entries(output).reduce((acc, [key, value]) => {
4793
4765
  if (value === null) {
4794
4766
  return acc;
@@ -4797,7 +4769,7 @@ const deserializeAws_restJson1EvidenceAttributes = (output, context) => {
4797
4769
  return acc;
4798
4770
  }, {});
4799
4771
  };
4800
- const deserializeAws_restJson1EvidenceFinderEnablement = (output, context) => {
4772
+ const de_EvidenceFinderEnablement = (output, context) => {
4801
4773
  return {
4802
4774
  backfillStatus: __expectString(output.backfillStatus),
4803
4775
  enablementStatus: __expectString(output.enablementStatus),
@@ -4805,7 +4777,7 @@ const deserializeAws_restJson1EvidenceFinderEnablement = (output, context) => {
4805
4777
  eventDataStoreArn: __expectString(output.eventDataStoreArn),
4806
4778
  };
4807
4779
  };
4808
- const deserializeAws_restJson1EvidenceIds = (output, context) => {
4780
+ const de_EvidenceIds = (output, context) => {
4809
4781
  const retVal = (output || [])
4810
4782
  .filter((e) => e != null)
4811
4783
  .map((entry) => {
@@ -4816,25 +4788,25 @@ const deserializeAws_restJson1EvidenceIds = (output, context) => {
4816
4788
  });
4817
4789
  return retVal;
4818
4790
  };
4819
- const deserializeAws_restJson1EvidenceInsights = (output, context) => {
4791
+ const de_EvidenceInsights = (output, context) => {
4820
4792
  return {
4821
4793
  compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
4822
4794
  inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
4823
4795
  noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
4824
4796
  };
4825
4797
  };
4826
- const deserializeAws_restJson1EvidenceList = (output, context) => {
4798
+ const de_EvidenceList = (output, context) => {
4827
4799
  const retVal = (output || [])
4828
4800
  .filter((e) => e != null)
4829
4801
  .map((entry) => {
4830
4802
  if (entry === null) {
4831
4803
  return null;
4832
4804
  }
4833
- return deserializeAws_restJson1Evidence(entry, context);
4805
+ return de_Evidence(entry, context);
4834
4806
  });
4835
4807
  return retVal;
4836
4808
  };
4837
- const deserializeAws_restJson1EvidenceSources = (output, context) => {
4809
+ const de_EvidenceSources = (output, context) => {
4838
4810
  const retVal = (output || [])
4839
4811
  .filter((e) => e != null)
4840
4812
  .map((entry) => {
@@ -4845,11 +4817,11 @@ const deserializeAws_restJson1EvidenceSources = (output, context) => {
4845
4817
  });
4846
4818
  return retVal;
4847
4819
  };
4848
- const deserializeAws_restJson1Framework = (output, context) => {
4820
+ const de_Framework = (output, context) => {
4849
4821
  return {
4850
4822
  arn: __expectString(output.arn),
4851
4823
  complianceType: __expectString(output.complianceType),
4852
- controlSets: output.controlSets != null ? deserializeAws_restJson1ControlSets(output.controlSets, context) : undefined,
4824
+ controlSets: output.controlSets != null ? de_ControlSets(output.controlSets, context) : undefined,
4853
4825
  controlSources: __expectString(output.controlSources),
4854
4826
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
4855
4827
  createdBy: __expectString(output.createdBy),
@@ -4861,11 +4833,11 @@ const deserializeAws_restJson1Framework = (output, context) => {
4861
4833
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
4862
4834
  logo: __expectString(output.logo),
4863
4835
  name: __expectString(output.name),
4864
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
4836
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
4865
4837
  type: __expectString(output.type),
4866
4838
  };
4867
4839
  };
4868
- const deserializeAws_restJson1FrameworkMetadata = (output, context) => {
4840
+ const de_FrameworkMetadata = (output, context) => {
4869
4841
  return {
4870
4842
  complianceType: __expectString(output.complianceType),
4871
4843
  description: __expectString(output.description),
@@ -4873,18 +4845,18 @@ const deserializeAws_restJson1FrameworkMetadata = (output, context) => {
4873
4845
  name: __expectString(output.name),
4874
4846
  };
4875
4847
  };
4876
- const deserializeAws_restJson1FrameworkMetadataList = (output, context) => {
4848
+ const de_FrameworkMetadataList = (output, context) => {
4877
4849
  const retVal = (output || [])
4878
4850
  .filter((e) => e != null)
4879
4851
  .map((entry) => {
4880
4852
  if (entry === null) {
4881
4853
  return null;
4882
4854
  }
4883
- return deserializeAws_restJson1AssessmentFrameworkMetadata(entry, context);
4855
+ return de_AssessmentFrameworkMetadata(entry, context);
4884
4856
  });
4885
4857
  return retVal;
4886
4858
  };
4887
- const deserializeAws_restJson1Insights = (output, context) => {
4859
+ const de_Insights = (output, context) => {
4888
4860
  return {
4889
4861
  activeAssessmentsCount: __expectInt32(output.activeAssessmentsCount),
4890
4862
  assessmentControlsCountByNoncompliantEvidence: __expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
@@ -4897,7 +4869,7 @@ const deserializeAws_restJson1Insights = (output, context) => {
4897
4869
  totalAssessmentControlsCount: __expectInt32(output.totalAssessmentControlsCount),
4898
4870
  };
4899
4871
  };
4900
- const deserializeAws_restJson1InsightsByAssessment = (output, context) => {
4872
+ const de_InsightsByAssessment = (output, context) => {
4901
4873
  return {
4902
4874
  assessmentControlsCountByNoncompliantEvidence: __expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
4903
4875
  compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
@@ -4909,7 +4881,7 @@ const deserializeAws_restJson1InsightsByAssessment = (output, context) => {
4909
4881
  totalAssessmentControlsCount: __expectInt32(output.totalAssessmentControlsCount),
4910
4882
  };
4911
4883
  };
4912
- const deserializeAws_restJson1Keywords = (output, context) => {
4884
+ const de_Keywords = (output, context) => {
4913
4885
  const retVal = (output || [])
4914
4886
  .filter((e) => e != null)
4915
4887
  .map((entry) => {
@@ -4920,23 +4892,23 @@ const deserializeAws_restJson1Keywords = (output, context) => {
4920
4892
  });
4921
4893
  return retVal;
4922
4894
  };
4923
- const deserializeAws_restJson1ListAssessmentMetadata = (output, context) => {
4895
+ const de_ListAssessmentMetadata = (output, context) => {
4924
4896
  const retVal = (output || [])
4925
4897
  .filter((e) => e != null)
4926
4898
  .map((entry) => {
4927
4899
  if (entry === null) {
4928
4900
  return null;
4929
4901
  }
4930
- return deserializeAws_restJson1AssessmentMetadataItem(entry, context);
4902
+ return de_AssessmentMetadataItem(entry, context);
4931
4903
  });
4932
4904
  return retVal;
4933
4905
  };
4934
- const deserializeAws_restJson1ManualEvidence = (output, context) => {
4906
+ const de_ManualEvidence = (output, context) => {
4935
4907
  return {
4936
4908
  s3ResourcePath: __expectString(output.s3ResourcePath),
4937
4909
  };
4938
4910
  };
4939
- const deserializeAws_restJson1Notification = (output, context) => {
4911
+ const de_Notification = (output, context) => {
4940
4912
  return {
4941
4913
  assessmentId: __expectString(output.assessmentId),
4942
4914
  assessmentName: __expectString(output.assessmentName),
@@ -4948,59 +4920,59 @@ const deserializeAws_restJson1Notification = (output, context) => {
4948
4920
  source: __expectString(output.source),
4949
4921
  };
4950
4922
  };
4951
- const deserializeAws_restJson1Notifications = (output, context) => {
4923
+ const de_Notifications = (output, context) => {
4952
4924
  const retVal = (output || [])
4953
4925
  .filter((e) => e != null)
4954
4926
  .map((entry) => {
4955
4927
  if (entry === null) {
4956
4928
  return null;
4957
4929
  }
4958
- return deserializeAws_restJson1Notification(entry, context);
4930
+ return de_Notification(entry, context);
4959
4931
  });
4960
4932
  return retVal;
4961
4933
  };
4962
- const deserializeAws_restJson1Resource = (output, context) => {
4934
+ const de_Resource = (output, context) => {
4963
4935
  return {
4964
4936
  arn: __expectString(output.arn),
4965
4937
  complianceCheck: __expectString(output.complianceCheck),
4966
4938
  value: __expectString(output.value),
4967
4939
  };
4968
4940
  };
4969
- const deserializeAws_restJson1Resources = (output, context) => {
4941
+ const de_Resources = (output, context) => {
4970
4942
  const retVal = (output || [])
4971
4943
  .filter((e) => e != null)
4972
4944
  .map((entry) => {
4973
4945
  if (entry === null) {
4974
4946
  return null;
4975
4947
  }
4976
- return deserializeAws_restJson1Resource(entry, context);
4948
+ return de_Resource(entry, context);
4977
4949
  });
4978
4950
  return retVal;
4979
4951
  };
4980
- const deserializeAws_restJson1Role = (output, context) => {
4952
+ const de_Role = (output, context) => {
4981
4953
  return {
4982
4954
  roleArn: __expectString(output.roleArn),
4983
4955
  roleType: __expectString(output.roleType),
4984
4956
  };
4985
4957
  };
4986
- const deserializeAws_restJson1Roles = (output, context) => {
4958
+ const de_Roles = (output, context) => {
4987
4959
  const retVal = (output || [])
4988
4960
  .filter((e) => e != null)
4989
4961
  .map((entry) => {
4990
4962
  if (entry === null) {
4991
4963
  return null;
4992
4964
  }
4993
- return deserializeAws_restJson1Role(entry, context);
4965
+ return de_Role(entry, context);
4994
4966
  });
4995
4967
  return retVal;
4996
4968
  };
4997
- const deserializeAws_restJson1Scope = (output, context) => {
4969
+ const de_Scope = (output, context) => {
4998
4970
  return {
4999
- awsAccounts: output.awsAccounts != null ? deserializeAws_restJson1AWSAccounts(output.awsAccounts, context) : undefined,
5000
- awsServices: output.awsServices != null ? deserializeAws_restJson1AWSServices(output.awsServices, context) : undefined,
4971
+ awsAccounts: output.awsAccounts != null ? de_AWSAccounts(output.awsAccounts, context) : undefined,
4972
+ awsServices: output.awsServices != null ? de_AWSServices(output.awsServices, context) : undefined,
5001
4973
  };
5002
4974
  };
5003
- const deserializeAws_restJson1ServiceMetadata = (output, context) => {
4975
+ const de_ServiceMetadata = (output, context) => {
5004
4976
  return {
5005
4977
  category: __expectString(output.category),
5006
4978
  description: __expectString(output.description),
@@ -5008,43 +4980,39 @@ const deserializeAws_restJson1ServiceMetadata = (output, context) => {
5008
4980
  name: __expectString(output.name),
5009
4981
  };
5010
4982
  };
5011
- const deserializeAws_restJson1ServiceMetadataList = (output, context) => {
4983
+ const de_ServiceMetadataList = (output, context) => {
5012
4984
  const retVal = (output || [])
5013
4985
  .filter((e) => e != null)
5014
4986
  .map((entry) => {
5015
4987
  if (entry === null) {
5016
4988
  return null;
5017
4989
  }
5018
- return deserializeAws_restJson1ServiceMetadata(entry, context);
4990
+ return de_ServiceMetadata(entry, context);
5019
4991
  });
5020
4992
  return retVal;
5021
4993
  };
5022
- const deserializeAws_restJson1Settings = (output, context) => {
4994
+ const de_Settings = (output, context) => {
5023
4995
  return {
5024
4996
  defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination != null
5025
- ? deserializeAws_restJson1AssessmentReportsDestination(output.defaultAssessmentReportsDestination, context)
5026
- : undefined,
5027
- defaultProcessOwners: output.defaultProcessOwners != null
5028
- ? deserializeAws_restJson1Roles(output.defaultProcessOwners, context)
5029
- : undefined,
5030
- deregistrationPolicy: output.deregistrationPolicy != null
5031
- ? deserializeAws_restJson1DeregistrationPolicy(output.deregistrationPolicy, context)
4997
+ ? de_AssessmentReportsDestination(output.defaultAssessmentReportsDestination, context)
5032
4998
  : undefined,
4999
+ defaultProcessOwners: output.defaultProcessOwners != null ? de_Roles(output.defaultProcessOwners, context) : undefined,
5000
+ deregistrationPolicy: output.deregistrationPolicy != null ? de_DeregistrationPolicy(output.deregistrationPolicy, context) : undefined,
5033
5001
  evidenceFinderEnablement: output.evidenceFinderEnablement != null
5034
- ? deserializeAws_restJson1EvidenceFinderEnablement(output.evidenceFinderEnablement, context)
5002
+ ? de_EvidenceFinderEnablement(output.evidenceFinderEnablement, context)
5035
5003
  : undefined,
5036
5004
  isAwsOrgEnabled: __expectBoolean(output.isAwsOrgEnabled),
5037
5005
  kmsKey: __expectString(output.kmsKey),
5038
5006
  snsTopic: __expectString(output.snsTopic),
5039
5007
  };
5040
5008
  };
5041
- const deserializeAws_restJson1SourceKeyword = (output, context) => {
5009
+ const de_SourceKeyword = (output, context) => {
5042
5010
  return {
5043
5011
  keywordInputType: __expectString(output.keywordInputType),
5044
5012
  keywordValue: __expectString(output.keywordValue),
5045
5013
  };
5046
5014
  };
5047
- const deserializeAws_restJson1TagMap = (output, context) => {
5015
+ const de_TagMap = (output, context) => {
5048
5016
  return Object.entries(output).reduce((acc, [key, value]) => {
5049
5017
  if (value === null) {
5050
5018
  return acc;
@@ -5053,13 +5021,13 @@ const deserializeAws_restJson1TagMap = (output, context) => {
5053
5021
  return acc;
5054
5022
  }, {});
5055
5023
  };
5056
- const deserializeAws_restJson1URL = (output, context) => {
5024
+ const de_URL = (output, context) => {
5057
5025
  return {
5058
5026
  hyperlinkName: __expectString(output.hyperlinkName),
5059
5027
  link: __expectString(output.link),
5060
5028
  };
5061
5029
  };
5062
- const deserializeAws_restJson1ValidationErrors = (output, context) => {
5030
+ const de_ValidationErrors = (output, context) => {
5063
5031
  const retVal = (output || [])
5064
5032
  .filter((e) => e != null)
5065
5033
  .map((entry) => {
@@ -5070,20 +5038,20 @@ const deserializeAws_restJson1ValidationErrors = (output, context) => {
5070
5038
  });
5071
5039
  return retVal;
5072
5040
  };
5073
- const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
5041
+ const de_ValidationExceptionField = (output, context) => {
5074
5042
  return {
5075
5043
  message: __expectString(output.message),
5076
5044
  name: __expectString(output.name),
5077
5045
  };
5078
5046
  };
5079
- const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
5047
+ const de_ValidationExceptionFieldList = (output, context) => {
5080
5048
  const retVal = (output || [])
5081
5049
  .filter((e) => e != null)
5082
5050
  .map((entry) => {
5083
5051
  if (entry === null) {
5084
5052
  return null;
5085
5053
  }
5086
- return deserializeAws_restJson1ValidationExceptionField(entry, context);
5054
+ return de_ValidationExceptionField(entry, context);
5087
5055
  });
5088
5056
  return retVal;
5089
5057
  };