@aws-sdk/client-service-quotas 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.
@@ -215,8 +215,7 @@ const deserializeAws_json1_1AssociateServiceQuotaTemplateCommandError = async (o
215
215
  body: await parseBody(output.body, context),
216
216
  };
217
217
  let response;
218
- let errorCode = "UnknownError";
219
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
218
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
220
219
  switch (errorCode) {
221
220
  case "AccessDeniedException":
222
221
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -244,10 +243,12 @@ const deserializeAws_json1_1AssociateServiceQuotaTemplateCommandError = async (o
244
243
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
245
244
  default:
246
245
  const parsedBody = parsedOutput.body;
246
+ const $metadata = deserializeMetadata(output);
247
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
247
248
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
248
- name: parsedBody.code || parsedBody.Code || errorCode,
249
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
249
250
  $fault: "client",
250
- $metadata: deserializeMetadata(output),
251
+ $metadata,
251
252
  });
252
253
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
253
254
  }
@@ -272,8 +273,7 @@ const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand
272
273
  body: await parseBody(output.body, context),
273
274
  };
274
275
  let response;
275
- let errorCode = "UnknownError";
276
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
276
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
277
277
  switch (errorCode) {
278
278
  case "AccessDeniedException":
279
279
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -304,10 +304,12 @@ const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand
304
304
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
305
305
  default:
306
306
  const parsedBody = parsedOutput.body;
307
+ const $metadata = deserializeMetadata(output);
308
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
307
309
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
308
- name: parsedBody.code || parsedBody.Code || errorCode,
310
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
309
311
  $fault: "client",
310
- $metadata: deserializeMetadata(output),
312
+ $metadata,
311
313
  });
312
314
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
313
315
  }
@@ -332,8 +334,7 @@ const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommandError = async
332
334
  body: await parseBody(output.body, context),
333
335
  };
334
336
  let response;
335
- let errorCode = "UnknownError";
336
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
337
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
337
338
  switch (errorCode) {
338
339
  case "AccessDeniedException":
339
340
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -361,10 +362,12 @@ const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommandError = async
361
362
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
362
363
  default:
363
364
  const parsedBody = parsedOutput.body;
365
+ const $metadata = deserializeMetadata(output);
366
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
364
367
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
365
- name: parsedBody.code || parsedBody.Code || errorCode,
368
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
366
369
  $fault: "client",
367
- $metadata: deserializeMetadata(output),
370
+ $metadata,
368
371
  });
369
372
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
370
373
  }
@@ -389,8 +392,7 @@ const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommandError =
389
392
  body: await parseBody(output.body, context),
390
393
  };
391
394
  let response;
392
- let errorCode = "UnknownError";
393
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
395
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
394
396
  switch (errorCode) {
395
397
  case "AccessDeniedException":
396
398
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -418,10 +420,12 @@ const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommandError =
418
420
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
419
421
  default:
420
422
  const parsedBody = parsedOutput.body;
423
+ const $metadata = deserializeMetadata(output);
424
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
421
425
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
422
- name: parsedBody.code || parsedBody.Code || errorCode,
426
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
423
427
  $fault: "client",
424
- $metadata: deserializeMetadata(output),
428
+ $metadata,
425
429
  });
426
430
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
427
431
  }
@@ -446,8 +450,7 @@ const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommandError = async (outpu
446
450
  body: await parseBody(output.body, context),
447
451
  };
448
452
  let response;
449
- let errorCode = "UnknownError";
450
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
453
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
451
454
  switch (errorCode) {
452
455
  case "AccessDeniedException":
453
456
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -466,10 +469,12 @@ const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommandError = async (outpu
466
469
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
467
470
  default:
468
471
  const parsedBody = parsedOutput.body;
472
+ const $metadata = deserializeMetadata(output);
473
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
469
474
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
470
- name: parsedBody.code || parsedBody.Code || errorCode,
475
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
471
476
  $fault: "client",
472
- $metadata: deserializeMetadata(output),
477
+ $metadata,
473
478
  });
474
479
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
475
480
  }
@@ -494,8 +499,7 @@ const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommandError = async (
494
499
  body: await parseBody(output.body, context),
495
500
  };
496
501
  let response;
497
- let errorCode = "UnknownError";
498
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
502
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
499
503
  switch (errorCode) {
500
504
  case "AccessDeniedException":
501
505
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -514,10 +518,12 @@ const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommandError = async (
514
518
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
515
519
  default:
516
520
  const parsedBody = parsedOutput.body;
521
+ const $metadata = deserializeMetadata(output);
522
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
517
523
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
518
- name: parsedBody.code || parsedBody.Code || errorCode,
524
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
519
525
  $fault: "client",
520
- $metadata: deserializeMetadata(output),
526
+ $metadata,
521
527
  });
522
528
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
523
529
  }
@@ -542,8 +548,7 @@ const deserializeAws_json1_1GetServiceQuotaCommandError = async (output, context
542
548
  body: await parseBody(output.body, context),
543
549
  };
544
550
  let response;
545
- let errorCode = "UnknownError";
546
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
551
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
547
552
  switch (errorCode) {
548
553
  case "AccessDeniedException":
549
554
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -562,10 +567,12 @@ const deserializeAws_json1_1GetServiceQuotaCommandError = async (output, context
562
567
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
563
568
  default:
564
569
  const parsedBody = parsedOutput.body;
570
+ const $metadata = deserializeMetadata(output);
571
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
565
572
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
566
- name: parsedBody.code || parsedBody.Code || errorCode,
573
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
567
574
  $fault: "client",
568
- $metadata: deserializeMetadata(output),
575
+ $metadata,
569
576
  });
570
577
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
571
578
  }
@@ -590,8 +597,7 @@ const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommandErr
590
597
  body: await parseBody(output.body, context),
591
598
  };
592
599
  let response;
593
- let errorCode = "UnknownError";
594
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
600
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
595
601
  switch (errorCode) {
596
602
  case "AccessDeniedException":
597
603
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -622,10 +628,12 @@ const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommandErr
622
628
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
623
629
  default:
624
630
  const parsedBody = parsedOutput.body;
631
+ const $metadata = deserializeMetadata(output);
632
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
625
633
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
626
- name: parsedBody.code || parsedBody.Code || errorCode,
634
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
627
635
  $fault: "client",
628
- $metadata: deserializeMetadata(output),
636
+ $metadata,
629
637
  });
630
638
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
631
639
  }
@@ -650,8 +658,7 @@ const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommandError = async (out
650
658
  body: await parseBody(output.body, context),
651
659
  };
652
660
  let response;
653
- let errorCode = "UnknownError";
654
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
661
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
655
662
  switch (errorCode) {
656
663
  case "AccessDeniedException":
657
664
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -673,10 +680,12 @@ const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommandError = async (out
673
680
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
674
681
  default:
675
682
  const parsedBody = parsedOutput.body;
683
+ const $metadata = deserializeMetadata(output);
684
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
676
685
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
677
- name: parsedBody.code || parsedBody.Code || errorCode,
686
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
678
687
  $fault: "client",
679
- $metadata: deserializeMetadata(output),
688
+ $metadata,
680
689
  });
681
690
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
682
691
  }
@@ -701,8 +710,7 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommandError =
701
710
  body: await parseBody(output.body, context),
702
711
  };
703
712
  let response;
704
- let errorCode = "UnknownError";
705
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
713
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
706
714
  switch (errorCode) {
707
715
  case "AccessDeniedException":
708
716
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -724,10 +732,12 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommandError =
724
732
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
725
733
  default:
726
734
  const parsedBody = parsedOutput.body;
735
+ const $metadata = deserializeMetadata(output);
736
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
727
737
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
728
- name: parsedBody.code || parsedBody.Code || errorCode,
738
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
729
739
  $fault: "client",
730
- $metadata: deserializeMetadata(output),
740
+ $metadata,
731
741
  });
732
742
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
733
743
  }
@@ -752,8 +762,7 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand
752
762
  body: await parseBody(output.body, context),
753
763
  };
754
764
  let response;
755
- let errorCode = "UnknownError";
756
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
757
766
  switch (errorCode) {
758
767
  case "AccessDeniedException":
759
768
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -775,10 +784,12 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand
775
784
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
776
785
  default:
777
786
  const parsedBody = parsedOutput.body;
787
+ const $metadata = deserializeMetadata(output);
788
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
778
789
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
779
- name: parsedBody.code || parsedBody.Code || errorCode,
790
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
780
791
  $fault: "client",
781
- $metadata: deserializeMetadata(output),
792
+ $metadata,
782
793
  });
783
794
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
784
795
  }
@@ -803,8 +814,7 @@ const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommandErr
803
814
  body: await parseBody(output.body, context),
804
815
  };
805
816
  let response;
806
- let errorCode = "UnknownError";
807
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
817
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
808
818
  switch (errorCode) {
809
819
  case "AccessDeniedException":
810
820
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -832,10 +842,12 @@ const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommandErr
832
842
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
833
843
  default:
834
844
  const parsedBody = parsedOutput.body;
845
+ const $metadata = deserializeMetadata(output);
846
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
835
847
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
836
- name: parsedBody.code || parsedBody.Code || errorCode,
848
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
837
849
  $fault: "client",
838
- $metadata: deserializeMetadata(output),
850
+ $metadata,
839
851
  });
840
852
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
841
853
  }
@@ -860,8 +872,7 @@ const deserializeAws_json1_1ListServiceQuotasCommandError = async (output, conte
860
872
  body: await parseBody(output.body, context),
861
873
  };
862
874
  let response;
863
- let errorCode = "UnknownError";
864
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
875
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
876
  switch (errorCode) {
866
877
  case "AccessDeniedException":
867
878
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -883,10 +894,12 @@ const deserializeAws_json1_1ListServiceQuotasCommandError = async (output, conte
883
894
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
884
895
  default:
885
896
  const parsedBody = parsedOutput.body;
897
+ const $metadata = deserializeMetadata(output);
898
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
886
899
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
887
- name: parsedBody.code || parsedBody.Code || errorCode,
900
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
888
901
  $fault: "client",
889
- $metadata: deserializeMetadata(output),
902
+ $metadata,
890
903
  });
891
904
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
892
905
  }
@@ -911,8 +924,7 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
911
924
  body: await parseBody(output.body, context),
912
925
  };
913
926
  let response;
914
- let errorCode = "UnknownError";
915
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
927
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
916
928
  switch (errorCode) {
917
929
  case "AccessDeniedException":
918
930
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -931,10 +943,12 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
931
943
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
932
944
  default:
933
945
  const parsedBody = parsedOutput.body;
946
+ const $metadata = deserializeMetadata(output);
947
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
934
948
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
935
- name: parsedBody.code || parsedBody.Code || errorCode,
949
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
936
950
  $fault: "client",
937
- $metadata: deserializeMetadata(output),
951
+ $metadata,
938
952
  });
939
953
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
940
954
  }
@@ -959,8 +973,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
959
973
  body: await parseBody(output.body, context),
960
974
  };
961
975
  let response;
962
- let errorCode = "UnknownError";
963
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
976
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
964
977
  switch (errorCode) {
965
978
  case "AccessDeniedException":
966
979
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -979,10 +992,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
979
992
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
980
993
  default:
981
994
  const parsedBody = parsedOutput.body;
995
+ const $metadata = deserializeMetadata(output);
996
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
982
997
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
983
- name: parsedBody.code || parsedBody.Code || errorCode,
998
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
984
999
  $fault: "client",
985
- $metadata: deserializeMetadata(output),
1000
+ $metadata,
986
1001
  });
987
1002
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
988
1003
  }
@@ -1007,8 +1022,7 @@ const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandErr
1007
1022
  body: await parseBody(output.body, context),
1008
1023
  };
1009
1024
  let response;
1010
- let errorCode = "UnknownError";
1011
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1025
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1012
1026
  switch (errorCode) {
1013
1027
  case "AccessDeniedException":
1014
1028
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -1042,10 +1056,12 @@ const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandErr
1042
1056
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
1043
1057
  default:
1044
1058
  const parsedBody = parsedOutput.body;
1059
+ const $metadata = deserializeMetadata(output);
1060
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1045
1061
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
1046
- name: parsedBody.code || parsedBody.Code || errorCode,
1062
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1047
1063
  $fault: "client",
1048
- $metadata: deserializeMetadata(output),
1064
+ $metadata,
1049
1065
  });
1050
1066
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1051
1067
  }
@@ -1070,8 +1086,7 @@ const deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError = async (out
1070
1086
  body: await parseBody(output.body, context),
1071
1087
  };
1072
1088
  let response;
1073
- let errorCode = "UnknownError";
1074
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1089
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1075
1090
  switch (errorCode) {
1076
1091
  case "AccessDeniedException":
1077
1092
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -1102,10 +1117,12 @@ const deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError = async (out
1102
1117
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
1103
1118
  default:
1104
1119
  const parsedBody = parsedOutput.body;
1120
+ const $metadata = deserializeMetadata(output);
1121
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1105
1122
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
1106
- name: parsedBody.code || parsedBody.Code || errorCode,
1123
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1107
1124
  $fault: "client",
1108
- $metadata: deserializeMetadata(output),
1125
+ $metadata,
1109
1126
  });
1110
1127
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1111
1128
  }
@@ -1130,8 +1147,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1130
1147
  body: await parseBody(output.body, context),
1131
1148
  };
1132
1149
  let response;
1133
- let errorCode = "UnknownError";
1134
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1135
1151
  switch (errorCode) {
1136
1152
  case "AccessDeniedException":
1137
1153
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -1156,10 +1172,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1156
1172
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
1157
1173
  default:
1158
1174
  const parsedBody = parsedOutput.body;
1175
+ const $metadata = deserializeMetadata(output);
1176
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1159
1177
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
1160
- name: parsedBody.code || parsedBody.Code || errorCode,
1178
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1161
1179
  $fault: "client",
1162
- $metadata: deserializeMetadata(output),
1180
+ $metadata,
1163
1181
  });
1164
1182
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1165
1183
  }
@@ -1184,8 +1202,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1184
1202
  body: await parseBody(output.body, context),
1185
1203
  };
1186
1204
  let response;
1187
- let errorCode = "UnknownError";
1188
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
1206
  switch (errorCode) {
1190
1207
  case "AccessDeniedException":
1191
1208
  case "com.amazonaws.servicequotas#AccessDeniedException":
@@ -1204,10 +1221,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1204
1221
  throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
1205
1222
  default:
1206
1223
  const parsedBody = parsedOutput.body;
1224
+ const $metadata = deserializeMetadata(output);
1225
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1207
1226
  response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
1208
- name: parsedBody.code || parsedBody.Code || errorCode,
1227
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1209
1228
  $fault: "client",
1210
- $metadata: deserializeMetadata(output),
1229
+ $metadata,
1211
1230
  });
1212
1231
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1213
1232
  }
@@ -1370,9 +1389,9 @@ const serializeAws_json1_1AssociateServiceQuotaTemplateRequest = (input, context
1370
1389
  };
1371
1390
  const serializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
1372
1391
  return {
1373
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
1374
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1375
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1392
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1393
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1394
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1376
1395
  };
1377
1396
  };
1378
1397
  const serializeAws_json1_1DisassociateServiceQuotaTemplateRequest = (input, context) => {
@@ -1383,26 +1402,26 @@ const serializeAws_json1_1GetAssociationForServiceQuotaTemplateRequest = (input,
1383
1402
  };
1384
1403
  const serializeAws_json1_1GetAWSDefaultServiceQuotaRequest = (input, context) => {
1385
1404
  return {
1386
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1387
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1405
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1406
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1388
1407
  };
1389
1408
  };
1390
1409
  const serializeAws_json1_1GetRequestedServiceQuotaChangeRequest = (input, context) => {
1391
1410
  return {
1392
- ...(input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId }),
1411
+ ...(input.RequestId != null && { RequestId: input.RequestId }),
1393
1412
  };
1394
1413
  };
1395
1414
  const serializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
1396
1415
  return {
1397
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
1398
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1399
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1416
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1417
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1418
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1400
1419
  };
1401
1420
  };
1402
1421
  const serializeAws_json1_1GetServiceQuotaRequest = (input, context) => {
1403
1422
  return {
1404
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1405
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1423
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1424
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1406
1425
  };
1407
1426
  };
1408
1427
  const serializeAws_json1_1InputTagKeys = (input, context) => {
@@ -1427,89 +1446,85 @@ const serializeAws_json1_1InputTags = (input, context) => {
1427
1446
  };
1428
1447
  const serializeAws_json1_1ListAWSDefaultServiceQuotasRequest = (input, context) => {
1429
1448
  return {
1430
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1431
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1432
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1449
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1450
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1451
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1433
1452
  };
1434
1453
  };
1435
1454
  const serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaRequest = (input, context) => {
1436
1455
  return {
1437
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1438
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1439
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1440
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1441
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
1456
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1457
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1458
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1459
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1460
+ ...(input.Status != null && { Status: input.Status }),
1442
1461
  };
1443
1462
  };
1444
1463
  const serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryRequest = (input, context) => {
1445
1464
  return {
1446
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1447
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1448
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1449
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
1465
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1466
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1467
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1468
+ ...(input.Status != null && { Status: input.Status }),
1450
1469
  };
1451
1470
  };
1452
1471
  const serializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateRequest = (input, context) => {
1453
1472
  return {
1454
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
1455
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1456
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1457
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1473
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1474
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1475
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1476
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1458
1477
  };
1459
1478
  };
1460
1479
  const serializeAws_json1_1ListServiceQuotasRequest = (input, context) => {
1461
1480
  return {
1462
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1463
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1464
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1481
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1482
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1483
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1465
1484
  };
1466
1485
  };
1467
1486
  const serializeAws_json1_1ListServicesRequest = (input, context) => {
1468
1487
  return {
1469
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1470
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1488
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1489
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1471
1490
  };
1472
1491
  };
1473
1492
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
1474
1493
  return {
1475
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1494
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1476
1495
  };
1477
1496
  };
1478
1497
  const serializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateRequest = (input, context) => {
1479
1498
  return {
1480
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
1481
- ...(input.DesiredValue !== undefined &&
1482
- input.DesiredValue !== null && { DesiredValue: (0, smithy_client_1.serializeFloat)(input.DesiredValue) }),
1483
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1484
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1499
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1500
+ ...(input.DesiredValue != null && { DesiredValue: (0, smithy_client_1.serializeFloat)(input.DesiredValue) }),
1501
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1502
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1485
1503
  };
1486
1504
  };
1487
1505
  const serializeAws_json1_1RequestServiceQuotaIncreaseRequest = (input, context) => {
1488
1506
  return {
1489
- ...(input.DesiredValue !== undefined &&
1490
- input.DesiredValue !== null && { DesiredValue: (0, smithy_client_1.serializeFloat)(input.DesiredValue) }),
1491
- ...(input.QuotaCode !== undefined && input.QuotaCode !== null && { QuotaCode: input.QuotaCode }),
1492
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
1507
+ ...(input.DesiredValue != null && { DesiredValue: (0, smithy_client_1.serializeFloat)(input.DesiredValue) }),
1508
+ ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1509
+ ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1493
1510
  };
1494
1511
  };
1495
1512
  const serializeAws_json1_1Tag = (input, context) => {
1496
1513
  return {
1497
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1498
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1514
+ ...(input.Key != null && { Key: input.Key }),
1515
+ ...(input.Value != null && { Value: input.Value }),
1499
1516
  };
1500
1517
  };
1501
1518
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
1502
1519
  return {
1503
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1504
- ...(input.Tags !== undefined &&
1505
- input.Tags !== null && { Tags: serializeAws_json1_1InputTags(input.Tags, context) }),
1520
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1521
+ ...(input.Tags != null && { Tags: serializeAws_json1_1InputTags(input.Tags, context) }),
1506
1522
  };
1507
1523
  };
1508
1524
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
1509
1525
  return {
1510
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1511
- ...(input.TagKeys !== undefined &&
1512
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1InputTagKeys(input.TagKeys, context) }),
1526
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1527
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1InputTagKeys(input.TagKeys, context) }),
1513
1528
  };
1514
1529
  };
1515
1530
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
@@ -1549,31 +1564,26 @@ const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateResponse = (out
1549
1564
  };
1550
1565
  const deserializeAws_json1_1GetAWSDefaultServiceQuotaResponse = (output, context) => {
1551
1566
  return {
1552
- Quota: output.Quota !== undefined && output.Quota !== null
1553
- ? deserializeAws_json1_1ServiceQuota(output.Quota, context)
1554
- : undefined,
1567
+ Quota: output.Quota != null ? deserializeAws_json1_1ServiceQuota(output.Quota, context) : undefined,
1555
1568
  };
1556
1569
  };
1557
1570
  const deserializeAws_json1_1GetRequestedServiceQuotaChangeResponse = (output, context) => {
1558
1571
  return {
1559
- RequestedQuota: output.RequestedQuota !== undefined && output.RequestedQuota !== null
1572
+ RequestedQuota: output.RequestedQuota != null
1560
1573
  ? deserializeAws_json1_1RequestedServiceQuotaChange(output.RequestedQuota, context)
1561
1574
  : undefined,
1562
1575
  };
1563
1576
  };
1564
1577
  const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
1565
1578
  return {
1566
- ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate !== undefined &&
1567
- output.ServiceQuotaIncreaseRequestInTemplate !== null
1579
+ ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate != null
1568
1580
  ? deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate(output.ServiceQuotaIncreaseRequestInTemplate, context)
1569
1581
  : undefined,
1570
1582
  };
1571
1583
  };
1572
1584
  const deserializeAws_json1_1GetServiceQuotaResponse = (output, context) => {
1573
1585
  return {
1574
- Quota: output.Quota !== undefined && output.Quota !== null
1575
- ? deserializeAws_json1_1ServiceQuota(output.Quota, context)
1576
- : undefined,
1586
+ Quota: output.Quota != null ? deserializeAws_json1_1ServiceQuota(output.Quota, context) : undefined,
1577
1587
  };
1578
1588
  };
1579
1589
  const deserializeAws_json1_1IllegalArgumentException = (output, context) => {
@@ -1594,15 +1604,13 @@ const deserializeAws_json1_1InvalidResourceStateException = (output, context) =>
1594
1604
  const deserializeAws_json1_1ListAWSDefaultServiceQuotasResponse = (output, context) => {
1595
1605
  return {
1596
1606
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1597
- Quotas: output.Quotas !== undefined && output.Quotas !== null
1598
- ? deserializeAws_json1_1ServiceQuotaListDefinition(output.Quotas, context)
1599
- : undefined,
1607
+ Quotas: output.Quotas != null ? deserializeAws_json1_1ServiceQuotaListDefinition(output.Quotas, context) : undefined,
1600
1608
  };
1601
1609
  };
1602
1610
  const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaResponse = (output, context) => {
1603
1611
  return {
1604
1612
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1605
- RequestedQuotas: output.RequestedQuotas !== undefined && output.RequestedQuotas !== null
1613
+ RequestedQuotas: output.RequestedQuotas != null
1606
1614
  ? deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition(output.RequestedQuotas, context)
1607
1615
  : undefined,
1608
1616
  };
@@ -1610,7 +1618,7 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaRespons
1610
1618
  const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryResponse = (output, context) => {
1611
1619
  return {
1612
1620
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1613
- RequestedQuotas: output.RequestedQuotas !== undefined && output.RequestedQuotas !== null
1621
+ RequestedQuotas: output.RequestedQuotas != null
1614
1622
  ? deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition(output.RequestedQuotas, context)
1615
1623
  : undefined,
1616
1624
  };
@@ -1618,8 +1626,7 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryResponse = (ou
1618
1626
  const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateResponse = (output, context) => {
1619
1627
  return {
1620
1628
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1621
- ServiceQuotaIncreaseRequestInTemplateList: output.ServiceQuotaIncreaseRequestInTemplateList !== undefined &&
1622
- output.ServiceQuotaIncreaseRequestInTemplateList !== null
1629
+ ServiceQuotaIncreaseRequestInTemplateList: output.ServiceQuotaIncreaseRequestInTemplateList != null
1623
1630
  ? deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList(output.ServiceQuotaIncreaseRequestInTemplateList, context)
1624
1631
  : undefined,
1625
1632
  };
@@ -1627,24 +1634,18 @@ const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateResponse =
1627
1634
  const deserializeAws_json1_1ListServiceQuotasResponse = (output, context) => {
1628
1635
  return {
1629
1636
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1630
- Quotas: output.Quotas !== undefined && output.Quotas !== null
1631
- ? deserializeAws_json1_1ServiceQuotaListDefinition(output.Quotas, context)
1632
- : undefined,
1637
+ Quotas: output.Quotas != null ? deserializeAws_json1_1ServiceQuotaListDefinition(output.Quotas, context) : undefined,
1633
1638
  };
1634
1639
  };
1635
1640
  const deserializeAws_json1_1ListServicesResponse = (output, context) => {
1636
1641
  return {
1637
1642
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1638
- Services: output.Services !== undefined && output.Services !== null
1639
- ? deserializeAws_json1_1ServiceInfoListDefinition(output.Services, context)
1640
- : undefined,
1643
+ Services: output.Services != null ? deserializeAws_json1_1ServiceInfoListDefinition(output.Services, context) : undefined,
1641
1644
  };
1642
1645
  };
1643
1646
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
1644
1647
  return {
1645
- Tags: output.Tags !== undefined && output.Tags !== null
1646
- ? deserializeAws_json1_1OutputTags(output.Tags, context)
1647
- : undefined,
1648
+ Tags: output.Tags != null ? deserializeAws_json1_1OutputTags(output.Tags, context) : undefined,
1648
1649
  };
1649
1650
  };
1650
1651
  const deserializeAws_json1_1MetricDimensionsMapDefinition = (output, context) => {
@@ -1660,7 +1661,7 @@ const deserializeAws_json1_1MetricDimensionsMapDefinition = (output, context) =>
1660
1661
  };
1661
1662
  const deserializeAws_json1_1MetricInfo = (output, context) => {
1662
1663
  return {
1663
- MetricDimensions: output.MetricDimensions !== undefined && output.MetricDimensions !== null
1664
+ MetricDimensions: output.MetricDimensions != null
1664
1665
  ? deserializeAws_json1_1MetricDimensionsMapDefinition(output.MetricDimensions, context)
1665
1666
  : undefined,
1666
1667
  MetricName: (0, smithy_client_1.expectString)(output.MetricName),
@@ -1696,8 +1697,7 @@ const deserializeAws_json1_1OutputTags = (output, context) => {
1696
1697
  };
1697
1698
  const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
1698
1699
  return {
1699
- ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate !== undefined &&
1700
- output.ServiceQuotaIncreaseRequestInTemplate !== null
1700
+ ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate != null
1701
1701
  ? deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate(output.ServiceQuotaIncreaseRequestInTemplate, context)
1702
1702
  : undefined,
1703
1703
  };
@@ -1716,13 +1716,11 @@ const deserializeAws_json1_1QuotaPeriod = (output, context) => {
1716
1716
  const deserializeAws_json1_1RequestedServiceQuotaChange = (output, context) => {
1717
1717
  return {
1718
1718
  CaseId: (0, smithy_client_1.expectString)(output.CaseId),
1719
- Created: output.Created !== undefined && output.Created !== null
1720
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created)))
1721
- : undefined,
1719
+ Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
1722
1720
  DesiredValue: (0, smithy_client_1.limitedParseDouble)(output.DesiredValue),
1723
1721
  GlobalQuota: (0, smithy_client_1.expectBoolean)(output.GlobalQuota),
1724
1722
  Id: (0, smithy_client_1.expectString)(output.Id),
1725
- LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
1723
+ LastUpdated: output.LastUpdated != null
1726
1724
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
1727
1725
  : undefined,
1728
1726
  QuotaArn: (0, smithy_client_1.expectString)(output.QuotaArn),
@@ -1748,7 +1746,7 @@ const deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = (
1748
1746
  };
1749
1747
  const deserializeAws_json1_1RequestServiceQuotaIncreaseResponse = (output, context) => {
1750
1748
  return {
1751
- RequestedQuota: output.RequestedQuota !== undefined && output.RequestedQuota !== null
1749
+ RequestedQuota: output.RequestedQuota != null
1752
1750
  ? deserializeAws_json1_1RequestedServiceQuotaChange(output.RequestedQuota, context)
1753
1751
  : undefined,
1754
1752
  };
@@ -1783,22 +1781,16 @@ const deserializeAws_json1_1ServiceInfoListDefinition = (output, context) => {
1783
1781
  const deserializeAws_json1_1ServiceQuota = (output, context) => {
1784
1782
  return {
1785
1783
  Adjustable: (0, smithy_client_1.expectBoolean)(output.Adjustable),
1786
- ErrorReason: output.ErrorReason !== undefined && output.ErrorReason !== null
1787
- ? deserializeAws_json1_1ErrorReason(output.ErrorReason, context)
1788
- : undefined,
1784
+ ErrorReason: output.ErrorReason != null ? deserializeAws_json1_1ErrorReason(output.ErrorReason, context) : undefined,
1789
1785
  GlobalQuota: (0, smithy_client_1.expectBoolean)(output.GlobalQuota),
1790
- Period: output.Period !== undefined && output.Period !== null
1791
- ? deserializeAws_json1_1QuotaPeriod(output.Period, context)
1792
- : undefined,
1786
+ Period: output.Period != null ? deserializeAws_json1_1QuotaPeriod(output.Period, context) : undefined,
1793
1787
  QuotaArn: (0, smithy_client_1.expectString)(output.QuotaArn),
1794
1788
  QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
1795
1789
  QuotaName: (0, smithy_client_1.expectString)(output.QuotaName),
1796
1790
  ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
1797
1791
  ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
1798
1792
  Unit: (0, smithy_client_1.expectString)(output.Unit),
1799
- UsageMetric: output.UsageMetric !== undefined && output.UsageMetric !== null
1800
- ? deserializeAws_json1_1MetricInfo(output.UsageMetric, context)
1801
- : undefined,
1793
+ UsageMetric: output.UsageMetric != null ? deserializeAws_json1_1MetricInfo(output.UsageMetric, context) : undefined,
1802
1794
  Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
1803
1795
  };
1804
1796
  };
@@ -1935,5 +1927,4 @@ const loadRestJsonErrorCode = (output, data) => {
1935
1927
  if (data["__type"] !== undefined) {
1936
1928
  return sanitizeErrorCode(data["__type"]);
1937
1929
  }
1938
- return "";
1939
1930
  };