@aws-sdk/client-cloudhsm 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +153 -153
- package/dist-es/protocols/Aws_json1_1.js +130 -130
- package/package.json +26 -26
|
@@ -225,8 +225,7 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
225
225
|
body: await parseBody(output.body, context),
|
|
226
226
|
};
|
|
227
227
|
let response;
|
|
228
|
-
|
|
229
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
228
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
230
229
|
switch (errorCode) {
|
|
231
230
|
case "CloudHsmInternalException":
|
|
232
231
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -239,10 +238,12 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
239
238
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
240
239
|
default:
|
|
241
240
|
const parsedBody = parsedOutput.body;
|
|
241
|
+
const $metadata = deserializeMetadata(output);
|
|
242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
242
243
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
243
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
244
245
|
$fault: "client",
|
|
245
|
-
$metadata
|
|
246
|
+
$metadata,
|
|
246
247
|
});
|
|
247
248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
248
249
|
}
|
|
@@ -267,8 +268,7 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
267
268
|
body: await parseBody(output.body, context),
|
|
268
269
|
};
|
|
269
270
|
let response;
|
|
270
|
-
|
|
271
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
272
|
switch (errorCode) {
|
|
273
273
|
case "CloudHsmInternalException":
|
|
274
274
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -281,10 +281,12 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
|
|
|
281
281
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
282
282
|
default:
|
|
283
283
|
const parsedBody = parsedOutput.body;
|
|
284
|
+
const $metadata = deserializeMetadata(output);
|
|
285
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
284
286
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
285
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
287
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
286
288
|
$fault: "client",
|
|
287
|
-
$metadata
|
|
289
|
+
$metadata,
|
|
288
290
|
});
|
|
289
291
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
290
292
|
}
|
|
@@ -309,8 +311,7 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
309
311
|
body: await parseBody(output.body, context),
|
|
310
312
|
};
|
|
311
313
|
let response;
|
|
312
|
-
|
|
313
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
314
315
|
switch (errorCode) {
|
|
315
316
|
case "CloudHsmInternalException":
|
|
316
317
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -323,10 +324,12 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
|
|
|
323
324
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
324
325
|
default:
|
|
325
326
|
const parsedBody = parsedOutput.body;
|
|
327
|
+
const $metadata = deserializeMetadata(output);
|
|
328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
326
329
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
327
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
328
331
|
$fault: "client",
|
|
329
|
-
$metadata
|
|
332
|
+
$metadata,
|
|
330
333
|
});
|
|
331
334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
332
335
|
}
|
|
@@ -351,8 +354,7 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
351
354
|
body: await parseBody(output.body, context),
|
|
352
355
|
};
|
|
353
356
|
let response;
|
|
354
|
-
|
|
355
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
358
|
switch (errorCode) {
|
|
357
359
|
case "CloudHsmInternalException":
|
|
358
360
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -365,10 +367,12 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
|
|
|
365
367
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
366
368
|
default:
|
|
367
369
|
const parsedBody = parsedOutput.body;
|
|
370
|
+
const $metadata = deserializeMetadata(output);
|
|
371
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
368
372
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
373
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
370
374
|
$fault: "client",
|
|
371
|
-
$metadata
|
|
375
|
+
$metadata,
|
|
372
376
|
});
|
|
373
377
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
374
378
|
}
|
|
@@ -393,8 +397,7 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
393
397
|
body: await parseBody(output.body, context),
|
|
394
398
|
};
|
|
395
399
|
let response;
|
|
396
|
-
|
|
397
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
401
|
switch (errorCode) {
|
|
399
402
|
case "CloudHsmInternalException":
|
|
400
403
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -407,10 +410,12 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
|
|
|
407
410
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
408
411
|
default:
|
|
409
412
|
const parsedBody = parsedOutput.body;
|
|
413
|
+
const $metadata = deserializeMetadata(output);
|
|
414
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
410
415
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
412
417
|
$fault: "client",
|
|
413
|
-
$metadata
|
|
418
|
+
$metadata,
|
|
414
419
|
});
|
|
415
420
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
416
421
|
}
|
|
@@ -435,8 +440,7 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
435
440
|
body: await parseBody(output.body, context),
|
|
436
441
|
};
|
|
437
442
|
let response;
|
|
438
|
-
|
|
439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
440
444
|
switch (errorCode) {
|
|
441
445
|
case "CloudHsmInternalException":
|
|
442
446
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -449,10 +453,12 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
|
|
|
449
453
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
450
454
|
default:
|
|
451
455
|
const parsedBody = parsedOutput.body;
|
|
456
|
+
const $metadata = deserializeMetadata(output);
|
|
457
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
452
458
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
454
460
|
$fault: "client",
|
|
455
|
-
$metadata
|
|
461
|
+
$metadata,
|
|
456
462
|
});
|
|
457
463
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
458
464
|
}
|
|
@@ -477,8 +483,7 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
477
483
|
body: await parseBody(output.body, context),
|
|
478
484
|
};
|
|
479
485
|
let response;
|
|
480
|
-
|
|
481
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
487
|
switch (errorCode) {
|
|
483
488
|
case "CloudHsmInternalException":
|
|
484
489
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -491,10 +496,12 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
|
|
|
491
496
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
492
497
|
default:
|
|
493
498
|
const parsedBody = parsedOutput.body;
|
|
499
|
+
const $metadata = deserializeMetadata(output);
|
|
500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
494
501
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
495
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
496
503
|
$fault: "client",
|
|
497
|
-
$metadata
|
|
504
|
+
$metadata,
|
|
498
505
|
});
|
|
499
506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
500
507
|
}
|
|
@@ -519,8 +526,7 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
519
526
|
body: await parseBody(output.body, context),
|
|
520
527
|
};
|
|
521
528
|
let response;
|
|
522
|
-
|
|
523
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
530
|
switch (errorCode) {
|
|
525
531
|
case "CloudHsmInternalException":
|
|
526
532
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -533,10 +539,12 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
|
|
|
533
539
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
534
540
|
default:
|
|
535
541
|
const parsedBody = parsedOutput.body;
|
|
542
|
+
const $metadata = deserializeMetadata(output);
|
|
543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
536
544
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
538
546
|
$fault: "client",
|
|
539
|
-
$metadata
|
|
547
|
+
$metadata,
|
|
540
548
|
});
|
|
541
549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
542
550
|
}
|
|
@@ -561,8 +569,7 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
561
569
|
body: await parseBody(output.body, context),
|
|
562
570
|
};
|
|
563
571
|
let response;
|
|
564
|
-
|
|
565
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
573
|
switch (errorCode) {
|
|
567
574
|
case "CloudHsmInternalException":
|
|
568
575
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -575,10 +582,12 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
|
|
|
575
582
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
576
583
|
default:
|
|
577
584
|
const parsedBody = parsedOutput.body;
|
|
585
|
+
const $metadata = deserializeMetadata(output);
|
|
586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
578
587
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
580
589
|
$fault: "client",
|
|
581
|
-
$metadata
|
|
590
|
+
$metadata,
|
|
582
591
|
});
|
|
583
592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
584
593
|
}
|
|
@@ -603,8 +612,7 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
603
612
|
body: await parseBody(output.body, context),
|
|
604
613
|
};
|
|
605
614
|
let response;
|
|
606
|
-
|
|
607
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
616
|
switch (errorCode) {
|
|
609
617
|
case "CloudHsmInternalException":
|
|
610
618
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -617,10 +625,12 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
|
|
|
617
625
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
618
626
|
default:
|
|
619
627
|
const parsedBody = parsedOutput.body;
|
|
628
|
+
const $metadata = deserializeMetadata(output);
|
|
629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
620
630
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
622
632
|
$fault: "client",
|
|
623
|
-
$metadata
|
|
633
|
+
$metadata,
|
|
624
634
|
});
|
|
625
635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
626
636
|
}
|
|
@@ -645,8 +655,7 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
645
655
|
body: await parseBody(output.body, context),
|
|
646
656
|
};
|
|
647
657
|
let response;
|
|
648
|
-
|
|
649
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
659
|
switch (errorCode) {
|
|
651
660
|
case "CloudHsmInternalException":
|
|
652
661
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -659,10 +668,12 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
|
|
|
659
668
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
660
669
|
default:
|
|
661
670
|
const parsedBody = parsedOutput.body;
|
|
671
|
+
const $metadata = deserializeMetadata(output);
|
|
672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
662
673
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
664
675
|
$fault: "client",
|
|
665
|
-
$metadata
|
|
676
|
+
$metadata,
|
|
666
677
|
});
|
|
667
678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
668
679
|
}
|
|
@@ -687,8 +698,7 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
687
698
|
body: await parseBody(output.body, context),
|
|
688
699
|
};
|
|
689
700
|
let response;
|
|
690
|
-
|
|
691
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
702
|
switch (errorCode) {
|
|
693
703
|
case "CloudHsmInternalException":
|
|
694
704
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -701,10 +711,12 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
|
|
|
701
711
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
702
712
|
default:
|
|
703
713
|
const parsedBody = parsedOutput.body;
|
|
714
|
+
const $metadata = deserializeMetadata(output);
|
|
715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
704
716
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
705
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
706
718
|
$fault: "client",
|
|
707
|
-
$metadata
|
|
719
|
+
$metadata,
|
|
708
720
|
});
|
|
709
721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
710
722
|
}
|
|
@@ -729,8 +741,7 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
729
741
|
body: await parseBody(output.body, context),
|
|
730
742
|
};
|
|
731
743
|
let response;
|
|
732
|
-
|
|
733
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
745
|
switch (errorCode) {
|
|
735
746
|
case "CloudHsmInternalException":
|
|
736
747
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -743,10 +754,12 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
|
|
|
743
754
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
744
755
|
default:
|
|
745
756
|
const parsedBody = parsedOutput.body;
|
|
757
|
+
const $metadata = deserializeMetadata(output);
|
|
758
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
746
759
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
760
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
748
761
|
$fault: "client",
|
|
749
|
-
$metadata
|
|
762
|
+
$metadata,
|
|
750
763
|
});
|
|
751
764
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
752
765
|
}
|
|
@@ -771,8 +784,7 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
771
784
|
body: await parseBody(output.body, context),
|
|
772
785
|
};
|
|
773
786
|
let response;
|
|
774
|
-
|
|
775
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
788
|
switch (errorCode) {
|
|
777
789
|
case "CloudHsmInternalException":
|
|
778
790
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -785,10 +797,12 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
|
|
|
785
797
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
786
798
|
default:
|
|
787
799
|
const parsedBody = parsedOutput.body;
|
|
800
|
+
const $metadata = deserializeMetadata(output);
|
|
801
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
788
802
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
803
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
790
804
|
$fault: "client",
|
|
791
|
-
$metadata
|
|
805
|
+
$metadata,
|
|
792
806
|
});
|
|
793
807
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
794
808
|
}
|
|
@@ -813,8 +827,7 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
813
827
|
body: await parseBody(output.body, context),
|
|
814
828
|
};
|
|
815
829
|
let response;
|
|
816
|
-
|
|
817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
831
|
switch (errorCode) {
|
|
819
832
|
case "CloudHsmInternalException":
|
|
820
833
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -827,10 +840,12 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
|
|
|
827
840
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
828
841
|
default:
|
|
829
842
|
const parsedBody = parsedOutput.body;
|
|
843
|
+
const $metadata = deserializeMetadata(output);
|
|
844
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
830
845
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
831
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
832
847
|
$fault: "client",
|
|
833
|
-
$metadata
|
|
848
|
+
$metadata,
|
|
834
849
|
});
|
|
835
850
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
836
851
|
}
|
|
@@ -855,8 +870,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
855
870
|
body: await parseBody(output.body, context),
|
|
856
871
|
};
|
|
857
872
|
let response;
|
|
858
|
-
|
|
859
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
874
|
switch (errorCode) {
|
|
861
875
|
case "CloudHsmInternalException":
|
|
862
876
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -869,10 +883,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
869
883
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
870
884
|
default:
|
|
871
885
|
const parsedBody = parsedOutput.body;
|
|
886
|
+
const $metadata = deserializeMetadata(output);
|
|
887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
872
888
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
873
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
874
890
|
$fault: "client",
|
|
875
|
-
$metadata
|
|
891
|
+
$metadata,
|
|
876
892
|
});
|
|
877
893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
878
894
|
}
|
|
@@ -897,8 +913,7 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
897
913
|
body: await parseBody(output.body, context),
|
|
898
914
|
};
|
|
899
915
|
let response;
|
|
900
|
-
|
|
901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
917
|
switch (errorCode) {
|
|
903
918
|
case "CloudHsmInternalException":
|
|
904
919
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -911,10 +926,12 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
|
|
|
911
926
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
912
927
|
default:
|
|
913
928
|
const parsedBody = parsedOutput.body;
|
|
929
|
+
const $metadata = deserializeMetadata(output);
|
|
930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
914
931
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
915
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
916
933
|
$fault: "client",
|
|
917
|
-
$metadata
|
|
934
|
+
$metadata,
|
|
918
935
|
});
|
|
919
936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
920
937
|
}
|
|
@@ -939,8 +956,7 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
939
956
|
body: await parseBody(output.body, context),
|
|
940
957
|
};
|
|
941
958
|
let response;
|
|
942
|
-
|
|
943
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
960
|
switch (errorCode) {
|
|
945
961
|
case "CloudHsmInternalException":
|
|
946
962
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -953,10 +969,12 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
|
|
|
953
969
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
954
970
|
default:
|
|
955
971
|
const parsedBody = parsedOutput.body;
|
|
972
|
+
const $metadata = deserializeMetadata(output);
|
|
973
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
956
974
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
957
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
975
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
958
976
|
$fault: "client",
|
|
959
|
-
$metadata
|
|
977
|
+
$metadata,
|
|
960
978
|
});
|
|
961
979
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
962
980
|
}
|
|
@@ -981,18 +999,19 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
|
|
|
981
999
|
body: await parseBody(output.body, context),
|
|
982
1000
|
};
|
|
983
1001
|
let response;
|
|
984
|
-
|
|
985
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
1003
|
switch (errorCode) {
|
|
987
1004
|
case "CloudHsmServiceException":
|
|
988
1005
|
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
989
1006
|
throw await deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context);
|
|
990
1007
|
default:
|
|
991
1008
|
const parsedBody = parsedOutput.body;
|
|
1009
|
+
const $metadata = deserializeMetadata(output);
|
|
1010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
992
1011
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
993
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
994
1013
|
$fault: "client",
|
|
995
|
-
$metadata
|
|
1014
|
+
$metadata,
|
|
996
1015
|
});
|
|
997
1016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
998
1017
|
}
|
|
@@ -1017,8 +1036,7 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
1017
1036
|
body: await parseBody(output.body, context),
|
|
1018
1037
|
};
|
|
1019
1038
|
let response;
|
|
1020
|
-
|
|
1021
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
1040
|
switch (errorCode) {
|
|
1023
1041
|
case "CloudHsmInternalException":
|
|
1024
1042
|
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
@@ -1031,10 +1049,12 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
1031
1049
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1032
1050
|
default:
|
|
1033
1051
|
const parsedBody = parsedOutput.body;
|
|
1052
|
+
const $metadata = deserializeMetadata(output);
|
|
1053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1034
1054
|
response = new CloudHSMServiceException_1.CloudHSMServiceException({
|
|
1035
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1036
1056
|
$fault: "client",
|
|
1037
|
-
$metadata
|
|
1057
|
+
$metadata,
|
|
1038
1058
|
});
|
|
1039
1059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1040
1060
|
}
|
|
@@ -1068,75 +1088,70 @@ const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutpu
|
|
|
1068
1088
|
};
|
|
1069
1089
|
const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => {
|
|
1070
1090
|
return {
|
|
1071
|
-
...(input.ResourceArn
|
|
1072
|
-
...(input.TagList
|
|
1073
|
-
input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
|
|
1091
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1092
|
+
...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
|
|
1074
1093
|
};
|
|
1075
1094
|
};
|
|
1076
1095
|
const serializeAws_json1_1CreateHapgRequest = (input, context) => {
|
|
1077
1096
|
return {
|
|
1078
|
-
...(input.Label
|
|
1097
|
+
...(input.Label != null && { Label: input.Label }),
|
|
1079
1098
|
};
|
|
1080
1099
|
};
|
|
1081
1100
|
const serializeAws_json1_1CreateHsmRequest = (input, context) => {
|
|
1082
1101
|
return {
|
|
1083
|
-
...(input.ClientToken
|
|
1084
|
-
...(input.EniIp
|
|
1085
|
-
...(input.ExternalId
|
|
1086
|
-
...(input.IamRoleArn
|
|
1087
|
-
...(input.SshKey
|
|
1088
|
-
...(input.SubnetId
|
|
1089
|
-
...(input.SubscriptionType
|
|
1090
|
-
|
|
1091
|
-
...(input.SyslogIp !== undefined && input.SyslogIp !== null && { SyslogIp: input.SyslogIp }),
|
|
1102
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
1103
|
+
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
1104
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
1105
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1106
|
+
...(input.SshKey != null && { SshKey: input.SshKey }),
|
|
1107
|
+
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
1108
|
+
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
1109
|
+
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1092
1110
|
};
|
|
1093
1111
|
};
|
|
1094
1112
|
const serializeAws_json1_1CreateLunaClientRequest = (input, context) => {
|
|
1095
1113
|
return {
|
|
1096
|
-
...(input.Certificate
|
|
1097
|
-
...(input.Label
|
|
1114
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1115
|
+
...(input.Label != null && { Label: input.Label }),
|
|
1098
1116
|
};
|
|
1099
1117
|
};
|
|
1100
1118
|
const serializeAws_json1_1DeleteHapgRequest = (input, context) => {
|
|
1101
1119
|
return {
|
|
1102
|
-
...(input.HapgArn
|
|
1120
|
+
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1103
1121
|
};
|
|
1104
1122
|
};
|
|
1105
1123
|
const serializeAws_json1_1DeleteHsmRequest = (input, context) => {
|
|
1106
1124
|
return {
|
|
1107
|
-
...(input.HsmArn
|
|
1125
|
+
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1108
1126
|
};
|
|
1109
1127
|
};
|
|
1110
1128
|
const serializeAws_json1_1DeleteLunaClientRequest = (input, context) => {
|
|
1111
1129
|
return {
|
|
1112
|
-
...(input.ClientArn
|
|
1130
|
+
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1113
1131
|
};
|
|
1114
1132
|
};
|
|
1115
1133
|
const serializeAws_json1_1DescribeHapgRequest = (input, context) => {
|
|
1116
1134
|
return {
|
|
1117
|
-
...(input.HapgArn
|
|
1135
|
+
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1118
1136
|
};
|
|
1119
1137
|
};
|
|
1120
1138
|
const serializeAws_json1_1DescribeHsmRequest = (input, context) => {
|
|
1121
1139
|
return {
|
|
1122
|
-
...(input.HsmArn
|
|
1123
|
-
...(input.HsmSerialNumber
|
|
1124
|
-
input.HsmSerialNumber !== null && { HsmSerialNumber: input.HsmSerialNumber }),
|
|
1140
|
+
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1141
|
+
...(input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }),
|
|
1125
1142
|
};
|
|
1126
1143
|
};
|
|
1127
1144
|
const serializeAws_json1_1DescribeLunaClientRequest = (input, context) => {
|
|
1128
1145
|
return {
|
|
1129
|
-
...(input.CertificateFingerprint
|
|
1130
|
-
|
|
1131
|
-
...(input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }),
|
|
1146
|
+
...(input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint }),
|
|
1147
|
+
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1132
1148
|
};
|
|
1133
1149
|
};
|
|
1134
1150
|
const serializeAws_json1_1GetConfigRequest = (input, context) => {
|
|
1135
1151
|
return {
|
|
1136
|
-
...(input.ClientArn
|
|
1137
|
-
...(input.ClientVersion
|
|
1138
|
-
...(input.HapgList
|
|
1139
|
-
input.HapgList !== null && { HapgList: serializeAws_json1_1HapgList(input.HapgList, context) }),
|
|
1152
|
+
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1153
|
+
...(input.ClientVersion != null && { ClientVersion: input.ClientVersion }),
|
|
1154
|
+
...(input.HapgList != null && { HapgList: serializeAws_json1_1HapgList(input.HapgList, context) }),
|
|
1140
1155
|
};
|
|
1141
1156
|
};
|
|
1142
1157
|
const serializeAws_json1_1HapgList = (input, context) => {
|
|
@@ -1154,48 +1169,47 @@ const serializeAws_json1_1ListAvailableZonesRequest = (input, context) => {
|
|
|
1154
1169
|
};
|
|
1155
1170
|
const serializeAws_json1_1ListHapgsRequest = (input, context) => {
|
|
1156
1171
|
return {
|
|
1157
|
-
...(input.NextToken
|
|
1172
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1158
1173
|
};
|
|
1159
1174
|
};
|
|
1160
1175
|
const serializeAws_json1_1ListHsmsRequest = (input, context) => {
|
|
1161
1176
|
return {
|
|
1162
|
-
...(input.NextToken
|
|
1177
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1163
1178
|
};
|
|
1164
1179
|
};
|
|
1165
1180
|
const serializeAws_json1_1ListLunaClientsRequest = (input, context) => {
|
|
1166
1181
|
return {
|
|
1167
|
-
...(input.NextToken
|
|
1182
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1168
1183
|
};
|
|
1169
1184
|
};
|
|
1170
1185
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
1171
1186
|
return {
|
|
1172
|
-
...(input.ResourceArn
|
|
1187
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1173
1188
|
};
|
|
1174
1189
|
};
|
|
1175
1190
|
const serializeAws_json1_1ModifyHapgRequest = (input, context) => {
|
|
1176
1191
|
return {
|
|
1177
|
-
...(input.HapgArn
|
|
1178
|
-
...(input.Label
|
|
1179
|
-
...(input.PartitionSerialList
|
|
1180
|
-
input.PartitionSerialList !== null && {
|
|
1192
|
+
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1193
|
+
...(input.Label != null && { Label: input.Label }),
|
|
1194
|
+
...(input.PartitionSerialList != null && {
|
|
1181
1195
|
PartitionSerialList: serializeAws_json1_1PartitionSerialList(input.PartitionSerialList, context),
|
|
1182
1196
|
}),
|
|
1183
1197
|
};
|
|
1184
1198
|
};
|
|
1185
1199
|
const serializeAws_json1_1ModifyHsmRequest = (input, context) => {
|
|
1186
1200
|
return {
|
|
1187
|
-
...(input.EniIp
|
|
1188
|
-
...(input.ExternalId
|
|
1189
|
-
...(input.HsmArn
|
|
1190
|
-
...(input.IamRoleArn
|
|
1191
|
-
...(input.SubnetId
|
|
1192
|
-
...(input.SyslogIp
|
|
1201
|
+
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
1202
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
1203
|
+
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1204
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1205
|
+
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
1206
|
+
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1193
1207
|
};
|
|
1194
1208
|
};
|
|
1195
1209
|
const serializeAws_json1_1ModifyLunaClientRequest = (input, context) => {
|
|
1196
1210
|
return {
|
|
1197
|
-
...(input.Certificate
|
|
1198
|
-
...(input.ClientArn
|
|
1211
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1212
|
+
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1199
1213
|
};
|
|
1200
1214
|
};
|
|
1201
1215
|
const serializeAws_json1_1PartitionSerialList = (input, context) => {
|
|
@@ -1210,15 +1224,14 @@ const serializeAws_json1_1PartitionSerialList = (input, context) => {
|
|
|
1210
1224
|
};
|
|
1211
1225
|
const serializeAws_json1_1RemoveTagsFromResourceRequest = (input, context) => {
|
|
1212
1226
|
return {
|
|
1213
|
-
...(input.ResourceArn
|
|
1214
|
-
...(input.TagKeyList
|
|
1215
|
-
input.TagKeyList !== null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }),
|
|
1227
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1228
|
+
...(input.TagKeyList != null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }),
|
|
1216
1229
|
};
|
|
1217
1230
|
};
|
|
1218
1231
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
1219
1232
|
return {
|
|
1220
|
-
...(input.Key
|
|
1221
|
-
...(input.Value
|
|
1233
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1234
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1222
1235
|
};
|
|
1223
1236
|
};
|
|
1224
1237
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -1314,18 +1327,18 @@ const deserializeAws_json1_1DescribeHapgResponse = (output, context) => {
|
|
|
1314
1327
|
return {
|
|
1315
1328
|
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1316
1329
|
HapgSerial: (0, smithy_client_1.expectString)(output.HapgSerial),
|
|
1317
|
-
HsmsLastActionFailed: output.HsmsLastActionFailed
|
|
1330
|
+
HsmsLastActionFailed: output.HsmsLastActionFailed != null
|
|
1318
1331
|
? deserializeAws_json1_1HsmList(output.HsmsLastActionFailed, context)
|
|
1319
1332
|
: undefined,
|
|
1320
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion
|
|
1333
|
+
HsmsPendingDeletion: output.HsmsPendingDeletion != null
|
|
1321
1334
|
? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
|
|
1322
1335
|
: undefined,
|
|
1323
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration
|
|
1336
|
+
HsmsPendingRegistration: output.HsmsPendingRegistration != null
|
|
1324
1337
|
? deserializeAws_json1_1HsmList(output.HsmsPendingRegistration, context)
|
|
1325
1338
|
: undefined,
|
|
1326
1339
|
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1327
1340
|
LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
|
|
1328
|
-
PartitionSerialList: output.PartitionSerialList
|
|
1341
|
+
PartitionSerialList: output.PartitionSerialList != null
|
|
1329
1342
|
? deserializeAws_json1_1PartitionSerialList(output.PartitionSerialList, context)
|
|
1330
1343
|
: undefined,
|
|
1331
1344
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
@@ -1339,9 +1352,7 @@ const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
|
|
|
1339
1352
|
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1340
1353
|
HsmType: (0, smithy_client_1.expectString)(output.HsmType),
|
|
1341
1354
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1342
|
-
Partitions: output.Partitions
|
|
1343
|
-
? deserializeAws_json1_1PartitionList(output.Partitions, context)
|
|
1344
|
-
: undefined,
|
|
1355
|
+
Partitions: output.Partitions != null ? deserializeAws_json1_1PartitionList(output.Partitions, context) : undefined,
|
|
1345
1356
|
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
1346
1357
|
ServerCertLastUpdated: (0, smithy_client_1.expectString)(output.ServerCertLastUpdated),
|
|
1347
1358
|
ServerCertUri: (0, smithy_client_1.expectString)(output.ServerCertUri),
|
|
@@ -1404,40 +1415,30 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
|
1404
1415
|
};
|
|
1405
1416
|
const deserializeAws_json1_1ListAvailableZonesResponse = (output, context) => {
|
|
1406
1417
|
return {
|
|
1407
|
-
AZList: output.AZList
|
|
1408
|
-
? deserializeAws_json1_1AZList(output.AZList, context)
|
|
1409
|
-
: undefined,
|
|
1418
|
+
AZList: output.AZList != null ? deserializeAws_json1_1AZList(output.AZList, context) : undefined,
|
|
1410
1419
|
};
|
|
1411
1420
|
};
|
|
1412
1421
|
const deserializeAws_json1_1ListHapgsResponse = (output, context) => {
|
|
1413
1422
|
return {
|
|
1414
|
-
HapgList: output.HapgList
|
|
1415
|
-
? deserializeAws_json1_1HapgList(output.HapgList, context)
|
|
1416
|
-
: undefined,
|
|
1423
|
+
HapgList: output.HapgList != null ? deserializeAws_json1_1HapgList(output.HapgList, context) : undefined,
|
|
1417
1424
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1418
1425
|
};
|
|
1419
1426
|
};
|
|
1420
1427
|
const deserializeAws_json1_1ListHsmsResponse = (output, context) => {
|
|
1421
1428
|
return {
|
|
1422
|
-
HsmList: output.HsmList
|
|
1423
|
-
? deserializeAws_json1_1HsmList(output.HsmList, context)
|
|
1424
|
-
: undefined,
|
|
1429
|
+
HsmList: output.HsmList != null ? deserializeAws_json1_1HsmList(output.HsmList, context) : undefined,
|
|
1425
1430
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1426
1431
|
};
|
|
1427
1432
|
};
|
|
1428
1433
|
const deserializeAws_json1_1ListLunaClientsResponse = (output, context) => {
|
|
1429
1434
|
return {
|
|
1430
|
-
ClientList: output.ClientList
|
|
1431
|
-
? deserializeAws_json1_1ClientList(output.ClientList, context)
|
|
1432
|
-
: undefined,
|
|
1435
|
+
ClientList: output.ClientList != null ? deserializeAws_json1_1ClientList(output.ClientList, context) : undefined,
|
|
1433
1436
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1434
1437
|
};
|
|
1435
1438
|
};
|
|
1436
1439
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
1437
1440
|
return {
|
|
1438
|
-
TagList: output.TagList
|
|
1439
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
1440
|
-
: undefined,
|
|
1441
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
1441
1442
|
};
|
|
1442
1443
|
};
|
|
1443
1444
|
const deserializeAws_json1_1ModifyHapgResponse = (output, context) => {
|
|
@@ -1561,5 +1562,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1561
1562
|
if (data["__type"] !== undefined) {
|
|
1562
1563
|
return sanitizeErrorCode(data["__type"]);
|
|
1563
1564
|
}
|
|
1564
|
-
return "";
|
|
1565
1565
|
};
|