@aws-sdk/client-docdb-elastic 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 (31) hide show
  1. package/dist-cjs/commands/CreateClusterCommand.js +2 -2
  2. package/dist-cjs/commands/CreateClusterSnapshotCommand.js +2 -2
  3. package/dist-cjs/commands/DeleteClusterCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +2 -2
  5. package/dist-cjs/commands/GetClusterCommand.js +2 -2
  6. package/dist-cjs/commands/GetClusterSnapshotCommand.js +2 -2
  7. package/dist-cjs/commands/ListClusterSnapshotsCommand.js +2 -2
  8. package/dist-cjs/commands/ListClustersCommand.js +2 -2
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  10. package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +2 -2
  11. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  12. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  13. package/dist-cjs/commands/UpdateClusterCommand.js +2 -2
  14. package/dist-cjs/protocols/Aws_restJson1.js +195 -199
  15. package/dist-es/commands/CreateClusterCommand.js +3 -3
  16. package/dist-es/commands/CreateClusterSnapshotCommand.js +3 -3
  17. package/dist-es/commands/DeleteClusterCommand.js +3 -3
  18. package/dist-es/commands/DeleteClusterSnapshotCommand.js +3 -3
  19. package/dist-es/commands/GetClusterCommand.js +3 -3
  20. package/dist-es/commands/GetClusterSnapshotCommand.js +3 -3
  21. package/dist-es/commands/ListClusterSnapshotsCommand.js +3 -3
  22. package/dist-es/commands/ListClustersCommand.js +3 -3
  23. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  24. package/dist-es/commands/RestoreClusterFromSnapshotCommand.js +3 -3
  25. package/dist-es/commands/TagResourceCommand.js +3 -3
  26. package/dist-es/commands/UntagResourceCommand.js +3 -3
  27. package/dist-es/commands/UpdateClusterCommand.js +3 -3
  28. package/dist-es/protocols/Aws_restJson1.js +168 -172
  29. package/dist-types/protocols/Aws_restJson1.d.ts +104 -26
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -26
  31. package/package.json +35 -35
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { DocDBElasticServiceException as __BaseException } from "../models/DocDBElasticServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
6
+ export const se_CreateClusterCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
8
  const headers = {
9
9
  "content-type": "application/json",
@@ -20,10 +20,10 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
20
20
  ...(input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
21
21
  ...(input.shardCapacity != null && { shardCapacity: input.shardCapacity }),
22
22
  ...(input.shardCount != null && { shardCount: input.shardCount }),
23
- ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
24
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
23
+ ...(input.subnetIds != null && { subnetIds: se_StringList(input.subnetIds, context) }),
24
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
25
25
  ...(input.vpcSecurityGroupIds != null && {
26
- vpcSecurityGroupIds: serializeAws_restJson1StringList(input.vpcSecurityGroupIds, context),
26
+ vpcSecurityGroupIds: se_StringList(input.vpcSecurityGroupIds, context),
27
27
  }),
28
28
  });
29
29
  return new __HttpRequest({
@@ -36,7 +36,7 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
36
36
  body,
37
37
  });
38
38
  };
39
- export const serializeAws_restJson1CreateClusterSnapshotCommand = async (input, context) => {
39
+ export const se_CreateClusterSnapshotCommand = async (input, context) => {
40
40
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
41
  const headers = {
42
42
  "content-type": "application/json",
@@ -46,7 +46,7 @@ export const serializeAws_restJson1CreateClusterSnapshotCommand = async (input,
46
46
  body = JSON.stringify({
47
47
  ...(input.clusterArn != null && { clusterArn: input.clusterArn }),
48
48
  ...(input.snapshotName != null && { snapshotName: input.snapshotName }),
49
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
49
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
50
50
  });
51
51
  return new __HttpRequest({
52
52
  protocol,
@@ -58,7 +58,7 @@ export const serializeAws_restJson1CreateClusterSnapshotCommand = async (input,
58
58
  body,
59
59
  });
60
60
  };
61
- export const serializeAws_restJson1DeleteClusterCommand = async (input, context) => {
61
+ export const se_DeleteClusterCommand = async (input, context) => {
62
62
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
63
  const headers = {};
64
64
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{clusterArn}";
@@ -74,7 +74,7 @@ export const serializeAws_restJson1DeleteClusterCommand = async (input, context)
74
74
  body,
75
75
  });
76
76
  };
77
- export const serializeAws_restJson1DeleteClusterSnapshotCommand = async (input, context) => {
77
+ export const se_DeleteClusterSnapshotCommand = async (input, context) => {
78
78
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
79
  const headers = {};
80
80
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshot/{snapshotArn}";
@@ -90,7 +90,7 @@ export const serializeAws_restJson1DeleteClusterSnapshotCommand = async (input,
90
90
  body,
91
91
  });
92
92
  };
93
- export const serializeAws_restJson1GetClusterCommand = async (input, context) => {
93
+ export const se_GetClusterCommand = async (input, context) => {
94
94
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
95
  const headers = {};
96
96
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster/{clusterArn}";
@@ -106,7 +106,7 @@ export const serializeAws_restJson1GetClusterCommand = async (input, context) =>
106
106
  body,
107
107
  });
108
108
  };
109
- export const serializeAws_restJson1GetClusterSnapshotCommand = async (input, context) => {
109
+ export const se_GetClusterSnapshotCommand = async (input, context) => {
110
110
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
111
  const headers = {};
112
112
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshot/{snapshotArn}";
@@ -122,7 +122,7 @@ export const serializeAws_restJson1GetClusterSnapshotCommand = async (input, con
122
122
  body,
123
123
  });
124
124
  };
125
- export const serializeAws_restJson1ListClustersCommand = async (input, context) => {
125
+ export const se_ListClustersCommand = async (input, context) => {
126
126
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
127
  const headers = {};
128
128
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clusters";
@@ -142,7 +142,7 @@ export const serializeAws_restJson1ListClustersCommand = async (input, context)
142
142
  body,
143
143
  });
144
144
  };
145
- export const serializeAws_restJson1ListClusterSnapshotsCommand = async (input, context) => {
145
+ export const se_ListClusterSnapshotsCommand = async (input, context) => {
146
146
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
147
  const headers = {};
148
148
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster-snapshots";
@@ -163,7 +163,7 @@ export const serializeAws_restJson1ListClusterSnapshotsCommand = async (input, c
163
163
  body,
164
164
  });
165
165
  };
166
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
166
+ export const se_ListTagsForResourceCommand = async (input, context) => {
167
167
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
168
  const headers = {};
169
169
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -179,7 +179,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
179
179
  body,
180
180
  });
181
181
  };
182
- export const serializeAws_restJson1RestoreClusterFromSnapshotCommand = async (input, context) => {
182
+ export const se_RestoreClusterFromSnapshotCommand = async (input, context) => {
183
183
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
184
184
  const headers = {
185
185
  "content-type": "application/json",
@@ -190,10 +190,10 @@ export const serializeAws_restJson1RestoreClusterFromSnapshotCommand = async (in
190
190
  body = JSON.stringify({
191
191
  ...(input.clusterName != null && { clusterName: input.clusterName }),
192
192
  ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
193
- ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
194
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
193
+ ...(input.subnetIds != null && { subnetIds: se_StringList(input.subnetIds, context) }),
194
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
195
195
  ...(input.vpcSecurityGroupIds != null && {
196
- vpcSecurityGroupIds: serializeAws_restJson1StringList(input.vpcSecurityGroupIds, context),
196
+ vpcSecurityGroupIds: se_StringList(input.vpcSecurityGroupIds, context),
197
197
  }),
198
198
  });
199
199
  return new __HttpRequest({
@@ -206,7 +206,7 @@ export const serializeAws_restJson1RestoreClusterFromSnapshotCommand = async (in
206
206
  body,
207
207
  });
208
208
  };
209
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
209
+ export const se_TagResourceCommand = async (input, context) => {
210
210
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
211
  const headers = {
212
212
  "content-type": "application/json",
@@ -215,7 +215,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
215
215
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
216
216
  let body;
217
217
  body = JSON.stringify({
218
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
218
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
219
219
  });
220
220
  return new __HttpRequest({
221
221
  protocol,
@@ -227,7 +227,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
227
227
  body,
228
228
  });
229
229
  };
230
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
230
+ export const se_UntagResourceCommand = async (input, context) => {
231
231
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
232
  const headers = {};
233
233
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -250,7 +250,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
250
250
  body,
251
251
  });
252
252
  };
253
- export const serializeAws_restJson1UpdateClusterCommand = async (input, context) => {
253
+ export const se_UpdateClusterCommand = async (input, context) => {
254
254
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
255
  const headers = {
256
256
  "content-type": "application/json",
@@ -265,9 +265,9 @@ export const serializeAws_restJson1UpdateClusterCommand = async (input, context)
265
265
  ...(input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
266
266
  ...(input.shardCapacity != null && { shardCapacity: input.shardCapacity }),
267
267
  ...(input.shardCount != null && { shardCount: input.shardCount }),
268
- ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1StringList(input.subnetIds, context) }),
268
+ ...(input.subnetIds != null && { subnetIds: se_StringList(input.subnetIds, context) }),
269
269
  ...(input.vpcSecurityGroupIds != null && {
270
- vpcSecurityGroupIds: serializeAws_restJson1StringList(input.vpcSecurityGroupIds, context),
270
+ vpcSecurityGroupIds: se_StringList(input.vpcSecurityGroupIds, context),
271
271
  }),
272
272
  });
273
273
  return new __HttpRequest({
@@ -280,20 +280,20 @@ export const serializeAws_restJson1UpdateClusterCommand = async (input, context)
280
280
  body,
281
281
  });
282
282
  };
283
- export const deserializeAws_restJson1CreateClusterCommand = async (output, context) => {
283
+ export const de_CreateClusterCommand = async (output, context) => {
284
284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
285
- return deserializeAws_restJson1CreateClusterCommandError(output, context);
285
+ return de_CreateClusterCommandError(output, context);
286
286
  }
287
287
  const contents = map({
288
288
  $metadata: deserializeMetadata(output),
289
289
  });
290
290
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
291
291
  if (data.cluster != null) {
292
- contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
292
+ contents.cluster = de_Cluster(data.cluster, context);
293
293
  }
294
294
  return contents;
295
295
  };
296
- const deserializeAws_restJson1CreateClusterCommandError = async (output, context) => {
296
+ const de_CreateClusterCommandError = async (output, context) => {
297
297
  const parsedOutput = {
298
298
  ...output,
299
299
  body: await parseErrorBody(output.body, context),
@@ -302,22 +302,22 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
302
302
  switch (errorCode) {
303
303
  case "AccessDeniedException":
304
304
  case "com.amazonaws.docdbelastic#AccessDeniedException":
305
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
305
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
306
306
  case "ConflictException":
307
307
  case "com.amazonaws.docdbelastic#ConflictException":
308
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
308
+ throw await de_ConflictExceptionRes(parsedOutput, context);
309
309
  case "InternalServerException":
310
310
  case "com.amazonaws.docdbelastic#InternalServerException":
311
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
311
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
312
312
  case "ServiceQuotaExceededException":
313
313
  case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
314
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
314
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
315
315
  case "ThrottlingException":
316
316
  case "com.amazonaws.docdbelastic#ThrottlingException":
317
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
317
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
318
318
  case "ValidationException":
319
319
  case "com.amazonaws.docdbelastic#ValidationException":
320
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
320
+ throw await de_ValidationExceptionRes(parsedOutput, context);
321
321
  default:
322
322
  const parsedBody = parsedOutput.body;
323
323
  throwDefaultError({
@@ -328,20 +328,20 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
328
328
  });
329
329
  }
330
330
  };
331
- export const deserializeAws_restJson1CreateClusterSnapshotCommand = async (output, context) => {
331
+ export const de_CreateClusterSnapshotCommand = async (output, context) => {
332
332
  if (output.statusCode !== 200 && output.statusCode >= 300) {
333
- return deserializeAws_restJson1CreateClusterSnapshotCommandError(output, context);
333
+ return de_CreateClusterSnapshotCommandError(output, context);
334
334
  }
335
335
  const contents = map({
336
336
  $metadata: deserializeMetadata(output),
337
337
  });
338
338
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
339
339
  if (data.snapshot != null) {
340
- contents.snapshot = deserializeAws_restJson1ClusterSnapshot(data.snapshot, context);
340
+ contents.snapshot = de_ClusterSnapshot(data.snapshot, context);
341
341
  }
342
342
  return contents;
343
343
  };
344
- const deserializeAws_restJson1CreateClusterSnapshotCommandError = async (output, context) => {
344
+ const de_CreateClusterSnapshotCommandError = async (output, context) => {
345
345
  const parsedOutput = {
346
346
  ...output,
347
347
  body: await parseErrorBody(output.body, context),
@@ -350,25 +350,25 @@ const deserializeAws_restJson1CreateClusterSnapshotCommandError = async (output,
350
350
  switch (errorCode) {
351
351
  case "AccessDeniedException":
352
352
  case "com.amazonaws.docdbelastic#AccessDeniedException":
353
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
353
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
354
354
  case "ConflictException":
355
355
  case "com.amazonaws.docdbelastic#ConflictException":
356
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
356
+ throw await de_ConflictExceptionRes(parsedOutput, context);
357
357
  case "InternalServerException":
358
358
  case "com.amazonaws.docdbelastic#InternalServerException":
359
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
359
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
360
360
  case "ResourceNotFoundException":
361
361
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
362
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
362
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
363
363
  case "ServiceQuotaExceededException":
364
364
  case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
365
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
365
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
366
366
  case "ThrottlingException":
367
367
  case "com.amazonaws.docdbelastic#ThrottlingException":
368
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
368
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
369
369
  case "ValidationException":
370
370
  case "com.amazonaws.docdbelastic#ValidationException":
371
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
371
+ throw await de_ValidationExceptionRes(parsedOutput, context);
372
372
  default:
373
373
  const parsedBody = parsedOutput.body;
374
374
  throwDefaultError({
@@ -379,20 +379,20 @@ const deserializeAws_restJson1CreateClusterSnapshotCommandError = async (output,
379
379
  });
380
380
  }
381
381
  };
382
- export const deserializeAws_restJson1DeleteClusterCommand = async (output, context) => {
382
+ export const de_DeleteClusterCommand = async (output, context) => {
383
383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
- return deserializeAws_restJson1DeleteClusterCommandError(output, context);
384
+ return de_DeleteClusterCommandError(output, context);
385
385
  }
386
386
  const contents = map({
387
387
  $metadata: deserializeMetadata(output),
388
388
  });
389
389
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
390
390
  if (data.cluster != null) {
391
- contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
391
+ contents.cluster = de_Cluster(data.cluster, context);
392
392
  }
393
393
  return contents;
394
394
  };
395
- const deserializeAws_restJson1DeleteClusterCommandError = async (output, context) => {
395
+ const de_DeleteClusterCommandError = async (output, context) => {
396
396
  const parsedOutput = {
397
397
  ...output,
398
398
  body: await parseErrorBody(output.body, context),
@@ -401,22 +401,22 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
401
401
  switch (errorCode) {
402
402
  case "AccessDeniedException":
403
403
  case "com.amazonaws.docdbelastic#AccessDeniedException":
404
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
404
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
405
405
  case "ConflictException":
406
406
  case "com.amazonaws.docdbelastic#ConflictException":
407
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
407
+ throw await de_ConflictExceptionRes(parsedOutput, context);
408
408
  case "InternalServerException":
409
409
  case "com.amazonaws.docdbelastic#InternalServerException":
410
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
410
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
411
411
  case "ResourceNotFoundException":
412
412
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
413
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
413
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
414
414
  case "ThrottlingException":
415
415
  case "com.amazonaws.docdbelastic#ThrottlingException":
416
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
416
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
417
417
  case "ValidationException":
418
418
  case "com.amazonaws.docdbelastic#ValidationException":
419
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
419
+ throw await de_ValidationExceptionRes(parsedOutput, context);
420
420
  default:
421
421
  const parsedBody = parsedOutput.body;
422
422
  throwDefaultError({
@@ -427,20 +427,20 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
427
427
  });
428
428
  }
429
429
  };
430
- export const deserializeAws_restJson1DeleteClusterSnapshotCommand = async (output, context) => {
430
+ export const de_DeleteClusterSnapshotCommand = async (output, context) => {
431
431
  if (output.statusCode !== 200 && output.statusCode >= 300) {
432
- return deserializeAws_restJson1DeleteClusterSnapshotCommandError(output, context);
432
+ return de_DeleteClusterSnapshotCommandError(output, context);
433
433
  }
434
434
  const contents = map({
435
435
  $metadata: deserializeMetadata(output),
436
436
  });
437
437
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
438
438
  if (data.snapshot != null) {
439
- contents.snapshot = deserializeAws_restJson1ClusterSnapshot(data.snapshot, context);
439
+ contents.snapshot = de_ClusterSnapshot(data.snapshot, context);
440
440
  }
441
441
  return contents;
442
442
  };
443
- const deserializeAws_restJson1DeleteClusterSnapshotCommandError = async (output, context) => {
443
+ const de_DeleteClusterSnapshotCommandError = async (output, context) => {
444
444
  const parsedOutput = {
445
445
  ...output,
446
446
  body: await parseErrorBody(output.body, context),
@@ -449,22 +449,22 @@ const deserializeAws_restJson1DeleteClusterSnapshotCommandError = async (output,
449
449
  switch (errorCode) {
450
450
  case "AccessDeniedException":
451
451
  case "com.amazonaws.docdbelastic#AccessDeniedException":
452
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
452
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
453
453
  case "ConflictException":
454
454
  case "com.amazonaws.docdbelastic#ConflictException":
455
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
455
+ throw await de_ConflictExceptionRes(parsedOutput, context);
456
456
  case "InternalServerException":
457
457
  case "com.amazonaws.docdbelastic#InternalServerException":
458
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
458
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
459
459
  case "ResourceNotFoundException":
460
460
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
461
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
461
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
462
462
  case "ThrottlingException":
463
463
  case "com.amazonaws.docdbelastic#ThrottlingException":
464
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
464
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
465
465
  case "ValidationException":
466
466
  case "com.amazonaws.docdbelastic#ValidationException":
467
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
467
+ throw await de_ValidationExceptionRes(parsedOutput, context);
468
468
  default:
469
469
  const parsedBody = parsedOutput.body;
470
470
  throwDefaultError({
@@ -475,20 +475,20 @@ const deserializeAws_restJson1DeleteClusterSnapshotCommandError = async (output,
475
475
  });
476
476
  }
477
477
  };
478
- export const deserializeAws_restJson1GetClusterCommand = async (output, context) => {
478
+ export const de_GetClusterCommand = async (output, context) => {
479
479
  if (output.statusCode !== 200 && output.statusCode >= 300) {
480
- return deserializeAws_restJson1GetClusterCommandError(output, context);
480
+ return de_GetClusterCommandError(output, context);
481
481
  }
482
482
  const contents = map({
483
483
  $metadata: deserializeMetadata(output),
484
484
  });
485
485
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
486
486
  if (data.cluster != null) {
487
- contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
487
+ contents.cluster = de_Cluster(data.cluster, context);
488
488
  }
489
489
  return contents;
490
490
  };
491
- const deserializeAws_restJson1GetClusterCommandError = async (output, context) => {
491
+ const de_GetClusterCommandError = async (output, context) => {
492
492
  const parsedOutput = {
493
493
  ...output,
494
494
  body: await parseErrorBody(output.body, context),
@@ -497,19 +497,19 @@ const deserializeAws_restJson1GetClusterCommandError = async (output, context) =
497
497
  switch (errorCode) {
498
498
  case "AccessDeniedException":
499
499
  case "com.amazonaws.docdbelastic#AccessDeniedException":
500
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
500
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
501
501
  case "InternalServerException":
502
502
  case "com.amazonaws.docdbelastic#InternalServerException":
503
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
503
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
504
504
  case "ResourceNotFoundException":
505
505
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
506
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
506
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
507
507
  case "ThrottlingException":
508
508
  case "com.amazonaws.docdbelastic#ThrottlingException":
509
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
509
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
510
510
  case "ValidationException":
511
511
  case "com.amazonaws.docdbelastic#ValidationException":
512
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
512
+ throw await de_ValidationExceptionRes(parsedOutput, context);
513
513
  default:
514
514
  const parsedBody = parsedOutput.body;
515
515
  throwDefaultError({
@@ -520,20 +520,20 @@ const deserializeAws_restJson1GetClusterCommandError = async (output, context) =
520
520
  });
521
521
  }
522
522
  };
523
- export const deserializeAws_restJson1GetClusterSnapshotCommand = async (output, context) => {
523
+ export const de_GetClusterSnapshotCommand = async (output, context) => {
524
524
  if (output.statusCode !== 200 && output.statusCode >= 300) {
525
- return deserializeAws_restJson1GetClusterSnapshotCommandError(output, context);
525
+ return de_GetClusterSnapshotCommandError(output, context);
526
526
  }
527
527
  const contents = map({
528
528
  $metadata: deserializeMetadata(output),
529
529
  });
530
530
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
531
531
  if (data.snapshot != null) {
532
- contents.snapshot = deserializeAws_restJson1ClusterSnapshot(data.snapshot, context);
532
+ contents.snapshot = de_ClusterSnapshot(data.snapshot, context);
533
533
  }
534
534
  return contents;
535
535
  };
536
- const deserializeAws_restJson1GetClusterSnapshotCommandError = async (output, context) => {
536
+ const de_GetClusterSnapshotCommandError = async (output, context) => {
537
537
  const parsedOutput = {
538
538
  ...output,
539
539
  body: await parseErrorBody(output.body, context),
@@ -542,19 +542,19 @@ const deserializeAws_restJson1GetClusterSnapshotCommandError = async (output, co
542
542
  switch (errorCode) {
543
543
  case "AccessDeniedException":
544
544
  case "com.amazonaws.docdbelastic#AccessDeniedException":
545
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
545
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
546
546
  case "InternalServerException":
547
547
  case "com.amazonaws.docdbelastic#InternalServerException":
548
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
548
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
549
549
  case "ResourceNotFoundException":
550
550
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
551
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
551
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
552
552
  case "ThrottlingException":
553
553
  case "com.amazonaws.docdbelastic#ThrottlingException":
554
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
554
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
555
555
  case "ValidationException":
556
556
  case "com.amazonaws.docdbelastic#ValidationException":
557
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
557
+ throw await de_ValidationExceptionRes(parsedOutput, context);
558
558
  default:
559
559
  const parsedBody = parsedOutput.body;
560
560
  throwDefaultError({
@@ -565,23 +565,23 @@ const deserializeAws_restJson1GetClusterSnapshotCommandError = async (output, co
565
565
  });
566
566
  }
567
567
  };
568
- export const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
568
+ export const de_ListClustersCommand = async (output, context) => {
569
569
  if (output.statusCode !== 200 && output.statusCode >= 300) {
570
- return deserializeAws_restJson1ListClustersCommandError(output, context);
570
+ return de_ListClustersCommandError(output, context);
571
571
  }
572
572
  const contents = map({
573
573
  $metadata: deserializeMetadata(output),
574
574
  });
575
575
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
576
576
  if (data.clusters != null) {
577
- contents.clusters = deserializeAws_restJson1ClusterList(data.clusters, context);
577
+ contents.clusters = de_ClusterList(data.clusters, context);
578
578
  }
579
579
  if (data.nextToken != null) {
580
580
  contents.nextToken = __expectString(data.nextToken);
581
581
  }
582
582
  return contents;
583
583
  };
584
- const deserializeAws_restJson1ListClustersCommandError = async (output, context) => {
584
+ const de_ListClustersCommandError = async (output, context) => {
585
585
  const parsedOutput = {
586
586
  ...output,
587
587
  body: await parseErrorBody(output.body, context),
@@ -590,16 +590,16 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
590
590
  switch (errorCode) {
591
591
  case "AccessDeniedException":
592
592
  case "com.amazonaws.docdbelastic#AccessDeniedException":
593
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
593
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
594
594
  case "InternalServerException":
595
595
  case "com.amazonaws.docdbelastic#InternalServerException":
596
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
596
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
597
597
  case "ThrottlingException":
598
598
  case "com.amazonaws.docdbelastic#ThrottlingException":
599
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
599
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
600
600
  case "ValidationException":
601
601
  case "com.amazonaws.docdbelastic#ValidationException":
602
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
602
+ throw await de_ValidationExceptionRes(parsedOutput, context);
603
603
  default:
604
604
  const parsedBody = parsedOutput.body;
605
605
  throwDefaultError({
@@ -610,9 +610,9 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
610
610
  });
611
611
  }
612
612
  };
613
- export const deserializeAws_restJson1ListClusterSnapshotsCommand = async (output, context) => {
613
+ export const de_ListClusterSnapshotsCommand = async (output, context) => {
614
614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
615
- return deserializeAws_restJson1ListClusterSnapshotsCommandError(output, context);
615
+ return de_ListClusterSnapshotsCommandError(output, context);
616
616
  }
617
617
  const contents = map({
618
618
  $metadata: deserializeMetadata(output),
@@ -622,11 +622,11 @@ export const deserializeAws_restJson1ListClusterSnapshotsCommand = async (output
622
622
  contents.nextToken = __expectString(data.nextToken);
623
623
  }
624
624
  if (data.snapshots != null) {
625
- contents.snapshots = deserializeAws_restJson1ClusterSnapshotList(data.snapshots, context);
625
+ contents.snapshots = de_ClusterSnapshotList(data.snapshots, context);
626
626
  }
627
627
  return contents;
628
628
  };
629
- const deserializeAws_restJson1ListClusterSnapshotsCommandError = async (output, context) => {
629
+ const de_ListClusterSnapshotsCommandError = async (output, context) => {
630
630
  const parsedOutput = {
631
631
  ...output,
632
632
  body: await parseErrorBody(output.body, context),
@@ -635,16 +635,16 @@ const deserializeAws_restJson1ListClusterSnapshotsCommandError = async (output,
635
635
  switch (errorCode) {
636
636
  case "AccessDeniedException":
637
637
  case "com.amazonaws.docdbelastic#AccessDeniedException":
638
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
638
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
639
639
  case "InternalServerException":
640
640
  case "com.amazonaws.docdbelastic#InternalServerException":
641
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
641
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
642
642
  case "ThrottlingException":
643
643
  case "com.amazonaws.docdbelastic#ThrottlingException":
644
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
644
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
645
645
  case "ValidationException":
646
646
  case "com.amazonaws.docdbelastic#ValidationException":
647
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
647
+ throw await de_ValidationExceptionRes(parsedOutput, context);
648
648
  default:
649
649
  const parsedBody = parsedOutput.body;
650
650
  throwDefaultError({
@@ -655,20 +655,20 @@ const deserializeAws_restJson1ListClusterSnapshotsCommandError = async (output,
655
655
  });
656
656
  }
657
657
  };
658
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
658
+ export const de_ListTagsForResourceCommand = async (output, context) => {
659
659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
660
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
660
+ return de_ListTagsForResourceCommandError(output, context);
661
661
  }
662
662
  const contents = map({
663
663
  $metadata: deserializeMetadata(output),
664
664
  });
665
665
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
666
666
  if (data.tags != null) {
667
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
667
+ contents.tags = de_TagMap(data.tags, context);
668
668
  }
669
669
  return contents;
670
670
  };
671
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
671
+ const de_ListTagsForResourceCommandError = async (output, context) => {
672
672
  const parsedOutput = {
673
673
  ...output,
674
674
  body: await parseErrorBody(output.body, context),
@@ -677,16 +677,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
677
677
  switch (errorCode) {
678
678
  case "InternalServerException":
679
679
  case "com.amazonaws.docdbelastic#InternalServerException":
680
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
680
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
681
681
  case "ResourceNotFoundException":
682
682
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
683
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
683
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
684
684
  case "ThrottlingException":
685
685
  case "com.amazonaws.docdbelastic#ThrottlingException":
686
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
686
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
687
687
  case "ValidationException":
688
688
  case "com.amazonaws.docdbelastic#ValidationException":
689
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
689
+ throw await de_ValidationExceptionRes(parsedOutput, context);
690
690
  default:
691
691
  const parsedBody = parsedOutput.body;
692
692
  throwDefaultError({
@@ -697,20 +697,20 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
697
697
  });
698
698
  }
699
699
  };
700
- export const deserializeAws_restJson1RestoreClusterFromSnapshotCommand = async (output, context) => {
700
+ export const de_RestoreClusterFromSnapshotCommand = async (output, context) => {
701
701
  if (output.statusCode !== 200 && output.statusCode >= 300) {
702
- return deserializeAws_restJson1RestoreClusterFromSnapshotCommandError(output, context);
702
+ return de_RestoreClusterFromSnapshotCommandError(output, context);
703
703
  }
704
704
  const contents = map({
705
705
  $metadata: deserializeMetadata(output),
706
706
  });
707
707
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
708
708
  if (data.cluster != null) {
709
- contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
709
+ contents.cluster = de_Cluster(data.cluster, context);
710
710
  }
711
711
  return contents;
712
712
  };
713
- const deserializeAws_restJson1RestoreClusterFromSnapshotCommandError = async (output, context) => {
713
+ const de_RestoreClusterFromSnapshotCommandError = async (output, context) => {
714
714
  const parsedOutput = {
715
715
  ...output,
716
716
  body: await parseErrorBody(output.body, context),
@@ -719,25 +719,25 @@ const deserializeAws_restJson1RestoreClusterFromSnapshotCommandError = async (ou
719
719
  switch (errorCode) {
720
720
  case "AccessDeniedException":
721
721
  case "com.amazonaws.docdbelastic#AccessDeniedException":
722
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
722
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
723
723
  case "ConflictException":
724
724
  case "com.amazonaws.docdbelastic#ConflictException":
725
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
725
+ throw await de_ConflictExceptionRes(parsedOutput, context);
726
726
  case "InternalServerException":
727
727
  case "com.amazonaws.docdbelastic#InternalServerException":
728
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
728
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
729
729
  case "ResourceNotFoundException":
730
730
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
731
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
731
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
732
732
  case "ServiceQuotaExceededException":
733
733
  case "com.amazonaws.docdbelastic#ServiceQuotaExceededException":
734
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
734
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
735
735
  case "ThrottlingException":
736
736
  case "com.amazonaws.docdbelastic#ThrottlingException":
737
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
737
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
738
738
  case "ValidationException":
739
739
  case "com.amazonaws.docdbelastic#ValidationException":
740
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
740
+ throw await de_ValidationExceptionRes(parsedOutput, context);
741
741
  default:
742
742
  const parsedBody = parsedOutput.body;
743
743
  throwDefaultError({
@@ -748,9 +748,9 @@ const deserializeAws_restJson1RestoreClusterFromSnapshotCommandError = async (ou
748
748
  });
749
749
  }
750
750
  };
751
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
751
+ export const de_TagResourceCommand = async (output, context) => {
752
752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
753
- return deserializeAws_restJson1TagResourceCommandError(output, context);
753
+ return de_TagResourceCommandError(output, context);
754
754
  }
755
755
  const contents = map({
756
756
  $metadata: deserializeMetadata(output),
@@ -758,7 +758,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
758
758
  await collectBody(output.body, context);
759
759
  return contents;
760
760
  };
761
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
761
+ const de_TagResourceCommandError = async (output, context) => {
762
762
  const parsedOutput = {
763
763
  ...output,
764
764
  body: await parseErrorBody(output.body, context),
@@ -767,16 +767,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
767
767
  switch (errorCode) {
768
768
  case "InternalServerException":
769
769
  case "com.amazonaws.docdbelastic#InternalServerException":
770
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
770
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
771
771
  case "ResourceNotFoundException":
772
772
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
773
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
773
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
774
774
  case "ThrottlingException":
775
775
  case "com.amazonaws.docdbelastic#ThrottlingException":
776
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
776
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
777
777
  case "ValidationException":
778
778
  case "com.amazonaws.docdbelastic#ValidationException":
779
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
779
+ throw await de_ValidationExceptionRes(parsedOutput, context);
780
780
  default:
781
781
  const parsedBody = parsedOutput.body;
782
782
  throwDefaultError({
@@ -787,9 +787,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
787
787
  });
788
788
  }
789
789
  };
790
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
790
+ export const de_UntagResourceCommand = async (output, context) => {
791
791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
792
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
792
+ return de_UntagResourceCommandError(output, context);
793
793
  }
794
794
  const contents = map({
795
795
  $metadata: deserializeMetadata(output),
@@ -797,7 +797,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
797
797
  await collectBody(output.body, context);
798
798
  return contents;
799
799
  };
800
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
800
+ const de_UntagResourceCommandError = async (output, context) => {
801
801
  const parsedOutput = {
802
802
  ...output,
803
803
  body: await parseErrorBody(output.body, context),
@@ -806,16 +806,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
806
806
  switch (errorCode) {
807
807
  case "InternalServerException":
808
808
  case "com.amazonaws.docdbelastic#InternalServerException":
809
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
809
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
810
810
  case "ResourceNotFoundException":
811
811
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
812
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
812
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
813
813
  case "ThrottlingException":
814
814
  case "com.amazonaws.docdbelastic#ThrottlingException":
815
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
815
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
816
816
  case "ValidationException":
817
817
  case "com.amazonaws.docdbelastic#ValidationException":
818
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
818
+ throw await de_ValidationExceptionRes(parsedOutput, context);
819
819
  default:
820
820
  const parsedBody = parsedOutput.body;
821
821
  throwDefaultError({
@@ -826,20 +826,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
826
826
  });
827
827
  }
828
828
  };
829
- export const deserializeAws_restJson1UpdateClusterCommand = async (output, context) => {
829
+ export const de_UpdateClusterCommand = async (output, context) => {
830
830
  if (output.statusCode !== 200 && output.statusCode >= 300) {
831
- return deserializeAws_restJson1UpdateClusterCommandError(output, context);
831
+ return de_UpdateClusterCommandError(output, context);
832
832
  }
833
833
  const contents = map({
834
834
  $metadata: deserializeMetadata(output),
835
835
  });
836
836
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
837
837
  if (data.cluster != null) {
838
- contents.cluster = deserializeAws_restJson1Cluster(data.cluster, context);
838
+ contents.cluster = de_Cluster(data.cluster, context);
839
839
  }
840
840
  return contents;
841
841
  };
842
- const deserializeAws_restJson1UpdateClusterCommandError = async (output, context) => {
842
+ const de_UpdateClusterCommandError = async (output, context) => {
843
843
  const parsedOutput = {
844
844
  ...output,
845
845
  body: await parseErrorBody(output.body, context),
@@ -848,22 +848,22 @@ const deserializeAws_restJson1UpdateClusterCommandError = async (output, context
848
848
  switch (errorCode) {
849
849
  case "AccessDeniedException":
850
850
  case "com.amazonaws.docdbelastic#AccessDeniedException":
851
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
851
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
852
852
  case "ConflictException":
853
853
  case "com.amazonaws.docdbelastic#ConflictException":
854
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
854
+ throw await de_ConflictExceptionRes(parsedOutput, context);
855
855
  case "InternalServerException":
856
856
  case "com.amazonaws.docdbelastic#InternalServerException":
857
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
857
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
858
858
  case "ResourceNotFoundException":
859
859
  case "com.amazonaws.docdbelastic#ResourceNotFoundException":
860
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
860
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
861
861
  case "ThrottlingException":
862
862
  case "com.amazonaws.docdbelastic#ThrottlingException":
863
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
863
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
864
864
  case "ValidationException":
865
865
  case "com.amazonaws.docdbelastic#ValidationException":
866
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
866
+ throw await de_ValidationExceptionRes(parsedOutput, context);
867
867
  default:
868
868
  const parsedBody = parsedOutput.body;
869
869
  throwDefaultError({
@@ -875,7 +875,7 @@ const deserializeAws_restJson1UpdateClusterCommandError = async (output, context
875
875
  }
876
876
  };
877
877
  const map = __map;
878
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
878
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
879
879
  const contents = map({});
880
880
  const data = parsedOutput.body;
881
881
  if (data.message != null) {
@@ -887,7 +887,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
887
887
  });
888
888
  return __decorateServiceException(exception, parsedOutput.body);
889
889
  };
890
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
890
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
891
891
  const contents = map({});
892
892
  const data = parsedOutput.body;
893
893
  if (data.message != null) {
@@ -905,7 +905,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
905
905
  });
906
906
  return __decorateServiceException(exception, parsedOutput.body);
907
907
  };
908
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
908
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
909
909
  const contents = map({});
910
910
  const data = parsedOutput.body;
911
911
  if (data.message != null) {
@@ -917,7 +917,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
917
917
  });
918
918
  return __decorateServiceException(exception, parsedOutput.body);
919
919
  };
920
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
920
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
921
921
  const contents = map({});
922
922
  const data = parsedOutput.body;
923
923
  if (data.message != null) {
@@ -935,7 +935,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
935
935
  });
936
936
  return __decorateServiceException(exception, parsedOutput.body);
937
937
  };
938
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
938
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
939
939
  const contents = map({});
940
940
  const data = parsedOutput.body;
941
941
  if (data.message != null) {
@@ -947,7 +947,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
947
947
  });
948
948
  return __decorateServiceException(exception, parsedOutput.body);
949
949
  };
950
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
950
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
951
951
  const contents = map({
952
952
  retryAfterSeconds: [
953
953
  () => void 0 !== parsedOutput.headers["retry-after"],
@@ -964,11 +964,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
964
964
  });
965
965
  return __decorateServiceException(exception, parsedOutput.body);
966
966
  };
967
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
967
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
968
968
  const contents = map({});
969
969
  const data = parsedOutput.body;
970
970
  if (data.fieldList != null) {
971
- contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
971
+ contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
972
972
  }
973
973
  if (data.message != null) {
974
974
  contents.message = __expectString(data.message);
@@ -982,14 +982,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
982
982
  });
983
983
  return __decorateServiceException(exception, parsedOutput.body);
984
984
  };
985
- const serializeAws_restJson1StringList = (input, context) => {
985
+ const se_StringList = (input, context) => {
986
986
  return input
987
987
  .filter((e) => e != null)
988
988
  .map((entry) => {
989
989
  return entry;
990
990
  });
991
991
  };
992
- const serializeAws_restJson1TagMap = (input, context) => {
992
+ const se_TagMap = (input, context) => {
993
993
  return Object.entries(input).reduce((acc, [key, value]) => {
994
994
  if (value === null) {
995
995
  return acc;
@@ -998,7 +998,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
998
998
  return acc;
999
999
  }, {});
1000
1000
  };
1001
- const deserializeAws_restJson1Cluster = (output, context) => {
1001
+ const de_Cluster = (output, context) => {
1002
1002
  return {
1003
1003
  adminUserName: __expectString(output.adminUserName),
1004
1004
  authType: __expectString(output.authType),
@@ -1011,31 +1011,29 @@ const deserializeAws_restJson1Cluster = (output, context) => {
1011
1011
  shardCapacity: __expectInt32(output.shardCapacity),
1012
1012
  shardCount: __expectInt32(output.shardCount),
1013
1013
  status: __expectString(output.status),
1014
- subnetIds: output.subnetIds != null ? deserializeAws_restJson1StringList(output.subnetIds, context) : undefined,
1015
- vpcSecurityGroupIds: output.vpcSecurityGroupIds != null
1016
- ? deserializeAws_restJson1StringList(output.vpcSecurityGroupIds, context)
1017
- : undefined,
1014
+ subnetIds: output.subnetIds != null ? de_StringList(output.subnetIds, context) : undefined,
1015
+ vpcSecurityGroupIds: output.vpcSecurityGroupIds != null ? de_StringList(output.vpcSecurityGroupIds, context) : undefined,
1018
1016
  };
1019
1017
  };
1020
- const deserializeAws_restJson1ClusterInList = (output, context) => {
1018
+ const de_ClusterInList = (output, context) => {
1021
1019
  return {
1022
1020
  clusterArn: __expectString(output.clusterArn),
1023
1021
  clusterName: __expectString(output.clusterName),
1024
1022
  status: __expectString(output.status),
1025
1023
  };
1026
1024
  };
1027
- const deserializeAws_restJson1ClusterList = (output, context) => {
1025
+ const de_ClusterList = (output, context) => {
1028
1026
  const retVal = (output || [])
1029
1027
  .filter((e) => e != null)
1030
1028
  .map((entry) => {
1031
1029
  if (entry === null) {
1032
1030
  return null;
1033
1031
  }
1034
- return deserializeAws_restJson1ClusterInList(entry, context);
1032
+ return de_ClusterInList(entry, context);
1035
1033
  });
1036
1034
  return retVal;
1037
1035
  };
1038
- const deserializeAws_restJson1ClusterSnapshot = (output, context) => {
1036
+ const de_ClusterSnapshot = (output, context) => {
1039
1037
  return {
1040
1038
  adminUserName: __expectString(output.adminUserName),
1041
1039
  clusterArn: __expectString(output.clusterArn),
@@ -1045,13 +1043,11 @@ const deserializeAws_restJson1ClusterSnapshot = (output, context) => {
1045
1043
  snapshotCreationTime: __expectString(output.snapshotCreationTime),
1046
1044
  snapshotName: __expectString(output.snapshotName),
1047
1045
  status: __expectString(output.status),
1048
- subnetIds: output.subnetIds != null ? deserializeAws_restJson1StringList(output.subnetIds, context) : undefined,
1049
- vpcSecurityGroupIds: output.vpcSecurityGroupIds != null
1050
- ? deserializeAws_restJson1StringList(output.vpcSecurityGroupIds, context)
1051
- : undefined,
1046
+ subnetIds: output.subnetIds != null ? de_StringList(output.subnetIds, context) : undefined,
1047
+ vpcSecurityGroupIds: output.vpcSecurityGroupIds != null ? de_StringList(output.vpcSecurityGroupIds, context) : undefined,
1052
1048
  };
1053
1049
  };
1054
- const deserializeAws_restJson1ClusterSnapshotInList = (output, context) => {
1050
+ const de_ClusterSnapshotInList = (output, context) => {
1055
1051
  return {
1056
1052
  clusterArn: __expectString(output.clusterArn),
1057
1053
  snapshotArn: __expectString(output.snapshotArn),
@@ -1060,18 +1056,18 @@ const deserializeAws_restJson1ClusterSnapshotInList = (output, context) => {
1060
1056
  status: __expectString(output.status),
1061
1057
  };
1062
1058
  };
1063
- const deserializeAws_restJson1ClusterSnapshotList = (output, context) => {
1059
+ const de_ClusterSnapshotList = (output, context) => {
1064
1060
  const retVal = (output || [])
1065
1061
  .filter((e) => e != null)
1066
1062
  .map((entry) => {
1067
1063
  if (entry === null) {
1068
1064
  return null;
1069
1065
  }
1070
- return deserializeAws_restJson1ClusterSnapshotInList(entry, context);
1066
+ return de_ClusterSnapshotInList(entry, context);
1071
1067
  });
1072
1068
  return retVal;
1073
1069
  };
1074
- const deserializeAws_restJson1StringList = (output, context) => {
1070
+ const de_StringList = (output, context) => {
1075
1071
  const retVal = (output || [])
1076
1072
  .filter((e) => e != null)
1077
1073
  .map((entry) => {
@@ -1082,7 +1078,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
1082
1078
  });
1083
1079
  return retVal;
1084
1080
  };
1085
- const deserializeAws_restJson1TagMap = (output, context) => {
1081
+ const de_TagMap = (output, context) => {
1086
1082
  return Object.entries(output).reduce((acc, [key, value]) => {
1087
1083
  if (value === null) {
1088
1084
  return acc;
@@ -1091,20 +1087,20 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1091
1087
  return acc;
1092
1088
  }, {});
1093
1089
  };
1094
- const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
1090
+ const de_ValidationExceptionField = (output, context) => {
1095
1091
  return {
1096
1092
  message: __expectString(output.message),
1097
1093
  name: __expectString(output.name),
1098
1094
  };
1099
1095
  };
1100
- const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
1096
+ const de_ValidationExceptionFieldList = (output, context) => {
1101
1097
  const retVal = (output || [])
1102
1098
  .filter((e) => e != null)
1103
1099
  .map((entry) => {
1104
1100
  if (entry === null) {
1105
1101
  return null;
1106
1102
  }
1107
- return deserializeAws_restJson1ValidationExceptionField(entry, context);
1103
+ return de_ValidationExceptionField(entry, context);
1108
1104
  });
1109
1105
  return retVal;
1110
1106
  };