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