@aws-sdk/client-snowball 3.183.0 → 3.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Snowball.js +109 -102
- package/dist-es/SnowballClient.js +28 -22
- package/dist-es/commands/CancelClusterCommand.js +28 -21
- package/dist-es/commands/CancelJobCommand.js +28 -21
- package/dist-es/commands/CreateAddressCommand.js +28 -21
- package/dist-es/commands/CreateClusterCommand.js +28 -21
- package/dist-es/commands/CreateJobCommand.js +28 -21
- package/dist-es/commands/CreateLongTermPricingCommand.js +28 -21
- package/dist-es/commands/CreateReturnShippingLabelCommand.js +28 -21
- package/dist-es/commands/DescribeAddressCommand.js +28 -21
- package/dist-es/commands/DescribeAddressesCommand.js +28 -21
- package/dist-es/commands/DescribeClusterCommand.js +28 -21
- package/dist-es/commands/DescribeJobCommand.js +28 -21
- package/dist-es/commands/DescribeReturnShippingLabelCommand.js +28 -21
- package/dist-es/commands/GetJobManifestCommand.js +28 -21
- package/dist-es/commands/GetJobUnlockCodeCommand.js +28 -21
- package/dist-es/commands/GetSnowballUsageCommand.js +28 -21
- package/dist-es/commands/GetSoftwareUpdatesCommand.js +28 -21
- package/dist-es/commands/ListClusterJobsCommand.js +28 -21
- package/dist-es/commands/ListClustersCommand.js +28 -21
- package/dist-es/commands/ListCompatibleImagesCommand.js +28 -21
- package/dist-es/commands/ListJobsCommand.js +28 -21
- package/dist-es/commands/ListLongTermPricingCommand.js +28 -21
- package/dist-es/commands/UpdateClusterCommand.js +28 -21
- package/dist-es/commands/UpdateJobCommand.js +28 -21
- package/dist-es/commands/UpdateJobShipmentStateCommand.js +28 -21
- package/dist-es/commands/UpdateLongTermPricingCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SnowballServiceException.js +10 -5
- package/dist-es/models/models_0.js +212 -365
- package/dist-es/pagination/DescribeAddressesPaginator.js +68 -25
- package/dist-es/pagination/ListClusterJobsPaginator.js +68 -25
- package/dist-es/pagination/ListClustersPaginator.js +68 -25
- package/dist-es/pagination/ListCompatibleImagesPaginator.js +68 -25
- package/dist-es/pagination/ListJobsPaginator.js +68 -25
- package/dist-es/pagination/ListLongTermPricingPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2088 -1699
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1618 +1,1984 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ClusterLimitExceededException, ConflictException, Ec2RequestFailedException, InvalidAddressException, InvalidInputCombinationException, InvalidJobStateException, InvalidNextTokenException, InvalidResourceException, KMSRequestFailedException, ReturnShippingLabelAlreadyExistsException, UnsupportedAddressException, } from "../models/models_0";
|
|
4
5
|
import { SnowballServiceException as __BaseException } from "../models/SnowballServiceException";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
export
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
};
|
|
203
|
-
export
|
|
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
|
-
export
|
|
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
|
-
output,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
errorCode,
|
|
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
|
-
throw
|
|
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
|
-
throw
|
|
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
|
-
return
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
throw
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
6
|
+
export var serializeAws_json1_1CancelClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CancelCluster",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1CancelClusterRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1CancelJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CancelJob",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1CancelJobRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1CreateAddressCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CreateAddress",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CreateAddressRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1CreateClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CreateCluster",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1CreateClusterRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1CreateJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CreateJob",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1CreateJobRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1CreateLongTermPricingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CreateLongTermPricing",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1CreateLongTermPricingRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1CreateReturnShippingLabelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "AWSIESnowballJobManagementService.CreateReturnShippingLabel",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1CreateReturnShippingLabelRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1DescribeAddressCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "AWSIESnowballJobManagementService.DescribeAddress",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAddressRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1DescribeAddressesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "AWSIESnowballJobManagementService.DescribeAddresses",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAddressesRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1DescribeClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "AWSIESnowballJobManagementService.DescribeCluster",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1DescribeClusterRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1DescribeJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "AWSIESnowballJobManagementService.DescribeJob",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1DescribeJobRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1DescribeReturnShippingLabelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "AWSIESnowballJobManagementService.DescribeReturnShippingLabel",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1DescribeReturnShippingLabelRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1GetJobManifestCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AWSIESnowballJobManagementService.GetJobManifest",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1GetJobManifestRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1GetJobUnlockCodeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "AWSIESnowballJobManagementService.GetJobUnlockCode",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1GetJobUnlockCodeRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1GetSnowballUsageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.1",
|
|
165
|
+
"x-amz-target": "AWSIESnowballJobManagementService.GetSnowballUsage",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1GetSnowballUsageRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var serializeAws_json1_1GetSoftwareUpdatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var headers, body;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "AWSIESnowballJobManagementService.GetSoftwareUpdates",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1GetSoftwareUpdatesRequest(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
182
|
+
export var serializeAws_json1_1ListClusterJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
+
var headers, body;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
headers = {
|
|
186
|
+
"content-type": "application/x-amz-json-1.1",
|
|
187
|
+
"x-amz-target": "AWSIESnowballJobManagementService.ListClusterJobs",
|
|
188
|
+
};
|
|
189
|
+
body = JSON.stringify(serializeAws_json1_1ListClusterJobsRequest(input, context));
|
|
190
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
|
+
});
|
|
192
|
+
}); };
|
|
193
|
+
export var serializeAws_json1_1ListClustersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
+
var headers, body;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "AWSIESnowballJobManagementService.ListClusters",
|
|
199
|
+
};
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1ListClustersRequest(input, context));
|
|
201
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
+
});
|
|
203
|
+
}); };
|
|
204
|
+
export var serializeAws_json1_1ListCompatibleImagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "AWSIESnowballJobManagementService.ListCompatibleImages",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1ListCompatibleImagesRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
215
|
+
export var serializeAws_json1_1ListJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var headers, body;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
headers = {
|
|
219
|
+
"content-type": "application/x-amz-json-1.1",
|
|
220
|
+
"x-amz-target": "AWSIESnowballJobManagementService.ListJobs",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_1ListJobsRequest(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
226
|
+
export var serializeAws_json1_1ListLongTermPricingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
+
var headers, body;
|
|
228
|
+
return __generator(this, function (_a) {
|
|
229
|
+
headers = {
|
|
230
|
+
"content-type": "application/x-amz-json-1.1",
|
|
231
|
+
"x-amz-target": "AWSIESnowballJobManagementService.ListLongTermPricing",
|
|
232
|
+
};
|
|
233
|
+
body = JSON.stringify(serializeAws_json1_1ListLongTermPricingRequest(input, context));
|
|
234
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
235
|
+
});
|
|
236
|
+
}); };
|
|
237
|
+
export var serializeAws_json1_1UpdateClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
+
var headers, body;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "AWSIESnowballJobManagementService.UpdateCluster",
|
|
243
|
+
};
|
|
244
|
+
body = JSON.stringify(serializeAws_json1_1UpdateClusterRequest(input, context));
|
|
245
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
246
|
+
});
|
|
247
|
+
}); };
|
|
248
|
+
export var serializeAws_json1_1UpdateJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var headers, body;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.1",
|
|
253
|
+
"x-amz-target": "AWSIESnowballJobManagementService.UpdateJob",
|
|
254
|
+
};
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1UpdateJobRequest(input, context));
|
|
256
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
|
+
});
|
|
258
|
+
}); };
|
|
259
|
+
export var serializeAws_json1_1UpdateJobShipmentStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
+
var headers, body;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
headers = {
|
|
263
|
+
"content-type": "application/x-amz-json-1.1",
|
|
264
|
+
"x-amz-target": "AWSIESnowballJobManagementService.UpdateJobShipmentState",
|
|
265
|
+
};
|
|
266
|
+
body = JSON.stringify(serializeAws_json1_1UpdateJobShipmentStateRequest(input, context));
|
|
267
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
268
|
+
});
|
|
269
|
+
}); };
|
|
270
|
+
export var serializeAws_json1_1UpdateLongTermPricingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
271
|
+
var headers, body;
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
headers = {
|
|
274
|
+
"content-type": "application/x-amz-json-1.1",
|
|
275
|
+
"x-amz-target": "AWSIESnowballJobManagementService.UpdateLongTermPricing",
|
|
276
|
+
};
|
|
277
|
+
body = JSON.stringify(serializeAws_json1_1UpdateLongTermPricingRequest(input, context));
|
|
278
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
279
|
+
});
|
|
280
|
+
}); };
|
|
281
|
+
export var deserializeAws_json1_1CancelClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
|
+
var data, contents, response;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
switch (_a.label) {
|
|
285
|
+
case 0:
|
|
286
|
+
if (output.statusCode >= 300) {
|
|
287
|
+
return [2, deserializeAws_json1_1CancelClusterCommandError(output, context)];
|
|
288
|
+
}
|
|
289
|
+
return [4, parseBody(output.body, context)];
|
|
290
|
+
case 1:
|
|
291
|
+
data = _a.sent();
|
|
292
|
+
contents = {};
|
|
293
|
+
contents = deserializeAws_json1_1CancelClusterResult(data, context);
|
|
294
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
295
|
+
return [2, Promise.resolve(response)];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}); };
|
|
299
|
+
var deserializeAws_json1_1CancelClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
300
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
301
|
+
var _c;
|
|
302
|
+
return __generator(this, function (_d) {
|
|
303
|
+
switch (_d.label) {
|
|
304
|
+
case 0:
|
|
305
|
+
_a = [__assign({}, output)];
|
|
306
|
+
_c = {};
|
|
307
|
+
return [4, parseErrorBody(output.body, context)];
|
|
308
|
+
case 1:
|
|
309
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
310
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
311
|
+
_b = errorCode;
|
|
312
|
+
switch (_b) {
|
|
313
|
+
case "InvalidJobStateException": return [3, 2];
|
|
314
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 2];
|
|
315
|
+
case "InvalidResourceException": return [3, 4];
|
|
316
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
317
|
+
case "KMSRequestFailedException": return [3, 6];
|
|
318
|
+
case "com.amazonaws.snowball#KMSRequestFailedException": return [3, 6];
|
|
319
|
+
}
|
|
320
|
+
return [3, 8];
|
|
321
|
+
case 2: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
322
|
+
case 3: throw _d.sent();
|
|
323
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
324
|
+
case 5: throw _d.sent();
|
|
325
|
+
case 6: return [4, deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)];
|
|
326
|
+
case 7: throw _d.sent();
|
|
327
|
+
case 8:
|
|
328
|
+
parsedBody = parsedOutput.body;
|
|
329
|
+
throwDefaultError({
|
|
330
|
+
output: output,
|
|
331
|
+
parsedBody: parsedBody,
|
|
332
|
+
exceptionCtor: __BaseException,
|
|
333
|
+
errorCode: errorCode,
|
|
334
|
+
});
|
|
335
|
+
_d.label = 9;
|
|
336
|
+
case 9: return [2];
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}); };
|
|
340
|
+
export var deserializeAws_json1_1CancelJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
+
var data, contents, response;
|
|
342
|
+
return __generator(this, function (_a) {
|
|
343
|
+
switch (_a.label) {
|
|
344
|
+
case 0:
|
|
345
|
+
if (output.statusCode >= 300) {
|
|
346
|
+
return [2, deserializeAws_json1_1CancelJobCommandError(output, context)];
|
|
347
|
+
}
|
|
348
|
+
return [4, parseBody(output.body, context)];
|
|
349
|
+
case 1:
|
|
350
|
+
data = _a.sent();
|
|
351
|
+
contents = {};
|
|
352
|
+
contents = deserializeAws_json1_1CancelJobResult(data, context);
|
|
353
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
354
|
+
return [2, Promise.resolve(response)];
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}); };
|
|
358
|
+
var deserializeAws_json1_1CancelJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
359
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
360
|
+
var _c;
|
|
361
|
+
return __generator(this, function (_d) {
|
|
362
|
+
switch (_d.label) {
|
|
363
|
+
case 0:
|
|
364
|
+
_a = [__assign({}, output)];
|
|
365
|
+
_c = {};
|
|
366
|
+
return [4, parseErrorBody(output.body, context)];
|
|
367
|
+
case 1:
|
|
368
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
369
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
|
+
_b = errorCode;
|
|
371
|
+
switch (_b) {
|
|
372
|
+
case "InvalidJobStateException": return [3, 2];
|
|
373
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 2];
|
|
374
|
+
case "InvalidResourceException": return [3, 4];
|
|
375
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
376
|
+
case "KMSRequestFailedException": return [3, 6];
|
|
377
|
+
case "com.amazonaws.snowball#KMSRequestFailedException": return [3, 6];
|
|
378
|
+
}
|
|
379
|
+
return [3, 8];
|
|
380
|
+
case 2: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
381
|
+
case 3: throw _d.sent();
|
|
382
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
383
|
+
case 5: throw _d.sent();
|
|
384
|
+
case 6: return [4, deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)];
|
|
385
|
+
case 7: throw _d.sent();
|
|
386
|
+
case 8:
|
|
387
|
+
parsedBody = parsedOutput.body;
|
|
388
|
+
throwDefaultError({
|
|
389
|
+
output: output,
|
|
390
|
+
parsedBody: parsedBody,
|
|
391
|
+
exceptionCtor: __BaseException,
|
|
392
|
+
errorCode: errorCode,
|
|
393
|
+
});
|
|
394
|
+
_d.label = 9;
|
|
395
|
+
case 9: return [2];
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}); };
|
|
399
|
+
export var deserializeAws_json1_1CreateAddressCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
400
|
+
var data, contents, response;
|
|
401
|
+
return __generator(this, function (_a) {
|
|
402
|
+
switch (_a.label) {
|
|
403
|
+
case 0:
|
|
404
|
+
if (output.statusCode >= 300) {
|
|
405
|
+
return [2, deserializeAws_json1_1CreateAddressCommandError(output, context)];
|
|
406
|
+
}
|
|
407
|
+
return [4, parseBody(output.body, context)];
|
|
408
|
+
case 1:
|
|
409
|
+
data = _a.sent();
|
|
410
|
+
contents = {};
|
|
411
|
+
contents = deserializeAws_json1_1CreateAddressResult(data, context);
|
|
412
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
413
|
+
return [2, Promise.resolve(response)];
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}); };
|
|
417
|
+
var deserializeAws_json1_1CreateAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
418
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
419
|
+
var _c;
|
|
420
|
+
return __generator(this, function (_d) {
|
|
421
|
+
switch (_d.label) {
|
|
422
|
+
case 0:
|
|
423
|
+
_a = [__assign({}, output)];
|
|
424
|
+
_c = {};
|
|
425
|
+
return [4, parseErrorBody(output.body, context)];
|
|
426
|
+
case 1:
|
|
427
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
428
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
+
_b = errorCode;
|
|
430
|
+
switch (_b) {
|
|
431
|
+
case "InvalidAddressException": return [3, 2];
|
|
432
|
+
case "com.amazonaws.snowball#InvalidAddressException": return [3, 2];
|
|
433
|
+
case "UnsupportedAddressException": return [3, 4];
|
|
434
|
+
case "com.amazonaws.snowball#UnsupportedAddressException": return [3, 4];
|
|
435
|
+
}
|
|
436
|
+
return [3, 6];
|
|
437
|
+
case 2: return [4, deserializeAws_json1_1InvalidAddressExceptionResponse(parsedOutput, context)];
|
|
438
|
+
case 3: throw _d.sent();
|
|
439
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedAddressExceptionResponse(parsedOutput, context)];
|
|
440
|
+
case 5: throw _d.sent();
|
|
441
|
+
case 6:
|
|
442
|
+
parsedBody = parsedOutput.body;
|
|
443
|
+
throwDefaultError({
|
|
444
|
+
output: output,
|
|
445
|
+
parsedBody: parsedBody,
|
|
446
|
+
exceptionCtor: __BaseException,
|
|
447
|
+
errorCode: errorCode,
|
|
448
|
+
});
|
|
449
|
+
_d.label = 7;
|
|
450
|
+
case 7: return [2];
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
}); };
|
|
454
|
+
export var deserializeAws_json1_1CreateClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
455
|
+
var data, contents, response;
|
|
456
|
+
return __generator(this, function (_a) {
|
|
457
|
+
switch (_a.label) {
|
|
458
|
+
case 0:
|
|
459
|
+
if (output.statusCode >= 300) {
|
|
460
|
+
return [2, deserializeAws_json1_1CreateClusterCommandError(output, context)];
|
|
461
|
+
}
|
|
462
|
+
return [4, parseBody(output.body, context)];
|
|
463
|
+
case 1:
|
|
464
|
+
data = _a.sent();
|
|
465
|
+
contents = {};
|
|
466
|
+
contents = deserializeAws_json1_1CreateClusterResult(data, context);
|
|
467
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
468
|
+
return [2, Promise.resolve(response)];
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
}); };
|
|
472
|
+
var deserializeAws_json1_1CreateClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
473
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
474
|
+
var _c;
|
|
475
|
+
return __generator(this, function (_d) {
|
|
476
|
+
switch (_d.label) {
|
|
477
|
+
case 0:
|
|
478
|
+
_a = [__assign({}, output)];
|
|
479
|
+
_c = {};
|
|
480
|
+
return [4, parseErrorBody(output.body, context)];
|
|
481
|
+
case 1:
|
|
482
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
483
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
+
_b = errorCode;
|
|
485
|
+
switch (_b) {
|
|
486
|
+
case "Ec2RequestFailedException": return [3, 2];
|
|
487
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException": return [3, 2];
|
|
488
|
+
case "InvalidInputCombinationException": return [3, 4];
|
|
489
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException": return [3, 4];
|
|
490
|
+
case "InvalidResourceException": return [3, 6];
|
|
491
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 6];
|
|
492
|
+
case "KMSRequestFailedException": return [3, 8];
|
|
493
|
+
case "com.amazonaws.snowball#KMSRequestFailedException": return [3, 8];
|
|
494
|
+
}
|
|
495
|
+
return [3, 10];
|
|
496
|
+
case 2: return [4, deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)];
|
|
497
|
+
case 3: throw _d.sent();
|
|
498
|
+
case 4: return [4, deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)];
|
|
499
|
+
case 5: throw _d.sent();
|
|
500
|
+
case 6: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
501
|
+
case 7: throw _d.sent();
|
|
502
|
+
case 8: return [4, deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)];
|
|
503
|
+
case 9: throw _d.sent();
|
|
504
|
+
case 10:
|
|
505
|
+
parsedBody = parsedOutput.body;
|
|
506
|
+
throwDefaultError({
|
|
507
|
+
output: output,
|
|
508
|
+
parsedBody: parsedBody,
|
|
509
|
+
exceptionCtor: __BaseException,
|
|
510
|
+
errorCode: errorCode,
|
|
511
|
+
});
|
|
512
|
+
_d.label = 11;
|
|
513
|
+
case 11: return [2];
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}); };
|
|
517
|
+
export var deserializeAws_json1_1CreateJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
518
|
+
var data, contents, response;
|
|
519
|
+
return __generator(this, function (_a) {
|
|
520
|
+
switch (_a.label) {
|
|
521
|
+
case 0:
|
|
522
|
+
if (output.statusCode >= 300) {
|
|
523
|
+
return [2, deserializeAws_json1_1CreateJobCommandError(output, context)];
|
|
524
|
+
}
|
|
525
|
+
return [4, parseBody(output.body, context)];
|
|
526
|
+
case 1:
|
|
527
|
+
data = _a.sent();
|
|
528
|
+
contents = {};
|
|
529
|
+
contents = deserializeAws_json1_1CreateJobResult(data, context);
|
|
530
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
531
|
+
return [2, Promise.resolve(response)];
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
}); };
|
|
535
|
+
var deserializeAws_json1_1CreateJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
536
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
537
|
+
var _c;
|
|
538
|
+
return __generator(this, function (_d) {
|
|
539
|
+
switch (_d.label) {
|
|
540
|
+
case 0:
|
|
541
|
+
_a = [__assign({}, output)];
|
|
542
|
+
_c = {};
|
|
543
|
+
return [4, parseErrorBody(output.body, context)];
|
|
544
|
+
case 1:
|
|
545
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
546
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
_b = errorCode;
|
|
548
|
+
switch (_b) {
|
|
549
|
+
case "ClusterLimitExceededException": return [3, 2];
|
|
550
|
+
case "com.amazonaws.snowball#ClusterLimitExceededException": return [3, 2];
|
|
551
|
+
case "Ec2RequestFailedException": return [3, 4];
|
|
552
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException": return [3, 4];
|
|
553
|
+
case "InvalidInputCombinationException": return [3, 6];
|
|
554
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException": return [3, 6];
|
|
555
|
+
case "InvalidResourceException": return [3, 8];
|
|
556
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 8];
|
|
557
|
+
case "KMSRequestFailedException": return [3, 10];
|
|
558
|
+
case "com.amazonaws.snowball#KMSRequestFailedException": return [3, 10];
|
|
559
|
+
}
|
|
560
|
+
return [3, 12];
|
|
561
|
+
case 2: return [4, deserializeAws_json1_1ClusterLimitExceededExceptionResponse(parsedOutput, context)];
|
|
562
|
+
case 3: throw _d.sent();
|
|
563
|
+
case 4: return [4, deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)];
|
|
564
|
+
case 5: throw _d.sent();
|
|
565
|
+
case 6: return [4, deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)];
|
|
566
|
+
case 7: throw _d.sent();
|
|
567
|
+
case 8: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
568
|
+
case 9: throw _d.sent();
|
|
569
|
+
case 10: return [4, deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)];
|
|
570
|
+
case 11: throw _d.sent();
|
|
571
|
+
case 12:
|
|
572
|
+
parsedBody = parsedOutput.body;
|
|
573
|
+
throwDefaultError({
|
|
574
|
+
output: output,
|
|
575
|
+
parsedBody: parsedBody,
|
|
576
|
+
exceptionCtor: __BaseException,
|
|
577
|
+
errorCode: errorCode,
|
|
578
|
+
});
|
|
579
|
+
_d.label = 13;
|
|
580
|
+
case 13: return [2];
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
}); };
|
|
584
|
+
export var deserializeAws_json1_1CreateLongTermPricingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
585
|
+
var data, contents, response;
|
|
586
|
+
return __generator(this, function (_a) {
|
|
587
|
+
switch (_a.label) {
|
|
588
|
+
case 0:
|
|
589
|
+
if (output.statusCode >= 300) {
|
|
590
|
+
return [2, deserializeAws_json1_1CreateLongTermPricingCommandError(output, context)];
|
|
591
|
+
}
|
|
592
|
+
return [4, parseBody(output.body, context)];
|
|
593
|
+
case 1:
|
|
594
|
+
data = _a.sent();
|
|
595
|
+
contents = {};
|
|
596
|
+
contents = deserializeAws_json1_1CreateLongTermPricingResult(data, context);
|
|
597
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
598
|
+
return [2, Promise.resolve(response)];
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
}); };
|
|
602
|
+
var deserializeAws_json1_1CreateLongTermPricingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
604
|
+
var _c;
|
|
605
|
+
return __generator(this, function (_d) {
|
|
606
|
+
switch (_d.label) {
|
|
607
|
+
case 0:
|
|
608
|
+
_a = [__assign({}, output)];
|
|
609
|
+
_c = {};
|
|
610
|
+
return [4, parseErrorBody(output.body, context)];
|
|
611
|
+
case 1:
|
|
612
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
613
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
_b = errorCode;
|
|
615
|
+
switch (_b) {
|
|
616
|
+
case "InvalidResourceException": return [3, 2];
|
|
617
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 2];
|
|
618
|
+
}
|
|
619
|
+
return [3, 4];
|
|
620
|
+
case 2: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
621
|
+
case 3: throw _d.sent();
|
|
622
|
+
case 4:
|
|
623
|
+
parsedBody = parsedOutput.body;
|
|
624
|
+
throwDefaultError({
|
|
625
|
+
output: output,
|
|
626
|
+
parsedBody: parsedBody,
|
|
627
|
+
exceptionCtor: __BaseException,
|
|
628
|
+
errorCode: errorCode,
|
|
629
|
+
});
|
|
630
|
+
_d.label = 5;
|
|
631
|
+
case 5: return [2];
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
}); };
|
|
635
|
+
export var deserializeAws_json1_1CreateReturnShippingLabelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
636
|
+
var data, contents, response;
|
|
637
|
+
return __generator(this, function (_a) {
|
|
638
|
+
switch (_a.label) {
|
|
639
|
+
case 0:
|
|
640
|
+
if (output.statusCode >= 300) {
|
|
641
|
+
return [2, deserializeAws_json1_1CreateReturnShippingLabelCommandError(output, context)];
|
|
642
|
+
}
|
|
643
|
+
return [4, parseBody(output.body, context)];
|
|
644
|
+
case 1:
|
|
645
|
+
data = _a.sent();
|
|
646
|
+
contents = {};
|
|
647
|
+
contents = deserializeAws_json1_1CreateReturnShippingLabelResult(data, context);
|
|
648
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
649
|
+
return [2, Promise.resolve(response)];
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
}); };
|
|
653
|
+
var deserializeAws_json1_1CreateReturnShippingLabelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
654
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
655
|
+
var _c;
|
|
656
|
+
return __generator(this, function (_d) {
|
|
657
|
+
switch (_d.label) {
|
|
658
|
+
case 0:
|
|
659
|
+
_a = [__assign({}, output)];
|
|
660
|
+
_c = {};
|
|
661
|
+
return [4, parseErrorBody(output.body, context)];
|
|
662
|
+
case 1:
|
|
663
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
664
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
665
|
+
_b = errorCode;
|
|
666
|
+
switch (_b) {
|
|
667
|
+
case "ConflictException": return [3, 2];
|
|
668
|
+
case "com.amazonaws.snowball#ConflictException": return [3, 2];
|
|
669
|
+
case "InvalidInputCombinationException": return [3, 4];
|
|
670
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException": return [3, 4];
|
|
671
|
+
case "InvalidJobStateException": return [3, 6];
|
|
672
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 6];
|
|
673
|
+
case "InvalidResourceException": return [3, 8];
|
|
674
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 8];
|
|
675
|
+
case "ReturnShippingLabelAlreadyExistsException": return [3, 10];
|
|
676
|
+
case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException": return [3, 10];
|
|
677
|
+
}
|
|
678
|
+
return [3, 12];
|
|
679
|
+
case 2: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
680
|
+
case 3: throw _d.sent();
|
|
681
|
+
case 4: return [4, deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)];
|
|
682
|
+
case 5: throw _d.sent();
|
|
683
|
+
case 6: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
684
|
+
case 7: throw _d.sent();
|
|
685
|
+
case 8: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
686
|
+
case 9: throw _d.sent();
|
|
687
|
+
case 10: return [4, deserializeAws_json1_1ReturnShippingLabelAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
688
|
+
case 11: throw _d.sent();
|
|
689
|
+
case 12:
|
|
690
|
+
parsedBody = parsedOutput.body;
|
|
691
|
+
throwDefaultError({
|
|
692
|
+
output: output,
|
|
693
|
+
parsedBody: parsedBody,
|
|
694
|
+
exceptionCtor: __BaseException,
|
|
695
|
+
errorCode: errorCode,
|
|
696
|
+
});
|
|
697
|
+
_d.label = 13;
|
|
698
|
+
case 13: return [2];
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
}); };
|
|
702
|
+
export var deserializeAws_json1_1DescribeAddressCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
703
|
+
var data, contents, response;
|
|
704
|
+
return __generator(this, function (_a) {
|
|
705
|
+
switch (_a.label) {
|
|
706
|
+
case 0:
|
|
707
|
+
if (output.statusCode >= 300) {
|
|
708
|
+
return [2, deserializeAws_json1_1DescribeAddressCommandError(output, context)];
|
|
709
|
+
}
|
|
710
|
+
return [4, parseBody(output.body, context)];
|
|
711
|
+
case 1:
|
|
712
|
+
data = _a.sent();
|
|
713
|
+
contents = {};
|
|
714
|
+
contents = deserializeAws_json1_1DescribeAddressResult(data, context);
|
|
715
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
716
|
+
return [2, Promise.resolve(response)];
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}); };
|
|
720
|
+
var deserializeAws_json1_1DescribeAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
721
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
722
|
+
var _c;
|
|
723
|
+
return __generator(this, function (_d) {
|
|
724
|
+
switch (_d.label) {
|
|
725
|
+
case 0:
|
|
726
|
+
_a = [__assign({}, output)];
|
|
727
|
+
_c = {};
|
|
728
|
+
return [4, parseErrorBody(output.body, context)];
|
|
729
|
+
case 1:
|
|
730
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
731
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
|
+
_b = errorCode;
|
|
733
|
+
switch (_b) {
|
|
734
|
+
case "InvalidResourceException": return [3, 2];
|
|
735
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 2];
|
|
736
|
+
}
|
|
737
|
+
return [3, 4];
|
|
738
|
+
case 2: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
739
|
+
case 3: throw _d.sent();
|
|
740
|
+
case 4:
|
|
741
|
+
parsedBody = parsedOutput.body;
|
|
742
|
+
throwDefaultError({
|
|
743
|
+
output: output,
|
|
744
|
+
parsedBody: parsedBody,
|
|
745
|
+
exceptionCtor: __BaseException,
|
|
746
|
+
errorCode: errorCode,
|
|
747
|
+
});
|
|
748
|
+
_d.label = 5;
|
|
749
|
+
case 5: return [2];
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
}); };
|
|
753
|
+
export var deserializeAws_json1_1DescribeAddressesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
754
|
+
var data, contents, response;
|
|
755
|
+
return __generator(this, function (_a) {
|
|
756
|
+
switch (_a.label) {
|
|
757
|
+
case 0:
|
|
758
|
+
if (output.statusCode >= 300) {
|
|
759
|
+
return [2, deserializeAws_json1_1DescribeAddressesCommandError(output, context)];
|
|
760
|
+
}
|
|
761
|
+
return [4, parseBody(output.body, context)];
|
|
762
|
+
case 1:
|
|
763
|
+
data = _a.sent();
|
|
764
|
+
contents = {};
|
|
765
|
+
contents = deserializeAws_json1_1DescribeAddressesResult(data, context);
|
|
766
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
767
|
+
return [2, Promise.resolve(response)];
|
|
768
|
+
}
|
|
769
|
+
});
|
|
770
|
+
}); };
|
|
771
|
+
var deserializeAws_json1_1DescribeAddressesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
772
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
773
|
+
var _c;
|
|
774
|
+
return __generator(this, function (_d) {
|
|
775
|
+
switch (_d.label) {
|
|
776
|
+
case 0:
|
|
777
|
+
_a = [__assign({}, output)];
|
|
778
|
+
_c = {};
|
|
779
|
+
return [4, parseErrorBody(output.body, context)];
|
|
780
|
+
case 1:
|
|
781
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
782
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
+
_b = errorCode;
|
|
784
|
+
switch (_b) {
|
|
785
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
786
|
+
case "com.amazonaws.snowball#InvalidNextTokenException": return [3, 2];
|
|
787
|
+
case "InvalidResourceException": return [3, 4];
|
|
788
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
789
|
+
}
|
|
790
|
+
return [3, 6];
|
|
791
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
792
|
+
case 3: throw _d.sent();
|
|
793
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
794
|
+
case 5: throw _d.sent();
|
|
795
|
+
case 6:
|
|
796
|
+
parsedBody = parsedOutput.body;
|
|
797
|
+
throwDefaultError({
|
|
798
|
+
output: output,
|
|
799
|
+
parsedBody: parsedBody,
|
|
800
|
+
exceptionCtor: __BaseException,
|
|
801
|
+
errorCode: errorCode,
|
|
802
|
+
});
|
|
803
|
+
_d.label = 7;
|
|
804
|
+
case 7: return [2];
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
}); };
|
|
808
|
+
export var deserializeAws_json1_1DescribeClusterCommand = 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_1DescribeClusterCommandError(output, context)];
|
|
815
|
+
}
|
|
816
|
+
return [4, parseBody(output.body, context)];
|
|
817
|
+
case 1:
|
|
818
|
+
data = _a.sent();
|
|
819
|
+
contents = {};
|
|
820
|
+
contents = deserializeAws_json1_1DescribeClusterResult(data, context);
|
|
821
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
822
|
+
return [2, Promise.resolve(response)];
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
}); };
|
|
826
|
+
var deserializeAws_json1_1DescribeClusterCommandError = 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 "InvalidResourceException": return [3, 2];
|
|
841
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 2];
|
|
842
|
+
}
|
|
843
|
+
return [3, 4];
|
|
844
|
+
case 2: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
845
|
+
case 3: throw _d.sent();
|
|
846
|
+
case 4:
|
|
847
|
+
parsedBody = parsedOutput.body;
|
|
848
|
+
throwDefaultError({
|
|
849
|
+
output: output,
|
|
850
|
+
parsedBody: parsedBody,
|
|
851
|
+
exceptionCtor: __BaseException,
|
|
852
|
+
errorCode: errorCode,
|
|
853
|
+
});
|
|
854
|
+
_d.label = 5;
|
|
855
|
+
case 5: return [2];
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}); };
|
|
859
|
+
export var deserializeAws_json1_1DescribeJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
860
|
+
var data, contents, response;
|
|
861
|
+
return __generator(this, function (_a) {
|
|
862
|
+
switch (_a.label) {
|
|
863
|
+
case 0:
|
|
864
|
+
if (output.statusCode >= 300) {
|
|
865
|
+
return [2, deserializeAws_json1_1DescribeJobCommandError(output, context)];
|
|
866
|
+
}
|
|
867
|
+
return [4, parseBody(output.body, context)];
|
|
868
|
+
case 1:
|
|
869
|
+
data = _a.sent();
|
|
870
|
+
contents = {};
|
|
871
|
+
contents = deserializeAws_json1_1DescribeJobResult(data, context);
|
|
872
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
873
|
+
return [2, Promise.resolve(response)];
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
}); };
|
|
877
|
+
var deserializeAws_json1_1DescribeJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
878
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
879
|
+
var _c;
|
|
880
|
+
return __generator(this, function (_d) {
|
|
881
|
+
switch (_d.label) {
|
|
882
|
+
case 0:
|
|
883
|
+
_a = [__assign({}, output)];
|
|
884
|
+
_c = {};
|
|
885
|
+
return [4, parseErrorBody(output.body, context)];
|
|
886
|
+
case 1:
|
|
887
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
888
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
+
_b = errorCode;
|
|
890
|
+
switch (_b) {
|
|
891
|
+
case "InvalidResourceException": return [3, 2];
|
|
892
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 2];
|
|
893
|
+
}
|
|
894
|
+
return [3, 4];
|
|
895
|
+
case 2: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
896
|
+
case 3: throw _d.sent();
|
|
897
|
+
case 4:
|
|
898
|
+
parsedBody = parsedOutput.body;
|
|
899
|
+
throwDefaultError({
|
|
900
|
+
output: output,
|
|
901
|
+
parsedBody: parsedBody,
|
|
902
|
+
exceptionCtor: __BaseException,
|
|
903
|
+
errorCode: errorCode,
|
|
904
|
+
});
|
|
905
|
+
_d.label = 5;
|
|
906
|
+
case 5: return [2];
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
}); };
|
|
910
|
+
export var deserializeAws_json1_1DescribeReturnShippingLabelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
911
|
+
var data, contents, response;
|
|
912
|
+
return __generator(this, function (_a) {
|
|
913
|
+
switch (_a.label) {
|
|
914
|
+
case 0:
|
|
915
|
+
if (output.statusCode >= 300) {
|
|
916
|
+
return [2, deserializeAws_json1_1DescribeReturnShippingLabelCommandError(output, context)];
|
|
917
|
+
}
|
|
918
|
+
return [4, parseBody(output.body, context)];
|
|
919
|
+
case 1:
|
|
920
|
+
data = _a.sent();
|
|
921
|
+
contents = {};
|
|
922
|
+
contents = deserializeAws_json1_1DescribeReturnShippingLabelResult(data, context);
|
|
923
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
924
|
+
return [2, Promise.resolve(response)];
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}); };
|
|
928
|
+
var deserializeAws_json1_1DescribeReturnShippingLabelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
930
|
+
var _c;
|
|
931
|
+
return __generator(this, function (_d) {
|
|
932
|
+
switch (_d.label) {
|
|
933
|
+
case 0:
|
|
934
|
+
_a = [__assign({}, output)];
|
|
935
|
+
_c = {};
|
|
936
|
+
return [4, parseErrorBody(output.body, context)];
|
|
937
|
+
case 1:
|
|
938
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
939
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
+
_b = errorCode;
|
|
941
|
+
switch (_b) {
|
|
942
|
+
case "ConflictException": return [3, 2];
|
|
943
|
+
case "com.amazonaws.snowball#ConflictException": return [3, 2];
|
|
944
|
+
case "InvalidJobStateException": return [3, 4];
|
|
945
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 4];
|
|
946
|
+
case "InvalidResourceException": return [3, 6];
|
|
947
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 6];
|
|
948
|
+
}
|
|
949
|
+
return [3, 8];
|
|
950
|
+
case 2: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
951
|
+
case 3: throw _d.sent();
|
|
952
|
+
case 4: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
953
|
+
case 5: throw _d.sent();
|
|
954
|
+
case 6: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
955
|
+
case 7: throw _d.sent();
|
|
956
|
+
case 8:
|
|
957
|
+
parsedBody = parsedOutput.body;
|
|
958
|
+
throwDefaultError({
|
|
959
|
+
output: output,
|
|
960
|
+
parsedBody: parsedBody,
|
|
961
|
+
exceptionCtor: __BaseException,
|
|
962
|
+
errorCode: errorCode,
|
|
963
|
+
});
|
|
964
|
+
_d.label = 9;
|
|
965
|
+
case 9: return [2];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
}); };
|
|
969
|
+
export var deserializeAws_json1_1GetJobManifestCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
970
|
+
var data, contents, response;
|
|
971
|
+
return __generator(this, function (_a) {
|
|
972
|
+
switch (_a.label) {
|
|
973
|
+
case 0:
|
|
974
|
+
if (output.statusCode >= 300) {
|
|
975
|
+
return [2, deserializeAws_json1_1GetJobManifestCommandError(output, context)];
|
|
976
|
+
}
|
|
977
|
+
return [4, parseBody(output.body, context)];
|
|
978
|
+
case 1:
|
|
979
|
+
data = _a.sent();
|
|
980
|
+
contents = {};
|
|
981
|
+
contents = deserializeAws_json1_1GetJobManifestResult(data, context);
|
|
982
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
983
|
+
return [2, Promise.resolve(response)];
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
}); };
|
|
987
|
+
var deserializeAws_json1_1GetJobManifestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
988
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
989
|
+
var _c;
|
|
990
|
+
return __generator(this, function (_d) {
|
|
991
|
+
switch (_d.label) {
|
|
992
|
+
case 0:
|
|
993
|
+
_a = [__assign({}, output)];
|
|
994
|
+
_c = {};
|
|
995
|
+
return [4, parseErrorBody(output.body, context)];
|
|
996
|
+
case 1:
|
|
997
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
998
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
_b = errorCode;
|
|
1000
|
+
switch (_b) {
|
|
1001
|
+
case "InvalidJobStateException": return [3, 2];
|
|
1002
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 2];
|
|
1003
|
+
case "InvalidResourceException": return [3, 4];
|
|
1004
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
1005
|
+
}
|
|
1006
|
+
return [3, 6];
|
|
1007
|
+
case 2: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
1008
|
+
case 3: throw _d.sent();
|
|
1009
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1010
|
+
case 5: throw _d.sent();
|
|
1011
|
+
case 6:
|
|
1012
|
+
parsedBody = parsedOutput.body;
|
|
1013
|
+
throwDefaultError({
|
|
1014
|
+
output: output,
|
|
1015
|
+
parsedBody: parsedBody,
|
|
1016
|
+
exceptionCtor: __BaseException,
|
|
1017
|
+
errorCode: errorCode,
|
|
1018
|
+
});
|
|
1019
|
+
_d.label = 7;
|
|
1020
|
+
case 7: return [2];
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
}); };
|
|
1024
|
+
export var deserializeAws_json1_1GetJobUnlockCodeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1025
|
+
var data, contents, response;
|
|
1026
|
+
return __generator(this, function (_a) {
|
|
1027
|
+
switch (_a.label) {
|
|
1028
|
+
case 0:
|
|
1029
|
+
if (output.statusCode >= 300) {
|
|
1030
|
+
return [2, deserializeAws_json1_1GetJobUnlockCodeCommandError(output, context)];
|
|
1031
|
+
}
|
|
1032
|
+
return [4, parseBody(output.body, context)];
|
|
1033
|
+
case 1:
|
|
1034
|
+
data = _a.sent();
|
|
1035
|
+
contents = {};
|
|
1036
|
+
contents = deserializeAws_json1_1GetJobUnlockCodeResult(data, context);
|
|
1037
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1038
|
+
return [2, Promise.resolve(response)];
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
}); };
|
|
1042
|
+
var deserializeAws_json1_1GetJobUnlockCodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1043
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1044
|
+
var _c;
|
|
1045
|
+
return __generator(this, function (_d) {
|
|
1046
|
+
switch (_d.label) {
|
|
1047
|
+
case 0:
|
|
1048
|
+
_a = [__assign({}, output)];
|
|
1049
|
+
_c = {};
|
|
1050
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1051
|
+
case 1:
|
|
1052
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1053
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
+
_b = errorCode;
|
|
1055
|
+
switch (_b) {
|
|
1056
|
+
case "InvalidJobStateException": return [3, 2];
|
|
1057
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 2];
|
|
1058
|
+
case "InvalidResourceException": return [3, 4];
|
|
1059
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
1060
|
+
}
|
|
1061
|
+
return [3, 6];
|
|
1062
|
+
case 2: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
1063
|
+
case 3: throw _d.sent();
|
|
1064
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1065
|
+
case 5: throw _d.sent();
|
|
1066
|
+
case 6:
|
|
1067
|
+
parsedBody = parsedOutput.body;
|
|
1068
|
+
throwDefaultError({
|
|
1069
|
+
output: output,
|
|
1070
|
+
parsedBody: parsedBody,
|
|
1071
|
+
exceptionCtor: __BaseException,
|
|
1072
|
+
errorCode: errorCode,
|
|
1073
|
+
});
|
|
1074
|
+
_d.label = 7;
|
|
1075
|
+
case 7: return [2];
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
}); };
|
|
1079
|
+
export var deserializeAws_json1_1GetSnowballUsageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1080
|
+
var data, contents, response;
|
|
1081
|
+
return __generator(this, function (_a) {
|
|
1082
|
+
switch (_a.label) {
|
|
1083
|
+
case 0:
|
|
1084
|
+
if (output.statusCode >= 300) {
|
|
1085
|
+
return [2, deserializeAws_json1_1GetSnowballUsageCommandError(output, context)];
|
|
1086
|
+
}
|
|
1087
|
+
return [4, parseBody(output.body, context)];
|
|
1088
|
+
case 1:
|
|
1089
|
+
data = _a.sent();
|
|
1090
|
+
contents = {};
|
|
1091
|
+
contents = deserializeAws_json1_1GetSnowballUsageResult(data, context);
|
|
1092
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1093
|
+
return [2, Promise.resolve(response)];
|
|
1094
|
+
}
|
|
1095
|
+
});
|
|
1096
|
+
}); };
|
|
1097
|
+
var deserializeAws_json1_1GetSnowballUsageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1098
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1099
|
+
var _b;
|
|
1100
|
+
return __generator(this, function (_c) {
|
|
1101
|
+
switch (_c.label) {
|
|
1102
|
+
case 0:
|
|
1103
|
+
_a = [__assign({}, output)];
|
|
1104
|
+
_b = {};
|
|
1105
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1106
|
+
case 1:
|
|
1107
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1108
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
+
parsedBody = parsedOutput.body;
|
|
1110
|
+
throwDefaultError({
|
|
1111
|
+
output: output,
|
|
1112
|
+
parsedBody: parsedBody,
|
|
1113
|
+
exceptionCtor: __BaseException,
|
|
1114
|
+
errorCode: errorCode,
|
|
1115
|
+
});
|
|
1116
|
+
return [2];
|
|
1117
|
+
}
|
|
1118
|
+
});
|
|
1119
|
+
}); };
|
|
1120
|
+
export var deserializeAws_json1_1GetSoftwareUpdatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1121
|
+
var data, contents, response;
|
|
1122
|
+
return __generator(this, function (_a) {
|
|
1123
|
+
switch (_a.label) {
|
|
1124
|
+
case 0:
|
|
1125
|
+
if (output.statusCode >= 300) {
|
|
1126
|
+
return [2, deserializeAws_json1_1GetSoftwareUpdatesCommandError(output, context)];
|
|
1127
|
+
}
|
|
1128
|
+
return [4, parseBody(output.body, context)];
|
|
1129
|
+
case 1:
|
|
1130
|
+
data = _a.sent();
|
|
1131
|
+
contents = {};
|
|
1132
|
+
contents = deserializeAws_json1_1GetSoftwareUpdatesResult(data, context);
|
|
1133
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1134
|
+
return [2, Promise.resolve(response)];
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}); };
|
|
1138
|
+
var deserializeAws_json1_1GetSoftwareUpdatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1139
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1140
|
+
var _c;
|
|
1141
|
+
return __generator(this, function (_d) {
|
|
1142
|
+
switch (_d.label) {
|
|
1143
|
+
case 0:
|
|
1144
|
+
_a = [__assign({}, output)];
|
|
1145
|
+
_c = {};
|
|
1146
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1147
|
+
case 1:
|
|
1148
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1149
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
+
_b = errorCode;
|
|
1151
|
+
switch (_b) {
|
|
1152
|
+
case "InvalidJobStateException": return [3, 2];
|
|
1153
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 2];
|
|
1154
|
+
case "InvalidResourceException": return [3, 4];
|
|
1155
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
1156
|
+
}
|
|
1157
|
+
return [3, 6];
|
|
1158
|
+
case 2: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
1159
|
+
case 3: throw _d.sent();
|
|
1160
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1161
|
+
case 5: throw _d.sent();
|
|
1162
|
+
case 6:
|
|
1163
|
+
parsedBody = parsedOutput.body;
|
|
1164
|
+
throwDefaultError({
|
|
1165
|
+
output: output,
|
|
1166
|
+
parsedBody: parsedBody,
|
|
1167
|
+
exceptionCtor: __BaseException,
|
|
1168
|
+
errorCode: errorCode,
|
|
1169
|
+
});
|
|
1170
|
+
_d.label = 7;
|
|
1171
|
+
case 7: return [2];
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
}); };
|
|
1175
|
+
export var deserializeAws_json1_1ListClusterJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1176
|
+
var data, contents, response;
|
|
1177
|
+
return __generator(this, function (_a) {
|
|
1178
|
+
switch (_a.label) {
|
|
1179
|
+
case 0:
|
|
1180
|
+
if (output.statusCode >= 300) {
|
|
1181
|
+
return [2, deserializeAws_json1_1ListClusterJobsCommandError(output, context)];
|
|
1182
|
+
}
|
|
1183
|
+
return [4, parseBody(output.body, context)];
|
|
1184
|
+
case 1:
|
|
1185
|
+
data = _a.sent();
|
|
1186
|
+
contents = {};
|
|
1187
|
+
contents = deserializeAws_json1_1ListClusterJobsResult(data, context);
|
|
1188
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1189
|
+
return [2, Promise.resolve(response)];
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
}); };
|
|
1193
|
+
var deserializeAws_json1_1ListClusterJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1194
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1195
|
+
var _c;
|
|
1196
|
+
return __generator(this, function (_d) {
|
|
1197
|
+
switch (_d.label) {
|
|
1198
|
+
case 0:
|
|
1199
|
+
_a = [__assign({}, output)];
|
|
1200
|
+
_c = {};
|
|
1201
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1202
|
+
case 1:
|
|
1203
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1204
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
+
_b = errorCode;
|
|
1206
|
+
switch (_b) {
|
|
1207
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1208
|
+
case "com.amazonaws.snowball#InvalidNextTokenException": return [3, 2];
|
|
1209
|
+
case "InvalidResourceException": return [3, 4];
|
|
1210
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
1211
|
+
}
|
|
1212
|
+
return [3, 6];
|
|
1213
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1214
|
+
case 3: throw _d.sent();
|
|
1215
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1216
|
+
case 5: throw _d.sent();
|
|
1217
|
+
case 6:
|
|
1218
|
+
parsedBody = parsedOutput.body;
|
|
1219
|
+
throwDefaultError({
|
|
1220
|
+
output: output,
|
|
1221
|
+
parsedBody: parsedBody,
|
|
1222
|
+
exceptionCtor: __BaseException,
|
|
1223
|
+
errorCode: errorCode,
|
|
1224
|
+
});
|
|
1225
|
+
_d.label = 7;
|
|
1226
|
+
case 7: return [2];
|
|
1227
|
+
}
|
|
1228
|
+
});
|
|
1229
|
+
}); };
|
|
1230
|
+
export var deserializeAws_json1_1ListClustersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1231
|
+
var data, contents, response;
|
|
1232
|
+
return __generator(this, function (_a) {
|
|
1233
|
+
switch (_a.label) {
|
|
1234
|
+
case 0:
|
|
1235
|
+
if (output.statusCode >= 300) {
|
|
1236
|
+
return [2, deserializeAws_json1_1ListClustersCommandError(output, context)];
|
|
1237
|
+
}
|
|
1238
|
+
return [4, parseBody(output.body, context)];
|
|
1239
|
+
case 1:
|
|
1240
|
+
data = _a.sent();
|
|
1241
|
+
contents = {};
|
|
1242
|
+
contents = deserializeAws_json1_1ListClustersResult(data, context);
|
|
1243
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1244
|
+
return [2, Promise.resolve(response)];
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
}); };
|
|
1248
|
+
var deserializeAws_json1_1ListClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1249
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1250
|
+
var _c;
|
|
1251
|
+
return __generator(this, function (_d) {
|
|
1252
|
+
switch (_d.label) {
|
|
1253
|
+
case 0:
|
|
1254
|
+
_a = [__assign({}, output)];
|
|
1255
|
+
_c = {};
|
|
1256
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1257
|
+
case 1:
|
|
1258
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1259
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
+
_b = errorCode;
|
|
1261
|
+
switch (_b) {
|
|
1262
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1263
|
+
case "com.amazonaws.snowball#InvalidNextTokenException": return [3, 2];
|
|
1264
|
+
}
|
|
1265
|
+
return [3, 4];
|
|
1266
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1267
|
+
case 3: throw _d.sent();
|
|
1268
|
+
case 4:
|
|
1269
|
+
parsedBody = parsedOutput.body;
|
|
1270
|
+
throwDefaultError({
|
|
1271
|
+
output: output,
|
|
1272
|
+
parsedBody: parsedBody,
|
|
1273
|
+
exceptionCtor: __BaseException,
|
|
1274
|
+
errorCode: errorCode,
|
|
1275
|
+
});
|
|
1276
|
+
_d.label = 5;
|
|
1277
|
+
case 5: return [2];
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
}); };
|
|
1281
|
+
export var deserializeAws_json1_1ListCompatibleImagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1282
|
+
var data, contents, response;
|
|
1283
|
+
return __generator(this, function (_a) {
|
|
1284
|
+
switch (_a.label) {
|
|
1285
|
+
case 0:
|
|
1286
|
+
if (output.statusCode >= 300) {
|
|
1287
|
+
return [2, deserializeAws_json1_1ListCompatibleImagesCommandError(output, context)];
|
|
1288
|
+
}
|
|
1289
|
+
return [4, parseBody(output.body, context)];
|
|
1290
|
+
case 1:
|
|
1291
|
+
data = _a.sent();
|
|
1292
|
+
contents = {};
|
|
1293
|
+
contents = deserializeAws_json1_1ListCompatibleImagesResult(data, context);
|
|
1294
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1295
|
+
return [2, Promise.resolve(response)];
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
}); };
|
|
1299
|
+
var deserializeAws_json1_1ListCompatibleImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1300
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1301
|
+
var _c;
|
|
1302
|
+
return __generator(this, function (_d) {
|
|
1303
|
+
switch (_d.label) {
|
|
1304
|
+
case 0:
|
|
1305
|
+
_a = [__assign({}, output)];
|
|
1306
|
+
_c = {};
|
|
1307
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1308
|
+
case 1:
|
|
1309
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1310
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
|
+
_b = errorCode;
|
|
1312
|
+
switch (_b) {
|
|
1313
|
+
case "Ec2RequestFailedException": return [3, 2];
|
|
1314
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException": return [3, 2];
|
|
1315
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1316
|
+
case "com.amazonaws.snowball#InvalidNextTokenException": return [3, 4];
|
|
1317
|
+
}
|
|
1318
|
+
return [3, 6];
|
|
1319
|
+
case 2: return [4, deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1320
|
+
case 3: throw _d.sent();
|
|
1321
|
+
case 4: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1322
|
+
case 5: throw _d.sent();
|
|
1323
|
+
case 6:
|
|
1324
|
+
parsedBody = parsedOutput.body;
|
|
1325
|
+
throwDefaultError({
|
|
1326
|
+
output: output,
|
|
1327
|
+
parsedBody: parsedBody,
|
|
1328
|
+
exceptionCtor: __BaseException,
|
|
1329
|
+
errorCode: errorCode,
|
|
1330
|
+
});
|
|
1331
|
+
_d.label = 7;
|
|
1332
|
+
case 7: return [2];
|
|
1333
|
+
}
|
|
1334
|
+
});
|
|
1335
|
+
}); };
|
|
1336
|
+
export var deserializeAws_json1_1ListJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1337
|
+
var data, contents, response;
|
|
1338
|
+
return __generator(this, function (_a) {
|
|
1339
|
+
switch (_a.label) {
|
|
1340
|
+
case 0:
|
|
1341
|
+
if (output.statusCode >= 300) {
|
|
1342
|
+
return [2, deserializeAws_json1_1ListJobsCommandError(output, context)];
|
|
1343
|
+
}
|
|
1344
|
+
return [4, parseBody(output.body, context)];
|
|
1345
|
+
case 1:
|
|
1346
|
+
data = _a.sent();
|
|
1347
|
+
contents = {};
|
|
1348
|
+
contents = deserializeAws_json1_1ListJobsResult(data, context);
|
|
1349
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1350
|
+
return [2, Promise.resolve(response)];
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
}); };
|
|
1354
|
+
var deserializeAws_json1_1ListJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1355
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1356
|
+
var _c;
|
|
1357
|
+
return __generator(this, function (_d) {
|
|
1358
|
+
switch (_d.label) {
|
|
1359
|
+
case 0:
|
|
1360
|
+
_a = [__assign({}, output)];
|
|
1361
|
+
_c = {};
|
|
1362
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1363
|
+
case 1:
|
|
1364
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1365
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
|
+
_b = errorCode;
|
|
1367
|
+
switch (_b) {
|
|
1368
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1369
|
+
case "com.amazonaws.snowball#InvalidNextTokenException": return [3, 2];
|
|
1370
|
+
}
|
|
1371
|
+
return [3, 4];
|
|
1372
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1373
|
+
case 3: throw _d.sent();
|
|
1374
|
+
case 4:
|
|
1375
|
+
parsedBody = parsedOutput.body;
|
|
1376
|
+
throwDefaultError({
|
|
1377
|
+
output: output,
|
|
1378
|
+
parsedBody: parsedBody,
|
|
1379
|
+
exceptionCtor: __BaseException,
|
|
1380
|
+
errorCode: errorCode,
|
|
1381
|
+
});
|
|
1382
|
+
_d.label = 5;
|
|
1383
|
+
case 5: return [2];
|
|
1384
|
+
}
|
|
1385
|
+
});
|
|
1386
|
+
}); };
|
|
1387
|
+
export var deserializeAws_json1_1ListLongTermPricingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
+
var data, contents, response;
|
|
1389
|
+
return __generator(this, function (_a) {
|
|
1390
|
+
switch (_a.label) {
|
|
1391
|
+
case 0:
|
|
1392
|
+
if (output.statusCode >= 300) {
|
|
1393
|
+
return [2, deserializeAws_json1_1ListLongTermPricingCommandError(output, context)];
|
|
1394
|
+
}
|
|
1395
|
+
return [4, parseBody(output.body, context)];
|
|
1396
|
+
case 1:
|
|
1397
|
+
data = _a.sent();
|
|
1398
|
+
contents = {};
|
|
1399
|
+
contents = deserializeAws_json1_1ListLongTermPricingResult(data, context);
|
|
1400
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1401
|
+
return [2, Promise.resolve(response)];
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
}); };
|
|
1405
|
+
var deserializeAws_json1_1ListLongTermPricingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1406
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1407
|
+
var _c;
|
|
1408
|
+
return __generator(this, function (_d) {
|
|
1409
|
+
switch (_d.label) {
|
|
1410
|
+
case 0:
|
|
1411
|
+
_a = [__assign({}, output)];
|
|
1412
|
+
_c = {};
|
|
1413
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1414
|
+
case 1:
|
|
1415
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1416
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
_b = errorCode;
|
|
1418
|
+
switch (_b) {
|
|
1419
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1420
|
+
case "com.amazonaws.snowball#InvalidNextTokenException": return [3, 2];
|
|
1421
|
+
case "InvalidResourceException": return [3, 4];
|
|
1422
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
1423
|
+
}
|
|
1424
|
+
return [3, 6];
|
|
1425
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1426
|
+
case 3: throw _d.sent();
|
|
1427
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1428
|
+
case 5: throw _d.sent();
|
|
1429
|
+
case 6:
|
|
1430
|
+
parsedBody = parsedOutput.body;
|
|
1431
|
+
throwDefaultError({
|
|
1432
|
+
output: output,
|
|
1433
|
+
parsedBody: parsedBody,
|
|
1434
|
+
exceptionCtor: __BaseException,
|
|
1435
|
+
errorCode: errorCode,
|
|
1436
|
+
});
|
|
1437
|
+
_d.label = 7;
|
|
1438
|
+
case 7: return [2];
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
}); };
|
|
1442
|
+
export var deserializeAws_json1_1UpdateClusterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1443
|
+
var data, contents, response;
|
|
1444
|
+
return __generator(this, function (_a) {
|
|
1445
|
+
switch (_a.label) {
|
|
1446
|
+
case 0:
|
|
1447
|
+
if (output.statusCode >= 300) {
|
|
1448
|
+
return [2, deserializeAws_json1_1UpdateClusterCommandError(output, context)];
|
|
1449
|
+
}
|
|
1450
|
+
return [4, parseBody(output.body, context)];
|
|
1451
|
+
case 1:
|
|
1452
|
+
data = _a.sent();
|
|
1453
|
+
contents = {};
|
|
1454
|
+
contents = deserializeAws_json1_1UpdateClusterResult(data, context);
|
|
1455
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1456
|
+
return [2, Promise.resolve(response)];
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
}); };
|
|
1460
|
+
var deserializeAws_json1_1UpdateClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1461
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1462
|
+
var _c;
|
|
1463
|
+
return __generator(this, function (_d) {
|
|
1464
|
+
switch (_d.label) {
|
|
1465
|
+
case 0:
|
|
1466
|
+
_a = [__assign({}, output)];
|
|
1467
|
+
_c = {};
|
|
1468
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1469
|
+
case 1:
|
|
1470
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1471
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
+
_b = errorCode;
|
|
1473
|
+
switch (_b) {
|
|
1474
|
+
case "Ec2RequestFailedException": return [3, 2];
|
|
1475
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException": return [3, 2];
|
|
1476
|
+
case "InvalidInputCombinationException": return [3, 4];
|
|
1477
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException": return [3, 4];
|
|
1478
|
+
case "InvalidJobStateException": return [3, 6];
|
|
1479
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 6];
|
|
1480
|
+
case "InvalidResourceException": return [3, 8];
|
|
1481
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 8];
|
|
1482
|
+
case "KMSRequestFailedException": return [3, 10];
|
|
1483
|
+
case "com.amazonaws.snowball#KMSRequestFailedException": return [3, 10];
|
|
1484
|
+
}
|
|
1485
|
+
return [3, 12];
|
|
1486
|
+
case 2: return [4, deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1487
|
+
case 3: throw _d.sent();
|
|
1488
|
+
case 4: return [4, deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)];
|
|
1489
|
+
case 5: throw _d.sent();
|
|
1490
|
+
case 6: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
1491
|
+
case 7: throw _d.sent();
|
|
1492
|
+
case 8: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1493
|
+
case 9: throw _d.sent();
|
|
1494
|
+
case 10: return [4, deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)];
|
|
1495
|
+
case 11: throw _d.sent();
|
|
1496
|
+
case 12:
|
|
1497
|
+
parsedBody = parsedOutput.body;
|
|
1498
|
+
throwDefaultError({
|
|
1499
|
+
output: output,
|
|
1500
|
+
parsedBody: parsedBody,
|
|
1501
|
+
exceptionCtor: __BaseException,
|
|
1502
|
+
errorCode: errorCode,
|
|
1503
|
+
});
|
|
1504
|
+
_d.label = 13;
|
|
1505
|
+
case 13: return [2];
|
|
1506
|
+
}
|
|
1507
|
+
});
|
|
1508
|
+
}); };
|
|
1509
|
+
export var deserializeAws_json1_1UpdateJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1510
|
+
var data, contents, response;
|
|
1511
|
+
return __generator(this, function (_a) {
|
|
1512
|
+
switch (_a.label) {
|
|
1513
|
+
case 0:
|
|
1514
|
+
if (output.statusCode >= 300) {
|
|
1515
|
+
return [2, deserializeAws_json1_1UpdateJobCommandError(output, context)];
|
|
1516
|
+
}
|
|
1517
|
+
return [4, parseBody(output.body, context)];
|
|
1518
|
+
case 1:
|
|
1519
|
+
data = _a.sent();
|
|
1520
|
+
contents = {};
|
|
1521
|
+
contents = deserializeAws_json1_1UpdateJobResult(data, context);
|
|
1522
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1523
|
+
return [2, Promise.resolve(response)];
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
}); };
|
|
1527
|
+
var deserializeAws_json1_1UpdateJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1528
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1529
|
+
var _c;
|
|
1530
|
+
return __generator(this, function (_d) {
|
|
1531
|
+
switch (_d.label) {
|
|
1532
|
+
case 0:
|
|
1533
|
+
_a = [__assign({}, output)];
|
|
1534
|
+
_c = {};
|
|
1535
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1536
|
+
case 1:
|
|
1537
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1538
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
+
_b = errorCode;
|
|
1540
|
+
switch (_b) {
|
|
1541
|
+
case "ClusterLimitExceededException": return [3, 2];
|
|
1542
|
+
case "com.amazonaws.snowball#ClusterLimitExceededException": return [3, 2];
|
|
1543
|
+
case "Ec2RequestFailedException": return [3, 4];
|
|
1544
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException": return [3, 4];
|
|
1545
|
+
case "InvalidInputCombinationException": return [3, 6];
|
|
1546
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException": return [3, 6];
|
|
1547
|
+
case "InvalidJobStateException": return [3, 8];
|
|
1548
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 8];
|
|
1549
|
+
case "InvalidResourceException": return [3, 10];
|
|
1550
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 10];
|
|
1551
|
+
case "KMSRequestFailedException": return [3, 12];
|
|
1552
|
+
case "com.amazonaws.snowball#KMSRequestFailedException": return [3, 12];
|
|
1553
|
+
}
|
|
1554
|
+
return [3, 14];
|
|
1555
|
+
case 2: return [4, deserializeAws_json1_1ClusterLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1556
|
+
case 3: throw _d.sent();
|
|
1557
|
+
case 4: return [4, deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)];
|
|
1558
|
+
case 5: throw _d.sent();
|
|
1559
|
+
case 6: return [4, deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)];
|
|
1560
|
+
case 7: throw _d.sent();
|
|
1561
|
+
case 8: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
1562
|
+
case 9: throw _d.sent();
|
|
1563
|
+
case 10: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1564
|
+
case 11: throw _d.sent();
|
|
1565
|
+
case 12: return [4, deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)];
|
|
1566
|
+
case 13: throw _d.sent();
|
|
1567
|
+
case 14:
|
|
1568
|
+
parsedBody = parsedOutput.body;
|
|
1569
|
+
throwDefaultError({
|
|
1570
|
+
output: output,
|
|
1571
|
+
parsedBody: parsedBody,
|
|
1572
|
+
exceptionCtor: __BaseException,
|
|
1573
|
+
errorCode: errorCode,
|
|
1574
|
+
});
|
|
1575
|
+
_d.label = 15;
|
|
1576
|
+
case 15: return [2];
|
|
1577
|
+
}
|
|
1578
|
+
});
|
|
1579
|
+
}); };
|
|
1580
|
+
export var deserializeAws_json1_1UpdateJobShipmentStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1581
|
+
var data, contents, response;
|
|
1582
|
+
return __generator(this, function (_a) {
|
|
1583
|
+
switch (_a.label) {
|
|
1584
|
+
case 0:
|
|
1585
|
+
if (output.statusCode >= 300) {
|
|
1586
|
+
return [2, deserializeAws_json1_1UpdateJobShipmentStateCommandError(output, context)];
|
|
1587
|
+
}
|
|
1588
|
+
return [4, parseBody(output.body, context)];
|
|
1589
|
+
case 1:
|
|
1590
|
+
data = _a.sent();
|
|
1591
|
+
contents = {};
|
|
1592
|
+
contents = deserializeAws_json1_1UpdateJobShipmentStateResult(data, context);
|
|
1593
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1594
|
+
return [2, Promise.resolve(response)];
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
}); };
|
|
1598
|
+
var deserializeAws_json1_1UpdateJobShipmentStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1599
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1600
|
+
var _c;
|
|
1601
|
+
return __generator(this, function (_d) {
|
|
1602
|
+
switch (_d.label) {
|
|
1603
|
+
case 0:
|
|
1604
|
+
_a = [__assign({}, output)];
|
|
1605
|
+
_c = {};
|
|
1606
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1607
|
+
case 1:
|
|
1608
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1609
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
_b = errorCode;
|
|
1611
|
+
switch (_b) {
|
|
1612
|
+
case "InvalidJobStateException": return [3, 2];
|
|
1613
|
+
case "com.amazonaws.snowball#InvalidJobStateException": return [3, 2];
|
|
1614
|
+
case "InvalidResourceException": return [3, 4];
|
|
1615
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 4];
|
|
1616
|
+
}
|
|
1617
|
+
return [3, 6];
|
|
1618
|
+
case 2: return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
1619
|
+
case 3: throw _d.sent();
|
|
1620
|
+
case 4: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1621
|
+
case 5: throw _d.sent();
|
|
1622
|
+
case 6:
|
|
1623
|
+
parsedBody = parsedOutput.body;
|
|
1624
|
+
throwDefaultError({
|
|
1625
|
+
output: output,
|
|
1626
|
+
parsedBody: parsedBody,
|
|
1627
|
+
exceptionCtor: __BaseException,
|
|
1628
|
+
errorCode: errorCode,
|
|
1629
|
+
});
|
|
1630
|
+
_d.label = 7;
|
|
1631
|
+
case 7: return [2];
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}); };
|
|
1635
|
+
export var deserializeAws_json1_1UpdateLongTermPricingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1636
|
+
var data, contents, response;
|
|
1637
|
+
return __generator(this, function (_a) {
|
|
1638
|
+
switch (_a.label) {
|
|
1639
|
+
case 0:
|
|
1640
|
+
if (output.statusCode >= 300) {
|
|
1641
|
+
return [2, deserializeAws_json1_1UpdateLongTermPricingCommandError(output, context)];
|
|
1642
|
+
}
|
|
1643
|
+
return [4, parseBody(output.body, context)];
|
|
1644
|
+
case 1:
|
|
1645
|
+
data = _a.sent();
|
|
1646
|
+
contents = {};
|
|
1647
|
+
contents = deserializeAws_json1_1UpdateLongTermPricingResult(data, context);
|
|
1648
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1649
|
+
return [2, Promise.resolve(response)];
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
}); };
|
|
1653
|
+
var deserializeAws_json1_1UpdateLongTermPricingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1654
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1655
|
+
var _c;
|
|
1656
|
+
return __generator(this, function (_d) {
|
|
1657
|
+
switch (_d.label) {
|
|
1658
|
+
case 0:
|
|
1659
|
+
_a = [__assign({}, output)];
|
|
1660
|
+
_c = {};
|
|
1661
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1662
|
+
case 1:
|
|
1663
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1664
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1665
|
+
_b = errorCode;
|
|
1666
|
+
switch (_b) {
|
|
1667
|
+
case "InvalidResourceException": return [3, 2];
|
|
1668
|
+
case "com.amazonaws.snowball#InvalidResourceException": return [3, 2];
|
|
1669
|
+
}
|
|
1670
|
+
return [3, 4];
|
|
1671
|
+
case 2: return [4, deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)];
|
|
1672
|
+
case 3: throw _d.sent();
|
|
1673
|
+
case 4:
|
|
1674
|
+
parsedBody = parsedOutput.body;
|
|
1675
|
+
throwDefaultError({
|
|
1676
|
+
output: output,
|
|
1677
|
+
parsedBody: parsedBody,
|
|
1678
|
+
exceptionCtor: __BaseException,
|
|
1679
|
+
errorCode: errorCode,
|
|
1680
|
+
});
|
|
1681
|
+
_d.label = 5;
|
|
1682
|
+
case 5: return [2];
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
}); };
|
|
1686
|
+
var deserializeAws_json1_1ClusterLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1687
|
+
var body, deserialized, exception;
|
|
1688
|
+
return __generator(this, function (_a) {
|
|
1689
|
+
body = parsedOutput.body;
|
|
1690
|
+
deserialized = deserializeAws_json1_1ClusterLimitExceededException(body, context);
|
|
1691
|
+
exception = new ClusterLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1692
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1693
|
+
});
|
|
1694
|
+
}); };
|
|
1695
|
+
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1696
|
+
var body, deserialized, exception;
|
|
1697
|
+
return __generator(this, function (_a) {
|
|
1698
|
+
body = parsedOutput.body;
|
|
1699
|
+
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1700
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1701
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1702
|
+
});
|
|
1703
|
+
}); };
|
|
1704
|
+
var deserializeAws_json1_1Ec2RequestFailedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1705
|
+
var body, deserialized, exception;
|
|
1706
|
+
return __generator(this, function (_a) {
|
|
1707
|
+
body = parsedOutput.body;
|
|
1708
|
+
deserialized = deserializeAws_json1_1Ec2RequestFailedException(body, context);
|
|
1709
|
+
exception = new Ec2RequestFailedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1710
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1711
|
+
});
|
|
1712
|
+
}); };
|
|
1713
|
+
var deserializeAws_json1_1InvalidAddressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1714
|
+
var body, deserialized, exception;
|
|
1715
|
+
return __generator(this, function (_a) {
|
|
1716
|
+
body = parsedOutput.body;
|
|
1717
|
+
deserialized = deserializeAws_json1_1InvalidAddressException(body, context);
|
|
1718
|
+
exception = new InvalidAddressException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1719
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1720
|
+
});
|
|
1721
|
+
}); };
|
|
1722
|
+
var deserializeAws_json1_1InvalidInputCombinationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1723
|
+
var body, deserialized, exception;
|
|
1724
|
+
return __generator(this, function (_a) {
|
|
1725
|
+
body = parsedOutput.body;
|
|
1726
|
+
deserialized = deserializeAws_json1_1InvalidInputCombinationException(body, context);
|
|
1727
|
+
exception = new InvalidInputCombinationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1728
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1729
|
+
});
|
|
1730
|
+
}); };
|
|
1731
|
+
var deserializeAws_json1_1InvalidJobStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1732
|
+
var body, deserialized, exception;
|
|
1733
|
+
return __generator(this, function (_a) {
|
|
1734
|
+
body = parsedOutput.body;
|
|
1735
|
+
deserialized = deserializeAws_json1_1InvalidJobStateException(body, context);
|
|
1736
|
+
exception = new InvalidJobStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1737
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1738
|
+
});
|
|
1739
|
+
}); };
|
|
1740
|
+
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1741
|
+
var body, deserialized, exception;
|
|
1742
|
+
return __generator(this, function (_a) {
|
|
1743
|
+
body = parsedOutput.body;
|
|
1744
|
+
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
1745
|
+
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1746
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1747
|
+
});
|
|
1748
|
+
}); };
|
|
1749
|
+
var deserializeAws_json1_1InvalidResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1750
|
+
var body, deserialized, exception;
|
|
1751
|
+
return __generator(this, function (_a) {
|
|
1752
|
+
body = parsedOutput.body;
|
|
1753
|
+
deserialized = deserializeAws_json1_1InvalidResourceException(body, context);
|
|
1754
|
+
exception = new InvalidResourceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1755
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1756
|
+
});
|
|
1757
|
+
}); };
|
|
1758
|
+
var deserializeAws_json1_1KMSRequestFailedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1759
|
+
var body, deserialized, exception;
|
|
1760
|
+
return __generator(this, function (_a) {
|
|
1761
|
+
body = parsedOutput.body;
|
|
1762
|
+
deserialized = deserializeAws_json1_1KMSRequestFailedException(body, context);
|
|
1763
|
+
exception = new KMSRequestFailedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1764
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1765
|
+
});
|
|
1766
|
+
}); };
|
|
1767
|
+
var deserializeAws_json1_1ReturnShippingLabelAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1768
|
+
var body, deserialized, exception;
|
|
1769
|
+
return __generator(this, function (_a) {
|
|
1770
|
+
body = parsedOutput.body;
|
|
1771
|
+
deserialized = deserializeAws_json1_1ReturnShippingLabelAlreadyExistsException(body, context);
|
|
1772
|
+
exception = new ReturnShippingLabelAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1773
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1774
|
+
});
|
|
1775
|
+
}); };
|
|
1776
|
+
var deserializeAws_json1_1UnsupportedAddressExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1777
|
+
var body, deserialized, exception;
|
|
1778
|
+
return __generator(this, function (_a) {
|
|
1779
|
+
body = parsedOutput.body;
|
|
1780
|
+
deserialized = deserializeAws_json1_1UnsupportedAddressException(body, context);
|
|
1781
|
+
exception = new UnsupportedAddressException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1782
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1783
|
+
});
|
|
1784
|
+
}); };
|
|
1785
|
+
var serializeAws_json1_1Address = function (input, context) {
|
|
1786
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressId != null && { AddressId: input.AddressId })), (input.City != null && { City: input.City })), (input.Company != null && { Company: input.Company })), (input.Country != null && { Country: input.Country })), (input.IsRestricted != null && { IsRestricted: input.IsRestricted })), (input.Landmark != null && { Landmark: input.Landmark })), (input.Name != null && { Name: input.Name })), (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber })), (input.PostalCode != null && { PostalCode: input.PostalCode })), (input.PrefectureOrDistrict != null && { PrefectureOrDistrict: input.PrefectureOrDistrict })), (input.StateOrProvince != null && { StateOrProvince: input.StateOrProvince })), (input.Street1 != null && { Street1: input.Street1 })), (input.Street2 != null && { Street2: input.Street2 })), (input.Street3 != null && { Street3: input.Street3 }));
|
|
1270
1787
|
};
|
|
1271
|
-
|
|
1272
|
-
return {
|
|
1273
|
-
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
1274
|
-
};
|
|
1788
|
+
var serializeAws_json1_1CancelClusterRequest = function (input, context) {
|
|
1789
|
+
return __assign({}, (input.ClusterId != null && { ClusterId: input.ClusterId }));
|
|
1275
1790
|
};
|
|
1276
|
-
|
|
1277
|
-
return {
|
|
1278
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1279
|
-
};
|
|
1791
|
+
var serializeAws_json1_1CancelJobRequest = function (input, context) {
|
|
1792
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
1280
1793
|
};
|
|
1281
|
-
|
|
1282
|
-
return {
|
|
1283
|
-
...(input.Address != null && { Address: serializeAws_json1_1Address(input.Address, context) }),
|
|
1284
|
-
};
|
|
1794
|
+
var serializeAws_json1_1CreateAddressRequest = function (input, context) {
|
|
1795
|
+
return __assign({}, (input.Address != null && { Address: serializeAws_json1_1Address(input.Address, context) }));
|
|
1285
1796
|
};
|
|
1286
|
-
|
|
1287
|
-
return {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
|
|
1291
|
-
...(input.JobType != null && { JobType: input.JobType }),
|
|
1292
|
-
...(input.KmsKeyARN != null && { KmsKeyARN: input.KmsKeyARN }),
|
|
1293
|
-
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1294
|
-
...(input.OnDeviceServiceConfiguration != null && {
|
|
1295
|
-
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1296
|
-
}),
|
|
1297
|
-
...(input.RemoteManagement != null && { RemoteManagement: input.RemoteManagement }),
|
|
1298
|
-
...(input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) }),
|
|
1299
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1300
|
-
...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
|
|
1301
|
-
...(input.SnowballType != null && { SnowballType: input.SnowballType }),
|
|
1302
|
-
...(input.TaxDocuments != null && { TaxDocuments: serializeAws_json1_1TaxDocuments(input.TaxDocuments, context) }),
|
|
1303
|
-
};
|
|
1797
|
+
var serializeAws_json1_1CreateClusterRequest = function (input, context) {
|
|
1798
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressId != null && { AddressId: input.AddressId })), (input.Description != null && { Description: input.Description })), (input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId })), (input.JobType != null && { JobType: input.JobType })), (input.KmsKeyARN != null && { KmsKeyARN: input.KmsKeyARN })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OnDeviceServiceConfiguration != null && {
|
|
1799
|
+
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1800
|
+
})), (input.RemoteManagement != null && { RemoteManagement: input.RemoteManagement })), (input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.ShippingOption != null && { ShippingOption: input.ShippingOption })), (input.SnowballType != null && { SnowballType: input.SnowballType })), (input.TaxDocuments != null && { TaxDocuments: serializeAws_json1_1TaxDocuments(input.TaxDocuments, context) }));
|
|
1304
1801
|
};
|
|
1305
|
-
|
|
1306
|
-
return {
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
DeviceConfiguration: serializeAws_json1_1DeviceConfiguration(input.DeviceConfiguration, context),
|
|
1312
|
-
}),
|
|
1313
|
-
...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
|
|
1314
|
-
...(input.JobType != null && { JobType: input.JobType }),
|
|
1315
|
-
...(input.KmsKeyARN != null && { KmsKeyARN: input.KmsKeyARN }),
|
|
1316
|
-
...(input.LongTermPricingId != null && { LongTermPricingId: input.LongTermPricingId }),
|
|
1317
|
-
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1318
|
-
...(input.OnDeviceServiceConfiguration != null && {
|
|
1319
|
-
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1320
|
-
}),
|
|
1321
|
-
...(input.RemoteManagement != null && { RemoteManagement: input.RemoteManagement }),
|
|
1322
|
-
...(input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) }),
|
|
1323
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1324
|
-
...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
|
|
1325
|
-
...(input.SnowballCapacityPreference != null && { SnowballCapacityPreference: input.SnowballCapacityPreference }),
|
|
1326
|
-
...(input.SnowballType != null && { SnowballType: input.SnowballType }),
|
|
1327
|
-
...(input.TaxDocuments != null && { TaxDocuments: serializeAws_json1_1TaxDocuments(input.TaxDocuments, context) }),
|
|
1328
|
-
};
|
|
1802
|
+
var serializeAws_json1_1CreateJobRequest = function (input, context) {
|
|
1803
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressId != null && { AddressId: input.AddressId })), (input.ClusterId != null && { ClusterId: input.ClusterId })), (input.Description != null && { Description: input.Description })), (input.DeviceConfiguration != null && {
|
|
1804
|
+
DeviceConfiguration: serializeAws_json1_1DeviceConfiguration(input.DeviceConfiguration, context),
|
|
1805
|
+
})), (input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId })), (input.JobType != null && { JobType: input.JobType })), (input.KmsKeyARN != null && { KmsKeyARN: input.KmsKeyARN })), (input.LongTermPricingId != null && { LongTermPricingId: input.LongTermPricingId })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OnDeviceServiceConfiguration != null && {
|
|
1806
|
+
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1807
|
+
})), (input.RemoteManagement != null && { RemoteManagement: input.RemoteManagement })), (input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.ShippingOption != null && { ShippingOption: input.ShippingOption })), (input.SnowballCapacityPreference != null && { SnowballCapacityPreference: input.SnowballCapacityPreference })), (input.SnowballType != null && { SnowballType: input.SnowballType })), (input.TaxDocuments != null && { TaxDocuments: serializeAws_json1_1TaxDocuments(input.TaxDocuments, context) }));
|
|
1329
1808
|
};
|
|
1330
|
-
|
|
1331
|
-
return {
|
|
1332
|
-
...(input.IsLongTermPricingAutoRenew != null && { IsLongTermPricingAutoRenew: input.IsLongTermPricingAutoRenew }),
|
|
1333
|
-
...(input.LongTermPricingType != null && { LongTermPricingType: input.LongTermPricingType }),
|
|
1334
|
-
...(input.SnowballType != null && { SnowballType: input.SnowballType }),
|
|
1335
|
-
};
|
|
1809
|
+
var serializeAws_json1_1CreateLongTermPricingRequest = function (input, context) {
|
|
1810
|
+
return __assign(__assign(__assign({}, (input.IsLongTermPricingAutoRenew != null && { IsLongTermPricingAutoRenew: input.IsLongTermPricingAutoRenew })), (input.LongTermPricingType != null && { LongTermPricingType: input.LongTermPricingType })), (input.SnowballType != null && { SnowballType: input.SnowballType }));
|
|
1336
1811
|
};
|
|
1337
|
-
|
|
1338
|
-
return {
|
|
1339
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1340
|
-
...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
|
|
1341
|
-
};
|
|
1812
|
+
var serializeAws_json1_1CreateReturnShippingLabelRequest = function (input, context) {
|
|
1813
|
+
return __assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.ShippingOption != null && { ShippingOption: input.ShippingOption }));
|
|
1342
1814
|
};
|
|
1343
|
-
|
|
1344
|
-
return {
|
|
1345
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1346
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1347
|
-
};
|
|
1815
|
+
var serializeAws_json1_1DescribeAddressesRequest = function (input, context) {
|
|
1816
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1348
1817
|
};
|
|
1349
|
-
|
|
1350
|
-
return {
|
|
1351
|
-
...(input.AddressId != null && { AddressId: input.AddressId }),
|
|
1352
|
-
};
|
|
1818
|
+
var serializeAws_json1_1DescribeAddressRequest = function (input, context) {
|
|
1819
|
+
return __assign({}, (input.AddressId != null && { AddressId: input.AddressId }));
|
|
1353
1820
|
};
|
|
1354
|
-
|
|
1355
|
-
return {
|
|
1356
|
-
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
1357
|
-
};
|
|
1821
|
+
var serializeAws_json1_1DescribeClusterRequest = function (input, context) {
|
|
1822
|
+
return __assign({}, (input.ClusterId != null && { ClusterId: input.ClusterId }));
|
|
1358
1823
|
};
|
|
1359
|
-
|
|
1360
|
-
return {
|
|
1361
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1362
|
-
};
|
|
1824
|
+
var serializeAws_json1_1DescribeJobRequest = function (input, context) {
|
|
1825
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
1363
1826
|
};
|
|
1364
|
-
|
|
1365
|
-
return {
|
|
1366
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1367
|
-
};
|
|
1827
|
+
var serializeAws_json1_1DescribeReturnShippingLabelRequest = function (input, context) {
|
|
1828
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
1368
1829
|
};
|
|
1369
|
-
|
|
1370
|
-
return {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
}),
|
|
1374
|
-
};
|
|
1830
|
+
var serializeAws_json1_1DeviceConfiguration = function (input, context) {
|
|
1831
|
+
return __assign({}, (input.SnowconeDeviceConfiguration != null && {
|
|
1832
|
+
SnowconeDeviceConfiguration: serializeAws_json1_1SnowconeDeviceConfiguration(input.SnowconeDeviceConfiguration, context),
|
|
1833
|
+
}));
|
|
1375
1834
|
};
|
|
1376
|
-
|
|
1377
|
-
return {
|
|
1378
|
-
...(input.AmiId != null && { AmiId: input.AmiId }),
|
|
1379
|
-
...(input.SnowballAmiId != null && { SnowballAmiId: input.SnowballAmiId }),
|
|
1380
|
-
};
|
|
1835
|
+
var serializeAws_json1_1Ec2AmiResource = function (input, context) {
|
|
1836
|
+
return __assign(__assign({}, (input.AmiId != null && { AmiId: input.AmiId })), (input.SnowballAmiId != null && { SnowballAmiId: input.SnowballAmiId }));
|
|
1381
1837
|
};
|
|
1382
|
-
|
|
1838
|
+
var serializeAws_json1_1Ec2AmiResourceList = function (input, context) {
|
|
1383
1839
|
return input
|
|
1384
|
-
.filter((e)
|
|
1385
|
-
.map((entry)
|
|
1840
|
+
.filter(function (e) { return e != null; })
|
|
1841
|
+
.map(function (entry) {
|
|
1386
1842
|
return serializeAws_json1_1Ec2AmiResource(entry, context);
|
|
1387
1843
|
});
|
|
1388
1844
|
};
|
|
1389
|
-
|
|
1390
|
-
return {
|
|
1391
|
-
...(input.EventResourceARN != null && { EventResourceARN: input.EventResourceARN }),
|
|
1392
|
-
};
|
|
1845
|
+
var serializeAws_json1_1EventTriggerDefinition = function (input, context) {
|
|
1846
|
+
return __assign({}, (input.EventResourceARN != null && { EventResourceARN: input.EventResourceARN }));
|
|
1393
1847
|
};
|
|
1394
|
-
|
|
1848
|
+
var serializeAws_json1_1EventTriggerDefinitionList = function (input, context) {
|
|
1395
1849
|
return input
|
|
1396
|
-
.filter((e)
|
|
1397
|
-
.map((entry)
|
|
1850
|
+
.filter(function (e) { return e != null; })
|
|
1851
|
+
.map(function (entry) {
|
|
1398
1852
|
return serializeAws_json1_1EventTriggerDefinition(entry, context);
|
|
1399
1853
|
});
|
|
1400
1854
|
};
|
|
1401
|
-
|
|
1402
|
-
return {
|
|
1403
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1404
|
-
};
|
|
1855
|
+
var serializeAws_json1_1GetJobManifestRequest = function (input, context) {
|
|
1856
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
1405
1857
|
};
|
|
1406
|
-
|
|
1407
|
-
return {
|
|
1408
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1409
|
-
};
|
|
1858
|
+
var serializeAws_json1_1GetJobUnlockCodeRequest = function (input, context) {
|
|
1859
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
1410
1860
|
};
|
|
1411
|
-
|
|
1861
|
+
var serializeAws_json1_1GetSnowballUsageRequest = function (input, context) {
|
|
1412
1862
|
return {};
|
|
1413
1863
|
};
|
|
1414
|
-
|
|
1415
|
-
return {
|
|
1416
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1417
|
-
};
|
|
1864
|
+
var serializeAws_json1_1GetSoftwareUpdatesRequest = function (input, context) {
|
|
1865
|
+
return __assign({}, (input.JobId != null && { JobId: input.JobId }));
|
|
1418
1866
|
};
|
|
1419
|
-
|
|
1420
|
-
return {
|
|
1421
|
-
...(input.GSTIN != null && { GSTIN: input.GSTIN }),
|
|
1422
|
-
};
|
|
1867
|
+
var serializeAws_json1_1INDTaxDocuments = function (input, context) {
|
|
1868
|
+
return __assign({}, (input.GSTIN != null && { GSTIN: input.GSTIN }));
|
|
1423
1869
|
};
|
|
1424
|
-
|
|
1425
|
-
return {
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
LambdaResources: serializeAws_json1_1LambdaResourceList(input.LambdaResources, context),
|
|
1431
|
-
}),
|
|
1432
|
-
...(input.S3Resources != null && { S3Resources: serializeAws_json1_1S3ResourceList(input.S3Resources, context) }),
|
|
1433
|
-
};
|
|
1870
|
+
var serializeAws_json1_1JobResource = function (input, context) {
|
|
1871
|
+
return __assign(__assign(__assign({}, (input.Ec2AmiResources != null && {
|
|
1872
|
+
Ec2AmiResources: serializeAws_json1_1Ec2AmiResourceList(input.Ec2AmiResources, context),
|
|
1873
|
+
})), (input.LambdaResources != null && {
|
|
1874
|
+
LambdaResources: serializeAws_json1_1LambdaResourceList(input.LambdaResources, context),
|
|
1875
|
+
})), (input.S3Resources != null && { S3Resources: serializeAws_json1_1S3ResourceList(input.S3Resources, context) }));
|
|
1434
1876
|
};
|
|
1435
|
-
|
|
1877
|
+
var serializeAws_json1_1JobStateList = function (input, context) {
|
|
1436
1878
|
return input
|
|
1437
|
-
.filter((e)
|
|
1438
|
-
.map((entry)
|
|
1879
|
+
.filter(function (e) { return e != null; })
|
|
1880
|
+
.map(function (entry) {
|
|
1439
1881
|
return entry;
|
|
1440
1882
|
});
|
|
1441
1883
|
};
|
|
1442
|
-
|
|
1443
|
-
return {
|
|
1444
|
-
...(input.BeginMarker != null && { BeginMarker: input.BeginMarker }),
|
|
1445
|
-
...(input.EndMarker != null && { EndMarker: input.EndMarker }),
|
|
1446
|
-
};
|
|
1884
|
+
var serializeAws_json1_1KeyRange = function (input, context) {
|
|
1885
|
+
return __assign(__assign({}, (input.BeginMarker != null && { BeginMarker: input.BeginMarker })), (input.EndMarker != null && { EndMarker: input.EndMarker }));
|
|
1447
1886
|
};
|
|
1448
|
-
|
|
1449
|
-
return {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
}),
|
|
1453
|
-
...(input.LambdaArn != null && { LambdaArn: input.LambdaArn }),
|
|
1454
|
-
};
|
|
1887
|
+
var serializeAws_json1_1LambdaResource = function (input, context) {
|
|
1888
|
+
return __assign(__assign({}, (input.EventTriggers != null && {
|
|
1889
|
+
EventTriggers: serializeAws_json1_1EventTriggerDefinitionList(input.EventTriggers, context),
|
|
1890
|
+
})), (input.LambdaArn != null && { LambdaArn: input.LambdaArn }));
|
|
1455
1891
|
};
|
|
1456
|
-
|
|
1892
|
+
var serializeAws_json1_1LambdaResourceList = function (input, context) {
|
|
1457
1893
|
return input
|
|
1458
|
-
.filter((e)
|
|
1459
|
-
.map((entry)
|
|
1894
|
+
.filter(function (e) { return e != null; })
|
|
1895
|
+
.map(function (entry) {
|
|
1460
1896
|
return serializeAws_json1_1LambdaResource(entry, context);
|
|
1461
1897
|
});
|
|
1462
1898
|
};
|
|
1463
|
-
|
|
1464
|
-
return {
|
|
1465
|
-
...(input.ClusterId != null && { ClusterId: input.ClusterId }),
|
|
1466
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1467
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1468
|
-
};
|
|
1899
|
+
var serializeAws_json1_1ListClusterJobsRequest = function (input, context) {
|
|
1900
|
+
return __assign(__assign(__assign({}, (input.ClusterId != null && { ClusterId: input.ClusterId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1469
1901
|
};
|
|
1470
|
-
|
|
1471
|
-
return {
|
|
1472
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1473
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1474
|
-
};
|
|
1902
|
+
var serializeAws_json1_1ListClustersRequest = function (input, context) {
|
|
1903
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1475
1904
|
};
|
|
1476
|
-
|
|
1477
|
-
return {
|
|
1478
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1479
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1480
|
-
};
|
|
1905
|
+
var serializeAws_json1_1ListCompatibleImagesRequest = function (input, context) {
|
|
1906
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1481
1907
|
};
|
|
1482
|
-
|
|
1483
|
-
return {
|
|
1484
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1485
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1486
|
-
};
|
|
1908
|
+
var serializeAws_json1_1ListJobsRequest = function (input, context) {
|
|
1909
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1487
1910
|
};
|
|
1488
|
-
|
|
1489
|
-
return {
|
|
1490
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1491
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1492
|
-
};
|
|
1911
|
+
var serializeAws_json1_1ListLongTermPricingRequest = function (input, context) {
|
|
1912
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1493
1913
|
};
|
|
1494
|
-
|
|
1495
|
-
return {
|
|
1496
|
-
...(input.StorageLimit != null && { StorageLimit: input.StorageLimit }),
|
|
1497
|
-
...(input.StorageUnit != null && { StorageUnit: input.StorageUnit }),
|
|
1498
|
-
};
|
|
1914
|
+
var serializeAws_json1_1NFSOnDeviceServiceConfiguration = function (input, context) {
|
|
1915
|
+
return __assign(__assign({}, (input.StorageLimit != null && { StorageLimit: input.StorageLimit })), (input.StorageUnit != null && { StorageUnit: input.StorageUnit }));
|
|
1499
1916
|
};
|
|
1500
|
-
|
|
1501
|
-
return {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
}),
|
|
1505
|
-
...(input.NotifyAll != null && { NotifyAll: input.NotifyAll }),
|
|
1506
|
-
...(input.SnsTopicARN != null && { SnsTopicARN: input.SnsTopicARN }),
|
|
1507
|
-
};
|
|
1917
|
+
var serializeAws_json1_1Notification = function (input, context) {
|
|
1918
|
+
return __assign(__assign(__assign({}, (input.JobStatesToNotify != null && {
|
|
1919
|
+
JobStatesToNotify: serializeAws_json1_1JobStateList(input.JobStatesToNotify, context),
|
|
1920
|
+
})), (input.NotifyAll != null && { NotifyAll: input.NotifyAll })), (input.SnsTopicARN != null && { SnsTopicARN: input.SnsTopicARN }));
|
|
1508
1921
|
};
|
|
1509
|
-
|
|
1510
|
-
return {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
TGWOnDeviceService: serializeAws_json1_1TGWOnDeviceServiceConfiguration(input.TGWOnDeviceService, context),
|
|
1516
|
-
}),
|
|
1517
|
-
};
|
|
1922
|
+
var serializeAws_json1_1OnDeviceServiceConfiguration = function (input, context) {
|
|
1923
|
+
return __assign(__assign({}, (input.NFSOnDeviceService != null && {
|
|
1924
|
+
NFSOnDeviceService: serializeAws_json1_1NFSOnDeviceServiceConfiguration(input.NFSOnDeviceService, context),
|
|
1925
|
+
})), (input.TGWOnDeviceService != null && {
|
|
1926
|
+
TGWOnDeviceService: serializeAws_json1_1TGWOnDeviceServiceConfiguration(input.TGWOnDeviceService, context),
|
|
1927
|
+
}));
|
|
1518
1928
|
};
|
|
1519
|
-
|
|
1520
|
-
return {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
...(input.TargetOnDeviceServices != null && {
|
|
1524
|
-
TargetOnDeviceServices: serializeAws_json1_1TargetOnDeviceServiceList(input.TargetOnDeviceServices, context),
|
|
1525
|
-
}),
|
|
1526
|
-
};
|
|
1929
|
+
var serializeAws_json1_1S3Resource = function (input, context) {
|
|
1930
|
+
return __assign(__assign(__assign({}, (input.BucketArn != null && { BucketArn: input.BucketArn })), (input.KeyRange != null && { KeyRange: serializeAws_json1_1KeyRange(input.KeyRange, context) })), (input.TargetOnDeviceServices != null && {
|
|
1931
|
+
TargetOnDeviceServices: serializeAws_json1_1TargetOnDeviceServiceList(input.TargetOnDeviceServices, context),
|
|
1932
|
+
}));
|
|
1527
1933
|
};
|
|
1528
|
-
|
|
1934
|
+
var serializeAws_json1_1S3ResourceList = function (input, context) {
|
|
1529
1935
|
return input
|
|
1530
|
-
.filter((e)
|
|
1531
|
-
.map((entry)
|
|
1936
|
+
.filter(function (e) { return e != null; })
|
|
1937
|
+
.map(function (entry) {
|
|
1532
1938
|
return serializeAws_json1_1S3Resource(entry, context);
|
|
1533
1939
|
});
|
|
1534
1940
|
};
|
|
1535
|
-
|
|
1536
|
-
return {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}),
|
|
1540
|
-
};
|
|
1941
|
+
var serializeAws_json1_1SnowconeDeviceConfiguration = function (input, context) {
|
|
1942
|
+
return __assign({}, (input.WirelessConnection != null && {
|
|
1943
|
+
WirelessConnection: serializeAws_json1_1WirelessConnection(input.WirelessConnection, context),
|
|
1944
|
+
}));
|
|
1541
1945
|
};
|
|
1542
|
-
|
|
1543
|
-
return {
|
|
1544
|
-
...(input.ServiceName != null && { ServiceName: input.ServiceName }),
|
|
1545
|
-
...(input.TransferOption != null && { TransferOption: input.TransferOption }),
|
|
1546
|
-
};
|
|
1946
|
+
var serializeAws_json1_1TargetOnDeviceService = function (input, context) {
|
|
1947
|
+
return __assign(__assign({}, (input.ServiceName != null && { ServiceName: input.ServiceName })), (input.TransferOption != null && { TransferOption: input.TransferOption }));
|
|
1547
1948
|
};
|
|
1548
|
-
|
|
1949
|
+
var serializeAws_json1_1TargetOnDeviceServiceList = function (input, context) {
|
|
1549
1950
|
return input
|
|
1550
|
-
.filter((e)
|
|
1551
|
-
.map((entry)
|
|
1951
|
+
.filter(function (e) { return e != null; })
|
|
1952
|
+
.map(function (entry) {
|
|
1552
1953
|
return serializeAws_json1_1TargetOnDeviceService(entry, context);
|
|
1553
1954
|
});
|
|
1554
1955
|
};
|
|
1555
|
-
|
|
1556
|
-
return {
|
|
1557
|
-
...(input.IND != null && { IND: serializeAws_json1_1INDTaxDocuments(input.IND, context) }),
|
|
1558
|
-
};
|
|
1956
|
+
var serializeAws_json1_1TaxDocuments = function (input, context) {
|
|
1957
|
+
return __assign({}, (input.IND != null && { IND: serializeAws_json1_1INDTaxDocuments(input.IND, context) }));
|
|
1559
1958
|
};
|
|
1560
|
-
|
|
1561
|
-
return {
|
|
1562
|
-
...(input.StorageLimit != null && { StorageLimit: input.StorageLimit }),
|
|
1563
|
-
...(input.StorageUnit != null && { StorageUnit: input.StorageUnit }),
|
|
1564
|
-
};
|
|
1959
|
+
var serializeAws_json1_1TGWOnDeviceServiceConfiguration = function (input, context) {
|
|
1960
|
+
return __assign(__assign({}, (input.StorageLimit != null && { StorageLimit: input.StorageLimit })), (input.StorageUnit != null && { StorageUnit: input.StorageUnit }));
|
|
1565
1961
|
};
|
|
1566
|
-
|
|
1567
|
-
return {
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1571
|
-
...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
|
|
1572
|
-
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1573
|
-
...(input.OnDeviceServiceConfiguration != null && {
|
|
1574
|
-
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1575
|
-
}),
|
|
1576
|
-
...(input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) }),
|
|
1577
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1578
|
-
...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
|
|
1579
|
-
};
|
|
1962
|
+
var serializeAws_json1_1UpdateClusterRequest = function (input, context) {
|
|
1963
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressId != null && { AddressId: input.AddressId })), (input.ClusterId != null && { ClusterId: input.ClusterId })), (input.Description != null && { Description: input.Description })), (input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OnDeviceServiceConfiguration != null && {
|
|
1964
|
+
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1965
|
+
})), (input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.ShippingOption != null && { ShippingOption: input.ShippingOption }));
|
|
1580
1966
|
};
|
|
1581
|
-
|
|
1582
|
-
return {
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
|
|
1586
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1587
|
-
...(input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }),
|
|
1588
|
-
...(input.OnDeviceServiceConfiguration != null && {
|
|
1589
|
-
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1590
|
-
}),
|
|
1591
|
-
...(input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) }),
|
|
1592
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1593
|
-
...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
|
|
1594
|
-
...(input.SnowballCapacityPreference != null && { SnowballCapacityPreference: input.SnowballCapacityPreference }),
|
|
1595
|
-
};
|
|
1967
|
+
var serializeAws_json1_1UpdateJobRequest = function (input, context) {
|
|
1968
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddressId != null && { AddressId: input.AddressId })), (input.Description != null && { Description: input.Description })), (input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId })), (input.JobId != null && { JobId: input.JobId })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OnDeviceServiceConfiguration != null && {
|
|
1969
|
+
OnDeviceServiceConfiguration: serializeAws_json1_1OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
|
|
1970
|
+
})), (input.Resources != null && { Resources: serializeAws_json1_1JobResource(input.Resources, context) })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.ShippingOption != null && { ShippingOption: input.ShippingOption })), (input.SnowballCapacityPreference != null && { SnowballCapacityPreference: input.SnowballCapacityPreference }));
|
|
1596
1971
|
};
|
|
1597
|
-
|
|
1598
|
-
return {
|
|
1599
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1600
|
-
...(input.ShipmentState != null && { ShipmentState: input.ShipmentState }),
|
|
1601
|
-
};
|
|
1972
|
+
var serializeAws_json1_1UpdateJobShipmentStateRequest = function (input, context) {
|
|
1973
|
+
return __assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.ShipmentState != null && { ShipmentState: input.ShipmentState }));
|
|
1602
1974
|
};
|
|
1603
|
-
|
|
1604
|
-
return {
|
|
1605
|
-
...(input.IsLongTermPricingAutoRenew != null && { IsLongTermPricingAutoRenew: input.IsLongTermPricingAutoRenew }),
|
|
1606
|
-
...(input.LongTermPricingId != null && { LongTermPricingId: input.LongTermPricingId }),
|
|
1607
|
-
...(input.ReplacementJob != null && { ReplacementJob: input.ReplacementJob }),
|
|
1608
|
-
};
|
|
1975
|
+
var serializeAws_json1_1UpdateLongTermPricingRequest = function (input, context) {
|
|
1976
|
+
return __assign(__assign(__assign({}, (input.IsLongTermPricingAutoRenew != null && { IsLongTermPricingAutoRenew: input.IsLongTermPricingAutoRenew })), (input.LongTermPricingId != null && { LongTermPricingId: input.LongTermPricingId })), (input.ReplacementJob != null && { ReplacementJob: input.ReplacementJob }));
|
|
1609
1977
|
};
|
|
1610
|
-
|
|
1611
|
-
return {
|
|
1612
|
-
...(input.IsWifiEnabled != null && { IsWifiEnabled: input.IsWifiEnabled }),
|
|
1613
|
-
};
|
|
1978
|
+
var serializeAws_json1_1WirelessConnection = function (input, context) {
|
|
1979
|
+
return __assign({}, (input.IsWifiEnabled != null && { IsWifiEnabled: input.IsWifiEnabled }));
|
|
1614
1980
|
};
|
|
1615
|
-
|
|
1981
|
+
var deserializeAws_json1_1Address = function (output, context) {
|
|
1616
1982
|
return {
|
|
1617
1983
|
AddressId: __expectString(output.AddressId),
|
|
1618
1984
|
City: __expectString(output.City),
|
|
@@ -1630,10 +1996,10 @@ const deserializeAws_json1_1Address = (output, context) => {
|
|
|
1630
1996
|
Street3: __expectString(output.Street3),
|
|
1631
1997
|
};
|
|
1632
1998
|
};
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
.filter((e)
|
|
1636
|
-
.map((entry)
|
|
1999
|
+
var deserializeAws_json1_1AddressList = function (output, context) {
|
|
2000
|
+
var retVal = (output || [])
|
|
2001
|
+
.filter(function (e) { return e != null; })
|
|
2002
|
+
.map(function (entry) {
|
|
1637
2003
|
if (entry === null) {
|
|
1638
2004
|
return null;
|
|
1639
2005
|
}
|
|
@@ -1641,18 +2007,18 @@ const deserializeAws_json1_1AddressList = (output, context) => {
|
|
|
1641
2007
|
});
|
|
1642
2008
|
return retVal;
|
|
1643
2009
|
};
|
|
1644
|
-
|
|
2010
|
+
var deserializeAws_json1_1CancelClusterResult = function (output, context) {
|
|
1645
2011
|
return {};
|
|
1646
2012
|
};
|
|
1647
|
-
|
|
2013
|
+
var deserializeAws_json1_1CancelJobResult = function (output, context) {
|
|
1648
2014
|
return {};
|
|
1649
2015
|
};
|
|
1650
|
-
|
|
2016
|
+
var deserializeAws_json1_1ClusterLimitExceededException = function (output, context) {
|
|
1651
2017
|
return {
|
|
1652
2018
|
Message: __expectString(output.Message),
|
|
1653
2019
|
};
|
|
1654
2020
|
};
|
|
1655
|
-
|
|
2021
|
+
var deserializeAws_json1_1ClusterListEntry = function (output, context) {
|
|
1656
2022
|
return {
|
|
1657
2023
|
ClusterId: __expectString(output.ClusterId),
|
|
1658
2024
|
ClusterState: __expectString(output.ClusterState),
|
|
@@ -1662,10 +2028,10 @@ const deserializeAws_json1_1ClusterListEntry = (output, context) => {
|
|
|
1662
2028
|
Description: __expectString(output.Description),
|
|
1663
2029
|
};
|
|
1664
2030
|
};
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
.filter((e)
|
|
1668
|
-
.map((entry)
|
|
2031
|
+
var deserializeAws_json1_1ClusterListEntryList = function (output, context) {
|
|
2032
|
+
var retVal = (output || [])
|
|
2033
|
+
.filter(function (e) { return e != null; })
|
|
2034
|
+
.map(function (entry) {
|
|
1669
2035
|
if (entry === null) {
|
|
1670
2036
|
return null;
|
|
1671
2037
|
}
|
|
@@ -1673,7 +2039,7 @@ const deserializeAws_json1_1ClusterListEntryList = (output, context) => {
|
|
|
1673
2039
|
});
|
|
1674
2040
|
return retVal;
|
|
1675
2041
|
};
|
|
1676
|
-
|
|
2042
|
+
var deserializeAws_json1_1ClusterMetadata = function (output, context) {
|
|
1677
2043
|
return {
|
|
1678
2044
|
AddressId: __expectString(output.AddressId),
|
|
1679
2045
|
ClusterId: __expectString(output.ClusterId),
|
|
@@ -1696,16 +2062,16 @@ const deserializeAws_json1_1ClusterMetadata = (output, context) => {
|
|
|
1696
2062
|
TaxDocuments: output.TaxDocuments != null ? deserializeAws_json1_1TaxDocuments(output.TaxDocuments, context) : undefined,
|
|
1697
2063
|
};
|
|
1698
2064
|
};
|
|
1699
|
-
|
|
2065
|
+
var deserializeAws_json1_1CompatibleImage = function (output, context) {
|
|
1700
2066
|
return {
|
|
1701
2067
|
AmiId: __expectString(output.AmiId),
|
|
1702
2068
|
Name: __expectString(output.Name),
|
|
1703
2069
|
};
|
|
1704
2070
|
};
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
.filter((e)
|
|
1708
|
-
.map((entry)
|
|
2071
|
+
var deserializeAws_json1_1CompatibleImageList = function (output, context) {
|
|
2072
|
+
var retVal = (output || [])
|
|
2073
|
+
.filter(function (e) { return e != null; })
|
|
2074
|
+
.map(function (entry) {
|
|
1709
2075
|
if (entry === null) {
|
|
1710
2076
|
return null;
|
|
1711
2077
|
}
|
|
@@ -1713,38 +2079,38 @@ const deserializeAws_json1_1CompatibleImageList = (output, context) => {
|
|
|
1713
2079
|
});
|
|
1714
2080
|
return retVal;
|
|
1715
2081
|
};
|
|
1716
|
-
|
|
2082
|
+
var deserializeAws_json1_1ConflictException = function (output, context) {
|
|
1717
2083
|
return {
|
|
1718
2084
|
ConflictResource: __expectString(output.ConflictResource),
|
|
1719
2085
|
Message: __expectString(output.Message),
|
|
1720
2086
|
};
|
|
1721
2087
|
};
|
|
1722
|
-
|
|
2088
|
+
var deserializeAws_json1_1CreateAddressResult = function (output, context) {
|
|
1723
2089
|
return {
|
|
1724
2090
|
AddressId: __expectString(output.AddressId),
|
|
1725
2091
|
};
|
|
1726
2092
|
};
|
|
1727
|
-
|
|
2093
|
+
var deserializeAws_json1_1CreateClusterResult = function (output, context) {
|
|
1728
2094
|
return {
|
|
1729
2095
|
ClusterId: __expectString(output.ClusterId),
|
|
1730
2096
|
};
|
|
1731
2097
|
};
|
|
1732
|
-
|
|
2098
|
+
var deserializeAws_json1_1CreateJobResult = function (output, context) {
|
|
1733
2099
|
return {
|
|
1734
2100
|
JobId: __expectString(output.JobId),
|
|
1735
2101
|
};
|
|
1736
2102
|
};
|
|
1737
|
-
|
|
2103
|
+
var deserializeAws_json1_1CreateLongTermPricingResult = function (output, context) {
|
|
1738
2104
|
return {
|
|
1739
2105
|
LongTermPricingId: __expectString(output.LongTermPricingId),
|
|
1740
2106
|
};
|
|
1741
2107
|
};
|
|
1742
|
-
|
|
2108
|
+
var deserializeAws_json1_1CreateReturnShippingLabelResult = function (output, context) {
|
|
1743
2109
|
return {
|
|
1744
2110
|
Status: __expectString(output.Status),
|
|
1745
2111
|
};
|
|
1746
2112
|
};
|
|
1747
|
-
|
|
2113
|
+
var deserializeAws_json1_1DataTransfer = function (output, context) {
|
|
1748
2114
|
return {
|
|
1749
2115
|
BytesTransferred: __expectLong(output.BytesTransferred),
|
|
1750
2116
|
ObjectsTransferred: __expectLong(output.ObjectsTransferred),
|
|
@@ -1752,31 +2118,31 @@ const deserializeAws_json1_1DataTransfer = (output, context) => {
|
|
|
1752
2118
|
TotalObjects: __expectLong(output.TotalObjects),
|
|
1753
2119
|
};
|
|
1754
2120
|
};
|
|
1755
|
-
|
|
2121
|
+
var deserializeAws_json1_1DescribeAddressesResult = function (output, context) {
|
|
1756
2122
|
return {
|
|
1757
2123
|
Addresses: output.Addresses != null ? deserializeAws_json1_1AddressList(output.Addresses, context) : undefined,
|
|
1758
2124
|
NextToken: __expectString(output.NextToken),
|
|
1759
2125
|
};
|
|
1760
2126
|
};
|
|
1761
|
-
|
|
2127
|
+
var deserializeAws_json1_1DescribeAddressResult = function (output, context) {
|
|
1762
2128
|
return {
|
|
1763
2129
|
Address: output.Address != null ? deserializeAws_json1_1Address(output.Address, context) : undefined,
|
|
1764
2130
|
};
|
|
1765
2131
|
};
|
|
1766
|
-
|
|
2132
|
+
var deserializeAws_json1_1DescribeClusterResult = function (output, context) {
|
|
1767
2133
|
return {
|
|
1768
2134
|
ClusterMetadata: output.ClusterMetadata != null
|
|
1769
2135
|
? deserializeAws_json1_1ClusterMetadata(output.ClusterMetadata, context)
|
|
1770
2136
|
: undefined,
|
|
1771
2137
|
};
|
|
1772
2138
|
};
|
|
1773
|
-
|
|
2139
|
+
var deserializeAws_json1_1DescribeJobResult = function (output, context) {
|
|
1774
2140
|
return {
|
|
1775
2141
|
JobMetadata: output.JobMetadata != null ? deserializeAws_json1_1JobMetadata(output.JobMetadata, context) : undefined,
|
|
1776
2142
|
SubJobMetadata: output.SubJobMetadata != null ? deserializeAws_json1_1JobMetadataList(output.SubJobMetadata, context) : undefined,
|
|
1777
2143
|
};
|
|
1778
2144
|
};
|
|
1779
|
-
|
|
2145
|
+
var deserializeAws_json1_1DescribeReturnShippingLabelResult = function (output, context) {
|
|
1780
2146
|
return {
|
|
1781
2147
|
ExpirationDate: output.ExpirationDate != null
|
|
1782
2148
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationDate)))
|
|
@@ -1785,23 +2151,23 @@ const deserializeAws_json1_1DescribeReturnShippingLabelResult = (output, context
|
|
|
1785
2151
|
Status: __expectString(output.Status),
|
|
1786
2152
|
};
|
|
1787
2153
|
};
|
|
1788
|
-
|
|
2154
|
+
var deserializeAws_json1_1DeviceConfiguration = function (output, context) {
|
|
1789
2155
|
return {
|
|
1790
2156
|
SnowconeDeviceConfiguration: output.SnowconeDeviceConfiguration != null
|
|
1791
2157
|
? deserializeAws_json1_1SnowconeDeviceConfiguration(output.SnowconeDeviceConfiguration, context)
|
|
1792
2158
|
: undefined,
|
|
1793
2159
|
};
|
|
1794
2160
|
};
|
|
1795
|
-
|
|
2161
|
+
var deserializeAws_json1_1Ec2AmiResource = function (output, context) {
|
|
1796
2162
|
return {
|
|
1797
2163
|
AmiId: __expectString(output.AmiId),
|
|
1798
2164
|
SnowballAmiId: __expectString(output.SnowballAmiId),
|
|
1799
2165
|
};
|
|
1800
2166
|
};
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
.filter((e)
|
|
1804
|
-
.map((entry)
|
|
2167
|
+
var deserializeAws_json1_1Ec2AmiResourceList = function (output, context) {
|
|
2168
|
+
var retVal = (output || [])
|
|
2169
|
+
.filter(function (e) { return e != null; })
|
|
2170
|
+
.map(function (entry) {
|
|
1805
2171
|
if (entry === null) {
|
|
1806
2172
|
return null;
|
|
1807
2173
|
}
|
|
@@ -1809,20 +2175,20 @@ const deserializeAws_json1_1Ec2AmiResourceList = (output, context) => {
|
|
|
1809
2175
|
});
|
|
1810
2176
|
return retVal;
|
|
1811
2177
|
};
|
|
1812
|
-
|
|
2178
|
+
var deserializeAws_json1_1Ec2RequestFailedException = function (output, context) {
|
|
1813
2179
|
return {
|
|
1814
2180
|
Message: __expectString(output.Message),
|
|
1815
2181
|
};
|
|
1816
2182
|
};
|
|
1817
|
-
|
|
2183
|
+
var deserializeAws_json1_1EventTriggerDefinition = function (output, context) {
|
|
1818
2184
|
return {
|
|
1819
2185
|
EventResourceARN: __expectString(output.EventResourceARN),
|
|
1820
2186
|
};
|
|
1821
2187
|
};
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
.filter((e)
|
|
1825
|
-
.map((entry)
|
|
2188
|
+
var deserializeAws_json1_1EventTriggerDefinitionList = function (output, context) {
|
|
2189
|
+
var retVal = (output || [])
|
|
2190
|
+
.filter(function (e) { return e != null; })
|
|
2191
|
+
.map(function (entry) {
|
|
1826
2192
|
if (entry === null) {
|
|
1827
2193
|
return null;
|
|
1828
2194
|
}
|
|
@@ -1830,59 +2196,59 @@ const deserializeAws_json1_1EventTriggerDefinitionList = (output, context) => {
|
|
|
1830
2196
|
});
|
|
1831
2197
|
return retVal;
|
|
1832
2198
|
};
|
|
1833
|
-
|
|
2199
|
+
var deserializeAws_json1_1GetJobManifestResult = function (output, context) {
|
|
1834
2200
|
return {
|
|
1835
2201
|
ManifestURI: __expectString(output.ManifestURI),
|
|
1836
2202
|
};
|
|
1837
2203
|
};
|
|
1838
|
-
|
|
2204
|
+
var deserializeAws_json1_1GetJobUnlockCodeResult = function (output, context) {
|
|
1839
2205
|
return {
|
|
1840
2206
|
UnlockCode: __expectString(output.UnlockCode),
|
|
1841
2207
|
};
|
|
1842
2208
|
};
|
|
1843
|
-
|
|
2209
|
+
var deserializeAws_json1_1GetSnowballUsageResult = function (output, context) {
|
|
1844
2210
|
return {
|
|
1845
2211
|
SnowballLimit: __expectInt32(output.SnowballLimit),
|
|
1846
2212
|
SnowballsInUse: __expectInt32(output.SnowballsInUse),
|
|
1847
2213
|
};
|
|
1848
2214
|
};
|
|
1849
|
-
|
|
2215
|
+
var deserializeAws_json1_1GetSoftwareUpdatesResult = function (output, context) {
|
|
1850
2216
|
return {
|
|
1851
2217
|
UpdatesURI: __expectString(output.UpdatesURI),
|
|
1852
2218
|
};
|
|
1853
2219
|
};
|
|
1854
|
-
|
|
2220
|
+
var deserializeAws_json1_1INDTaxDocuments = function (output, context) {
|
|
1855
2221
|
return {
|
|
1856
2222
|
GSTIN: __expectString(output.GSTIN),
|
|
1857
2223
|
};
|
|
1858
2224
|
};
|
|
1859
|
-
|
|
2225
|
+
var deserializeAws_json1_1InvalidAddressException = function (output, context) {
|
|
1860
2226
|
return {
|
|
1861
2227
|
Message: __expectString(output.Message),
|
|
1862
2228
|
};
|
|
1863
2229
|
};
|
|
1864
|
-
|
|
2230
|
+
var deserializeAws_json1_1InvalidInputCombinationException = function (output, context) {
|
|
1865
2231
|
return {
|
|
1866
2232
|
Message: __expectString(output.Message),
|
|
1867
2233
|
};
|
|
1868
2234
|
};
|
|
1869
|
-
|
|
2235
|
+
var deserializeAws_json1_1InvalidJobStateException = function (output, context) {
|
|
1870
2236
|
return {
|
|
1871
2237
|
Message: __expectString(output.Message),
|
|
1872
2238
|
};
|
|
1873
2239
|
};
|
|
1874
|
-
|
|
2240
|
+
var deserializeAws_json1_1InvalidNextTokenException = function (output, context) {
|
|
1875
2241
|
return {
|
|
1876
2242
|
Message: __expectString(output.Message),
|
|
1877
2243
|
};
|
|
1878
2244
|
};
|
|
1879
|
-
|
|
2245
|
+
var deserializeAws_json1_1InvalidResourceException = function (output, context) {
|
|
1880
2246
|
return {
|
|
1881
2247
|
Message: __expectString(output.Message),
|
|
1882
2248
|
ResourceType: __expectString(output.ResourceType),
|
|
1883
2249
|
};
|
|
1884
2250
|
};
|
|
1885
|
-
|
|
2251
|
+
var deserializeAws_json1_1JobListEntry = function (output, context) {
|
|
1886
2252
|
return {
|
|
1887
2253
|
CreationDate: output.CreationDate != null
|
|
1888
2254
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
@@ -1895,10 +2261,10 @@ const deserializeAws_json1_1JobListEntry = (output, context) => {
|
|
|
1895
2261
|
SnowballType: __expectString(output.SnowballType),
|
|
1896
2262
|
};
|
|
1897
2263
|
};
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
.filter((e)
|
|
1901
|
-
.map((entry)
|
|
2264
|
+
var deserializeAws_json1_1JobListEntryList = function (output, context) {
|
|
2265
|
+
var retVal = (output || [])
|
|
2266
|
+
.filter(function (e) { return e != null; })
|
|
2267
|
+
.map(function (entry) {
|
|
1902
2268
|
if (entry === null) {
|
|
1903
2269
|
return null;
|
|
1904
2270
|
}
|
|
@@ -1906,14 +2272,14 @@ const deserializeAws_json1_1JobListEntryList = (output, context) => {
|
|
|
1906
2272
|
});
|
|
1907
2273
|
return retVal;
|
|
1908
2274
|
};
|
|
1909
|
-
|
|
2275
|
+
var deserializeAws_json1_1JobLogs = function (output, context) {
|
|
1910
2276
|
return {
|
|
1911
2277
|
JobCompletionReportURI: __expectString(output.JobCompletionReportURI),
|
|
1912
2278
|
JobFailureLogURI: __expectString(output.JobFailureLogURI),
|
|
1913
2279
|
JobSuccessLogURI: __expectString(output.JobSuccessLogURI),
|
|
1914
2280
|
};
|
|
1915
2281
|
};
|
|
1916
|
-
|
|
2282
|
+
var deserializeAws_json1_1JobMetadata = function (output, context) {
|
|
1917
2283
|
return {
|
|
1918
2284
|
AddressId: __expectString(output.AddressId),
|
|
1919
2285
|
ClusterId: __expectString(output.ClusterId),
|
|
@@ -1949,10 +2315,10 @@ const deserializeAws_json1_1JobMetadata = (output, context) => {
|
|
|
1949
2315
|
TaxDocuments: output.TaxDocuments != null ? deserializeAws_json1_1TaxDocuments(output.TaxDocuments, context) : undefined,
|
|
1950
2316
|
};
|
|
1951
2317
|
};
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
.filter((e)
|
|
1955
|
-
.map((entry)
|
|
2318
|
+
var deserializeAws_json1_1JobMetadataList = function (output, context) {
|
|
2319
|
+
var retVal = (output || [])
|
|
2320
|
+
.filter(function (e) { return e != null; })
|
|
2321
|
+
.map(function (entry) {
|
|
1956
2322
|
if (entry === null) {
|
|
1957
2323
|
return null;
|
|
1958
2324
|
}
|
|
@@ -1960,7 +2326,7 @@ const deserializeAws_json1_1JobMetadataList = (output, context) => {
|
|
|
1960
2326
|
});
|
|
1961
2327
|
return retVal;
|
|
1962
2328
|
};
|
|
1963
|
-
|
|
2329
|
+
var deserializeAws_json1_1JobResource = function (output, context) {
|
|
1964
2330
|
return {
|
|
1965
2331
|
Ec2AmiResources: output.Ec2AmiResources != null
|
|
1966
2332
|
? deserializeAws_json1_1Ec2AmiResourceList(output.Ec2AmiResources, context)
|
|
@@ -1971,10 +2337,10 @@ const deserializeAws_json1_1JobResource = (output, context) => {
|
|
|
1971
2337
|
S3Resources: output.S3Resources != null ? deserializeAws_json1_1S3ResourceList(output.S3Resources, context) : undefined,
|
|
1972
2338
|
};
|
|
1973
2339
|
};
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
.filter((e)
|
|
1977
|
-
.map((entry)
|
|
2340
|
+
var deserializeAws_json1_1JobStateList = function (output, context) {
|
|
2341
|
+
var retVal = (output || [])
|
|
2342
|
+
.filter(function (e) { return e != null; })
|
|
2343
|
+
.map(function (entry) {
|
|
1978
2344
|
if (entry === null) {
|
|
1979
2345
|
return null;
|
|
1980
2346
|
}
|
|
@@ -1982,18 +2348,18 @@ const deserializeAws_json1_1JobStateList = (output, context) => {
|
|
|
1982
2348
|
});
|
|
1983
2349
|
return retVal;
|
|
1984
2350
|
};
|
|
1985
|
-
|
|
2351
|
+
var deserializeAws_json1_1KeyRange = function (output, context) {
|
|
1986
2352
|
return {
|
|
1987
2353
|
BeginMarker: __expectString(output.BeginMarker),
|
|
1988
2354
|
EndMarker: __expectString(output.EndMarker),
|
|
1989
2355
|
};
|
|
1990
2356
|
};
|
|
1991
|
-
|
|
2357
|
+
var deserializeAws_json1_1KMSRequestFailedException = function (output, context) {
|
|
1992
2358
|
return {
|
|
1993
2359
|
Message: __expectString(output.Message),
|
|
1994
2360
|
};
|
|
1995
2361
|
};
|
|
1996
|
-
|
|
2362
|
+
var deserializeAws_json1_1LambdaResource = function (output, context) {
|
|
1997
2363
|
return {
|
|
1998
2364
|
EventTriggers: output.EventTriggers != null
|
|
1999
2365
|
? deserializeAws_json1_1EventTriggerDefinitionList(output.EventTriggers, context)
|
|
@@ -2001,10 +2367,10 @@ const deserializeAws_json1_1LambdaResource = (output, context) => {
|
|
|
2001
2367
|
LambdaArn: __expectString(output.LambdaArn),
|
|
2002
2368
|
};
|
|
2003
2369
|
};
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
.filter((e)
|
|
2007
|
-
.map((entry)
|
|
2370
|
+
var deserializeAws_json1_1LambdaResourceList = function (output, context) {
|
|
2371
|
+
var retVal = (output || [])
|
|
2372
|
+
.filter(function (e) { return e != null; })
|
|
2373
|
+
.map(function (entry) {
|
|
2008
2374
|
if (entry === null) {
|
|
2009
2375
|
return null;
|
|
2010
2376
|
}
|
|
@@ -2012,7 +2378,7 @@ const deserializeAws_json1_1LambdaResourceList = (output, context) => {
|
|
|
2012
2378
|
});
|
|
2013
2379
|
return retVal;
|
|
2014
2380
|
};
|
|
2015
|
-
|
|
2381
|
+
var deserializeAws_json1_1ListClusterJobsResult = function (output, context) {
|
|
2016
2382
|
return {
|
|
2017
2383
|
JobListEntries: output.JobListEntries != null
|
|
2018
2384
|
? deserializeAws_json1_1JobListEntryList(output.JobListEntries, context)
|
|
@@ -2020,7 +2386,7 @@ const deserializeAws_json1_1ListClusterJobsResult = (output, context) => {
|
|
|
2020
2386
|
NextToken: __expectString(output.NextToken),
|
|
2021
2387
|
};
|
|
2022
2388
|
};
|
|
2023
|
-
|
|
2389
|
+
var deserializeAws_json1_1ListClustersResult = function (output, context) {
|
|
2024
2390
|
return {
|
|
2025
2391
|
ClusterListEntries: output.ClusterListEntries != null
|
|
2026
2392
|
? deserializeAws_json1_1ClusterListEntryList(output.ClusterListEntries, context)
|
|
@@ -2028,7 +2394,7 @@ const deserializeAws_json1_1ListClustersResult = (output, context) => {
|
|
|
2028
2394
|
NextToken: __expectString(output.NextToken),
|
|
2029
2395
|
};
|
|
2030
2396
|
};
|
|
2031
|
-
|
|
2397
|
+
var deserializeAws_json1_1ListCompatibleImagesResult = function (output, context) {
|
|
2032
2398
|
return {
|
|
2033
2399
|
CompatibleImages: output.CompatibleImages != null
|
|
2034
2400
|
? deserializeAws_json1_1CompatibleImageList(output.CompatibleImages, context)
|
|
@@ -2036,7 +2402,7 @@ const deserializeAws_json1_1ListCompatibleImagesResult = (output, context) => {
|
|
|
2036
2402
|
NextToken: __expectString(output.NextToken),
|
|
2037
2403
|
};
|
|
2038
2404
|
};
|
|
2039
|
-
|
|
2405
|
+
var deserializeAws_json1_1ListJobsResult = function (output, context) {
|
|
2040
2406
|
return {
|
|
2041
2407
|
JobListEntries: output.JobListEntries != null
|
|
2042
2408
|
? deserializeAws_json1_1JobListEntryList(output.JobListEntries, context)
|
|
@@ -2044,7 +2410,7 @@ const deserializeAws_json1_1ListJobsResult = (output, context) => {
|
|
|
2044
2410
|
NextToken: __expectString(output.NextToken),
|
|
2045
2411
|
};
|
|
2046
2412
|
};
|
|
2047
|
-
|
|
2413
|
+
var deserializeAws_json1_1ListLongTermPricingResult = function (output, context) {
|
|
2048
2414
|
return {
|
|
2049
2415
|
LongTermPricingEntries: output.LongTermPricingEntries != null
|
|
2050
2416
|
? deserializeAws_json1_1LongTermPricingEntryList(output.LongTermPricingEntries, context)
|
|
@@ -2052,10 +2418,10 @@ const deserializeAws_json1_1ListLongTermPricingResult = (output, context) => {
|
|
|
2052
2418
|
NextToken: __expectString(output.NextToken),
|
|
2053
2419
|
};
|
|
2054
2420
|
};
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
.filter((e)
|
|
2058
|
-
.map((entry)
|
|
2421
|
+
var deserializeAws_json1_1LongTermPricingAssociatedJobIdList = function (output, context) {
|
|
2422
|
+
var retVal = (output || [])
|
|
2423
|
+
.filter(function (e) { return e != null; })
|
|
2424
|
+
.map(function (entry) {
|
|
2059
2425
|
if (entry === null) {
|
|
2060
2426
|
return null;
|
|
2061
2427
|
}
|
|
@@ -2063,10 +2429,10 @@ const deserializeAws_json1_1LongTermPricingAssociatedJobIdList = (output, contex
|
|
|
2063
2429
|
});
|
|
2064
2430
|
return retVal;
|
|
2065
2431
|
};
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
.filter((e)
|
|
2069
|
-
.map((entry)
|
|
2432
|
+
var deserializeAws_json1_1LongTermPricingEntryList = function (output, context) {
|
|
2433
|
+
var retVal = (output || [])
|
|
2434
|
+
.filter(function (e) { return e != null; })
|
|
2435
|
+
.map(function (entry) {
|
|
2070
2436
|
if (entry === null) {
|
|
2071
2437
|
return null;
|
|
2072
2438
|
}
|
|
@@ -2074,7 +2440,7 @@ const deserializeAws_json1_1LongTermPricingEntryList = (output, context) => {
|
|
|
2074
2440
|
});
|
|
2075
2441
|
return retVal;
|
|
2076
2442
|
};
|
|
2077
|
-
|
|
2443
|
+
var deserializeAws_json1_1LongTermPricingListEntry = function (output, context) {
|
|
2078
2444
|
return {
|
|
2079
2445
|
CurrentActiveJob: __expectString(output.CurrentActiveJob),
|
|
2080
2446
|
IsLongTermPricingAutoRenew: __expectBoolean(output.IsLongTermPricingAutoRenew),
|
|
@@ -2094,13 +2460,13 @@ const deserializeAws_json1_1LongTermPricingListEntry = (output, context) => {
|
|
|
2094
2460
|
SnowballType: __expectString(output.SnowballType),
|
|
2095
2461
|
};
|
|
2096
2462
|
};
|
|
2097
|
-
|
|
2463
|
+
var deserializeAws_json1_1NFSOnDeviceServiceConfiguration = function (output, context) {
|
|
2098
2464
|
return {
|
|
2099
2465
|
StorageLimit: __expectInt32(output.StorageLimit),
|
|
2100
2466
|
StorageUnit: __expectString(output.StorageUnit),
|
|
2101
2467
|
};
|
|
2102
2468
|
};
|
|
2103
|
-
|
|
2469
|
+
var deserializeAws_json1_1Notification = function (output, context) {
|
|
2104
2470
|
return {
|
|
2105
2471
|
JobStatesToNotify: output.JobStatesToNotify != null
|
|
2106
2472
|
? deserializeAws_json1_1JobStateList(output.JobStatesToNotify, context)
|
|
@@ -2109,7 +2475,7 @@ const deserializeAws_json1_1Notification = (output, context) => {
|
|
|
2109
2475
|
SnsTopicARN: __expectString(output.SnsTopicARN),
|
|
2110
2476
|
};
|
|
2111
2477
|
};
|
|
2112
|
-
|
|
2478
|
+
var deserializeAws_json1_1OnDeviceServiceConfiguration = function (output, context) {
|
|
2113
2479
|
return {
|
|
2114
2480
|
NFSOnDeviceService: output.NFSOnDeviceService != null
|
|
2115
2481
|
? deserializeAws_json1_1NFSOnDeviceServiceConfiguration(output.NFSOnDeviceService, context)
|
|
@@ -2119,12 +2485,12 @@ const deserializeAws_json1_1OnDeviceServiceConfiguration = (output, context) =>
|
|
|
2119
2485
|
: undefined,
|
|
2120
2486
|
};
|
|
2121
2487
|
};
|
|
2122
|
-
|
|
2488
|
+
var deserializeAws_json1_1ReturnShippingLabelAlreadyExistsException = function (output, context) {
|
|
2123
2489
|
return {
|
|
2124
2490
|
Message: __expectString(output.Message),
|
|
2125
2491
|
};
|
|
2126
2492
|
};
|
|
2127
|
-
|
|
2493
|
+
var deserializeAws_json1_1S3Resource = function (output, context) {
|
|
2128
2494
|
return {
|
|
2129
2495
|
BucketArn: __expectString(output.BucketArn),
|
|
2130
2496
|
KeyRange: output.KeyRange != null ? deserializeAws_json1_1KeyRange(output.KeyRange, context) : undefined,
|
|
@@ -2133,10 +2499,10 @@ const deserializeAws_json1_1S3Resource = (output, context) => {
|
|
|
2133
2499
|
: undefined,
|
|
2134
2500
|
};
|
|
2135
2501
|
};
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
.filter((e)
|
|
2139
|
-
.map((entry)
|
|
2502
|
+
var deserializeAws_json1_1S3ResourceList = function (output, context) {
|
|
2503
|
+
var retVal = (output || [])
|
|
2504
|
+
.filter(function (e) { return e != null; })
|
|
2505
|
+
.map(function (entry) {
|
|
2140
2506
|
if (entry === null) {
|
|
2141
2507
|
return null;
|
|
2142
2508
|
}
|
|
@@ -2144,36 +2510,36 @@ const deserializeAws_json1_1S3ResourceList = (output, context) => {
|
|
|
2144
2510
|
});
|
|
2145
2511
|
return retVal;
|
|
2146
2512
|
};
|
|
2147
|
-
|
|
2513
|
+
var deserializeAws_json1_1Shipment = function (output, context) {
|
|
2148
2514
|
return {
|
|
2149
2515
|
Status: __expectString(output.Status),
|
|
2150
2516
|
TrackingNumber: __expectString(output.TrackingNumber),
|
|
2151
2517
|
};
|
|
2152
2518
|
};
|
|
2153
|
-
|
|
2519
|
+
var deserializeAws_json1_1ShippingDetails = function (output, context) {
|
|
2154
2520
|
return {
|
|
2155
2521
|
InboundShipment: output.InboundShipment != null ? deserializeAws_json1_1Shipment(output.InboundShipment, context) : undefined,
|
|
2156
2522
|
OutboundShipment: output.OutboundShipment != null ? deserializeAws_json1_1Shipment(output.OutboundShipment, context) : undefined,
|
|
2157
2523
|
ShippingOption: __expectString(output.ShippingOption),
|
|
2158
2524
|
};
|
|
2159
2525
|
};
|
|
2160
|
-
|
|
2526
|
+
var deserializeAws_json1_1SnowconeDeviceConfiguration = function (output, context) {
|
|
2161
2527
|
return {
|
|
2162
2528
|
WirelessConnection: output.WirelessConnection != null
|
|
2163
2529
|
? deserializeAws_json1_1WirelessConnection(output.WirelessConnection, context)
|
|
2164
2530
|
: undefined,
|
|
2165
2531
|
};
|
|
2166
2532
|
};
|
|
2167
|
-
|
|
2533
|
+
var deserializeAws_json1_1TargetOnDeviceService = function (output, context) {
|
|
2168
2534
|
return {
|
|
2169
2535
|
ServiceName: __expectString(output.ServiceName),
|
|
2170
2536
|
TransferOption: __expectString(output.TransferOption),
|
|
2171
2537
|
};
|
|
2172
2538
|
};
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
.filter((e)
|
|
2176
|
-
.map((entry)
|
|
2539
|
+
var deserializeAws_json1_1TargetOnDeviceServiceList = function (output, context) {
|
|
2540
|
+
var retVal = (output || [])
|
|
2541
|
+
.filter(function (e) { return e != null; })
|
|
2542
|
+
.map(function (entry) {
|
|
2177
2543
|
if (entry === null) {
|
|
2178
2544
|
return null;
|
|
2179
2545
|
}
|
|
@@ -2181,85 +2547,108 @@ const deserializeAws_json1_1TargetOnDeviceServiceList = (output, context) => {
|
|
|
2181
2547
|
});
|
|
2182
2548
|
return retVal;
|
|
2183
2549
|
};
|
|
2184
|
-
|
|
2550
|
+
var deserializeAws_json1_1TaxDocuments = function (output, context) {
|
|
2185
2551
|
return {
|
|
2186
2552
|
IND: output.IND != null ? deserializeAws_json1_1INDTaxDocuments(output.IND, context) : undefined,
|
|
2187
2553
|
};
|
|
2188
2554
|
};
|
|
2189
|
-
|
|
2555
|
+
var deserializeAws_json1_1TGWOnDeviceServiceConfiguration = function (output, context) {
|
|
2190
2556
|
return {
|
|
2191
2557
|
StorageLimit: __expectInt32(output.StorageLimit),
|
|
2192
2558
|
StorageUnit: __expectString(output.StorageUnit),
|
|
2193
2559
|
};
|
|
2194
2560
|
};
|
|
2195
|
-
|
|
2561
|
+
var deserializeAws_json1_1UnsupportedAddressException = function (output, context) {
|
|
2196
2562
|
return {
|
|
2197
2563
|
Message: __expectString(output.Message),
|
|
2198
2564
|
};
|
|
2199
2565
|
};
|
|
2200
|
-
|
|
2566
|
+
var deserializeAws_json1_1UpdateClusterResult = function (output, context) {
|
|
2201
2567
|
return {};
|
|
2202
2568
|
};
|
|
2203
|
-
|
|
2569
|
+
var deserializeAws_json1_1UpdateJobResult = function (output, context) {
|
|
2204
2570
|
return {};
|
|
2205
2571
|
};
|
|
2206
|
-
|
|
2572
|
+
var deserializeAws_json1_1UpdateJobShipmentStateResult = function (output, context) {
|
|
2207
2573
|
return {};
|
|
2208
2574
|
};
|
|
2209
|
-
|
|
2575
|
+
var deserializeAws_json1_1UpdateLongTermPricingResult = function (output, context) {
|
|
2210
2576
|
return {};
|
|
2211
2577
|
};
|
|
2212
|
-
|
|
2578
|
+
var deserializeAws_json1_1WirelessConnection = function (output, context) {
|
|
2213
2579
|
return {
|
|
2214
2580
|
IsWifiEnabled: __expectBoolean(output.IsWifiEnabled),
|
|
2215
2581
|
};
|
|
2216
2582
|
};
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2583
|
+
var deserializeMetadata = function (output) {
|
|
2584
|
+
var _a, _b;
|
|
2585
|
+
return ({
|
|
2586
|
+
httpStatusCode: output.statusCode,
|
|
2587
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2588
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2589
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2590
|
+
});
|
|
2591
|
+
};
|
|
2592
|
+
var collectBody = function (streamBody, context) {
|
|
2593
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2224
2594
|
if (streamBody instanceof Uint8Array) {
|
|
2225
2595
|
return Promise.resolve(streamBody);
|
|
2226
2596
|
}
|
|
2227
2597
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2228
2598
|
};
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2599
|
+
var collectBodyString = function (streamBody, context) {
|
|
2600
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2601
|
+
};
|
|
2602
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2603
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2604
|
+
return __generator(this, function (_c) {
|
|
2605
|
+
switch (_c.label) {
|
|
2606
|
+
case 0: return [4, context.endpoint()];
|
|
2607
|
+
case 1:
|
|
2608
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2609
|
+
contents = {
|
|
2610
|
+
protocol: protocol,
|
|
2611
|
+
hostname: hostname,
|
|
2612
|
+
port: port,
|
|
2613
|
+
method: "POST",
|
|
2614
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2615
|
+
headers: headers,
|
|
2616
|
+
};
|
|
2617
|
+
if (resolvedHostname !== undefined) {
|
|
2618
|
+
contents.hostname = resolvedHostname;
|
|
2619
|
+
}
|
|
2620
|
+
if (body !== undefined) {
|
|
2621
|
+
contents.body = body;
|
|
2622
|
+
}
|
|
2623
|
+
return [2, new __HttpRequest(contents)];
|
|
2624
|
+
}
|
|
2625
|
+
});
|
|
2626
|
+
}); };
|
|
2627
|
+
var parseBody = function (streamBody, context) {
|
|
2628
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2629
|
+
if (encoded.length) {
|
|
2630
|
+
return JSON.parse(encoded);
|
|
2631
|
+
}
|
|
2632
|
+
return {};
|
|
2633
|
+
});
|
|
2247
2634
|
};
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2635
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2636
|
+
var value;
|
|
2637
|
+
var _a;
|
|
2638
|
+
return __generator(this, function (_b) {
|
|
2639
|
+
switch (_b.label) {
|
|
2640
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2641
|
+
case 1:
|
|
2642
|
+
value = _b.sent();
|
|
2643
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2644
|
+
return [2, value];
|
|
2645
|
+
}
|
|
2646
|
+
});
|
|
2647
|
+
}); };
|
|
2648
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2649
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2650
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2651
|
+
var cleanValue = rawValue;
|
|
2263
2652
|
if (typeof cleanValue === "number") {
|
|
2264
2653
|
cleanValue = cleanValue.toString();
|
|
2265
2654
|
}
|
|
@@ -2274,7 +2663,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2274
2663
|
}
|
|
2275
2664
|
return cleanValue;
|
|
2276
2665
|
};
|
|
2277
|
-
|
|
2666
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2278
2667
|
if (headerKey !== undefined) {
|
|
2279
2668
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2280
2669
|
}
|