@aws-sdk/client-application-insights 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/ApplicationInsights.js +117 -110
- package/dist-es/ApplicationInsightsClient.js +28 -22
- package/dist-es/commands/CreateApplicationCommand.js +28 -21
- package/dist-es/commands/CreateComponentCommand.js +28 -21
- package/dist-es/commands/CreateLogPatternCommand.js +28 -21
- package/dist-es/commands/DeleteApplicationCommand.js +28 -21
- package/dist-es/commands/DeleteComponentCommand.js +28 -21
- package/dist-es/commands/DeleteLogPatternCommand.js +28 -21
- package/dist-es/commands/DescribeApplicationCommand.js +28 -21
- package/dist-es/commands/DescribeComponentCommand.js +28 -21
- package/dist-es/commands/DescribeComponentConfigurationCommand.js +28 -21
- package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +28 -21
- package/dist-es/commands/DescribeLogPatternCommand.js +28 -21
- package/dist-es/commands/DescribeObservationCommand.js +28 -21
- package/dist-es/commands/DescribeProblemCommand.js +28 -21
- package/dist-es/commands/DescribeProblemObservationsCommand.js +28 -21
- package/dist-es/commands/ListApplicationsCommand.js +28 -21
- package/dist-es/commands/ListComponentsCommand.js +28 -21
- package/dist-es/commands/ListConfigurationHistoryCommand.js +28 -21
- package/dist-es/commands/ListLogPatternSetsCommand.js +28 -21
- package/dist-es/commands/ListLogPatternsCommand.js +28 -21
- package/dist-es/commands/ListProblemsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateApplicationCommand.js +28 -21
- package/dist-es/commands/UpdateComponentCommand.js +28 -21
- package/dist-es/commands/UpdateComponentConfigurationCommand.js +28 -21
- package/dist-es/commands/UpdateLogPatternCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ApplicationInsightsServiceException.js +10 -5
- package/dist-es/models/models_0.js +160 -283
- package/dist-es/pagination/ListApplicationsPaginator.js +68 -25
- package/dist-es/pagination/ListComponentsPaginator.js +68 -25
- package/dist-es/pagination/ListConfigurationHistoryPaginator.js +68 -25
- package/dist-es/pagination/ListLogPatternSetsPaginator.js +68 -25
- package/dist-es/pagination/ListLogPatternsPaginator.js +68 -25
- package/dist-es/pagination/ListProblemsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2210 -1705
- 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,1620 +1,2105 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ApplicationInsightsServiceException as __BaseException } from "../models/ApplicationInsightsServiceException";
|
|
4
5
|
import { AccessDeniedException, BadRequestException, InternalServerException, ResourceInUseException, ResourceNotFoundException, TagsAlreadyExistException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
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
|
-
|
|
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
|
-
output,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
throw
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
throw
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
};
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
parsedBody
|
|
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
|
-
output,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
errorCode,
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
};
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
};
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
};
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
6
|
+
export var serializeAws_json1_1CreateApplicationCommand = 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": "EC2WindowsBarleyService.CreateApplication",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1CreateComponentCommand = 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": "EC2WindowsBarleyService.CreateComponent",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1CreateComponentRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1CreateLogPatternCommand = 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": "EC2WindowsBarleyService.CreateLogPattern",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CreateLogPatternRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1DeleteApplicationCommand = 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": "EC2WindowsBarleyService.DeleteApplication",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1DeleteComponentCommand = 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": "EC2WindowsBarleyService.DeleteComponent",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DeleteComponentRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1DeleteLogPatternCommand = 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": "EC2WindowsBarleyService.DeleteLogPattern",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1DeleteLogPatternRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1DescribeApplicationCommand = 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": "EC2WindowsBarleyService.DescribeApplication",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1DescribeComponentCommand = 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": "EC2WindowsBarleyService.DescribeComponent",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1DescribeComponentRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1DescribeComponentConfigurationCommand = 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": "EC2WindowsBarleyService.DescribeComponentConfiguration",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1DescribeComponentConfigurationRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1DescribeComponentConfigurationRecommendationCommand = 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": "EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1DescribeLogPatternCommand = 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": "EC2WindowsBarleyService.DescribeLogPattern",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1DescribeLogPatternRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1DescribeObservationCommand = 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": "EC2WindowsBarleyService.DescribeObservation",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1DescribeObservationRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1DescribeProblemCommand = 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": "EC2WindowsBarleyService.DescribeProblem",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1DescribeProblemRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1DescribeProblemObservationsCommand = 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": "EC2WindowsBarleyService.DescribeProblemObservations",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1DescribeProblemObservationsRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1ListApplicationsCommand = 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": "EC2WindowsBarleyService.ListApplications",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1ListApplicationsRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var serializeAws_json1_1ListComponentsCommand = 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": "EC2WindowsBarleyService.ListComponents",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1ListComponentsRequest(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
182
|
+
export var serializeAws_json1_1ListConfigurationHistoryCommand = 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": "EC2WindowsBarleyService.ListConfigurationHistory",
|
|
188
|
+
};
|
|
189
|
+
body = JSON.stringify(serializeAws_json1_1ListConfigurationHistoryRequest(input, context));
|
|
190
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
|
+
});
|
|
192
|
+
}); };
|
|
193
|
+
export var serializeAws_json1_1ListLogPatternsCommand = 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": "EC2WindowsBarleyService.ListLogPatterns",
|
|
199
|
+
};
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1ListLogPatternsRequest(input, context));
|
|
201
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
+
});
|
|
203
|
+
}); };
|
|
204
|
+
export var serializeAws_json1_1ListLogPatternSetsCommand = 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": "EC2WindowsBarleyService.ListLogPatternSets",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1ListLogPatternSetsRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
215
|
+
export var serializeAws_json1_1ListProblemsCommand = 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": "EC2WindowsBarleyService.ListProblems",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_1ListProblemsRequest(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
226
|
+
export var serializeAws_json1_1ListTagsForResourceCommand = 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": "EC2WindowsBarleyService.ListTagsForResource",
|
|
232
|
+
};
|
|
233
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
234
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
235
|
+
});
|
|
236
|
+
}); };
|
|
237
|
+
export var serializeAws_json1_1TagResourceCommand = 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": "EC2WindowsBarleyService.TagResource",
|
|
243
|
+
};
|
|
244
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
245
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
246
|
+
});
|
|
247
|
+
}); };
|
|
248
|
+
export var serializeAws_json1_1UntagResourceCommand = 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": "EC2WindowsBarleyService.UntagResource",
|
|
254
|
+
};
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
256
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
|
+
});
|
|
258
|
+
}); };
|
|
259
|
+
export var serializeAws_json1_1UpdateApplicationCommand = 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": "EC2WindowsBarleyService.UpdateApplication",
|
|
265
|
+
};
|
|
266
|
+
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
267
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
268
|
+
});
|
|
269
|
+
}); };
|
|
270
|
+
export var serializeAws_json1_1UpdateComponentCommand = 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": "EC2WindowsBarleyService.UpdateComponent",
|
|
276
|
+
};
|
|
277
|
+
body = JSON.stringify(serializeAws_json1_1UpdateComponentRequest(input, context));
|
|
278
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
279
|
+
});
|
|
280
|
+
}); };
|
|
281
|
+
export var serializeAws_json1_1UpdateComponentConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
|
+
var headers, body;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
headers = {
|
|
285
|
+
"content-type": "application/x-amz-json-1.1",
|
|
286
|
+
"x-amz-target": "EC2WindowsBarleyService.UpdateComponentConfiguration",
|
|
287
|
+
};
|
|
288
|
+
body = JSON.stringify(serializeAws_json1_1UpdateComponentConfigurationRequest(input, context));
|
|
289
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
290
|
+
});
|
|
291
|
+
}); };
|
|
292
|
+
export var serializeAws_json1_1UpdateLogPatternCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
|
+
var headers, body;
|
|
294
|
+
return __generator(this, function (_a) {
|
|
295
|
+
headers = {
|
|
296
|
+
"content-type": "application/x-amz-json-1.1",
|
|
297
|
+
"x-amz-target": "EC2WindowsBarleyService.UpdateLogPattern",
|
|
298
|
+
};
|
|
299
|
+
body = JSON.stringify(serializeAws_json1_1UpdateLogPatternRequest(input, context));
|
|
300
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
301
|
+
});
|
|
302
|
+
}); };
|
|
303
|
+
export var deserializeAws_json1_1CreateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
|
+
var data, contents, response;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
307
|
+
case 0:
|
|
308
|
+
if (output.statusCode >= 300) {
|
|
309
|
+
return [2, deserializeAws_json1_1CreateApplicationCommandError(output, context)];
|
|
310
|
+
}
|
|
311
|
+
return [4, parseBody(output.body, context)];
|
|
312
|
+
case 1:
|
|
313
|
+
data = _a.sent();
|
|
314
|
+
contents = {};
|
|
315
|
+
contents = deserializeAws_json1_1CreateApplicationResponse(data, context);
|
|
316
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
317
|
+
return [2, Promise.resolve(response)];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
}); };
|
|
321
|
+
var deserializeAws_json1_1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
322
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
323
|
+
var _c;
|
|
324
|
+
return __generator(this, function (_d) {
|
|
325
|
+
switch (_d.label) {
|
|
326
|
+
case 0:
|
|
327
|
+
_a = [__assign({}, output)];
|
|
328
|
+
_c = {};
|
|
329
|
+
return [4, parseErrorBody(output.body, context)];
|
|
330
|
+
case 1:
|
|
331
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
332
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
|
+
_b = errorCode;
|
|
334
|
+
switch (_b) {
|
|
335
|
+
case "AccessDeniedException": return [3, 2];
|
|
336
|
+
case "com.amazonaws.applicationinsights#AccessDeniedException": return [3, 2];
|
|
337
|
+
case "InternalServerException": return [3, 4];
|
|
338
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 4];
|
|
339
|
+
case "ResourceInUseException": return [3, 6];
|
|
340
|
+
case "com.amazonaws.applicationinsights#ResourceInUseException": return [3, 6];
|
|
341
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
342
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 8];
|
|
343
|
+
case "TagsAlreadyExistException": return [3, 10];
|
|
344
|
+
case "com.amazonaws.applicationinsights#TagsAlreadyExistException": return [3, 10];
|
|
345
|
+
case "ValidationException": return [3, 12];
|
|
346
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 12];
|
|
347
|
+
}
|
|
348
|
+
return [3, 14];
|
|
349
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
350
|
+
case 3: throw _d.sent();
|
|
351
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
352
|
+
case 5: throw _d.sent();
|
|
353
|
+
case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
354
|
+
case 7: throw _d.sent();
|
|
355
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
356
|
+
case 9: throw _d.sent();
|
|
357
|
+
case 10: return [4, deserializeAws_json1_1TagsAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
358
|
+
case 11: throw _d.sent();
|
|
359
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
360
|
+
case 13: throw _d.sent();
|
|
361
|
+
case 14:
|
|
362
|
+
parsedBody = parsedOutput.body;
|
|
363
|
+
throwDefaultError({
|
|
364
|
+
output: output,
|
|
365
|
+
parsedBody: parsedBody,
|
|
366
|
+
exceptionCtor: __BaseException,
|
|
367
|
+
errorCode: errorCode,
|
|
368
|
+
});
|
|
369
|
+
_d.label = 15;
|
|
370
|
+
case 15: return [2];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}); };
|
|
374
|
+
export var deserializeAws_json1_1CreateComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
|
+
var data, contents, response;
|
|
376
|
+
return __generator(this, function (_a) {
|
|
377
|
+
switch (_a.label) {
|
|
378
|
+
case 0:
|
|
379
|
+
if (output.statusCode >= 300) {
|
|
380
|
+
return [2, deserializeAws_json1_1CreateComponentCommandError(output, context)];
|
|
381
|
+
}
|
|
382
|
+
return [4, parseBody(output.body, context)];
|
|
383
|
+
case 1:
|
|
384
|
+
data = _a.sent();
|
|
385
|
+
contents = {};
|
|
386
|
+
contents = deserializeAws_json1_1CreateComponentResponse(data, context);
|
|
387
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
388
|
+
return [2, Promise.resolve(response)];
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}); };
|
|
392
|
+
var deserializeAws_json1_1CreateComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
394
|
+
var _c;
|
|
395
|
+
return __generator(this, function (_d) {
|
|
396
|
+
switch (_d.label) {
|
|
397
|
+
case 0:
|
|
398
|
+
_a = [__assign({}, output)];
|
|
399
|
+
_c = {};
|
|
400
|
+
return [4, parseErrorBody(output.body, context)];
|
|
401
|
+
case 1:
|
|
402
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
403
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
404
|
+
_b = errorCode;
|
|
405
|
+
switch (_b) {
|
|
406
|
+
case "InternalServerException": return [3, 2];
|
|
407
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
408
|
+
case "ResourceInUseException": return [3, 4];
|
|
409
|
+
case "com.amazonaws.applicationinsights#ResourceInUseException": return [3, 4];
|
|
410
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
411
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 6];
|
|
412
|
+
case "ValidationException": return [3, 8];
|
|
413
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 8];
|
|
414
|
+
}
|
|
415
|
+
return [3, 10];
|
|
416
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
417
|
+
case 3: throw _d.sent();
|
|
418
|
+
case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
419
|
+
case 5: throw _d.sent();
|
|
420
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
421
|
+
case 7: throw _d.sent();
|
|
422
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
423
|
+
case 9: throw _d.sent();
|
|
424
|
+
case 10:
|
|
425
|
+
parsedBody = parsedOutput.body;
|
|
426
|
+
throwDefaultError({
|
|
427
|
+
output: output,
|
|
428
|
+
parsedBody: parsedBody,
|
|
429
|
+
exceptionCtor: __BaseException,
|
|
430
|
+
errorCode: errorCode,
|
|
431
|
+
});
|
|
432
|
+
_d.label = 11;
|
|
433
|
+
case 11: return [2];
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
}); };
|
|
437
|
+
export var deserializeAws_json1_1CreateLogPatternCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
438
|
+
var data, contents, response;
|
|
439
|
+
return __generator(this, function (_a) {
|
|
440
|
+
switch (_a.label) {
|
|
441
|
+
case 0:
|
|
442
|
+
if (output.statusCode >= 300) {
|
|
443
|
+
return [2, deserializeAws_json1_1CreateLogPatternCommandError(output, context)];
|
|
444
|
+
}
|
|
445
|
+
return [4, parseBody(output.body, context)];
|
|
446
|
+
case 1:
|
|
447
|
+
data = _a.sent();
|
|
448
|
+
contents = {};
|
|
449
|
+
contents = deserializeAws_json1_1CreateLogPatternResponse(data, context);
|
|
450
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
451
|
+
return [2, Promise.resolve(response)];
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}); };
|
|
455
|
+
var deserializeAws_json1_1CreateLogPatternCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
456
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
457
|
+
var _c;
|
|
458
|
+
return __generator(this, function (_d) {
|
|
459
|
+
switch (_d.label) {
|
|
460
|
+
case 0:
|
|
461
|
+
_a = [__assign({}, output)];
|
|
462
|
+
_c = {};
|
|
463
|
+
return [4, parseErrorBody(output.body, context)];
|
|
464
|
+
case 1:
|
|
465
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
466
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
+
_b = errorCode;
|
|
468
|
+
switch (_b) {
|
|
469
|
+
case "InternalServerException": return [3, 2];
|
|
470
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
471
|
+
case "ResourceInUseException": return [3, 4];
|
|
472
|
+
case "com.amazonaws.applicationinsights#ResourceInUseException": return [3, 4];
|
|
473
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
474
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 6];
|
|
475
|
+
case "ValidationException": return [3, 8];
|
|
476
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 8];
|
|
477
|
+
}
|
|
478
|
+
return [3, 10];
|
|
479
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
480
|
+
case 3: throw _d.sent();
|
|
481
|
+
case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
482
|
+
case 5: throw _d.sent();
|
|
483
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
484
|
+
case 7: throw _d.sent();
|
|
485
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
486
|
+
case 9: throw _d.sent();
|
|
487
|
+
case 10:
|
|
488
|
+
parsedBody = parsedOutput.body;
|
|
489
|
+
throwDefaultError({
|
|
490
|
+
output: output,
|
|
491
|
+
parsedBody: parsedBody,
|
|
492
|
+
exceptionCtor: __BaseException,
|
|
493
|
+
errorCode: errorCode,
|
|
494
|
+
});
|
|
495
|
+
_d.label = 11;
|
|
496
|
+
case 11: return [2];
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
}); };
|
|
500
|
+
export var deserializeAws_json1_1DeleteApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
501
|
+
var data, contents, response;
|
|
502
|
+
return __generator(this, function (_a) {
|
|
503
|
+
switch (_a.label) {
|
|
504
|
+
case 0:
|
|
505
|
+
if (output.statusCode >= 300) {
|
|
506
|
+
return [2, deserializeAws_json1_1DeleteApplicationCommandError(output, context)];
|
|
507
|
+
}
|
|
508
|
+
return [4, parseBody(output.body, context)];
|
|
509
|
+
case 1:
|
|
510
|
+
data = _a.sent();
|
|
511
|
+
contents = {};
|
|
512
|
+
contents = deserializeAws_json1_1DeleteApplicationResponse(data, context);
|
|
513
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
514
|
+
return [2, Promise.resolve(response)];
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}); };
|
|
518
|
+
var deserializeAws_json1_1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
519
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
520
|
+
var _c;
|
|
521
|
+
return __generator(this, function (_d) {
|
|
522
|
+
switch (_d.label) {
|
|
523
|
+
case 0:
|
|
524
|
+
_a = [__assign({}, output)];
|
|
525
|
+
_c = {};
|
|
526
|
+
return [4, parseErrorBody(output.body, context)];
|
|
527
|
+
case 1:
|
|
528
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
529
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
+
_b = errorCode;
|
|
531
|
+
switch (_b) {
|
|
532
|
+
case "BadRequestException": return [3, 2];
|
|
533
|
+
case "com.amazonaws.applicationinsights#BadRequestException": return [3, 2];
|
|
534
|
+
case "InternalServerException": return [3, 4];
|
|
535
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 4];
|
|
536
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
537
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 6];
|
|
538
|
+
case "ValidationException": return [3, 8];
|
|
539
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 8];
|
|
540
|
+
}
|
|
541
|
+
return [3, 10];
|
|
542
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
543
|
+
case 3: throw _d.sent();
|
|
544
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
545
|
+
case 5: throw _d.sent();
|
|
546
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
547
|
+
case 7: throw _d.sent();
|
|
548
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
549
|
+
case 9: throw _d.sent();
|
|
550
|
+
case 10:
|
|
551
|
+
parsedBody = parsedOutput.body;
|
|
552
|
+
throwDefaultError({
|
|
553
|
+
output: output,
|
|
554
|
+
parsedBody: parsedBody,
|
|
555
|
+
exceptionCtor: __BaseException,
|
|
556
|
+
errorCode: errorCode,
|
|
557
|
+
});
|
|
558
|
+
_d.label = 11;
|
|
559
|
+
case 11: return [2];
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}); };
|
|
563
|
+
export var deserializeAws_json1_1DeleteComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
564
|
+
var data, contents, response;
|
|
565
|
+
return __generator(this, function (_a) {
|
|
566
|
+
switch (_a.label) {
|
|
567
|
+
case 0:
|
|
568
|
+
if (output.statusCode >= 300) {
|
|
569
|
+
return [2, deserializeAws_json1_1DeleteComponentCommandError(output, context)];
|
|
570
|
+
}
|
|
571
|
+
return [4, parseBody(output.body, context)];
|
|
572
|
+
case 1:
|
|
573
|
+
data = _a.sent();
|
|
574
|
+
contents = {};
|
|
575
|
+
contents = deserializeAws_json1_1DeleteComponentResponse(data, context);
|
|
576
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
577
|
+
return [2, Promise.resolve(response)];
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}); };
|
|
581
|
+
var deserializeAws_json1_1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
582
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
583
|
+
var _c;
|
|
584
|
+
return __generator(this, function (_d) {
|
|
585
|
+
switch (_d.label) {
|
|
586
|
+
case 0:
|
|
587
|
+
_a = [__assign({}, output)];
|
|
588
|
+
_c = {};
|
|
589
|
+
return [4, parseErrorBody(output.body, context)];
|
|
590
|
+
case 1:
|
|
591
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
592
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
+
_b = errorCode;
|
|
594
|
+
switch (_b) {
|
|
595
|
+
case "InternalServerException": return [3, 2];
|
|
596
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
597
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
598
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
599
|
+
case "ValidationException": return [3, 6];
|
|
600
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
601
|
+
}
|
|
602
|
+
return [3, 8];
|
|
603
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
604
|
+
case 3: throw _d.sent();
|
|
605
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
606
|
+
case 5: throw _d.sent();
|
|
607
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
608
|
+
case 7: throw _d.sent();
|
|
609
|
+
case 8:
|
|
610
|
+
parsedBody = parsedOutput.body;
|
|
611
|
+
throwDefaultError({
|
|
612
|
+
output: output,
|
|
613
|
+
parsedBody: parsedBody,
|
|
614
|
+
exceptionCtor: __BaseException,
|
|
615
|
+
errorCode: errorCode,
|
|
616
|
+
});
|
|
617
|
+
_d.label = 9;
|
|
618
|
+
case 9: return [2];
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
}); };
|
|
622
|
+
export var deserializeAws_json1_1DeleteLogPatternCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
623
|
+
var data, contents, response;
|
|
624
|
+
return __generator(this, function (_a) {
|
|
625
|
+
switch (_a.label) {
|
|
626
|
+
case 0:
|
|
627
|
+
if (output.statusCode >= 300) {
|
|
628
|
+
return [2, deserializeAws_json1_1DeleteLogPatternCommandError(output, context)];
|
|
629
|
+
}
|
|
630
|
+
return [4, parseBody(output.body, context)];
|
|
631
|
+
case 1:
|
|
632
|
+
data = _a.sent();
|
|
633
|
+
contents = {};
|
|
634
|
+
contents = deserializeAws_json1_1DeleteLogPatternResponse(data, context);
|
|
635
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
636
|
+
return [2, Promise.resolve(response)];
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
}); };
|
|
640
|
+
var deserializeAws_json1_1DeleteLogPatternCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
641
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
642
|
+
var _c;
|
|
643
|
+
return __generator(this, function (_d) {
|
|
644
|
+
switch (_d.label) {
|
|
645
|
+
case 0:
|
|
646
|
+
_a = [__assign({}, output)];
|
|
647
|
+
_c = {};
|
|
648
|
+
return [4, parseErrorBody(output.body, context)];
|
|
649
|
+
case 1:
|
|
650
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
651
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
|
+
_b = errorCode;
|
|
653
|
+
switch (_b) {
|
|
654
|
+
case "BadRequestException": return [3, 2];
|
|
655
|
+
case "com.amazonaws.applicationinsights#BadRequestException": return [3, 2];
|
|
656
|
+
case "InternalServerException": return [3, 4];
|
|
657
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 4];
|
|
658
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
659
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 6];
|
|
660
|
+
case "ValidationException": return [3, 8];
|
|
661
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 8];
|
|
662
|
+
}
|
|
663
|
+
return [3, 10];
|
|
664
|
+
case 2: return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
665
|
+
case 3: throw _d.sent();
|
|
666
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
667
|
+
case 5: throw _d.sent();
|
|
668
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
669
|
+
case 7: throw _d.sent();
|
|
670
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
671
|
+
case 9: throw _d.sent();
|
|
672
|
+
case 10:
|
|
673
|
+
parsedBody = parsedOutput.body;
|
|
674
|
+
throwDefaultError({
|
|
675
|
+
output: output,
|
|
676
|
+
parsedBody: parsedBody,
|
|
677
|
+
exceptionCtor: __BaseException,
|
|
678
|
+
errorCode: errorCode,
|
|
679
|
+
});
|
|
680
|
+
_d.label = 11;
|
|
681
|
+
case 11: return [2];
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}); };
|
|
685
|
+
export var deserializeAws_json1_1DescribeApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
686
|
+
var data, contents, response;
|
|
687
|
+
return __generator(this, function (_a) {
|
|
688
|
+
switch (_a.label) {
|
|
689
|
+
case 0:
|
|
690
|
+
if (output.statusCode >= 300) {
|
|
691
|
+
return [2, deserializeAws_json1_1DescribeApplicationCommandError(output, context)];
|
|
692
|
+
}
|
|
693
|
+
return [4, parseBody(output.body, context)];
|
|
694
|
+
case 1:
|
|
695
|
+
data = _a.sent();
|
|
696
|
+
contents = {};
|
|
697
|
+
contents = deserializeAws_json1_1DescribeApplicationResponse(data, context);
|
|
698
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
699
|
+
return [2, Promise.resolve(response)];
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}); };
|
|
703
|
+
var deserializeAws_json1_1DescribeApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
705
|
+
var _c;
|
|
706
|
+
return __generator(this, function (_d) {
|
|
707
|
+
switch (_d.label) {
|
|
708
|
+
case 0:
|
|
709
|
+
_a = [__assign({}, output)];
|
|
710
|
+
_c = {};
|
|
711
|
+
return [4, parseErrorBody(output.body, context)];
|
|
712
|
+
case 1:
|
|
713
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
714
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
+
_b = errorCode;
|
|
716
|
+
switch (_b) {
|
|
717
|
+
case "InternalServerException": return [3, 2];
|
|
718
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
719
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
720
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
721
|
+
case "ValidationException": return [3, 6];
|
|
722
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
723
|
+
}
|
|
724
|
+
return [3, 8];
|
|
725
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
726
|
+
case 3: throw _d.sent();
|
|
727
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
728
|
+
case 5: throw _d.sent();
|
|
729
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
730
|
+
case 7: throw _d.sent();
|
|
731
|
+
case 8:
|
|
732
|
+
parsedBody = parsedOutput.body;
|
|
733
|
+
throwDefaultError({
|
|
734
|
+
output: output,
|
|
735
|
+
parsedBody: parsedBody,
|
|
736
|
+
exceptionCtor: __BaseException,
|
|
737
|
+
errorCode: errorCode,
|
|
738
|
+
});
|
|
739
|
+
_d.label = 9;
|
|
740
|
+
case 9: return [2];
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
}); };
|
|
744
|
+
export var deserializeAws_json1_1DescribeComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
745
|
+
var data, contents, response;
|
|
746
|
+
return __generator(this, function (_a) {
|
|
747
|
+
switch (_a.label) {
|
|
748
|
+
case 0:
|
|
749
|
+
if (output.statusCode >= 300) {
|
|
750
|
+
return [2, deserializeAws_json1_1DescribeComponentCommandError(output, context)];
|
|
751
|
+
}
|
|
752
|
+
return [4, parseBody(output.body, context)];
|
|
753
|
+
case 1:
|
|
754
|
+
data = _a.sent();
|
|
755
|
+
contents = {};
|
|
756
|
+
contents = deserializeAws_json1_1DescribeComponentResponse(data, context);
|
|
757
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
758
|
+
return [2, Promise.resolve(response)];
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}); };
|
|
762
|
+
var deserializeAws_json1_1DescribeComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
763
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
764
|
+
var _c;
|
|
765
|
+
return __generator(this, function (_d) {
|
|
766
|
+
switch (_d.label) {
|
|
767
|
+
case 0:
|
|
768
|
+
_a = [__assign({}, output)];
|
|
769
|
+
_c = {};
|
|
770
|
+
return [4, parseErrorBody(output.body, context)];
|
|
771
|
+
case 1:
|
|
772
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
773
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
+
_b = errorCode;
|
|
775
|
+
switch (_b) {
|
|
776
|
+
case "InternalServerException": return [3, 2];
|
|
777
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
778
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
779
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
780
|
+
case "ValidationException": return [3, 6];
|
|
781
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
782
|
+
}
|
|
783
|
+
return [3, 8];
|
|
784
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
785
|
+
case 3: throw _d.sent();
|
|
786
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
787
|
+
case 5: throw _d.sent();
|
|
788
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
789
|
+
case 7: throw _d.sent();
|
|
790
|
+
case 8:
|
|
791
|
+
parsedBody = parsedOutput.body;
|
|
792
|
+
throwDefaultError({
|
|
793
|
+
output: output,
|
|
794
|
+
parsedBody: parsedBody,
|
|
795
|
+
exceptionCtor: __BaseException,
|
|
796
|
+
errorCode: errorCode,
|
|
797
|
+
});
|
|
798
|
+
_d.label = 9;
|
|
799
|
+
case 9: return [2];
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
}); };
|
|
803
|
+
export var deserializeAws_json1_1DescribeComponentConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
804
|
+
var data, contents, response;
|
|
805
|
+
return __generator(this, function (_a) {
|
|
806
|
+
switch (_a.label) {
|
|
807
|
+
case 0:
|
|
808
|
+
if (output.statusCode >= 300) {
|
|
809
|
+
return [2, deserializeAws_json1_1DescribeComponentConfigurationCommandError(output, context)];
|
|
810
|
+
}
|
|
811
|
+
return [4, parseBody(output.body, context)];
|
|
812
|
+
case 1:
|
|
813
|
+
data = _a.sent();
|
|
814
|
+
contents = {};
|
|
815
|
+
contents = deserializeAws_json1_1DescribeComponentConfigurationResponse(data, context);
|
|
816
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
817
|
+
return [2, Promise.resolve(response)];
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
}); };
|
|
821
|
+
var deserializeAws_json1_1DescribeComponentConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
822
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
823
|
+
var _c;
|
|
824
|
+
return __generator(this, function (_d) {
|
|
825
|
+
switch (_d.label) {
|
|
826
|
+
case 0:
|
|
827
|
+
_a = [__assign({}, output)];
|
|
828
|
+
_c = {};
|
|
829
|
+
return [4, parseErrorBody(output.body, context)];
|
|
830
|
+
case 1:
|
|
831
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
832
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
+
_b = errorCode;
|
|
834
|
+
switch (_b) {
|
|
835
|
+
case "InternalServerException": return [3, 2];
|
|
836
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
837
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
838
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
839
|
+
case "ValidationException": return [3, 6];
|
|
840
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
841
|
+
}
|
|
842
|
+
return [3, 8];
|
|
843
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
844
|
+
case 3: throw _d.sent();
|
|
845
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
846
|
+
case 5: throw _d.sent();
|
|
847
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
848
|
+
case 7: throw _d.sent();
|
|
849
|
+
case 8:
|
|
850
|
+
parsedBody = parsedOutput.body;
|
|
851
|
+
throwDefaultError({
|
|
852
|
+
output: output,
|
|
853
|
+
parsedBody: parsedBody,
|
|
854
|
+
exceptionCtor: __BaseException,
|
|
855
|
+
errorCode: errorCode,
|
|
856
|
+
});
|
|
857
|
+
_d.label = 9;
|
|
858
|
+
case 9: return [2];
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
}); };
|
|
862
|
+
export var deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
863
|
+
var data, contents, response;
|
|
864
|
+
return __generator(this, function (_a) {
|
|
865
|
+
switch (_a.label) {
|
|
866
|
+
case 0:
|
|
867
|
+
if (output.statusCode >= 300) {
|
|
868
|
+
return [2, deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandError(output, context)];
|
|
869
|
+
}
|
|
870
|
+
return [4, parseBody(output.body, context)];
|
|
871
|
+
case 1:
|
|
872
|
+
data = _a.sent();
|
|
873
|
+
contents = {};
|
|
874
|
+
contents = deserializeAws_json1_1DescribeComponentConfigurationRecommendationResponse(data, context);
|
|
875
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
876
|
+
return [2, Promise.resolve(response)];
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
}); };
|
|
880
|
+
var deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
881
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
882
|
+
var _c;
|
|
883
|
+
return __generator(this, function (_d) {
|
|
884
|
+
switch (_d.label) {
|
|
885
|
+
case 0:
|
|
886
|
+
_a = [__assign({}, output)];
|
|
887
|
+
_c = {};
|
|
888
|
+
return [4, parseErrorBody(output.body, context)];
|
|
889
|
+
case 1:
|
|
890
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
891
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
+
_b = errorCode;
|
|
893
|
+
switch (_b) {
|
|
894
|
+
case "InternalServerException": return [3, 2];
|
|
895
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
896
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
897
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
898
|
+
case "ValidationException": return [3, 6];
|
|
899
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
900
|
+
}
|
|
901
|
+
return [3, 8];
|
|
902
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
903
|
+
case 3: throw _d.sent();
|
|
904
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
905
|
+
case 5: throw _d.sent();
|
|
906
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
907
|
+
case 7: throw _d.sent();
|
|
908
|
+
case 8:
|
|
909
|
+
parsedBody = parsedOutput.body;
|
|
910
|
+
throwDefaultError({
|
|
911
|
+
output: output,
|
|
912
|
+
parsedBody: parsedBody,
|
|
913
|
+
exceptionCtor: __BaseException,
|
|
914
|
+
errorCode: errorCode,
|
|
915
|
+
});
|
|
916
|
+
_d.label = 9;
|
|
917
|
+
case 9: return [2];
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
}); };
|
|
921
|
+
export var deserializeAws_json1_1DescribeLogPatternCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
922
|
+
var data, contents, response;
|
|
923
|
+
return __generator(this, function (_a) {
|
|
924
|
+
switch (_a.label) {
|
|
925
|
+
case 0:
|
|
926
|
+
if (output.statusCode >= 300) {
|
|
927
|
+
return [2, deserializeAws_json1_1DescribeLogPatternCommandError(output, context)];
|
|
928
|
+
}
|
|
929
|
+
return [4, parseBody(output.body, context)];
|
|
930
|
+
case 1:
|
|
931
|
+
data = _a.sent();
|
|
932
|
+
contents = {};
|
|
933
|
+
contents = deserializeAws_json1_1DescribeLogPatternResponse(data, context);
|
|
934
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
935
|
+
return [2, Promise.resolve(response)];
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}); };
|
|
939
|
+
var deserializeAws_json1_1DescribeLogPatternCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
940
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
941
|
+
var _c;
|
|
942
|
+
return __generator(this, function (_d) {
|
|
943
|
+
switch (_d.label) {
|
|
944
|
+
case 0:
|
|
945
|
+
_a = [__assign({}, output)];
|
|
946
|
+
_c = {};
|
|
947
|
+
return [4, parseErrorBody(output.body, context)];
|
|
948
|
+
case 1:
|
|
949
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
950
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
+
_b = errorCode;
|
|
952
|
+
switch (_b) {
|
|
953
|
+
case "InternalServerException": return [3, 2];
|
|
954
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
955
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
956
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
957
|
+
case "ValidationException": return [3, 6];
|
|
958
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
959
|
+
}
|
|
960
|
+
return [3, 8];
|
|
961
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
962
|
+
case 3: throw _d.sent();
|
|
963
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
964
|
+
case 5: throw _d.sent();
|
|
965
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
966
|
+
case 7: throw _d.sent();
|
|
967
|
+
case 8:
|
|
968
|
+
parsedBody = parsedOutput.body;
|
|
969
|
+
throwDefaultError({
|
|
970
|
+
output: output,
|
|
971
|
+
parsedBody: parsedBody,
|
|
972
|
+
exceptionCtor: __BaseException,
|
|
973
|
+
errorCode: errorCode,
|
|
974
|
+
});
|
|
975
|
+
_d.label = 9;
|
|
976
|
+
case 9: return [2];
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
}); };
|
|
980
|
+
export var deserializeAws_json1_1DescribeObservationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
981
|
+
var data, contents, response;
|
|
982
|
+
return __generator(this, function (_a) {
|
|
983
|
+
switch (_a.label) {
|
|
984
|
+
case 0:
|
|
985
|
+
if (output.statusCode >= 300) {
|
|
986
|
+
return [2, deserializeAws_json1_1DescribeObservationCommandError(output, context)];
|
|
987
|
+
}
|
|
988
|
+
return [4, parseBody(output.body, context)];
|
|
989
|
+
case 1:
|
|
990
|
+
data = _a.sent();
|
|
991
|
+
contents = {};
|
|
992
|
+
contents = deserializeAws_json1_1DescribeObservationResponse(data, context);
|
|
993
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
994
|
+
return [2, Promise.resolve(response)];
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}); };
|
|
998
|
+
var deserializeAws_json1_1DescribeObservationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
999
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1000
|
+
var _c;
|
|
1001
|
+
return __generator(this, function (_d) {
|
|
1002
|
+
switch (_d.label) {
|
|
1003
|
+
case 0:
|
|
1004
|
+
_a = [__assign({}, output)];
|
|
1005
|
+
_c = {};
|
|
1006
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1007
|
+
case 1:
|
|
1008
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1009
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
+
_b = errorCode;
|
|
1011
|
+
switch (_b) {
|
|
1012
|
+
case "InternalServerException": return [3, 2];
|
|
1013
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1014
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1015
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1016
|
+
case "ValidationException": return [3, 6];
|
|
1017
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1018
|
+
}
|
|
1019
|
+
return [3, 8];
|
|
1020
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1021
|
+
case 3: throw _d.sent();
|
|
1022
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1023
|
+
case 5: throw _d.sent();
|
|
1024
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1025
|
+
case 7: throw _d.sent();
|
|
1026
|
+
case 8:
|
|
1027
|
+
parsedBody = parsedOutput.body;
|
|
1028
|
+
throwDefaultError({
|
|
1029
|
+
output: output,
|
|
1030
|
+
parsedBody: parsedBody,
|
|
1031
|
+
exceptionCtor: __BaseException,
|
|
1032
|
+
errorCode: errorCode,
|
|
1033
|
+
});
|
|
1034
|
+
_d.label = 9;
|
|
1035
|
+
case 9: return [2];
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
}); };
|
|
1039
|
+
export var deserializeAws_json1_1DescribeProblemCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1040
|
+
var data, contents, response;
|
|
1041
|
+
return __generator(this, function (_a) {
|
|
1042
|
+
switch (_a.label) {
|
|
1043
|
+
case 0:
|
|
1044
|
+
if (output.statusCode >= 300) {
|
|
1045
|
+
return [2, deserializeAws_json1_1DescribeProblemCommandError(output, context)];
|
|
1046
|
+
}
|
|
1047
|
+
return [4, parseBody(output.body, context)];
|
|
1048
|
+
case 1:
|
|
1049
|
+
data = _a.sent();
|
|
1050
|
+
contents = {};
|
|
1051
|
+
contents = deserializeAws_json1_1DescribeProblemResponse(data, context);
|
|
1052
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1053
|
+
return [2, Promise.resolve(response)];
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
}); };
|
|
1057
|
+
var deserializeAws_json1_1DescribeProblemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1058
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1059
|
+
var _c;
|
|
1060
|
+
return __generator(this, function (_d) {
|
|
1061
|
+
switch (_d.label) {
|
|
1062
|
+
case 0:
|
|
1063
|
+
_a = [__assign({}, output)];
|
|
1064
|
+
_c = {};
|
|
1065
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1066
|
+
case 1:
|
|
1067
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1068
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
+
_b = errorCode;
|
|
1070
|
+
switch (_b) {
|
|
1071
|
+
case "InternalServerException": return [3, 2];
|
|
1072
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1073
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1074
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1075
|
+
case "ValidationException": return [3, 6];
|
|
1076
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1077
|
+
}
|
|
1078
|
+
return [3, 8];
|
|
1079
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1080
|
+
case 3: throw _d.sent();
|
|
1081
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1082
|
+
case 5: throw _d.sent();
|
|
1083
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1084
|
+
case 7: throw _d.sent();
|
|
1085
|
+
case 8:
|
|
1086
|
+
parsedBody = parsedOutput.body;
|
|
1087
|
+
throwDefaultError({
|
|
1088
|
+
output: output,
|
|
1089
|
+
parsedBody: parsedBody,
|
|
1090
|
+
exceptionCtor: __BaseException,
|
|
1091
|
+
errorCode: errorCode,
|
|
1092
|
+
});
|
|
1093
|
+
_d.label = 9;
|
|
1094
|
+
case 9: return [2];
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
}); };
|
|
1098
|
+
export var deserializeAws_json1_1DescribeProblemObservationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1099
|
+
var data, contents, response;
|
|
1100
|
+
return __generator(this, function (_a) {
|
|
1101
|
+
switch (_a.label) {
|
|
1102
|
+
case 0:
|
|
1103
|
+
if (output.statusCode >= 300) {
|
|
1104
|
+
return [2, deserializeAws_json1_1DescribeProblemObservationsCommandError(output, context)];
|
|
1105
|
+
}
|
|
1106
|
+
return [4, parseBody(output.body, context)];
|
|
1107
|
+
case 1:
|
|
1108
|
+
data = _a.sent();
|
|
1109
|
+
contents = {};
|
|
1110
|
+
contents = deserializeAws_json1_1DescribeProblemObservationsResponse(data, context);
|
|
1111
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1112
|
+
return [2, Promise.resolve(response)];
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
}); };
|
|
1116
|
+
var deserializeAws_json1_1DescribeProblemObservationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1117
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1118
|
+
var _c;
|
|
1119
|
+
return __generator(this, function (_d) {
|
|
1120
|
+
switch (_d.label) {
|
|
1121
|
+
case 0:
|
|
1122
|
+
_a = [__assign({}, output)];
|
|
1123
|
+
_c = {};
|
|
1124
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1125
|
+
case 1:
|
|
1126
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1127
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1128
|
+
_b = errorCode;
|
|
1129
|
+
switch (_b) {
|
|
1130
|
+
case "InternalServerException": return [3, 2];
|
|
1131
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1132
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1133
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1134
|
+
case "ValidationException": return [3, 6];
|
|
1135
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1136
|
+
}
|
|
1137
|
+
return [3, 8];
|
|
1138
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1139
|
+
case 3: throw _d.sent();
|
|
1140
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1141
|
+
case 5: throw _d.sent();
|
|
1142
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1143
|
+
case 7: throw _d.sent();
|
|
1144
|
+
case 8:
|
|
1145
|
+
parsedBody = parsedOutput.body;
|
|
1146
|
+
throwDefaultError({
|
|
1147
|
+
output: output,
|
|
1148
|
+
parsedBody: parsedBody,
|
|
1149
|
+
exceptionCtor: __BaseException,
|
|
1150
|
+
errorCode: errorCode,
|
|
1151
|
+
});
|
|
1152
|
+
_d.label = 9;
|
|
1153
|
+
case 9: return [2];
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
}); };
|
|
1157
|
+
export var deserializeAws_json1_1ListApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1158
|
+
var data, contents, response;
|
|
1159
|
+
return __generator(this, function (_a) {
|
|
1160
|
+
switch (_a.label) {
|
|
1161
|
+
case 0:
|
|
1162
|
+
if (output.statusCode >= 300) {
|
|
1163
|
+
return [2, deserializeAws_json1_1ListApplicationsCommandError(output, context)];
|
|
1164
|
+
}
|
|
1165
|
+
return [4, parseBody(output.body, context)];
|
|
1166
|
+
case 1:
|
|
1167
|
+
data = _a.sent();
|
|
1168
|
+
contents = {};
|
|
1169
|
+
contents = deserializeAws_json1_1ListApplicationsResponse(data, context);
|
|
1170
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1171
|
+
return [2, Promise.resolve(response)];
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
}); };
|
|
1175
|
+
var deserializeAws_json1_1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1176
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1177
|
+
var _c;
|
|
1178
|
+
return __generator(this, function (_d) {
|
|
1179
|
+
switch (_d.label) {
|
|
1180
|
+
case 0:
|
|
1181
|
+
_a = [__assign({}, output)];
|
|
1182
|
+
_c = {};
|
|
1183
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1184
|
+
case 1:
|
|
1185
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1186
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1187
|
+
_b = errorCode;
|
|
1188
|
+
switch (_b) {
|
|
1189
|
+
case "InternalServerException": return [3, 2];
|
|
1190
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1191
|
+
case "ValidationException": return [3, 4];
|
|
1192
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 4];
|
|
1193
|
+
}
|
|
1194
|
+
return [3, 6];
|
|
1195
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1196
|
+
case 3: throw _d.sent();
|
|
1197
|
+
case 4: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1198
|
+
case 5: throw _d.sent();
|
|
1199
|
+
case 6:
|
|
1200
|
+
parsedBody = parsedOutput.body;
|
|
1201
|
+
throwDefaultError({
|
|
1202
|
+
output: output,
|
|
1203
|
+
parsedBody: parsedBody,
|
|
1204
|
+
exceptionCtor: __BaseException,
|
|
1205
|
+
errorCode: errorCode,
|
|
1206
|
+
});
|
|
1207
|
+
_d.label = 7;
|
|
1208
|
+
case 7: return [2];
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
}); };
|
|
1212
|
+
export var deserializeAws_json1_1ListComponentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1213
|
+
var data, contents, response;
|
|
1214
|
+
return __generator(this, function (_a) {
|
|
1215
|
+
switch (_a.label) {
|
|
1216
|
+
case 0:
|
|
1217
|
+
if (output.statusCode >= 300) {
|
|
1218
|
+
return [2, deserializeAws_json1_1ListComponentsCommandError(output, context)];
|
|
1219
|
+
}
|
|
1220
|
+
return [4, parseBody(output.body, context)];
|
|
1221
|
+
case 1:
|
|
1222
|
+
data = _a.sent();
|
|
1223
|
+
contents = {};
|
|
1224
|
+
contents = deserializeAws_json1_1ListComponentsResponse(data, context);
|
|
1225
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1226
|
+
return [2, Promise.resolve(response)];
|
|
1227
|
+
}
|
|
1228
|
+
});
|
|
1229
|
+
}); };
|
|
1230
|
+
var deserializeAws_json1_1ListComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1231
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1232
|
+
var _c;
|
|
1233
|
+
return __generator(this, function (_d) {
|
|
1234
|
+
switch (_d.label) {
|
|
1235
|
+
case 0:
|
|
1236
|
+
_a = [__assign({}, output)];
|
|
1237
|
+
_c = {};
|
|
1238
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1239
|
+
case 1:
|
|
1240
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1241
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
+
_b = errorCode;
|
|
1243
|
+
switch (_b) {
|
|
1244
|
+
case "InternalServerException": return [3, 2];
|
|
1245
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1246
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1247
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1248
|
+
case "ValidationException": return [3, 6];
|
|
1249
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1250
|
+
}
|
|
1251
|
+
return [3, 8];
|
|
1252
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1253
|
+
case 3: throw _d.sent();
|
|
1254
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1255
|
+
case 5: throw _d.sent();
|
|
1256
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1257
|
+
case 7: throw _d.sent();
|
|
1258
|
+
case 8:
|
|
1259
|
+
parsedBody = parsedOutput.body;
|
|
1260
|
+
throwDefaultError({
|
|
1261
|
+
output: output,
|
|
1262
|
+
parsedBody: parsedBody,
|
|
1263
|
+
exceptionCtor: __BaseException,
|
|
1264
|
+
errorCode: errorCode,
|
|
1265
|
+
});
|
|
1266
|
+
_d.label = 9;
|
|
1267
|
+
case 9: return [2];
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
}); };
|
|
1271
|
+
export var deserializeAws_json1_1ListConfigurationHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1272
|
+
var data, contents, response;
|
|
1273
|
+
return __generator(this, function (_a) {
|
|
1274
|
+
switch (_a.label) {
|
|
1275
|
+
case 0:
|
|
1276
|
+
if (output.statusCode >= 300) {
|
|
1277
|
+
return [2, deserializeAws_json1_1ListConfigurationHistoryCommandError(output, context)];
|
|
1278
|
+
}
|
|
1279
|
+
return [4, parseBody(output.body, context)];
|
|
1280
|
+
case 1:
|
|
1281
|
+
data = _a.sent();
|
|
1282
|
+
contents = {};
|
|
1283
|
+
contents = deserializeAws_json1_1ListConfigurationHistoryResponse(data, context);
|
|
1284
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1285
|
+
return [2, Promise.resolve(response)];
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
}); };
|
|
1289
|
+
var deserializeAws_json1_1ListConfigurationHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1290
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1291
|
+
var _c;
|
|
1292
|
+
return __generator(this, function (_d) {
|
|
1293
|
+
switch (_d.label) {
|
|
1294
|
+
case 0:
|
|
1295
|
+
_a = [__assign({}, output)];
|
|
1296
|
+
_c = {};
|
|
1297
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1298
|
+
case 1:
|
|
1299
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1300
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
+
_b = errorCode;
|
|
1302
|
+
switch (_b) {
|
|
1303
|
+
case "InternalServerException": return [3, 2];
|
|
1304
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1305
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1306
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1307
|
+
case "ValidationException": return [3, 6];
|
|
1308
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1309
|
+
}
|
|
1310
|
+
return [3, 8];
|
|
1311
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1312
|
+
case 3: throw _d.sent();
|
|
1313
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1314
|
+
case 5: throw _d.sent();
|
|
1315
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1316
|
+
case 7: throw _d.sent();
|
|
1317
|
+
case 8:
|
|
1318
|
+
parsedBody = parsedOutput.body;
|
|
1319
|
+
throwDefaultError({
|
|
1320
|
+
output: output,
|
|
1321
|
+
parsedBody: parsedBody,
|
|
1322
|
+
exceptionCtor: __BaseException,
|
|
1323
|
+
errorCode: errorCode,
|
|
1324
|
+
});
|
|
1325
|
+
_d.label = 9;
|
|
1326
|
+
case 9: return [2];
|
|
1327
|
+
}
|
|
1328
|
+
});
|
|
1329
|
+
}); };
|
|
1330
|
+
export var deserializeAws_json1_1ListLogPatternsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1331
|
+
var data, contents, response;
|
|
1332
|
+
return __generator(this, function (_a) {
|
|
1333
|
+
switch (_a.label) {
|
|
1334
|
+
case 0:
|
|
1335
|
+
if (output.statusCode >= 300) {
|
|
1336
|
+
return [2, deserializeAws_json1_1ListLogPatternsCommandError(output, context)];
|
|
1337
|
+
}
|
|
1338
|
+
return [4, parseBody(output.body, context)];
|
|
1339
|
+
case 1:
|
|
1340
|
+
data = _a.sent();
|
|
1341
|
+
contents = {};
|
|
1342
|
+
contents = deserializeAws_json1_1ListLogPatternsResponse(data, context);
|
|
1343
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1344
|
+
return [2, Promise.resolve(response)];
|
|
1345
|
+
}
|
|
1346
|
+
});
|
|
1347
|
+
}); };
|
|
1348
|
+
var deserializeAws_json1_1ListLogPatternsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1349
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1350
|
+
var _c;
|
|
1351
|
+
return __generator(this, function (_d) {
|
|
1352
|
+
switch (_d.label) {
|
|
1353
|
+
case 0:
|
|
1354
|
+
_a = [__assign({}, output)];
|
|
1355
|
+
_c = {};
|
|
1356
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1357
|
+
case 1:
|
|
1358
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1359
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
+
_b = errorCode;
|
|
1361
|
+
switch (_b) {
|
|
1362
|
+
case "InternalServerException": return [3, 2];
|
|
1363
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1364
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1365
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1366
|
+
case "ValidationException": return [3, 6];
|
|
1367
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1368
|
+
}
|
|
1369
|
+
return [3, 8];
|
|
1370
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1371
|
+
case 3: throw _d.sent();
|
|
1372
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1373
|
+
case 5: throw _d.sent();
|
|
1374
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1375
|
+
case 7: throw _d.sent();
|
|
1376
|
+
case 8:
|
|
1377
|
+
parsedBody = parsedOutput.body;
|
|
1378
|
+
throwDefaultError({
|
|
1379
|
+
output: output,
|
|
1380
|
+
parsedBody: parsedBody,
|
|
1381
|
+
exceptionCtor: __BaseException,
|
|
1382
|
+
errorCode: errorCode,
|
|
1383
|
+
});
|
|
1384
|
+
_d.label = 9;
|
|
1385
|
+
case 9: return [2];
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
}); };
|
|
1389
|
+
export var deserializeAws_json1_1ListLogPatternSetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1390
|
+
var data, contents, response;
|
|
1391
|
+
return __generator(this, function (_a) {
|
|
1392
|
+
switch (_a.label) {
|
|
1393
|
+
case 0:
|
|
1394
|
+
if (output.statusCode >= 300) {
|
|
1395
|
+
return [2, deserializeAws_json1_1ListLogPatternSetsCommandError(output, context)];
|
|
1396
|
+
}
|
|
1397
|
+
return [4, parseBody(output.body, context)];
|
|
1398
|
+
case 1:
|
|
1399
|
+
data = _a.sent();
|
|
1400
|
+
contents = {};
|
|
1401
|
+
contents = deserializeAws_json1_1ListLogPatternSetsResponse(data, context);
|
|
1402
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1403
|
+
return [2, Promise.resolve(response)];
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
}); };
|
|
1407
|
+
var deserializeAws_json1_1ListLogPatternSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1408
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1409
|
+
var _c;
|
|
1410
|
+
return __generator(this, function (_d) {
|
|
1411
|
+
switch (_d.label) {
|
|
1412
|
+
case 0:
|
|
1413
|
+
_a = [__assign({}, output)];
|
|
1414
|
+
_c = {};
|
|
1415
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1416
|
+
case 1:
|
|
1417
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1418
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
+
_b = errorCode;
|
|
1420
|
+
switch (_b) {
|
|
1421
|
+
case "InternalServerException": return [3, 2];
|
|
1422
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1423
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1424
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1425
|
+
case "ValidationException": return [3, 6];
|
|
1426
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1427
|
+
}
|
|
1428
|
+
return [3, 8];
|
|
1429
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1430
|
+
case 3: throw _d.sent();
|
|
1431
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1432
|
+
case 5: throw _d.sent();
|
|
1433
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1434
|
+
case 7: throw _d.sent();
|
|
1435
|
+
case 8:
|
|
1436
|
+
parsedBody = parsedOutput.body;
|
|
1437
|
+
throwDefaultError({
|
|
1438
|
+
output: output,
|
|
1439
|
+
parsedBody: parsedBody,
|
|
1440
|
+
exceptionCtor: __BaseException,
|
|
1441
|
+
errorCode: errorCode,
|
|
1442
|
+
});
|
|
1443
|
+
_d.label = 9;
|
|
1444
|
+
case 9: return [2];
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
}); };
|
|
1448
|
+
export var deserializeAws_json1_1ListProblemsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1449
|
+
var data, contents, response;
|
|
1450
|
+
return __generator(this, function (_a) {
|
|
1451
|
+
switch (_a.label) {
|
|
1452
|
+
case 0:
|
|
1453
|
+
if (output.statusCode >= 300) {
|
|
1454
|
+
return [2, deserializeAws_json1_1ListProblemsCommandError(output, context)];
|
|
1455
|
+
}
|
|
1456
|
+
return [4, parseBody(output.body, context)];
|
|
1457
|
+
case 1:
|
|
1458
|
+
data = _a.sent();
|
|
1459
|
+
contents = {};
|
|
1460
|
+
contents = deserializeAws_json1_1ListProblemsResponse(data, context);
|
|
1461
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1462
|
+
return [2, Promise.resolve(response)];
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
}); };
|
|
1466
|
+
var deserializeAws_json1_1ListProblemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1467
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1468
|
+
var _c;
|
|
1469
|
+
return __generator(this, function (_d) {
|
|
1470
|
+
switch (_d.label) {
|
|
1471
|
+
case 0:
|
|
1472
|
+
_a = [__assign({}, output)];
|
|
1473
|
+
_c = {};
|
|
1474
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1475
|
+
case 1:
|
|
1476
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1477
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
+
_b = errorCode;
|
|
1479
|
+
switch (_b) {
|
|
1480
|
+
case "InternalServerException": return [3, 2];
|
|
1481
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1482
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1483
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1484
|
+
case "ValidationException": return [3, 6];
|
|
1485
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1486
|
+
}
|
|
1487
|
+
return [3, 8];
|
|
1488
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1489
|
+
case 3: throw _d.sent();
|
|
1490
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1491
|
+
case 5: throw _d.sent();
|
|
1492
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1493
|
+
case 7: throw _d.sent();
|
|
1494
|
+
case 8:
|
|
1495
|
+
parsedBody = parsedOutput.body;
|
|
1496
|
+
throwDefaultError({
|
|
1497
|
+
output: output,
|
|
1498
|
+
parsedBody: parsedBody,
|
|
1499
|
+
exceptionCtor: __BaseException,
|
|
1500
|
+
errorCode: errorCode,
|
|
1501
|
+
});
|
|
1502
|
+
_d.label = 9;
|
|
1503
|
+
case 9: return [2];
|
|
1504
|
+
}
|
|
1505
|
+
});
|
|
1506
|
+
}); };
|
|
1507
|
+
export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1508
|
+
var data, contents, response;
|
|
1509
|
+
return __generator(this, function (_a) {
|
|
1510
|
+
switch (_a.label) {
|
|
1511
|
+
case 0:
|
|
1512
|
+
if (output.statusCode >= 300) {
|
|
1513
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1514
|
+
}
|
|
1515
|
+
return [4, parseBody(output.body, context)];
|
|
1516
|
+
case 1:
|
|
1517
|
+
data = _a.sent();
|
|
1518
|
+
contents = {};
|
|
1519
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1520
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1521
|
+
return [2, Promise.resolve(response)];
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1524
|
+
}); };
|
|
1525
|
+
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1526
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1527
|
+
var _c;
|
|
1528
|
+
return __generator(this, function (_d) {
|
|
1529
|
+
switch (_d.label) {
|
|
1530
|
+
case 0:
|
|
1531
|
+
_a = [__assign({}, output)];
|
|
1532
|
+
_c = {};
|
|
1533
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1534
|
+
case 1:
|
|
1535
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1536
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
+
_b = errorCode;
|
|
1538
|
+
switch (_b) {
|
|
1539
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1540
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 2];
|
|
1541
|
+
case "ValidationException": return [3, 4];
|
|
1542
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 4];
|
|
1543
|
+
}
|
|
1544
|
+
return [3, 6];
|
|
1545
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1546
|
+
case 3: throw _d.sent();
|
|
1547
|
+
case 4: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1548
|
+
case 5: throw _d.sent();
|
|
1549
|
+
case 6:
|
|
1550
|
+
parsedBody = parsedOutput.body;
|
|
1551
|
+
throwDefaultError({
|
|
1552
|
+
output: output,
|
|
1553
|
+
parsedBody: parsedBody,
|
|
1554
|
+
exceptionCtor: __BaseException,
|
|
1555
|
+
errorCode: errorCode,
|
|
1556
|
+
});
|
|
1557
|
+
_d.label = 7;
|
|
1558
|
+
case 7: return [2];
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
}); };
|
|
1562
|
+
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1563
|
+
var data, contents, response;
|
|
1564
|
+
return __generator(this, function (_a) {
|
|
1565
|
+
switch (_a.label) {
|
|
1566
|
+
case 0:
|
|
1567
|
+
if (output.statusCode >= 300) {
|
|
1568
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1569
|
+
}
|
|
1570
|
+
return [4, parseBody(output.body, context)];
|
|
1571
|
+
case 1:
|
|
1572
|
+
data = _a.sent();
|
|
1573
|
+
contents = {};
|
|
1574
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1575
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1576
|
+
return [2, Promise.resolve(response)];
|
|
1577
|
+
}
|
|
1578
|
+
});
|
|
1579
|
+
}); };
|
|
1580
|
+
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1581
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1582
|
+
var _c;
|
|
1583
|
+
return __generator(this, function (_d) {
|
|
1584
|
+
switch (_d.label) {
|
|
1585
|
+
case 0:
|
|
1586
|
+
_a = [__assign({}, output)];
|
|
1587
|
+
_c = {};
|
|
1588
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1589
|
+
case 1:
|
|
1590
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1591
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
|
+
_b = errorCode;
|
|
1593
|
+
switch (_b) {
|
|
1594
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1595
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 2];
|
|
1596
|
+
case "TooManyTagsException": return [3, 4];
|
|
1597
|
+
case "com.amazonaws.applicationinsights#TooManyTagsException": return [3, 4];
|
|
1598
|
+
case "ValidationException": return [3, 6];
|
|
1599
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1600
|
+
}
|
|
1601
|
+
return [3, 8];
|
|
1602
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1603
|
+
case 3: throw _d.sent();
|
|
1604
|
+
case 4: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1605
|
+
case 5: throw _d.sent();
|
|
1606
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1607
|
+
case 7: throw _d.sent();
|
|
1608
|
+
case 8:
|
|
1609
|
+
parsedBody = parsedOutput.body;
|
|
1610
|
+
throwDefaultError({
|
|
1611
|
+
output: output,
|
|
1612
|
+
parsedBody: parsedBody,
|
|
1613
|
+
exceptionCtor: __BaseException,
|
|
1614
|
+
errorCode: errorCode,
|
|
1615
|
+
});
|
|
1616
|
+
_d.label = 9;
|
|
1617
|
+
case 9: return [2];
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
}); };
|
|
1621
|
+
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1622
|
+
var data, contents, response;
|
|
1623
|
+
return __generator(this, function (_a) {
|
|
1624
|
+
switch (_a.label) {
|
|
1625
|
+
case 0:
|
|
1626
|
+
if (output.statusCode >= 300) {
|
|
1627
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1628
|
+
}
|
|
1629
|
+
return [4, parseBody(output.body, context)];
|
|
1630
|
+
case 1:
|
|
1631
|
+
data = _a.sent();
|
|
1632
|
+
contents = {};
|
|
1633
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1634
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1635
|
+
return [2, Promise.resolve(response)];
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
}); };
|
|
1639
|
+
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1640
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1641
|
+
var _c;
|
|
1642
|
+
return __generator(this, function (_d) {
|
|
1643
|
+
switch (_d.label) {
|
|
1644
|
+
case 0:
|
|
1645
|
+
_a = [__assign({}, output)];
|
|
1646
|
+
_c = {};
|
|
1647
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1648
|
+
case 1:
|
|
1649
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1650
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
|
+
_b = errorCode;
|
|
1652
|
+
switch (_b) {
|
|
1653
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1654
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 2];
|
|
1655
|
+
case "ValidationException": return [3, 4];
|
|
1656
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 4];
|
|
1657
|
+
}
|
|
1658
|
+
return [3, 6];
|
|
1659
|
+
case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1660
|
+
case 3: throw _d.sent();
|
|
1661
|
+
case 4: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1662
|
+
case 5: throw _d.sent();
|
|
1663
|
+
case 6:
|
|
1664
|
+
parsedBody = parsedOutput.body;
|
|
1665
|
+
throwDefaultError({
|
|
1666
|
+
output: output,
|
|
1667
|
+
parsedBody: parsedBody,
|
|
1668
|
+
exceptionCtor: __BaseException,
|
|
1669
|
+
errorCode: errorCode,
|
|
1670
|
+
});
|
|
1671
|
+
_d.label = 7;
|
|
1672
|
+
case 7: return [2];
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
}); };
|
|
1676
|
+
export var deserializeAws_json1_1UpdateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
+
var data, contents, response;
|
|
1678
|
+
return __generator(this, function (_a) {
|
|
1679
|
+
switch (_a.label) {
|
|
1680
|
+
case 0:
|
|
1681
|
+
if (output.statusCode >= 300) {
|
|
1682
|
+
return [2, deserializeAws_json1_1UpdateApplicationCommandError(output, context)];
|
|
1683
|
+
}
|
|
1684
|
+
return [4, parseBody(output.body, context)];
|
|
1685
|
+
case 1:
|
|
1686
|
+
data = _a.sent();
|
|
1687
|
+
contents = {};
|
|
1688
|
+
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
1689
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1690
|
+
return [2, Promise.resolve(response)];
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
}); };
|
|
1694
|
+
var deserializeAws_json1_1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1695
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1696
|
+
var _c;
|
|
1697
|
+
return __generator(this, function (_d) {
|
|
1698
|
+
switch (_d.label) {
|
|
1699
|
+
case 0:
|
|
1700
|
+
_a = [__assign({}, output)];
|
|
1701
|
+
_c = {};
|
|
1702
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1703
|
+
case 1:
|
|
1704
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1705
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1706
|
+
_b = errorCode;
|
|
1707
|
+
switch (_b) {
|
|
1708
|
+
case "InternalServerException": return [3, 2];
|
|
1709
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1710
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1711
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1712
|
+
case "ValidationException": return [3, 6];
|
|
1713
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1714
|
+
}
|
|
1715
|
+
return [3, 8];
|
|
1716
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1717
|
+
case 3: throw _d.sent();
|
|
1718
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1719
|
+
case 5: throw _d.sent();
|
|
1720
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1721
|
+
case 7: throw _d.sent();
|
|
1722
|
+
case 8:
|
|
1723
|
+
parsedBody = parsedOutput.body;
|
|
1724
|
+
throwDefaultError({
|
|
1725
|
+
output: output,
|
|
1726
|
+
parsedBody: parsedBody,
|
|
1727
|
+
exceptionCtor: __BaseException,
|
|
1728
|
+
errorCode: errorCode,
|
|
1729
|
+
});
|
|
1730
|
+
_d.label = 9;
|
|
1731
|
+
case 9: return [2];
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
}); };
|
|
1735
|
+
export var deserializeAws_json1_1UpdateComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1736
|
+
var data, contents, response;
|
|
1737
|
+
return __generator(this, function (_a) {
|
|
1738
|
+
switch (_a.label) {
|
|
1739
|
+
case 0:
|
|
1740
|
+
if (output.statusCode >= 300) {
|
|
1741
|
+
return [2, deserializeAws_json1_1UpdateComponentCommandError(output, context)];
|
|
1742
|
+
}
|
|
1743
|
+
return [4, parseBody(output.body, context)];
|
|
1744
|
+
case 1:
|
|
1745
|
+
data = _a.sent();
|
|
1746
|
+
contents = {};
|
|
1747
|
+
contents = deserializeAws_json1_1UpdateComponentResponse(data, context);
|
|
1748
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1749
|
+
return [2, Promise.resolve(response)];
|
|
1750
|
+
}
|
|
1751
|
+
});
|
|
1752
|
+
}); };
|
|
1753
|
+
var deserializeAws_json1_1UpdateComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1754
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1755
|
+
var _c;
|
|
1756
|
+
return __generator(this, function (_d) {
|
|
1757
|
+
switch (_d.label) {
|
|
1758
|
+
case 0:
|
|
1759
|
+
_a = [__assign({}, output)];
|
|
1760
|
+
_c = {};
|
|
1761
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1762
|
+
case 1:
|
|
1763
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1764
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
|
+
_b = errorCode;
|
|
1766
|
+
switch (_b) {
|
|
1767
|
+
case "InternalServerException": return [3, 2];
|
|
1768
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1769
|
+
case "ResourceInUseException": return [3, 4];
|
|
1770
|
+
case "com.amazonaws.applicationinsights#ResourceInUseException": return [3, 4];
|
|
1771
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1772
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 6];
|
|
1773
|
+
case "ValidationException": return [3, 8];
|
|
1774
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 8];
|
|
1775
|
+
}
|
|
1776
|
+
return [3, 10];
|
|
1777
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1778
|
+
case 3: throw _d.sent();
|
|
1779
|
+
case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1780
|
+
case 5: throw _d.sent();
|
|
1781
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1782
|
+
case 7: throw _d.sent();
|
|
1783
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1784
|
+
case 9: throw _d.sent();
|
|
1785
|
+
case 10:
|
|
1786
|
+
parsedBody = parsedOutput.body;
|
|
1787
|
+
throwDefaultError({
|
|
1788
|
+
output: output,
|
|
1789
|
+
parsedBody: parsedBody,
|
|
1790
|
+
exceptionCtor: __BaseException,
|
|
1791
|
+
errorCode: errorCode,
|
|
1792
|
+
});
|
|
1793
|
+
_d.label = 11;
|
|
1794
|
+
case 11: return [2];
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
}); };
|
|
1798
|
+
export var deserializeAws_json1_1UpdateComponentConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1799
|
+
var data, contents, response;
|
|
1800
|
+
return __generator(this, function (_a) {
|
|
1801
|
+
switch (_a.label) {
|
|
1802
|
+
case 0:
|
|
1803
|
+
if (output.statusCode >= 300) {
|
|
1804
|
+
return [2, deserializeAws_json1_1UpdateComponentConfigurationCommandError(output, context)];
|
|
1805
|
+
}
|
|
1806
|
+
return [4, parseBody(output.body, context)];
|
|
1807
|
+
case 1:
|
|
1808
|
+
data = _a.sent();
|
|
1809
|
+
contents = {};
|
|
1810
|
+
contents = deserializeAws_json1_1UpdateComponentConfigurationResponse(data, context);
|
|
1811
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1812
|
+
return [2, Promise.resolve(response)];
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
}); };
|
|
1816
|
+
var deserializeAws_json1_1UpdateComponentConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1817
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1818
|
+
var _c;
|
|
1819
|
+
return __generator(this, function (_d) {
|
|
1820
|
+
switch (_d.label) {
|
|
1821
|
+
case 0:
|
|
1822
|
+
_a = [__assign({}, output)];
|
|
1823
|
+
_c = {};
|
|
1824
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1825
|
+
case 1:
|
|
1826
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1827
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1828
|
+
_b = errorCode;
|
|
1829
|
+
switch (_b) {
|
|
1830
|
+
case "InternalServerException": return [3, 2];
|
|
1831
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1832
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1833
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 4];
|
|
1834
|
+
case "ValidationException": return [3, 6];
|
|
1835
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 6];
|
|
1836
|
+
}
|
|
1837
|
+
return [3, 8];
|
|
1838
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1839
|
+
case 3: throw _d.sent();
|
|
1840
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1841
|
+
case 5: throw _d.sent();
|
|
1842
|
+
case 6: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1843
|
+
case 7: throw _d.sent();
|
|
1844
|
+
case 8:
|
|
1845
|
+
parsedBody = parsedOutput.body;
|
|
1846
|
+
throwDefaultError({
|
|
1847
|
+
output: output,
|
|
1848
|
+
parsedBody: parsedBody,
|
|
1849
|
+
exceptionCtor: __BaseException,
|
|
1850
|
+
errorCode: errorCode,
|
|
1851
|
+
});
|
|
1852
|
+
_d.label = 9;
|
|
1853
|
+
case 9: return [2];
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
}); };
|
|
1857
|
+
export var deserializeAws_json1_1UpdateLogPatternCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1858
|
+
var data, contents, response;
|
|
1859
|
+
return __generator(this, function (_a) {
|
|
1860
|
+
switch (_a.label) {
|
|
1861
|
+
case 0:
|
|
1862
|
+
if (output.statusCode >= 300) {
|
|
1863
|
+
return [2, deserializeAws_json1_1UpdateLogPatternCommandError(output, context)];
|
|
1864
|
+
}
|
|
1865
|
+
return [4, parseBody(output.body, context)];
|
|
1866
|
+
case 1:
|
|
1867
|
+
data = _a.sent();
|
|
1868
|
+
contents = {};
|
|
1869
|
+
contents = deserializeAws_json1_1UpdateLogPatternResponse(data, context);
|
|
1870
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1871
|
+
return [2, Promise.resolve(response)];
|
|
1872
|
+
}
|
|
1873
|
+
});
|
|
1874
|
+
}); };
|
|
1875
|
+
var deserializeAws_json1_1UpdateLogPatternCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1876
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1877
|
+
var _c;
|
|
1878
|
+
return __generator(this, function (_d) {
|
|
1879
|
+
switch (_d.label) {
|
|
1880
|
+
case 0:
|
|
1881
|
+
_a = [__assign({}, output)];
|
|
1882
|
+
_c = {};
|
|
1883
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1884
|
+
case 1:
|
|
1885
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1886
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
|
+
_b = errorCode;
|
|
1888
|
+
switch (_b) {
|
|
1889
|
+
case "InternalServerException": return [3, 2];
|
|
1890
|
+
case "com.amazonaws.applicationinsights#InternalServerException": return [3, 2];
|
|
1891
|
+
case "ResourceInUseException": return [3, 4];
|
|
1892
|
+
case "com.amazonaws.applicationinsights#ResourceInUseException": return [3, 4];
|
|
1893
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1894
|
+
case "com.amazonaws.applicationinsights#ResourceNotFoundException": return [3, 6];
|
|
1895
|
+
case "ValidationException": return [3, 8];
|
|
1896
|
+
case "com.amazonaws.applicationinsights#ValidationException": return [3, 8];
|
|
1897
|
+
}
|
|
1898
|
+
return [3, 10];
|
|
1899
|
+
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1900
|
+
case 3: throw _d.sent();
|
|
1901
|
+
case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1902
|
+
case 5: throw _d.sent();
|
|
1903
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1904
|
+
case 7: throw _d.sent();
|
|
1905
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1906
|
+
case 9: throw _d.sent();
|
|
1907
|
+
case 10:
|
|
1908
|
+
parsedBody = parsedOutput.body;
|
|
1909
|
+
throwDefaultError({
|
|
1910
|
+
output: output,
|
|
1911
|
+
parsedBody: parsedBody,
|
|
1912
|
+
exceptionCtor: __BaseException,
|
|
1913
|
+
errorCode: errorCode,
|
|
1914
|
+
});
|
|
1915
|
+
_d.label = 11;
|
|
1916
|
+
case 11: return [2];
|
|
1917
|
+
}
|
|
1918
|
+
});
|
|
1919
|
+
}); };
|
|
1920
|
+
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1921
|
+
var body, deserialized, exception;
|
|
1922
|
+
return __generator(this, function (_a) {
|
|
1923
|
+
body = parsedOutput.body;
|
|
1924
|
+
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1925
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1926
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1927
|
+
});
|
|
1928
|
+
}); };
|
|
1929
|
+
var deserializeAws_json1_1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1930
|
+
var body, deserialized, exception;
|
|
1931
|
+
return __generator(this, function (_a) {
|
|
1932
|
+
body = parsedOutput.body;
|
|
1933
|
+
deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
1934
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1935
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1936
|
+
});
|
|
1937
|
+
}); };
|
|
1938
|
+
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1939
|
+
var body, deserialized, exception;
|
|
1940
|
+
return __generator(this, function (_a) {
|
|
1941
|
+
body = parsedOutput.body;
|
|
1942
|
+
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
1943
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1944
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1945
|
+
});
|
|
1946
|
+
}); };
|
|
1947
|
+
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1948
|
+
var body, deserialized, exception;
|
|
1949
|
+
return __generator(this, function (_a) {
|
|
1950
|
+
body = parsedOutput.body;
|
|
1951
|
+
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
1952
|
+
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1953
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1954
|
+
});
|
|
1955
|
+
}); };
|
|
1956
|
+
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1957
|
+
var body, deserialized, exception;
|
|
1958
|
+
return __generator(this, function (_a) {
|
|
1959
|
+
body = parsedOutput.body;
|
|
1960
|
+
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1961
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1962
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1963
|
+
});
|
|
1964
|
+
}); };
|
|
1965
|
+
var deserializeAws_json1_1TagsAlreadyExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1966
|
+
var body, deserialized, exception;
|
|
1967
|
+
return __generator(this, function (_a) {
|
|
1968
|
+
body = parsedOutput.body;
|
|
1969
|
+
deserialized = deserializeAws_json1_1TagsAlreadyExistException(body, context);
|
|
1970
|
+
exception = new TagsAlreadyExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1971
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1972
|
+
});
|
|
1973
|
+
}); };
|
|
1974
|
+
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1975
|
+
var body, deserialized, exception;
|
|
1976
|
+
return __generator(this, function (_a) {
|
|
1977
|
+
body = parsedOutput.body;
|
|
1978
|
+
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1979
|
+
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1980
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1981
|
+
});
|
|
1982
|
+
}); };
|
|
1983
|
+
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1984
|
+
var body, deserialized, exception;
|
|
1985
|
+
return __generator(this, function (_a) {
|
|
1986
|
+
body = parsedOutput.body;
|
|
1987
|
+
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
1988
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1989
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1990
|
+
});
|
|
1991
|
+
}); };
|
|
1992
|
+
var serializeAws_json1_1CreateApplicationRequest = function (input, context) {
|
|
1993
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.AutoCreate != null && { AutoCreate: input.AutoCreate })), (input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled })), (input.GroupingType != null && { GroupingType: input.GroupingType })), (input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled })), (input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
1402
1994
|
};
|
|
1403
|
-
|
|
1404
|
-
return {
|
|
1405
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1406
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1407
|
-
...(input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
1408
|
-
};
|
|
1995
|
+
var serializeAws_json1_1CreateComponentRequest = function (input, context) {
|
|
1996
|
+
return __assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }));
|
|
1409
1997
|
};
|
|
1410
|
-
|
|
1411
|
-
return {
|
|
1412
|
-
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1413
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1414
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1415
|
-
...(input.Rank != null && { Rank: input.Rank }),
|
|
1416
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1417
|
-
};
|
|
1998
|
+
var serializeAws_json1_1CreateLogPatternRequest = function (input, context) {
|
|
1999
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Pattern != null && { Pattern: input.Pattern })), (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.Rank != null && { Rank: input.Rank })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1418
2000
|
};
|
|
1419
|
-
|
|
1420
|
-
return {
|
|
1421
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1422
|
-
};
|
|
2001
|
+
var serializeAws_json1_1DeleteApplicationRequest = function (input, context) {
|
|
2002
|
+
return __assign({}, (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1423
2003
|
};
|
|
1424
|
-
|
|
1425
|
-
return {
|
|
1426
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1427
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1428
|
-
};
|
|
2004
|
+
var serializeAws_json1_1DeleteComponentRequest = function (input, context) {
|
|
2005
|
+
return __assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1429
2006
|
};
|
|
1430
|
-
|
|
1431
|
-
return {
|
|
1432
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1433
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1434
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1435
|
-
};
|
|
2007
|
+
var serializeAws_json1_1DeleteLogPatternRequest = function (input, context) {
|
|
2008
|
+
return __assign(__assign(__assign({}, (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1436
2009
|
};
|
|
1437
|
-
|
|
1438
|
-
return {
|
|
1439
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1440
|
-
};
|
|
2010
|
+
var serializeAws_json1_1DescribeApplicationRequest = function (input, context) {
|
|
2011
|
+
return __assign({}, (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1441
2012
|
};
|
|
1442
|
-
|
|
1443
|
-
return {
|
|
1444
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1445
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1446
|
-
...(input.Tier != null && { Tier: input.Tier }),
|
|
1447
|
-
};
|
|
2013
|
+
var serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest = function (input, context) {
|
|
2014
|
+
return __assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.Tier != null && { Tier: input.Tier }));
|
|
1448
2015
|
};
|
|
1449
|
-
|
|
1450
|
-
return {
|
|
1451
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1452
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1453
|
-
};
|
|
2016
|
+
var serializeAws_json1_1DescribeComponentConfigurationRequest = function (input, context) {
|
|
2017
|
+
return __assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1454
2018
|
};
|
|
1455
|
-
|
|
1456
|
-
return {
|
|
1457
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1458
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1459
|
-
};
|
|
2019
|
+
var serializeAws_json1_1DescribeComponentRequest = function (input, context) {
|
|
2020
|
+
return __assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1460
2021
|
};
|
|
1461
|
-
|
|
1462
|
-
return {
|
|
1463
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1464
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1465
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1466
|
-
};
|
|
2022
|
+
var serializeAws_json1_1DescribeLogPatternRequest = function (input, context) {
|
|
2023
|
+
return __assign(__assign(__assign({}, (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1467
2024
|
};
|
|
1468
|
-
|
|
1469
|
-
return {
|
|
1470
|
-
...(input.ObservationId != null && { ObservationId: input.ObservationId }),
|
|
1471
|
-
};
|
|
2025
|
+
var serializeAws_json1_1DescribeObservationRequest = function (input, context) {
|
|
2026
|
+
return __assign({}, (input.ObservationId != null && { ObservationId: input.ObservationId }));
|
|
1472
2027
|
};
|
|
1473
|
-
|
|
1474
|
-
return {
|
|
1475
|
-
...(input.ProblemId != null && { ProblemId: input.ProblemId }),
|
|
1476
|
-
};
|
|
2028
|
+
var serializeAws_json1_1DescribeProblemObservationsRequest = function (input, context) {
|
|
2029
|
+
return __assign({}, (input.ProblemId != null && { ProblemId: input.ProblemId }));
|
|
1477
2030
|
};
|
|
1478
|
-
|
|
1479
|
-
return {
|
|
1480
|
-
...(input.ProblemId != null && { ProblemId: input.ProblemId }),
|
|
1481
|
-
};
|
|
2031
|
+
var serializeAws_json1_1DescribeProblemRequest = function (input, context) {
|
|
2032
|
+
return __assign({}, (input.ProblemId != null && { ProblemId: input.ProblemId }));
|
|
1482
2033
|
};
|
|
1483
|
-
|
|
1484
|
-
return {
|
|
1485
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1486
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1487
|
-
};
|
|
2034
|
+
var serializeAws_json1_1ListApplicationsRequest = function (input, context) {
|
|
2035
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1488
2036
|
};
|
|
1489
|
-
|
|
1490
|
-
return {
|
|
1491
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1492
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1493
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1494
|
-
};
|
|
2037
|
+
var serializeAws_json1_1ListComponentsRequest = function (input, context) {
|
|
2038
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1495
2039
|
};
|
|
1496
|
-
|
|
1497
|
-
return {
|
|
1498
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1499
|
-
...(input.EventStatus != null && { EventStatus: input.EventStatus }),
|
|
1500
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1501
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1502
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1503
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1504
|
-
};
|
|
2040
|
+
var serializeAws_json1_1ListConfigurationHistoryRequest = function (input, context) {
|
|
2041
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventStatus != null && { EventStatus: input.EventStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
1505
2042
|
};
|
|
1506
|
-
|
|
1507
|
-
return {
|
|
1508
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1509
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1510
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1511
|
-
};
|
|
2043
|
+
var serializeAws_json1_1ListLogPatternSetsRequest = function (input, context) {
|
|
2044
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1512
2045
|
};
|
|
1513
|
-
|
|
1514
|
-
return {
|
|
1515
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1516
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1517
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1518
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1519
|
-
};
|
|
2046
|
+
var serializeAws_json1_1ListLogPatternsRequest = function (input, context) {
|
|
2047
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1520
2048
|
};
|
|
1521
|
-
|
|
1522
|
-
return {
|
|
1523
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1524
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1525
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1526
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1527
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1528
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1529
|
-
};
|
|
2049
|
+
var serializeAws_json1_1ListProblemsRequest = function (input, context) {
|
|
2050
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
1530
2051
|
};
|
|
1531
|
-
|
|
1532
|
-
return {
|
|
1533
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1534
|
-
};
|
|
2052
|
+
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
2053
|
+
return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
1535
2054
|
};
|
|
1536
|
-
|
|
2055
|
+
var serializeAws_json1_1ResourceList = function (input, context) {
|
|
1537
2056
|
return input
|
|
1538
|
-
.filter((e)
|
|
1539
|
-
.map((entry)
|
|
2057
|
+
.filter(function (e) { return e != null; })
|
|
2058
|
+
.map(function (entry) {
|
|
1540
2059
|
return entry;
|
|
1541
2060
|
});
|
|
1542
2061
|
};
|
|
1543
|
-
|
|
1544
|
-
return {
|
|
1545
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1546
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1547
|
-
};
|
|
2062
|
+
var serializeAws_json1_1Tag = function (input, context) {
|
|
2063
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1548
2064
|
};
|
|
1549
|
-
|
|
2065
|
+
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
1550
2066
|
return input
|
|
1551
|
-
.filter((e)
|
|
1552
|
-
.map((entry)
|
|
2067
|
+
.filter(function (e) { return e != null; })
|
|
2068
|
+
.map(function (entry) {
|
|
1553
2069
|
return entry;
|
|
1554
2070
|
});
|
|
1555
2071
|
};
|
|
1556
|
-
|
|
2072
|
+
var serializeAws_json1_1TagList = function (input, context) {
|
|
1557
2073
|
return input
|
|
1558
|
-
.filter((e)
|
|
1559
|
-
.map((entry)
|
|
2074
|
+
.filter(function (e) { return e != null; })
|
|
2075
|
+
.map(function (entry) {
|
|
1560
2076
|
return serializeAws_json1_1Tag(entry, context);
|
|
1561
2077
|
});
|
|
1562
2078
|
};
|
|
1563
|
-
|
|
1564
|
-
return {
|
|
1565
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1566
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1567
|
-
};
|
|
2079
|
+
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
2080
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
1568
2081
|
};
|
|
1569
|
-
|
|
1570
|
-
return {
|
|
1571
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1572
|
-
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1573
|
-
};
|
|
2082
|
+
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
2083
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
1574
2084
|
};
|
|
1575
|
-
|
|
1576
|
-
return {
|
|
1577
|
-
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1578
|
-
...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
1579
|
-
...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
1580
|
-
...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1581
|
-
...(input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic }),
|
|
1582
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1583
|
-
};
|
|
2085
|
+
var serializeAws_json1_1UpdateApplicationRequest = function (input, context) {
|
|
2086
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled })), (input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled })), (input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn })), (input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1584
2087
|
};
|
|
1585
|
-
|
|
1586
|
-
return {
|
|
1587
|
-
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1588
|
-
...(input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration }),
|
|
1589
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1590
|
-
...(input.Monitor != null && { Monitor: input.Monitor }),
|
|
1591
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1592
|
-
...(input.Tier != null && { Tier: input.Tier }),
|
|
1593
|
-
};
|
|
2088
|
+
var serializeAws_json1_1UpdateComponentConfigurationRequest = function (input, context) {
|
|
2089
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration })), (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.Monitor != null && { Monitor: input.Monitor })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.Tier != null && { Tier: input.Tier }));
|
|
1594
2090
|
};
|
|
1595
|
-
|
|
1596
|
-
return {
|
|
1597
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1598
|
-
...(input.NewComponentName != null && { NewComponentName: input.NewComponentName }),
|
|
1599
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1600
|
-
...(input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
1601
|
-
};
|
|
2091
|
+
var serializeAws_json1_1UpdateComponentRequest = function (input, context) {
|
|
2092
|
+
return __assign(__assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.NewComponentName != null && { NewComponentName: input.NewComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }));
|
|
1602
2093
|
};
|
|
1603
|
-
|
|
1604
|
-
return {
|
|
1605
|
-
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1606
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1607
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1608
|
-
...(input.Rank != null && { Rank: input.Rank }),
|
|
1609
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1610
|
-
};
|
|
2094
|
+
var serializeAws_json1_1UpdateLogPatternRequest = function (input, context) {
|
|
2095
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Pattern != null && { Pattern: input.Pattern })), (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.Rank != null && { Rank: input.Rank })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
|
|
1611
2096
|
};
|
|
1612
|
-
|
|
2097
|
+
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
1613
2098
|
return {
|
|
1614
2099
|
Message: __expectString(output.Message),
|
|
1615
2100
|
};
|
|
1616
2101
|
};
|
|
1617
|
-
|
|
2102
|
+
var deserializeAws_json1_1ApplicationComponent = function (output, context) {
|
|
1618
2103
|
return {
|
|
1619
2104
|
ComponentName: __expectString(output.ComponentName),
|
|
1620
2105
|
ComponentRemarks: __expectString(output.ComponentRemarks),
|
|
@@ -1627,10 +2112,10 @@ const deserializeAws_json1_1ApplicationComponent = (output, context) => {
|
|
|
1627
2112
|
Tier: __expectString(output.Tier),
|
|
1628
2113
|
};
|
|
1629
2114
|
};
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
.filter((e)
|
|
1633
|
-
.map((entry)
|
|
2115
|
+
var deserializeAws_json1_1ApplicationComponentList = function (output, context) {
|
|
2116
|
+
var retVal = (output || [])
|
|
2117
|
+
.filter(function (e) { return e != null; })
|
|
2118
|
+
.map(function (entry) {
|
|
1634
2119
|
if (entry === null) {
|
|
1635
2120
|
return null;
|
|
1636
2121
|
}
|
|
@@ -1638,7 +2123,7 @@ const deserializeAws_json1_1ApplicationComponentList = (output, context) => {
|
|
|
1638
2123
|
});
|
|
1639
2124
|
return retVal;
|
|
1640
2125
|
};
|
|
1641
|
-
|
|
2126
|
+
var deserializeAws_json1_1ApplicationInfo = function (output, context) {
|
|
1642
2127
|
return {
|
|
1643
2128
|
AutoConfigEnabled: __expectBoolean(output.AutoConfigEnabled),
|
|
1644
2129
|
CWEMonitorEnabled: __expectBoolean(output.CWEMonitorEnabled),
|
|
@@ -1650,10 +2135,10 @@ const deserializeAws_json1_1ApplicationInfo = (output, context) => {
|
|
|
1650
2135
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1651
2136
|
};
|
|
1652
2137
|
};
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
.filter((e)
|
|
1656
|
-
.map((entry)
|
|
2138
|
+
var deserializeAws_json1_1ApplicationInfoList = function (output, context) {
|
|
2139
|
+
var retVal = (output || [])
|
|
2140
|
+
.filter(function (e) { return e != null; })
|
|
2141
|
+
.map(function (entry) {
|
|
1657
2142
|
if (entry === null) {
|
|
1658
2143
|
return null;
|
|
1659
2144
|
}
|
|
@@ -1661,12 +2146,12 @@ const deserializeAws_json1_1ApplicationInfoList = (output, context) => {
|
|
|
1661
2146
|
});
|
|
1662
2147
|
return retVal;
|
|
1663
2148
|
};
|
|
1664
|
-
|
|
2149
|
+
var deserializeAws_json1_1BadRequestException = function (output, context) {
|
|
1665
2150
|
return {
|
|
1666
2151
|
Message: __expectString(output.Message),
|
|
1667
2152
|
};
|
|
1668
2153
|
};
|
|
1669
|
-
|
|
2154
|
+
var deserializeAws_json1_1ConfigurationEvent = function (output, context) {
|
|
1670
2155
|
return {
|
|
1671
2156
|
EventDetail: __expectString(output.EventDetail),
|
|
1672
2157
|
EventResourceName: __expectString(output.EventResourceName),
|
|
@@ -1676,10 +2161,10 @@ const deserializeAws_json1_1ConfigurationEvent = (output, context) => {
|
|
|
1676
2161
|
MonitoredResourceARN: __expectString(output.MonitoredResourceARN),
|
|
1677
2162
|
};
|
|
1678
2163
|
};
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
.filter((e)
|
|
1682
|
-
.map((entry)
|
|
2164
|
+
var deserializeAws_json1_1ConfigurationEventList = function (output, context) {
|
|
2165
|
+
var retVal = (output || [])
|
|
2166
|
+
.filter(function (e) { return e != null; })
|
|
2167
|
+
.map(function (entry) {
|
|
1683
2168
|
if (entry === null) {
|
|
1684
2169
|
return null;
|
|
1685
2170
|
}
|
|
@@ -1687,51 +2172,51 @@ const deserializeAws_json1_1ConfigurationEventList = (output, context) => {
|
|
|
1687
2172
|
});
|
|
1688
2173
|
return retVal;
|
|
1689
2174
|
};
|
|
1690
|
-
|
|
2175
|
+
var deserializeAws_json1_1CreateApplicationResponse = function (output, context) {
|
|
1691
2176
|
return {
|
|
1692
2177
|
ApplicationInfo: output.ApplicationInfo != null
|
|
1693
2178
|
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
1694
2179
|
: undefined,
|
|
1695
2180
|
};
|
|
1696
2181
|
};
|
|
1697
|
-
|
|
2182
|
+
var deserializeAws_json1_1CreateComponentResponse = function (output, context) {
|
|
1698
2183
|
return {};
|
|
1699
2184
|
};
|
|
1700
|
-
|
|
2185
|
+
var deserializeAws_json1_1CreateLogPatternResponse = function (output, context) {
|
|
1701
2186
|
return {
|
|
1702
2187
|
LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
|
|
1703
2188
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1704
2189
|
};
|
|
1705
2190
|
};
|
|
1706
|
-
|
|
2191
|
+
var deserializeAws_json1_1DeleteApplicationResponse = function (output, context) {
|
|
1707
2192
|
return {};
|
|
1708
2193
|
};
|
|
1709
|
-
|
|
2194
|
+
var deserializeAws_json1_1DeleteComponentResponse = function (output, context) {
|
|
1710
2195
|
return {};
|
|
1711
2196
|
};
|
|
1712
|
-
|
|
2197
|
+
var deserializeAws_json1_1DeleteLogPatternResponse = function (output, context) {
|
|
1713
2198
|
return {};
|
|
1714
2199
|
};
|
|
1715
|
-
|
|
2200
|
+
var deserializeAws_json1_1DescribeApplicationResponse = function (output, context) {
|
|
1716
2201
|
return {
|
|
1717
2202
|
ApplicationInfo: output.ApplicationInfo != null
|
|
1718
2203
|
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
1719
2204
|
: undefined,
|
|
1720
2205
|
};
|
|
1721
2206
|
};
|
|
1722
|
-
|
|
2207
|
+
var deserializeAws_json1_1DescribeComponentConfigurationRecommendationResponse = function (output, context) {
|
|
1723
2208
|
return {
|
|
1724
2209
|
ComponentConfiguration: __expectString(output.ComponentConfiguration),
|
|
1725
2210
|
};
|
|
1726
2211
|
};
|
|
1727
|
-
|
|
2212
|
+
var deserializeAws_json1_1DescribeComponentConfigurationResponse = function (output, context) {
|
|
1728
2213
|
return {
|
|
1729
2214
|
ComponentConfiguration: __expectString(output.ComponentConfiguration),
|
|
1730
2215
|
Monitor: __expectBoolean(output.Monitor),
|
|
1731
2216
|
Tier: __expectString(output.Tier),
|
|
1732
2217
|
};
|
|
1733
2218
|
};
|
|
1734
|
-
|
|
2219
|
+
var deserializeAws_json1_1DescribeComponentResponse = function (output, context) {
|
|
1735
2220
|
return {
|
|
1736
2221
|
ApplicationComponent: output.ApplicationComponent != null
|
|
1737
2222
|
? deserializeAws_json1_1ApplicationComponent(output.ApplicationComponent, context)
|
|
@@ -1739,57 +2224,55 @@ const deserializeAws_json1_1DescribeComponentResponse = (output, context) => {
|
|
|
1739
2224
|
ResourceList: output.ResourceList != null ? deserializeAws_json1_1ResourceList(output.ResourceList, context) : undefined,
|
|
1740
2225
|
};
|
|
1741
2226
|
};
|
|
1742
|
-
|
|
2227
|
+
var deserializeAws_json1_1DescribeLogPatternResponse = function (output, context) {
|
|
1743
2228
|
return {
|
|
1744
2229
|
LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
|
|
1745
2230
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1746
2231
|
};
|
|
1747
2232
|
};
|
|
1748
|
-
|
|
2233
|
+
var deserializeAws_json1_1DescribeObservationResponse = function (output, context) {
|
|
1749
2234
|
return {
|
|
1750
2235
|
Observation: output.Observation != null ? deserializeAws_json1_1Observation(output.Observation, context) : undefined,
|
|
1751
2236
|
};
|
|
1752
2237
|
};
|
|
1753
|
-
|
|
2238
|
+
var deserializeAws_json1_1DescribeProblemObservationsResponse = function (output, context) {
|
|
1754
2239
|
return {
|
|
1755
2240
|
RelatedObservations: output.RelatedObservations != null
|
|
1756
2241
|
? deserializeAws_json1_1RelatedObservations(output.RelatedObservations, context)
|
|
1757
2242
|
: undefined,
|
|
1758
2243
|
};
|
|
1759
2244
|
};
|
|
1760
|
-
|
|
2245
|
+
var deserializeAws_json1_1DescribeProblemResponse = function (output, context) {
|
|
1761
2246
|
return {
|
|
1762
2247
|
Problem: output.Problem != null ? deserializeAws_json1_1Problem(output.Problem, context) : undefined,
|
|
1763
2248
|
};
|
|
1764
2249
|
};
|
|
1765
|
-
|
|
1766
|
-
return Object.entries(output).reduce((acc,
|
|
2250
|
+
var deserializeAws_json1_1DetectedWorkload = function (output, context) {
|
|
2251
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2252
|
+
var _b;
|
|
2253
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1767
2254
|
if (value === null) {
|
|
1768
2255
|
return acc;
|
|
1769
2256
|
}
|
|
1770
|
-
return {
|
|
1771
|
-
...acc,
|
|
1772
|
-
[key]: deserializeAws_json1_1WorkloadMetaData(value, context),
|
|
1773
|
-
};
|
|
2257
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_json1_1WorkloadMetaData(value, context), _b));
|
|
1774
2258
|
}, {});
|
|
1775
2259
|
};
|
|
1776
|
-
|
|
1777
|
-
return Object.entries(output).reduce((acc,
|
|
2260
|
+
var deserializeAws_json1_1Feedback = function (output, context) {
|
|
2261
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2262
|
+
var _b;
|
|
2263
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1778
2264
|
if (value === null) {
|
|
1779
2265
|
return acc;
|
|
1780
2266
|
}
|
|
1781
|
-
return {
|
|
1782
|
-
...acc,
|
|
1783
|
-
[key]: __expectString(value),
|
|
1784
|
-
};
|
|
2267
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1785
2268
|
}, {});
|
|
1786
2269
|
};
|
|
1787
|
-
|
|
2270
|
+
var deserializeAws_json1_1InternalServerException = function (output, context) {
|
|
1788
2271
|
return {
|
|
1789
2272
|
Message: __expectString(output.Message),
|
|
1790
2273
|
};
|
|
1791
2274
|
};
|
|
1792
|
-
|
|
2275
|
+
var deserializeAws_json1_1ListApplicationsResponse = function (output, context) {
|
|
1793
2276
|
return {
|
|
1794
2277
|
ApplicationInfoList: output.ApplicationInfoList != null
|
|
1795
2278
|
? deserializeAws_json1_1ApplicationInfoList(output.ApplicationInfoList, context)
|
|
@@ -1797,7 +2280,7 @@ const deserializeAws_json1_1ListApplicationsResponse = (output, context) => {
|
|
|
1797
2280
|
NextToken: __expectString(output.NextToken),
|
|
1798
2281
|
};
|
|
1799
2282
|
};
|
|
1800
|
-
|
|
2283
|
+
var deserializeAws_json1_1ListComponentsResponse = function (output, context) {
|
|
1801
2284
|
return {
|
|
1802
2285
|
ApplicationComponentList: output.ApplicationComponentList != null
|
|
1803
2286
|
? deserializeAws_json1_1ApplicationComponentList(output.ApplicationComponentList, context)
|
|
@@ -1805,13 +2288,13 @@ const deserializeAws_json1_1ListComponentsResponse = (output, context) => {
|
|
|
1805
2288
|
NextToken: __expectString(output.NextToken),
|
|
1806
2289
|
};
|
|
1807
2290
|
};
|
|
1808
|
-
|
|
2291
|
+
var deserializeAws_json1_1ListConfigurationHistoryResponse = function (output, context) {
|
|
1809
2292
|
return {
|
|
1810
2293
|
EventList: output.EventList != null ? deserializeAws_json1_1ConfigurationEventList(output.EventList, context) : undefined,
|
|
1811
2294
|
NextToken: __expectString(output.NextToken),
|
|
1812
2295
|
};
|
|
1813
2296
|
};
|
|
1814
|
-
|
|
2297
|
+
var deserializeAws_json1_1ListLogPatternSetsResponse = function (output, context) {
|
|
1815
2298
|
return {
|
|
1816
2299
|
LogPatternSets: output.LogPatternSets != null
|
|
1817
2300
|
? deserializeAws_json1_1LogPatternSetList(output.LogPatternSets, context)
|
|
@@ -1820,26 +2303,26 @@ const deserializeAws_json1_1ListLogPatternSetsResponse = (output, context) => {
|
|
|
1820
2303
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1821
2304
|
};
|
|
1822
2305
|
};
|
|
1823
|
-
|
|
2306
|
+
var deserializeAws_json1_1ListLogPatternsResponse = function (output, context) {
|
|
1824
2307
|
return {
|
|
1825
2308
|
LogPatterns: output.LogPatterns != null ? deserializeAws_json1_1LogPatternList(output.LogPatterns, context) : undefined,
|
|
1826
2309
|
NextToken: __expectString(output.NextToken),
|
|
1827
2310
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1828
2311
|
};
|
|
1829
2312
|
};
|
|
1830
|
-
|
|
2313
|
+
var deserializeAws_json1_1ListProblemsResponse = function (output, context) {
|
|
1831
2314
|
return {
|
|
1832
2315
|
NextToken: __expectString(output.NextToken),
|
|
1833
2316
|
ProblemList: output.ProblemList != null ? deserializeAws_json1_1ProblemList(output.ProblemList, context) : undefined,
|
|
1834
2317
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1835
2318
|
};
|
|
1836
2319
|
};
|
|
1837
|
-
|
|
2320
|
+
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
1838
2321
|
return {
|
|
1839
2322
|
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
1840
2323
|
};
|
|
1841
2324
|
};
|
|
1842
|
-
|
|
2325
|
+
var deserializeAws_json1_1LogPattern = function (output, context) {
|
|
1843
2326
|
return {
|
|
1844
2327
|
Pattern: __expectString(output.Pattern),
|
|
1845
2328
|
PatternName: __expectString(output.PatternName),
|
|
@@ -1847,10 +2330,10 @@ const deserializeAws_json1_1LogPattern = (output, context) => {
|
|
|
1847
2330
|
Rank: __expectInt32(output.Rank),
|
|
1848
2331
|
};
|
|
1849
2332
|
};
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
.filter((e)
|
|
1853
|
-
.map((entry)
|
|
2333
|
+
var deserializeAws_json1_1LogPatternList = function (output, context) {
|
|
2334
|
+
var retVal = (output || [])
|
|
2335
|
+
.filter(function (e) { return e != null; })
|
|
2336
|
+
.map(function (entry) {
|
|
1854
2337
|
if (entry === null) {
|
|
1855
2338
|
return null;
|
|
1856
2339
|
}
|
|
@@ -1858,10 +2341,10 @@ const deserializeAws_json1_1LogPatternList = (output, context) => {
|
|
|
1858
2341
|
});
|
|
1859
2342
|
return retVal;
|
|
1860
2343
|
};
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
.filter((e)
|
|
1864
|
-
.map((entry)
|
|
2344
|
+
var deserializeAws_json1_1LogPatternSetList = function (output, context) {
|
|
2345
|
+
var retVal = (output || [])
|
|
2346
|
+
.filter(function (e) { return e != null; })
|
|
2347
|
+
.map(function (entry) {
|
|
1865
2348
|
if (entry === null) {
|
|
1866
2349
|
return null;
|
|
1867
2350
|
}
|
|
@@ -1869,7 +2352,7 @@ const deserializeAws_json1_1LogPatternSetList = (output, context) => {
|
|
|
1869
2352
|
});
|
|
1870
2353
|
return retVal;
|
|
1871
2354
|
};
|
|
1872
|
-
|
|
2355
|
+
var deserializeAws_json1_1Observation = function (output, context) {
|
|
1873
2356
|
return {
|
|
1874
2357
|
CloudWatchEventDetailType: __expectString(output.CloudWatchEventDetailType),
|
|
1875
2358
|
CloudWatchEventId: __expectString(output.CloudWatchEventId),
|
|
@@ -1918,10 +2401,10 @@ const deserializeAws_json1_1Observation = (output, context) => {
|
|
|
1918
2401
|
XRayThrottlePercent: __expectInt32(output.XRayThrottlePercent),
|
|
1919
2402
|
};
|
|
1920
2403
|
};
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
.filter((e)
|
|
1924
|
-
.map((entry)
|
|
2404
|
+
var deserializeAws_json1_1ObservationList = function (output, context) {
|
|
2405
|
+
var retVal = (output || [])
|
|
2406
|
+
.filter(function (e) { return e != null; })
|
|
2407
|
+
.map(function (entry) {
|
|
1925
2408
|
if (entry === null) {
|
|
1926
2409
|
return null;
|
|
1927
2410
|
}
|
|
@@ -1929,7 +2412,7 @@ const deserializeAws_json1_1ObservationList = (output, context) => {
|
|
|
1929
2412
|
});
|
|
1930
2413
|
return retVal;
|
|
1931
2414
|
};
|
|
1932
|
-
|
|
2415
|
+
var deserializeAws_json1_1Problem = function (output, context) {
|
|
1933
2416
|
return {
|
|
1934
2417
|
AffectedResource: __expectString(output.AffectedResource),
|
|
1935
2418
|
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
@@ -1947,10 +2430,10 @@ const deserializeAws_json1_1Problem = (output, context) => {
|
|
|
1947
2430
|
Title: __expectString(output.Title),
|
|
1948
2431
|
};
|
|
1949
2432
|
};
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
.filter((e)
|
|
1953
|
-
.map((entry)
|
|
2433
|
+
var deserializeAws_json1_1ProblemList = function (output, context) {
|
|
2434
|
+
var retVal = (output || [])
|
|
2435
|
+
.filter(function (e) { return e != null; })
|
|
2436
|
+
.map(function (entry) {
|
|
1954
2437
|
if (entry === null) {
|
|
1955
2438
|
return null;
|
|
1956
2439
|
}
|
|
@@ -1958,22 +2441,22 @@ const deserializeAws_json1_1ProblemList = (output, context) => {
|
|
|
1958
2441
|
});
|
|
1959
2442
|
return retVal;
|
|
1960
2443
|
};
|
|
1961
|
-
|
|
2444
|
+
var deserializeAws_json1_1RelatedObservations = function (output, context) {
|
|
1962
2445
|
return {
|
|
1963
2446
|
ObservationList: output.ObservationList != null
|
|
1964
2447
|
? deserializeAws_json1_1ObservationList(output.ObservationList, context)
|
|
1965
2448
|
: undefined,
|
|
1966
2449
|
};
|
|
1967
2450
|
};
|
|
1968
|
-
|
|
2451
|
+
var deserializeAws_json1_1ResourceInUseException = function (output, context) {
|
|
1969
2452
|
return {
|
|
1970
2453
|
Message: __expectString(output.Message),
|
|
1971
2454
|
};
|
|
1972
2455
|
};
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
.filter((e)
|
|
1976
|
-
.map((entry)
|
|
2456
|
+
var deserializeAws_json1_1ResourceList = function (output, context) {
|
|
2457
|
+
var retVal = (output || [])
|
|
2458
|
+
.filter(function (e) { return e != null; })
|
|
2459
|
+
.map(function (entry) {
|
|
1977
2460
|
if (entry === null) {
|
|
1978
2461
|
return null;
|
|
1979
2462
|
}
|
|
@@ -1981,21 +2464,21 @@ const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
|
1981
2464
|
});
|
|
1982
2465
|
return retVal;
|
|
1983
2466
|
};
|
|
1984
|
-
|
|
2467
|
+
var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
|
|
1985
2468
|
return {
|
|
1986
2469
|
Message: __expectString(output.Message),
|
|
1987
2470
|
};
|
|
1988
2471
|
};
|
|
1989
|
-
|
|
2472
|
+
var deserializeAws_json1_1Tag = function (output, context) {
|
|
1990
2473
|
return {
|
|
1991
2474
|
Key: __expectString(output.Key),
|
|
1992
2475
|
Value: __expectString(output.Value),
|
|
1993
2476
|
};
|
|
1994
2477
|
};
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
.filter((e)
|
|
1998
|
-
.map((entry)
|
|
2478
|
+
var deserializeAws_json1_1TagList = function (output, context) {
|
|
2479
|
+
var retVal = (output || [])
|
|
2480
|
+
.filter(function (e) { return e != null; })
|
|
2481
|
+
.map(function (entry) {
|
|
1999
2482
|
if (entry === null) {
|
|
2000
2483
|
return null;
|
|
2001
2484
|
}
|
|
@@ -2003,104 +2486,126 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2003
2486
|
});
|
|
2004
2487
|
return retVal;
|
|
2005
2488
|
};
|
|
2006
|
-
|
|
2489
|
+
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
2007
2490
|
return {};
|
|
2008
2491
|
};
|
|
2009
|
-
|
|
2492
|
+
var deserializeAws_json1_1TagsAlreadyExistException = function (output, context) {
|
|
2010
2493
|
return {
|
|
2011
2494
|
Message: __expectString(output.Message),
|
|
2012
2495
|
};
|
|
2013
2496
|
};
|
|
2014
|
-
|
|
2497
|
+
var deserializeAws_json1_1TooManyTagsException = function (output, context) {
|
|
2015
2498
|
return {
|
|
2016
2499
|
Message: __expectString(output.Message),
|
|
2017
2500
|
ResourceName: __expectString(output.ResourceName),
|
|
2018
2501
|
};
|
|
2019
2502
|
};
|
|
2020
|
-
|
|
2503
|
+
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
2021
2504
|
return {};
|
|
2022
2505
|
};
|
|
2023
|
-
|
|
2506
|
+
var deserializeAws_json1_1UpdateApplicationResponse = function (output, context) {
|
|
2024
2507
|
return {
|
|
2025
2508
|
ApplicationInfo: output.ApplicationInfo != null
|
|
2026
2509
|
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
2027
2510
|
: undefined,
|
|
2028
2511
|
};
|
|
2029
2512
|
};
|
|
2030
|
-
|
|
2513
|
+
var deserializeAws_json1_1UpdateComponentConfigurationResponse = function (output, context) {
|
|
2031
2514
|
return {};
|
|
2032
2515
|
};
|
|
2033
|
-
|
|
2516
|
+
var deserializeAws_json1_1UpdateComponentResponse = function (output, context) {
|
|
2034
2517
|
return {};
|
|
2035
2518
|
};
|
|
2036
|
-
|
|
2519
|
+
var deserializeAws_json1_1UpdateLogPatternResponse = function (output, context) {
|
|
2037
2520
|
return {
|
|
2038
2521
|
LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
|
|
2039
2522
|
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
2040
2523
|
};
|
|
2041
2524
|
};
|
|
2042
|
-
|
|
2525
|
+
var deserializeAws_json1_1ValidationException = function (output, context) {
|
|
2043
2526
|
return {
|
|
2044
2527
|
Message: __expectString(output.Message),
|
|
2045
2528
|
};
|
|
2046
2529
|
};
|
|
2047
|
-
|
|
2048
|
-
return Object.entries(output).reduce((acc,
|
|
2530
|
+
var deserializeAws_json1_1WorkloadMetaData = function (output, context) {
|
|
2531
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2532
|
+
var _b;
|
|
2533
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2049
2534
|
if (value === null) {
|
|
2050
2535
|
return acc;
|
|
2051
2536
|
}
|
|
2052
|
-
return {
|
|
2053
|
-
...acc,
|
|
2054
|
-
[key]: __expectString(value),
|
|
2055
|
-
};
|
|
2537
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2056
2538
|
}, {});
|
|
2057
2539
|
};
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2540
|
+
var deserializeMetadata = function (output) {
|
|
2541
|
+
var _a, _b;
|
|
2542
|
+
return ({
|
|
2543
|
+
httpStatusCode: output.statusCode,
|
|
2544
|
+
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"],
|
|
2545
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2546
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2547
|
+
});
|
|
2548
|
+
};
|
|
2549
|
+
var collectBody = function (streamBody, context) {
|
|
2550
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2065
2551
|
if (streamBody instanceof Uint8Array) {
|
|
2066
2552
|
return Promise.resolve(streamBody);
|
|
2067
2553
|
}
|
|
2068
2554
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2069
2555
|
};
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2556
|
+
var collectBodyString = function (streamBody, context) {
|
|
2557
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2558
|
+
};
|
|
2559
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2560
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2561
|
+
return __generator(this, function (_c) {
|
|
2562
|
+
switch (_c.label) {
|
|
2563
|
+
case 0: return [4, context.endpoint()];
|
|
2564
|
+
case 1:
|
|
2565
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2566
|
+
contents = {
|
|
2567
|
+
protocol: protocol,
|
|
2568
|
+
hostname: hostname,
|
|
2569
|
+
port: port,
|
|
2570
|
+
method: "POST",
|
|
2571
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2572
|
+
headers: headers,
|
|
2573
|
+
};
|
|
2574
|
+
if (resolvedHostname !== undefined) {
|
|
2575
|
+
contents.hostname = resolvedHostname;
|
|
2576
|
+
}
|
|
2577
|
+
if (body !== undefined) {
|
|
2578
|
+
contents.body = body;
|
|
2579
|
+
}
|
|
2580
|
+
return [2, new __HttpRequest(contents)];
|
|
2581
|
+
}
|
|
2582
|
+
});
|
|
2583
|
+
}); };
|
|
2584
|
+
var parseBody = function (streamBody, context) {
|
|
2585
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2586
|
+
if (encoded.length) {
|
|
2587
|
+
return JSON.parse(encoded);
|
|
2588
|
+
}
|
|
2589
|
+
return {};
|
|
2590
|
+
});
|
|
2088
2591
|
};
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2592
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2593
|
+
var value;
|
|
2594
|
+
var _a;
|
|
2595
|
+
return __generator(this, function (_b) {
|
|
2596
|
+
switch (_b.label) {
|
|
2597
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2598
|
+
case 1:
|
|
2599
|
+
value = _b.sent();
|
|
2600
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2601
|
+
return [2, value];
|
|
2602
|
+
}
|
|
2603
|
+
});
|
|
2604
|
+
}); };
|
|
2605
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2606
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2607
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2608
|
+
var cleanValue = rawValue;
|
|
2104
2609
|
if (typeof cleanValue === "number") {
|
|
2105
2610
|
cleanValue = cleanValue.toString();
|
|
2106
2611
|
}
|
|
@@ -2115,7 +2620,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2115
2620
|
}
|
|
2116
2621
|
return cleanValue;
|
|
2117
2622
|
};
|
|
2118
|
-
|
|
2623
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2119
2624
|
if (headerKey !== undefined) {
|
|
2120
2625
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2121
2626
|
}
|