@aws-sdk/client-cloudhsm 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +100 -172
- package/dist-es/protocols/Aws_json1_1.js +161 -173
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudhsm
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
7
37
|
|
|
8
38
|
|
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ try {
|
|
|
176
176
|
const data = await client.send(command);
|
|
177
177
|
// process data.
|
|
178
178
|
} catch (error) {
|
|
179
|
-
const { requestId, cfId, extendedRequestId } = error
|
|
179
|
+
const { requestId, cfId, extendedRequestId } = error.$$metadata;
|
|
180
180
|
console.log({ requestId, cfId, extendedRequestId });
|
|
181
181
|
/**
|
|
182
182
|
* The keys within exceptions are also parsed.
|
|
@@ -224,7 +224,6 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
224
224
|
...output,
|
|
225
225
|
body: await parseBody(output.body, context),
|
|
226
226
|
};
|
|
227
|
-
let response;
|
|
228
227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
229
228
|
switch (errorCode) {
|
|
230
229
|
case "CloudHsmInternalException":
|
|
@@ -238,14 +237,12 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
238
237
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
239
238
|
default:
|
|
240
239
|
const parsedBody = parsedOutput.body;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
$metadata,
|
|
240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
241
|
+
output,
|
|
242
|
+
parsedBody,
|
|
243
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
244
|
+
errorCode,
|
|
247
245
|
});
|
|
248
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
249
246
|
}
|
|
250
247
|
};
|
|
251
248
|
const deserializeAws_json1_1CreateHapgCommand = async (output, context) => {
|
|
@@ -267,7 +264,6 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
267
264
|
...output,
|
|
268
265
|
body: await parseBody(output.body, context),
|
|
269
266
|
};
|
|
270
|
-
let response;
|
|
271
267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
268
|
switch (errorCode) {
|
|
273
269
|
case "CloudHsmInternalException":
|
|
@@ -281,14 +277,12 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
281
277
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
282
278
|
default:
|
|
283
279
|
const parsedBody = parsedOutput.body;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$metadata,
|
|
280
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
281
|
+
output,
|
|
282
|
+
parsedBody,
|
|
283
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
284
|
+
errorCode,
|
|
290
285
|
});
|
|
291
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
292
286
|
}
|
|
293
287
|
};
|
|
294
288
|
const deserializeAws_json1_1CreateHsmCommand = async (output, context) => {
|
|
@@ -310,7 +304,6 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
310
304
|
...output,
|
|
311
305
|
body: await parseBody(output.body, context),
|
|
312
306
|
};
|
|
313
|
-
let response;
|
|
314
307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
308
|
switch (errorCode) {
|
|
316
309
|
case "CloudHsmInternalException":
|
|
@@ -324,14 +317,12 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
324
317
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
325
318
|
default:
|
|
326
319
|
const parsedBody = parsedOutput.body;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
$metadata,
|
|
320
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
321
|
+
output,
|
|
322
|
+
parsedBody,
|
|
323
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
324
|
+
errorCode,
|
|
333
325
|
});
|
|
334
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
335
326
|
}
|
|
336
327
|
};
|
|
337
328
|
const deserializeAws_json1_1CreateLunaClientCommand = async (output, context) => {
|
|
@@ -353,7 +344,6 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
353
344
|
...output,
|
|
354
345
|
body: await parseBody(output.body, context),
|
|
355
346
|
};
|
|
356
|
-
let response;
|
|
357
347
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
358
348
|
switch (errorCode) {
|
|
359
349
|
case "CloudHsmInternalException":
|
|
@@ -367,14 +357,12 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
367
357
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
368
358
|
default:
|
|
369
359
|
const parsedBody = parsedOutput.body;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
$metadata,
|
|
360
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
361
|
+
output,
|
|
362
|
+
parsedBody,
|
|
363
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
364
|
+
errorCode,
|
|
376
365
|
});
|
|
377
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
378
366
|
}
|
|
379
367
|
};
|
|
380
368
|
const deserializeAws_json1_1DeleteHapgCommand = async (output, context) => {
|
|
@@ -396,7 +384,6 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
396
384
|
...output,
|
|
397
385
|
body: await parseBody(output.body, context),
|
|
398
386
|
};
|
|
399
|
-
let response;
|
|
400
387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
401
388
|
switch (errorCode) {
|
|
402
389
|
case "CloudHsmInternalException":
|
|
@@ -410,14 +397,12 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
410
397
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
411
398
|
default:
|
|
412
399
|
const parsedBody = parsedOutput.body;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
$metadata,
|
|
400
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
401
|
+
output,
|
|
402
|
+
parsedBody,
|
|
403
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
404
|
+
errorCode,
|
|
419
405
|
});
|
|
420
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
421
406
|
}
|
|
422
407
|
};
|
|
423
408
|
const deserializeAws_json1_1DeleteHsmCommand = async (output, context) => {
|
|
@@ -439,7 +424,6 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
439
424
|
...output,
|
|
440
425
|
body: await parseBody(output.body, context),
|
|
441
426
|
};
|
|
442
|
-
let response;
|
|
443
427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
428
|
switch (errorCode) {
|
|
445
429
|
case "CloudHsmInternalException":
|
|
@@ -453,14 +437,12 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
453
437
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
454
438
|
default:
|
|
455
439
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
$metadata,
|
|
440
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
441
|
+
output,
|
|
442
|
+
parsedBody,
|
|
443
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
444
|
+
errorCode,
|
|
462
445
|
});
|
|
463
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
464
446
|
}
|
|
465
447
|
};
|
|
466
448
|
const deserializeAws_json1_1DeleteLunaClientCommand = async (output, context) => {
|
|
@@ -482,7 +464,6 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
482
464
|
...output,
|
|
483
465
|
body: await parseBody(output.body, context),
|
|
484
466
|
};
|
|
485
|
-
let response;
|
|
486
467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
468
|
switch (errorCode) {
|
|
488
469
|
case "CloudHsmInternalException":
|
|
@@ -496,14 +477,12 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
496
477
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
497
478
|
default:
|
|
498
479
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
$metadata,
|
|
480
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
481
|
+
output,
|
|
482
|
+
parsedBody,
|
|
483
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
484
|
+
errorCode,
|
|
505
485
|
});
|
|
506
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
507
486
|
}
|
|
508
487
|
};
|
|
509
488
|
const deserializeAws_json1_1DescribeHapgCommand = async (output, context) => {
|
|
@@ -525,7 +504,6 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
525
504
|
...output,
|
|
526
505
|
body: await parseBody(output.body, context),
|
|
527
506
|
};
|
|
528
|
-
let response;
|
|
529
507
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
508
|
switch (errorCode) {
|
|
531
509
|
case "CloudHsmInternalException":
|
|
@@ -539,14 +517,12 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
539
517
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
540
518
|
default:
|
|
541
519
|
const parsedBody = parsedOutput.body;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
$metadata,
|
|
520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
521
|
+
output,
|
|
522
|
+
parsedBody,
|
|
523
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
524
|
+
errorCode,
|
|
548
525
|
});
|
|
549
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
550
526
|
}
|
|
551
527
|
};
|
|
552
528
|
const deserializeAws_json1_1DescribeHsmCommand = async (output, context) => {
|
|
@@ -568,7 +544,6 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
568
544
|
...output,
|
|
569
545
|
body: await parseBody(output.body, context),
|
|
570
546
|
};
|
|
571
|
-
let response;
|
|
572
547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
548
|
switch (errorCode) {
|
|
574
549
|
case "CloudHsmInternalException":
|
|
@@ -582,14 +557,12 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
582
557
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
583
558
|
default:
|
|
584
559
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
$metadata,
|
|
560
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
561
|
+
output,
|
|
562
|
+
parsedBody,
|
|
563
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
564
|
+
errorCode,
|
|
591
565
|
});
|
|
592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
593
566
|
}
|
|
594
567
|
};
|
|
595
568
|
const deserializeAws_json1_1DescribeLunaClientCommand = async (output, context) => {
|
|
@@ -611,7 +584,6 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
611
584
|
...output,
|
|
612
585
|
body: await parseBody(output.body, context),
|
|
613
586
|
};
|
|
614
|
-
let response;
|
|
615
587
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
588
|
switch (errorCode) {
|
|
617
589
|
case "CloudHsmInternalException":
|
|
@@ -625,14 +597,12 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
625
597
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
626
598
|
default:
|
|
627
599
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
$metadata,
|
|
600
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
601
|
+
output,
|
|
602
|
+
parsedBody,
|
|
603
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
604
|
+
errorCode,
|
|
634
605
|
});
|
|
635
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
636
606
|
}
|
|
637
607
|
};
|
|
638
608
|
const deserializeAws_json1_1GetConfigCommand = async (output, context) => {
|
|
@@ -654,7 +624,6 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
654
624
|
...output,
|
|
655
625
|
body: await parseBody(output.body, context),
|
|
656
626
|
};
|
|
657
|
-
let response;
|
|
658
627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
628
|
switch (errorCode) {
|
|
660
629
|
case "CloudHsmInternalException":
|
|
@@ -668,14 +637,12 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
668
637
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
669
638
|
default:
|
|
670
639
|
const parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
$metadata,
|
|
640
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
641
|
+
output,
|
|
642
|
+
parsedBody,
|
|
643
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
644
|
+
errorCode,
|
|
677
645
|
});
|
|
678
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
679
646
|
}
|
|
680
647
|
};
|
|
681
648
|
const deserializeAws_json1_1ListAvailableZonesCommand = async (output, context) => {
|
|
@@ -697,7 +664,6 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
697
664
|
...output,
|
|
698
665
|
body: await parseBody(output.body, context),
|
|
699
666
|
};
|
|
700
|
-
let response;
|
|
701
667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
668
|
switch (errorCode) {
|
|
703
669
|
case "CloudHsmInternalException":
|
|
@@ -711,14 +677,12 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
711
677
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
712
678
|
default:
|
|
713
679
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
$metadata,
|
|
680
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
681
|
+
output,
|
|
682
|
+
parsedBody,
|
|
683
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
684
|
+
errorCode,
|
|
720
685
|
});
|
|
721
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
722
686
|
}
|
|
723
687
|
};
|
|
724
688
|
const deserializeAws_json1_1ListHapgsCommand = async (output, context) => {
|
|
@@ -740,7 +704,6 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
740
704
|
...output,
|
|
741
705
|
body: await parseBody(output.body, context),
|
|
742
706
|
};
|
|
743
|
-
let response;
|
|
744
707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
708
|
switch (errorCode) {
|
|
746
709
|
case "CloudHsmInternalException":
|
|
@@ -754,14 +717,12 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
754
717
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
755
718
|
default:
|
|
756
719
|
const parsedBody = parsedOutput.body;
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
$metadata,
|
|
720
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
721
|
+
output,
|
|
722
|
+
parsedBody,
|
|
723
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
724
|
+
errorCode,
|
|
763
725
|
});
|
|
764
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
765
726
|
}
|
|
766
727
|
};
|
|
767
728
|
const deserializeAws_json1_1ListHsmsCommand = async (output, context) => {
|
|
@@ -783,7 +744,6 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
783
744
|
...output,
|
|
784
745
|
body: await parseBody(output.body, context),
|
|
785
746
|
};
|
|
786
|
-
let response;
|
|
787
747
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
748
|
switch (errorCode) {
|
|
789
749
|
case "CloudHsmInternalException":
|
|
@@ -797,14 +757,12 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
797
757
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
798
758
|
default:
|
|
799
759
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
$metadata,
|
|
760
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
761
|
+
output,
|
|
762
|
+
parsedBody,
|
|
763
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
764
|
+
errorCode,
|
|
806
765
|
});
|
|
807
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
808
766
|
}
|
|
809
767
|
};
|
|
810
768
|
const deserializeAws_json1_1ListLunaClientsCommand = async (output, context) => {
|
|
@@ -826,7 +784,6 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
826
784
|
...output,
|
|
827
785
|
body: await parseBody(output.body, context),
|
|
828
786
|
};
|
|
829
|
-
let response;
|
|
830
787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
788
|
switch (errorCode) {
|
|
832
789
|
case "CloudHsmInternalException":
|
|
@@ -840,14 +797,12 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
840
797
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
841
798
|
default:
|
|
842
799
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
$metadata,
|
|
800
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
801
|
+
output,
|
|
802
|
+
parsedBody,
|
|
803
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
804
|
+
errorCode,
|
|
849
805
|
});
|
|
850
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
851
806
|
}
|
|
852
807
|
};
|
|
853
808
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -869,7 +824,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
869
824
|
...output,
|
|
870
825
|
body: await parseBody(output.body, context),
|
|
871
826
|
};
|
|
872
|
-
let response;
|
|
873
827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
828
|
switch (errorCode) {
|
|
875
829
|
case "CloudHsmInternalException":
|
|
@@ -883,14 +837,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
883
837
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
884
838
|
default:
|
|
885
839
|
const parsedBody = parsedOutput.body;
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
$metadata,
|
|
840
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
841
|
+
output,
|
|
842
|
+
parsedBody,
|
|
843
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
844
|
+
errorCode,
|
|
892
845
|
});
|
|
893
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
894
846
|
}
|
|
895
847
|
};
|
|
896
848
|
const deserializeAws_json1_1ModifyHapgCommand = async (output, context) => {
|
|
@@ -912,7 +864,6 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
912
864
|
...output,
|
|
913
865
|
body: await parseBody(output.body, context),
|
|
914
866
|
};
|
|
915
|
-
let response;
|
|
916
867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
868
|
switch (errorCode) {
|
|
918
869
|
case "CloudHsmInternalException":
|
|
@@ -926,14 +877,12 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
926
877
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
927
878
|
default:
|
|
928
879
|
const parsedBody = parsedOutput.body;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
$metadata,
|
|
880
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
881
|
+
output,
|
|
882
|
+
parsedBody,
|
|
883
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
884
|
+
errorCode,
|
|
935
885
|
});
|
|
936
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
937
886
|
}
|
|
938
887
|
};
|
|
939
888
|
const deserializeAws_json1_1ModifyHsmCommand = async (output, context) => {
|
|
@@ -955,7 +904,6 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
955
904
|
...output,
|
|
956
905
|
body: await parseBody(output.body, context),
|
|
957
906
|
};
|
|
958
|
-
let response;
|
|
959
907
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
908
|
switch (errorCode) {
|
|
961
909
|
case "CloudHsmInternalException":
|
|
@@ -969,14 +917,12 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
969
917
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
970
918
|
default:
|
|
971
919
|
const parsedBody = parsedOutput.body;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
$metadata,
|
|
920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
921
|
+
output,
|
|
922
|
+
parsedBody,
|
|
923
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
924
|
+
errorCode,
|
|
978
925
|
});
|
|
979
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
980
926
|
}
|
|
981
927
|
};
|
|
982
928
|
const deserializeAws_json1_1ModifyLunaClientCommand = async (output, context) => {
|
|
@@ -998,7 +944,6 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
998
944
|
...output,
|
|
999
945
|
body: await parseBody(output.body, context),
|
|
1000
946
|
};
|
|
1001
|
-
let response;
|
|
1002
947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
948
|
switch (errorCode) {
|
|
1004
949
|
case "CloudHsmServiceException":
|
|
@@ -1006,14 +951,12 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
1006
951
|
throw await deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context);
|
|
1007
952
|
default:
|
|
1008
953
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
$metadata,
|
|
954
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
955
|
+
output,
|
|
956
|
+
parsedBody,
|
|
957
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
958
|
+
errorCode,
|
|
1015
959
|
});
|
|
1016
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1017
960
|
}
|
|
1018
961
|
};
|
|
1019
962
|
const deserializeAws_json1_1RemoveTagsFromResourceCommand = async (output, context) => {
|
|
@@ -1035,7 +978,6 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
1035
978
|
...output,
|
|
1036
979
|
body: await parseBody(output.body, context),
|
|
1037
980
|
};
|
|
1038
|
-
let response;
|
|
1039
981
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
982
|
switch (errorCode) {
|
|
1041
983
|
case "CloudHsmInternalException":
|
|
@@ -1049,14 +991,12 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
1049
991
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1050
992
|
default:
|
|
1051
993
|
const parsedBody = parsedOutput.body;
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
$metadata,
|
|
994
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
995
|
+
output,
|
|
996
|
+
parsedBody,
|
|
997
|
+
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
998
|
+
errorCode,
|
|
1058
999
|
});
|
|
1059
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1060
1000
|
}
|
|
1061
1001
|
};
|
|
1062
1002
|
const deserializeAws_json1_1CloudHsmInternalExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1158,9 +1098,6 @@ const serializeAws_json1_1HapgList = (input, context) => {
|
|
|
1158
1098
|
return input
|
|
1159
1099
|
.filter((e) => e != null)
|
|
1160
1100
|
.map((entry) => {
|
|
1161
|
-
if (entry === null) {
|
|
1162
|
-
return null;
|
|
1163
|
-
}
|
|
1164
1101
|
return entry;
|
|
1165
1102
|
});
|
|
1166
1103
|
};
|
|
@@ -1216,9 +1153,6 @@ const serializeAws_json1_1PartitionSerialList = (input, context) => {
|
|
|
1216
1153
|
return input
|
|
1217
1154
|
.filter((e) => e != null)
|
|
1218
1155
|
.map((entry) => {
|
|
1219
|
-
if (entry === null) {
|
|
1220
|
-
return null;
|
|
1221
|
-
}
|
|
1222
1156
|
return entry;
|
|
1223
1157
|
});
|
|
1224
1158
|
};
|
|
@@ -1238,9 +1172,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
1238
1172
|
return input
|
|
1239
1173
|
.filter((e) => e != null)
|
|
1240
1174
|
.map((entry) => {
|
|
1241
|
-
if (entry === null) {
|
|
1242
|
-
return null;
|
|
1243
|
-
}
|
|
1244
1175
|
return entry;
|
|
1245
1176
|
});
|
|
1246
1177
|
};
|
|
@@ -1248,9 +1179,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1248
1179
|
return input
|
|
1249
1180
|
.filter((e) => e != null)
|
|
1250
1181
|
.map((entry) => {
|
|
1251
|
-
if (entry === null) {
|
|
1252
|
-
return null;
|
|
1253
|
-
}
|
|
1254
1182
|
return serializeAws_json1_1Tag(entry, context);
|
|
1255
1183
|
});
|
|
1256
1184
|
};
|