@aws-sdk/client-service-quotas 3.181.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-es/ServiceQuotas.js +78 -85
- package/dist-es/ServiceQuotasClient.js +22 -28
- package/dist-es/commands/AssociateServiceQuotaTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteServiceQuotaIncreaseRequestFromTemplateCommand.js +21 -28
- package/dist-es/commands/DisassociateServiceQuotaTemplateCommand.js +21 -28
- package/dist-es/commands/GetAWSDefaultServiceQuotaCommand.js +21 -28
- package/dist-es/commands/GetAssociationForServiceQuotaTemplateCommand.js +21 -28
- package/dist-es/commands/GetRequestedServiceQuotaChangeCommand.js +21 -28
- package/dist-es/commands/GetServiceQuotaCommand.js +21 -28
- package/dist-es/commands/GetServiceQuotaIncreaseRequestFromTemplateCommand.js +21 -28
- package/dist-es/commands/ListAWSDefaultServiceQuotasCommand.js +21 -28
- package/dist-es/commands/ListRequestedServiceQuotaChangeHistoryByQuotaCommand.js +21 -28
- package/dist-es/commands/ListRequestedServiceQuotaChangeHistoryCommand.js +21 -28
- package/dist-es/commands/ListServiceQuotaIncreaseRequestsInTemplateCommand.js +21 -28
- package/dist-es/commands/ListServiceQuotasCommand.js +21 -28
- package/dist-es/commands/ListServicesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutServiceQuotaIncreaseRequestIntoTemplateCommand.js +21 -28
- package/dist-es/commands/RequestServiceQuotaIncreaseCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ServiceQuotasServiceException.js +5 -10
- package/dist-es/models/models_0.js +342 -251
- package/dist-es/pagination/ListAWSDefaultServiceQuotasPaginator.js +25 -68
- package/dist-es/pagination/ListRequestedServiceQuotaChangeHistoryByQuotaPaginator.js +25 -68
- package/dist-es/pagination/ListRequestedServiceQuotaChangeHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListServiceQuotaIncreaseRequestsInTemplatePaginator.js +25 -68
- package/dist-es/pagination/ListServiceQuotasPaginator.js +25 -68
- package/dist-es/pagination/ListServicesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1501 -1952
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1938 +1,1509 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { AccessDeniedException, AWSServiceAccessNotEnabledException, DependencyAccessDeniedException, IllegalArgumentException, InvalidPaginationTokenException, InvalidResourceStateException, NoAvailableOrganizationException, NoSuchResourceException, OrganizationNotInAllFeaturesModeException, QuotaExceededException, ResourceAlreadyExistsException, ServiceException, ServiceQuotaTemplateNotInUseException, TagPolicyViolationException, TemplatesNotAvailableInRegionException, TooManyRequestsException, TooManyTagsException, } from "../models/models_0";
|
|
5
4
|
import { ServiceQuotasServiceException as __BaseException } from "../models/ServiceQuotasServiceException";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
parsedBody
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
return
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}
|
|
1292
|
-
return [3, 12];
|
|
1293
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1294
|
-
case 3: throw _d.sent();
|
|
1295
|
-
case 4: return [4, deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)];
|
|
1296
|
-
case 5: throw _d.sent();
|
|
1297
|
-
case 6: return [4, deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)];
|
|
1298
|
-
case 7: throw _d.sent();
|
|
1299
|
-
case 8: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
1300
|
-
case 9: throw _d.sent();
|
|
1301
|
-
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1302
|
-
case 11: throw _d.sent();
|
|
1303
|
-
case 12:
|
|
1304
|
-
parsedBody = parsedOutput.body;
|
|
1305
|
-
throwDefaultError({
|
|
1306
|
-
output: output,
|
|
1307
|
-
parsedBody: parsedBody,
|
|
1308
|
-
exceptionCtor: __BaseException,
|
|
1309
|
-
errorCode: errorCode,
|
|
1310
|
-
});
|
|
1311
|
-
_d.label = 13;
|
|
1312
|
-
case 13: return [2];
|
|
1313
|
-
}
|
|
1314
|
-
});
|
|
1315
|
-
}); };
|
|
1316
|
-
export var deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1317
|
-
var data, contents, response;
|
|
1318
|
-
return __generator(this, function (_a) {
|
|
1319
|
-
switch (_a.label) {
|
|
1320
|
-
case 0:
|
|
1321
|
-
if (output.statusCode >= 300) {
|
|
1322
|
-
return [2, deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandError(output, context)];
|
|
1323
|
-
}
|
|
1324
|
-
return [4, parseBody(output.body, context)];
|
|
1325
|
-
case 1:
|
|
1326
|
-
data = _a.sent();
|
|
1327
|
-
contents = {};
|
|
1328
|
-
contents = deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateResponse(data, context);
|
|
1329
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1330
|
-
return [2, Promise.resolve(response)];
|
|
1331
|
-
}
|
|
1332
|
-
});
|
|
1333
|
-
}); };
|
|
1334
|
-
var deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1335
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1336
|
-
var _c;
|
|
1337
|
-
return __generator(this, function (_d) {
|
|
1338
|
-
switch (_d.label) {
|
|
1339
|
-
case 0:
|
|
1340
|
-
_a = [__assign({}, output)];
|
|
1341
|
-
_c = {};
|
|
1342
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1343
|
-
case 1:
|
|
1344
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
-
_b = errorCode;
|
|
1347
|
-
switch (_b) {
|
|
1348
|
-
case "AWSServiceAccessNotEnabledException": return [3, 2];
|
|
1349
|
-
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException": return [3, 2];
|
|
1350
|
-
case "AccessDeniedException": return [3, 4];
|
|
1351
|
-
case "com.amazonaws.servicequotas#AccessDeniedException": return [3, 4];
|
|
1352
|
-
case "DependencyAccessDeniedException": return [3, 6];
|
|
1353
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException": return [3, 6];
|
|
1354
|
-
case "IllegalArgumentException": return [3, 8];
|
|
1355
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException": return [3, 8];
|
|
1356
|
-
case "NoAvailableOrganizationException": return [3, 10];
|
|
1357
|
-
case "com.amazonaws.servicequotas#NoAvailableOrganizationException": return [3, 10];
|
|
1358
|
-
case "NoSuchResourceException": return [3, 12];
|
|
1359
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException": return [3, 12];
|
|
1360
|
-
case "QuotaExceededException": return [3, 14];
|
|
1361
|
-
case "com.amazonaws.servicequotas#QuotaExceededException": return [3, 14];
|
|
1362
|
-
case "ServiceException": return [3, 16];
|
|
1363
|
-
case "com.amazonaws.servicequotas#ServiceException": return [3, 16];
|
|
1364
|
-
case "TemplatesNotAvailableInRegionException": return [3, 18];
|
|
1365
|
-
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException": return [3, 18];
|
|
1366
|
-
case "TooManyRequestsException": return [3, 20];
|
|
1367
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException": return [3, 20];
|
|
1368
|
-
}
|
|
1369
|
-
return [3, 22];
|
|
1370
|
-
case 2: return [4, deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)];
|
|
1371
|
-
case 3: throw _d.sent();
|
|
1372
|
-
case 4: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1373
|
-
case 5: throw _d.sent();
|
|
1374
|
-
case 6: return [4, deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1375
|
-
case 7: throw _d.sent();
|
|
1376
|
-
case 8: return [4, deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)];
|
|
1377
|
-
case 9: throw _d.sent();
|
|
1378
|
-
case 10: return [4, deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)];
|
|
1379
|
-
case 11: throw _d.sent();
|
|
1380
|
-
case 12: return [4, deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)];
|
|
1381
|
-
case 13: throw _d.sent();
|
|
1382
|
-
case 14: return [4, deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1383
|
-
case 15: throw _d.sent();
|
|
1384
|
-
case 16: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
1385
|
-
case 17: throw _d.sent();
|
|
1386
|
-
case 18: return [4, deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)];
|
|
1387
|
-
case 19: throw _d.sent();
|
|
1388
|
-
case 20: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1389
|
-
case 21: throw _d.sent();
|
|
1390
|
-
case 22:
|
|
1391
|
-
parsedBody = parsedOutput.body;
|
|
1392
|
-
throwDefaultError({
|
|
1393
|
-
output: output,
|
|
1394
|
-
parsedBody: parsedBody,
|
|
1395
|
-
exceptionCtor: __BaseException,
|
|
1396
|
-
errorCode: errorCode,
|
|
1397
|
-
});
|
|
1398
|
-
_d.label = 23;
|
|
1399
|
-
case 23: return [2];
|
|
1400
|
-
}
|
|
1401
|
-
});
|
|
1402
|
-
}); };
|
|
1403
|
-
export var deserializeAws_json1_1RequestServiceQuotaIncreaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1404
|
-
var data, contents, response;
|
|
1405
|
-
return __generator(this, function (_a) {
|
|
1406
|
-
switch (_a.label) {
|
|
1407
|
-
case 0:
|
|
1408
|
-
if (output.statusCode >= 300) {
|
|
1409
|
-
return [2, deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError(output, context)];
|
|
1410
|
-
}
|
|
1411
|
-
return [4, parseBody(output.body, context)];
|
|
1412
|
-
case 1:
|
|
1413
|
-
data = _a.sent();
|
|
1414
|
-
contents = {};
|
|
1415
|
-
contents = deserializeAws_json1_1RequestServiceQuotaIncreaseResponse(data, context);
|
|
1416
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1417
|
-
return [2, Promise.resolve(response)];
|
|
1418
|
-
}
|
|
1419
|
-
});
|
|
1420
|
-
}); };
|
|
1421
|
-
var deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1422
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1423
|
-
var _c;
|
|
1424
|
-
return __generator(this, function (_d) {
|
|
1425
|
-
switch (_d.label) {
|
|
1426
|
-
case 0:
|
|
1427
|
-
_a = [__assign({}, output)];
|
|
1428
|
-
_c = {};
|
|
1429
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1430
|
-
case 1:
|
|
1431
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
_b = errorCode;
|
|
1434
|
-
switch (_b) {
|
|
1435
|
-
case "AccessDeniedException": return [3, 2];
|
|
1436
|
-
case "com.amazonaws.servicequotas#AccessDeniedException": return [3, 2];
|
|
1437
|
-
case "DependencyAccessDeniedException": return [3, 4];
|
|
1438
|
-
case "com.amazonaws.servicequotas#DependencyAccessDeniedException": return [3, 4];
|
|
1439
|
-
case "IllegalArgumentException": return [3, 6];
|
|
1440
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException": return [3, 6];
|
|
1441
|
-
case "InvalidResourceStateException": return [3, 8];
|
|
1442
|
-
case "com.amazonaws.servicequotas#InvalidResourceStateException": return [3, 8];
|
|
1443
|
-
case "NoSuchResourceException": return [3, 10];
|
|
1444
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException": return [3, 10];
|
|
1445
|
-
case "QuotaExceededException": return [3, 12];
|
|
1446
|
-
case "com.amazonaws.servicequotas#QuotaExceededException": return [3, 12];
|
|
1447
|
-
case "ResourceAlreadyExistsException": return [3, 14];
|
|
1448
|
-
case "com.amazonaws.servicequotas#ResourceAlreadyExistsException": return [3, 14];
|
|
1449
|
-
case "ServiceException": return [3, 16];
|
|
1450
|
-
case "com.amazonaws.servicequotas#ServiceException": return [3, 16];
|
|
1451
|
-
case "TooManyRequestsException": return [3, 18];
|
|
1452
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException": return [3, 18];
|
|
1453
|
-
}
|
|
1454
|
-
return [3, 20];
|
|
1455
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1456
|
-
case 3: throw _d.sent();
|
|
1457
|
-
case 4: return [4, deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1458
|
-
case 5: throw _d.sent();
|
|
1459
|
-
case 6: return [4, deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)];
|
|
1460
|
-
case 7: throw _d.sent();
|
|
1461
|
-
case 8: return [4, deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context)];
|
|
1462
|
-
case 9: throw _d.sent();
|
|
1463
|
-
case 10: return [4, deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)];
|
|
1464
|
-
case 11: throw _d.sent();
|
|
1465
|
-
case 12: return [4, deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1466
|
-
case 13: throw _d.sent();
|
|
1467
|
-
case 14: return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1468
|
-
case 15: throw _d.sent();
|
|
1469
|
-
case 16: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
1470
|
-
case 17: throw _d.sent();
|
|
1471
|
-
case 18: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1472
|
-
case 19: throw _d.sent();
|
|
1473
|
-
case 20:
|
|
1474
|
-
parsedBody = parsedOutput.body;
|
|
1475
|
-
throwDefaultError({
|
|
1476
|
-
output: output,
|
|
1477
|
-
parsedBody: parsedBody,
|
|
1478
|
-
exceptionCtor: __BaseException,
|
|
1479
|
-
errorCode: errorCode,
|
|
1480
|
-
});
|
|
1481
|
-
_d.label = 21;
|
|
1482
|
-
case 21: return [2];
|
|
1483
|
-
}
|
|
1484
|
-
});
|
|
1485
|
-
}); };
|
|
1486
|
-
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1487
|
-
var data, contents, response;
|
|
1488
|
-
return __generator(this, function (_a) {
|
|
1489
|
-
switch (_a.label) {
|
|
1490
|
-
case 0:
|
|
1491
|
-
if (output.statusCode >= 300) {
|
|
1492
|
-
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1493
|
-
}
|
|
1494
|
-
return [4, parseBody(output.body, context)];
|
|
1495
|
-
case 1:
|
|
1496
|
-
data = _a.sent();
|
|
1497
|
-
contents = {};
|
|
1498
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1499
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1500
|
-
return [2, Promise.resolve(response)];
|
|
1501
|
-
}
|
|
1502
|
-
});
|
|
1503
|
-
}); };
|
|
1504
|
-
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1505
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1506
|
-
var _c;
|
|
1507
|
-
return __generator(this, function (_d) {
|
|
1508
|
-
switch (_d.label) {
|
|
1509
|
-
case 0:
|
|
1510
|
-
_a = [__assign({}, output)];
|
|
1511
|
-
_c = {};
|
|
1512
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1513
|
-
case 1:
|
|
1514
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
_b = errorCode;
|
|
1517
|
-
switch (_b) {
|
|
1518
|
-
case "AccessDeniedException": return [3, 2];
|
|
1519
|
-
case "com.amazonaws.servicequotas#AccessDeniedException": return [3, 2];
|
|
1520
|
-
case "IllegalArgumentException": return [3, 4];
|
|
1521
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException": return [3, 4];
|
|
1522
|
-
case "NoSuchResourceException": return [3, 6];
|
|
1523
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException": return [3, 6];
|
|
1524
|
-
case "ServiceException": return [3, 8];
|
|
1525
|
-
case "com.amazonaws.servicequotas#ServiceException": return [3, 8];
|
|
1526
|
-
case "TagPolicyViolationException": return [3, 10];
|
|
1527
|
-
case "com.amazonaws.servicequotas#TagPolicyViolationException": return [3, 10];
|
|
1528
|
-
case "TooManyRequestsException": return [3, 12];
|
|
1529
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException": return [3, 12];
|
|
1530
|
-
case "TooManyTagsException": return [3, 14];
|
|
1531
|
-
case "com.amazonaws.servicequotas#TooManyTagsException": return [3, 14];
|
|
1532
|
-
}
|
|
1533
|
-
return [3, 16];
|
|
1534
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1535
|
-
case 3: throw _d.sent();
|
|
1536
|
-
case 4: return [4, deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)];
|
|
1537
|
-
case 5: throw _d.sent();
|
|
1538
|
-
case 6: return [4, deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)];
|
|
1539
|
-
case 7: throw _d.sent();
|
|
1540
|
-
case 8: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
1541
|
-
case 9: throw _d.sent();
|
|
1542
|
-
case 10: return [4, deserializeAws_json1_1TagPolicyViolationExceptionResponse(parsedOutput, context)];
|
|
1543
|
-
case 11: throw _d.sent();
|
|
1544
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1545
|
-
case 13: throw _d.sent();
|
|
1546
|
-
case 14: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1547
|
-
case 15: throw _d.sent();
|
|
1548
|
-
case 16:
|
|
1549
|
-
parsedBody = parsedOutput.body;
|
|
1550
|
-
throwDefaultError({
|
|
1551
|
-
output: output,
|
|
1552
|
-
parsedBody: parsedBody,
|
|
1553
|
-
exceptionCtor: __BaseException,
|
|
1554
|
-
errorCode: errorCode,
|
|
1555
|
-
});
|
|
1556
|
-
_d.label = 17;
|
|
1557
|
-
case 17: return [2];
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1560
|
-
}); };
|
|
1561
|
-
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1562
|
-
var data, contents, response;
|
|
1563
|
-
return __generator(this, function (_a) {
|
|
1564
|
-
switch (_a.label) {
|
|
1565
|
-
case 0:
|
|
1566
|
-
if (output.statusCode >= 300) {
|
|
1567
|
-
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1568
|
-
}
|
|
1569
|
-
return [4, parseBody(output.body, context)];
|
|
1570
|
-
case 1:
|
|
1571
|
-
data = _a.sent();
|
|
1572
|
-
contents = {};
|
|
1573
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1574
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1575
|
-
return [2, Promise.resolve(response)];
|
|
1576
|
-
}
|
|
1577
|
-
});
|
|
1578
|
-
}); };
|
|
1579
|
-
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1580
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1581
|
-
var _c;
|
|
1582
|
-
return __generator(this, function (_d) {
|
|
1583
|
-
switch (_d.label) {
|
|
1584
|
-
case 0:
|
|
1585
|
-
_a = [__assign({}, output)];
|
|
1586
|
-
_c = {};
|
|
1587
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1588
|
-
case 1:
|
|
1589
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
-
_b = errorCode;
|
|
1592
|
-
switch (_b) {
|
|
1593
|
-
case "AccessDeniedException": return [3, 2];
|
|
1594
|
-
case "com.amazonaws.servicequotas#AccessDeniedException": return [3, 2];
|
|
1595
|
-
case "IllegalArgumentException": return [3, 4];
|
|
1596
|
-
case "com.amazonaws.servicequotas#IllegalArgumentException": return [3, 4];
|
|
1597
|
-
case "NoSuchResourceException": return [3, 6];
|
|
1598
|
-
case "com.amazonaws.servicequotas#NoSuchResourceException": return [3, 6];
|
|
1599
|
-
case "ServiceException": return [3, 8];
|
|
1600
|
-
case "com.amazonaws.servicequotas#ServiceException": return [3, 8];
|
|
1601
|
-
case "TooManyRequestsException": return [3, 10];
|
|
1602
|
-
case "com.amazonaws.servicequotas#TooManyRequestsException": return [3, 10];
|
|
1603
|
-
}
|
|
1604
|
-
return [3, 12];
|
|
1605
|
-
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1606
|
-
case 3: throw _d.sent();
|
|
1607
|
-
case 4: return [4, deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)];
|
|
1608
|
-
case 5: throw _d.sent();
|
|
1609
|
-
case 6: return [4, deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)];
|
|
1610
|
-
case 7: throw _d.sent();
|
|
1611
|
-
case 8: return [4, deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)];
|
|
1612
|
-
case 9: throw _d.sent();
|
|
1613
|
-
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1614
|
-
case 11: throw _d.sent();
|
|
1615
|
-
case 12:
|
|
1616
|
-
parsedBody = parsedOutput.body;
|
|
1617
|
-
throwDefaultError({
|
|
1618
|
-
output: output,
|
|
1619
|
-
parsedBody: parsedBody,
|
|
1620
|
-
exceptionCtor: __BaseException,
|
|
1621
|
-
errorCode: errorCode,
|
|
1622
|
-
});
|
|
1623
|
-
_d.label = 13;
|
|
1624
|
-
case 13: return [2];
|
|
1625
|
-
}
|
|
1626
|
-
});
|
|
1627
|
-
}); };
|
|
1628
|
-
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1629
|
-
var body, deserialized, exception;
|
|
1630
|
-
return __generator(this, function (_a) {
|
|
1631
|
-
body = parsedOutput.body;
|
|
1632
|
-
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1633
|
-
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1634
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1635
|
-
});
|
|
1636
|
-
}); };
|
|
1637
|
-
var deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1638
|
-
var body, deserialized, exception;
|
|
1639
|
-
return __generator(this, function (_a) {
|
|
1640
|
-
body = parsedOutput.body;
|
|
1641
|
-
deserialized = deserializeAws_json1_1AWSServiceAccessNotEnabledException(body, context);
|
|
1642
|
-
exception = new AWSServiceAccessNotEnabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1643
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1644
|
-
});
|
|
1645
|
-
}); };
|
|
1646
|
-
var deserializeAws_json1_1DependencyAccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1647
|
-
var body, deserialized, exception;
|
|
1648
|
-
return __generator(this, function (_a) {
|
|
1649
|
-
body = parsedOutput.body;
|
|
1650
|
-
deserialized = deserializeAws_json1_1DependencyAccessDeniedException(body, context);
|
|
1651
|
-
exception = new DependencyAccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1652
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1653
|
-
});
|
|
1654
|
-
}); };
|
|
1655
|
-
var deserializeAws_json1_1IllegalArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1656
|
-
var body, deserialized, exception;
|
|
1657
|
-
return __generator(this, function (_a) {
|
|
1658
|
-
body = parsedOutput.body;
|
|
1659
|
-
deserialized = deserializeAws_json1_1IllegalArgumentException(body, context);
|
|
1660
|
-
exception = new IllegalArgumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1661
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1662
|
-
});
|
|
1663
|
-
}); };
|
|
1664
|
-
var deserializeAws_json1_1InvalidPaginationTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1665
|
-
var body, deserialized, exception;
|
|
1666
|
-
return __generator(this, function (_a) {
|
|
1667
|
-
body = parsedOutput.body;
|
|
1668
|
-
deserialized = deserializeAws_json1_1InvalidPaginationTokenException(body, context);
|
|
1669
|
-
exception = new InvalidPaginationTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1670
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1671
|
-
});
|
|
1672
|
-
}); };
|
|
1673
|
-
var deserializeAws_json1_1InvalidResourceStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1674
|
-
var body, deserialized, exception;
|
|
1675
|
-
return __generator(this, function (_a) {
|
|
1676
|
-
body = parsedOutput.body;
|
|
1677
|
-
deserialized = deserializeAws_json1_1InvalidResourceStateException(body, context);
|
|
1678
|
-
exception = new InvalidResourceStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1679
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1680
|
-
});
|
|
1681
|
-
}); };
|
|
1682
|
-
var deserializeAws_json1_1NoAvailableOrganizationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1683
|
-
var body, deserialized, exception;
|
|
1684
|
-
return __generator(this, function (_a) {
|
|
1685
|
-
body = parsedOutput.body;
|
|
1686
|
-
deserialized = deserializeAws_json1_1NoAvailableOrganizationException(body, context);
|
|
1687
|
-
exception = new NoAvailableOrganizationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1688
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1689
|
-
});
|
|
1690
|
-
}); };
|
|
1691
|
-
var deserializeAws_json1_1NoSuchResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1692
|
-
var body, deserialized, exception;
|
|
1693
|
-
return __generator(this, function (_a) {
|
|
1694
|
-
body = parsedOutput.body;
|
|
1695
|
-
deserialized = deserializeAws_json1_1NoSuchResourceException(body, context);
|
|
1696
|
-
exception = new NoSuchResourceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1697
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1698
|
-
});
|
|
1699
|
-
}); };
|
|
1700
|
-
var deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1701
|
-
var body, deserialized, exception;
|
|
1702
|
-
return __generator(this, function (_a) {
|
|
1703
|
-
body = parsedOutput.body;
|
|
1704
|
-
deserialized = deserializeAws_json1_1OrganizationNotInAllFeaturesModeException(body, context);
|
|
1705
|
-
exception = new OrganizationNotInAllFeaturesModeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1706
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1707
|
-
});
|
|
1708
|
-
}); };
|
|
1709
|
-
var deserializeAws_json1_1QuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1710
|
-
var body, deserialized, exception;
|
|
1711
|
-
return __generator(this, function (_a) {
|
|
1712
|
-
body = parsedOutput.body;
|
|
1713
|
-
deserialized = deserializeAws_json1_1QuotaExceededException(body, context);
|
|
1714
|
-
exception = new QuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1715
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1716
|
-
});
|
|
1717
|
-
}); };
|
|
1718
|
-
var deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1719
|
-
var body, deserialized, exception;
|
|
1720
|
-
return __generator(this, function (_a) {
|
|
1721
|
-
body = parsedOutput.body;
|
|
1722
|
-
deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
1723
|
-
exception = new ResourceAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1724
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1725
|
-
});
|
|
1726
|
-
}); };
|
|
1727
|
-
var deserializeAws_json1_1ServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1728
|
-
var body, deserialized, exception;
|
|
1729
|
-
return __generator(this, function (_a) {
|
|
1730
|
-
body = parsedOutput.body;
|
|
1731
|
-
deserialized = deserializeAws_json1_1ServiceException(body, context);
|
|
1732
|
-
exception = new ServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1733
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1734
|
-
});
|
|
1735
|
-
}); };
|
|
1736
|
-
var deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1737
|
-
var body, deserialized, exception;
|
|
1738
|
-
return __generator(this, function (_a) {
|
|
1739
|
-
body = parsedOutput.body;
|
|
1740
|
-
deserialized = deserializeAws_json1_1ServiceQuotaTemplateNotInUseException(body, context);
|
|
1741
|
-
exception = new ServiceQuotaTemplateNotInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1742
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1743
|
-
});
|
|
1744
|
-
}); };
|
|
1745
|
-
var deserializeAws_json1_1TagPolicyViolationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1746
|
-
var body, deserialized, exception;
|
|
1747
|
-
return __generator(this, function (_a) {
|
|
1748
|
-
body = parsedOutput.body;
|
|
1749
|
-
deserialized = deserializeAws_json1_1TagPolicyViolationException(body, context);
|
|
1750
|
-
exception = new TagPolicyViolationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1751
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1752
|
-
});
|
|
1753
|
-
}); };
|
|
1754
|
-
var deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1755
|
-
var body, deserialized, exception;
|
|
1756
|
-
return __generator(this, function (_a) {
|
|
1757
|
-
body = parsedOutput.body;
|
|
1758
|
-
deserialized = deserializeAws_json1_1TemplatesNotAvailableInRegionException(body, context);
|
|
1759
|
-
exception = new TemplatesNotAvailableInRegionException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1760
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1761
|
-
});
|
|
1762
|
-
}); };
|
|
1763
|
-
var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1764
|
-
var body, deserialized, exception;
|
|
1765
|
-
return __generator(this, function (_a) {
|
|
1766
|
-
body = parsedOutput.body;
|
|
1767
|
-
deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1768
|
-
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1769
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1770
|
-
});
|
|
1771
|
-
}); };
|
|
1772
|
-
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1773
|
-
var body, deserialized, exception;
|
|
1774
|
-
return __generator(this, function (_a) {
|
|
1775
|
-
body = parsedOutput.body;
|
|
1776
|
-
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1777
|
-
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1778
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1779
|
-
});
|
|
1780
|
-
}); };
|
|
1781
|
-
var serializeAws_json1_1AssociateServiceQuotaTemplateRequest = function (input, context) {
|
|
5
|
+
export const serializeAws_json1_1AssociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "ServiceQuotasV20190624.AssociateServiceQuotaTemplate",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1AssociateServiceQuotaTemplateRequest(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "ServiceQuotasV20190624.DeleteServiceQuotaIncreaseRequestFromTemplate",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateRequest(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1DisassociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "ServiceQuotasV20190624.DisassociateServiceQuotaTemplate",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateServiceQuotaTemplateRequest(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1GetAssociationForServiceQuotaTemplateCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "ServiceQuotasV20190624.GetAssociationForServiceQuotaTemplate",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1GetAssociationForServiceQuotaTemplateRequest(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1GetAWSDefaultServiceQuotaCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "ServiceQuotasV20190624.GetAWSDefaultServiceQuota",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1GetAWSDefaultServiceQuotaRequest(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1GetRequestedServiceQuotaChangeCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "ServiceQuotasV20190624.GetRequestedServiceQuotaChange",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1GetRequestedServiceQuotaChangeRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1GetServiceQuotaCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "ServiceQuotasV20190624.GetServiceQuota",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1GetServiceQuotaRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "ServiceQuotasV20190624.GetServiceQuotaIncreaseRequestFromTemplate",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1ListAWSDefaultServiceQuotasCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "ServiceQuotasV20190624.ListAWSDefaultServiceQuotas",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1ListAWSDefaultServiceQuotasRequest(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistory",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryRequest(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistoryByQuota",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaRequest(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "ServiceQuotasV20190624.ListServiceQuotaIncreaseRequestsInTemplate",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateRequest(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1ListServiceQuotasCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "ServiceQuotasV20190624.ListServiceQuotas",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1ListServiceQuotasRequest(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const serializeAws_json1_1ListServicesCommand = async (input, context) => {
|
|
123
|
+
const headers = {
|
|
124
|
+
"content-type": "application/x-amz-json-1.1",
|
|
125
|
+
"x-amz-target": "ServiceQuotasV20190624.ListServices",
|
|
126
|
+
};
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(serializeAws_json1_1ListServicesRequest(input, context));
|
|
129
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
|
+
};
|
|
131
|
+
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
132
|
+
const headers = {
|
|
133
|
+
"content-type": "application/x-amz-json-1.1",
|
|
134
|
+
"x-amz-target": "ServiceQuotasV20190624.ListTagsForResource",
|
|
135
|
+
};
|
|
136
|
+
let body;
|
|
137
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
138
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
+
};
|
|
140
|
+
export const serializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "ServiceQuotasV20190624.PutServiceQuotaIncreaseRequestIntoTemplate",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
export const serializeAws_json1_1RequestServiceQuotaIncreaseCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "ServiceQuotasV20190624.RequestServiceQuotaIncrease",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1RequestServiceQuotaIncreaseRequest(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.1",
|
|
161
|
+
"x-amz-target": "ServiceQuotasV20190624.TagResource",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "ServiceQuotasV20190624.UntagResource",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
export const deserializeAws_json1_1AssociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
177
|
+
if (output.statusCode >= 300) {
|
|
178
|
+
return deserializeAws_json1_1AssociateServiceQuotaTemplateCommandError(output, context);
|
|
179
|
+
}
|
|
180
|
+
const data = await parseBody(output.body, context);
|
|
181
|
+
let contents = {};
|
|
182
|
+
contents = deserializeAws_json1_1AssociateServiceQuotaTemplateResponse(data, context);
|
|
183
|
+
const response = {
|
|
184
|
+
$metadata: deserializeMetadata(output),
|
|
185
|
+
...contents,
|
|
186
|
+
};
|
|
187
|
+
return Promise.resolve(response);
|
|
188
|
+
};
|
|
189
|
+
const deserializeAws_json1_1AssociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
190
|
+
const parsedOutput = {
|
|
191
|
+
...output,
|
|
192
|
+
body: await parseErrorBody(output.body, context),
|
|
193
|
+
};
|
|
194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
195
|
+
switch (errorCode) {
|
|
196
|
+
case "AWSServiceAccessNotEnabledException":
|
|
197
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
198
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
199
|
+
case "AccessDeniedException":
|
|
200
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
201
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
202
|
+
case "DependencyAccessDeniedException":
|
|
203
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
204
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
205
|
+
case "NoAvailableOrganizationException":
|
|
206
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
207
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
208
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
209
|
+
case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
|
|
210
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
211
|
+
case "ServiceException":
|
|
212
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
213
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
214
|
+
case "TemplatesNotAvailableInRegionException":
|
|
215
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
216
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
217
|
+
case "TooManyRequestsException":
|
|
218
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
219
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
220
|
+
default:
|
|
221
|
+
const parsedBody = parsedOutput.body;
|
|
222
|
+
throwDefaultError({
|
|
223
|
+
output,
|
|
224
|
+
parsedBody,
|
|
225
|
+
exceptionCtor: __BaseException,
|
|
226
|
+
errorCode,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
export const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
|
|
231
|
+
if (output.statusCode >= 300) {
|
|
232
|
+
return deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommandError(output, context);
|
|
233
|
+
}
|
|
234
|
+
const data = await parseBody(output.body, context);
|
|
235
|
+
let contents = {};
|
|
236
|
+
contents = deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateResponse(data, context);
|
|
237
|
+
const response = {
|
|
238
|
+
$metadata: deserializeMetadata(output),
|
|
239
|
+
...contents,
|
|
240
|
+
};
|
|
241
|
+
return Promise.resolve(response);
|
|
242
|
+
};
|
|
243
|
+
const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
244
|
+
const parsedOutput = {
|
|
245
|
+
...output,
|
|
246
|
+
body: await parseErrorBody(output.body, context),
|
|
247
|
+
};
|
|
248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
249
|
+
switch (errorCode) {
|
|
250
|
+
case "AWSServiceAccessNotEnabledException":
|
|
251
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
252
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
253
|
+
case "AccessDeniedException":
|
|
254
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
255
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
256
|
+
case "DependencyAccessDeniedException":
|
|
257
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
258
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
259
|
+
case "IllegalArgumentException":
|
|
260
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
261
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
262
|
+
case "NoAvailableOrganizationException":
|
|
263
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
264
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
265
|
+
case "NoSuchResourceException":
|
|
266
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
267
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
268
|
+
case "ServiceException":
|
|
269
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
270
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
271
|
+
case "TemplatesNotAvailableInRegionException":
|
|
272
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
273
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
274
|
+
case "TooManyRequestsException":
|
|
275
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
276
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
277
|
+
default:
|
|
278
|
+
const parsedBody = parsedOutput.body;
|
|
279
|
+
throwDefaultError({
|
|
280
|
+
output,
|
|
281
|
+
parsedBody,
|
|
282
|
+
exceptionCtor: __BaseException,
|
|
283
|
+
errorCode,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
export const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
288
|
+
if (output.statusCode >= 300) {
|
|
289
|
+
return deserializeAws_json1_1DisassociateServiceQuotaTemplateCommandError(output, context);
|
|
290
|
+
}
|
|
291
|
+
const data = await parseBody(output.body, context);
|
|
292
|
+
let contents = {};
|
|
293
|
+
contents = deserializeAws_json1_1DisassociateServiceQuotaTemplateResponse(data, context);
|
|
294
|
+
const response = {
|
|
295
|
+
$metadata: deserializeMetadata(output),
|
|
296
|
+
...contents,
|
|
297
|
+
};
|
|
298
|
+
return Promise.resolve(response);
|
|
299
|
+
};
|
|
300
|
+
const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
301
|
+
const parsedOutput = {
|
|
302
|
+
...output,
|
|
303
|
+
body: await parseErrorBody(output.body, context),
|
|
304
|
+
};
|
|
305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
+
switch (errorCode) {
|
|
307
|
+
case "AWSServiceAccessNotEnabledException":
|
|
308
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
309
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
310
|
+
case "AccessDeniedException":
|
|
311
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
312
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
313
|
+
case "DependencyAccessDeniedException":
|
|
314
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
315
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
316
|
+
case "NoAvailableOrganizationException":
|
|
317
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
318
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
319
|
+
case "ServiceException":
|
|
320
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
321
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
322
|
+
case "ServiceQuotaTemplateNotInUseException":
|
|
323
|
+
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
324
|
+
throw await deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse(parsedOutput, context);
|
|
325
|
+
case "TemplatesNotAvailableInRegionException":
|
|
326
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
327
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
328
|
+
case "TooManyRequestsException":
|
|
329
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
330
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
331
|
+
default:
|
|
332
|
+
const parsedBody = parsedOutput.body;
|
|
333
|
+
throwDefaultError({
|
|
334
|
+
output,
|
|
335
|
+
parsedBody,
|
|
336
|
+
exceptionCtor: __BaseException,
|
|
337
|
+
errorCode,
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
export const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommand = async (output, context) => {
|
|
342
|
+
if (output.statusCode >= 300) {
|
|
343
|
+
return deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommandError(output, context);
|
|
344
|
+
}
|
|
345
|
+
const data = await parseBody(output.body, context);
|
|
346
|
+
let contents = {};
|
|
347
|
+
contents = deserializeAws_json1_1GetAssociationForServiceQuotaTemplateResponse(data, context);
|
|
348
|
+
const response = {
|
|
349
|
+
$metadata: deserializeMetadata(output),
|
|
350
|
+
...contents,
|
|
351
|
+
};
|
|
352
|
+
return Promise.resolve(response);
|
|
353
|
+
};
|
|
354
|
+
const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommandError = async (output, context) => {
|
|
355
|
+
const parsedOutput = {
|
|
356
|
+
...output,
|
|
357
|
+
body: await parseErrorBody(output.body, context),
|
|
358
|
+
};
|
|
359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
|
+
switch (errorCode) {
|
|
361
|
+
case "AWSServiceAccessNotEnabledException":
|
|
362
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
363
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
364
|
+
case "AccessDeniedException":
|
|
365
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
366
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
367
|
+
case "DependencyAccessDeniedException":
|
|
368
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
369
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
370
|
+
case "NoAvailableOrganizationException":
|
|
371
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
372
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
373
|
+
case "ServiceException":
|
|
374
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
375
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
376
|
+
case "ServiceQuotaTemplateNotInUseException":
|
|
377
|
+
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
378
|
+
throw await deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse(parsedOutput, context);
|
|
379
|
+
case "TemplatesNotAvailableInRegionException":
|
|
380
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
381
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
382
|
+
case "TooManyRequestsException":
|
|
383
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
384
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
385
|
+
default:
|
|
386
|
+
const parsedBody = parsedOutput.body;
|
|
387
|
+
throwDefaultError({
|
|
388
|
+
output,
|
|
389
|
+
parsedBody,
|
|
390
|
+
exceptionCtor: __BaseException,
|
|
391
|
+
errorCode,
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
export const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommand = async (output, context) => {
|
|
396
|
+
if (output.statusCode >= 300) {
|
|
397
|
+
return deserializeAws_json1_1GetAWSDefaultServiceQuotaCommandError(output, context);
|
|
398
|
+
}
|
|
399
|
+
const data = await parseBody(output.body, context);
|
|
400
|
+
let contents = {};
|
|
401
|
+
contents = deserializeAws_json1_1GetAWSDefaultServiceQuotaResponse(data, context);
|
|
402
|
+
const response = {
|
|
403
|
+
$metadata: deserializeMetadata(output),
|
|
404
|
+
...contents,
|
|
405
|
+
};
|
|
406
|
+
return Promise.resolve(response);
|
|
407
|
+
};
|
|
408
|
+
const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
|
|
409
|
+
const parsedOutput = {
|
|
410
|
+
...output,
|
|
411
|
+
body: await parseErrorBody(output.body, context),
|
|
412
|
+
};
|
|
413
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
+
switch (errorCode) {
|
|
415
|
+
case "AccessDeniedException":
|
|
416
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
417
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
418
|
+
case "IllegalArgumentException":
|
|
419
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
420
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
421
|
+
case "NoSuchResourceException":
|
|
422
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
423
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
424
|
+
case "ServiceException":
|
|
425
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
426
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
427
|
+
case "TooManyRequestsException":
|
|
428
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
429
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
430
|
+
default:
|
|
431
|
+
const parsedBody = parsedOutput.body;
|
|
432
|
+
throwDefaultError({
|
|
433
|
+
output,
|
|
434
|
+
parsedBody,
|
|
435
|
+
exceptionCtor: __BaseException,
|
|
436
|
+
errorCode,
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
export const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommand = async (output, context) => {
|
|
441
|
+
if (output.statusCode >= 300) {
|
|
442
|
+
return deserializeAws_json1_1GetRequestedServiceQuotaChangeCommandError(output, context);
|
|
443
|
+
}
|
|
444
|
+
const data = await parseBody(output.body, context);
|
|
445
|
+
let contents = {};
|
|
446
|
+
contents = deserializeAws_json1_1GetRequestedServiceQuotaChangeResponse(data, context);
|
|
447
|
+
const response = {
|
|
448
|
+
$metadata: deserializeMetadata(output),
|
|
449
|
+
...contents,
|
|
450
|
+
};
|
|
451
|
+
return Promise.resolve(response);
|
|
452
|
+
};
|
|
453
|
+
const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommandError = async (output, context) => {
|
|
454
|
+
const parsedOutput = {
|
|
455
|
+
...output,
|
|
456
|
+
body: await parseErrorBody(output.body, context),
|
|
457
|
+
};
|
|
458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
+
switch (errorCode) {
|
|
460
|
+
case "AccessDeniedException":
|
|
461
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
462
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
463
|
+
case "IllegalArgumentException":
|
|
464
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
465
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
466
|
+
case "NoSuchResourceException":
|
|
467
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
468
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
469
|
+
case "ServiceException":
|
|
470
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
471
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
472
|
+
case "TooManyRequestsException":
|
|
473
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
474
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
475
|
+
default:
|
|
476
|
+
const parsedBody = parsedOutput.body;
|
|
477
|
+
throwDefaultError({
|
|
478
|
+
output,
|
|
479
|
+
parsedBody,
|
|
480
|
+
exceptionCtor: __BaseException,
|
|
481
|
+
errorCode,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
export const deserializeAws_json1_1GetServiceQuotaCommand = async (output, context) => {
|
|
486
|
+
if (output.statusCode >= 300) {
|
|
487
|
+
return deserializeAws_json1_1GetServiceQuotaCommandError(output, context);
|
|
488
|
+
}
|
|
489
|
+
const data = await parseBody(output.body, context);
|
|
490
|
+
let contents = {};
|
|
491
|
+
contents = deserializeAws_json1_1GetServiceQuotaResponse(data, context);
|
|
492
|
+
const response = {
|
|
493
|
+
$metadata: deserializeMetadata(output),
|
|
494
|
+
...contents,
|
|
495
|
+
};
|
|
496
|
+
return Promise.resolve(response);
|
|
497
|
+
};
|
|
498
|
+
const deserializeAws_json1_1GetServiceQuotaCommandError = async (output, context) => {
|
|
499
|
+
const parsedOutput = {
|
|
500
|
+
...output,
|
|
501
|
+
body: await parseErrorBody(output.body, context),
|
|
502
|
+
};
|
|
503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
504
|
+
switch (errorCode) {
|
|
505
|
+
case "AccessDeniedException":
|
|
506
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
507
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
508
|
+
case "IllegalArgumentException":
|
|
509
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
510
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
511
|
+
case "NoSuchResourceException":
|
|
512
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
513
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
514
|
+
case "ServiceException":
|
|
515
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
516
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
517
|
+
case "TooManyRequestsException":
|
|
518
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
519
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
520
|
+
default:
|
|
521
|
+
const parsedBody = parsedOutput.body;
|
|
522
|
+
throwDefaultError({
|
|
523
|
+
output,
|
|
524
|
+
parsedBody,
|
|
525
|
+
exceptionCtor: __BaseException,
|
|
526
|
+
errorCode,
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
export const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
|
|
531
|
+
if (output.statusCode >= 300) {
|
|
532
|
+
return deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommandError(output, context);
|
|
533
|
+
}
|
|
534
|
+
const data = await parseBody(output.body, context);
|
|
535
|
+
let contents = {};
|
|
536
|
+
contents = deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateResponse(data, context);
|
|
537
|
+
const response = {
|
|
538
|
+
$metadata: deserializeMetadata(output),
|
|
539
|
+
...contents,
|
|
540
|
+
};
|
|
541
|
+
return Promise.resolve(response);
|
|
542
|
+
};
|
|
543
|
+
const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
544
|
+
const parsedOutput = {
|
|
545
|
+
...output,
|
|
546
|
+
body: await parseErrorBody(output.body, context),
|
|
547
|
+
};
|
|
548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
+
switch (errorCode) {
|
|
550
|
+
case "AWSServiceAccessNotEnabledException":
|
|
551
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
552
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
553
|
+
case "AccessDeniedException":
|
|
554
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
555
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
556
|
+
case "DependencyAccessDeniedException":
|
|
557
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
558
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
559
|
+
case "IllegalArgumentException":
|
|
560
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
561
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
562
|
+
case "NoAvailableOrganizationException":
|
|
563
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
564
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
565
|
+
case "NoSuchResourceException":
|
|
566
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
567
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "ServiceException":
|
|
569
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
570
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
571
|
+
case "TemplatesNotAvailableInRegionException":
|
|
572
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
573
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "TooManyRequestsException":
|
|
575
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
576
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
577
|
+
default:
|
|
578
|
+
const parsedBody = parsedOutput.body;
|
|
579
|
+
throwDefaultError({
|
|
580
|
+
output,
|
|
581
|
+
parsedBody,
|
|
582
|
+
exceptionCtor: __BaseException,
|
|
583
|
+
errorCode,
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
export const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommand = async (output, context) => {
|
|
588
|
+
if (output.statusCode >= 300) {
|
|
589
|
+
return deserializeAws_json1_1ListAWSDefaultServiceQuotasCommandError(output, context);
|
|
590
|
+
}
|
|
591
|
+
const data = await parseBody(output.body, context);
|
|
592
|
+
let contents = {};
|
|
593
|
+
contents = deserializeAws_json1_1ListAWSDefaultServiceQuotasResponse(data, context);
|
|
594
|
+
const response = {
|
|
595
|
+
$metadata: deserializeMetadata(output),
|
|
596
|
+
...contents,
|
|
597
|
+
};
|
|
598
|
+
return Promise.resolve(response);
|
|
599
|
+
};
|
|
600
|
+
const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
|
|
601
|
+
const parsedOutput = {
|
|
602
|
+
...output,
|
|
603
|
+
body: await parseErrorBody(output.body, context),
|
|
604
|
+
};
|
|
605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
|
+
switch (errorCode) {
|
|
607
|
+
case "AccessDeniedException":
|
|
608
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
609
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
610
|
+
case "IllegalArgumentException":
|
|
611
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
612
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
613
|
+
case "InvalidPaginationTokenException":
|
|
614
|
+
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
615
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
616
|
+
case "NoSuchResourceException":
|
|
617
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
618
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
619
|
+
case "ServiceException":
|
|
620
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
621
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
622
|
+
case "TooManyRequestsException":
|
|
623
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
624
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
625
|
+
default:
|
|
626
|
+
const parsedBody = parsedOutput.body;
|
|
627
|
+
throwDefaultError({
|
|
628
|
+
output,
|
|
629
|
+
parsedBody,
|
|
630
|
+
exceptionCtor: __BaseException,
|
|
631
|
+
errorCode,
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
export const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommand = async (output, context) => {
|
|
636
|
+
if (output.statusCode >= 300) {
|
|
637
|
+
return deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommandError(output, context);
|
|
638
|
+
}
|
|
639
|
+
const data = await parseBody(output.body, context);
|
|
640
|
+
let contents = {};
|
|
641
|
+
contents = deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryResponse(data, context);
|
|
642
|
+
const response = {
|
|
643
|
+
$metadata: deserializeMetadata(output),
|
|
644
|
+
...contents,
|
|
645
|
+
};
|
|
646
|
+
return Promise.resolve(response);
|
|
647
|
+
};
|
|
648
|
+
const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommandError = async (output, context) => {
|
|
649
|
+
const parsedOutput = {
|
|
650
|
+
...output,
|
|
651
|
+
body: await parseErrorBody(output.body, context),
|
|
652
|
+
};
|
|
653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
+
switch (errorCode) {
|
|
655
|
+
case "AccessDeniedException":
|
|
656
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
657
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
658
|
+
case "IllegalArgumentException":
|
|
659
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
660
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "InvalidPaginationTokenException":
|
|
662
|
+
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
663
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "NoSuchResourceException":
|
|
665
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
666
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
667
|
+
case "ServiceException":
|
|
668
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
669
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
670
|
+
case "TooManyRequestsException":
|
|
671
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
672
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
673
|
+
default:
|
|
674
|
+
const parsedBody = parsedOutput.body;
|
|
675
|
+
throwDefaultError({
|
|
676
|
+
output,
|
|
677
|
+
parsedBody,
|
|
678
|
+
exceptionCtor: __BaseException,
|
|
679
|
+
errorCode,
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
export const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (output, context) => {
|
|
684
|
+
if (output.statusCode >= 300) {
|
|
685
|
+
return deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommandError(output, context);
|
|
686
|
+
}
|
|
687
|
+
const data = await parseBody(output.body, context);
|
|
688
|
+
let contents = {};
|
|
689
|
+
contents = deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data, context);
|
|
690
|
+
const response = {
|
|
691
|
+
$metadata: deserializeMetadata(output),
|
|
692
|
+
...contents,
|
|
693
|
+
};
|
|
694
|
+
return Promise.resolve(response);
|
|
695
|
+
};
|
|
696
|
+
const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (output, context) => {
|
|
697
|
+
const parsedOutput = {
|
|
698
|
+
...output,
|
|
699
|
+
body: await parseErrorBody(output.body, context),
|
|
700
|
+
};
|
|
701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
+
switch (errorCode) {
|
|
703
|
+
case "AccessDeniedException":
|
|
704
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
705
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
706
|
+
case "IllegalArgumentException":
|
|
707
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
708
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
709
|
+
case "InvalidPaginationTokenException":
|
|
710
|
+
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
711
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
712
|
+
case "NoSuchResourceException":
|
|
713
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
714
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
715
|
+
case "ServiceException":
|
|
716
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
717
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
718
|
+
case "TooManyRequestsException":
|
|
719
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
720
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
721
|
+
default:
|
|
722
|
+
const parsedBody = parsedOutput.body;
|
|
723
|
+
throwDefaultError({
|
|
724
|
+
output,
|
|
725
|
+
parsedBody,
|
|
726
|
+
exceptionCtor: __BaseException,
|
|
727
|
+
errorCode,
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
export const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, context) => {
|
|
732
|
+
if (output.statusCode >= 300) {
|
|
733
|
+
return deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommandError(output, context);
|
|
734
|
+
}
|
|
735
|
+
const data = await parseBody(output.body, context);
|
|
736
|
+
let contents = {};
|
|
737
|
+
contents = deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
|
|
738
|
+
const response = {
|
|
739
|
+
$metadata: deserializeMetadata(output),
|
|
740
|
+
...contents,
|
|
741
|
+
};
|
|
742
|
+
return Promise.resolve(response);
|
|
743
|
+
};
|
|
744
|
+
const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output, context) => {
|
|
745
|
+
const parsedOutput = {
|
|
746
|
+
...output,
|
|
747
|
+
body: await parseErrorBody(output.body, context),
|
|
748
|
+
};
|
|
749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
|
+
switch (errorCode) {
|
|
751
|
+
case "AWSServiceAccessNotEnabledException":
|
|
752
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
753
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
754
|
+
case "AccessDeniedException":
|
|
755
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
756
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
757
|
+
case "DependencyAccessDeniedException":
|
|
758
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
759
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
760
|
+
case "IllegalArgumentException":
|
|
761
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
762
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
763
|
+
case "NoAvailableOrganizationException":
|
|
764
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
765
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
766
|
+
case "ServiceException":
|
|
767
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
768
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
769
|
+
case "TemplatesNotAvailableInRegionException":
|
|
770
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
771
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
772
|
+
case "TooManyRequestsException":
|
|
773
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
774
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
775
|
+
default:
|
|
776
|
+
const parsedBody = parsedOutput.body;
|
|
777
|
+
throwDefaultError({
|
|
778
|
+
output,
|
|
779
|
+
parsedBody,
|
|
780
|
+
exceptionCtor: __BaseException,
|
|
781
|
+
errorCode,
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
export const deserializeAws_json1_1ListServiceQuotasCommand = async (output, context) => {
|
|
786
|
+
if (output.statusCode >= 300) {
|
|
787
|
+
return deserializeAws_json1_1ListServiceQuotasCommandError(output, context);
|
|
788
|
+
}
|
|
789
|
+
const data = await parseBody(output.body, context);
|
|
790
|
+
let contents = {};
|
|
791
|
+
contents = deserializeAws_json1_1ListServiceQuotasResponse(data, context);
|
|
792
|
+
const response = {
|
|
793
|
+
$metadata: deserializeMetadata(output),
|
|
794
|
+
...contents,
|
|
795
|
+
};
|
|
796
|
+
return Promise.resolve(response);
|
|
797
|
+
};
|
|
798
|
+
const deserializeAws_json1_1ListServiceQuotasCommandError = async (output, context) => {
|
|
799
|
+
const parsedOutput = {
|
|
800
|
+
...output,
|
|
801
|
+
body: await parseErrorBody(output.body, context),
|
|
802
|
+
};
|
|
803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
+
switch (errorCode) {
|
|
805
|
+
case "AccessDeniedException":
|
|
806
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
807
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
808
|
+
case "IllegalArgumentException":
|
|
809
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
810
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
811
|
+
case "InvalidPaginationTokenException":
|
|
812
|
+
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
813
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
814
|
+
case "NoSuchResourceException":
|
|
815
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
816
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
817
|
+
case "ServiceException":
|
|
818
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
819
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
820
|
+
case "TooManyRequestsException":
|
|
821
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
822
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
823
|
+
default:
|
|
824
|
+
const parsedBody = parsedOutput.body;
|
|
825
|
+
throwDefaultError({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
exceptionCtor: __BaseException,
|
|
829
|
+
errorCode,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
export const deserializeAws_json1_1ListServicesCommand = async (output, context) => {
|
|
834
|
+
if (output.statusCode >= 300) {
|
|
835
|
+
return deserializeAws_json1_1ListServicesCommandError(output, context);
|
|
836
|
+
}
|
|
837
|
+
const data = await parseBody(output.body, context);
|
|
838
|
+
let contents = {};
|
|
839
|
+
contents = deserializeAws_json1_1ListServicesResponse(data, context);
|
|
840
|
+
const response = {
|
|
841
|
+
$metadata: deserializeMetadata(output),
|
|
842
|
+
...contents,
|
|
843
|
+
};
|
|
844
|
+
return Promise.resolve(response);
|
|
845
|
+
};
|
|
846
|
+
const deserializeAws_json1_1ListServicesCommandError = async (output, context) => {
|
|
847
|
+
const parsedOutput = {
|
|
848
|
+
...output,
|
|
849
|
+
body: await parseErrorBody(output.body, context),
|
|
850
|
+
};
|
|
851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
|
+
switch (errorCode) {
|
|
853
|
+
case "AccessDeniedException":
|
|
854
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
855
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
856
|
+
case "IllegalArgumentException":
|
|
857
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
858
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
859
|
+
case "InvalidPaginationTokenException":
|
|
860
|
+
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
861
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
862
|
+
case "ServiceException":
|
|
863
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
864
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
865
|
+
case "TooManyRequestsException":
|
|
866
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
867
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
868
|
+
default:
|
|
869
|
+
const parsedBody = parsedOutput.body;
|
|
870
|
+
throwDefaultError({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: __BaseException,
|
|
874
|
+
errorCode,
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
879
|
+
if (output.statusCode >= 300) {
|
|
880
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
881
|
+
}
|
|
882
|
+
const data = await parseBody(output.body, context);
|
|
883
|
+
let contents = {};
|
|
884
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
885
|
+
const response = {
|
|
886
|
+
$metadata: deserializeMetadata(output),
|
|
887
|
+
...contents,
|
|
888
|
+
};
|
|
889
|
+
return Promise.resolve(response);
|
|
890
|
+
};
|
|
891
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
892
|
+
const parsedOutput = {
|
|
893
|
+
...output,
|
|
894
|
+
body: await parseErrorBody(output.body, context),
|
|
895
|
+
};
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
switch (errorCode) {
|
|
898
|
+
case "AccessDeniedException":
|
|
899
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
900
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
901
|
+
case "IllegalArgumentException":
|
|
902
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
903
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
904
|
+
case "NoSuchResourceException":
|
|
905
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
906
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
907
|
+
case "ServiceException":
|
|
908
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
909
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
910
|
+
case "TooManyRequestsException":
|
|
911
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
912
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
913
|
+
default:
|
|
914
|
+
const parsedBody = parsedOutput.body;
|
|
915
|
+
throwDefaultError({
|
|
916
|
+
output,
|
|
917
|
+
parsedBody,
|
|
918
|
+
exceptionCtor: __BaseException,
|
|
919
|
+
errorCode,
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
export const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (output, context) => {
|
|
924
|
+
if (output.statusCode >= 300) {
|
|
925
|
+
return deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandError(output, context);
|
|
926
|
+
}
|
|
927
|
+
const data = await parseBody(output.body, context);
|
|
928
|
+
let contents = {};
|
|
929
|
+
contents = deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateResponse(data, context);
|
|
930
|
+
const response = {
|
|
931
|
+
$metadata: deserializeMetadata(output),
|
|
932
|
+
...contents,
|
|
933
|
+
};
|
|
934
|
+
return Promise.resolve(response);
|
|
935
|
+
};
|
|
936
|
+
const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output, context) => {
|
|
937
|
+
const parsedOutput = {
|
|
938
|
+
...output,
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
|
+
};
|
|
941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
+
switch (errorCode) {
|
|
943
|
+
case "AWSServiceAccessNotEnabledException":
|
|
944
|
+
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
945
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
946
|
+
case "AccessDeniedException":
|
|
947
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
948
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
949
|
+
case "DependencyAccessDeniedException":
|
|
950
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
951
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
952
|
+
case "IllegalArgumentException":
|
|
953
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
954
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
955
|
+
case "NoAvailableOrganizationException":
|
|
956
|
+
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
957
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
958
|
+
case "NoSuchResourceException":
|
|
959
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
960
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
961
|
+
case "QuotaExceededException":
|
|
962
|
+
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
963
|
+
throw await deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context);
|
|
964
|
+
case "ServiceException":
|
|
965
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
966
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
967
|
+
case "TemplatesNotAvailableInRegionException":
|
|
968
|
+
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
969
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
970
|
+
case "TooManyRequestsException":
|
|
971
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
972
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
973
|
+
default:
|
|
974
|
+
const parsedBody = parsedOutput.body;
|
|
975
|
+
throwDefaultError({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
exceptionCtor: __BaseException,
|
|
979
|
+
errorCode,
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
export const deserializeAws_json1_1RequestServiceQuotaIncreaseCommand = async (output, context) => {
|
|
984
|
+
if (output.statusCode >= 300) {
|
|
985
|
+
return deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
const data = await parseBody(output.body, context);
|
|
988
|
+
let contents = {};
|
|
989
|
+
contents = deserializeAws_json1_1RequestServiceQuotaIncreaseResponse(data, context);
|
|
990
|
+
const response = {
|
|
991
|
+
$metadata: deserializeMetadata(output),
|
|
992
|
+
...contents,
|
|
993
|
+
};
|
|
994
|
+
return Promise.resolve(response);
|
|
995
|
+
};
|
|
996
|
+
const deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError = async (output, context) => {
|
|
997
|
+
const parsedOutput = {
|
|
998
|
+
...output,
|
|
999
|
+
body: await parseErrorBody(output.body, context),
|
|
1000
|
+
};
|
|
1001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
+
switch (errorCode) {
|
|
1003
|
+
case "AccessDeniedException":
|
|
1004
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1005
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1006
|
+
case "DependencyAccessDeniedException":
|
|
1007
|
+
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
1008
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
1009
|
+
case "IllegalArgumentException":
|
|
1010
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1011
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1012
|
+
case "InvalidResourceStateException":
|
|
1013
|
+
case "com.amazonaws.servicequotas#InvalidResourceStateException":
|
|
1014
|
+
throw await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
1015
|
+
case "NoSuchResourceException":
|
|
1016
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1017
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1018
|
+
case "QuotaExceededException":
|
|
1019
|
+
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
1020
|
+
throw await deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context);
|
|
1021
|
+
case "ResourceAlreadyExistsException":
|
|
1022
|
+
case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
|
|
1023
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1024
|
+
case "ServiceException":
|
|
1025
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
1026
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1027
|
+
case "TooManyRequestsException":
|
|
1028
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1029
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1030
|
+
default:
|
|
1031
|
+
const parsedBody = parsedOutput.body;
|
|
1032
|
+
throwDefaultError({
|
|
1033
|
+
output,
|
|
1034
|
+
parsedBody,
|
|
1035
|
+
exceptionCtor: __BaseException,
|
|
1036
|
+
errorCode,
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1041
|
+
if (output.statusCode >= 300) {
|
|
1042
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1043
|
+
}
|
|
1044
|
+
const data = await parseBody(output.body, context);
|
|
1045
|
+
let contents = {};
|
|
1046
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1047
|
+
const response = {
|
|
1048
|
+
$metadata: deserializeMetadata(output),
|
|
1049
|
+
...contents,
|
|
1050
|
+
};
|
|
1051
|
+
return Promise.resolve(response);
|
|
1052
|
+
};
|
|
1053
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1054
|
+
const parsedOutput = {
|
|
1055
|
+
...output,
|
|
1056
|
+
body: await parseErrorBody(output.body, context),
|
|
1057
|
+
};
|
|
1058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
+
switch (errorCode) {
|
|
1060
|
+
case "AccessDeniedException":
|
|
1061
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1062
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1063
|
+
case "IllegalArgumentException":
|
|
1064
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1065
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1066
|
+
case "NoSuchResourceException":
|
|
1067
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1068
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1069
|
+
case "ServiceException":
|
|
1070
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
1071
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1072
|
+
case "TagPolicyViolationException":
|
|
1073
|
+
case "com.amazonaws.servicequotas#TagPolicyViolationException":
|
|
1074
|
+
throw await deserializeAws_json1_1TagPolicyViolationExceptionResponse(parsedOutput, context);
|
|
1075
|
+
case "TooManyRequestsException":
|
|
1076
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1077
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1078
|
+
case "TooManyTagsException":
|
|
1079
|
+
case "com.amazonaws.servicequotas#TooManyTagsException":
|
|
1080
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1081
|
+
default:
|
|
1082
|
+
const parsedBody = parsedOutput.body;
|
|
1083
|
+
throwDefaultError({
|
|
1084
|
+
output,
|
|
1085
|
+
parsedBody,
|
|
1086
|
+
exceptionCtor: __BaseException,
|
|
1087
|
+
errorCode,
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1092
|
+
if (output.statusCode >= 300) {
|
|
1093
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1094
|
+
}
|
|
1095
|
+
const data = await parseBody(output.body, context);
|
|
1096
|
+
let contents = {};
|
|
1097
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1098
|
+
const response = {
|
|
1099
|
+
$metadata: deserializeMetadata(output),
|
|
1100
|
+
...contents,
|
|
1101
|
+
};
|
|
1102
|
+
return Promise.resolve(response);
|
|
1103
|
+
};
|
|
1104
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1105
|
+
const parsedOutput = {
|
|
1106
|
+
...output,
|
|
1107
|
+
body: await parseErrorBody(output.body, context),
|
|
1108
|
+
};
|
|
1109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
switch (errorCode) {
|
|
1111
|
+
case "AccessDeniedException":
|
|
1112
|
+
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1113
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1114
|
+
case "IllegalArgumentException":
|
|
1115
|
+
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1116
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1117
|
+
case "NoSuchResourceException":
|
|
1118
|
+
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1119
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1120
|
+
case "ServiceException":
|
|
1121
|
+
case "com.amazonaws.servicequotas#ServiceException":
|
|
1122
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1123
|
+
case "TooManyRequestsException":
|
|
1124
|
+
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1125
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1126
|
+
default:
|
|
1127
|
+
const parsedBody = parsedOutput.body;
|
|
1128
|
+
throwDefaultError({
|
|
1129
|
+
output,
|
|
1130
|
+
parsedBody,
|
|
1131
|
+
exceptionCtor: __BaseException,
|
|
1132
|
+
errorCode,
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1137
|
+
const body = parsedOutput.body;
|
|
1138
|
+
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1139
|
+
const exception = new AccessDeniedException({
|
|
1140
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1141
|
+
...deserialized,
|
|
1142
|
+
});
|
|
1143
|
+
return __decorateServiceException(exception, body);
|
|
1144
|
+
};
|
|
1145
|
+
const deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
1146
|
+
const body = parsedOutput.body;
|
|
1147
|
+
const deserialized = deserializeAws_json1_1AWSServiceAccessNotEnabledException(body, context);
|
|
1148
|
+
const exception = new AWSServiceAccessNotEnabledException({
|
|
1149
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
+
...deserialized,
|
|
1151
|
+
});
|
|
1152
|
+
return __decorateServiceException(exception, body);
|
|
1153
|
+
};
|
|
1154
|
+
const deserializeAws_json1_1DependencyAccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1155
|
+
const body = parsedOutput.body;
|
|
1156
|
+
const deserialized = deserializeAws_json1_1DependencyAccessDeniedException(body, context);
|
|
1157
|
+
const exception = new DependencyAccessDeniedException({
|
|
1158
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
+
...deserialized,
|
|
1160
|
+
});
|
|
1161
|
+
return __decorateServiceException(exception, body);
|
|
1162
|
+
};
|
|
1163
|
+
const deserializeAws_json1_1IllegalArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
1164
|
+
const body = parsedOutput.body;
|
|
1165
|
+
const deserialized = deserializeAws_json1_1IllegalArgumentException(body, context);
|
|
1166
|
+
const exception = new IllegalArgumentException({
|
|
1167
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
+
...deserialized,
|
|
1169
|
+
});
|
|
1170
|
+
return __decorateServiceException(exception, body);
|
|
1171
|
+
};
|
|
1172
|
+
const deserializeAws_json1_1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
|
|
1173
|
+
const body = parsedOutput.body;
|
|
1174
|
+
const deserialized = deserializeAws_json1_1InvalidPaginationTokenException(body, context);
|
|
1175
|
+
const exception = new InvalidPaginationTokenException({
|
|
1176
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1177
|
+
...deserialized,
|
|
1178
|
+
});
|
|
1179
|
+
return __decorateServiceException(exception, body);
|
|
1180
|
+
};
|
|
1181
|
+
const deserializeAws_json1_1InvalidResourceStateExceptionResponse = async (parsedOutput, context) => {
|
|
1182
|
+
const body = parsedOutput.body;
|
|
1183
|
+
const deserialized = deserializeAws_json1_1InvalidResourceStateException(body, context);
|
|
1184
|
+
const exception = new InvalidResourceStateException({
|
|
1185
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1186
|
+
...deserialized,
|
|
1187
|
+
});
|
|
1188
|
+
return __decorateServiceException(exception, body);
|
|
1189
|
+
};
|
|
1190
|
+
const deserializeAws_json1_1NoAvailableOrganizationExceptionResponse = async (parsedOutput, context) => {
|
|
1191
|
+
const body = parsedOutput.body;
|
|
1192
|
+
const deserialized = deserializeAws_json1_1NoAvailableOrganizationException(body, context);
|
|
1193
|
+
const exception = new NoAvailableOrganizationException({
|
|
1194
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1195
|
+
...deserialized,
|
|
1196
|
+
});
|
|
1197
|
+
return __decorateServiceException(exception, body);
|
|
1198
|
+
};
|
|
1199
|
+
const deserializeAws_json1_1NoSuchResourceExceptionResponse = async (parsedOutput, context) => {
|
|
1200
|
+
const body = parsedOutput.body;
|
|
1201
|
+
const deserialized = deserializeAws_json1_1NoSuchResourceException(body, context);
|
|
1202
|
+
const exception = new NoSuchResourceException({
|
|
1203
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
+
...deserialized,
|
|
1205
|
+
});
|
|
1206
|
+
return __decorateServiceException(exception, body);
|
|
1207
|
+
};
|
|
1208
|
+
const deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse = async (parsedOutput, context) => {
|
|
1209
|
+
const body = parsedOutput.body;
|
|
1210
|
+
const deserialized = deserializeAws_json1_1OrganizationNotInAllFeaturesModeException(body, context);
|
|
1211
|
+
const exception = new OrganizationNotInAllFeaturesModeException({
|
|
1212
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1213
|
+
...deserialized,
|
|
1214
|
+
});
|
|
1215
|
+
return __decorateServiceException(exception, body);
|
|
1216
|
+
};
|
|
1217
|
+
const deserializeAws_json1_1QuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1218
|
+
const body = parsedOutput.body;
|
|
1219
|
+
const deserialized = deserializeAws_json1_1QuotaExceededException(body, context);
|
|
1220
|
+
const exception = new QuotaExceededException({
|
|
1221
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1222
|
+
...deserialized,
|
|
1223
|
+
});
|
|
1224
|
+
return __decorateServiceException(exception, body);
|
|
1225
|
+
};
|
|
1226
|
+
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1227
|
+
const body = parsedOutput.body;
|
|
1228
|
+
const deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
1229
|
+
const exception = new ResourceAlreadyExistsException({
|
|
1230
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1231
|
+
...deserialized,
|
|
1232
|
+
});
|
|
1233
|
+
return __decorateServiceException(exception, body);
|
|
1234
|
+
};
|
|
1235
|
+
const deserializeAws_json1_1ServiceExceptionResponse = async (parsedOutput, context) => {
|
|
1236
|
+
const body = parsedOutput.body;
|
|
1237
|
+
const deserialized = deserializeAws_json1_1ServiceException(body, context);
|
|
1238
|
+
const exception = new ServiceException({
|
|
1239
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1240
|
+
...deserialized,
|
|
1241
|
+
});
|
|
1242
|
+
return __decorateServiceException(exception, body);
|
|
1243
|
+
};
|
|
1244
|
+
const deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse = async (parsedOutput, context) => {
|
|
1245
|
+
const body = parsedOutput.body;
|
|
1246
|
+
const deserialized = deserializeAws_json1_1ServiceQuotaTemplateNotInUseException(body, context);
|
|
1247
|
+
const exception = new ServiceQuotaTemplateNotInUseException({
|
|
1248
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
|
+
...deserialized,
|
|
1250
|
+
});
|
|
1251
|
+
return __decorateServiceException(exception, body);
|
|
1252
|
+
};
|
|
1253
|
+
const deserializeAws_json1_1TagPolicyViolationExceptionResponse = async (parsedOutput, context) => {
|
|
1254
|
+
const body = parsedOutput.body;
|
|
1255
|
+
const deserialized = deserializeAws_json1_1TagPolicyViolationException(body, context);
|
|
1256
|
+
const exception = new TagPolicyViolationException({
|
|
1257
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1258
|
+
...deserialized,
|
|
1259
|
+
});
|
|
1260
|
+
return __decorateServiceException(exception, body);
|
|
1261
|
+
};
|
|
1262
|
+
const deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse = async (parsedOutput, context) => {
|
|
1263
|
+
const body = parsedOutput.body;
|
|
1264
|
+
const deserialized = deserializeAws_json1_1TemplatesNotAvailableInRegionException(body, context);
|
|
1265
|
+
const exception = new TemplatesNotAvailableInRegionException({
|
|
1266
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
+
...deserialized,
|
|
1268
|
+
});
|
|
1269
|
+
return __decorateServiceException(exception, body);
|
|
1270
|
+
};
|
|
1271
|
+
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1272
|
+
const body = parsedOutput.body;
|
|
1273
|
+
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1274
|
+
const exception = new TooManyRequestsException({
|
|
1275
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1276
|
+
...deserialized,
|
|
1277
|
+
});
|
|
1278
|
+
return __decorateServiceException(exception, body);
|
|
1279
|
+
};
|
|
1280
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
1281
|
+
const body = parsedOutput.body;
|
|
1282
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1283
|
+
const exception = new TooManyTagsException({
|
|
1284
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1285
|
+
...deserialized,
|
|
1286
|
+
});
|
|
1287
|
+
return __decorateServiceException(exception, body);
|
|
1288
|
+
};
|
|
1289
|
+
const serializeAws_json1_1AssociateServiceQuotaTemplateRequest = (input, context) => {
|
|
1782
1290
|
return {};
|
|
1783
1291
|
};
|
|
1784
|
-
|
|
1785
|
-
return
|
|
1292
|
+
const serializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
|
|
1293
|
+
return {
|
|
1294
|
+
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1295
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1296
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1297
|
+
};
|
|
1786
1298
|
};
|
|
1787
|
-
|
|
1299
|
+
const serializeAws_json1_1DisassociateServiceQuotaTemplateRequest = (input, context) => {
|
|
1788
1300
|
return {};
|
|
1789
1301
|
};
|
|
1790
|
-
|
|
1302
|
+
const serializeAws_json1_1GetAssociationForServiceQuotaTemplateRequest = (input, context) => {
|
|
1791
1303
|
return {};
|
|
1792
1304
|
};
|
|
1793
|
-
|
|
1794
|
-
return
|
|
1305
|
+
const serializeAws_json1_1GetAWSDefaultServiceQuotaRequest = (input, context) => {
|
|
1306
|
+
return {
|
|
1307
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1308
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1309
|
+
};
|
|
1795
1310
|
};
|
|
1796
|
-
|
|
1797
|
-
return
|
|
1311
|
+
const serializeAws_json1_1GetRequestedServiceQuotaChangeRequest = (input, context) => {
|
|
1312
|
+
return {
|
|
1313
|
+
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
1314
|
+
};
|
|
1798
1315
|
};
|
|
1799
|
-
|
|
1800
|
-
return
|
|
1316
|
+
const serializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
|
|
1317
|
+
return {
|
|
1318
|
+
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1319
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1320
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1321
|
+
};
|
|
1801
1322
|
};
|
|
1802
|
-
|
|
1803
|
-
return
|
|
1323
|
+
const serializeAws_json1_1GetServiceQuotaRequest = (input, context) => {
|
|
1324
|
+
return {
|
|
1325
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1326
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1327
|
+
};
|
|
1804
1328
|
};
|
|
1805
|
-
|
|
1329
|
+
const serializeAws_json1_1InputTagKeys = (input, context) => {
|
|
1806
1330
|
return input
|
|
1807
|
-
.filter(
|
|
1808
|
-
.map(
|
|
1331
|
+
.filter((e) => e != null)
|
|
1332
|
+
.map((entry) => {
|
|
1809
1333
|
return entry;
|
|
1810
1334
|
});
|
|
1811
1335
|
};
|
|
1812
|
-
|
|
1336
|
+
const serializeAws_json1_1InputTags = (input, context) => {
|
|
1813
1337
|
return input
|
|
1814
|
-
.filter(
|
|
1815
|
-
.map(
|
|
1338
|
+
.filter((e) => e != null)
|
|
1339
|
+
.map((entry) => {
|
|
1816
1340
|
return serializeAws_json1_1Tag(entry, context);
|
|
1817
1341
|
});
|
|
1818
1342
|
};
|
|
1819
|
-
|
|
1820
|
-
return
|
|
1343
|
+
const serializeAws_json1_1ListAWSDefaultServiceQuotasRequest = (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
|
+
};
|
|
1821
1349
|
};
|
|
1822
|
-
|
|
1823
|
-
return
|
|
1350
|
+
const serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaRequest = (input, context) => {
|
|
1351
|
+
return {
|
|
1352
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1353
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1354
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1355
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1356
|
+
...(input.Status != null && { Status: input.Status }),
|
|
1357
|
+
};
|
|
1824
1358
|
};
|
|
1825
|
-
|
|
1826
|
-
return
|
|
1359
|
+
const serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryRequest = (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
|
+
...(input.Status != null && { Status: input.Status }),
|
|
1365
|
+
};
|
|
1827
1366
|
};
|
|
1828
|
-
|
|
1829
|
-
return
|
|
1367
|
+
const serializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateRequest = (input, context) => {
|
|
1368
|
+
return {
|
|
1369
|
+
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1370
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1371
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1372
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1373
|
+
};
|
|
1830
1374
|
};
|
|
1831
|
-
|
|
1832
|
-
return
|
|
1375
|
+
const serializeAws_json1_1ListServiceQuotasRequest = (input, context) => {
|
|
1376
|
+
return {
|
|
1377
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1378
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1379
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1380
|
+
};
|
|
1833
1381
|
};
|
|
1834
|
-
|
|
1835
|
-
return
|
|
1382
|
+
const serializeAws_json1_1ListServicesRequest = (input, context) => {
|
|
1383
|
+
return {
|
|
1384
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1385
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1386
|
+
};
|
|
1836
1387
|
};
|
|
1837
|
-
|
|
1838
|
-
return
|
|
1388
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
1389
|
+
return {
|
|
1390
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1391
|
+
};
|
|
1839
1392
|
};
|
|
1840
|
-
|
|
1841
|
-
return
|
|
1393
|
+
const serializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateRequest = (input, context) => {
|
|
1394
|
+
return {
|
|
1395
|
+
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1396
|
+
...(input.DesiredValue != null && { DesiredValue: __serializeFloat(input.DesiredValue) }),
|
|
1397
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1398
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1399
|
+
};
|
|
1842
1400
|
};
|
|
1843
|
-
|
|
1844
|
-
return
|
|
1401
|
+
const serializeAws_json1_1RequestServiceQuotaIncreaseRequest = (input, context) => {
|
|
1402
|
+
return {
|
|
1403
|
+
...(input.DesiredValue != null && { DesiredValue: __serializeFloat(input.DesiredValue) }),
|
|
1404
|
+
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1405
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1406
|
+
};
|
|
1845
1407
|
};
|
|
1846
|
-
|
|
1847
|
-
return
|
|
1408
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1409
|
+
return {
|
|
1410
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1411
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1412
|
+
};
|
|
1848
1413
|
};
|
|
1849
|
-
|
|
1850
|
-
return
|
|
1414
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1415
|
+
return {
|
|
1416
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1417
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1InputTags(input.Tags, context) }),
|
|
1418
|
+
};
|
|
1851
1419
|
};
|
|
1852
|
-
|
|
1853
|
-
return
|
|
1420
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1421
|
+
return {
|
|
1422
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1423
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1InputTagKeys(input.TagKeys, context) }),
|
|
1424
|
+
};
|
|
1854
1425
|
};
|
|
1855
|
-
|
|
1426
|
+
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
1856
1427
|
return {
|
|
1857
1428
|
Message: __expectString(output.Message),
|
|
1858
1429
|
};
|
|
1859
1430
|
};
|
|
1860
|
-
|
|
1431
|
+
const deserializeAws_json1_1AssociateServiceQuotaTemplateResponse = (output, context) => {
|
|
1861
1432
|
return {};
|
|
1862
1433
|
};
|
|
1863
|
-
|
|
1434
|
+
const deserializeAws_json1_1AWSServiceAccessNotEnabledException = (output, context) => {
|
|
1864
1435
|
return {
|
|
1865
1436
|
Message: __expectString(output.Message),
|
|
1866
1437
|
};
|
|
1867
1438
|
};
|
|
1868
|
-
|
|
1439
|
+
const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
|
|
1869
1440
|
return {};
|
|
1870
1441
|
};
|
|
1871
|
-
|
|
1442
|
+
const deserializeAws_json1_1DependencyAccessDeniedException = (output, context) => {
|
|
1872
1443
|
return {
|
|
1873
1444
|
Message: __expectString(output.Message),
|
|
1874
1445
|
};
|
|
1875
1446
|
};
|
|
1876
|
-
|
|
1447
|
+
const deserializeAws_json1_1DisassociateServiceQuotaTemplateResponse = (output, context) => {
|
|
1877
1448
|
return {};
|
|
1878
1449
|
};
|
|
1879
|
-
|
|
1450
|
+
const deserializeAws_json1_1ErrorReason = (output, context) => {
|
|
1880
1451
|
return {
|
|
1881
1452
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1882
1453
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1883
1454
|
};
|
|
1884
1455
|
};
|
|
1885
|
-
|
|
1456
|
+
const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateResponse = (output, context) => {
|
|
1886
1457
|
return {
|
|
1887
1458
|
ServiceQuotaTemplateAssociationStatus: __expectString(output.ServiceQuotaTemplateAssociationStatus),
|
|
1888
1459
|
};
|
|
1889
1460
|
};
|
|
1890
|
-
|
|
1461
|
+
const deserializeAws_json1_1GetAWSDefaultServiceQuotaResponse = (output, context) => {
|
|
1891
1462
|
return {
|
|
1892
1463
|
Quota: output.Quota != null ? deserializeAws_json1_1ServiceQuota(output.Quota, context) : undefined,
|
|
1893
1464
|
};
|
|
1894
1465
|
};
|
|
1895
|
-
|
|
1466
|
+
const deserializeAws_json1_1GetRequestedServiceQuotaChangeResponse = (output, context) => {
|
|
1896
1467
|
return {
|
|
1897
1468
|
RequestedQuota: output.RequestedQuota != null
|
|
1898
1469
|
? deserializeAws_json1_1RequestedServiceQuotaChange(output.RequestedQuota, context)
|
|
1899
1470
|
: undefined,
|
|
1900
1471
|
};
|
|
1901
1472
|
};
|
|
1902
|
-
|
|
1473
|
+
const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
|
|
1903
1474
|
return {
|
|
1904
1475
|
ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate != null
|
|
1905
1476
|
? deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate(output.ServiceQuotaIncreaseRequestInTemplate, context)
|
|
1906
1477
|
: undefined,
|
|
1907
1478
|
};
|
|
1908
1479
|
};
|
|
1909
|
-
|
|
1480
|
+
const deserializeAws_json1_1GetServiceQuotaResponse = (output, context) => {
|
|
1910
1481
|
return {
|
|
1911
1482
|
Quota: output.Quota != null ? deserializeAws_json1_1ServiceQuota(output.Quota, context) : undefined,
|
|
1912
1483
|
};
|
|
1913
1484
|
};
|
|
1914
|
-
|
|
1485
|
+
const deserializeAws_json1_1IllegalArgumentException = (output, context) => {
|
|
1915
1486
|
return {
|
|
1916
1487
|
Message: __expectString(output.Message),
|
|
1917
1488
|
};
|
|
1918
1489
|
};
|
|
1919
|
-
|
|
1490
|
+
const deserializeAws_json1_1InvalidPaginationTokenException = (output, context) => {
|
|
1920
1491
|
return {
|
|
1921
1492
|
Message: __expectString(output.Message),
|
|
1922
1493
|
};
|
|
1923
1494
|
};
|
|
1924
|
-
|
|
1495
|
+
const deserializeAws_json1_1InvalidResourceStateException = (output, context) => {
|
|
1925
1496
|
return {
|
|
1926
1497
|
Message: __expectString(output.Message),
|
|
1927
1498
|
};
|
|
1928
1499
|
};
|
|
1929
|
-
|
|
1500
|
+
const deserializeAws_json1_1ListAWSDefaultServiceQuotasResponse = (output, context) => {
|
|
1930
1501
|
return {
|
|
1931
1502
|
NextToken: __expectString(output.NextToken),
|
|
1932
1503
|
Quotas: output.Quotas != null ? deserializeAws_json1_1ServiceQuotaListDefinition(output.Quotas, context) : undefined,
|
|
1933
1504
|
};
|
|
1934
1505
|
};
|
|
1935
|
-
|
|
1506
|
+
const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaResponse = (output, context) => {
|
|
1936
1507
|
return {
|
|
1937
1508
|
NextToken: __expectString(output.NextToken),
|
|
1938
1509
|
RequestedQuotas: output.RequestedQuotas != null
|
|
@@ -1940,7 +1511,7 @@ var deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaResponse
|
|
|
1940
1511
|
: undefined,
|
|
1941
1512
|
};
|
|
1942
1513
|
};
|
|
1943
|
-
|
|
1514
|
+
const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryResponse = (output, context) => {
|
|
1944
1515
|
return {
|
|
1945
1516
|
NextToken: __expectString(output.NextToken),
|
|
1946
1517
|
RequestedQuotas: output.RequestedQuotas != null
|
|
@@ -1948,7 +1519,7 @@ var deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryResponse = funct
|
|
|
1948
1519
|
: undefined,
|
|
1949
1520
|
};
|
|
1950
1521
|
};
|
|
1951
|
-
|
|
1522
|
+
const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateResponse = (output, context) => {
|
|
1952
1523
|
return {
|
|
1953
1524
|
NextToken: __expectString(output.NextToken),
|
|
1954
1525
|
ServiceQuotaIncreaseRequestInTemplateList: output.ServiceQuotaIncreaseRequestInTemplateList != null
|
|
@@ -1956,34 +1527,35 @@ var deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateResponse = f
|
|
|
1956
1527
|
: undefined,
|
|
1957
1528
|
};
|
|
1958
1529
|
};
|
|
1959
|
-
|
|
1530
|
+
const deserializeAws_json1_1ListServiceQuotasResponse = (output, context) => {
|
|
1960
1531
|
return {
|
|
1961
1532
|
NextToken: __expectString(output.NextToken),
|
|
1962
1533
|
Quotas: output.Quotas != null ? deserializeAws_json1_1ServiceQuotaListDefinition(output.Quotas, context) : undefined,
|
|
1963
1534
|
};
|
|
1964
1535
|
};
|
|
1965
|
-
|
|
1536
|
+
const deserializeAws_json1_1ListServicesResponse = (output, context) => {
|
|
1966
1537
|
return {
|
|
1967
1538
|
NextToken: __expectString(output.NextToken),
|
|
1968
1539
|
Services: output.Services != null ? deserializeAws_json1_1ServiceInfoListDefinition(output.Services, context) : undefined,
|
|
1969
1540
|
};
|
|
1970
1541
|
};
|
|
1971
|
-
|
|
1542
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
1972
1543
|
return {
|
|
1973
1544
|
Tags: output.Tags != null ? deserializeAws_json1_1OutputTags(output.Tags, context) : undefined,
|
|
1974
1545
|
};
|
|
1975
1546
|
};
|
|
1976
|
-
|
|
1977
|
-
return Object.entries(output).reduce(
|
|
1978
|
-
var _b;
|
|
1979
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1547
|
+
const deserializeAws_json1_1MetricDimensionsMapDefinition = (output, context) => {
|
|
1548
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1980
1549
|
if (value === null) {
|
|
1981
1550
|
return acc;
|
|
1982
1551
|
}
|
|
1983
|
-
return
|
|
1552
|
+
return {
|
|
1553
|
+
...acc,
|
|
1554
|
+
[key]: __expectString(value),
|
|
1555
|
+
};
|
|
1984
1556
|
}, {});
|
|
1985
1557
|
};
|
|
1986
|
-
|
|
1558
|
+
const deserializeAws_json1_1MetricInfo = (output, context) => {
|
|
1987
1559
|
return {
|
|
1988
1560
|
MetricDimensions: output.MetricDimensions != null
|
|
1989
1561
|
? deserializeAws_json1_1MetricDimensionsMapDefinition(output.MetricDimensions, context)
|
|
@@ -1993,25 +1565,25 @@ var deserializeAws_json1_1MetricInfo = function (output, context) {
|
|
|
1993
1565
|
MetricStatisticRecommendation: __expectString(output.MetricStatisticRecommendation),
|
|
1994
1566
|
};
|
|
1995
1567
|
};
|
|
1996
|
-
|
|
1568
|
+
const deserializeAws_json1_1NoAvailableOrganizationException = (output, context) => {
|
|
1997
1569
|
return {
|
|
1998
1570
|
Message: __expectString(output.Message),
|
|
1999
1571
|
};
|
|
2000
1572
|
};
|
|
2001
|
-
|
|
1573
|
+
const deserializeAws_json1_1NoSuchResourceException = (output, context) => {
|
|
2002
1574
|
return {
|
|
2003
1575
|
Message: __expectString(output.Message),
|
|
2004
1576
|
};
|
|
2005
1577
|
};
|
|
2006
|
-
|
|
1578
|
+
const deserializeAws_json1_1OrganizationNotInAllFeaturesModeException = (output, context) => {
|
|
2007
1579
|
return {
|
|
2008
1580
|
Message: __expectString(output.Message),
|
|
2009
1581
|
};
|
|
2010
1582
|
};
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
.filter(
|
|
2014
|
-
.map(
|
|
1583
|
+
const deserializeAws_json1_1OutputTags = (output, context) => {
|
|
1584
|
+
const retVal = (output || [])
|
|
1585
|
+
.filter((e) => e != null)
|
|
1586
|
+
.map((entry) => {
|
|
2015
1587
|
if (entry === null) {
|
|
2016
1588
|
return null;
|
|
2017
1589
|
}
|
|
@@ -2019,25 +1591,25 @@ var deserializeAws_json1_1OutputTags = function (output, context) {
|
|
|
2019
1591
|
});
|
|
2020
1592
|
return retVal;
|
|
2021
1593
|
};
|
|
2022
|
-
|
|
1594
|
+
const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
|
|
2023
1595
|
return {
|
|
2024
1596
|
ServiceQuotaIncreaseRequestInTemplate: output.ServiceQuotaIncreaseRequestInTemplate != null
|
|
2025
1597
|
? deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate(output.ServiceQuotaIncreaseRequestInTemplate, context)
|
|
2026
1598
|
: undefined,
|
|
2027
1599
|
};
|
|
2028
1600
|
};
|
|
2029
|
-
|
|
1601
|
+
const deserializeAws_json1_1QuotaExceededException = (output, context) => {
|
|
2030
1602
|
return {
|
|
2031
1603
|
Message: __expectString(output.Message),
|
|
2032
1604
|
};
|
|
2033
1605
|
};
|
|
2034
|
-
|
|
1606
|
+
const deserializeAws_json1_1QuotaPeriod = (output, context) => {
|
|
2035
1607
|
return {
|
|
2036
1608
|
PeriodUnit: __expectString(output.PeriodUnit),
|
|
2037
1609
|
PeriodValue: __expectInt32(output.PeriodValue),
|
|
2038
1610
|
};
|
|
2039
1611
|
};
|
|
2040
|
-
|
|
1612
|
+
const deserializeAws_json1_1RequestedServiceQuotaChange = (output, context) => {
|
|
2041
1613
|
return {
|
|
2042
1614
|
CaseId: __expectString(output.CaseId),
|
|
2043
1615
|
Created: output.Created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Created))) : undefined,
|
|
@@ -2057,10 +1629,10 @@ var deserializeAws_json1_1RequestedServiceQuotaChange = function (output, contex
|
|
|
2057
1629
|
Unit: __expectString(output.Unit),
|
|
2058
1630
|
};
|
|
2059
1631
|
};
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
.filter(
|
|
2063
|
-
.map(
|
|
1632
|
+
const deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = (output, context) => {
|
|
1633
|
+
const retVal = (output || [])
|
|
1634
|
+
.filter((e) => e != null)
|
|
1635
|
+
.map((entry) => {
|
|
2064
1636
|
if (entry === null) {
|
|
2065
1637
|
return null;
|
|
2066
1638
|
}
|
|
@@ -2068,33 +1640,33 @@ var deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = fun
|
|
|
2068
1640
|
});
|
|
2069
1641
|
return retVal;
|
|
2070
1642
|
};
|
|
2071
|
-
|
|
1643
|
+
const deserializeAws_json1_1RequestServiceQuotaIncreaseResponse = (output, context) => {
|
|
2072
1644
|
return {
|
|
2073
1645
|
RequestedQuota: output.RequestedQuota != null
|
|
2074
1646
|
? deserializeAws_json1_1RequestedServiceQuotaChange(output.RequestedQuota, context)
|
|
2075
1647
|
: undefined,
|
|
2076
1648
|
};
|
|
2077
1649
|
};
|
|
2078
|
-
|
|
1650
|
+
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
2079
1651
|
return {
|
|
2080
1652
|
Message: __expectString(output.Message),
|
|
2081
1653
|
};
|
|
2082
1654
|
};
|
|
2083
|
-
|
|
1655
|
+
const deserializeAws_json1_1ServiceException = (output, context) => {
|
|
2084
1656
|
return {
|
|
2085
1657
|
Message: __expectString(output.Message),
|
|
2086
1658
|
};
|
|
2087
1659
|
};
|
|
2088
|
-
|
|
1660
|
+
const deserializeAws_json1_1ServiceInfo = (output, context) => {
|
|
2089
1661
|
return {
|
|
2090
1662
|
ServiceCode: __expectString(output.ServiceCode),
|
|
2091
1663
|
ServiceName: __expectString(output.ServiceName),
|
|
2092
1664
|
};
|
|
2093
1665
|
};
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
.filter(
|
|
2097
|
-
.map(
|
|
1666
|
+
const deserializeAws_json1_1ServiceInfoListDefinition = (output, context) => {
|
|
1667
|
+
const retVal = (output || [])
|
|
1668
|
+
.filter((e) => e != null)
|
|
1669
|
+
.map((entry) => {
|
|
2098
1670
|
if (entry === null) {
|
|
2099
1671
|
return null;
|
|
2100
1672
|
}
|
|
@@ -2102,7 +1674,7 @@ var deserializeAws_json1_1ServiceInfoListDefinition = function (output, context)
|
|
|
2102
1674
|
});
|
|
2103
1675
|
return retVal;
|
|
2104
1676
|
};
|
|
2105
|
-
|
|
1677
|
+
const deserializeAws_json1_1ServiceQuota = (output, context) => {
|
|
2106
1678
|
return {
|
|
2107
1679
|
Adjustable: __expectBoolean(output.Adjustable),
|
|
2108
1680
|
ErrorReason: output.ErrorReason != null ? deserializeAws_json1_1ErrorReason(output.ErrorReason, context) : undefined,
|
|
@@ -2118,7 +1690,7 @@ var deserializeAws_json1_1ServiceQuota = function (output, context) {
|
|
|
2118
1690
|
Value: __limitedParseDouble(output.Value),
|
|
2119
1691
|
};
|
|
2120
1692
|
};
|
|
2121
|
-
|
|
1693
|
+
const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate = (output, context) => {
|
|
2122
1694
|
return {
|
|
2123
1695
|
AwsRegion: __expectString(output.AwsRegion),
|
|
2124
1696
|
DesiredValue: __limitedParseDouble(output.DesiredValue),
|
|
@@ -2130,10 +1702,10 @@ var deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate = function (outp
|
|
|
2130
1702
|
Unit: __expectString(output.Unit),
|
|
2131
1703
|
};
|
|
2132
1704
|
};
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
.filter(
|
|
2136
|
-
.map(
|
|
1705
|
+
const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList = (output, context) => {
|
|
1706
|
+
const retVal = (output || [])
|
|
1707
|
+
.filter((e) => e != null)
|
|
1708
|
+
.map((entry) => {
|
|
2137
1709
|
if (entry === null) {
|
|
2138
1710
|
return null;
|
|
2139
1711
|
}
|
|
@@ -2141,10 +1713,10 @@ var deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList = function (
|
|
|
2141
1713
|
});
|
|
2142
1714
|
return retVal;
|
|
2143
1715
|
};
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
.filter(
|
|
2147
|
-
.map(
|
|
1716
|
+
const deserializeAws_json1_1ServiceQuotaListDefinition = (output, context) => {
|
|
1717
|
+
const retVal = (output || [])
|
|
1718
|
+
.filter((e) => e != null)
|
|
1719
|
+
.map((entry) => {
|
|
2148
1720
|
if (entry === null) {
|
|
2149
1721
|
return null;
|
|
2150
1722
|
}
|
|
@@ -2152,112 +1724,89 @@ var deserializeAws_json1_1ServiceQuotaListDefinition = function (output, context
|
|
|
2152
1724
|
});
|
|
2153
1725
|
return retVal;
|
|
2154
1726
|
};
|
|
2155
|
-
|
|
1727
|
+
const deserializeAws_json1_1ServiceQuotaTemplateNotInUseException = (output, context) => {
|
|
2156
1728
|
return {
|
|
2157
1729
|
Message: __expectString(output.Message),
|
|
2158
1730
|
};
|
|
2159
1731
|
};
|
|
2160
|
-
|
|
1732
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2161
1733
|
return {
|
|
2162
1734
|
Key: __expectString(output.Key),
|
|
2163
1735
|
Value: __expectString(output.Value),
|
|
2164
1736
|
};
|
|
2165
1737
|
};
|
|
2166
|
-
|
|
1738
|
+
const deserializeAws_json1_1TagPolicyViolationException = (output, context) => {
|
|
2167
1739
|
return {
|
|
2168
1740
|
Message: __expectString(output.Message),
|
|
2169
1741
|
};
|
|
2170
1742
|
};
|
|
2171
|
-
|
|
1743
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
2172
1744
|
return {};
|
|
2173
1745
|
};
|
|
2174
|
-
|
|
1746
|
+
const deserializeAws_json1_1TemplatesNotAvailableInRegionException = (output, context) => {
|
|
2175
1747
|
return {
|
|
2176
1748
|
Message: __expectString(output.Message),
|
|
2177
1749
|
};
|
|
2178
1750
|
};
|
|
2179
|
-
|
|
1751
|
+
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
2180
1752
|
return {
|
|
2181
1753
|
Message: __expectString(output.Message),
|
|
2182
1754
|
};
|
|
2183
1755
|
};
|
|
2184
|
-
|
|
1756
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
2185
1757
|
return {
|
|
2186
1758
|
Message: __expectString(output.Message),
|
|
2187
1759
|
};
|
|
2188
1760
|
};
|
|
2189
|
-
|
|
1761
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
2190
1762
|
return {};
|
|
2191
1763
|
};
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
});
|
|
2200
|
-
};
|
|
2201
|
-
var collectBody = function (streamBody, context) {
|
|
2202
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1764
|
+
const deserializeMetadata = (output) => ({
|
|
1765
|
+
httpStatusCode: output.statusCode,
|
|
1766
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
1767
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1768
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1769
|
+
});
|
|
1770
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2203
1771
|
if (streamBody instanceof Uint8Array) {
|
|
2204
1772
|
return Promise.resolve(streamBody);
|
|
2205
1773
|
}
|
|
2206
1774
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2207
1775
|
};
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
};
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
if (resolvedHostname !== undefined) {
|
|
2227
|
-
contents.hostname = resolvedHostname;
|
|
2228
|
-
}
|
|
2229
|
-
if (body !== undefined) {
|
|
2230
|
-
contents.body = body;
|
|
2231
|
-
}
|
|
2232
|
-
return [2, new __HttpRequest(contents)];
|
|
2233
|
-
}
|
|
2234
|
-
});
|
|
2235
|
-
}); };
|
|
2236
|
-
var parseBody = function (streamBody, context) {
|
|
2237
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2238
|
-
if (encoded.length) {
|
|
2239
|
-
return JSON.parse(encoded);
|
|
2240
|
-
}
|
|
2241
|
-
return {};
|
|
2242
|
-
});
|
|
1776
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1777
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1778
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1779
|
+
const contents = {
|
|
1780
|
+
protocol,
|
|
1781
|
+
hostname,
|
|
1782
|
+
port,
|
|
1783
|
+
method: "POST",
|
|
1784
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1785
|
+
headers,
|
|
1786
|
+
};
|
|
1787
|
+
if (resolvedHostname !== undefined) {
|
|
1788
|
+
contents.hostname = resolvedHostname;
|
|
1789
|
+
}
|
|
1790
|
+
if (body !== undefined) {
|
|
1791
|
+
contents.body = body;
|
|
1792
|
+
}
|
|
1793
|
+
return new __HttpRequest(contents);
|
|
2243
1794
|
};
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2260
|
-
var cleanValue = rawValue;
|
|
1795
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1796
|
+
if (encoded.length) {
|
|
1797
|
+
return JSON.parse(encoded);
|
|
1798
|
+
}
|
|
1799
|
+
return {};
|
|
1800
|
+
});
|
|
1801
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1802
|
+
const value = await parseBody(errorBody, context);
|
|
1803
|
+
value.message = value.message ?? value.Message;
|
|
1804
|
+
return value;
|
|
1805
|
+
};
|
|
1806
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1807
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1808
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1809
|
+
let cleanValue = rawValue;
|
|
2261
1810
|
if (typeof cleanValue === "number") {
|
|
2262
1811
|
cleanValue = cleanValue.toString();
|
|
2263
1812
|
}
|
|
@@ -2272,7 +1821,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2272
1821
|
}
|
|
2273
1822
|
return cleanValue;
|
|
2274
1823
|
};
|
|
2275
|
-
|
|
1824
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2276
1825
|
if (headerKey !== undefined) {
|
|
2277
1826
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2278
1827
|
}
|