@aws-sdk/client-cloud9 3.185.0 → 3.188.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 +16 -0
- package/dist-es/Cloud9.js +54 -61
- package/dist-es/Cloud9Client.js +22 -28
- package/dist-es/commands/CreateEnvironmentEC2Command.js +21 -28
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +21 -28
- package/dist-es/commands/DeleteEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +21 -28
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +21 -28
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +21 -28
- package/dist-es/commands/DescribeEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateEnvironmentCommand.js +21 -28
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/Cloud9ServiceException.js +5 -10
- package/dist-es/models/models_0.js +204 -135
- package/dist-es/pagination/DescribeEnvironmentMembershipsPaginator.js +25 -68
- package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +992 -1290
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1268 +1,993 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { Cloud9ServiceException as __BaseException } from "../models/Cloud9ServiceException";
|
|
5
4
|
import { BadRequestException, ConcurrentAccessException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
763
|
-
return [2, Promise.resolve(response)];
|
|
764
|
-
}
|
|
765
|
-
});
|
|
766
|
-
}); };
|
|
767
|
-
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
768
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
769
|
-
var _c;
|
|
770
|
-
return __generator(this, function (_d) {
|
|
771
|
-
switch (_d.label) {
|
|
772
|
-
case 0:
|
|
773
|
-
_a = [__assign({}, output)];
|
|
774
|
-
_c = {};
|
|
775
|
-
return [4, parseErrorBody(output.body, context)];
|
|
776
|
-
case 1:
|
|
777
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
_b = errorCode;
|
|
780
|
-
switch (_b) {
|
|
781
|
-
case "BadRequestException": return [3, 2];
|
|
782
|
-
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
783
|
-
case "InternalServerErrorException": return [3, 4];
|
|
784
|
-
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 4];
|
|
785
|
-
case "NotFoundException": return [3, 6];
|
|
786
|
-
case "com.amazonaws.cloud9#NotFoundException": return [3, 6];
|
|
787
|
-
}
|
|
788
|
-
return [3, 8];
|
|
789
|
-
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
790
|
-
case 3: throw _d.sent();
|
|
791
|
-
case 4: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
792
|
-
case 5: throw _d.sent();
|
|
793
|
-
case 6: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
794
|
-
case 7: throw _d.sent();
|
|
795
|
-
case 8:
|
|
796
|
-
parsedBody = parsedOutput.body;
|
|
797
|
-
throwDefaultError({
|
|
798
|
-
output: output,
|
|
799
|
-
parsedBody: parsedBody,
|
|
800
|
-
exceptionCtor: __BaseException,
|
|
801
|
-
errorCode: errorCode,
|
|
802
|
-
});
|
|
803
|
-
_d.label = 9;
|
|
804
|
-
case 9: return [2];
|
|
805
|
-
}
|
|
806
|
-
});
|
|
807
|
-
}); };
|
|
808
|
-
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
809
|
-
var data, contents, response;
|
|
810
|
-
return __generator(this, function (_a) {
|
|
811
|
-
switch (_a.label) {
|
|
812
|
-
case 0:
|
|
813
|
-
if (output.statusCode >= 300) {
|
|
814
|
-
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
815
|
-
}
|
|
816
|
-
return [4, parseBody(output.body, context)];
|
|
817
|
-
case 1:
|
|
818
|
-
data = _a.sent();
|
|
819
|
-
contents = {};
|
|
820
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
821
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
822
|
-
return [2, Promise.resolve(response)];
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
}); };
|
|
826
|
-
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
827
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
828
|
-
var _c;
|
|
829
|
-
return __generator(this, function (_d) {
|
|
830
|
-
switch (_d.label) {
|
|
831
|
-
case 0:
|
|
832
|
-
_a = [__assign({}, output)];
|
|
833
|
-
_c = {};
|
|
834
|
-
return [4, parseErrorBody(output.body, context)];
|
|
835
|
-
case 1:
|
|
836
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
837
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
-
_b = errorCode;
|
|
839
|
-
switch (_b) {
|
|
840
|
-
case "BadRequestException": return [3, 2];
|
|
841
|
-
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
842
|
-
case "ConcurrentAccessException": return [3, 4];
|
|
843
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException": return [3, 4];
|
|
844
|
-
case "InternalServerErrorException": return [3, 6];
|
|
845
|
-
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 6];
|
|
846
|
-
case "NotFoundException": return [3, 8];
|
|
847
|
-
case "com.amazonaws.cloud9#NotFoundException": return [3, 8];
|
|
848
|
-
}
|
|
849
|
-
return [3, 10];
|
|
850
|
-
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
851
|
-
case 3: throw _d.sent();
|
|
852
|
-
case 4: return [4, deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
853
|
-
case 5: throw _d.sent();
|
|
854
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
855
|
-
case 7: throw _d.sent();
|
|
856
|
-
case 8: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
857
|
-
case 9: throw _d.sent();
|
|
858
|
-
case 10:
|
|
859
|
-
parsedBody = parsedOutput.body;
|
|
860
|
-
throwDefaultError({
|
|
861
|
-
output: output,
|
|
862
|
-
parsedBody: parsedBody,
|
|
863
|
-
exceptionCtor: __BaseException,
|
|
864
|
-
errorCode: errorCode,
|
|
865
|
-
});
|
|
866
|
-
_d.label = 11;
|
|
867
|
-
case 11: return [2];
|
|
868
|
-
}
|
|
869
|
-
});
|
|
870
|
-
}); };
|
|
871
|
-
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
872
|
-
var data, contents, response;
|
|
873
|
-
return __generator(this, function (_a) {
|
|
874
|
-
switch (_a.label) {
|
|
875
|
-
case 0:
|
|
876
|
-
if (output.statusCode >= 300) {
|
|
877
|
-
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
878
|
-
}
|
|
879
|
-
return [4, parseBody(output.body, context)];
|
|
880
|
-
case 1:
|
|
881
|
-
data = _a.sent();
|
|
882
|
-
contents = {};
|
|
883
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
884
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
885
|
-
return [2, Promise.resolve(response)];
|
|
886
|
-
}
|
|
887
|
-
});
|
|
888
|
-
}); };
|
|
889
|
-
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
890
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
891
|
-
var _c;
|
|
892
|
-
return __generator(this, function (_d) {
|
|
893
|
-
switch (_d.label) {
|
|
894
|
-
case 0:
|
|
895
|
-
_a = [__assign({}, output)];
|
|
896
|
-
_c = {};
|
|
897
|
-
return [4, parseErrorBody(output.body, context)];
|
|
898
|
-
case 1:
|
|
899
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
900
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
-
_b = errorCode;
|
|
902
|
-
switch (_b) {
|
|
903
|
-
case "BadRequestException": return [3, 2];
|
|
904
|
-
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
905
|
-
case "ConcurrentAccessException": return [3, 4];
|
|
906
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException": return [3, 4];
|
|
907
|
-
case "InternalServerErrorException": return [3, 6];
|
|
908
|
-
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 6];
|
|
909
|
-
case "NotFoundException": return [3, 8];
|
|
910
|
-
case "com.amazonaws.cloud9#NotFoundException": return [3, 8];
|
|
911
|
-
}
|
|
912
|
-
return [3, 10];
|
|
913
|
-
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
914
|
-
case 3: throw _d.sent();
|
|
915
|
-
case 4: return [4, deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
916
|
-
case 5: throw _d.sent();
|
|
917
|
-
case 6: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
918
|
-
case 7: throw _d.sent();
|
|
919
|
-
case 8: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
920
|
-
case 9: throw _d.sent();
|
|
921
|
-
case 10:
|
|
922
|
-
parsedBody = parsedOutput.body;
|
|
923
|
-
throwDefaultError({
|
|
924
|
-
output: output,
|
|
925
|
-
parsedBody: parsedBody,
|
|
926
|
-
exceptionCtor: __BaseException,
|
|
927
|
-
errorCode: errorCode,
|
|
928
|
-
});
|
|
929
|
-
_d.label = 11;
|
|
930
|
-
case 11: return [2];
|
|
931
|
-
}
|
|
932
|
-
});
|
|
933
|
-
}); };
|
|
934
|
-
export var deserializeAws_json1_1UpdateEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
935
|
-
var data, contents, response;
|
|
936
|
-
return __generator(this, function (_a) {
|
|
937
|
-
switch (_a.label) {
|
|
938
|
-
case 0:
|
|
939
|
-
if (output.statusCode >= 300) {
|
|
940
|
-
return [2, deserializeAws_json1_1UpdateEnvironmentCommandError(output, context)];
|
|
941
|
-
}
|
|
942
|
-
return [4, parseBody(output.body, context)];
|
|
943
|
-
case 1:
|
|
944
|
-
data = _a.sent();
|
|
945
|
-
contents = {};
|
|
946
|
-
contents = deserializeAws_json1_1UpdateEnvironmentResult(data, context);
|
|
947
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
948
|
-
return [2, Promise.resolve(response)];
|
|
949
|
-
}
|
|
950
|
-
});
|
|
951
|
-
}); };
|
|
952
|
-
var deserializeAws_json1_1UpdateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
953
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
954
|
-
var _c;
|
|
955
|
-
return __generator(this, function (_d) {
|
|
956
|
-
switch (_d.label) {
|
|
957
|
-
case 0:
|
|
958
|
-
_a = [__assign({}, output)];
|
|
959
|
-
_c = {};
|
|
960
|
-
return [4, parseErrorBody(output.body, context)];
|
|
961
|
-
case 1:
|
|
962
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
963
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
-
_b = errorCode;
|
|
965
|
-
switch (_b) {
|
|
966
|
-
case "BadRequestException": return [3, 2];
|
|
967
|
-
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
968
|
-
case "ConflictException": return [3, 4];
|
|
969
|
-
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
970
|
-
case "ForbiddenException": return [3, 6];
|
|
971
|
-
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
972
|
-
case "InternalServerErrorException": return [3, 8];
|
|
973
|
-
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
974
|
-
case "LimitExceededException": return [3, 10];
|
|
975
|
-
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
976
|
-
case "NotFoundException": return [3, 12];
|
|
977
|
-
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
978
|
-
case "TooManyRequestsException": return [3, 14];
|
|
979
|
-
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
980
|
-
}
|
|
981
|
-
return [3, 16];
|
|
982
|
-
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
983
|
-
case 3: throw _d.sent();
|
|
984
|
-
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
985
|
-
case 5: throw _d.sent();
|
|
986
|
-
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
987
|
-
case 7: throw _d.sent();
|
|
988
|
-
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
989
|
-
case 9: throw _d.sent();
|
|
990
|
-
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
991
|
-
case 11: throw _d.sent();
|
|
992
|
-
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
993
|
-
case 13: throw _d.sent();
|
|
994
|
-
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
995
|
-
case 15: throw _d.sent();
|
|
996
|
-
case 16:
|
|
997
|
-
parsedBody = parsedOutput.body;
|
|
998
|
-
throwDefaultError({
|
|
999
|
-
output: output,
|
|
1000
|
-
parsedBody: parsedBody,
|
|
1001
|
-
exceptionCtor: __BaseException,
|
|
1002
|
-
errorCode: errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
_d.label = 17;
|
|
1005
|
-
case 17: return [2];
|
|
1006
|
-
}
|
|
1007
|
-
});
|
|
1008
|
-
}); };
|
|
1009
|
-
export var deserializeAws_json1_1UpdateEnvironmentMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1010
|
-
var data, contents, response;
|
|
1011
|
-
return __generator(this, function (_a) {
|
|
1012
|
-
switch (_a.label) {
|
|
1013
|
-
case 0:
|
|
1014
|
-
if (output.statusCode >= 300) {
|
|
1015
|
-
return [2, deserializeAws_json1_1UpdateEnvironmentMembershipCommandError(output, context)];
|
|
1016
|
-
}
|
|
1017
|
-
return [4, parseBody(output.body, context)];
|
|
1018
|
-
case 1:
|
|
1019
|
-
data = _a.sent();
|
|
1020
|
-
contents = {};
|
|
1021
|
-
contents = deserializeAws_json1_1UpdateEnvironmentMembershipResult(data, context);
|
|
1022
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1023
|
-
return [2, Promise.resolve(response)];
|
|
1024
|
-
}
|
|
1025
|
-
});
|
|
1026
|
-
}); };
|
|
1027
|
-
var deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1028
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1029
|
-
var _c;
|
|
1030
|
-
return __generator(this, function (_d) {
|
|
1031
|
-
switch (_d.label) {
|
|
1032
|
-
case 0:
|
|
1033
|
-
_a = [__assign({}, output)];
|
|
1034
|
-
_c = {};
|
|
1035
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1036
|
-
case 1:
|
|
1037
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1038
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
-
_b = errorCode;
|
|
1040
|
-
switch (_b) {
|
|
1041
|
-
case "BadRequestException": return [3, 2];
|
|
1042
|
-
case "com.amazonaws.cloud9#BadRequestException": return [3, 2];
|
|
1043
|
-
case "ConflictException": return [3, 4];
|
|
1044
|
-
case "com.amazonaws.cloud9#ConflictException": return [3, 4];
|
|
1045
|
-
case "ForbiddenException": return [3, 6];
|
|
1046
|
-
case "com.amazonaws.cloud9#ForbiddenException": return [3, 6];
|
|
1047
|
-
case "InternalServerErrorException": return [3, 8];
|
|
1048
|
-
case "com.amazonaws.cloud9#InternalServerErrorException": return [3, 8];
|
|
1049
|
-
case "LimitExceededException": return [3, 10];
|
|
1050
|
-
case "com.amazonaws.cloud9#LimitExceededException": return [3, 10];
|
|
1051
|
-
case "NotFoundException": return [3, 12];
|
|
1052
|
-
case "com.amazonaws.cloud9#NotFoundException": return [3, 12];
|
|
1053
|
-
case "TooManyRequestsException": return [3, 14];
|
|
1054
|
-
case "com.amazonaws.cloud9#TooManyRequestsException": return [3, 14];
|
|
1055
|
-
}
|
|
1056
|
-
return [3, 16];
|
|
1057
|
-
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1058
|
-
case 3: throw _d.sent();
|
|
1059
|
-
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1060
|
-
case 5: throw _d.sent();
|
|
1061
|
-
case 6: return [4, deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1062
|
-
case 7: throw _d.sent();
|
|
1063
|
-
case 8: return [4, deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1064
|
-
case 9: throw _d.sent();
|
|
1065
|
-
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1066
|
-
case 11: throw _d.sent();
|
|
1067
|
-
case 12: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1068
|
-
case 13: throw _d.sent();
|
|
1069
|
-
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1070
|
-
case 15: throw _d.sent();
|
|
1071
|
-
case 16:
|
|
1072
|
-
parsedBody = parsedOutput.body;
|
|
1073
|
-
throwDefaultError({
|
|
1074
|
-
output: output,
|
|
1075
|
-
parsedBody: parsedBody,
|
|
1076
|
-
exceptionCtor: __BaseException,
|
|
1077
|
-
errorCode: errorCode,
|
|
1078
|
-
});
|
|
1079
|
-
_d.label = 17;
|
|
1080
|
-
case 17: return [2];
|
|
1081
|
-
}
|
|
1082
|
-
});
|
|
1083
|
-
}); };
|
|
1084
|
-
var deserializeAws_json1_1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1085
|
-
var body, deserialized, exception;
|
|
1086
|
-
return __generator(this, function (_a) {
|
|
1087
|
-
body = parsedOutput.body;
|
|
1088
|
-
deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
1089
|
-
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1090
|
-
return [2, __decorateServiceException(exception, body)];
|
|
5
|
+
export const serializeAws_json1_1CreateEnvironmentEC2Command = async (input, context) => {
|
|
6
|
+
const headers = {
|
|
7
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentEC2",
|
|
9
|
+
};
|
|
10
|
+
let body;
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentEC2Request(input, context));
|
|
12
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
+
};
|
|
14
|
+
export const serializeAws_json1_1CreateEnvironmentMembershipCommand = async (input, context) => {
|
|
15
|
+
const headers = {
|
|
16
|
+
"content-type": "application/x-amz-json-1.1",
|
|
17
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentMembership",
|
|
18
|
+
};
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentMembershipRequest(input, context));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_json1_1DeleteEnvironmentCommand = async (input, context) => {
|
|
24
|
+
const headers = {
|
|
25
|
+
"content-type": "application/x-amz-json-1.1",
|
|
26
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironment",
|
|
27
|
+
};
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentRequest(input, context));
|
|
30
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
+
};
|
|
32
|
+
export const serializeAws_json1_1DeleteEnvironmentMembershipCommand = async (input, context) => {
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/x-amz-json-1.1",
|
|
35
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironmentMembership",
|
|
36
|
+
};
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentMembershipRequest(input, context));
|
|
39
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
|
+
};
|
|
41
|
+
export const serializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (input, context) => {
|
|
42
|
+
const headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentMemberships",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentMembershipsRequest(input, context));
|
|
48
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
+
};
|
|
50
|
+
export const serializeAws_json1_1DescribeEnvironmentsCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.1",
|
|
53
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironments",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentsRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_json1_1DescribeEnvironmentStatusCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentStatus",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentStatusRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_json1_1ListEnvironmentsCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListEnvironments",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1ListEnvironmentsRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.1",
|
|
80
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListTagsForResource",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.TagResource",
|
|
90
|
+
};
|
|
91
|
+
let body;
|
|
92
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
93
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
+
};
|
|
95
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/x-amz-json-1.1",
|
|
98
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.UntagResource",
|
|
99
|
+
};
|
|
100
|
+
let body;
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
102
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
+
};
|
|
104
|
+
export const serializeAws_json1_1UpdateEnvironmentCommand = async (input, context) => {
|
|
105
|
+
const headers = {
|
|
106
|
+
"content-type": "application/x-amz-json-1.1",
|
|
107
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironment",
|
|
108
|
+
};
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentRequest(input, context));
|
|
111
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
+
};
|
|
113
|
+
export const serializeAws_json1_1UpdateEnvironmentMembershipCommand = async (input, context) => {
|
|
114
|
+
const headers = {
|
|
115
|
+
"content-type": "application/x-amz-json-1.1",
|
|
116
|
+
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership",
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentMembershipRequest(input, context));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
export const deserializeAws_json1_1CreateEnvironmentEC2Command = async (output, context) => {
|
|
123
|
+
if (output.statusCode >= 300) {
|
|
124
|
+
return deserializeAws_json1_1CreateEnvironmentEC2CommandError(output, context);
|
|
125
|
+
}
|
|
126
|
+
const data = await parseBody(output.body, context);
|
|
127
|
+
let contents = {};
|
|
128
|
+
contents = deserializeAws_json1_1CreateEnvironmentEC2Result(data, context);
|
|
129
|
+
const response = {
|
|
130
|
+
$metadata: deserializeMetadata(output),
|
|
131
|
+
...contents,
|
|
132
|
+
};
|
|
133
|
+
return Promise.resolve(response);
|
|
134
|
+
};
|
|
135
|
+
const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (output, context) => {
|
|
136
|
+
const parsedOutput = {
|
|
137
|
+
...output,
|
|
138
|
+
body: await parseErrorBody(output.body, context),
|
|
139
|
+
};
|
|
140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
141
|
+
switch (errorCode) {
|
|
142
|
+
case "BadRequestException":
|
|
143
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
144
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
145
|
+
case "ConflictException":
|
|
146
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
147
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
148
|
+
case "ForbiddenException":
|
|
149
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
150
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
151
|
+
case "InternalServerErrorException":
|
|
152
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
153
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
154
|
+
case "LimitExceededException":
|
|
155
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
156
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
157
|
+
case "NotFoundException":
|
|
158
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
159
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
160
|
+
case "TooManyRequestsException":
|
|
161
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
162
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
163
|
+
default:
|
|
164
|
+
const parsedBody = parsedOutput.body;
|
|
165
|
+
throwDefaultError({
|
|
166
|
+
output,
|
|
167
|
+
parsedBody,
|
|
168
|
+
exceptionCtor: __BaseException,
|
|
169
|
+
errorCode,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
export const deserializeAws_json1_1CreateEnvironmentMembershipCommand = async (output, context) => {
|
|
174
|
+
if (output.statusCode >= 300) {
|
|
175
|
+
return deserializeAws_json1_1CreateEnvironmentMembershipCommandError(output, context);
|
|
176
|
+
}
|
|
177
|
+
const data = await parseBody(output.body, context);
|
|
178
|
+
let contents = {};
|
|
179
|
+
contents = deserializeAws_json1_1CreateEnvironmentMembershipResult(data, context);
|
|
180
|
+
const response = {
|
|
181
|
+
$metadata: deserializeMetadata(output),
|
|
182
|
+
...contents,
|
|
183
|
+
};
|
|
184
|
+
return Promise.resolve(response);
|
|
185
|
+
};
|
|
186
|
+
const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (output, context) => {
|
|
187
|
+
const parsedOutput = {
|
|
188
|
+
...output,
|
|
189
|
+
body: await parseErrorBody(output.body, context),
|
|
190
|
+
};
|
|
191
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
+
switch (errorCode) {
|
|
193
|
+
case "BadRequestException":
|
|
194
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
195
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
196
|
+
case "ConflictException":
|
|
197
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
198
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
199
|
+
case "ForbiddenException":
|
|
200
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
201
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
202
|
+
case "InternalServerErrorException":
|
|
203
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
204
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
205
|
+
case "LimitExceededException":
|
|
206
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
207
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
208
|
+
case "NotFoundException":
|
|
209
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
210
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
211
|
+
case "TooManyRequestsException":
|
|
212
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
213
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
214
|
+
default:
|
|
215
|
+
const parsedBody = parsedOutput.body;
|
|
216
|
+
throwDefaultError({
|
|
217
|
+
output,
|
|
218
|
+
parsedBody,
|
|
219
|
+
exceptionCtor: __BaseException,
|
|
220
|
+
errorCode,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
export const deserializeAws_json1_1DeleteEnvironmentCommand = async (output, context) => {
|
|
225
|
+
if (output.statusCode >= 300) {
|
|
226
|
+
return deserializeAws_json1_1DeleteEnvironmentCommandError(output, context);
|
|
227
|
+
}
|
|
228
|
+
const data = await parseBody(output.body, context);
|
|
229
|
+
let contents = {};
|
|
230
|
+
contents = deserializeAws_json1_1DeleteEnvironmentResult(data, context);
|
|
231
|
+
const response = {
|
|
232
|
+
$metadata: deserializeMetadata(output),
|
|
233
|
+
...contents,
|
|
234
|
+
};
|
|
235
|
+
return Promise.resolve(response);
|
|
236
|
+
};
|
|
237
|
+
const deserializeAws_json1_1DeleteEnvironmentCommandError = async (output, context) => {
|
|
238
|
+
const parsedOutput = {
|
|
239
|
+
...output,
|
|
240
|
+
body: await parseErrorBody(output.body, context),
|
|
241
|
+
};
|
|
242
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
243
|
+
switch (errorCode) {
|
|
244
|
+
case "BadRequestException":
|
|
245
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
246
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
247
|
+
case "ConflictException":
|
|
248
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
249
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
250
|
+
case "ForbiddenException":
|
|
251
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
252
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
253
|
+
case "InternalServerErrorException":
|
|
254
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
255
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
256
|
+
case "LimitExceededException":
|
|
257
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
258
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
259
|
+
case "NotFoundException":
|
|
260
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
261
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
262
|
+
case "TooManyRequestsException":
|
|
263
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
264
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
265
|
+
default:
|
|
266
|
+
const parsedBody = parsedOutput.body;
|
|
267
|
+
throwDefaultError({
|
|
268
|
+
output,
|
|
269
|
+
parsedBody,
|
|
270
|
+
exceptionCtor: __BaseException,
|
|
271
|
+
errorCode,
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
export const deserializeAws_json1_1DeleteEnvironmentMembershipCommand = async (output, context) => {
|
|
276
|
+
if (output.statusCode >= 300) {
|
|
277
|
+
return deserializeAws_json1_1DeleteEnvironmentMembershipCommandError(output, context);
|
|
278
|
+
}
|
|
279
|
+
const data = await parseBody(output.body, context);
|
|
280
|
+
let contents = {};
|
|
281
|
+
contents = deserializeAws_json1_1DeleteEnvironmentMembershipResult(data, context);
|
|
282
|
+
const response = {
|
|
283
|
+
$metadata: deserializeMetadata(output),
|
|
284
|
+
...contents,
|
|
285
|
+
};
|
|
286
|
+
return Promise.resolve(response);
|
|
287
|
+
};
|
|
288
|
+
const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (output, context) => {
|
|
289
|
+
const parsedOutput = {
|
|
290
|
+
...output,
|
|
291
|
+
body: await parseErrorBody(output.body, context),
|
|
292
|
+
};
|
|
293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
|
+
switch (errorCode) {
|
|
295
|
+
case "BadRequestException":
|
|
296
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
297
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
298
|
+
case "ConflictException":
|
|
299
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
300
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
301
|
+
case "ForbiddenException":
|
|
302
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
303
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
304
|
+
case "InternalServerErrorException":
|
|
305
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
306
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
307
|
+
case "LimitExceededException":
|
|
308
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
309
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
310
|
+
case "NotFoundException":
|
|
311
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
312
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
313
|
+
case "TooManyRequestsException":
|
|
314
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
315
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
316
|
+
default:
|
|
317
|
+
const parsedBody = parsedOutput.body;
|
|
318
|
+
throwDefaultError({
|
|
319
|
+
output,
|
|
320
|
+
parsedBody,
|
|
321
|
+
exceptionCtor: __BaseException,
|
|
322
|
+
errorCode,
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
export const deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (output, context) => {
|
|
327
|
+
if (output.statusCode >= 300) {
|
|
328
|
+
return deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError(output, context);
|
|
329
|
+
}
|
|
330
|
+
const data = await parseBody(output.body, context);
|
|
331
|
+
let contents = {};
|
|
332
|
+
contents = deserializeAws_json1_1DescribeEnvironmentMembershipsResult(data, context);
|
|
333
|
+
const response = {
|
|
334
|
+
$metadata: deserializeMetadata(output),
|
|
335
|
+
...contents,
|
|
336
|
+
};
|
|
337
|
+
return Promise.resolve(response);
|
|
338
|
+
};
|
|
339
|
+
const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (output, context) => {
|
|
340
|
+
const parsedOutput = {
|
|
341
|
+
...output,
|
|
342
|
+
body: await parseErrorBody(output.body, context),
|
|
343
|
+
};
|
|
344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
345
|
+
switch (errorCode) {
|
|
346
|
+
case "BadRequestException":
|
|
347
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
348
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
349
|
+
case "ConflictException":
|
|
350
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
351
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
352
|
+
case "ForbiddenException":
|
|
353
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
354
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
355
|
+
case "InternalServerErrorException":
|
|
356
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
357
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
358
|
+
case "LimitExceededException":
|
|
359
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
360
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
361
|
+
case "NotFoundException":
|
|
362
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
363
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
364
|
+
case "TooManyRequestsException":
|
|
365
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
366
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
367
|
+
default:
|
|
368
|
+
const parsedBody = parsedOutput.body;
|
|
369
|
+
throwDefaultError({
|
|
370
|
+
output,
|
|
371
|
+
parsedBody,
|
|
372
|
+
exceptionCtor: __BaseException,
|
|
373
|
+
errorCode,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
export const deserializeAws_json1_1DescribeEnvironmentsCommand = async (output, context) => {
|
|
378
|
+
if (output.statusCode >= 300) {
|
|
379
|
+
return deserializeAws_json1_1DescribeEnvironmentsCommandError(output, context);
|
|
380
|
+
}
|
|
381
|
+
const data = await parseBody(output.body, context);
|
|
382
|
+
let contents = {};
|
|
383
|
+
contents = deserializeAws_json1_1DescribeEnvironmentsResult(data, context);
|
|
384
|
+
const response = {
|
|
385
|
+
$metadata: deserializeMetadata(output),
|
|
386
|
+
...contents,
|
|
387
|
+
};
|
|
388
|
+
return Promise.resolve(response);
|
|
389
|
+
};
|
|
390
|
+
const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (output, context) => {
|
|
391
|
+
const parsedOutput = {
|
|
392
|
+
...output,
|
|
393
|
+
body: await parseErrorBody(output.body, context),
|
|
394
|
+
};
|
|
395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
|
+
switch (errorCode) {
|
|
397
|
+
case "BadRequestException":
|
|
398
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
399
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
400
|
+
case "ConflictException":
|
|
401
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
402
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
403
|
+
case "ForbiddenException":
|
|
404
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
405
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
406
|
+
case "InternalServerErrorException":
|
|
407
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
408
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
409
|
+
case "LimitExceededException":
|
|
410
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
411
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
412
|
+
case "NotFoundException":
|
|
413
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
414
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
415
|
+
case "TooManyRequestsException":
|
|
416
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
417
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
418
|
+
default:
|
|
419
|
+
const parsedBody = parsedOutput.body;
|
|
420
|
+
throwDefaultError({
|
|
421
|
+
output,
|
|
422
|
+
parsedBody,
|
|
423
|
+
exceptionCtor: __BaseException,
|
|
424
|
+
errorCode,
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
export const deserializeAws_json1_1DescribeEnvironmentStatusCommand = async (output, context) => {
|
|
429
|
+
if (output.statusCode >= 300) {
|
|
430
|
+
return deserializeAws_json1_1DescribeEnvironmentStatusCommandError(output, context);
|
|
431
|
+
}
|
|
432
|
+
const data = await parseBody(output.body, context);
|
|
433
|
+
let contents = {};
|
|
434
|
+
contents = deserializeAws_json1_1DescribeEnvironmentStatusResult(data, context);
|
|
435
|
+
const response = {
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
...contents,
|
|
438
|
+
};
|
|
439
|
+
return Promise.resolve(response);
|
|
440
|
+
};
|
|
441
|
+
const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (output, context) => {
|
|
442
|
+
const parsedOutput = {
|
|
443
|
+
...output,
|
|
444
|
+
body: await parseErrorBody(output.body, context),
|
|
445
|
+
};
|
|
446
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
|
+
switch (errorCode) {
|
|
448
|
+
case "BadRequestException":
|
|
449
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
450
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
451
|
+
case "ConflictException":
|
|
452
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
453
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
454
|
+
case "ForbiddenException":
|
|
455
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
456
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
457
|
+
case "InternalServerErrorException":
|
|
458
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
459
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
460
|
+
case "LimitExceededException":
|
|
461
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
462
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
463
|
+
case "NotFoundException":
|
|
464
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
465
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
466
|
+
case "TooManyRequestsException":
|
|
467
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
468
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
469
|
+
default:
|
|
470
|
+
const parsedBody = parsedOutput.body;
|
|
471
|
+
throwDefaultError({
|
|
472
|
+
output,
|
|
473
|
+
parsedBody,
|
|
474
|
+
exceptionCtor: __BaseException,
|
|
475
|
+
errorCode,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
export const deserializeAws_json1_1ListEnvironmentsCommand = async (output, context) => {
|
|
480
|
+
if (output.statusCode >= 300) {
|
|
481
|
+
return deserializeAws_json1_1ListEnvironmentsCommandError(output, context);
|
|
482
|
+
}
|
|
483
|
+
const data = await parseBody(output.body, context);
|
|
484
|
+
let contents = {};
|
|
485
|
+
contents = deserializeAws_json1_1ListEnvironmentsResult(data, context);
|
|
486
|
+
const response = {
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
...contents,
|
|
489
|
+
};
|
|
490
|
+
return Promise.resolve(response);
|
|
491
|
+
};
|
|
492
|
+
const deserializeAws_json1_1ListEnvironmentsCommandError = async (output, context) => {
|
|
493
|
+
const parsedOutput = {
|
|
494
|
+
...output,
|
|
495
|
+
body: await parseErrorBody(output.body, context),
|
|
496
|
+
};
|
|
497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
+
switch (errorCode) {
|
|
499
|
+
case "BadRequestException":
|
|
500
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
501
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
502
|
+
case "ConflictException":
|
|
503
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
504
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
505
|
+
case "ForbiddenException":
|
|
506
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
507
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
508
|
+
case "InternalServerErrorException":
|
|
509
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
510
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
511
|
+
case "LimitExceededException":
|
|
512
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
513
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
514
|
+
case "NotFoundException":
|
|
515
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
516
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
517
|
+
case "TooManyRequestsException":
|
|
518
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
519
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
520
|
+
default:
|
|
521
|
+
const parsedBody = parsedOutput.body;
|
|
522
|
+
throwDefaultError({
|
|
523
|
+
output,
|
|
524
|
+
parsedBody,
|
|
525
|
+
exceptionCtor: __BaseException,
|
|
526
|
+
errorCode,
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
531
|
+
if (output.statusCode >= 300) {
|
|
532
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
533
|
+
}
|
|
534
|
+
const data = await parseBody(output.body, context);
|
|
535
|
+
let contents = {};
|
|
536
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
537
|
+
const response = {
|
|
538
|
+
$metadata: deserializeMetadata(output),
|
|
539
|
+
...contents,
|
|
540
|
+
};
|
|
541
|
+
return Promise.resolve(response);
|
|
542
|
+
};
|
|
543
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
544
|
+
const parsedOutput = {
|
|
545
|
+
...output,
|
|
546
|
+
body: await parseErrorBody(output.body, context),
|
|
547
|
+
};
|
|
548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
|
+
switch (errorCode) {
|
|
550
|
+
case "BadRequestException":
|
|
551
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
552
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
553
|
+
case "InternalServerErrorException":
|
|
554
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
555
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
556
|
+
case "NotFoundException":
|
|
557
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
558
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
559
|
+
default:
|
|
560
|
+
const parsedBody = parsedOutput.body;
|
|
561
|
+
throwDefaultError({
|
|
562
|
+
output,
|
|
563
|
+
parsedBody,
|
|
564
|
+
exceptionCtor: __BaseException,
|
|
565
|
+
errorCode,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
570
|
+
if (output.statusCode >= 300) {
|
|
571
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
572
|
+
}
|
|
573
|
+
const data = await parseBody(output.body, context);
|
|
574
|
+
let contents = {};
|
|
575
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
576
|
+
const response = {
|
|
577
|
+
$metadata: deserializeMetadata(output),
|
|
578
|
+
...contents,
|
|
579
|
+
};
|
|
580
|
+
return Promise.resolve(response);
|
|
581
|
+
};
|
|
582
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
583
|
+
const parsedOutput = {
|
|
584
|
+
...output,
|
|
585
|
+
body: await parseErrorBody(output.body, context),
|
|
586
|
+
};
|
|
587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
+
switch (errorCode) {
|
|
589
|
+
case "BadRequestException":
|
|
590
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
591
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
592
|
+
case "ConcurrentAccessException":
|
|
593
|
+
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
594
|
+
throw await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context);
|
|
595
|
+
case "InternalServerErrorException":
|
|
596
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
597
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
598
|
+
case "NotFoundException":
|
|
599
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
600
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
601
|
+
default:
|
|
602
|
+
const parsedBody = parsedOutput.body;
|
|
603
|
+
throwDefaultError({
|
|
604
|
+
output,
|
|
605
|
+
parsedBody,
|
|
606
|
+
exceptionCtor: __BaseException,
|
|
607
|
+
errorCode,
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
612
|
+
if (output.statusCode >= 300) {
|
|
613
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
614
|
+
}
|
|
615
|
+
const data = await parseBody(output.body, context);
|
|
616
|
+
let contents = {};
|
|
617
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
618
|
+
const response = {
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
...contents,
|
|
621
|
+
};
|
|
622
|
+
return Promise.resolve(response);
|
|
623
|
+
};
|
|
624
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
625
|
+
const parsedOutput = {
|
|
626
|
+
...output,
|
|
627
|
+
body: await parseErrorBody(output.body, context),
|
|
628
|
+
};
|
|
629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
+
switch (errorCode) {
|
|
631
|
+
case "BadRequestException":
|
|
632
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
633
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
634
|
+
case "ConcurrentAccessException":
|
|
635
|
+
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
636
|
+
throw await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context);
|
|
637
|
+
case "InternalServerErrorException":
|
|
638
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
639
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
640
|
+
case "NotFoundException":
|
|
641
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
642
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
643
|
+
default:
|
|
644
|
+
const parsedBody = parsedOutput.body;
|
|
645
|
+
throwDefaultError({
|
|
646
|
+
output,
|
|
647
|
+
parsedBody,
|
|
648
|
+
exceptionCtor: __BaseException,
|
|
649
|
+
errorCode,
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
export const deserializeAws_json1_1UpdateEnvironmentCommand = async (output, context) => {
|
|
654
|
+
if (output.statusCode >= 300) {
|
|
655
|
+
return deserializeAws_json1_1UpdateEnvironmentCommandError(output, context);
|
|
656
|
+
}
|
|
657
|
+
const data = await parseBody(output.body, context);
|
|
658
|
+
let contents = {};
|
|
659
|
+
contents = deserializeAws_json1_1UpdateEnvironmentResult(data, context);
|
|
660
|
+
const response = {
|
|
661
|
+
$metadata: deserializeMetadata(output),
|
|
662
|
+
...contents,
|
|
663
|
+
};
|
|
664
|
+
return Promise.resolve(response);
|
|
665
|
+
};
|
|
666
|
+
const deserializeAws_json1_1UpdateEnvironmentCommandError = async (output, context) => {
|
|
667
|
+
const parsedOutput = {
|
|
668
|
+
...output,
|
|
669
|
+
body: await parseErrorBody(output.body, context),
|
|
670
|
+
};
|
|
671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
+
switch (errorCode) {
|
|
673
|
+
case "BadRequestException":
|
|
674
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
675
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
676
|
+
case "ConflictException":
|
|
677
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
678
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
679
|
+
case "ForbiddenException":
|
|
680
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
681
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
682
|
+
case "InternalServerErrorException":
|
|
683
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
684
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
685
|
+
case "LimitExceededException":
|
|
686
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
687
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
688
|
+
case "NotFoundException":
|
|
689
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
690
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
691
|
+
case "TooManyRequestsException":
|
|
692
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
693
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
694
|
+
default:
|
|
695
|
+
const parsedBody = parsedOutput.body;
|
|
696
|
+
throwDefaultError({
|
|
697
|
+
output,
|
|
698
|
+
parsedBody,
|
|
699
|
+
exceptionCtor: __BaseException,
|
|
700
|
+
errorCode,
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
export const deserializeAws_json1_1UpdateEnvironmentMembershipCommand = async (output, context) => {
|
|
705
|
+
if (output.statusCode >= 300) {
|
|
706
|
+
return deserializeAws_json1_1UpdateEnvironmentMembershipCommandError(output, context);
|
|
707
|
+
}
|
|
708
|
+
const data = await parseBody(output.body, context);
|
|
709
|
+
let contents = {};
|
|
710
|
+
contents = deserializeAws_json1_1UpdateEnvironmentMembershipResult(data, context);
|
|
711
|
+
const response = {
|
|
712
|
+
$metadata: deserializeMetadata(output),
|
|
713
|
+
...contents,
|
|
714
|
+
};
|
|
715
|
+
return Promise.resolve(response);
|
|
716
|
+
};
|
|
717
|
+
const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (output, context) => {
|
|
718
|
+
const parsedOutput = {
|
|
719
|
+
...output,
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
|
+
};
|
|
722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
+
switch (errorCode) {
|
|
724
|
+
case "BadRequestException":
|
|
725
|
+
case "com.amazonaws.cloud9#BadRequestException":
|
|
726
|
+
throw await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context);
|
|
727
|
+
case "ConflictException":
|
|
728
|
+
case "com.amazonaws.cloud9#ConflictException":
|
|
729
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
730
|
+
case "ForbiddenException":
|
|
731
|
+
case "com.amazonaws.cloud9#ForbiddenException":
|
|
732
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
733
|
+
case "InternalServerErrorException":
|
|
734
|
+
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
735
|
+
throw await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
736
|
+
case "LimitExceededException":
|
|
737
|
+
case "com.amazonaws.cloud9#LimitExceededException":
|
|
738
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
739
|
+
case "NotFoundException":
|
|
740
|
+
case "com.amazonaws.cloud9#NotFoundException":
|
|
741
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
742
|
+
case "TooManyRequestsException":
|
|
743
|
+
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
744
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
745
|
+
default:
|
|
746
|
+
const parsedBody = parsedOutput.body;
|
|
747
|
+
throwDefaultError({
|
|
748
|
+
output,
|
|
749
|
+
parsedBody,
|
|
750
|
+
exceptionCtor: __BaseException,
|
|
751
|
+
errorCode,
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
const deserializeAws_json1_1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
756
|
+
const body = parsedOutput.body;
|
|
757
|
+
const deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
758
|
+
const exception = new BadRequestException({
|
|
759
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
760
|
+
...deserialized,
|
|
1091
761
|
});
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
762
|
+
return __decorateServiceException(exception, body);
|
|
763
|
+
};
|
|
764
|
+
const deserializeAws_json1_1ConcurrentAccessExceptionResponse = async (parsedOutput, context) => {
|
|
765
|
+
const body = parsedOutput.body;
|
|
766
|
+
const deserialized = deserializeAws_json1_1ConcurrentAccessException(body, context);
|
|
767
|
+
const exception = new ConcurrentAccessException({
|
|
768
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
769
|
+
...deserialized,
|
|
1100
770
|
});
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
771
|
+
return __decorateServiceException(exception, body);
|
|
772
|
+
};
|
|
773
|
+
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
774
|
+
const body = parsedOutput.body;
|
|
775
|
+
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
776
|
+
const exception = new ConflictException({
|
|
777
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
778
|
+
...deserialized,
|
|
1109
779
|
});
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
780
|
+
return __decorateServiceException(exception, body);
|
|
781
|
+
};
|
|
782
|
+
const deserializeAws_json1_1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
783
|
+
const body = parsedOutput.body;
|
|
784
|
+
const deserialized = deserializeAws_json1_1ForbiddenException(body, context);
|
|
785
|
+
const exception = new ForbiddenException({
|
|
786
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
787
|
+
...deserialized,
|
|
1118
788
|
});
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
789
|
+
return __decorateServiceException(exception, body);
|
|
790
|
+
};
|
|
791
|
+
const deserializeAws_json1_1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
792
|
+
const body = parsedOutput.body;
|
|
793
|
+
const deserialized = deserializeAws_json1_1InternalServerErrorException(body, context);
|
|
794
|
+
const exception = new InternalServerErrorException({
|
|
795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
796
|
+
...deserialized,
|
|
1127
797
|
});
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
798
|
+
return __decorateServiceException(exception, body);
|
|
799
|
+
};
|
|
800
|
+
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
801
|
+
const body = parsedOutput.body;
|
|
802
|
+
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
803
|
+
const exception = new LimitExceededException({
|
|
804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
805
|
+
...deserialized,
|
|
1136
806
|
});
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
807
|
+
return __decorateServiceException(exception, body);
|
|
808
|
+
};
|
|
809
|
+
const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
810
|
+
const body = parsedOutput.body;
|
|
811
|
+
const deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
812
|
+
const exception = new NotFoundException({
|
|
813
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
814
|
+
...deserialized,
|
|
1145
815
|
});
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
816
|
+
return __decorateServiceException(exception, body);
|
|
817
|
+
};
|
|
818
|
+
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
819
|
+
const body = parsedOutput.body;
|
|
820
|
+
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
821
|
+
const exception = new TooManyRequestsException({
|
|
822
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
823
|
+
...deserialized,
|
|
1154
824
|
});
|
|
1155
|
-
|
|
1156
|
-
|
|
825
|
+
return __decorateServiceException(exception, body);
|
|
826
|
+
};
|
|
827
|
+
const serializeAws_json1_1BoundedEnvironmentIdList = (input, context) => {
|
|
1157
828
|
return input
|
|
1158
|
-
.filter(
|
|
1159
|
-
.map(
|
|
829
|
+
.filter((e) => e != null)
|
|
830
|
+
.map((entry) => {
|
|
1160
831
|
return entry;
|
|
1161
832
|
});
|
|
1162
833
|
};
|
|
1163
|
-
|
|
1164
|
-
return
|
|
834
|
+
const serializeAws_json1_1CreateEnvironmentEC2Request = (input, context) => {
|
|
835
|
+
return {
|
|
836
|
+
...(input.automaticStopTimeMinutes != null && { automaticStopTimeMinutes: input.automaticStopTimeMinutes }),
|
|
837
|
+
...(input.clientRequestToken != null && { clientRequestToken: input.clientRequestToken }),
|
|
838
|
+
...(input.connectionType != null && { connectionType: input.connectionType }),
|
|
839
|
+
...(input.description != null && { description: input.description }),
|
|
840
|
+
...(input.dryRun != null && { dryRun: input.dryRun }),
|
|
841
|
+
...(input.imageId != null && { imageId: input.imageId }),
|
|
842
|
+
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
843
|
+
...(input.name != null && { name: input.name }),
|
|
844
|
+
...(input.ownerArn != null && { ownerArn: input.ownerArn }),
|
|
845
|
+
...(input.subnetId != null && { subnetId: input.subnetId }),
|
|
846
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
847
|
+
};
|
|
1165
848
|
};
|
|
1166
|
-
|
|
1167
|
-
return
|
|
849
|
+
const serializeAws_json1_1CreateEnvironmentMembershipRequest = (input, context) => {
|
|
850
|
+
return {
|
|
851
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
852
|
+
...(input.permissions != null && { permissions: input.permissions }),
|
|
853
|
+
...(input.userArn != null && { userArn: input.userArn }),
|
|
854
|
+
};
|
|
1168
855
|
};
|
|
1169
|
-
|
|
1170
|
-
return
|
|
856
|
+
const serializeAws_json1_1DeleteEnvironmentMembershipRequest = (input, context) => {
|
|
857
|
+
return {
|
|
858
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
859
|
+
...(input.userArn != null && { userArn: input.userArn }),
|
|
860
|
+
};
|
|
1171
861
|
};
|
|
1172
|
-
|
|
1173
|
-
return
|
|
862
|
+
const serializeAws_json1_1DeleteEnvironmentRequest = (input, context) => {
|
|
863
|
+
return {
|
|
864
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
865
|
+
};
|
|
1174
866
|
};
|
|
1175
|
-
|
|
1176
|
-
return
|
|
867
|
+
const serializeAws_json1_1DescribeEnvironmentMembershipsRequest = (input, context) => {
|
|
868
|
+
return {
|
|
869
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
870
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
871
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
872
|
+
...(input.permissions != null && { permissions: serializeAws_json1_1PermissionsList(input.permissions, context) }),
|
|
873
|
+
...(input.userArn != null && { userArn: input.userArn }),
|
|
874
|
+
};
|
|
1177
875
|
};
|
|
1178
|
-
|
|
1179
|
-
return
|
|
1180
|
-
|
|
1181
|
-
|
|
876
|
+
const serializeAws_json1_1DescribeEnvironmentsRequest = (input, context) => {
|
|
877
|
+
return {
|
|
878
|
+
...(input.environmentIds != null && {
|
|
879
|
+
environmentIds: serializeAws_json1_1BoundedEnvironmentIdList(input.environmentIds, context),
|
|
880
|
+
}),
|
|
881
|
+
};
|
|
1182
882
|
};
|
|
1183
|
-
|
|
1184
|
-
return
|
|
883
|
+
const serializeAws_json1_1DescribeEnvironmentStatusRequest = (input, context) => {
|
|
884
|
+
return {
|
|
885
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
886
|
+
};
|
|
1185
887
|
};
|
|
1186
|
-
|
|
1187
|
-
return
|
|
888
|
+
const serializeAws_json1_1ListEnvironmentsRequest = (input, context) => {
|
|
889
|
+
return {
|
|
890
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
891
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
892
|
+
};
|
|
1188
893
|
};
|
|
1189
|
-
|
|
1190
|
-
return
|
|
894
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
895
|
+
return {
|
|
896
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
897
|
+
};
|
|
1191
898
|
};
|
|
1192
|
-
|
|
899
|
+
const serializeAws_json1_1PermissionsList = (input, context) => {
|
|
1193
900
|
return input
|
|
1194
|
-
.filter(
|
|
1195
|
-
.map(
|
|
901
|
+
.filter((e) => e != null)
|
|
902
|
+
.map((entry) => {
|
|
1196
903
|
return entry;
|
|
1197
904
|
});
|
|
1198
905
|
};
|
|
1199
|
-
|
|
1200
|
-
return
|
|
906
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
907
|
+
return {
|
|
908
|
+
...(input.Key != null && { Key: input.Key }),
|
|
909
|
+
...(input.Value != null && { Value: input.Value }),
|
|
910
|
+
};
|
|
1201
911
|
};
|
|
1202
|
-
|
|
912
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
1203
913
|
return input
|
|
1204
|
-
.filter(
|
|
1205
|
-
.map(
|
|
914
|
+
.filter((e) => e != null)
|
|
915
|
+
.map((entry) => {
|
|
1206
916
|
return entry;
|
|
1207
917
|
});
|
|
1208
918
|
};
|
|
1209
|
-
|
|
919
|
+
const serializeAws_json1_1TagList = (input, context) => {
|
|
1210
920
|
return input
|
|
1211
|
-
.filter(
|
|
1212
|
-
.map(
|
|
921
|
+
.filter((e) => e != null)
|
|
922
|
+
.map((entry) => {
|
|
1213
923
|
return serializeAws_json1_1Tag(entry, context);
|
|
1214
924
|
});
|
|
1215
925
|
};
|
|
1216
|
-
|
|
1217
|
-
return
|
|
926
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
927
|
+
return {
|
|
928
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
929
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
930
|
+
};
|
|
1218
931
|
};
|
|
1219
|
-
|
|
1220
|
-
return
|
|
932
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
933
|
+
return {
|
|
934
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
935
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
936
|
+
};
|
|
1221
937
|
};
|
|
1222
|
-
|
|
1223
|
-
return
|
|
938
|
+
const serializeAws_json1_1UpdateEnvironmentMembershipRequest = (input, context) => {
|
|
939
|
+
return {
|
|
940
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
941
|
+
...(input.permissions != null && { permissions: input.permissions }),
|
|
942
|
+
...(input.userArn != null && { userArn: input.userArn }),
|
|
943
|
+
};
|
|
1224
944
|
};
|
|
1225
|
-
|
|
1226
|
-
return
|
|
945
|
+
const serializeAws_json1_1UpdateEnvironmentRequest = (input, context) => {
|
|
946
|
+
return {
|
|
947
|
+
...(input.description != null && { description: input.description }),
|
|
948
|
+
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
949
|
+
...(input.managedCredentialsAction != null && { managedCredentialsAction: input.managedCredentialsAction }),
|
|
950
|
+
...(input.name != null && { name: input.name }),
|
|
951
|
+
};
|
|
1227
952
|
};
|
|
1228
|
-
|
|
953
|
+
const deserializeAws_json1_1BadRequestException = (output, context) => {
|
|
1229
954
|
return {
|
|
1230
955
|
className: __expectString(output.className),
|
|
1231
956
|
code: __expectInt32(output.code),
|
|
1232
957
|
message: __expectString(output.message),
|
|
1233
958
|
};
|
|
1234
959
|
};
|
|
1235
|
-
|
|
960
|
+
const deserializeAws_json1_1ConcurrentAccessException = (output, context) => {
|
|
1236
961
|
return {
|
|
1237
962
|
className: __expectString(output.className),
|
|
1238
963
|
code: __expectInt32(output.code),
|
|
1239
964
|
message: __expectString(output.message),
|
|
1240
965
|
};
|
|
1241
966
|
};
|
|
1242
|
-
|
|
967
|
+
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
1243
968
|
return {
|
|
1244
969
|
className: __expectString(output.className),
|
|
1245
970
|
code: __expectInt32(output.code),
|
|
1246
971
|
message: __expectString(output.message),
|
|
1247
972
|
};
|
|
1248
973
|
};
|
|
1249
|
-
|
|
974
|
+
const deserializeAws_json1_1CreateEnvironmentEC2Result = (output, context) => {
|
|
1250
975
|
return {
|
|
1251
976
|
environmentId: __expectString(output.environmentId),
|
|
1252
977
|
};
|
|
1253
978
|
};
|
|
1254
|
-
|
|
979
|
+
const deserializeAws_json1_1CreateEnvironmentMembershipResult = (output, context) => {
|
|
1255
980
|
return {
|
|
1256
981
|
membership: output.membership != null ? deserializeAws_json1_1EnvironmentMember(output.membership, context) : undefined,
|
|
1257
982
|
};
|
|
1258
983
|
};
|
|
1259
|
-
|
|
984
|
+
const deserializeAws_json1_1DeleteEnvironmentMembershipResult = (output, context) => {
|
|
1260
985
|
return {};
|
|
1261
986
|
};
|
|
1262
|
-
|
|
987
|
+
const deserializeAws_json1_1DeleteEnvironmentResult = (output, context) => {
|
|
1263
988
|
return {};
|
|
1264
989
|
};
|
|
1265
|
-
|
|
990
|
+
const deserializeAws_json1_1DescribeEnvironmentMembershipsResult = (output, context) => {
|
|
1266
991
|
return {
|
|
1267
992
|
memberships: output.memberships != null
|
|
1268
993
|
? deserializeAws_json1_1EnvironmentMembersList(output.memberships, context)
|
|
@@ -1270,18 +995,18 @@ var deserializeAws_json1_1DescribeEnvironmentMembershipsResult = function (outpu
|
|
|
1270
995
|
nextToken: __expectString(output.nextToken),
|
|
1271
996
|
};
|
|
1272
997
|
};
|
|
1273
|
-
|
|
998
|
+
const deserializeAws_json1_1DescribeEnvironmentsResult = (output, context) => {
|
|
1274
999
|
return {
|
|
1275
1000
|
environments: output.environments != null ? deserializeAws_json1_1EnvironmentList(output.environments, context) : undefined,
|
|
1276
1001
|
};
|
|
1277
1002
|
};
|
|
1278
|
-
|
|
1003
|
+
const deserializeAws_json1_1DescribeEnvironmentStatusResult = (output, context) => {
|
|
1279
1004
|
return {
|
|
1280
1005
|
message: __expectString(output.message),
|
|
1281
1006
|
status: __expectString(output.status),
|
|
1282
1007
|
};
|
|
1283
1008
|
};
|
|
1284
|
-
|
|
1009
|
+
const deserializeAws_json1_1Environment = (output, context) => {
|
|
1285
1010
|
return {
|
|
1286
1011
|
arn: __expectString(output.arn),
|
|
1287
1012
|
connectionType: __expectString(output.connectionType),
|
|
@@ -1294,10 +1019,10 @@ var deserializeAws_json1_1Environment = function (output, context) {
|
|
|
1294
1019
|
type: __expectString(output.type),
|
|
1295
1020
|
};
|
|
1296
1021
|
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
.filter(
|
|
1300
|
-
.map(
|
|
1022
|
+
const deserializeAws_json1_1EnvironmentIdList = (output, context) => {
|
|
1023
|
+
const retVal = (output || [])
|
|
1024
|
+
.filter((e) => e != null)
|
|
1025
|
+
.map((entry) => {
|
|
1301
1026
|
if (entry === null) {
|
|
1302
1027
|
return null;
|
|
1303
1028
|
}
|
|
@@ -1305,17 +1030,17 @@ var deserializeAws_json1_1EnvironmentIdList = function (output, context) {
|
|
|
1305
1030
|
});
|
|
1306
1031
|
return retVal;
|
|
1307
1032
|
};
|
|
1308
|
-
|
|
1033
|
+
const deserializeAws_json1_1EnvironmentLifecycle = (output, context) => {
|
|
1309
1034
|
return {
|
|
1310
1035
|
failureResource: __expectString(output.failureResource),
|
|
1311
1036
|
reason: __expectString(output.reason),
|
|
1312
1037
|
status: __expectString(output.status),
|
|
1313
1038
|
};
|
|
1314
1039
|
};
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
.filter(
|
|
1318
|
-
.map(
|
|
1040
|
+
const deserializeAws_json1_1EnvironmentList = (output, context) => {
|
|
1041
|
+
const retVal = (output || [])
|
|
1042
|
+
.filter((e) => e != null)
|
|
1043
|
+
.map((entry) => {
|
|
1319
1044
|
if (entry === null) {
|
|
1320
1045
|
return null;
|
|
1321
1046
|
}
|
|
@@ -1323,7 +1048,7 @@ var deserializeAws_json1_1EnvironmentList = function (output, context) {
|
|
|
1323
1048
|
});
|
|
1324
1049
|
return retVal;
|
|
1325
1050
|
};
|
|
1326
|
-
|
|
1051
|
+
const deserializeAws_json1_1EnvironmentMember = (output, context) => {
|
|
1327
1052
|
return {
|
|
1328
1053
|
environmentId: __expectString(output.environmentId),
|
|
1329
1054
|
lastAccess: output.lastAccess != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAccess))) : undefined,
|
|
@@ -1332,10 +1057,10 @@ var deserializeAws_json1_1EnvironmentMember = function (output, context) {
|
|
|
1332
1057
|
userId: __expectString(output.userId),
|
|
1333
1058
|
};
|
|
1334
1059
|
};
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
.filter(
|
|
1338
|
-
.map(
|
|
1060
|
+
const deserializeAws_json1_1EnvironmentMembersList = (output, context) => {
|
|
1061
|
+
const retVal = (output || [])
|
|
1062
|
+
.filter((e) => e != null)
|
|
1063
|
+
.map((entry) => {
|
|
1339
1064
|
if (entry === null) {
|
|
1340
1065
|
return null;
|
|
1341
1066
|
}
|
|
@@ -1343,28 +1068,28 @@ var deserializeAws_json1_1EnvironmentMembersList = function (output, context) {
|
|
|
1343
1068
|
});
|
|
1344
1069
|
return retVal;
|
|
1345
1070
|
};
|
|
1346
|
-
|
|
1071
|
+
const deserializeAws_json1_1ForbiddenException = (output, context) => {
|
|
1347
1072
|
return {
|
|
1348
1073
|
className: __expectString(output.className),
|
|
1349
1074
|
code: __expectInt32(output.code),
|
|
1350
1075
|
message: __expectString(output.message),
|
|
1351
1076
|
};
|
|
1352
1077
|
};
|
|
1353
|
-
|
|
1078
|
+
const deserializeAws_json1_1InternalServerErrorException = (output, context) => {
|
|
1354
1079
|
return {
|
|
1355
1080
|
className: __expectString(output.className),
|
|
1356
1081
|
code: __expectInt32(output.code),
|
|
1357
1082
|
message: __expectString(output.message),
|
|
1358
1083
|
};
|
|
1359
1084
|
};
|
|
1360
|
-
|
|
1085
|
+
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1361
1086
|
return {
|
|
1362
1087
|
className: __expectString(output.className),
|
|
1363
1088
|
code: __expectInt32(output.code),
|
|
1364
1089
|
message: __expectString(output.message),
|
|
1365
1090
|
};
|
|
1366
1091
|
};
|
|
1367
|
-
|
|
1092
|
+
const deserializeAws_json1_1ListEnvironmentsResult = (output, context) => {
|
|
1368
1093
|
return {
|
|
1369
1094
|
environmentIds: output.environmentIds != null
|
|
1370
1095
|
? deserializeAws_json1_1EnvironmentIdList(output.environmentIds, context)
|
|
@@ -1372,28 +1097,28 @@ var deserializeAws_json1_1ListEnvironmentsResult = function (output, context) {
|
|
|
1372
1097
|
nextToken: __expectString(output.nextToken),
|
|
1373
1098
|
};
|
|
1374
1099
|
};
|
|
1375
|
-
|
|
1100
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
1376
1101
|
return {
|
|
1377
1102
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
1378
1103
|
};
|
|
1379
1104
|
};
|
|
1380
|
-
|
|
1105
|
+
const deserializeAws_json1_1NotFoundException = (output, context) => {
|
|
1381
1106
|
return {
|
|
1382
1107
|
className: __expectString(output.className),
|
|
1383
1108
|
code: __expectInt32(output.code),
|
|
1384
1109
|
message: __expectString(output.message),
|
|
1385
1110
|
};
|
|
1386
1111
|
};
|
|
1387
|
-
|
|
1112
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
1388
1113
|
return {
|
|
1389
1114
|
Key: __expectString(output.Key),
|
|
1390
1115
|
Value: __expectString(output.Value),
|
|
1391
1116
|
};
|
|
1392
1117
|
};
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
.filter(
|
|
1396
|
-
.map(
|
|
1118
|
+
const deserializeAws_json1_1TagList = (output, context) => {
|
|
1119
|
+
const retVal = (output || [])
|
|
1120
|
+
.filter((e) => e != null)
|
|
1121
|
+
.map((entry) => {
|
|
1397
1122
|
if (entry === null) {
|
|
1398
1123
|
return null;
|
|
1399
1124
|
}
|
|
@@ -1401,96 +1126,73 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
1401
1126
|
});
|
|
1402
1127
|
return retVal;
|
|
1403
1128
|
};
|
|
1404
|
-
|
|
1129
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
1405
1130
|
return {};
|
|
1406
1131
|
};
|
|
1407
|
-
|
|
1132
|
+
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
1408
1133
|
return {
|
|
1409
1134
|
className: __expectString(output.className),
|
|
1410
1135
|
code: __expectInt32(output.code),
|
|
1411
1136
|
message: __expectString(output.message),
|
|
1412
1137
|
};
|
|
1413
1138
|
};
|
|
1414
|
-
|
|
1139
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
1415
1140
|
return {};
|
|
1416
1141
|
};
|
|
1417
|
-
|
|
1142
|
+
const deserializeAws_json1_1UpdateEnvironmentMembershipResult = (output, context) => {
|
|
1418
1143
|
return {
|
|
1419
1144
|
membership: output.membership != null ? deserializeAws_json1_1EnvironmentMember(output.membership, context) : undefined,
|
|
1420
1145
|
};
|
|
1421
1146
|
};
|
|
1422
|
-
|
|
1147
|
+
const deserializeAws_json1_1UpdateEnvironmentResult = (output, context) => {
|
|
1423
1148
|
return {};
|
|
1424
1149
|
};
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
});
|
|
1433
|
-
};
|
|
1434
|
-
var collectBody = function (streamBody, context) {
|
|
1435
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1150
|
+
const deserializeMetadata = (output) => ({
|
|
1151
|
+
httpStatusCode: output.statusCode,
|
|
1152
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1153
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1154
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1155
|
+
});
|
|
1156
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1436
1157
|
if (streamBody instanceof Uint8Array) {
|
|
1437
1158
|
return Promise.resolve(streamBody);
|
|
1438
1159
|
}
|
|
1439
1160
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1440
1161
|
};
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
};
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
if (resolvedHostname !== undefined) {
|
|
1460
|
-
contents.hostname = resolvedHostname;
|
|
1461
|
-
}
|
|
1462
|
-
if (body !== undefined) {
|
|
1463
|
-
contents.body = body;
|
|
1464
|
-
}
|
|
1465
|
-
return [2, new __HttpRequest(contents)];
|
|
1466
|
-
}
|
|
1467
|
-
});
|
|
1468
|
-
}); };
|
|
1469
|
-
var parseBody = function (streamBody, context) {
|
|
1470
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1471
|
-
if (encoded.length) {
|
|
1472
|
-
return JSON.parse(encoded);
|
|
1473
|
-
}
|
|
1474
|
-
return {};
|
|
1475
|
-
});
|
|
1162
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1163
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1164
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1165
|
+
const contents = {
|
|
1166
|
+
protocol,
|
|
1167
|
+
hostname,
|
|
1168
|
+
port,
|
|
1169
|
+
method: "POST",
|
|
1170
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1171
|
+
headers,
|
|
1172
|
+
};
|
|
1173
|
+
if (resolvedHostname !== undefined) {
|
|
1174
|
+
contents.hostname = resolvedHostname;
|
|
1175
|
+
}
|
|
1176
|
+
if (body !== undefined) {
|
|
1177
|
+
contents.body = body;
|
|
1178
|
+
}
|
|
1179
|
+
return new __HttpRequest(contents);
|
|
1476
1180
|
};
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
1493
|
-
var cleanValue = rawValue;
|
|
1181
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1182
|
+
if (encoded.length) {
|
|
1183
|
+
return JSON.parse(encoded);
|
|
1184
|
+
}
|
|
1185
|
+
return {};
|
|
1186
|
+
});
|
|
1187
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1188
|
+
const value = await parseBody(errorBody, context);
|
|
1189
|
+
value.message = value.message ?? value.Message;
|
|
1190
|
+
return value;
|
|
1191
|
+
};
|
|
1192
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1193
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1194
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1195
|
+
let cleanValue = rawValue;
|
|
1494
1196
|
if (typeof cleanValue === "number") {
|
|
1495
1197
|
cleanValue = cleanValue.toString();
|
|
1496
1198
|
}
|
|
@@ -1505,7 +1207,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1505
1207
|
}
|
|
1506
1208
|
return cleanValue;
|
|
1507
1209
|
};
|
|
1508
|
-
|
|
1210
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1509
1211
|
if (headerKey !== undefined) {
|
|
1510
1212
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1511
1213
|
}
|