@aws-sdk/client-memorydb 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +225 -1303
- package/dist-es/protocols/Aws_json1_1.js +252 -1330
- package/package.json +3 -3
|
@@ -232,7 +232,7 @@ export const se_UpdateUserCommand = async (input, context) => {
|
|
|
232
232
|
};
|
|
233
233
|
export const de_BatchUpdateClusterCommand = async (output, context) => {
|
|
234
234
|
if (output.statusCode >= 300) {
|
|
235
|
-
return
|
|
235
|
+
return de_CommandError(output, context);
|
|
236
236
|
}
|
|
237
237
|
const data = await parseBody(output.body, context);
|
|
238
238
|
let contents = {};
|
|
@@ -243,31 +243,9 @@ export const de_BatchUpdateClusterCommand = async (output, context) => {
|
|
|
243
243
|
};
|
|
244
244
|
return response;
|
|
245
245
|
};
|
|
246
|
-
const de_BatchUpdateClusterCommandError = async (output, context) => {
|
|
247
|
-
const parsedOutput = {
|
|
248
|
-
...output,
|
|
249
|
-
body: await parseErrorBody(output.body, context),
|
|
250
|
-
};
|
|
251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
|
-
switch (errorCode) {
|
|
253
|
-
case "InvalidParameterValueException":
|
|
254
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
255
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
256
|
-
case "ServiceUpdateNotFoundFault":
|
|
257
|
-
case "com.amazonaws.memorydb#ServiceUpdateNotFoundFault":
|
|
258
|
-
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
259
|
-
default:
|
|
260
|
-
const parsedBody = parsedOutput.body;
|
|
261
|
-
return throwDefaultError({
|
|
262
|
-
output,
|
|
263
|
-
parsedBody,
|
|
264
|
-
errorCode,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
246
|
export const de_CopySnapshotCommand = async (output, context) => {
|
|
269
247
|
if (output.statusCode >= 300) {
|
|
270
|
-
return
|
|
248
|
+
return de_CommandError(output, context);
|
|
271
249
|
}
|
|
272
250
|
const data = await parseBody(output.body, context);
|
|
273
251
|
let contents = {};
|
|
@@ -278,49 +256,9 @@ export const de_CopySnapshotCommand = async (output, context) => {
|
|
|
278
256
|
};
|
|
279
257
|
return response;
|
|
280
258
|
};
|
|
281
|
-
const de_CopySnapshotCommandError = async (output, context) => {
|
|
282
|
-
const parsedOutput = {
|
|
283
|
-
...output,
|
|
284
|
-
body: await parseErrorBody(output.body, context),
|
|
285
|
-
};
|
|
286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
|
-
switch (errorCode) {
|
|
288
|
-
case "InvalidParameterCombinationException":
|
|
289
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
290
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
291
|
-
case "InvalidParameterValueException":
|
|
292
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
293
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
294
|
-
case "InvalidSnapshotStateFault":
|
|
295
|
-
case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
|
|
296
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
297
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
298
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
299
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
300
|
-
case "SnapshotAlreadyExistsFault":
|
|
301
|
-
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
302
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
303
|
-
case "SnapshotNotFoundFault":
|
|
304
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
305
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
306
|
-
case "SnapshotQuotaExceededFault":
|
|
307
|
-
case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
|
|
308
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
309
|
-
case "TagQuotaPerResourceExceeded":
|
|
310
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
311
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
312
|
-
default:
|
|
313
|
-
const parsedBody = parsedOutput.body;
|
|
314
|
-
return throwDefaultError({
|
|
315
|
-
output,
|
|
316
|
-
parsedBody,
|
|
317
|
-
errorCode,
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
259
|
export const de_CreateACLCommand = async (output, context) => {
|
|
322
260
|
if (output.statusCode >= 300) {
|
|
323
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
324
262
|
}
|
|
325
263
|
const data = await parseBody(output.body, context);
|
|
326
264
|
let contents = {};
|
|
@@ -331,46 +269,9 @@ export const de_CreateACLCommand = async (output, context) => {
|
|
|
331
269
|
};
|
|
332
270
|
return response;
|
|
333
271
|
};
|
|
334
|
-
const de_CreateACLCommandError = async (output, context) => {
|
|
335
|
-
const parsedOutput = {
|
|
336
|
-
...output,
|
|
337
|
-
body: await parseErrorBody(output.body, context),
|
|
338
|
-
};
|
|
339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
|
-
switch (errorCode) {
|
|
341
|
-
case "ACLAlreadyExistsFault":
|
|
342
|
-
case "com.amazonaws.memorydb#ACLAlreadyExistsFault":
|
|
343
|
-
throw await de_ACLAlreadyExistsFaultRes(parsedOutput, context);
|
|
344
|
-
case "ACLQuotaExceededFault":
|
|
345
|
-
case "com.amazonaws.memorydb#ACLQuotaExceededFault":
|
|
346
|
-
throw await de_ACLQuotaExceededFaultRes(parsedOutput, context);
|
|
347
|
-
case "DefaultUserRequired":
|
|
348
|
-
case "com.amazonaws.memorydb#DefaultUserRequired":
|
|
349
|
-
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
350
|
-
case "DuplicateUserNameFault":
|
|
351
|
-
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
352
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
353
|
-
case "InvalidParameterValueException":
|
|
354
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
355
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
356
|
-
case "TagQuotaPerResourceExceeded":
|
|
357
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
358
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
359
|
-
case "UserNotFoundFault":
|
|
360
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
361
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
362
|
-
default:
|
|
363
|
-
const parsedBody = parsedOutput.body;
|
|
364
|
-
return throwDefaultError({
|
|
365
|
-
output,
|
|
366
|
-
parsedBody,
|
|
367
|
-
errorCode,
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
272
|
export const de_CreateClusterCommand = async (output, context) => {
|
|
372
273
|
if (output.statusCode >= 300) {
|
|
373
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
374
275
|
}
|
|
375
276
|
const data = await parseBody(output.body, context);
|
|
376
277
|
let contents = {};
|
|
@@ -381,73 +282,9 @@ export const de_CreateClusterCommand = async (output, context) => {
|
|
|
381
282
|
};
|
|
382
283
|
return response;
|
|
383
284
|
};
|
|
384
|
-
const de_CreateClusterCommandError = async (output, context) => {
|
|
385
|
-
const parsedOutput = {
|
|
386
|
-
...output,
|
|
387
|
-
body: await parseErrorBody(output.body, context),
|
|
388
|
-
};
|
|
389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
-
switch (errorCode) {
|
|
391
|
-
case "ACLNotFoundFault":
|
|
392
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
393
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
394
|
-
case "ClusterAlreadyExistsFault":
|
|
395
|
-
case "com.amazonaws.memorydb#ClusterAlreadyExistsFault":
|
|
396
|
-
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
397
|
-
case "ClusterQuotaForCustomerExceededFault":
|
|
398
|
-
case "com.amazonaws.memorydb#ClusterQuotaForCustomerExceededFault":
|
|
399
|
-
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
400
|
-
case "InsufficientClusterCapacityFault":
|
|
401
|
-
case "com.amazonaws.memorydb#InsufficientClusterCapacityFault":
|
|
402
|
-
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
403
|
-
case "InvalidACLStateFault":
|
|
404
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
405
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
406
|
-
case "InvalidCredentialsException":
|
|
407
|
-
case "com.amazonaws.memorydb#InvalidCredentialsException":
|
|
408
|
-
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
409
|
-
case "InvalidParameterCombinationException":
|
|
410
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
411
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
412
|
-
case "InvalidParameterValueException":
|
|
413
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
414
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
415
|
-
case "InvalidVPCNetworkStateFault":
|
|
416
|
-
case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
|
|
417
|
-
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
418
|
-
case "NodeQuotaForClusterExceededFault":
|
|
419
|
-
case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
|
|
420
|
-
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
421
|
-
case "NodeQuotaForCustomerExceededFault":
|
|
422
|
-
case "com.amazonaws.memorydb#NodeQuotaForCustomerExceededFault":
|
|
423
|
-
throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
424
|
-
case "ParameterGroupNotFoundFault":
|
|
425
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
426
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
427
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
428
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
429
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
430
|
-
case "ShardsPerClusterQuotaExceededFault":
|
|
431
|
-
case "com.amazonaws.memorydb#ShardsPerClusterQuotaExceededFault":
|
|
432
|
-
throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
433
|
-
case "SubnetGroupNotFoundFault":
|
|
434
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
435
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
436
|
-
case "TagQuotaPerResourceExceeded":
|
|
437
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
438
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
439
|
-
default:
|
|
440
|
-
const parsedBody = parsedOutput.body;
|
|
441
|
-
return throwDefaultError({
|
|
442
|
-
output,
|
|
443
|
-
parsedBody,
|
|
444
|
-
errorCode,
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
285
|
export const de_CreateParameterGroupCommand = async (output, context) => {
|
|
449
286
|
if (output.statusCode >= 300) {
|
|
450
|
-
return
|
|
287
|
+
return de_CommandError(output, context);
|
|
451
288
|
}
|
|
452
289
|
const data = await parseBody(output.body, context);
|
|
453
290
|
let contents = {};
|
|
@@ -458,46 +295,9 @@ export const de_CreateParameterGroupCommand = async (output, context) => {
|
|
|
458
295
|
};
|
|
459
296
|
return response;
|
|
460
297
|
};
|
|
461
|
-
const de_CreateParameterGroupCommandError = async (output, context) => {
|
|
462
|
-
const parsedOutput = {
|
|
463
|
-
...output,
|
|
464
|
-
body: await parseErrorBody(output.body, context),
|
|
465
|
-
};
|
|
466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
-
switch (errorCode) {
|
|
468
|
-
case "InvalidParameterCombinationException":
|
|
469
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
470
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
471
|
-
case "InvalidParameterGroupStateFault":
|
|
472
|
-
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
473
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
474
|
-
case "InvalidParameterValueException":
|
|
475
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
476
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ParameterGroupAlreadyExistsFault":
|
|
478
|
-
case "com.amazonaws.memorydb#ParameterGroupAlreadyExistsFault":
|
|
479
|
-
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
480
|
-
case "ParameterGroupQuotaExceededFault":
|
|
481
|
-
case "com.amazonaws.memorydb#ParameterGroupQuotaExceededFault":
|
|
482
|
-
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
483
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
484
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
485
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
486
|
-
case "TagQuotaPerResourceExceeded":
|
|
487
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
488
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
489
|
-
default:
|
|
490
|
-
const parsedBody = parsedOutput.body;
|
|
491
|
-
return throwDefaultError({
|
|
492
|
-
output,
|
|
493
|
-
parsedBody,
|
|
494
|
-
errorCode,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
298
|
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
499
299
|
if (output.statusCode >= 300) {
|
|
500
|
-
return
|
|
300
|
+
return de_CommandError(output, context);
|
|
501
301
|
}
|
|
502
302
|
const data = await parseBody(output.body, context);
|
|
503
303
|
let contents = {};
|
|
@@ -508,49 +308,22 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
508
308
|
};
|
|
509
309
|
return response;
|
|
510
310
|
};
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
body: await parseErrorBody(output.body, context),
|
|
515
|
-
};
|
|
516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
517
|
-
switch (errorCode) {
|
|
518
|
-
case "ClusterNotFoundFault":
|
|
519
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
520
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
521
|
-
case "InvalidClusterStateFault":
|
|
522
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
523
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
524
|
-
case "InvalidParameterCombinationException":
|
|
525
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
526
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
527
|
-
case "InvalidParameterValueException":
|
|
528
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
529
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
531
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
532
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
533
|
-
case "SnapshotAlreadyExistsFault":
|
|
534
|
-
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
535
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
536
|
-
case "SnapshotQuotaExceededFault":
|
|
537
|
-
case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
|
|
538
|
-
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
539
|
-
case "TagQuotaPerResourceExceeded":
|
|
540
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
541
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
542
|
-
default:
|
|
543
|
-
const parsedBody = parsedOutput.body;
|
|
544
|
-
return throwDefaultError({
|
|
545
|
-
output,
|
|
546
|
-
parsedBody,
|
|
547
|
-
errorCode,
|
|
548
|
-
});
|
|
311
|
+
export const de_CreateSubnetGroupCommand = async (output, context) => {
|
|
312
|
+
if (output.statusCode >= 300) {
|
|
313
|
+
return de_CommandError(output, context);
|
|
549
314
|
}
|
|
315
|
+
const data = await parseBody(output.body, context);
|
|
316
|
+
let contents = {};
|
|
317
|
+
contents = _json(data);
|
|
318
|
+
const response = {
|
|
319
|
+
$metadata: deserializeMetadata(output),
|
|
320
|
+
...contents,
|
|
321
|
+
};
|
|
322
|
+
return response;
|
|
550
323
|
};
|
|
551
|
-
export const
|
|
324
|
+
export const de_CreateUserCommand = async (output, context) => {
|
|
552
325
|
if (output.statusCode >= 300) {
|
|
553
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
554
327
|
}
|
|
555
328
|
const data = await parseBody(output.body, context);
|
|
556
329
|
let contents = {};
|
|
@@ -561,93 +334,35 @@ export const de_CreateSubnetGroupCommand = async (output, context) => {
|
|
|
561
334
|
};
|
|
562
335
|
return response;
|
|
563
336
|
};
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
337
|
+
export const de_DeleteACLCommand = async (output, context) => {
|
|
338
|
+
if (output.statusCode >= 300) {
|
|
339
|
+
return de_CommandError(output, context);
|
|
340
|
+
}
|
|
341
|
+
const data = await parseBody(output.body, context);
|
|
342
|
+
let contents = {};
|
|
343
|
+
contents = _json(data);
|
|
344
|
+
const response = {
|
|
345
|
+
$metadata: deserializeMetadata(output),
|
|
346
|
+
...contents,
|
|
568
347
|
};
|
|
569
|
-
|
|
570
|
-
switch (errorCode) {
|
|
571
|
-
case "InvalidSubnet":
|
|
572
|
-
case "com.amazonaws.memorydb#InvalidSubnet":
|
|
573
|
-
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
574
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
575
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
576
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
577
|
-
case "SubnetGroupAlreadyExistsFault":
|
|
578
|
-
case "com.amazonaws.memorydb#SubnetGroupAlreadyExistsFault":
|
|
579
|
-
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
580
|
-
case "SubnetGroupQuotaExceededFault":
|
|
581
|
-
case "com.amazonaws.memorydb#SubnetGroupQuotaExceededFault":
|
|
582
|
-
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
583
|
-
case "SubnetNotAllowedFault":
|
|
584
|
-
case "com.amazonaws.memorydb#SubnetNotAllowedFault":
|
|
585
|
-
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
586
|
-
case "SubnetQuotaExceededFault":
|
|
587
|
-
case "com.amazonaws.memorydb#SubnetQuotaExceededFault":
|
|
588
|
-
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
589
|
-
case "TagQuotaPerResourceExceeded":
|
|
590
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
591
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode,
|
|
598
|
-
});
|
|
599
|
-
}
|
|
348
|
+
return response;
|
|
600
349
|
};
|
|
601
|
-
export const
|
|
350
|
+
export const de_DeleteClusterCommand = async (output, context) => {
|
|
602
351
|
if (output.statusCode >= 300) {
|
|
603
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
604
353
|
}
|
|
605
354
|
const data = await parseBody(output.body, context);
|
|
606
355
|
let contents = {};
|
|
607
|
-
contents =
|
|
356
|
+
contents = de_DeleteClusterResponse(data, context);
|
|
608
357
|
const response = {
|
|
609
358
|
$metadata: deserializeMetadata(output),
|
|
610
359
|
...contents,
|
|
611
360
|
};
|
|
612
361
|
return response;
|
|
613
362
|
};
|
|
614
|
-
const
|
|
615
|
-
const parsedOutput = {
|
|
616
|
-
...output,
|
|
617
|
-
body: await parseErrorBody(output.body, context),
|
|
618
|
-
};
|
|
619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
-
switch (errorCode) {
|
|
621
|
-
case "DuplicateUserNameFault":
|
|
622
|
-
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
623
|
-
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
624
|
-
case "InvalidParameterCombinationException":
|
|
625
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
626
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
627
|
-
case "InvalidParameterValueException":
|
|
628
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
629
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
630
|
-
case "TagQuotaPerResourceExceeded":
|
|
631
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
632
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
633
|
-
case "UserAlreadyExistsFault":
|
|
634
|
-
case "com.amazonaws.memorydb#UserAlreadyExistsFault":
|
|
635
|
-
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
636
|
-
case "UserQuotaExceededFault":
|
|
637
|
-
case "com.amazonaws.memorydb#UserQuotaExceededFault":
|
|
638
|
-
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
639
|
-
default:
|
|
640
|
-
const parsedBody = parsedOutput.body;
|
|
641
|
-
return throwDefaultError({
|
|
642
|
-
output,
|
|
643
|
-
parsedBody,
|
|
644
|
-
errorCode,
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
export const de_DeleteACLCommand = async (output, context) => {
|
|
363
|
+
export const de_DeleteParameterGroupCommand = async (output, context) => {
|
|
649
364
|
if (output.statusCode >= 300) {
|
|
650
|
-
return
|
|
365
|
+
return de_CommandError(output, context);
|
|
651
366
|
}
|
|
652
367
|
const data = await parseBody(output.body, context);
|
|
653
368
|
let contents = {};
|
|
@@ -658,81 +373,22 @@ export const de_DeleteACLCommand = async (output, context) => {
|
|
|
658
373
|
};
|
|
659
374
|
return response;
|
|
660
375
|
};
|
|
661
|
-
const
|
|
662
|
-
const parsedOutput = {
|
|
663
|
-
...output,
|
|
664
|
-
body: await parseErrorBody(output.body, context),
|
|
665
|
-
};
|
|
666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
667
|
-
switch (errorCode) {
|
|
668
|
-
case "ACLNotFoundFault":
|
|
669
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
670
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
671
|
-
case "InvalidACLStateFault":
|
|
672
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
673
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
674
|
-
case "InvalidParameterValueException":
|
|
675
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
676
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
677
|
-
default:
|
|
678
|
-
const parsedBody = parsedOutput.body;
|
|
679
|
-
return throwDefaultError({
|
|
680
|
-
output,
|
|
681
|
-
parsedBody,
|
|
682
|
-
errorCode,
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
export const de_DeleteClusterCommand = async (output, context) => {
|
|
376
|
+
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
687
377
|
if (output.statusCode >= 300) {
|
|
688
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
689
379
|
}
|
|
690
380
|
const data = await parseBody(output.body, context);
|
|
691
381
|
let contents = {};
|
|
692
|
-
contents =
|
|
382
|
+
contents = de_DeleteSnapshotResponse(data, context);
|
|
693
383
|
const response = {
|
|
694
384
|
$metadata: deserializeMetadata(output),
|
|
695
385
|
...contents,
|
|
696
386
|
};
|
|
697
387
|
return response;
|
|
698
388
|
};
|
|
699
|
-
const
|
|
700
|
-
const parsedOutput = {
|
|
701
|
-
...output,
|
|
702
|
-
body: await parseErrorBody(output.body, context),
|
|
703
|
-
};
|
|
704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
|
-
switch (errorCode) {
|
|
706
|
-
case "ClusterNotFoundFault":
|
|
707
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
708
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
709
|
-
case "InvalidClusterStateFault":
|
|
710
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
711
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
712
|
-
case "InvalidParameterCombinationException":
|
|
713
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
714
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
715
|
-
case "InvalidParameterValueException":
|
|
716
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
717
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
719
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
720
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
721
|
-
case "SnapshotAlreadyExistsFault":
|
|
722
|
-
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
723
|
-
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody,
|
|
729
|
-
errorCode,
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
export const de_DeleteParameterGroupCommand = async (output, context) => {
|
|
389
|
+
export const de_DeleteSubnetGroupCommand = async (output, context) => {
|
|
734
390
|
if (output.statusCode >= 300) {
|
|
735
|
-
return
|
|
391
|
+
return de_CommandError(output, context);
|
|
736
392
|
}
|
|
737
393
|
const data = await parseBody(output.body, context);
|
|
738
394
|
let contents = {};
|
|
@@ -743,84 +399,22 @@ export const de_DeleteParameterGroupCommand = async (output, context) => {
|
|
|
743
399
|
};
|
|
744
400
|
return response;
|
|
745
401
|
};
|
|
746
|
-
const
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "InvalidParameterCombinationException":
|
|
754
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
755
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
756
|
-
case "InvalidParameterGroupStateFault":
|
|
757
|
-
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
758
|
-
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
759
|
-
case "InvalidParameterValueException":
|
|
760
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
761
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ParameterGroupNotFoundFault":
|
|
763
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
764
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
765
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
766
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
767
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
402
|
+
export const de_DeleteUserCommand = async (output, context) => {
|
|
778
403
|
if (output.statusCode >= 300) {
|
|
779
|
-
return
|
|
404
|
+
return de_CommandError(output, context);
|
|
780
405
|
}
|
|
781
406
|
const data = await parseBody(output.body, context);
|
|
782
407
|
let contents = {};
|
|
783
|
-
contents =
|
|
408
|
+
contents = _json(data);
|
|
784
409
|
const response = {
|
|
785
410
|
$metadata: deserializeMetadata(output),
|
|
786
411
|
...contents,
|
|
787
412
|
};
|
|
788
413
|
return response;
|
|
789
414
|
};
|
|
790
|
-
const
|
|
791
|
-
const parsedOutput = {
|
|
792
|
-
...output,
|
|
793
|
-
body: await parseErrorBody(output.body, context),
|
|
794
|
-
};
|
|
795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
|
-
switch (errorCode) {
|
|
797
|
-
case "InvalidParameterCombinationException":
|
|
798
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
799
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
800
|
-
case "InvalidParameterValueException":
|
|
801
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
802
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
803
|
-
case "InvalidSnapshotStateFault":
|
|
804
|
-
case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
|
|
805
|
-
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
806
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
807
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
808
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
809
|
-
case "SnapshotNotFoundFault":
|
|
810
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
811
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode,
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
export const de_DeleteSubnetGroupCommand = async (output, context) => {
|
|
415
|
+
export const de_DescribeACLsCommand = async (output, context) => {
|
|
822
416
|
if (output.statusCode >= 300) {
|
|
823
|
-
return
|
|
417
|
+
return de_CommandError(output, context);
|
|
824
418
|
}
|
|
825
419
|
const data = await parseBody(output.body, context);
|
|
826
420
|
let contents = {};
|
|
@@ -831,72 +425,22 @@ export const de_DeleteSubnetGroupCommand = async (output, context) => {
|
|
|
831
425
|
};
|
|
832
426
|
return response;
|
|
833
427
|
};
|
|
834
|
-
const
|
|
835
|
-
const parsedOutput = {
|
|
836
|
-
...output,
|
|
837
|
-
body: await parseErrorBody(output.body, context),
|
|
838
|
-
};
|
|
839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
-
switch (errorCode) {
|
|
841
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
842
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
843
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
844
|
-
case "SubnetGroupInUseFault":
|
|
845
|
-
case "com.amazonaws.memorydb#SubnetGroupInUseFault":
|
|
846
|
-
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
847
|
-
case "SubnetGroupNotFoundFault":
|
|
848
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
849
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
850
|
-
default:
|
|
851
|
-
const parsedBody = parsedOutput.body;
|
|
852
|
-
return throwDefaultError({
|
|
853
|
-
output,
|
|
854
|
-
parsedBody,
|
|
855
|
-
errorCode,
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
export const de_DeleteUserCommand = async (output, context) => {
|
|
428
|
+
export const de_DescribeClustersCommand = async (output, context) => {
|
|
860
429
|
if (output.statusCode >= 300) {
|
|
861
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
862
431
|
}
|
|
863
432
|
const data = await parseBody(output.body, context);
|
|
864
433
|
let contents = {};
|
|
865
|
-
contents =
|
|
434
|
+
contents = de_DescribeClustersResponse(data, context);
|
|
866
435
|
const response = {
|
|
867
436
|
$metadata: deserializeMetadata(output),
|
|
868
437
|
...contents,
|
|
869
438
|
};
|
|
870
439
|
return response;
|
|
871
440
|
};
|
|
872
|
-
const
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "InvalidParameterValueException":
|
|
880
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
881
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
882
|
-
case "InvalidUserStateFault":
|
|
883
|
-
case "com.amazonaws.memorydb#InvalidUserStateFault":
|
|
884
|
-
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
885
|
-
case "UserNotFoundFault":
|
|
886
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
887
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
888
|
-
default:
|
|
889
|
-
const parsedBody = parsedOutput.body;
|
|
890
|
-
return throwDefaultError({
|
|
891
|
-
output,
|
|
892
|
-
parsedBody,
|
|
893
|
-
errorCode,
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
export const de_DescribeACLsCommand = async (output, context) => {
|
|
441
|
+
export const de_DescribeEngineVersionsCommand = async (output, context) => {
|
|
898
442
|
if (output.statusCode >= 300) {
|
|
899
|
-
return
|
|
443
|
+
return de_CommandError(output, context);
|
|
900
444
|
}
|
|
901
445
|
const data = await parseBody(output.body, context);
|
|
902
446
|
let contents = {};
|
|
@@ -907,72 +451,22 @@ export const de_DescribeACLsCommand = async (output, context) => {
|
|
|
907
451
|
};
|
|
908
452
|
return response;
|
|
909
453
|
};
|
|
910
|
-
const
|
|
911
|
-
const parsedOutput = {
|
|
912
|
-
...output,
|
|
913
|
-
body: await parseErrorBody(output.body, context),
|
|
914
|
-
};
|
|
915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
-
switch (errorCode) {
|
|
917
|
-
case "ACLNotFoundFault":
|
|
918
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
919
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
920
|
-
case "InvalidParameterCombinationException":
|
|
921
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
922
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
923
|
-
default:
|
|
924
|
-
const parsedBody = parsedOutput.body;
|
|
925
|
-
return throwDefaultError({
|
|
926
|
-
output,
|
|
927
|
-
parsedBody,
|
|
928
|
-
errorCode,
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
};
|
|
932
|
-
export const de_DescribeClustersCommand = async (output, context) => {
|
|
454
|
+
export const de_DescribeEventsCommand = async (output, context) => {
|
|
933
455
|
if (output.statusCode >= 300) {
|
|
934
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
935
457
|
}
|
|
936
458
|
const data = await parseBody(output.body, context);
|
|
937
459
|
let contents = {};
|
|
938
|
-
contents =
|
|
460
|
+
contents = de_DescribeEventsResponse(data, context);
|
|
939
461
|
const response = {
|
|
940
462
|
$metadata: deserializeMetadata(output),
|
|
941
463
|
...contents,
|
|
942
464
|
};
|
|
943
465
|
return response;
|
|
944
466
|
};
|
|
945
|
-
const
|
|
946
|
-
const parsedOutput = {
|
|
947
|
-
...output,
|
|
948
|
-
body: await parseErrorBody(output.body, context),
|
|
949
|
-
};
|
|
950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
-
switch (errorCode) {
|
|
952
|
-
case "ClusterNotFoundFault":
|
|
953
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
954
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
955
|
-
case "InvalidParameterCombinationException":
|
|
956
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
957
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
958
|
-
case "InvalidParameterValueException":
|
|
959
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
960
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
962
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
963
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
964
|
-
default:
|
|
965
|
-
const parsedBody = parsedOutput.body;
|
|
966
|
-
return throwDefaultError({
|
|
967
|
-
output,
|
|
968
|
-
parsedBody,
|
|
969
|
-
errorCode,
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
|
-
export const de_DescribeEngineVersionsCommand = async (output, context) => {
|
|
467
|
+
export const de_DescribeParameterGroupsCommand = async (output, context) => {
|
|
974
468
|
if (output.statusCode >= 300) {
|
|
975
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
976
470
|
}
|
|
977
471
|
const data = await parseBody(output.body, context);
|
|
978
472
|
let contents = {};
|
|
@@ -983,113 +477,74 @@ export const de_DescribeEngineVersionsCommand = async (output, context) => {
|
|
|
983
477
|
};
|
|
984
478
|
return response;
|
|
985
479
|
};
|
|
986
|
-
const
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
body: await parseErrorBody(output.body, context),
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "InvalidParameterCombinationException":
|
|
994
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
995
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
996
|
-
case "InvalidParameterValueException":
|
|
997
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
998
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1000
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1001
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1002
|
-
default:
|
|
1003
|
-
const parsedBody = parsedOutput.body;
|
|
1004
|
-
return throwDefaultError({
|
|
1005
|
-
output,
|
|
1006
|
-
parsedBody,
|
|
1007
|
-
errorCode,
|
|
1008
|
-
});
|
|
480
|
+
export const de_DescribeParametersCommand = async (output, context) => {
|
|
481
|
+
if (output.statusCode >= 300) {
|
|
482
|
+
return de_CommandError(output, context);
|
|
1009
483
|
}
|
|
484
|
+
const data = await parseBody(output.body, context);
|
|
485
|
+
let contents = {};
|
|
486
|
+
contents = _json(data);
|
|
487
|
+
const response = {
|
|
488
|
+
$metadata: deserializeMetadata(output),
|
|
489
|
+
...contents,
|
|
490
|
+
};
|
|
491
|
+
return response;
|
|
1010
492
|
};
|
|
1011
|
-
export const
|
|
493
|
+
export const de_DescribeReservedNodesCommand = async (output, context) => {
|
|
1012
494
|
if (output.statusCode >= 300) {
|
|
1013
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
1014
496
|
}
|
|
1015
497
|
const data = await parseBody(output.body, context);
|
|
1016
498
|
let contents = {};
|
|
1017
|
-
contents =
|
|
499
|
+
contents = de_DescribeReservedNodesResponse(data, context);
|
|
1018
500
|
const response = {
|
|
1019
501
|
$metadata: deserializeMetadata(output),
|
|
1020
502
|
...contents,
|
|
1021
503
|
};
|
|
1022
504
|
return response;
|
|
1023
505
|
};
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
body: await parseErrorBody(output.body, context),
|
|
1028
|
-
};
|
|
1029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
|
-
switch (errorCode) {
|
|
1031
|
-
case "InvalidParameterCombinationException":
|
|
1032
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1033
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "InvalidParameterValueException":
|
|
1035
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1036
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1038
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1039
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1040
|
-
default:
|
|
1041
|
-
const parsedBody = parsedOutput.body;
|
|
1042
|
-
return throwDefaultError({
|
|
1043
|
-
output,
|
|
1044
|
-
parsedBody,
|
|
1045
|
-
errorCode,
|
|
1046
|
-
});
|
|
506
|
+
export const de_DescribeReservedNodesOfferingsCommand = async (output, context) => {
|
|
507
|
+
if (output.statusCode >= 300) {
|
|
508
|
+
return de_CommandError(output, context);
|
|
1047
509
|
}
|
|
510
|
+
const data = await parseBody(output.body, context);
|
|
511
|
+
let contents = {};
|
|
512
|
+
contents = de_DescribeReservedNodesOfferingsResponse(data, context);
|
|
513
|
+
const response = {
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
515
|
+
...contents,
|
|
516
|
+
};
|
|
517
|
+
return response;
|
|
1048
518
|
};
|
|
1049
|
-
export const
|
|
519
|
+
export const de_DescribeServiceUpdatesCommand = async (output, context) => {
|
|
1050
520
|
if (output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
1052
522
|
}
|
|
1053
523
|
const data = await parseBody(output.body, context);
|
|
1054
524
|
let contents = {};
|
|
1055
|
-
contents =
|
|
525
|
+
contents = de_DescribeServiceUpdatesResponse(data, context);
|
|
1056
526
|
const response = {
|
|
1057
527
|
$metadata: deserializeMetadata(output),
|
|
1058
528
|
...contents,
|
|
1059
529
|
};
|
|
1060
530
|
return response;
|
|
1061
531
|
};
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "InvalidParameterCombinationException":
|
|
1070
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1071
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "InvalidParameterValueException":
|
|
1073
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1074
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ParameterGroupNotFoundFault":
|
|
1076
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1077
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1078
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1079
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1080
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1081
|
-
default:
|
|
1082
|
-
const parsedBody = parsedOutput.body;
|
|
1083
|
-
return throwDefaultError({
|
|
1084
|
-
output,
|
|
1085
|
-
parsedBody,
|
|
1086
|
-
errorCode,
|
|
1087
|
-
});
|
|
532
|
+
export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
533
|
+
if (output.statusCode >= 300) {
|
|
534
|
+
return de_CommandError(output, context);
|
|
1088
535
|
}
|
|
536
|
+
const data = await parseBody(output.body, context);
|
|
537
|
+
let contents = {};
|
|
538
|
+
contents = de_DescribeSnapshotsResponse(data, context);
|
|
539
|
+
const response = {
|
|
540
|
+
$metadata: deserializeMetadata(output),
|
|
541
|
+
...contents,
|
|
542
|
+
};
|
|
543
|
+
return response;
|
|
1089
544
|
};
|
|
1090
|
-
export const
|
|
545
|
+
export const de_DescribeSubnetGroupsCommand = async (output, context) => {
|
|
1091
546
|
if (output.statusCode >= 300) {
|
|
1092
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
1093
548
|
}
|
|
1094
549
|
const data = await parseBody(output.body, context);
|
|
1095
550
|
let contents = {};
|
|
@@ -1100,195 +555,74 @@ export const de_DescribeParametersCommand = async (output, context) => {
|
|
|
1100
555
|
};
|
|
1101
556
|
return response;
|
|
1102
557
|
};
|
|
1103
|
-
const
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "InvalidParameterCombinationException":
|
|
1111
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1112
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "InvalidParameterValueException":
|
|
1114
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1115
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ParameterGroupNotFoundFault":
|
|
1117
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1118
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1119
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1120
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1121
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody,
|
|
1127
|
-
errorCode,
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
|
-
export const de_DescribeReservedNodesCommand = async (output, context) => {
|
|
558
|
+
export const de_DescribeUsersCommand = async (output, context) => {
|
|
1132
559
|
if (output.statusCode >= 300) {
|
|
1133
|
-
return
|
|
560
|
+
return de_CommandError(output, context);
|
|
1134
561
|
}
|
|
1135
562
|
const data = await parseBody(output.body, context);
|
|
1136
563
|
let contents = {};
|
|
1137
|
-
contents =
|
|
564
|
+
contents = _json(data);
|
|
1138
565
|
const response = {
|
|
1139
566
|
$metadata: deserializeMetadata(output),
|
|
1140
567
|
...contents,
|
|
1141
568
|
};
|
|
1142
569
|
return response;
|
|
1143
570
|
};
|
|
1144
|
-
const
|
|
1145
|
-
const parsedOutput = {
|
|
1146
|
-
...output,
|
|
1147
|
-
body: await parseErrorBody(output.body, context),
|
|
1148
|
-
};
|
|
1149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
-
switch (errorCode) {
|
|
1151
|
-
case "InvalidParameterCombinationException":
|
|
1152
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1153
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "InvalidParameterValueException":
|
|
1155
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1156
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ReservedNodeNotFoundFault":
|
|
1158
|
-
case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
|
|
1159
|
-
throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
|
|
1160
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1161
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1162
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1163
|
-
default:
|
|
1164
|
-
const parsedBody = parsedOutput.body;
|
|
1165
|
-
return throwDefaultError({
|
|
1166
|
-
output,
|
|
1167
|
-
parsedBody,
|
|
1168
|
-
errorCode,
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
export const de_DescribeReservedNodesOfferingsCommand = async (output, context) => {
|
|
571
|
+
export const de_FailoverShardCommand = async (output, context) => {
|
|
1173
572
|
if (output.statusCode >= 300) {
|
|
1174
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
1175
574
|
}
|
|
1176
575
|
const data = await parseBody(output.body, context);
|
|
1177
576
|
let contents = {};
|
|
1178
|
-
contents =
|
|
577
|
+
contents = de_FailoverShardResponse(data, context);
|
|
1179
578
|
const response = {
|
|
1180
579
|
$metadata: deserializeMetadata(output),
|
|
1181
580
|
...contents,
|
|
1182
581
|
};
|
|
1183
582
|
return response;
|
|
1184
583
|
};
|
|
1185
|
-
const
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context),
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "InvalidParameterCombinationException":
|
|
1193
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1194
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InvalidParameterValueException":
|
|
1196
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1197
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ReservedNodesOfferingNotFoundFault":
|
|
1199
|
-
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
1200
|
-
throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
1201
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1202
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1203
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1204
|
-
default:
|
|
1205
|
-
const parsedBody = parsedOutput.body;
|
|
1206
|
-
return throwDefaultError({
|
|
1207
|
-
output,
|
|
1208
|
-
parsedBody,
|
|
1209
|
-
errorCode,
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
export const de_DescribeServiceUpdatesCommand = async (output, context) => {
|
|
584
|
+
export const de_ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
|
|
1214
585
|
if (output.statusCode >= 300) {
|
|
1215
|
-
return
|
|
586
|
+
return de_CommandError(output, context);
|
|
1216
587
|
}
|
|
1217
588
|
const data = await parseBody(output.body, context);
|
|
1218
589
|
let contents = {};
|
|
1219
|
-
contents =
|
|
590
|
+
contents = _json(data);
|
|
1220
591
|
const response = {
|
|
1221
592
|
$metadata: deserializeMetadata(output),
|
|
1222
593
|
...contents,
|
|
1223
594
|
};
|
|
1224
595
|
return response;
|
|
1225
596
|
};
|
|
1226
|
-
const
|
|
1227
|
-
const parsedOutput = {
|
|
1228
|
-
...output,
|
|
1229
|
-
body: await parseErrorBody(output.body, context),
|
|
1230
|
-
};
|
|
1231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
-
switch (errorCode) {
|
|
1233
|
-
case "InvalidParameterCombinationException":
|
|
1234
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1235
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "InvalidParameterValueException":
|
|
1237
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1238
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1239
|
-
default:
|
|
1240
|
-
const parsedBody = parsedOutput.body;
|
|
1241
|
-
return throwDefaultError({
|
|
1242
|
-
output,
|
|
1243
|
-
parsedBody,
|
|
1244
|
-
errorCode,
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
|
-
export const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
597
|
+
export const de_ListTagsCommand = async (output, context) => {
|
|
1249
598
|
if (output.statusCode >= 300) {
|
|
1250
|
-
return
|
|
599
|
+
return de_CommandError(output, context);
|
|
1251
600
|
}
|
|
1252
601
|
const data = await parseBody(output.body, context);
|
|
1253
602
|
let contents = {};
|
|
1254
|
-
contents =
|
|
603
|
+
contents = _json(data);
|
|
1255
604
|
const response = {
|
|
1256
605
|
$metadata: deserializeMetadata(output),
|
|
1257
606
|
...contents,
|
|
1258
607
|
};
|
|
1259
608
|
return response;
|
|
1260
609
|
};
|
|
1261
|
-
const
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
body: await parseErrorBody(output.body, context),
|
|
1265
|
-
};
|
|
1266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
|
-
switch (errorCode) {
|
|
1268
|
-
case "InvalidParameterCombinationException":
|
|
1269
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1270
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "InvalidParameterValueException":
|
|
1272
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1273
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1275
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1276
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1277
|
-
case "SnapshotNotFoundFault":
|
|
1278
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1279
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1280
|
-
default:
|
|
1281
|
-
const parsedBody = parsedOutput.body;
|
|
1282
|
-
return throwDefaultError({
|
|
1283
|
-
output,
|
|
1284
|
-
parsedBody,
|
|
1285
|
-
errorCode,
|
|
1286
|
-
});
|
|
610
|
+
export const de_PurchaseReservedNodesOfferingCommand = async (output, context) => {
|
|
611
|
+
if (output.statusCode >= 300) {
|
|
612
|
+
return de_CommandError(output, context);
|
|
1287
613
|
}
|
|
614
|
+
const data = await parseBody(output.body, context);
|
|
615
|
+
let contents = {};
|
|
616
|
+
contents = de_PurchaseReservedNodesOfferingResponse(data, context);
|
|
617
|
+
const response = {
|
|
618
|
+
$metadata: deserializeMetadata(output),
|
|
619
|
+
...contents,
|
|
620
|
+
};
|
|
621
|
+
return response;
|
|
1288
622
|
};
|
|
1289
|
-
export const
|
|
623
|
+
export const de_ResetParameterGroupCommand = async (output, context) => {
|
|
1290
624
|
if (output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
1292
626
|
}
|
|
1293
627
|
const data = await parseBody(output.body, context);
|
|
1294
628
|
let contents = {};
|
|
@@ -1299,31 +633,9 @@ export const de_DescribeSubnetGroupsCommand = async (output, context) => {
|
|
|
1299
633
|
};
|
|
1300
634
|
return response;
|
|
1301
635
|
};
|
|
1302
|
-
const
|
|
1303
|
-
const parsedOutput = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseErrorBody(output.body, context),
|
|
1306
|
-
};
|
|
1307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1310
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1311
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1312
|
-
case "SubnetGroupNotFoundFault":
|
|
1313
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1314
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode,
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
export const de_DescribeUsersCommand = async (output, context) => {
|
|
636
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1325
637
|
if (output.statusCode >= 300) {
|
|
1326
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
1327
639
|
}
|
|
1328
640
|
const data = await parseBody(output.body, context);
|
|
1329
641
|
let contents = {};
|
|
@@ -1334,84 +646,22 @@ export const de_DescribeUsersCommand = async (output, context) => {
|
|
|
1334
646
|
};
|
|
1335
647
|
return response;
|
|
1336
648
|
};
|
|
1337
|
-
const
|
|
1338
|
-
const parsedOutput = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await parseErrorBody(output.body, context),
|
|
1341
|
-
};
|
|
1342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
-
switch (errorCode) {
|
|
1344
|
-
case "InvalidParameterCombinationException":
|
|
1345
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1346
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "UserNotFoundFault":
|
|
1348
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1349
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1350
|
-
default:
|
|
1351
|
-
const parsedBody = parsedOutput.body;
|
|
1352
|
-
return throwDefaultError({
|
|
1353
|
-
output,
|
|
1354
|
-
parsedBody,
|
|
1355
|
-
errorCode,
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
};
|
|
1359
|
-
export const de_FailoverShardCommand = async (output, context) => {
|
|
649
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1360
650
|
if (output.statusCode >= 300) {
|
|
1361
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
1362
652
|
}
|
|
1363
653
|
const data = await parseBody(output.body, context);
|
|
1364
654
|
let contents = {};
|
|
1365
|
-
contents =
|
|
655
|
+
contents = _json(data);
|
|
1366
656
|
const response = {
|
|
1367
657
|
$metadata: deserializeMetadata(output),
|
|
1368
658
|
...contents,
|
|
1369
659
|
};
|
|
1370
660
|
return response;
|
|
1371
661
|
};
|
|
1372
|
-
const
|
|
1373
|
-
const parsedOutput = {
|
|
1374
|
-
...output,
|
|
1375
|
-
body: await parseErrorBody(output.body, context),
|
|
1376
|
-
};
|
|
1377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
-
switch (errorCode) {
|
|
1379
|
-
case "APICallRateForCustomerExceededFault":
|
|
1380
|
-
case "com.amazonaws.memorydb#APICallRateForCustomerExceededFault":
|
|
1381
|
-
throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
|
|
1382
|
-
case "ClusterNotFoundFault":
|
|
1383
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1384
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1385
|
-
case "InvalidClusterStateFault":
|
|
1386
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1387
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1388
|
-
case "InvalidKMSKeyFault":
|
|
1389
|
-
case "com.amazonaws.memorydb#InvalidKMSKeyFault":
|
|
1390
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
1391
|
-
case "InvalidParameterCombinationException":
|
|
1392
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1393
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "InvalidParameterValueException":
|
|
1395
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1396
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "ShardNotFoundFault":
|
|
1398
|
-
case "com.amazonaws.memorydb#ShardNotFoundFault":
|
|
1399
|
-
throw await de_ShardNotFoundFaultRes(parsedOutput, context);
|
|
1400
|
-
case "TestFailoverNotAvailableFault":
|
|
1401
|
-
case "com.amazonaws.memorydb#TestFailoverNotAvailableFault":
|
|
1402
|
-
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
1403
|
-
default:
|
|
1404
|
-
const parsedBody = parsedOutput.body;
|
|
1405
|
-
return throwDefaultError({
|
|
1406
|
-
output,
|
|
1407
|
-
parsedBody,
|
|
1408
|
-
errorCode,
|
|
1409
|
-
});
|
|
1410
|
-
}
|
|
1411
|
-
};
|
|
1412
|
-
export const de_ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
|
|
662
|
+
export const de_UpdateACLCommand = async (output, context) => {
|
|
1413
663
|
if (output.statusCode >= 300) {
|
|
1414
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
1415
665
|
}
|
|
1416
666
|
const data = await parseBody(output.body, context);
|
|
1417
667
|
let contents = {};
|
|
@@ -1422,37 +672,22 @@ export const de_ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
|
|
|
1422
672
|
};
|
|
1423
673
|
return response;
|
|
1424
674
|
};
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
body: await parseErrorBody(output.body, context),
|
|
1429
|
-
};
|
|
1430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
|
-
switch (errorCode) {
|
|
1432
|
-
case "ClusterNotFoundFault":
|
|
1433
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1434
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1435
|
-
case "InvalidParameterCombinationException":
|
|
1436
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1437
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InvalidParameterValueException":
|
|
1439
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1440
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1442
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1443
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1444
|
-
default:
|
|
1445
|
-
const parsedBody = parsedOutput.body;
|
|
1446
|
-
return throwDefaultError({
|
|
1447
|
-
output,
|
|
1448
|
-
parsedBody,
|
|
1449
|
-
errorCode,
|
|
1450
|
-
});
|
|
675
|
+
export const de_UpdateClusterCommand = async (output, context) => {
|
|
676
|
+
if (output.statusCode >= 300) {
|
|
677
|
+
return de_CommandError(output, context);
|
|
1451
678
|
}
|
|
679
|
+
const data = await parseBody(output.body, context);
|
|
680
|
+
let contents = {};
|
|
681
|
+
contents = de_UpdateClusterResponse(data, context);
|
|
682
|
+
const response = {
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
...contents,
|
|
685
|
+
};
|
|
686
|
+
return response;
|
|
1452
687
|
};
|
|
1453
|
-
export const
|
|
688
|
+
export const de_UpdateParameterGroupCommand = async (output, context) => {
|
|
1454
689
|
if (output.statusCode >= 300) {
|
|
1455
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
1456
691
|
}
|
|
1457
692
|
const data = await parseBody(output.body, context);
|
|
1458
693
|
let contents = {};
|
|
@@ -1463,364 +698,102 @@ export const de_ListTagsCommand = async (output, context) => {
|
|
|
1463
698
|
};
|
|
1464
699
|
return response;
|
|
1465
700
|
};
|
|
1466
|
-
const
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
body: await parseErrorBody(output.body, context),
|
|
1470
|
-
};
|
|
1471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
-
switch (errorCode) {
|
|
1473
|
-
case "ACLNotFoundFault":
|
|
1474
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1475
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1476
|
-
case "ClusterNotFoundFault":
|
|
1477
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1478
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1479
|
-
case "InvalidARNFault":
|
|
1480
|
-
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
1481
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1482
|
-
case "InvalidClusterStateFault":
|
|
1483
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1484
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1485
|
-
case "ParameterGroupNotFoundFault":
|
|
1486
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1487
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1488
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1489
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1490
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1491
|
-
case "SnapshotNotFoundFault":
|
|
1492
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1493
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1494
|
-
case "SubnetGroupNotFoundFault":
|
|
1495
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1496
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1497
|
-
case "UserNotFoundFault":
|
|
1498
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1499
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1500
|
-
default:
|
|
1501
|
-
const parsedBody = parsedOutput.body;
|
|
1502
|
-
return throwDefaultError({
|
|
1503
|
-
output,
|
|
1504
|
-
parsedBody,
|
|
1505
|
-
errorCode,
|
|
1506
|
-
});
|
|
701
|
+
export const de_UpdateSubnetGroupCommand = async (output, context) => {
|
|
702
|
+
if (output.statusCode >= 300) {
|
|
703
|
+
return de_CommandError(output, context);
|
|
1507
704
|
}
|
|
705
|
+
const data = await parseBody(output.body, context);
|
|
706
|
+
let contents = {};
|
|
707
|
+
contents = _json(data);
|
|
708
|
+
const response = {
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
...contents,
|
|
711
|
+
};
|
|
712
|
+
return response;
|
|
1508
713
|
};
|
|
1509
|
-
export const
|
|
714
|
+
export const de_UpdateUserCommand = async (output, context) => {
|
|
1510
715
|
if (output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
1512
717
|
}
|
|
1513
718
|
const data = await parseBody(output.body, context);
|
|
1514
719
|
let contents = {};
|
|
1515
|
-
contents =
|
|
720
|
+
contents = _json(data);
|
|
1516
721
|
const response = {
|
|
1517
722
|
$metadata: deserializeMetadata(output),
|
|
1518
723
|
...contents,
|
|
1519
724
|
};
|
|
1520
725
|
return response;
|
|
1521
726
|
};
|
|
1522
|
-
const
|
|
727
|
+
const de_CommandError = async (output, context) => {
|
|
1523
728
|
const parsedOutput = {
|
|
1524
729
|
...output,
|
|
1525
730
|
body: await parseErrorBody(output.body, context),
|
|
1526
731
|
};
|
|
1527
732
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
733
|
switch (errorCode) {
|
|
1529
|
-
case "InvalidParameterCombinationException":
|
|
1530
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1531
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1532
734
|
case "InvalidParameterValueException":
|
|
1533
735
|
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1534
736
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "
|
|
1536
|
-
case "com.amazonaws.memorydb#
|
|
1537
|
-
throw await
|
|
1538
|
-
case "ReservedNodeQuotaExceededFault":
|
|
1539
|
-
case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
|
|
1540
|
-
throw await de_ReservedNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
1541
|
-
case "ReservedNodesOfferingNotFoundFault":
|
|
1542
|
-
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
1543
|
-
throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
1544
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1545
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1546
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1547
|
-
case "TagQuotaPerResourceExceeded":
|
|
1548
|
-
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
1549
|
-
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1550
|
-
default:
|
|
1551
|
-
const parsedBody = parsedOutput.body;
|
|
1552
|
-
return throwDefaultError({
|
|
1553
|
-
output,
|
|
1554
|
-
parsedBody,
|
|
1555
|
-
errorCode,
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
};
|
|
1559
|
-
export const de_ResetParameterGroupCommand = async (output, context) => {
|
|
1560
|
-
if (output.statusCode >= 300) {
|
|
1561
|
-
return de_ResetParameterGroupCommandError(output, context);
|
|
1562
|
-
}
|
|
1563
|
-
const data = await parseBody(output.body, context);
|
|
1564
|
-
let contents = {};
|
|
1565
|
-
contents = _json(data);
|
|
1566
|
-
const response = {
|
|
1567
|
-
$metadata: deserializeMetadata(output),
|
|
1568
|
-
...contents,
|
|
1569
|
-
};
|
|
1570
|
-
return response;
|
|
1571
|
-
};
|
|
1572
|
-
const de_ResetParameterGroupCommandError = async (output, context) => {
|
|
1573
|
-
const parsedOutput = {
|
|
1574
|
-
...output,
|
|
1575
|
-
body: await parseErrorBody(output.body, context),
|
|
1576
|
-
};
|
|
1577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
|
-
switch (errorCode) {
|
|
737
|
+
case "ServiceUpdateNotFoundFault":
|
|
738
|
+
case "com.amazonaws.memorydb#ServiceUpdateNotFoundFault":
|
|
739
|
+
throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
|
|
1579
740
|
case "InvalidParameterCombinationException":
|
|
1580
741
|
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1581
742
|
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "
|
|
1583
|
-
case "com.amazonaws.memorydb#
|
|
1584
|
-
throw await
|
|
1585
|
-
case "InvalidParameterValueException":
|
|
1586
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1587
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ParameterGroupNotFoundFault":
|
|
1589
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1590
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1591
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1592
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1593
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1594
|
-
default:
|
|
1595
|
-
const parsedBody = parsedOutput.body;
|
|
1596
|
-
return throwDefaultError({
|
|
1597
|
-
output,
|
|
1598
|
-
parsedBody,
|
|
1599
|
-
errorCode,
|
|
1600
|
-
});
|
|
1601
|
-
}
|
|
1602
|
-
};
|
|
1603
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1604
|
-
if (output.statusCode >= 300) {
|
|
1605
|
-
return de_TagResourceCommandError(output, context);
|
|
1606
|
-
}
|
|
1607
|
-
const data = await parseBody(output.body, context);
|
|
1608
|
-
let contents = {};
|
|
1609
|
-
contents = _json(data);
|
|
1610
|
-
const response = {
|
|
1611
|
-
$metadata: deserializeMetadata(output),
|
|
1612
|
-
...contents,
|
|
1613
|
-
};
|
|
1614
|
-
return response;
|
|
1615
|
-
};
|
|
1616
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1617
|
-
const parsedOutput = {
|
|
1618
|
-
...output,
|
|
1619
|
-
body: await parseErrorBody(output.body, context),
|
|
1620
|
-
};
|
|
1621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
|
-
switch (errorCode) {
|
|
1623
|
-
case "ACLNotFoundFault":
|
|
1624
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1625
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1626
|
-
case "ClusterNotFoundFault":
|
|
1627
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1628
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1629
|
-
case "InvalidARNFault":
|
|
1630
|
-
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
1631
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1632
|
-
case "InvalidClusterStateFault":
|
|
1633
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1634
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1635
|
-
case "ParameterGroupNotFoundFault":
|
|
1636
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1637
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
743
|
+
case "InvalidSnapshotStateFault":
|
|
744
|
+
case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
|
|
745
|
+
throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
|
|
1638
746
|
case "ServiceLinkedRoleNotFoundFault":
|
|
1639
747
|
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1640
748
|
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
749
|
+
case "SnapshotAlreadyExistsFault":
|
|
750
|
+
case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
|
|
751
|
+
throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
|
|
1641
752
|
case "SnapshotNotFoundFault":
|
|
1642
753
|
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1643
754
|
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1644
|
-
case "
|
|
1645
|
-
case "com.amazonaws.memorydb#
|
|
1646
|
-
throw await
|
|
755
|
+
case "SnapshotQuotaExceededFault":
|
|
756
|
+
case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
|
|
757
|
+
throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
|
|
1647
758
|
case "TagQuotaPerResourceExceeded":
|
|
1648
759
|
case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
|
|
1649
760
|
throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
|
|
1650
|
-
case "
|
|
1651
|
-
case "com.amazonaws.memorydb#
|
|
1652
|
-
throw await
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
output,
|
|
1657
|
-
parsedBody,
|
|
1658
|
-
errorCode,
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
};
|
|
1662
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1663
|
-
if (output.statusCode >= 300) {
|
|
1664
|
-
return de_UntagResourceCommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const data = await parseBody(output.body, context);
|
|
1667
|
-
let contents = {};
|
|
1668
|
-
contents = _json(data);
|
|
1669
|
-
const response = {
|
|
1670
|
-
$metadata: deserializeMetadata(output),
|
|
1671
|
-
...contents,
|
|
1672
|
-
};
|
|
1673
|
-
return response;
|
|
1674
|
-
};
|
|
1675
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1676
|
-
const parsedOutput = {
|
|
1677
|
-
...output,
|
|
1678
|
-
body: await parseErrorBody(output.body, context),
|
|
1679
|
-
};
|
|
1680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
|
-
switch (errorCode) {
|
|
1682
|
-
case "ACLNotFoundFault":
|
|
1683
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1684
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1685
|
-
case "ClusterNotFoundFault":
|
|
1686
|
-
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
1687
|
-
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
1688
|
-
case "InvalidARNFault":
|
|
1689
|
-
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
1690
|
-
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
1691
|
-
case "InvalidClusterStateFault":
|
|
1692
|
-
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
1693
|
-
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1694
|
-
case "ParameterGroupNotFoundFault":
|
|
1695
|
-
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1696
|
-
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1697
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1698
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1699
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1700
|
-
case "SnapshotNotFoundFault":
|
|
1701
|
-
case "com.amazonaws.memorydb#SnapshotNotFoundFault":
|
|
1702
|
-
throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
|
|
1703
|
-
case "SubnetGroupNotFoundFault":
|
|
1704
|
-
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
1705
|
-
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1706
|
-
case "TagNotFoundFault":
|
|
1707
|
-
case "com.amazonaws.memorydb#TagNotFoundFault":
|
|
1708
|
-
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
1709
|
-
case "UserNotFoundFault":
|
|
1710
|
-
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1711
|
-
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1712
|
-
default:
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody,
|
|
1717
|
-
errorCode,
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
};
|
|
1721
|
-
export const de_UpdateACLCommand = async (output, context) => {
|
|
1722
|
-
if (output.statusCode >= 300) {
|
|
1723
|
-
return de_UpdateACLCommandError(output, context);
|
|
1724
|
-
}
|
|
1725
|
-
const data = await parseBody(output.body, context);
|
|
1726
|
-
let contents = {};
|
|
1727
|
-
contents = _json(data);
|
|
1728
|
-
const response = {
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
...contents,
|
|
1731
|
-
};
|
|
1732
|
-
return response;
|
|
1733
|
-
};
|
|
1734
|
-
const de_UpdateACLCommandError = async (output, context) => {
|
|
1735
|
-
const parsedOutput = {
|
|
1736
|
-
...output,
|
|
1737
|
-
body: await parseErrorBody(output.body, context),
|
|
1738
|
-
};
|
|
1739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1740
|
-
switch (errorCode) {
|
|
1741
|
-
case "ACLNotFoundFault":
|
|
1742
|
-
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1743
|
-
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
761
|
+
case "ACLAlreadyExistsFault":
|
|
762
|
+
case "com.amazonaws.memorydb#ACLAlreadyExistsFault":
|
|
763
|
+
throw await de_ACLAlreadyExistsFaultRes(parsedOutput, context);
|
|
764
|
+
case "ACLQuotaExceededFault":
|
|
765
|
+
case "com.amazonaws.memorydb#ACLQuotaExceededFault":
|
|
766
|
+
throw await de_ACLQuotaExceededFaultRes(parsedOutput, context);
|
|
1744
767
|
case "DefaultUserRequired":
|
|
1745
768
|
case "com.amazonaws.memorydb#DefaultUserRequired":
|
|
1746
769
|
throw await de_DefaultUserRequiredRes(parsedOutput, context);
|
|
1747
770
|
case "DuplicateUserNameFault":
|
|
1748
771
|
case "com.amazonaws.memorydb#DuplicateUserNameFault":
|
|
1749
772
|
throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
|
|
1750
|
-
case "InvalidACLStateFault":
|
|
1751
|
-
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
1752
|
-
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
1753
|
-
case "InvalidParameterCombinationException":
|
|
1754
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1755
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "InvalidParameterValueException":
|
|
1757
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1758
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1759
773
|
case "UserNotFoundFault":
|
|
1760
774
|
case "com.amazonaws.memorydb#UserNotFoundFault":
|
|
1761
775
|
throw await de_UserNotFoundFaultRes(parsedOutput, context);
|
|
1762
|
-
default:
|
|
1763
|
-
const parsedBody = parsedOutput.body;
|
|
1764
|
-
return throwDefaultError({
|
|
1765
|
-
output,
|
|
1766
|
-
parsedBody,
|
|
1767
|
-
errorCode,
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
};
|
|
1771
|
-
export const de_UpdateClusterCommand = async (output, context) => {
|
|
1772
|
-
if (output.statusCode >= 300) {
|
|
1773
|
-
return de_UpdateClusterCommandError(output, context);
|
|
1774
|
-
}
|
|
1775
|
-
const data = await parseBody(output.body, context);
|
|
1776
|
-
let contents = {};
|
|
1777
|
-
contents = de_UpdateClusterResponse(data, context);
|
|
1778
|
-
const response = {
|
|
1779
|
-
$metadata: deserializeMetadata(output),
|
|
1780
|
-
...contents,
|
|
1781
|
-
};
|
|
1782
|
-
return response;
|
|
1783
|
-
};
|
|
1784
|
-
const de_UpdateClusterCommandError = async (output, context) => {
|
|
1785
|
-
const parsedOutput = {
|
|
1786
|
-
...output,
|
|
1787
|
-
body: await parseErrorBody(output.body, context),
|
|
1788
|
-
};
|
|
1789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
-
switch (errorCode) {
|
|
1791
776
|
case "ACLNotFoundFault":
|
|
1792
777
|
case "com.amazonaws.memorydb#ACLNotFoundFault":
|
|
1793
778
|
throw await de_ACLNotFoundFaultRes(parsedOutput, context);
|
|
1794
|
-
case "
|
|
1795
|
-
case "com.amazonaws.memorydb#
|
|
1796
|
-
throw await
|
|
779
|
+
case "ClusterAlreadyExistsFault":
|
|
780
|
+
case "com.amazonaws.memorydb#ClusterAlreadyExistsFault":
|
|
781
|
+
throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
|
|
1797
782
|
case "ClusterQuotaForCustomerExceededFault":
|
|
1798
783
|
case "com.amazonaws.memorydb#ClusterQuotaForCustomerExceededFault":
|
|
1799
784
|
throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
|
|
785
|
+
case "InsufficientClusterCapacityFault":
|
|
786
|
+
case "com.amazonaws.memorydb#InsufficientClusterCapacityFault":
|
|
787
|
+
throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
|
|
1800
788
|
case "InvalidACLStateFault":
|
|
1801
789
|
case "com.amazonaws.memorydb#InvalidACLStateFault":
|
|
1802
790
|
throw await de_InvalidACLStateFaultRes(parsedOutput, context);
|
|
1803
|
-
case "
|
|
1804
|
-
case "com.amazonaws.memorydb#
|
|
1805
|
-
throw await
|
|
1806
|
-
case "InvalidKMSKeyFault":
|
|
1807
|
-
case "com.amazonaws.memorydb#InvalidKMSKeyFault":
|
|
1808
|
-
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
1809
|
-
case "InvalidNodeStateFault":
|
|
1810
|
-
case "com.amazonaws.memorydb#InvalidNodeStateFault":
|
|
1811
|
-
throw await de_InvalidNodeStateFaultRes(parsedOutput, context);
|
|
1812
|
-
case "InvalidParameterCombinationException":
|
|
1813
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1814
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "InvalidParameterValueException":
|
|
1816
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1817
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
791
|
+
case "InvalidCredentialsException":
|
|
792
|
+
case "com.amazonaws.memorydb#InvalidCredentialsException":
|
|
793
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
1818
794
|
case "InvalidVPCNetworkStateFault":
|
|
1819
795
|
case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
|
|
1820
796
|
throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
|
|
1821
|
-
case "NoOperationFault":
|
|
1822
|
-
case "com.amazonaws.memorydb#NoOperationFault":
|
|
1823
|
-
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
1824
797
|
case "NodeQuotaForClusterExceededFault":
|
|
1825
798
|
case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
|
|
1826
799
|
throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
|
|
@@ -1830,144 +803,93 @@ const de_UpdateClusterCommandError = async (output, context) => {
|
|
|
1830
803
|
case "ParameterGroupNotFoundFault":
|
|
1831
804
|
case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
|
|
1832
805
|
throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
1833
|
-
case "ServiceLinkedRoleNotFoundFault":
|
|
1834
|
-
case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
|
|
1835
|
-
throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
|
|
1836
806
|
case "ShardsPerClusterQuotaExceededFault":
|
|
1837
807
|
case "com.amazonaws.memorydb#ShardsPerClusterQuotaExceededFault":
|
|
1838
808
|
throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
output,
|
|
1843
|
-
parsedBody,
|
|
1844
|
-
errorCode,
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
};
|
|
1848
|
-
export const de_UpdateParameterGroupCommand = async (output, context) => {
|
|
1849
|
-
if (output.statusCode >= 300) {
|
|
1850
|
-
return de_UpdateParameterGroupCommandError(output, context);
|
|
1851
|
-
}
|
|
1852
|
-
const data = await parseBody(output.body, context);
|
|
1853
|
-
let contents = {};
|
|
1854
|
-
contents = _json(data);
|
|
1855
|
-
const response = {
|
|
1856
|
-
$metadata: deserializeMetadata(output),
|
|
1857
|
-
...contents,
|
|
1858
|
-
};
|
|
1859
|
-
return response;
|
|
1860
|
-
};
|
|
1861
|
-
const de_UpdateParameterGroupCommandError = async (output, context) => {
|
|
1862
|
-
const parsedOutput = {
|
|
1863
|
-
...output,
|
|
1864
|
-
body: await parseErrorBody(output.body, context),
|
|
1865
|
-
};
|
|
1866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "InvalidParameterCombinationException":
|
|
1869
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1870
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
809
|
+
case "SubnetGroupNotFoundFault":
|
|
810
|
+
case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
|
|
811
|
+
throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
|
|
1871
812
|
case "InvalidParameterGroupStateFault":
|
|
1872
813
|
case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
|
|
1873
814
|
throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
|
|
1874
|
-
case "
|
|
1875
|
-
case "com.amazonaws.memorydb#
|
|
1876
|
-
throw await
|
|
1877
|
-
case "
|
|
1878
|
-
case "com.amazonaws.memorydb#
|
|
1879
|
-
throw await
|
|
1880
|
-
case "
|
|
1881
|
-
case "com.amazonaws.memorydb#
|
|
1882
|
-
throw await
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
output,
|
|
1887
|
-
parsedBody,
|
|
1888
|
-
errorCode,
|
|
1889
|
-
});
|
|
1890
|
-
}
|
|
1891
|
-
};
|
|
1892
|
-
export const de_UpdateSubnetGroupCommand = async (output, context) => {
|
|
1893
|
-
if (output.statusCode >= 300) {
|
|
1894
|
-
return de_UpdateSubnetGroupCommandError(output, context);
|
|
1895
|
-
}
|
|
1896
|
-
const data = await parseBody(output.body, context);
|
|
1897
|
-
let contents = {};
|
|
1898
|
-
contents = _json(data);
|
|
1899
|
-
const response = {
|
|
1900
|
-
$metadata: deserializeMetadata(output),
|
|
1901
|
-
...contents,
|
|
1902
|
-
};
|
|
1903
|
-
return response;
|
|
1904
|
-
};
|
|
1905
|
-
const de_UpdateSubnetGroupCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
815
|
+
case "ParameterGroupAlreadyExistsFault":
|
|
816
|
+
case "com.amazonaws.memorydb#ParameterGroupAlreadyExistsFault":
|
|
817
|
+
throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
818
|
+
case "ParameterGroupQuotaExceededFault":
|
|
819
|
+
case "com.amazonaws.memorydb#ParameterGroupQuotaExceededFault":
|
|
820
|
+
throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
821
|
+
case "ClusterNotFoundFault":
|
|
822
|
+
case "com.amazonaws.memorydb#ClusterNotFoundFault":
|
|
823
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
824
|
+
case "InvalidClusterStateFault":
|
|
825
|
+
case "com.amazonaws.memorydb#InvalidClusterStateFault":
|
|
826
|
+
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
1912
827
|
case "InvalidSubnet":
|
|
1913
828
|
case "com.amazonaws.memorydb#InvalidSubnet":
|
|
1914
829
|
throw await de_InvalidSubnetRes(parsedOutput, context);
|
|
1915
|
-
case "
|
|
1916
|
-
case "com.amazonaws.memorydb#
|
|
1917
|
-
throw await
|
|
1918
|
-
case "
|
|
1919
|
-
case "com.amazonaws.memorydb#
|
|
1920
|
-
throw await
|
|
1921
|
-
case "SubnetInUse":
|
|
1922
|
-
case "com.amazonaws.memorydb#SubnetInUse":
|
|
1923
|
-
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
830
|
+
case "SubnetGroupAlreadyExistsFault":
|
|
831
|
+
case "com.amazonaws.memorydb#SubnetGroupAlreadyExistsFault":
|
|
832
|
+
throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
|
|
833
|
+
case "SubnetGroupQuotaExceededFault":
|
|
834
|
+
case "com.amazonaws.memorydb#SubnetGroupQuotaExceededFault":
|
|
835
|
+
throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
|
|
1924
836
|
case "SubnetNotAllowedFault":
|
|
1925
837
|
case "com.amazonaws.memorydb#SubnetNotAllowedFault":
|
|
1926
838
|
throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
|
|
1927
839
|
case "SubnetQuotaExceededFault":
|
|
1928
840
|
case "com.amazonaws.memorydb#SubnetQuotaExceededFault":
|
|
1929
841
|
throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
export const de_UpdateUserCommand = async (output, context) => {
|
|
1940
|
-
if (output.statusCode >= 300) {
|
|
1941
|
-
return de_UpdateUserCommandError(output, context);
|
|
1942
|
-
}
|
|
1943
|
-
const data = await parseBody(output.body, context);
|
|
1944
|
-
let contents = {};
|
|
1945
|
-
contents = _json(data);
|
|
1946
|
-
const response = {
|
|
1947
|
-
$metadata: deserializeMetadata(output),
|
|
1948
|
-
...contents,
|
|
1949
|
-
};
|
|
1950
|
-
return response;
|
|
1951
|
-
};
|
|
1952
|
-
const de_UpdateUserCommandError = async (output, context) => {
|
|
1953
|
-
const parsedOutput = {
|
|
1954
|
-
...output,
|
|
1955
|
-
body: await parseErrorBody(output.body, context),
|
|
1956
|
-
};
|
|
1957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
|
-
switch (errorCode) {
|
|
1959
|
-
case "InvalidParameterCombinationException":
|
|
1960
|
-
case "com.amazonaws.memorydb#InvalidParameterCombinationException":
|
|
1961
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "InvalidParameterValueException":
|
|
1963
|
-
case "com.amazonaws.memorydb#InvalidParameterValueException":
|
|
1964
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
842
|
+
case "UserAlreadyExistsFault":
|
|
843
|
+
case "com.amazonaws.memorydb#UserAlreadyExistsFault":
|
|
844
|
+
throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
|
|
845
|
+
case "UserQuotaExceededFault":
|
|
846
|
+
case "com.amazonaws.memorydb#UserQuotaExceededFault":
|
|
847
|
+
throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
|
|
848
|
+
case "SubnetGroupInUseFault":
|
|
849
|
+
case "com.amazonaws.memorydb#SubnetGroupInUseFault":
|
|
850
|
+
throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
|
|
1965
851
|
case "InvalidUserStateFault":
|
|
1966
852
|
case "com.amazonaws.memorydb#InvalidUserStateFault":
|
|
1967
853
|
throw await de_InvalidUserStateFaultRes(parsedOutput, context);
|
|
1968
|
-
case "
|
|
1969
|
-
case "com.amazonaws.memorydb#
|
|
1970
|
-
throw await
|
|
854
|
+
case "ReservedNodeNotFoundFault":
|
|
855
|
+
case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
|
|
856
|
+
throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
|
|
857
|
+
case "ReservedNodesOfferingNotFoundFault":
|
|
858
|
+
case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
|
|
859
|
+
throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
|
|
860
|
+
case "APICallRateForCustomerExceededFault":
|
|
861
|
+
case "com.amazonaws.memorydb#APICallRateForCustomerExceededFault":
|
|
862
|
+
throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
|
|
863
|
+
case "InvalidKMSKeyFault":
|
|
864
|
+
case "com.amazonaws.memorydb#InvalidKMSKeyFault":
|
|
865
|
+
throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
|
|
866
|
+
case "ShardNotFoundFault":
|
|
867
|
+
case "com.amazonaws.memorydb#ShardNotFoundFault":
|
|
868
|
+
throw await de_ShardNotFoundFaultRes(parsedOutput, context);
|
|
869
|
+
case "TestFailoverNotAvailableFault":
|
|
870
|
+
case "com.amazonaws.memorydb#TestFailoverNotAvailableFault":
|
|
871
|
+
throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
|
|
872
|
+
case "InvalidARNFault":
|
|
873
|
+
case "com.amazonaws.memorydb#InvalidARNFault":
|
|
874
|
+
throw await de_InvalidARNFaultRes(parsedOutput, context);
|
|
875
|
+
case "ReservedNodeAlreadyExistsFault":
|
|
876
|
+
case "com.amazonaws.memorydb#ReservedNodeAlreadyExistsFault":
|
|
877
|
+
throw await de_ReservedNodeAlreadyExistsFaultRes(parsedOutput, context);
|
|
878
|
+
case "ReservedNodeQuotaExceededFault":
|
|
879
|
+
case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
|
|
880
|
+
throw await de_ReservedNodeQuotaExceededFaultRes(parsedOutput, context);
|
|
881
|
+
case "TagNotFoundFault":
|
|
882
|
+
case "com.amazonaws.memorydb#TagNotFoundFault":
|
|
883
|
+
throw await de_TagNotFoundFaultRes(parsedOutput, context);
|
|
884
|
+
case "InvalidNodeStateFault":
|
|
885
|
+
case "com.amazonaws.memorydb#InvalidNodeStateFault":
|
|
886
|
+
throw await de_InvalidNodeStateFaultRes(parsedOutput, context);
|
|
887
|
+
case "NoOperationFault":
|
|
888
|
+
case "com.amazonaws.memorydb#NoOperationFault":
|
|
889
|
+
throw await de_NoOperationFaultRes(parsedOutput, context);
|
|
890
|
+
case "SubnetInUse":
|
|
891
|
+
case "com.amazonaws.memorydb#SubnetInUse":
|
|
892
|
+
throw await de_SubnetInUseRes(parsedOutput, context);
|
|
1971
893
|
default:
|
|
1972
894
|
const parsedBody = parsedOutput.body;
|
|
1973
895
|
return throwDefaultError({
|