@aws-sdk/client-acm 3.118.1 → 3.128.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.
@@ -171,8 +171,7 @@ const deserializeAws_json1_1AddTagsToCertificateCommandError = async (output, co
171
171
  body: await parseBody(output.body, context),
172
172
  };
173
173
  let response;
174
- let errorCode = "UnknownError";
175
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
174
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
176
175
  switch (errorCode) {
177
176
  case "InvalidArnException":
178
177
  case "com.amazonaws.acm#InvalidArnException":
@@ -197,10 +196,12 @@ const deserializeAws_json1_1AddTagsToCertificateCommandError = async (output, co
197
196
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
198
197
  default:
199
198
  const parsedBody = parsedOutput.body;
199
+ const $metadata = deserializeMetadata(output);
200
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
200
201
  response = new ACMServiceException_1.ACMServiceException({
201
- name: parsedBody.code || parsedBody.Code || errorCode,
202
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
202
203
  $fault: "client",
203
- $metadata: deserializeMetadata(output),
204
+ $metadata,
204
205
  });
205
206
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
206
207
  }
@@ -222,8 +223,7 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
222
223
  body: await parseBody(output.body, context),
223
224
  };
224
225
  let response;
225
- let errorCode = "UnknownError";
226
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
226
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
227
227
  switch (errorCode) {
228
228
  case "InvalidArnException":
229
229
  case "com.amazonaws.acm#InvalidArnException":
@@ -236,10 +236,12 @@ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, conte
236
236
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
237
237
  default:
238
238
  const parsedBody = parsedOutput.body;
239
+ const $metadata = deserializeMetadata(output);
240
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
239
241
  response = new ACMServiceException_1.ACMServiceException({
240
- name: parsedBody.code || parsedBody.Code || errorCode,
242
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
241
243
  $fault: "client",
242
- $metadata: deserializeMetadata(output),
244
+ $metadata,
243
245
  });
244
246
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
245
247
  }
@@ -264,8 +266,7 @@ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, con
264
266
  body: await parseBody(output.body, context),
265
267
  };
266
268
  let response;
267
- let errorCode = "UnknownError";
268
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
269
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
269
270
  switch (errorCode) {
270
271
  case "InvalidArnException":
271
272
  case "com.amazonaws.acm#InvalidArnException":
@@ -275,10 +276,12 @@ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, con
275
276
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
276
277
  default:
277
278
  const parsedBody = parsedOutput.body;
279
+ const $metadata = deserializeMetadata(output);
280
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
278
281
  response = new ACMServiceException_1.ACMServiceException({
279
- name: parsedBody.code || parsedBody.Code || errorCode,
282
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
280
283
  $fault: "client",
281
- $metadata: deserializeMetadata(output),
284
+ $metadata,
282
285
  });
283
286
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
284
287
  }
@@ -303,8 +306,7 @@ const deserializeAws_json1_1ExportCertificateCommandError = async (output, conte
303
306
  body: await parseBody(output.body, context),
304
307
  };
305
308
  let response;
306
- let errorCode = "UnknownError";
307
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
309
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
308
310
  switch (errorCode) {
309
311
  case "InvalidArnException":
310
312
  case "com.amazonaws.acm#InvalidArnException":
@@ -317,10 +319,12 @@ const deserializeAws_json1_1ExportCertificateCommandError = async (output, conte
317
319
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
318
320
  default:
319
321
  const parsedBody = parsedOutput.body;
322
+ const $metadata = deserializeMetadata(output);
323
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
320
324
  response = new ACMServiceException_1.ACMServiceException({
321
- name: parsedBody.code || parsedBody.Code || errorCode,
325
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
322
326
  $fault: "client",
323
- $metadata: deserializeMetadata(output),
327
+ $metadata,
324
328
  });
325
329
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
326
330
  }
@@ -345,8 +349,7 @@ const deserializeAws_json1_1GetAccountConfigurationCommandError = async (output,
345
349
  body: await parseBody(output.body, context),
346
350
  };
347
351
  let response;
348
- let errorCode = "UnknownError";
349
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
352
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
350
353
  switch (errorCode) {
351
354
  case "AccessDeniedException":
352
355
  case "com.amazonaws.acm#AccessDeniedException":
@@ -356,10 +359,12 @@ const deserializeAws_json1_1GetAccountConfigurationCommandError = async (output,
356
359
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
357
360
  default:
358
361
  const parsedBody = parsedOutput.body;
362
+ const $metadata = deserializeMetadata(output);
363
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
359
364
  response = new ACMServiceException_1.ACMServiceException({
360
- name: parsedBody.code || parsedBody.Code || errorCode,
365
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
361
366
  $fault: "client",
362
- $metadata: deserializeMetadata(output),
367
+ $metadata,
363
368
  });
364
369
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
365
370
  }
@@ -384,8 +389,7 @@ const deserializeAws_json1_1GetCertificateCommandError = async (output, context)
384
389
  body: await parseBody(output.body, context),
385
390
  };
386
391
  let response;
387
- let errorCode = "UnknownError";
388
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
392
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
389
393
  switch (errorCode) {
390
394
  case "InvalidArnException":
391
395
  case "com.amazonaws.acm#InvalidArnException":
@@ -398,10 +402,12 @@ const deserializeAws_json1_1GetCertificateCommandError = async (output, context)
398
402
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
399
403
  default:
400
404
  const parsedBody = parsedOutput.body;
405
+ const $metadata = deserializeMetadata(output);
406
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
401
407
  response = new ACMServiceException_1.ACMServiceException({
402
- name: parsedBody.code || parsedBody.Code || errorCode,
408
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
403
409
  $fault: "client",
404
- $metadata: deserializeMetadata(output),
410
+ $metadata,
405
411
  });
406
412
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
407
413
  }
@@ -426,8 +432,7 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
426
432
  body: await parseBody(output.body, context),
427
433
  };
428
434
  let response;
429
- let errorCode = "UnknownError";
430
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
435
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
431
436
  switch (errorCode) {
432
437
  case "InvalidArnException":
433
438
  case "com.amazonaws.acm#InvalidArnException":
@@ -452,10 +457,12 @@ const deserializeAws_json1_1ImportCertificateCommandError = async (output, conte
452
457
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
453
458
  default:
454
459
  const parsedBody = parsedOutput.body;
460
+ const $metadata = deserializeMetadata(output);
461
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
455
462
  response = new ACMServiceException_1.ACMServiceException({
456
- name: parsedBody.code || parsedBody.Code || errorCode,
463
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
457
464
  $fault: "client",
458
- $metadata: deserializeMetadata(output),
465
+ $metadata,
459
466
  });
460
467
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
461
468
  }
@@ -480,18 +487,19 @@ const deserializeAws_json1_1ListCertificatesCommandError = async (output, contex
480
487
  body: await parseBody(output.body, context),
481
488
  };
482
489
  let response;
483
- let errorCode = "UnknownError";
484
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
490
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
485
491
  switch (errorCode) {
486
492
  case "InvalidArgsException":
487
493
  case "com.amazonaws.acm#InvalidArgsException":
488
494
  throw await deserializeAws_json1_1InvalidArgsExceptionResponse(parsedOutput, context);
489
495
  default:
490
496
  const parsedBody = parsedOutput.body;
497
+ const $metadata = deserializeMetadata(output);
498
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
491
499
  response = new ACMServiceException_1.ACMServiceException({
492
- name: parsedBody.code || parsedBody.Code || errorCode,
500
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
493
501
  $fault: "client",
494
- $metadata: deserializeMetadata(output),
502
+ $metadata,
495
503
  });
496
504
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
497
505
  }
@@ -516,8 +524,7 @@ const deserializeAws_json1_1ListTagsForCertificateCommandError = async (output,
516
524
  body: await parseBody(output.body, context),
517
525
  };
518
526
  let response;
519
- let errorCode = "UnknownError";
520
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
527
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
521
528
  switch (errorCode) {
522
529
  case "InvalidArnException":
523
530
  case "com.amazonaws.acm#InvalidArnException":
@@ -527,10 +534,12 @@ const deserializeAws_json1_1ListTagsForCertificateCommandError = async (output,
527
534
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
528
535
  default:
529
536
  const parsedBody = parsedOutput.body;
537
+ const $metadata = deserializeMetadata(output);
538
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
530
539
  response = new ACMServiceException_1.ACMServiceException({
531
- name: parsedBody.code || parsedBody.Code || errorCode,
540
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
532
541
  $fault: "client",
533
- $metadata: deserializeMetadata(output),
542
+ $metadata,
534
543
  });
535
544
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
536
545
  }
@@ -552,8 +561,7 @@ const deserializeAws_json1_1PutAccountConfigurationCommandError = async (output,
552
561
  body: await parseBody(output.body, context),
553
562
  };
554
563
  let response;
555
- let errorCode = "UnknownError";
556
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
564
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
557
565
  switch (errorCode) {
558
566
  case "AccessDeniedException":
559
567
  case "com.amazonaws.acm#AccessDeniedException":
@@ -569,10 +577,12 @@ const deserializeAws_json1_1PutAccountConfigurationCommandError = async (output,
569
577
  throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
570
578
  default:
571
579
  const parsedBody = parsedOutput.body;
580
+ const $metadata = deserializeMetadata(output);
581
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
572
582
  response = new ACMServiceException_1.ACMServiceException({
573
- name: parsedBody.code || parsedBody.Code || errorCode,
583
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
574
584
  $fault: "client",
575
- $metadata: deserializeMetadata(output),
585
+ $metadata,
576
586
  });
577
587
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
578
588
  }
@@ -594,8 +604,7 @@ const deserializeAws_json1_1RemoveTagsFromCertificateCommandError = async (outpu
594
604
  body: await parseBody(output.body, context),
595
605
  };
596
606
  let response;
597
- let errorCode = "UnknownError";
598
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
607
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
599
608
  switch (errorCode) {
600
609
  case "InvalidArnException":
601
610
  case "com.amazonaws.acm#InvalidArnException":
@@ -617,10 +626,12 @@ const deserializeAws_json1_1RemoveTagsFromCertificateCommandError = async (outpu
617
626
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
618
627
  default:
619
628
  const parsedBody = parsedOutput.body;
629
+ const $metadata = deserializeMetadata(output);
630
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
620
631
  response = new ACMServiceException_1.ACMServiceException({
621
- name: parsedBody.code || parsedBody.Code || errorCode,
632
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
622
633
  $fault: "client",
623
- $metadata: deserializeMetadata(output),
634
+ $metadata,
624
635
  });
625
636
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
626
637
  }
@@ -642,8 +653,7 @@ const deserializeAws_json1_1RenewCertificateCommandError = async (output, contex
642
653
  body: await parseBody(output.body, context),
643
654
  };
644
655
  let response;
645
- let errorCode = "UnknownError";
646
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
656
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
647
657
  switch (errorCode) {
648
658
  case "InvalidArnException":
649
659
  case "com.amazonaws.acm#InvalidArnException":
@@ -653,10 +663,12 @@ const deserializeAws_json1_1RenewCertificateCommandError = async (output, contex
653
663
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
654
664
  default:
655
665
  const parsedBody = parsedOutput.body;
666
+ const $metadata = deserializeMetadata(output);
667
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
656
668
  response = new ACMServiceException_1.ACMServiceException({
657
- name: parsedBody.code || parsedBody.Code || errorCode,
669
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
658
670
  $fault: "client",
659
- $metadata: deserializeMetadata(output),
671
+ $metadata,
660
672
  });
661
673
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
662
674
  }
@@ -681,8 +693,7 @@ const deserializeAws_json1_1RequestCertificateCommandError = async (output, cont
681
693
  body: await parseBody(output.body, context),
682
694
  };
683
695
  let response;
684
- let errorCode = "UnknownError";
685
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
696
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
686
697
  switch (errorCode) {
687
698
  case "InvalidArnException":
688
699
  case "com.amazonaws.acm#InvalidArnException":
@@ -707,10 +718,12 @@ const deserializeAws_json1_1RequestCertificateCommandError = async (output, cont
707
718
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
708
719
  default:
709
720
  const parsedBody = parsedOutput.body;
721
+ const $metadata = deserializeMetadata(output);
722
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
710
723
  response = new ACMServiceException_1.ACMServiceException({
711
- name: parsedBody.code || parsedBody.Code || errorCode,
724
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
712
725
  $fault: "client",
713
- $metadata: deserializeMetadata(output),
726
+ $metadata,
714
727
  });
715
728
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
716
729
  }
@@ -732,8 +745,7 @@ const deserializeAws_json1_1ResendValidationEmailCommandError = async (output, c
732
745
  body: await parseBody(output.body, context),
733
746
  };
734
747
  let response;
735
- let errorCode = "UnknownError";
736
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
748
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
737
749
  switch (errorCode) {
738
750
  case "InvalidArnException":
739
751
  case "com.amazonaws.acm#InvalidArnException":
@@ -749,10 +761,12 @@ const deserializeAws_json1_1ResendValidationEmailCommandError = async (output, c
749
761
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
750
762
  default:
751
763
  const parsedBody = parsedOutput.body;
764
+ const $metadata = deserializeMetadata(output);
765
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
752
766
  response = new ACMServiceException_1.ACMServiceException({
753
- name: parsedBody.code || parsedBody.Code || errorCode,
767
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
754
768
  $fault: "client",
755
- $metadata: deserializeMetadata(output),
769
+ $metadata,
756
770
  });
757
771
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
758
772
  }
@@ -774,8 +788,7 @@ const deserializeAws_json1_1UpdateCertificateOptionsCommandError = async (output
774
788
  body: await parseBody(output.body, context),
775
789
  };
776
790
  let response;
777
- let errorCode = "UnknownError";
778
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
791
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
779
792
  switch (errorCode) {
780
793
  case "InvalidArnException":
781
794
  case "com.amazonaws.acm#InvalidArnException":
@@ -791,10 +804,12 @@ const deserializeAws_json1_1UpdateCertificateOptionsCommandError = async (output
791
804
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
792
805
  default:
793
806
  const parsedBody = parsedOutput.body;
807
+ const $metadata = deserializeMetadata(output);
808
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
794
809
  response = new ACMServiceException_1.ACMServiceException({
795
- name: parsedBody.code || parsedBody.Code || errorCode,
810
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
796
811
  $fault: "client",
797
- $metadata: deserializeMetadata(output),
812
+ $metadata,
798
813
  });
799
814
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
800
815
  }
@@ -945,15 +960,13 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
945
960
  };
946
961
  const serializeAws_json1_1AddTagsToCertificateRequest = (input, context) => {
947
962
  return {
948
- ...(input.CertificateArn !== undefined &&
949
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
950
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
963
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
964
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
951
965
  };
952
966
  };
953
967
  const serializeAws_json1_1CertificateOptions = (input, context) => {
954
968
  return {
955
- ...(input.CertificateTransparencyLoggingPreference !== undefined &&
956
- input.CertificateTransparencyLoggingPreference !== null && {
969
+ ...(input.CertificateTransparencyLoggingPreference != null && {
957
970
  CertificateTransparencyLoggingPreference: input.CertificateTransparencyLoggingPreference,
958
971
  }),
959
972
  };
@@ -970,14 +983,12 @@ const serializeAws_json1_1CertificateStatuses = (input, context) => {
970
983
  };
971
984
  const serializeAws_json1_1DeleteCertificateRequest = (input, context) => {
972
985
  return {
973
- ...(input.CertificateArn !== undefined &&
974
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
986
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
975
987
  };
976
988
  };
977
989
  const serializeAws_json1_1DescribeCertificateRequest = (input, context) => {
978
990
  return {
979
- ...(input.CertificateArn !== undefined &&
980
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
991
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
981
992
  };
982
993
  };
983
994
  const serializeAws_json1_1DomainList = (input, context) => {
@@ -992,9 +1003,8 @@ const serializeAws_json1_1DomainList = (input, context) => {
992
1003
  };
993
1004
  const serializeAws_json1_1DomainValidationOption = (input, context) => {
994
1005
  return {
995
- ...(input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName }),
996
- ...(input.ValidationDomain !== undefined &&
997
- input.ValidationDomain !== null && { ValidationDomain: input.ValidationDomain }),
1006
+ ...(input.DomainName != null && { DomainName: input.DomainName }),
1007
+ ...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
998
1008
  };
999
1009
  };
1000
1010
  const serializeAws_json1_1DomainValidationOptionList = (input, context) => {
@@ -1009,16 +1019,13 @@ const serializeAws_json1_1DomainValidationOptionList = (input, context) => {
1009
1019
  };
1010
1020
  const serializeAws_json1_1ExpiryEventsConfiguration = (input, context) => {
1011
1021
  return {
1012
- ...(input.DaysBeforeExpiry !== undefined &&
1013
- input.DaysBeforeExpiry !== null && { DaysBeforeExpiry: input.DaysBeforeExpiry }),
1022
+ ...(input.DaysBeforeExpiry != null && { DaysBeforeExpiry: input.DaysBeforeExpiry }),
1014
1023
  };
1015
1024
  };
1016
1025
  const serializeAws_json1_1ExportCertificateRequest = (input, context) => {
1017
1026
  return {
1018
- ...(input.CertificateArn !== undefined &&
1019
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1020
- ...(input.Passphrase !== undefined &&
1021
- input.Passphrase !== null && { Passphrase: context.base64Encoder(input.Passphrase) }),
1027
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1028
+ ...(input.Passphrase != null && { Passphrase: context.base64Encoder(input.Passphrase) }),
1022
1029
  };
1023
1030
  };
1024
1031
  const serializeAws_json1_1ExtendedKeyUsageFilterList = (input, context) => {
@@ -1033,33 +1040,25 @@ const serializeAws_json1_1ExtendedKeyUsageFilterList = (input, context) => {
1033
1040
  };
1034
1041
  const serializeAws_json1_1Filters = (input, context) => {
1035
1042
  return {
1036
- ...(input.extendedKeyUsage !== undefined &&
1037
- input.extendedKeyUsage !== null && {
1043
+ ...(input.extendedKeyUsage != null && {
1038
1044
  extendedKeyUsage: serializeAws_json1_1ExtendedKeyUsageFilterList(input.extendedKeyUsage, context),
1039
1045
  }),
1040
- ...(input.keyTypes !== undefined &&
1041
- input.keyTypes !== null && { keyTypes: serializeAws_json1_1KeyAlgorithmList(input.keyTypes, context) }),
1042
- ...(input.keyUsage !== undefined &&
1043
- input.keyUsage !== null && { keyUsage: serializeAws_json1_1KeyUsageFilterList(input.keyUsage, context) }),
1046
+ ...(input.keyTypes != null && { keyTypes: serializeAws_json1_1KeyAlgorithmList(input.keyTypes, context) }),
1047
+ ...(input.keyUsage != null && { keyUsage: serializeAws_json1_1KeyUsageFilterList(input.keyUsage, context) }),
1044
1048
  };
1045
1049
  };
1046
1050
  const serializeAws_json1_1GetCertificateRequest = (input, context) => {
1047
1051
  return {
1048
- ...(input.CertificateArn !== undefined &&
1049
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1052
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1050
1053
  };
1051
1054
  };
1052
1055
  const serializeAws_json1_1ImportCertificateRequest = (input, context) => {
1053
1056
  return {
1054
- ...(input.Certificate !== undefined &&
1055
- input.Certificate !== null && { Certificate: context.base64Encoder(input.Certificate) }),
1056
- ...(input.CertificateArn !== undefined &&
1057
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1058
- ...(input.CertificateChain !== undefined &&
1059
- input.CertificateChain !== null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
1060
- ...(input.PrivateKey !== undefined &&
1061
- input.PrivateKey !== null && { PrivateKey: context.base64Encoder(input.PrivateKey) }),
1062
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1057
+ ...(input.Certificate != null && { Certificate: context.base64Encoder(input.Certificate) }),
1058
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1059
+ ...(input.CertificateChain != null && { CertificateChain: context.base64Encoder(input.CertificateChain) }),
1060
+ ...(input.PrivateKey != null && { PrivateKey: context.base64Encoder(input.PrivateKey) }),
1061
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1063
1062
  };
1064
1063
  };
1065
1064
  const serializeAws_json1_1KeyAlgorithmList = (input, context) => {
@@ -1084,80 +1083,65 @@ const serializeAws_json1_1KeyUsageFilterList = (input, context) => {
1084
1083
  };
1085
1084
  const serializeAws_json1_1ListCertificatesRequest = (input, context) => {
1086
1085
  return {
1087
- ...(input.CertificateStatuses !== undefined &&
1088
- input.CertificateStatuses !== null && {
1086
+ ...(input.CertificateStatuses != null && {
1089
1087
  CertificateStatuses: serializeAws_json1_1CertificateStatuses(input.CertificateStatuses, context),
1090
1088
  }),
1091
- ...(input.Includes !== undefined &&
1092
- input.Includes !== null && { Includes: serializeAws_json1_1Filters(input.Includes, context) }),
1093
- ...(input.MaxItems !== undefined && input.MaxItems !== null && { MaxItems: input.MaxItems }),
1094
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1089
+ ...(input.Includes != null && { Includes: serializeAws_json1_1Filters(input.Includes, context) }),
1090
+ ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
1091
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1095
1092
  };
1096
1093
  };
1097
1094
  const serializeAws_json1_1ListTagsForCertificateRequest = (input, context) => {
1098
1095
  return {
1099
- ...(input.CertificateArn !== undefined &&
1100
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1096
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1101
1097
  };
1102
1098
  };
1103
1099
  const serializeAws_json1_1PutAccountConfigurationRequest = (input, context) => {
1104
1100
  return {
1105
- ...(input.ExpiryEvents !== undefined &&
1106
- input.ExpiryEvents !== null && {
1101
+ ...(input.ExpiryEvents != null && {
1107
1102
  ExpiryEvents: serializeAws_json1_1ExpiryEventsConfiguration(input.ExpiryEvents, context),
1108
1103
  }),
1109
- ...(input.IdempotencyToken !== undefined &&
1110
- input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken }),
1104
+ ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
1111
1105
  };
1112
1106
  };
1113
1107
  const serializeAws_json1_1RemoveTagsFromCertificateRequest = (input, context) => {
1114
1108
  return {
1115
- ...(input.CertificateArn !== undefined &&
1116
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1117
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1109
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1110
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1118
1111
  };
1119
1112
  };
1120
1113
  const serializeAws_json1_1RenewCertificateRequest = (input, context) => {
1121
1114
  return {
1122
- ...(input.CertificateArn !== undefined &&
1123
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1115
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1124
1116
  };
1125
1117
  };
1126
1118
  const serializeAws_json1_1RequestCertificateRequest = (input, context) => {
1127
1119
  return {
1128
- ...(input.CertificateAuthorityArn !== undefined &&
1129
- input.CertificateAuthorityArn !== null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
1130
- ...(input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName }),
1131
- ...(input.DomainValidationOptions !== undefined &&
1132
- input.DomainValidationOptions !== null && {
1120
+ ...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
1121
+ ...(input.DomainName != null && { DomainName: input.DomainName }),
1122
+ ...(input.DomainValidationOptions != null && {
1133
1123
  DomainValidationOptions: serializeAws_json1_1DomainValidationOptionList(input.DomainValidationOptions, context),
1134
1124
  }),
1135
- ...(input.IdempotencyToken !== undefined &&
1136
- input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken }),
1137
- ...(input.Options !== undefined &&
1138
- input.Options !== null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }),
1139
- ...(input.SubjectAlternativeNames !== undefined &&
1140
- input.SubjectAlternativeNames !== null && {
1125
+ ...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
1126
+ ...(input.Options != null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }),
1127
+ ...(input.SubjectAlternativeNames != null && {
1141
1128
  SubjectAlternativeNames: serializeAws_json1_1DomainList(input.SubjectAlternativeNames, context),
1142
1129
  }),
1143
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1144
- ...(input.ValidationMethod !== undefined &&
1145
- input.ValidationMethod !== null && { ValidationMethod: input.ValidationMethod }),
1130
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1131
+ ...(input.ValidationMethod != null && { ValidationMethod: input.ValidationMethod }),
1146
1132
  };
1147
1133
  };
1148
1134
  const serializeAws_json1_1ResendValidationEmailRequest = (input, context) => {
1149
1135
  return {
1150
- ...(input.CertificateArn !== undefined &&
1151
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1152
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
1153
- ...(input.ValidationDomain !== undefined &&
1154
- input.ValidationDomain !== null && { ValidationDomain: input.ValidationDomain }),
1136
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1137
+ ...(input.Domain != null && { Domain: input.Domain }),
1138
+ ...(input.ValidationDomain != null && { ValidationDomain: input.ValidationDomain }),
1155
1139
  };
1156
1140
  };
1157
1141
  const serializeAws_json1_1Tag = (input, context) => {
1158
1142
  return {
1159
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1160
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1143
+ ...(input.Key != null && { Key: input.Key }),
1144
+ ...(input.Value != null && { Value: input.Value }),
1161
1145
  };
1162
1146
  };
1163
1147
  const serializeAws_json1_1TagList = (input, context) => {
@@ -1172,10 +1156,8 @@ const serializeAws_json1_1TagList = (input, context) => {
1172
1156
  };
1173
1157
  const serializeAws_json1_1UpdateCertificateOptionsRequest = (input, context) => {
1174
1158
  return {
1175
- ...(input.CertificateArn !== undefined &&
1176
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
1177
- ...(input.Options !== undefined &&
1178
- input.Options !== null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }),
1159
+ ...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
1160
+ ...(input.Options != null && { Options: serializeAws_json1_1CertificateOptions(input.Options, context) }),
1179
1161
  };
1180
1162
  };
1181
1163
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
@@ -1187,53 +1169,33 @@ const deserializeAws_json1_1CertificateDetail = (output, context) => {
1187
1169
  return {
1188
1170
  CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
1189
1171
  CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
1190
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1191
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1192
- : undefined,
1172
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1193
1173
  DomainName: (0, smithy_client_1.expectString)(output.DomainName),
1194
- DomainValidationOptions: output.DomainValidationOptions !== undefined && output.DomainValidationOptions !== null
1174
+ DomainValidationOptions: output.DomainValidationOptions != null
1195
1175
  ? deserializeAws_json1_1DomainValidationList(output.DomainValidationOptions, context)
1196
1176
  : undefined,
1197
- ExtendedKeyUsages: output.ExtendedKeyUsages !== undefined && output.ExtendedKeyUsages !== null
1177
+ ExtendedKeyUsages: output.ExtendedKeyUsages != null
1198
1178
  ? deserializeAws_json1_1ExtendedKeyUsageList(output.ExtendedKeyUsages, context)
1199
1179
  : undefined,
1200
1180
  FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
1201
- ImportedAt: output.ImportedAt !== undefined && output.ImportedAt !== null
1202
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImportedAt)))
1203
- : undefined,
1204
- InUseBy: output.InUseBy !== undefined && output.InUseBy !== null
1205
- ? deserializeAws_json1_1InUseList(output.InUseBy, context)
1206
- : undefined,
1207
- IssuedAt: output.IssuedAt !== undefined && output.IssuedAt !== null
1208
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.IssuedAt)))
1209
- : undefined,
1181
+ ImportedAt: output.ImportedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImportedAt))) : undefined,
1182
+ InUseBy: output.InUseBy != null ? deserializeAws_json1_1InUseList(output.InUseBy, context) : undefined,
1183
+ IssuedAt: output.IssuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.IssuedAt))) : undefined,
1210
1184
  Issuer: (0, smithy_client_1.expectString)(output.Issuer),
1211
1185
  KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
1212
- KeyUsages: output.KeyUsages !== undefined && output.KeyUsages !== null
1213
- ? deserializeAws_json1_1KeyUsageList(output.KeyUsages, context)
1214
- : undefined,
1215
- NotAfter: output.NotAfter !== undefined && output.NotAfter !== null
1216
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfter)))
1217
- : undefined,
1218
- NotBefore: output.NotBefore !== undefined && output.NotBefore !== null
1219
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBefore)))
1220
- : undefined,
1221
- Options: output.Options !== undefined && output.Options !== null
1222
- ? deserializeAws_json1_1CertificateOptions(output.Options, context)
1223
- : undefined,
1186
+ KeyUsages: output.KeyUsages != null ? deserializeAws_json1_1KeyUsageList(output.KeyUsages, context) : undefined,
1187
+ NotAfter: output.NotAfter != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfter))) : undefined,
1188
+ NotBefore: output.NotBefore != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBefore))) : undefined,
1189
+ Options: output.Options != null ? deserializeAws_json1_1CertificateOptions(output.Options, context) : undefined,
1224
1190
  RenewalEligibility: (0, smithy_client_1.expectString)(output.RenewalEligibility),
1225
- RenewalSummary: output.RenewalSummary !== undefined && output.RenewalSummary !== null
1226
- ? deserializeAws_json1_1RenewalSummary(output.RenewalSummary, context)
1227
- : undefined,
1191
+ RenewalSummary: output.RenewalSummary != null ? deserializeAws_json1_1RenewalSummary(output.RenewalSummary, context) : undefined,
1228
1192
  RevocationReason: (0, smithy_client_1.expectString)(output.RevocationReason),
1229
- RevokedAt: output.RevokedAt !== undefined && output.RevokedAt !== null
1230
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RevokedAt)))
1231
- : undefined,
1193
+ RevokedAt: output.RevokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RevokedAt))) : undefined,
1232
1194
  Serial: (0, smithy_client_1.expectString)(output.Serial),
1233
1195
  SignatureAlgorithm: (0, smithy_client_1.expectString)(output.SignatureAlgorithm),
1234
1196
  Status: (0, smithy_client_1.expectString)(output.Status),
1235
1197
  Subject: (0, smithy_client_1.expectString)(output.Subject),
1236
- SubjectAlternativeNames: output.SubjectAlternativeNames !== undefined && output.SubjectAlternativeNames !== null
1198
+ SubjectAlternativeNames: output.SubjectAlternativeNames != null
1237
1199
  ? deserializeAws_json1_1DomainList(output.SubjectAlternativeNames, context)
1238
1200
  : undefined,
1239
1201
  Type: (0, smithy_client_1.expectString)(output.Type),
@@ -1268,9 +1230,7 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
1268
1230
  };
1269
1231
  const deserializeAws_json1_1DescribeCertificateResponse = (output, context) => {
1270
1232
  return {
1271
- Certificate: output.Certificate !== undefined && output.Certificate !== null
1272
- ? deserializeAws_json1_1CertificateDetail(output.Certificate, context)
1273
- : undefined,
1233
+ Certificate: output.Certificate != null ? deserializeAws_json1_1CertificateDetail(output.Certificate, context) : undefined,
1274
1234
  };
1275
1235
  };
1276
1236
  const deserializeAws_json1_1DomainList = (output, context) => {
@@ -1287,11 +1247,9 @@ const deserializeAws_json1_1DomainList = (output, context) => {
1287
1247
  const deserializeAws_json1_1DomainValidation = (output, context) => {
1288
1248
  return {
1289
1249
  DomainName: (0, smithy_client_1.expectString)(output.DomainName),
1290
- ResourceRecord: output.ResourceRecord !== undefined && output.ResourceRecord !== null
1291
- ? deserializeAws_json1_1ResourceRecord(output.ResourceRecord, context)
1292
- : undefined,
1250
+ ResourceRecord: output.ResourceRecord != null ? deserializeAws_json1_1ResourceRecord(output.ResourceRecord, context) : undefined,
1293
1251
  ValidationDomain: (0, smithy_client_1.expectString)(output.ValidationDomain),
1294
- ValidationEmails: output.ValidationEmails !== undefined && output.ValidationEmails !== null
1252
+ ValidationEmails: output.ValidationEmails != null
1295
1253
  ? deserializeAws_json1_1ValidationEmailList(output.ValidationEmails, context)
1296
1254
  : undefined,
1297
1255
  ValidationMethod: (0, smithy_client_1.expectString)(output.ValidationMethod),
@@ -1340,7 +1298,7 @@ const deserializeAws_json1_1ExtendedKeyUsageList = (output, context) => {
1340
1298
  };
1341
1299
  const deserializeAws_json1_1GetAccountConfigurationResponse = (output, context) => {
1342
1300
  return {
1343
- ExpiryEvents: output.ExpiryEvents !== undefined && output.ExpiryEvents !== null
1301
+ ExpiryEvents: output.ExpiryEvents != null
1344
1302
  ? deserializeAws_json1_1ExpiryEventsConfiguration(output.ExpiryEvents, context)
1345
1303
  : undefined,
1346
1304
  };
@@ -1420,7 +1378,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
1420
1378
  };
1421
1379
  const deserializeAws_json1_1ListCertificatesResponse = (output, context) => {
1422
1380
  return {
1423
- CertificateSummaryList: output.CertificateSummaryList !== undefined && output.CertificateSummaryList !== null
1381
+ CertificateSummaryList: output.CertificateSummaryList != null
1424
1382
  ? deserializeAws_json1_1CertificateSummaryList(output.CertificateSummaryList, context)
1425
1383
  : undefined,
1426
1384
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1428,21 +1386,17 @@ const deserializeAws_json1_1ListCertificatesResponse = (output, context) => {
1428
1386
  };
1429
1387
  const deserializeAws_json1_1ListTagsForCertificateResponse = (output, context) => {
1430
1388
  return {
1431
- Tags: output.Tags !== undefined && output.Tags !== null
1432
- ? deserializeAws_json1_1TagList(output.Tags, context)
1433
- : undefined,
1389
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
1434
1390
  };
1435
1391
  };
1436
1392
  const deserializeAws_json1_1RenewalSummary = (output, context) => {
1437
1393
  return {
1438
- DomainValidationOptions: output.DomainValidationOptions !== undefined && output.DomainValidationOptions !== null
1394
+ DomainValidationOptions: output.DomainValidationOptions != null
1439
1395
  ? deserializeAws_json1_1DomainValidationList(output.DomainValidationOptions, context)
1440
1396
  : undefined,
1441
1397
  RenewalStatus: (0, smithy_client_1.expectString)(output.RenewalStatus),
1442
1398
  RenewalStatusReason: (0, smithy_client_1.expectString)(output.RenewalStatusReason),
1443
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1444
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1445
- : undefined,
1399
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1446
1400
  };
1447
1401
  };
1448
1402
  const deserializeAws_json1_1RequestCertificateResponse = (output, context) => {
@@ -1582,5 +1536,4 @@ const loadRestJsonErrorCode = (output, data) => {
1582
1536
  if (data["__type"] !== undefined) {
1583
1537
  return sanitizeErrorCode(data["__type"]);
1584
1538
  }
1585
- return "";
1586
1539
  };