@aws-sdk/client-service-quotas 3.312.0 → 3.315.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.
@@ -8,105 +8,105 @@ const ServiceQuotasServiceException_1 = require("../models/ServiceQuotasServiceE
8
8
  const se_AssociateServiceQuotaTemplateCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("AssociateServiceQuotaTemplate");
10
10
  let body;
11
- body = JSON.stringify(se_AssociateServiceQuotaTemplateRequest(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_AssociateServiceQuotaTemplateCommand = se_AssociateServiceQuotaTemplateCommand;
15
15
  const se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("DeleteServiceQuotaIncreaseRequestFromTemplate");
17
17
  let body;
18
- body = JSON.stringify(se_DeleteServiceQuotaIncreaseRequestFromTemplateRequest(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand;
22
22
  const se_DisassociateServiceQuotaTemplateCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("DisassociateServiceQuotaTemplate");
24
24
  let body;
25
- body = JSON.stringify(se_DisassociateServiceQuotaTemplateRequest(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_DisassociateServiceQuotaTemplateCommand = se_DisassociateServiceQuotaTemplateCommand;
29
29
  const se_GetAssociationForServiceQuotaTemplateCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("GetAssociationForServiceQuotaTemplate");
31
31
  let body;
32
- body = JSON.stringify(se_GetAssociationForServiceQuotaTemplateRequest(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  exports.se_GetAssociationForServiceQuotaTemplateCommand = se_GetAssociationForServiceQuotaTemplateCommand;
36
36
  const se_GetAWSDefaultServiceQuotaCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("GetAWSDefaultServiceQuota");
38
38
  let body;
39
- body = JSON.stringify(se_GetAWSDefaultServiceQuotaRequest(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_GetAWSDefaultServiceQuotaCommand = se_GetAWSDefaultServiceQuotaCommand;
43
43
  const se_GetRequestedServiceQuotaChangeCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("GetRequestedServiceQuotaChange");
45
45
  let body;
46
- body = JSON.stringify(se_GetRequestedServiceQuotaChangeRequest(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_GetRequestedServiceQuotaChangeCommand = se_GetRequestedServiceQuotaChangeCommand;
50
50
  const se_GetServiceQuotaCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("GetServiceQuota");
52
52
  let body;
53
- body = JSON.stringify(se_GetServiceQuotaRequest(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_GetServiceQuotaCommand = se_GetServiceQuotaCommand;
57
57
  const se_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("GetServiceQuotaIncreaseRequestFromTemplate");
59
59
  let body;
60
- body = JSON.stringify(se_GetServiceQuotaIncreaseRequestFromTemplateRequest(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_GetServiceQuotaIncreaseRequestFromTemplateCommand = se_GetServiceQuotaIncreaseRequestFromTemplateCommand;
64
64
  const se_ListAWSDefaultServiceQuotasCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("ListAWSDefaultServiceQuotas");
66
66
  let body;
67
- body = JSON.stringify(se_ListAWSDefaultServiceQuotasRequest(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_ListAWSDefaultServiceQuotasCommand = se_ListAWSDefaultServiceQuotasCommand;
71
71
  const se_ListRequestedServiceQuotaChangeHistoryCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistory");
73
73
  let body;
74
- body = JSON.stringify(se_ListRequestedServiceQuotaChangeHistoryRequest(input, context));
74
+ body = JSON.stringify((0, smithy_client_1._json)(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  exports.se_ListRequestedServiceQuotaChangeHistoryCommand = se_ListRequestedServiceQuotaChangeHistoryCommand;
78
78
  const se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistoryByQuota");
80
80
  let body;
81
- body = JSON.stringify(se_ListRequestedServiceQuotaChangeHistoryByQuotaRequest(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand;
85
85
  const se_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (input, context) => {
86
86
  const headers = sharedHeaders("ListServiceQuotaIncreaseRequestsInTemplate");
87
87
  let body;
88
- body = JSON.stringify(se_ListServiceQuotaIncreaseRequestsInTemplateRequest(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
89
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
90
  };
91
91
  exports.se_ListServiceQuotaIncreaseRequestsInTemplateCommand = se_ListServiceQuotaIncreaseRequestsInTemplateCommand;
92
92
  const se_ListServiceQuotasCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("ListServiceQuotas");
94
94
  let body;
95
- body = JSON.stringify(se_ListServiceQuotasRequest(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_ListServiceQuotasCommand = se_ListServiceQuotasCommand;
99
99
  const se_ListServicesCommand = async (input, context) => {
100
100
  const headers = sharedHeaders("ListServices");
101
101
  let body;
102
- body = JSON.stringify(se_ListServicesRequest(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
103
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
104
  };
105
105
  exports.se_ListServicesCommand = se_ListServicesCommand;
106
106
  const se_ListTagsForResourceCommand = async (input, context) => {
107
107
  const headers = sharedHeaders("ListTagsForResource");
108
108
  let body;
109
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
110
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
111
  };
112
112
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
@@ -127,14 +127,14 @@ exports.se_RequestServiceQuotaIncreaseCommand = se_RequestServiceQuotaIncreaseCo
127
127
  const se_TagResourceCommand = async (input, context) => {
128
128
  const headers = sharedHeaders("TagResource");
129
129
  let body;
130
- body = JSON.stringify(se_TagResourceRequest(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
131
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
132
  };
133
133
  exports.se_TagResourceCommand = se_TagResourceCommand;
134
134
  const se_UntagResourceCommand = async (input, context) => {
135
135
  const headers = sharedHeaders("UntagResource");
136
136
  let body;
137
- body = JSON.stringify(se_UntagResourceRequest(input, context));
137
+ body = JSON.stringify((0, smithy_client_1._json)(input));
138
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
139
  };
140
140
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -144,12 +144,12 @@ const de_AssociateServiceQuotaTemplateCommand = async (output, context) => {
144
144
  }
145
145
  const data = await parseBody(output.body, context);
146
146
  let contents = {};
147
- contents = de_AssociateServiceQuotaTemplateResponse(data, context);
147
+ contents = (0, smithy_client_1._json)(data);
148
148
  const response = {
149
149
  $metadata: deserializeMetadata(output),
150
150
  ...contents,
151
151
  };
152
- return Promise.resolve(response);
152
+ return response;
153
153
  };
154
154
  exports.de_AssociateServiceQuotaTemplateCommand = de_AssociateServiceQuotaTemplateCommand;
155
155
  const de_AssociateServiceQuotaTemplateCommandError = async (output, context) => {
@@ -185,10 +185,9 @@ const de_AssociateServiceQuotaTemplateCommandError = async (output, context) =>
185
185
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
186
186
  default:
187
187
  const parsedBody = parsedOutput.body;
188
- (0, smithy_client_1.throwDefaultError)({
188
+ return throwDefaultError({
189
189
  output,
190
190
  parsedBody,
191
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
192
191
  errorCode,
193
192
  });
194
193
  }
@@ -199,12 +198,12 @@ const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (output, c
199
198
  }
200
199
  const data = await parseBody(output.body, context);
201
200
  let contents = {};
202
- contents = de_DeleteServiceQuotaIncreaseRequestFromTemplateResponse(data, context);
201
+ contents = (0, smithy_client_1._json)(data);
203
202
  const response = {
204
203
  $metadata: deserializeMetadata(output),
205
204
  ...contents,
206
205
  };
207
- return Promise.resolve(response);
206
+ return response;
208
207
  };
209
208
  exports.de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand;
210
209
  const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
@@ -243,10 +242,9 @@ const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (outp
243
242
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
244
243
  default:
245
244
  const parsedBody = parsedOutput.body;
246
- (0, smithy_client_1.throwDefaultError)({
245
+ return throwDefaultError({
247
246
  output,
248
247
  parsedBody,
249
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
250
248
  errorCode,
251
249
  });
252
250
  }
@@ -257,12 +255,12 @@ const de_DisassociateServiceQuotaTemplateCommand = async (output, context) => {
257
255
  }
258
256
  const data = await parseBody(output.body, context);
259
257
  let contents = {};
260
- contents = de_DisassociateServiceQuotaTemplateResponse(data, context);
258
+ contents = (0, smithy_client_1._json)(data);
261
259
  const response = {
262
260
  $metadata: deserializeMetadata(output),
263
261
  ...contents,
264
262
  };
265
- return Promise.resolve(response);
263
+ return response;
266
264
  };
267
265
  exports.de_DisassociateServiceQuotaTemplateCommand = de_DisassociateServiceQuotaTemplateCommand;
268
266
  const de_DisassociateServiceQuotaTemplateCommandError = async (output, context) => {
@@ -298,10 +296,9 @@ const de_DisassociateServiceQuotaTemplateCommandError = async (output, context)
298
296
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
299
297
  default:
300
298
  const parsedBody = parsedOutput.body;
301
- (0, smithy_client_1.throwDefaultError)({
299
+ return throwDefaultError({
302
300
  output,
303
301
  parsedBody,
304
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
305
302
  errorCode,
306
303
  });
307
304
  }
@@ -312,12 +309,12 @@ const de_GetAssociationForServiceQuotaTemplateCommand = async (output, context)
312
309
  }
313
310
  const data = await parseBody(output.body, context);
314
311
  let contents = {};
315
- contents = de_GetAssociationForServiceQuotaTemplateResponse(data, context);
312
+ contents = (0, smithy_client_1._json)(data);
316
313
  const response = {
317
314
  $metadata: deserializeMetadata(output),
318
315
  ...contents,
319
316
  };
320
- return Promise.resolve(response);
317
+ return response;
321
318
  };
322
319
  exports.de_GetAssociationForServiceQuotaTemplateCommand = de_GetAssociationForServiceQuotaTemplateCommand;
323
320
  const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, context) => {
@@ -353,10 +350,9 @@ const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, cont
353
350
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
354
351
  default:
355
352
  const parsedBody = parsedOutput.body;
356
- (0, smithy_client_1.throwDefaultError)({
353
+ return throwDefaultError({
357
354
  output,
358
355
  parsedBody,
359
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
360
356
  errorCode,
361
357
  });
362
358
  }
@@ -372,7 +368,7 @@ const de_GetAWSDefaultServiceQuotaCommand = async (output, context) => {
372
368
  $metadata: deserializeMetadata(output),
373
369
  ...contents,
374
370
  };
375
- return Promise.resolve(response);
371
+ return response;
376
372
  };
377
373
  exports.de_GetAWSDefaultServiceQuotaCommand = de_GetAWSDefaultServiceQuotaCommand;
378
374
  const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
@@ -399,10 +395,9 @@ const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
399
395
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
400
396
  default:
401
397
  const parsedBody = parsedOutput.body;
402
- (0, smithy_client_1.throwDefaultError)({
398
+ return throwDefaultError({
403
399
  output,
404
400
  parsedBody,
405
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
406
401
  errorCode,
407
402
  });
408
403
  }
@@ -418,7 +413,7 @@ const de_GetRequestedServiceQuotaChangeCommand = async (output, context) => {
418
413
  $metadata: deserializeMetadata(output),
419
414
  ...contents,
420
415
  };
421
- return Promise.resolve(response);
416
+ return response;
422
417
  };
423
418
  exports.de_GetRequestedServiceQuotaChangeCommand = de_GetRequestedServiceQuotaChangeCommand;
424
419
  const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) => {
@@ -445,10 +440,9 @@ const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) =>
445
440
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
446
441
  default:
447
442
  const parsedBody = parsedOutput.body;
448
- (0, smithy_client_1.throwDefaultError)({
443
+ return throwDefaultError({
449
444
  output,
450
445
  parsedBody,
451
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
452
446
  errorCode,
453
447
  });
454
448
  }
@@ -464,7 +458,7 @@ const de_GetServiceQuotaCommand = async (output, context) => {
464
458
  $metadata: deserializeMetadata(output),
465
459
  ...contents,
466
460
  };
467
- return Promise.resolve(response);
461
+ return response;
468
462
  };
469
463
  exports.de_GetServiceQuotaCommand = de_GetServiceQuotaCommand;
470
464
  const de_GetServiceQuotaCommandError = async (output, context) => {
@@ -491,10 +485,9 @@ const de_GetServiceQuotaCommandError = async (output, context) => {
491
485
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
492
486
  default:
493
487
  const parsedBody = parsedOutput.body;
494
- (0, smithy_client_1.throwDefaultError)({
488
+ return throwDefaultError({
495
489
  output,
496
490
  parsedBody,
497
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
498
491
  errorCode,
499
492
  });
500
493
  }
@@ -510,7 +503,7 @@ const de_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (output, cont
510
503
  $metadata: deserializeMetadata(output),
511
504
  ...contents,
512
505
  };
513
- return Promise.resolve(response);
506
+ return response;
514
507
  };
515
508
  exports.de_GetServiceQuotaIncreaseRequestFromTemplateCommand = de_GetServiceQuotaIncreaseRequestFromTemplateCommand;
516
509
  const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
@@ -549,10 +542,9 @@ const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output,
549
542
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
550
543
  default:
551
544
  const parsedBody = parsedOutput.body;
552
- (0, smithy_client_1.throwDefaultError)({
545
+ return throwDefaultError({
553
546
  output,
554
547
  parsedBody,
555
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
556
548
  errorCode,
557
549
  });
558
550
  }
@@ -568,7 +560,7 @@ const de_ListAWSDefaultServiceQuotasCommand = async (output, context) => {
568
560
  $metadata: deserializeMetadata(output),
569
561
  ...contents,
570
562
  };
571
- return Promise.resolve(response);
563
+ return response;
572
564
  };
573
565
  exports.de_ListAWSDefaultServiceQuotasCommand = de_ListAWSDefaultServiceQuotasCommand;
574
566
  const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
@@ -598,10 +590,9 @@ const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
598
590
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
599
591
  default:
600
592
  const parsedBody = parsedOutput.body;
601
- (0, smithy_client_1.throwDefaultError)({
593
+ return throwDefaultError({
602
594
  output,
603
595
  parsedBody,
604
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
605
596
  errorCode,
606
597
  });
607
598
  }
@@ -617,7 +608,7 @@ const de_ListRequestedServiceQuotaChangeHistoryCommand = async (output, context)
617
608
  $metadata: deserializeMetadata(output),
618
609
  ...contents,
619
610
  };
620
- return Promise.resolve(response);
611
+ return response;
621
612
  };
622
613
  exports.de_ListRequestedServiceQuotaChangeHistoryCommand = de_ListRequestedServiceQuotaChangeHistoryCommand;
623
614
  const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, context) => {
@@ -647,10 +638,9 @@ const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, con
647
638
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
648
639
  default:
649
640
  const parsedBody = parsedOutput.body;
650
- (0, smithy_client_1.throwDefaultError)({
641
+ return throwDefaultError({
651
642
  output,
652
643
  parsedBody,
653
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
654
644
  errorCode,
655
645
  });
656
646
  }
@@ -666,7 +656,7 @@ const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (output, c
666
656
  $metadata: deserializeMetadata(output),
667
657
  ...contents,
668
658
  };
669
- return Promise.resolve(response);
659
+ return response;
670
660
  };
671
661
  exports.de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand;
672
662
  const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (output, context) => {
@@ -696,10 +686,9 @@ const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (outp
696
686
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
697
687
  default:
698
688
  const parsedBody = parsedOutput.body;
699
- (0, smithy_client_1.throwDefaultError)({
689
+ return throwDefaultError({
700
690
  output,
701
691
  parsedBody,
702
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
703
692
  errorCode,
704
693
  });
705
694
  }
@@ -715,7 +704,7 @@ const de_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, cont
715
704
  $metadata: deserializeMetadata(output),
716
705
  ...contents,
717
706
  };
718
- return Promise.resolve(response);
707
+ return response;
719
708
  };
720
709
  exports.de_ListServiceQuotaIncreaseRequestsInTemplateCommand = de_ListServiceQuotaIncreaseRequestsInTemplateCommand;
721
710
  const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output, context) => {
@@ -751,10 +740,9 @@ const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output,
751
740
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
752
741
  default:
753
742
  const parsedBody = parsedOutput.body;
754
- (0, smithy_client_1.throwDefaultError)({
743
+ return throwDefaultError({
755
744
  output,
756
745
  parsedBody,
757
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
758
746
  errorCode,
759
747
  });
760
748
  }
@@ -770,7 +758,7 @@ const de_ListServiceQuotasCommand = async (output, context) => {
770
758
  $metadata: deserializeMetadata(output),
771
759
  ...contents,
772
760
  };
773
- return Promise.resolve(response);
761
+ return response;
774
762
  };
775
763
  exports.de_ListServiceQuotasCommand = de_ListServiceQuotasCommand;
776
764
  const de_ListServiceQuotasCommandError = async (output, context) => {
@@ -800,10 +788,9 @@ const de_ListServiceQuotasCommandError = async (output, context) => {
800
788
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
801
789
  default:
802
790
  const parsedBody = parsedOutput.body;
803
- (0, smithy_client_1.throwDefaultError)({
791
+ return throwDefaultError({
804
792
  output,
805
793
  parsedBody,
806
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
807
794
  errorCode,
808
795
  });
809
796
  }
@@ -814,12 +801,12 @@ const de_ListServicesCommand = async (output, context) => {
814
801
  }
815
802
  const data = await parseBody(output.body, context);
816
803
  let contents = {};
817
- contents = de_ListServicesResponse(data, context);
804
+ contents = (0, smithy_client_1._json)(data);
818
805
  const response = {
819
806
  $metadata: deserializeMetadata(output),
820
807
  ...contents,
821
808
  };
822
- return Promise.resolve(response);
809
+ return response;
823
810
  };
824
811
  exports.de_ListServicesCommand = de_ListServicesCommand;
825
812
  const de_ListServicesCommandError = async (output, context) => {
@@ -846,10 +833,9 @@ const de_ListServicesCommandError = async (output, context) => {
846
833
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
847
834
  default:
848
835
  const parsedBody = parsedOutput.body;
849
- (0, smithy_client_1.throwDefaultError)({
836
+ return throwDefaultError({
850
837
  output,
851
838
  parsedBody,
852
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
853
839
  errorCode,
854
840
  });
855
841
  }
@@ -860,12 +846,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
860
846
  }
861
847
  const data = await parseBody(output.body, context);
862
848
  let contents = {};
863
- contents = de_ListTagsForResourceResponse(data, context);
849
+ contents = (0, smithy_client_1._json)(data);
864
850
  const response = {
865
851
  $metadata: deserializeMetadata(output),
866
852
  ...contents,
867
853
  };
868
- return Promise.resolve(response);
854
+ return response;
869
855
  };
870
856
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
871
857
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -892,10 +878,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
892
878
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
893
879
  default:
894
880
  const parsedBody = parsedOutput.body;
895
- (0, smithy_client_1.throwDefaultError)({
881
+ return throwDefaultError({
896
882
  output,
897
883
  parsedBody,
898
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
899
884
  errorCode,
900
885
  });
901
886
  }
@@ -911,7 +896,7 @@ const de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (output, cont
911
896
  $metadata: deserializeMetadata(output),
912
897
  ...contents,
913
898
  };
914
- return Promise.resolve(response);
899
+ return response;
915
900
  };
916
901
  exports.de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = de_PutServiceQuotaIncreaseRequestIntoTemplateCommand;
917
902
  const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output, context) => {
@@ -953,10 +938,9 @@ const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output,
953
938
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
954
939
  default:
955
940
  const parsedBody = parsedOutput.body;
956
- (0, smithy_client_1.throwDefaultError)({
941
+ return throwDefaultError({
957
942
  output,
958
943
  parsedBody,
959
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
960
944
  errorCode,
961
945
  });
962
946
  }
@@ -972,7 +956,7 @@ const de_RequestServiceQuotaIncreaseCommand = async (output, context) => {
972
956
  $metadata: deserializeMetadata(output),
973
957
  ...contents,
974
958
  };
975
- return Promise.resolve(response);
959
+ return response;
976
960
  };
977
961
  exports.de_RequestServiceQuotaIncreaseCommand = de_RequestServiceQuotaIncreaseCommand;
978
962
  const de_RequestServiceQuotaIncreaseCommandError = async (output, context) => {
@@ -1011,10 +995,9 @@ const de_RequestServiceQuotaIncreaseCommandError = async (output, context) => {
1011
995
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1012
996
  default:
1013
997
  const parsedBody = parsedOutput.body;
1014
- (0, smithy_client_1.throwDefaultError)({
998
+ return throwDefaultError({
1015
999
  output,
1016
1000
  parsedBody,
1017
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
1018
1001
  errorCode,
1019
1002
  });
1020
1003
  }
@@ -1025,12 +1008,12 @@ const de_TagResourceCommand = async (output, context) => {
1025
1008
  }
1026
1009
  const data = await parseBody(output.body, context);
1027
1010
  let contents = {};
1028
- contents = de_TagResourceResponse(data, context);
1011
+ contents = (0, smithy_client_1._json)(data);
1029
1012
  const response = {
1030
1013
  $metadata: deserializeMetadata(output),
1031
1014
  ...contents,
1032
1015
  };
1033
- return Promise.resolve(response);
1016
+ return response;
1034
1017
  };
1035
1018
  exports.de_TagResourceCommand = de_TagResourceCommand;
1036
1019
  const de_TagResourceCommandError = async (output, context) => {
@@ -1063,10 +1046,9 @@ const de_TagResourceCommandError = async (output, context) => {
1063
1046
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1064
1047
  default:
1065
1048
  const parsedBody = parsedOutput.body;
1066
- (0, smithy_client_1.throwDefaultError)({
1049
+ return throwDefaultError({
1067
1050
  output,
1068
1051
  parsedBody,
1069
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
1070
1052
  errorCode,
1071
1053
  });
1072
1054
  }
@@ -1077,12 +1059,12 @@ const de_UntagResourceCommand = async (output, context) => {
1077
1059
  }
1078
1060
  const data = await parseBody(output.body, context);
1079
1061
  let contents = {};
1080
- contents = de_UntagResourceResponse(data, context);
1062
+ contents = (0, smithy_client_1._json)(data);
1081
1063
  const response = {
1082
1064
  $metadata: deserializeMetadata(output),
1083
1065
  ...contents,
1084
1066
  };
1085
- return Promise.resolve(response);
1067
+ return response;
1086
1068
  };
1087
1069
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1088
1070
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1109,17 +1091,16 @@ const de_UntagResourceCommandError = async (output, context) => {
1109
1091
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1110
1092
  default:
1111
1093
  const parsedBody = parsedOutput.body;
1112
- (0, smithy_client_1.throwDefaultError)({
1094
+ return throwDefaultError({
1113
1095
  output,
1114
1096
  parsedBody,
1115
- exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
1116
1097
  errorCode,
1117
1098
  });
1118
1099
  }
1119
1100
  };
1120
1101
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1121
1102
  const body = parsedOutput.body;
1122
- const deserialized = de_AccessDeniedException(body, context);
1103
+ const deserialized = (0, smithy_client_1._json)(body);
1123
1104
  const exception = new models_0_1.AccessDeniedException({
1124
1105
  $metadata: deserializeMetadata(parsedOutput),
1125
1106
  ...deserialized,
@@ -1128,7 +1109,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1128
1109
  };
1129
1110
  const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
1130
1111
  const body = parsedOutput.body;
1131
- const deserialized = de_AWSServiceAccessNotEnabledException(body, context);
1112
+ const deserialized = (0, smithy_client_1._json)(body);
1132
1113
  const exception = new models_0_1.AWSServiceAccessNotEnabledException({
1133
1114
  $metadata: deserializeMetadata(parsedOutput),
1134
1115
  ...deserialized,
@@ -1137,7 +1118,7 @@ const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context)
1137
1118
  };
1138
1119
  const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
1139
1120
  const body = parsedOutput.body;
1140
- const deserialized = de_DependencyAccessDeniedException(body, context);
1121
+ const deserialized = (0, smithy_client_1._json)(body);
1141
1122
  const exception = new models_0_1.DependencyAccessDeniedException({
1142
1123
  $metadata: deserializeMetadata(parsedOutput),
1143
1124
  ...deserialized,
@@ -1146,7 +1127,7 @@ const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
1146
1127
  };
1147
1128
  const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
1148
1129
  const body = parsedOutput.body;
1149
- const deserialized = de_IllegalArgumentException(body, context);
1130
+ const deserialized = (0, smithy_client_1._json)(body);
1150
1131
  const exception = new models_0_1.IllegalArgumentException({
1151
1132
  $metadata: deserializeMetadata(parsedOutput),
1152
1133
  ...deserialized,
@@ -1155,7 +1136,7 @@ const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
1155
1136
  };
1156
1137
  const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
1157
1138
  const body = parsedOutput.body;
1158
- const deserialized = de_InvalidPaginationTokenException(body, context);
1139
+ const deserialized = (0, smithy_client_1._json)(body);
1159
1140
  const exception = new models_0_1.InvalidPaginationTokenException({
1160
1141
  $metadata: deserializeMetadata(parsedOutput),
1161
1142
  ...deserialized,
@@ -1164,7 +1145,7 @@ const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
1164
1145
  };
1165
1146
  const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
1166
1147
  const body = parsedOutput.body;
1167
- const deserialized = de_InvalidResourceStateException(body, context);
1148
+ const deserialized = (0, smithy_client_1._json)(body);
1168
1149
  const exception = new models_0_1.InvalidResourceStateException({
1169
1150
  $metadata: deserializeMetadata(parsedOutput),
1170
1151
  ...deserialized,
@@ -1173,7 +1154,7 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
1173
1154
  };
1174
1155
  const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) => {
1175
1156
  const body = parsedOutput.body;
1176
- const deserialized = de_NoAvailableOrganizationException(body, context);
1157
+ const deserialized = (0, smithy_client_1._json)(body);
1177
1158
  const exception = new models_0_1.NoAvailableOrganizationException({
1178
1159
  $metadata: deserializeMetadata(parsedOutput),
1179
1160
  ...deserialized,
@@ -1182,7 +1163,7 @@ const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) =>
1182
1163
  };
1183
1164
  const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
1184
1165
  const body = parsedOutput.body;
1185
- const deserialized = de_NoSuchResourceException(body, context);
1166
+ const deserialized = (0, smithy_client_1._json)(body);
1186
1167
  const exception = new models_0_1.NoSuchResourceException({
1187
1168
  $metadata: deserializeMetadata(parsedOutput),
1188
1169
  ...deserialized,
@@ -1191,7 +1172,7 @@ const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
1191
1172
  };
1192
1173
  const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
1193
1174
  const body = parsedOutput.body;
1194
- const deserialized = de_OrganizationNotInAllFeaturesModeException(body, context);
1175
+ const deserialized = (0, smithy_client_1._json)(body);
1195
1176
  const exception = new models_0_1.OrganizationNotInAllFeaturesModeException({
1196
1177
  $metadata: deserializeMetadata(parsedOutput),
1197
1178
  ...deserialized,
@@ -1200,7 +1181,7 @@ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, con
1200
1181
  };
1201
1182
  const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
1202
1183
  const body = parsedOutput.body;
1203
- const deserialized = de_QuotaExceededException(body, context);
1184
+ const deserialized = (0, smithy_client_1._json)(body);
1204
1185
  const exception = new models_0_1.QuotaExceededException({
1205
1186
  $metadata: deserializeMetadata(parsedOutput),
1206
1187
  ...deserialized,
@@ -1209,7 +1190,7 @@ const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
1209
1190
  };
1210
1191
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1211
1192
  const body = parsedOutput.body;
1212
- const deserialized = de_ResourceAlreadyExistsException(body, context);
1193
+ const deserialized = (0, smithy_client_1._json)(body);
1213
1194
  const exception = new models_0_1.ResourceAlreadyExistsException({
1214
1195
  $metadata: deserializeMetadata(parsedOutput),
1215
1196
  ...deserialized,
@@ -1218,7 +1199,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1218
1199
  };
1219
1200
  const de_ServiceExceptionRes = async (parsedOutput, context) => {
1220
1201
  const body = parsedOutput.body;
1221
- const deserialized = de_ServiceException(body, context);
1202
+ const deserialized = (0, smithy_client_1._json)(body);
1222
1203
  const exception = new models_0_1.ServiceException({
1223
1204
  $metadata: deserializeMetadata(parsedOutput),
1224
1205
  ...deserialized,
@@ -1227,7 +1208,7 @@ const de_ServiceExceptionRes = async (parsedOutput, context) => {
1227
1208
  };
1228
1209
  const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context) => {
1229
1210
  const body = parsedOutput.body;
1230
- const deserialized = de_ServiceQuotaTemplateNotInUseException(body, context);
1211
+ const deserialized = (0, smithy_client_1._json)(body);
1231
1212
  const exception = new models_0_1.ServiceQuotaTemplateNotInUseException({
1232
1213
  $metadata: deserializeMetadata(parsedOutput),
1233
1214
  ...deserialized,
@@ -1236,7 +1217,7 @@ const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context
1236
1217
  };
1237
1218
  const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
1238
1219
  const body = parsedOutput.body;
1239
- const deserialized = de_TagPolicyViolationException(body, context);
1220
+ const deserialized = (0, smithy_client_1._json)(body);
1240
1221
  const exception = new models_0_1.TagPolicyViolationException({
1241
1222
  $metadata: deserializeMetadata(parsedOutput),
1242
1223
  ...deserialized,
@@ -1245,7 +1226,7 @@ const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
1245
1226
  };
1246
1227
  const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, context) => {
1247
1228
  const body = parsedOutput.body;
1248
- const deserialized = de_TemplatesNotAvailableInRegionException(body, context);
1229
+ const deserialized = (0, smithy_client_1._json)(body);
1249
1230
  const exception = new models_0_1.TemplatesNotAvailableInRegionException({
1250
1231
  $metadata: deserializeMetadata(parsedOutput),
1251
1232
  ...deserialized,
@@ -1254,7 +1235,7 @@ const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, contex
1254
1235
  };
1255
1236
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1256
1237
  const body = parsedOutput.body;
1257
- const deserialized = de_TooManyRequestsException(body, context);
1238
+ const deserialized = (0, smithy_client_1._json)(body);
1258
1239
  const exception = new models_0_1.TooManyRequestsException({
1259
1240
  $metadata: deserializeMetadata(parsedOutput),
1260
1241
  ...deserialized,
@@ -1263,428 +1244,146 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1263
1244
  };
1264
1245
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1265
1246
  const body = parsedOutput.body;
1266
- const deserialized = de_TooManyTagsException(body, context);
1247
+ const deserialized = (0, smithy_client_1._json)(body);
1267
1248
  const exception = new models_0_1.TooManyTagsException({
1268
1249
  $metadata: deserializeMetadata(parsedOutput),
1269
1250
  ...deserialized,
1270
1251
  });
1271
1252
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1272
1253
  };
1273
- const se_AssociateServiceQuotaTemplateRequest = (input, context) => {
1274
- return {};
1275
- };
1276
- const se_DeleteServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
1277
- return {
1278
- ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1279
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1280
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1281
- };
1282
- };
1283
- const se_DisassociateServiceQuotaTemplateRequest = (input, context) => {
1284
- return {};
1285
- };
1286
- const se_GetAssociationForServiceQuotaTemplateRequest = (input, context) => {
1287
- return {};
1288
- };
1289
- const se_GetAWSDefaultServiceQuotaRequest = (input, context) => {
1290
- return {
1291
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1292
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1293
- };
1294
- };
1295
- const se_GetRequestedServiceQuotaChangeRequest = (input, context) => {
1296
- return {
1297
- ...(input.RequestId != null && { RequestId: input.RequestId }),
1298
- };
1299
- };
1300
- const se_GetServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
1301
- return {
1302
- ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1303
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1304
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1305
- };
1306
- };
1307
- const se_GetServiceQuotaRequest = (input, context) => {
1308
- return {
1309
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1310
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1311
- };
1312
- };
1313
- const se_InputTagKeys = (input, context) => {
1314
- return input
1315
- .filter((e) => e != null)
1316
- .map((entry) => {
1317
- return entry;
1318
- });
1319
- };
1320
- const se_InputTags = (input, context) => {
1321
- return input
1322
- .filter((e) => e != null)
1323
- .map((entry) => {
1324
- return se_Tag(entry, context);
1325
- });
1326
- };
1327
- const se_ListAWSDefaultServiceQuotasRequest = (input, context) => {
1328
- return {
1329
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1330
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1331
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1332
- };
1333
- };
1334
- const se_ListRequestedServiceQuotaChangeHistoryByQuotaRequest = (input, context) => {
1335
- return {
1336
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1337
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1338
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1339
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1340
- ...(input.Status != null && { Status: input.Status }),
1341
- };
1342
- };
1343
- const se_ListRequestedServiceQuotaChangeHistoryRequest = (input, context) => {
1344
- return {
1345
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1346
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1347
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1348
- ...(input.Status != null && { Status: input.Status }),
1349
- };
1350
- };
1351
- const se_ListServiceQuotaIncreaseRequestsInTemplateRequest = (input, context) => {
1352
- return {
1353
- ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1354
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1355
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1356
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1357
- };
1358
- };
1359
- const se_ListServiceQuotasRequest = (input, context) => {
1360
- return {
1361
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1362
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1363
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1364
- };
1365
- };
1366
- const se_ListServicesRequest = (input, context) => {
1367
- return {
1368
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1369
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1370
- };
1371
- };
1372
- const se_ListTagsForResourceRequest = (input, context) => {
1373
- return {
1374
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1375
- };
1376
- };
1377
1254
  const se_PutServiceQuotaIncreaseRequestIntoTemplateRequest = (input, context) => {
1378
- return {
1379
- ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1380
- ...(input.DesiredValue != null && { DesiredValue: (0, smithy_client_1.serializeFloat)(input.DesiredValue) }),
1381
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1382
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1383
- };
1255
+ return (0, smithy_client_1.take)(input, {
1256
+ AwsRegion: [],
1257
+ DesiredValue: smithy_client_1.serializeFloat,
1258
+ QuotaCode: [],
1259
+ ServiceCode: [],
1260
+ });
1384
1261
  };
1385
1262
  const se_RequestServiceQuotaIncreaseRequest = (input, context) => {
1386
- return {
1387
- ...(input.DesiredValue != null && { DesiredValue: (0, smithy_client_1.serializeFloat)(input.DesiredValue) }),
1388
- ...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
1389
- ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
1390
- };
1391
- };
1392
- const se_Tag = (input, context) => {
1393
- return {
1394
- ...(input.Key != null && { Key: input.Key }),
1395
- ...(input.Value != null && { Value: input.Value }),
1396
- };
1397
- };
1398
- const se_TagResourceRequest = (input, context) => {
1399
- return {
1400
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1401
- ...(input.Tags != null && { Tags: se_InputTags(input.Tags, context) }),
1402
- };
1403
- };
1404
- const se_UntagResourceRequest = (input, context) => {
1405
- return {
1406
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1407
- ...(input.TagKeys != null && { TagKeys: se_InputTagKeys(input.TagKeys, context) }),
1408
- };
1409
- };
1410
- const de_AccessDeniedException = (output, context) => {
1411
- return {
1412
- Message: (0, smithy_client_1.expectString)(output.Message),
1413
- };
1414
- };
1415
- const de_AssociateServiceQuotaTemplateResponse = (output, context) => {
1416
- return {};
1417
- };
1418
- const de_AWSServiceAccessNotEnabledException = (output, context) => {
1419
- return {
1420
- Message: (0, smithy_client_1.expectString)(output.Message),
1421
- };
1422
- };
1423
- const de_DeleteServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
1424
- return {};
1425
- };
1426
- const de_DependencyAccessDeniedException = (output, context) => {
1427
- return {
1428
- Message: (0, smithy_client_1.expectString)(output.Message),
1429
- };
1430
- };
1431
- const de_DisassociateServiceQuotaTemplateResponse = (output, context) => {
1432
- return {};
1433
- };
1434
- const de_ErrorReason = (output, context) => {
1435
- return {
1436
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
1437
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
1438
- };
1439
- };
1440
- const de_GetAssociationForServiceQuotaTemplateResponse = (output, context) => {
1441
- return {
1442
- ServiceQuotaTemplateAssociationStatus: (0, smithy_client_1.expectString)(output.ServiceQuotaTemplateAssociationStatus),
1443
- };
1263
+ return (0, smithy_client_1.take)(input, {
1264
+ DesiredValue: smithy_client_1.serializeFloat,
1265
+ QuotaCode: [],
1266
+ ServiceCode: [],
1267
+ });
1444
1268
  };
1445
1269
  const de_GetAWSDefaultServiceQuotaResponse = (output, context) => {
1446
- return {
1447
- Quota: output.Quota != null ? de_ServiceQuota(output.Quota, context) : undefined,
1448
- };
1270
+ return (0, smithy_client_1.take)(output, {
1271
+ Quota: (_) => de_ServiceQuota(_, context),
1272
+ });
1449
1273
  };
1450
1274
  const de_GetRequestedServiceQuotaChangeResponse = (output, context) => {
1451
- return {
1452
- RequestedQuota: output.RequestedQuota != null ? de_RequestedServiceQuotaChange(output.RequestedQuota, context) : undefined,
1453
- };
1275
+ return (0, smithy_client_1.take)(output, {
1276
+ RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context),
1277
+ });
1454
1278
  };
1455
1279
  const de_GetServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
1456
- return {
1457
- ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate != null
1458
- ? de_ServiceQuotaIncreaseRequestInTemplate(output.ServiceQuotaIncreaseRequestInTemplate, context)
1459
- : undefined,
1460
- };
1280
+ return (0, smithy_client_1.take)(output, {
1281
+ ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context),
1282
+ });
1461
1283
  };
1462
1284
  const de_GetServiceQuotaResponse = (output, context) => {
1463
- return {
1464
- Quota: output.Quota != null ? de_ServiceQuota(output.Quota, context) : undefined,
1465
- };
1466
- };
1467
- const de_IllegalArgumentException = (output, context) => {
1468
- return {
1469
- Message: (0, smithy_client_1.expectString)(output.Message),
1470
- };
1471
- };
1472
- const de_InvalidPaginationTokenException = (output, context) => {
1473
- return {
1474
- Message: (0, smithy_client_1.expectString)(output.Message),
1475
- };
1476
- };
1477
- const de_InvalidResourceStateException = (output, context) => {
1478
- return {
1479
- Message: (0, smithy_client_1.expectString)(output.Message),
1480
- };
1285
+ return (0, smithy_client_1.take)(output, {
1286
+ Quota: (_) => de_ServiceQuota(_, context),
1287
+ });
1481
1288
  };
1482
1289
  const de_ListAWSDefaultServiceQuotasResponse = (output, context) => {
1483
- return {
1484
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1485
- Quotas: output.Quotas != null ? de_ServiceQuotaListDefinition(output.Quotas, context) : undefined,
1486
- };
1290
+ return (0, smithy_client_1.take)(output, {
1291
+ NextToken: smithy_client_1.expectString,
1292
+ Quotas: (_) => de_ServiceQuotaListDefinition(_, context),
1293
+ });
1487
1294
  };
1488
1295
  const de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse = (output, context) => {
1489
- return {
1490
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1491
- RequestedQuotas: output.RequestedQuotas != null
1492
- ? de_RequestedServiceQuotaChangeHistoryListDefinition(output.RequestedQuotas, context)
1493
- : undefined,
1494
- };
1296
+ return (0, smithy_client_1.take)(output, {
1297
+ NextToken: smithy_client_1.expectString,
1298
+ RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context),
1299
+ });
1495
1300
  };
1496
1301
  const de_ListRequestedServiceQuotaChangeHistoryResponse = (output, context) => {
1497
- return {
1498
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1499
- RequestedQuotas: output.RequestedQuotas != null
1500
- ? de_RequestedServiceQuotaChangeHistoryListDefinition(output.RequestedQuotas, context)
1501
- : undefined,
1502
- };
1302
+ return (0, smithy_client_1.take)(output, {
1303
+ NextToken: smithy_client_1.expectString,
1304
+ RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context),
1305
+ });
1503
1306
  };
1504
1307
  const de_ListServiceQuotaIncreaseRequestsInTemplateResponse = (output, context) => {
1505
- return {
1506
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1507
- ServiceQuotaIncreaseRequestInTemplateList: output.ServiceQuotaIncreaseRequestInTemplateList != null
1508
- ? de_ServiceQuotaIncreaseRequestInTemplateList(output.ServiceQuotaIncreaseRequestInTemplateList, context)
1509
- : undefined,
1510
- };
1308
+ return (0, smithy_client_1.take)(output, {
1309
+ NextToken: smithy_client_1.expectString,
1310
+ ServiceQuotaIncreaseRequestInTemplateList: (_) => de_ServiceQuotaIncreaseRequestInTemplateList(_, context),
1311
+ });
1511
1312
  };
1512
1313
  const de_ListServiceQuotasResponse = (output, context) => {
1513
- return {
1514
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1515
- Quotas: output.Quotas != null ? de_ServiceQuotaListDefinition(output.Quotas, context) : undefined,
1516
- };
1517
- };
1518
- const de_ListServicesResponse = (output, context) => {
1519
- return {
1520
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1521
- Services: output.Services != null ? de_ServiceInfoListDefinition(output.Services, context) : undefined,
1522
- };
1523
- };
1524
- const de_ListTagsForResourceResponse = (output, context) => {
1525
- return {
1526
- Tags: output.Tags != null ? de_OutputTags(output.Tags, context) : undefined,
1527
- };
1528
- };
1529
- const de_MetricDimensionsMapDefinition = (output, context) => {
1530
- return Object.entries(output).reduce((acc, [key, value]) => {
1531
- if (value === null) {
1532
- return acc;
1533
- }
1534
- acc[key] = (0, smithy_client_1.expectString)(value);
1535
- return acc;
1536
- }, {});
1537
- };
1538
- const de_MetricInfo = (output, context) => {
1539
- return {
1540
- MetricDimensions: output.MetricDimensions != null ? de_MetricDimensionsMapDefinition(output.MetricDimensions, context) : undefined,
1541
- MetricName: (0, smithy_client_1.expectString)(output.MetricName),
1542
- MetricNamespace: (0, smithy_client_1.expectString)(output.MetricNamespace),
1543
- MetricStatisticRecommendation: (0, smithy_client_1.expectString)(output.MetricStatisticRecommendation),
1544
- };
1545
- };
1546
- const de_NoAvailableOrganizationException = (output, context) => {
1547
- return {
1548
- Message: (0, smithy_client_1.expectString)(output.Message),
1549
- };
1550
- };
1551
- const de_NoSuchResourceException = (output, context) => {
1552
- return {
1553
- Message: (0, smithy_client_1.expectString)(output.Message),
1554
- };
1555
- };
1556
- const de_OrganizationNotInAllFeaturesModeException = (output, context) => {
1557
- return {
1558
- Message: (0, smithy_client_1.expectString)(output.Message),
1559
- };
1560
- };
1561
- const de_OutputTags = (output, context) => {
1562
- const retVal = (output || [])
1563
- .filter((e) => e != null)
1564
- .map((entry) => {
1565
- if (entry === null) {
1566
- return null;
1567
- }
1568
- return de_Tag(entry, context);
1314
+ return (0, smithy_client_1.take)(output, {
1315
+ NextToken: smithy_client_1.expectString,
1316
+ Quotas: (_) => de_ServiceQuotaListDefinition(_, context),
1569
1317
  });
1570
- return retVal;
1571
1318
  };
1572
1319
  const de_PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
1573
- return {
1574
- ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate != null
1575
- ? de_ServiceQuotaIncreaseRequestInTemplate(output.ServiceQuotaIncreaseRequestInTemplate, context)
1576
- : undefined,
1577
- };
1578
- };
1579
- const de_QuotaExceededException = (output, context) => {
1580
- return {
1581
- Message: (0, smithy_client_1.expectString)(output.Message),
1582
- };
1583
- };
1584
- const de_QuotaPeriod = (output, context) => {
1585
- return {
1586
- PeriodUnit: (0, smithy_client_1.expectString)(output.PeriodUnit),
1587
- PeriodValue: (0, smithy_client_1.expectInt32)(output.PeriodValue),
1588
- };
1320
+ return (0, smithy_client_1.take)(output, {
1321
+ ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context),
1322
+ });
1589
1323
  };
1590
1324
  const de_RequestedServiceQuotaChange = (output, context) => {
1591
- return {
1592
- CaseId: (0, smithy_client_1.expectString)(output.CaseId),
1593
- Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
1594
- DesiredValue: (0, smithy_client_1.limitedParseDouble)(output.DesiredValue),
1595
- GlobalQuota: (0, smithy_client_1.expectBoolean)(output.GlobalQuota),
1596
- Id: (0, smithy_client_1.expectString)(output.Id),
1597
- LastUpdated: output.LastUpdated != null
1598
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
1599
- : undefined,
1600
- QuotaArn: (0, smithy_client_1.expectString)(output.QuotaArn),
1601
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
1602
- QuotaName: (0, smithy_client_1.expectString)(output.QuotaName),
1603
- Requester: (0, smithy_client_1.expectString)(output.Requester),
1604
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
1605
- ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
1606
- Status: (0, smithy_client_1.expectString)(output.Status),
1607
- Unit: (0, smithy_client_1.expectString)(output.Unit),
1608
- };
1325
+ return (0, smithy_client_1.take)(output, {
1326
+ CaseId: smithy_client_1.expectString,
1327
+ Created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1328
+ DesiredValue: smithy_client_1.limitedParseDouble,
1329
+ GlobalQuota: smithy_client_1.expectBoolean,
1330
+ Id: smithy_client_1.expectString,
1331
+ LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1332
+ QuotaArn: smithy_client_1.expectString,
1333
+ QuotaCode: smithy_client_1.expectString,
1334
+ QuotaName: smithy_client_1.expectString,
1335
+ Requester: smithy_client_1.expectString,
1336
+ ServiceCode: smithy_client_1.expectString,
1337
+ ServiceName: smithy_client_1.expectString,
1338
+ Status: smithy_client_1.expectString,
1339
+ Unit: smithy_client_1.expectString,
1340
+ });
1609
1341
  };
1610
1342
  const de_RequestedServiceQuotaChangeHistoryListDefinition = (output, context) => {
1611
1343
  const retVal = (output || [])
1612
1344
  .filter((e) => e != null)
1613
1345
  .map((entry) => {
1614
- if (entry === null) {
1615
- return null;
1616
- }
1617
1346
  return de_RequestedServiceQuotaChange(entry, context);
1618
1347
  });
1619
1348
  return retVal;
1620
1349
  };
1621
1350
  const de_RequestServiceQuotaIncreaseResponse = (output, context) => {
1622
- return {
1623
- RequestedQuota: output.RequestedQuota != null ? de_RequestedServiceQuotaChange(output.RequestedQuota, context) : undefined,
1624
- };
1625
- };
1626
- const de_ResourceAlreadyExistsException = (output, context) => {
1627
- return {
1628
- Message: (0, smithy_client_1.expectString)(output.Message),
1629
- };
1630
- };
1631
- const de_ServiceException = (output, context) => {
1632
- return {
1633
- Message: (0, smithy_client_1.expectString)(output.Message),
1634
- };
1635
- };
1636
- const de_ServiceInfo = (output, context) => {
1637
- return {
1638
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
1639
- ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
1640
- };
1641
- };
1642
- const de_ServiceInfoListDefinition = (output, context) => {
1643
- const retVal = (output || [])
1644
- .filter((e) => e != null)
1645
- .map((entry) => {
1646
- if (entry === null) {
1647
- return null;
1648
- }
1649
- return de_ServiceInfo(entry, context);
1351
+ return (0, smithy_client_1.take)(output, {
1352
+ RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context),
1650
1353
  });
1651
- return retVal;
1652
1354
  };
1653
1355
  const de_ServiceQuota = (output, context) => {
1654
- return {
1655
- Adjustable: (0, smithy_client_1.expectBoolean)(output.Adjustable),
1656
- ErrorReason: output.ErrorReason != null ? de_ErrorReason(output.ErrorReason, context) : undefined,
1657
- GlobalQuota: (0, smithy_client_1.expectBoolean)(output.GlobalQuota),
1658
- Period: output.Period != null ? de_QuotaPeriod(output.Period, context) : undefined,
1659
- QuotaArn: (0, smithy_client_1.expectString)(output.QuotaArn),
1660
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
1661
- QuotaName: (0, smithy_client_1.expectString)(output.QuotaName),
1662
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
1663
- ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
1664
- Unit: (0, smithy_client_1.expectString)(output.Unit),
1665
- UsageMetric: output.UsageMetric != null ? de_MetricInfo(output.UsageMetric, context) : undefined,
1666
- Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
1667
- };
1356
+ return (0, smithy_client_1.take)(output, {
1357
+ Adjustable: smithy_client_1.expectBoolean,
1358
+ ErrorReason: smithy_client_1._json,
1359
+ GlobalQuota: smithy_client_1.expectBoolean,
1360
+ Period: smithy_client_1._json,
1361
+ QuotaArn: smithy_client_1.expectString,
1362
+ QuotaCode: smithy_client_1.expectString,
1363
+ QuotaName: smithy_client_1.expectString,
1364
+ ServiceCode: smithy_client_1.expectString,
1365
+ ServiceName: smithy_client_1.expectString,
1366
+ Unit: smithy_client_1.expectString,
1367
+ UsageMetric: smithy_client_1._json,
1368
+ Value: smithy_client_1.limitedParseDouble,
1369
+ });
1668
1370
  };
1669
1371
  const de_ServiceQuotaIncreaseRequestInTemplate = (output, context) => {
1670
- return {
1671
- AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
1672
- DesiredValue: (0, smithy_client_1.limitedParseDouble)(output.DesiredValue),
1673
- GlobalQuota: (0, smithy_client_1.expectBoolean)(output.GlobalQuota),
1674
- QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
1675
- QuotaName: (0, smithy_client_1.expectString)(output.QuotaName),
1676
- ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
1677
- ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
1678
- Unit: (0, smithy_client_1.expectString)(output.Unit),
1679
- };
1372
+ return (0, smithy_client_1.take)(output, {
1373
+ AwsRegion: smithy_client_1.expectString,
1374
+ DesiredValue: smithy_client_1.limitedParseDouble,
1375
+ GlobalQuota: smithy_client_1.expectBoolean,
1376
+ QuotaCode: smithy_client_1.expectString,
1377
+ QuotaName: smithy_client_1.expectString,
1378
+ ServiceCode: smithy_client_1.expectString,
1379
+ ServiceName: smithy_client_1.expectString,
1380
+ Unit: smithy_client_1.expectString,
1381
+ });
1680
1382
  };
1681
1383
  const de_ServiceQuotaIncreaseRequestInTemplateList = (output, context) => {
1682
1384
  const retVal = (output || [])
1683
1385
  .filter((e) => e != null)
1684
1386
  .map((entry) => {
1685
- if (entry === null) {
1686
- return null;
1687
- }
1688
1387
  return de_ServiceQuotaIncreaseRequestInTemplate(entry, context);
1689
1388
  });
1690
1389
  return retVal;
@@ -1693,50 +1392,10 @@ const de_ServiceQuotaListDefinition = (output, context) => {
1693
1392
  const retVal = (output || [])
1694
1393
  .filter((e) => e != null)
1695
1394
  .map((entry) => {
1696
- if (entry === null) {
1697
- return null;
1698
- }
1699
1395
  return de_ServiceQuota(entry, context);
1700
1396
  });
1701
1397
  return retVal;
1702
1398
  };
1703
- const de_ServiceQuotaTemplateNotInUseException = (output, context) => {
1704
- return {
1705
- Message: (0, smithy_client_1.expectString)(output.Message),
1706
- };
1707
- };
1708
- const de_Tag = (output, context) => {
1709
- return {
1710
- Key: (0, smithy_client_1.expectString)(output.Key),
1711
- Value: (0, smithy_client_1.expectString)(output.Value),
1712
- };
1713
- };
1714
- const de_TagPolicyViolationException = (output, context) => {
1715
- return {
1716
- Message: (0, smithy_client_1.expectString)(output.Message),
1717
- };
1718
- };
1719
- const de_TagResourceResponse = (output, context) => {
1720
- return {};
1721
- };
1722
- const de_TemplatesNotAvailableInRegionException = (output, context) => {
1723
- return {
1724
- Message: (0, smithy_client_1.expectString)(output.Message),
1725
- };
1726
- };
1727
- const de_TooManyRequestsException = (output, context) => {
1728
- return {
1729
- Message: (0, smithy_client_1.expectString)(output.Message),
1730
- };
1731
- };
1732
- const de_TooManyTagsException = (output, context) => {
1733
- return {
1734
- Message: (0, smithy_client_1.expectString)(output.Message),
1735
- };
1736
- };
1737
- const de_UntagResourceResponse = (output, context) => {
1738
- return {};
1739
- };
1740
1399
  const deserializeMetadata = (output) => ({
1741
1400
  httpStatusCode: output.statusCode,
1742
1401
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1750,6 +1409,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1750
1409
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1751
1410
  };
1752
1411
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1412
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ServiceQuotasServiceException_1.ServiceQuotasServiceException);
1753
1413
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1754
1414
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1755
1415
  const contents = {