@aws-sdk/client-backup-gateway 3.131.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateGatewayToServerCommand.js +2 -2
- package/dist-cjs/commands/CreateGatewayCommand.js +2 -2
- package/dist-cjs/commands/DeleteGatewayCommand.js +2 -2
- package/dist-cjs/commands/DeleteHypervisorCommand.js +2 -2
- package/dist-cjs/commands/DisassociateGatewayFromServerCommand.js +2 -2
- package/dist-cjs/commands/GetGatewayCommand.js +2 -2
- package/dist-cjs/commands/ImportHypervisorConfigurationCommand.js +2 -2
- package/dist-cjs/commands/ListGatewaysCommand.js +2 -2
- package/dist-cjs/commands/ListHypervisorsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListVirtualMachinesCommand.js +2 -2
- package/dist-cjs/commands/PutMaintenanceStartTimeCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TestHypervisorConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateGatewayInformationCommand.js +2 -2
- package/dist-cjs/commands/UpdateGatewaySoftwareNowCommand.js +2 -2
- package/dist-cjs/commands/UpdateHypervisorCommand.js +2 -2
- package/dist-cjs/models/models_0.js +171 -253
- package/dist-cjs/protocols/Aws_json1_0.js +90 -150
- package/dist-es/commands/AssociateGatewayToServerCommand.js +3 -3
- package/dist-es/commands/CreateGatewayCommand.js +3 -3
- package/dist-es/commands/DeleteGatewayCommand.js +3 -3
- package/dist-es/commands/DeleteHypervisorCommand.js +3 -3
- package/dist-es/commands/DisassociateGatewayFromServerCommand.js +3 -3
- package/dist-es/commands/GetGatewayCommand.js +3 -3
- package/dist-es/commands/ImportHypervisorConfigurationCommand.js +3 -3
- package/dist-es/commands/ListGatewaysCommand.js +3 -3
- package/dist-es/commands/ListHypervisorsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListVirtualMachinesCommand.js +3 -3
- package/dist-es/commands/PutMaintenanceStartTimeCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TestHypervisorConfigurationCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateGatewayInformationCommand.js +3 -3
- package/dist-es/commands/UpdateGatewaySoftwareNowCommand.js +3 -3
- package/dist-es/commands/UpdateHypervisorCommand.js +3 -3
- package/dist-es/models/models_0.js +41 -164
- package/dist-es/protocols/Aws_json1_0.js +145 -151
- package/dist-types/models/models_0.d.ts +164 -246
- package/dist-types/ts3.4/models/models_0.d.ts +82 -164
- package/package.json +6 -6
|
@@ -204,7 +204,6 @@ const deserializeAws_json1_0AssociateGatewayToServerCommandError = async (output
|
|
|
204
204
|
...output,
|
|
205
205
|
body: await parseBody(output.body, context),
|
|
206
206
|
};
|
|
207
|
-
let response;
|
|
208
207
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
209
208
|
switch (errorCode) {
|
|
210
209
|
case "ConflictException":
|
|
@@ -218,14 +217,12 @@ const deserializeAws_json1_0AssociateGatewayToServerCommandError = async (output
|
|
|
218
217
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
219
218
|
default:
|
|
220
219
|
const parsedBody = parsedOutput.body;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
$metadata,
|
|
220
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
221
|
+
output,
|
|
222
|
+
parsedBody,
|
|
223
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
224
|
+
errorCode,
|
|
227
225
|
});
|
|
228
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
229
226
|
}
|
|
230
227
|
};
|
|
231
228
|
const deserializeAws_json1_0CreateGatewayCommand = async (output, context) => {
|
|
@@ -247,7 +244,6 @@ const deserializeAws_json1_0CreateGatewayCommandError = async (output, context)
|
|
|
247
244
|
...output,
|
|
248
245
|
body: await parseBody(output.body, context),
|
|
249
246
|
};
|
|
250
|
-
let response;
|
|
251
247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
248
|
switch (errorCode) {
|
|
253
249
|
case "InternalServerException":
|
|
@@ -258,14 +254,12 @@ const deserializeAws_json1_0CreateGatewayCommandError = async (output, context)
|
|
|
258
254
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
259
255
|
default:
|
|
260
256
|
const parsedBody = parsedOutput.body;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
$metadata,
|
|
257
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
258
|
+
output,
|
|
259
|
+
parsedBody,
|
|
260
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
261
|
+
errorCode,
|
|
267
262
|
});
|
|
268
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
269
263
|
}
|
|
270
264
|
};
|
|
271
265
|
const deserializeAws_json1_0DeleteGatewayCommand = async (output, context) => {
|
|
@@ -287,7 +281,6 @@ const deserializeAws_json1_0DeleteGatewayCommandError = async (output, context)
|
|
|
287
281
|
...output,
|
|
288
282
|
body: await parseBody(output.body, context),
|
|
289
283
|
};
|
|
290
|
-
let response;
|
|
291
284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
285
|
switch (errorCode) {
|
|
293
286
|
case "InternalServerException":
|
|
@@ -301,14 +294,12 @@ const deserializeAws_json1_0DeleteGatewayCommandError = async (output, context)
|
|
|
301
294
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
302
295
|
default:
|
|
303
296
|
const parsedBody = parsedOutput.body;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
$metadata,
|
|
297
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
298
|
+
output,
|
|
299
|
+
parsedBody,
|
|
300
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
301
|
+
errorCode,
|
|
310
302
|
});
|
|
311
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
312
303
|
}
|
|
313
304
|
};
|
|
314
305
|
const deserializeAws_json1_0DeleteHypervisorCommand = async (output, context) => {
|
|
@@ -330,7 +321,6 @@ const deserializeAws_json1_0DeleteHypervisorCommandError = async (output, contex
|
|
|
330
321
|
...output,
|
|
331
322
|
body: await parseBody(output.body, context),
|
|
332
323
|
};
|
|
333
|
-
let response;
|
|
334
324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
325
|
switch (errorCode) {
|
|
336
326
|
case "AccessDeniedException":
|
|
@@ -347,14 +337,12 @@ const deserializeAws_json1_0DeleteHypervisorCommandError = async (output, contex
|
|
|
347
337
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
348
338
|
default:
|
|
349
339
|
const parsedBody = parsedOutput.body;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
$metadata,
|
|
340
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
341
|
+
output,
|
|
342
|
+
parsedBody,
|
|
343
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
344
|
+
errorCode,
|
|
356
345
|
});
|
|
357
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
358
346
|
}
|
|
359
347
|
};
|
|
360
348
|
const deserializeAws_json1_0DisassociateGatewayFromServerCommand = async (output, context) => {
|
|
@@ -376,7 +364,6 @@ const deserializeAws_json1_0DisassociateGatewayFromServerCommandError = async (o
|
|
|
376
364
|
...output,
|
|
377
365
|
body: await parseBody(output.body, context),
|
|
378
366
|
};
|
|
379
|
-
let response;
|
|
380
367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
368
|
switch (errorCode) {
|
|
382
369
|
case "ConflictException":
|
|
@@ -393,14 +380,12 @@ const deserializeAws_json1_0DisassociateGatewayFromServerCommandError = async (o
|
|
|
393
380
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
394
381
|
default:
|
|
395
382
|
const parsedBody = parsedOutput.body;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
$metadata,
|
|
383
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
384
|
+
output,
|
|
385
|
+
parsedBody,
|
|
386
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
387
|
+
errorCode,
|
|
402
388
|
});
|
|
403
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
404
389
|
}
|
|
405
390
|
};
|
|
406
391
|
const deserializeAws_json1_0GetGatewayCommand = async (output, context) => {
|
|
@@ -422,7 +407,6 @@ const deserializeAws_json1_0GetGatewayCommandError = async (output, context) =>
|
|
|
422
407
|
...output,
|
|
423
408
|
body: await parseBody(output.body, context),
|
|
424
409
|
};
|
|
425
|
-
let response;
|
|
426
410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
411
|
switch (errorCode) {
|
|
428
412
|
case "InternalServerException":
|
|
@@ -436,14 +420,12 @@ const deserializeAws_json1_0GetGatewayCommandError = async (output, context) =>
|
|
|
436
420
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
437
421
|
default:
|
|
438
422
|
const parsedBody = parsedOutput.body;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
$metadata,
|
|
423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
424
|
+
output,
|
|
425
|
+
parsedBody,
|
|
426
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
427
|
+
errorCode,
|
|
445
428
|
});
|
|
446
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
447
429
|
}
|
|
448
430
|
};
|
|
449
431
|
const deserializeAws_json1_0ImportHypervisorConfigurationCommand = async (output, context) => {
|
|
@@ -465,7 +447,6 @@ const deserializeAws_json1_0ImportHypervisorConfigurationCommandError = async (o
|
|
|
465
447
|
...output,
|
|
466
448
|
body: await parseBody(output.body, context),
|
|
467
449
|
};
|
|
468
|
-
let response;
|
|
469
450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
451
|
switch (errorCode) {
|
|
471
452
|
case "AccessDeniedException":
|
|
@@ -479,14 +460,12 @@ const deserializeAws_json1_0ImportHypervisorConfigurationCommandError = async (o
|
|
|
479
460
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
480
461
|
default:
|
|
481
462
|
const parsedBody = parsedOutput.body;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
$metadata,
|
|
463
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
464
|
+
output,
|
|
465
|
+
parsedBody,
|
|
466
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
467
|
+
errorCode,
|
|
488
468
|
});
|
|
489
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
490
469
|
}
|
|
491
470
|
};
|
|
492
471
|
const deserializeAws_json1_0ListGatewaysCommand = async (output, context) => {
|
|
@@ -508,7 +487,6 @@ const deserializeAws_json1_0ListGatewaysCommandError = async (output, context) =
|
|
|
508
487
|
...output,
|
|
509
488
|
body: await parseBody(output.body, context),
|
|
510
489
|
};
|
|
511
|
-
let response;
|
|
512
490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
491
|
switch (errorCode) {
|
|
514
492
|
case "InternalServerException":
|
|
@@ -519,14 +497,12 @@ const deserializeAws_json1_0ListGatewaysCommandError = async (output, context) =
|
|
|
519
497
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
520
498
|
default:
|
|
521
499
|
const parsedBody = parsedOutput.body;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
$metadata,
|
|
500
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
501
|
+
output,
|
|
502
|
+
parsedBody,
|
|
503
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
504
|
+
errorCode,
|
|
528
505
|
});
|
|
529
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
530
506
|
}
|
|
531
507
|
};
|
|
532
508
|
const deserializeAws_json1_0ListHypervisorsCommand = async (output, context) => {
|
|
@@ -548,7 +524,6 @@ const deserializeAws_json1_0ListHypervisorsCommandError = async (output, context
|
|
|
548
524
|
...output,
|
|
549
525
|
body: await parseBody(output.body, context),
|
|
550
526
|
};
|
|
551
|
-
let response;
|
|
552
527
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
528
|
switch (errorCode) {
|
|
554
529
|
case "InternalServerException":
|
|
@@ -559,14 +534,12 @@ const deserializeAws_json1_0ListHypervisorsCommandError = async (output, context
|
|
|
559
534
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
560
535
|
default:
|
|
561
536
|
const parsedBody = parsedOutput.body;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
$metadata,
|
|
537
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
538
|
+
output,
|
|
539
|
+
parsedBody,
|
|
540
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
541
|
+
errorCode,
|
|
568
542
|
});
|
|
569
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
570
543
|
}
|
|
571
544
|
};
|
|
572
545
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -588,7 +561,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
588
561
|
...output,
|
|
589
562
|
body: await parseBody(output.body, context),
|
|
590
563
|
};
|
|
591
|
-
let response;
|
|
592
564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
565
|
switch (errorCode) {
|
|
594
566
|
case "InternalServerException":
|
|
@@ -602,14 +574,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
602
574
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
603
575
|
default:
|
|
604
576
|
const parsedBody = parsedOutput.body;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
$metadata,
|
|
577
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
578
|
+
output,
|
|
579
|
+
parsedBody,
|
|
580
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
581
|
+
errorCode,
|
|
611
582
|
});
|
|
612
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
613
583
|
}
|
|
614
584
|
};
|
|
615
585
|
const deserializeAws_json1_0ListVirtualMachinesCommand = async (output, context) => {
|
|
@@ -631,7 +601,6 @@ const deserializeAws_json1_0ListVirtualMachinesCommandError = async (output, con
|
|
|
631
601
|
...output,
|
|
632
602
|
body: await parseBody(output.body, context),
|
|
633
603
|
};
|
|
634
|
-
let response;
|
|
635
604
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
605
|
switch (errorCode) {
|
|
637
606
|
case "InternalServerException":
|
|
@@ -642,14 +611,12 @@ const deserializeAws_json1_0ListVirtualMachinesCommandError = async (output, con
|
|
|
642
611
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
643
612
|
default:
|
|
644
613
|
const parsedBody = parsedOutput.body;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
$metadata,
|
|
614
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
615
|
+
output,
|
|
616
|
+
parsedBody,
|
|
617
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
618
|
+
errorCode,
|
|
651
619
|
});
|
|
652
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
653
620
|
}
|
|
654
621
|
};
|
|
655
622
|
const deserializeAws_json1_0PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
@@ -671,7 +638,6 @@ const deserializeAws_json1_0PutMaintenanceStartTimeCommandError = async (output,
|
|
|
671
638
|
...output,
|
|
672
639
|
body: await parseBody(output.body, context),
|
|
673
640
|
};
|
|
674
|
-
let response;
|
|
675
641
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
642
|
switch (errorCode) {
|
|
677
643
|
case "ConflictException":
|
|
@@ -688,14 +654,12 @@ const deserializeAws_json1_0PutMaintenanceStartTimeCommandError = async (output,
|
|
|
688
654
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
689
655
|
default:
|
|
690
656
|
const parsedBody = parsedOutput.body;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
$metadata,
|
|
657
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
658
|
+
output,
|
|
659
|
+
parsedBody,
|
|
660
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
661
|
+
errorCode,
|
|
697
662
|
});
|
|
698
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
663
|
}
|
|
700
664
|
};
|
|
701
665
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -717,7 +681,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
717
681
|
...output,
|
|
718
682
|
body: await parseBody(output.body, context),
|
|
719
683
|
};
|
|
720
|
-
let response;
|
|
721
684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
685
|
switch (errorCode) {
|
|
723
686
|
case "InternalServerException":
|
|
@@ -731,14 +694,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
731
694
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
732
695
|
default:
|
|
733
696
|
const parsedBody = parsedOutput.body;
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
$metadata,
|
|
697
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
698
|
+
output,
|
|
699
|
+
parsedBody,
|
|
700
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
701
|
+
errorCode,
|
|
740
702
|
});
|
|
741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
742
703
|
}
|
|
743
704
|
};
|
|
744
705
|
const deserializeAws_json1_0TestHypervisorConfigurationCommand = async (output, context) => {
|
|
@@ -760,7 +721,6 @@ const deserializeAws_json1_0TestHypervisorConfigurationCommandError = async (out
|
|
|
760
721
|
...output,
|
|
761
722
|
body: await parseBody(output.body, context),
|
|
762
723
|
};
|
|
763
|
-
let response;
|
|
764
724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
725
|
switch (errorCode) {
|
|
766
726
|
case "ConflictException":
|
|
@@ -777,14 +737,12 @@ const deserializeAws_json1_0TestHypervisorConfigurationCommandError = async (out
|
|
|
777
737
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
778
738
|
default:
|
|
779
739
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
$metadata,
|
|
740
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
741
|
+
output,
|
|
742
|
+
parsedBody,
|
|
743
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
744
|
+
errorCode,
|
|
786
745
|
});
|
|
787
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
788
746
|
}
|
|
789
747
|
};
|
|
790
748
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -806,7 +764,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
806
764
|
...output,
|
|
807
765
|
body: await parseBody(output.body, context),
|
|
808
766
|
};
|
|
809
|
-
let response;
|
|
810
767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
768
|
switch (errorCode) {
|
|
812
769
|
case "InternalServerException":
|
|
@@ -820,14 +777,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
820
777
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
821
778
|
default:
|
|
822
779
|
const parsedBody = parsedOutput.body;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
$metadata,
|
|
780
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
781
|
+
output,
|
|
782
|
+
parsedBody,
|
|
783
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
784
|
+
errorCode,
|
|
829
785
|
});
|
|
830
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
831
786
|
}
|
|
832
787
|
};
|
|
833
788
|
const deserializeAws_json1_0UpdateGatewayInformationCommand = async (output, context) => {
|
|
@@ -849,7 +804,6 @@ const deserializeAws_json1_0UpdateGatewayInformationCommandError = async (output
|
|
|
849
804
|
...output,
|
|
850
805
|
body: await parseBody(output.body, context),
|
|
851
806
|
};
|
|
852
|
-
let response;
|
|
853
807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
808
|
switch (errorCode) {
|
|
855
809
|
case "ConflictException":
|
|
@@ -866,14 +820,12 @@ const deserializeAws_json1_0UpdateGatewayInformationCommandError = async (output
|
|
|
866
820
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
867
821
|
default:
|
|
868
822
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
$metadata,
|
|
823
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
824
|
+
output,
|
|
825
|
+
parsedBody,
|
|
826
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
827
|
+
errorCode,
|
|
875
828
|
});
|
|
876
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
877
829
|
}
|
|
878
830
|
};
|
|
879
831
|
const deserializeAws_json1_0UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
@@ -895,7 +847,6 @@ const deserializeAws_json1_0UpdateGatewaySoftwareNowCommandError = async (output
|
|
|
895
847
|
...output,
|
|
896
848
|
body: await parseBody(output.body, context),
|
|
897
849
|
};
|
|
898
|
-
let response;
|
|
899
850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
851
|
switch (errorCode) {
|
|
901
852
|
case "InternalServerException":
|
|
@@ -909,14 +860,12 @@ const deserializeAws_json1_0UpdateGatewaySoftwareNowCommandError = async (output
|
|
|
909
860
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
910
861
|
default:
|
|
911
862
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
$metadata,
|
|
863
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
864
|
+
output,
|
|
865
|
+
parsedBody,
|
|
866
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
867
|
+
errorCode,
|
|
918
868
|
});
|
|
919
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
920
869
|
}
|
|
921
870
|
};
|
|
922
871
|
const deserializeAws_json1_0UpdateHypervisorCommand = async (output, context) => {
|
|
@@ -938,7 +887,6 @@ const deserializeAws_json1_0UpdateHypervisorCommandError = async (output, contex
|
|
|
938
887
|
...output,
|
|
939
888
|
body: await parseBody(output.body, context),
|
|
940
889
|
};
|
|
941
|
-
let response;
|
|
942
890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
891
|
switch (errorCode) {
|
|
944
892
|
case "AccessDeniedException":
|
|
@@ -955,14 +903,12 @@ const deserializeAws_json1_0UpdateHypervisorCommandError = async (output, contex
|
|
|
955
903
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
956
904
|
default:
|
|
957
905
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
$metadata,
|
|
906
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
907
|
+
output,
|
|
908
|
+
parsedBody,
|
|
909
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
910
|
+
errorCode,
|
|
964
911
|
});
|
|
965
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
912
|
}
|
|
967
913
|
};
|
|
968
914
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1096,9 +1042,6 @@ const serializeAws_json1_0TagKeys = (input, context) => {
|
|
|
1096
1042
|
return input
|
|
1097
1043
|
.filter((e) => e != null)
|
|
1098
1044
|
.map((entry) => {
|
|
1099
|
-
if (entry === null) {
|
|
1100
|
-
return null;
|
|
1101
|
-
}
|
|
1102
1045
|
return entry;
|
|
1103
1046
|
});
|
|
1104
1047
|
};
|
|
@@ -1112,9 +1055,6 @@ const serializeAws_json1_0Tags = (input, context) => {
|
|
|
1112
1055
|
return input
|
|
1113
1056
|
.filter((e) => e != null)
|
|
1114
1057
|
.map((entry) => {
|
|
1115
|
-
if (entry === null) {
|
|
1116
|
-
return null;
|
|
1117
|
-
}
|
|
1118
1058
|
return serializeAws_json1_0Tag(entry, context);
|
|
1119
1059
|
});
|
|
1120
1060
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssociateGatewayToServerInputFilterSensitiveLog, AssociateGatewayToServerOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0AssociateGatewayToServerCommand, serializeAws_json1_0AssociateGatewayToServerCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var AssociateGatewayToServerCommand = (function (_super) {
|
|
7
7
|
__extends(AssociateGatewayToServerCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssociateGatewayToServerCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssociateGatewayToServerInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociateGatewayToServerOutputFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateGatewayInputFilterSensitiveLog, CreateGatewayOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0CreateGatewayCommand, serializeAws_json1_0CreateGatewayCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var CreateGatewayCommand = (function (_super) {
|
|
7
7
|
__extends(CreateGatewayCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CreateGatewayCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CreateGatewayInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateGatewayOutputFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteGatewayInputFilterSensitiveLog, DeleteGatewayOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0DeleteGatewayCommand, serializeAws_json1_0DeleteGatewayCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var DeleteGatewayCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteGatewayCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteGatewayCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteGatewayInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteGatewayOutputFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteHypervisorInputFilterSensitiveLog, DeleteHypervisorOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0DeleteHypervisorCommand, serializeAws_json1_0DeleteHypervisorCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var DeleteHypervisorCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteHypervisorCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteHypervisorCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteHypervisorInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteHypervisorOutputFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DisassociateGatewayFromServerInputFilterSensitiveLog, DisassociateGatewayFromServerOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0DisassociateGatewayFromServerCommand, serializeAws_json1_0DisassociateGatewayFromServerCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var DisassociateGatewayFromServerCommand = (function (_super) {
|
|
7
7
|
__extends(DisassociateGatewayFromServerCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DisassociateGatewayFromServerCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DisassociateGatewayFromServerInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisassociateGatewayFromServerOutputFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { GetGatewayInputFilterSensitiveLog, GetGatewayOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0GetGatewayCommand, serializeAws_json1_0GetGatewayCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var GetGatewayCommand = (function (_super) {
|
|
7
7
|
__extends(GetGatewayCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetGatewayCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetGatewayInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetGatewayOutputFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|