@aws-sdk/client-application-insights 3.312.0 → 3.316.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.
@@ -9,112 +9,112 @@ const models_0_1 = require("../models/models_0");
9
9
  const se_CreateApplicationCommand = async (input, context) => {
10
10
  const headers = sharedHeaders("CreateApplication");
11
11
  let body;
12
- body = JSON.stringify(se_CreateApplicationRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
14
  };
15
15
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
16
16
  const se_CreateComponentCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("CreateComponent");
18
18
  let body;
19
- body = JSON.stringify(se_CreateComponentRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
21
  };
22
22
  exports.se_CreateComponentCommand = se_CreateComponentCommand;
23
23
  const se_CreateLogPatternCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateLogPattern");
25
25
  let body;
26
- body = JSON.stringify(se_CreateLogPatternRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_CreateLogPatternCommand = se_CreateLogPatternCommand;
30
30
  const se_DeleteApplicationCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("DeleteApplication");
32
32
  let body;
33
- body = JSON.stringify(se_DeleteApplicationRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
37
37
  const se_DeleteComponentCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("DeleteComponent");
39
39
  let body;
40
- body = JSON.stringify(se_DeleteComponentRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_DeleteComponentCommand = se_DeleteComponentCommand;
44
44
  const se_DeleteLogPatternCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("DeleteLogPattern");
46
46
  let body;
47
- body = JSON.stringify(se_DeleteLogPatternRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_DeleteLogPatternCommand = se_DeleteLogPatternCommand;
51
51
  const se_DescribeApplicationCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("DescribeApplication");
53
53
  let body;
54
- body = JSON.stringify(se_DescribeApplicationRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_DescribeApplicationCommand = se_DescribeApplicationCommand;
58
58
  const se_DescribeComponentCommand = async (input, context) => {
59
59
  const headers = sharedHeaders("DescribeComponent");
60
60
  let body;
61
- body = JSON.stringify(se_DescribeComponentRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
62
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
63
  };
64
64
  exports.se_DescribeComponentCommand = se_DescribeComponentCommand;
65
65
  const se_DescribeComponentConfigurationCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DescribeComponentConfiguration");
67
67
  let body;
68
- body = JSON.stringify(se_DescribeComponentConfigurationRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_DescribeComponentConfigurationCommand = se_DescribeComponentConfigurationCommand;
72
72
  const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
74
74
  let body;
75
- body = JSON.stringify(se_DescribeComponentConfigurationRecommendationRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_DescribeComponentConfigurationRecommendationCommand = se_DescribeComponentConfigurationRecommendationCommand;
79
79
  const se_DescribeLogPatternCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("DescribeLogPattern");
81
81
  let body;
82
- body = JSON.stringify(se_DescribeLogPatternRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
84
  };
85
85
  exports.se_DescribeLogPatternCommand = se_DescribeLogPatternCommand;
86
86
  const se_DescribeObservationCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("DescribeObservation");
88
88
  let body;
89
- body = JSON.stringify(se_DescribeObservationRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_DescribeObservationCommand = se_DescribeObservationCommand;
93
93
  const se_DescribeProblemCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("DescribeProblem");
95
95
  let body;
96
- body = JSON.stringify(se_DescribeProblemRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
98
  };
99
99
  exports.se_DescribeProblemCommand = se_DescribeProblemCommand;
100
100
  const se_DescribeProblemObservationsCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("DescribeProblemObservations");
102
102
  let body;
103
- body = JSON.stringify(se_DescribeProblemObservationsRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
105
  };
106
106
  exports.se_DescribeProblemObservationsCommand = se_DescribeProblemObservationsCommand;
107
107
  const se_ListApplicationsCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("ListApplications");
109
109
  let body;
110
- body = JSON.stringify(se_ListApplicationsRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
114
114
  const se_ListComponentsCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("ListComponents");
116
116
  let body;
117
- body = JSON.stringify(se_ListComponentsRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  exports.se_ListComponentsCommand = se_ListComponentsCommand;
@@ -128,14 +128,14 @@ exports.se_ListConfigurationHistoryCommand = se_ListConfigurationHistoryCommand;
128
128
  const se_ListLogPatternsCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("ListLogPatterns");
130
130
  let body;
131
- body = JSON.stringify(se_ListLogPatternsRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
132
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
133
  };
134
134
  exports.se_ListLogPatternsCommand = se_ListLogPatternsCommand;
135
135
  const se_ListLogPatternSetsCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("ListLogPatternSets");
137
137
  let body;
138
- body = JSON.stringify(se_ListLogPatternSetsRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
139
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
140
  };
141
141
  exports.se_ListLogPatternSetsCommand = se_ListLogPatternSetsCommand;
@@ -149,49 +149,49 @@ exports.se_ListProblemsCommand = se_ListProblemsCommand;
149
149
  const se_ListTagsForResourceCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("ListTagsForResource");
151
151
  let body;
152
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
156
156
  const se_TagResourceCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("TagResource");
158
158
  let body;
159
- body = JSON.stringify(se_TagResourceRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  exports.se_TagResourceCommand = se_TagResourceCommand;
163
163
  const se_UntagResourceCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("UntagResource");
165
165
  let body;
166
- body = JSON.stringify(se_UntagResourceRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
168
  };
169
169
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
170
170
  const se_UpdateApplicationCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("UpdateApplication");
172
172
  let body;
173
- body = JSON.stringify(se_UpdateApplicationRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
177
177
  const se_UpdateComponentCommand = async (input, context) => {
178
178
  const headers = sharedHeaders("UpdateComponent");
179
179
  let body;
180
- body = JSON.stringify(se_UpdateComponentRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
181
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
182
  };
183
183
  exports.se_UpdateComponentCommand = se_UpdateComponentCommand;
184
184
  const se_UpdateComponentConfigurationCommand = async (input, context) => {
185
185
  const headers = sharedHeaders("UpdateComponentConfiguration");
186
186
  let body;
187
- body = JSON.stringify(se_UpdateComponentConfigurationRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
188
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
189
  };
190
190
  exports.se_UpdateComponentConfigurationCommand = se_UpdateComponentConfigurationCommand;
191
191
  const se_UpdateLogPatternCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("UpdateLogPattern");
193
193
  let body;
194
- body = JSON.stringify(se_UpdateLogPatternRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  exports.se_UpdateLogPatternCommand = se_UpdateLogPatternCommand;
@@ -201,12 +201,12 @@ const de_CreateApplicationCommand = async (output, context) => {
201
201
  }
202
202
  const data = await parseBody(output.body, context);
203
203
  let contents = {};
204
- contents = de_CreateApplicationResponse(data, context);
204
+ contents = (0, smithy_client_1._json)(data);
205
205
  const response = {
206
206
  $metadata: deserializeMetadata(output),
207
207
  ...contents,
208
208
  };
209
- return Promise.resolve(response);
209
+ return response;
210
210
  };
211
211
  exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
212
212
  const de_CreateApplicationCommandError = async (output, context) => {
@@ -236,10 +236,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
236
236
  throw await de_ValidationExceptionRes(parsedOutput, context);
237
237
  default:
238
238
  const parsedBody = parsedOutput.body;
239
- (0, smithy_client_1.throwDefaultError)({
239
+ return throwDefaultError({
240
240
  output,
241
241
  parsedBody,
242
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
243
242
  errorCode,
244
243
  });
245
244
  }
@@ -250,12 +249,12 @@ const de_CreateComponentCommand = async (output, context) => {
250
249
  }
251
250
  const data = await parseBody(output.body, context);
252
251
  let contents = {};
253
- contents = de_CreateComponentResponse(data, context);
252
+ contents = (0, smithy_client_1._json)(data);
254
253
  const response = {
255
254
  $metadata: deserializeMetadata(output),
256
255
  ...contents,
257
256
  };
258
- return Promise.resolve(response);
257
+ return response;
259
258
  };
260
259
  exports.de_CreateComponentCommand = de_CreateComponentCommand;
261
260
  const de_CreateComponentCommandError = async (output, context) => {
@@ -279,10 +278,9 @@ const de_CreateComponentCommandError = async (output, context) => {
279
278
  throw await de_ValidationExceptionRes(parsedOutput, context);
280
279
  default:
281
280
  const parsedBody = parsedOutput.body;
282
- (0, smithy_client_1.throwDefaultError)({
281
+ return throwDefaultError({
283
282
  output,
284
283
  parsedBody,
285
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
286
284
  errorCode,
287
285
  });
288
286
  }
@@ -293,12 +291,12 @@ const de_CreateLogPatternCommand = async (output, context) => {
293
291
  }
294
292
  const data = await parseBody(output.body, context);
295
293
  let contents = {};
296
- contents = de_CreateLogPatternResponse(data, context);
294
+ contents = (0, smithy_client_1._json)(data);
297
295
  const response = {
298
296
  $metadata: deserializeMetadata(output),
299
297
  ...contents,
300
298
  };
301
- return Promise.resolve(response);
299
+ return response;
302
300
  };
303
301
  exports.de_CreateLogPatternCommand = de_CreateLogPatternCommand;
304
302
  const de_CreateLogPatternCommandError = async (output, context) => {
@@ -322,10 +320,9 @@ const de_CreateLogPatternCommandError = async (output, context) => {
322
320
  throw await de_ValidationExceptionRes(parsedOutput, context);
323
321
  default:
324
322
  const parsedBody = parsedOutput.body;
325
- (0, smithy_client_1.throwDefaultError)({
323
+ return throwDefaultError({
326
324
  output,
327
325
  parsedBody,
328
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
329
326
  errorCode,
330
327
  });
331
328
  }
@@ -336,12 +333,12 @@ const de_DeleteApplicationCommand = async (output, context) => {
336
333
  }
337
334
  const data = await parseBody(output.body, context);
338
335
  let contents = {};
339
- contents = de_DeleteApplicationResponse(data, context);
336
+ contents = (0, smithy_client_1._json)(data);
340
337
  const response = {
341
338
  $metadata: deserializeMetadata(output),
342
339
  ...contents,
343
340
  };
344
- return Promise.resolve(response);
341
+ return response;
345
342
  };
346
343
  exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
347
344
  const de_DeleteApplicationCommandError = async (output, context) => {
@@ -365,10 +362,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
365
362
  throw await de_ValidationExceptionRes(parsedOutput, context);
366
363
  default:
367
364
  const parsedBody = parsedOutput.body;
368
- (0, smithy_client_1.throwDefaultError)({
365
+ return throwDefaultError({
369
366
  output,
370
367
  parsedBody,
371
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
372
368
  errorCode,
373
369
  });
374
370
  }
@@ -379,12 +375,12 @@ const de_DeleteComponentCommand = async (output, context) => {
379
375
  }
380
376
  const data = await parseBody(output.body, context);
381
377
  let contents = {};
382
- contents = de_DeleteComponentResponse(data, context);
378
+ contents = (0, smithy_client_1._json)(data);
383
379
  const response = {
384
380
  $metadata: deserializeMetadata(output),
385
381
  ...contents,
386
382
  };
387
- return Promise.resolve(response);
383
+ return response;
388
384
  };
389
385
  exports.de_DeleteComponentCommand = de_DeleteComponentCommand;
390
386
  const de_DeleteComponentCommandError = async (output, context) => {
@@ -405,10 +401,9 @@ const de_DeleteComponentCommandError = async (output, context) => {
405
401
  throw await de_ValidationExceptionRes(parsedOutput, context);
406
402
  default:
407
403
  const parsedBody = parsedOutput.body;
408
- (0, smithy_client_1.throwDefaultError)({
404
+ return throwDefaultError({
409
405
  output,
410
406
  parsedBody,
411
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
412
407
  errorCode,
413
408
  });
414
409
  }
@@ -419,12 +414,12 @@ const de_DeleteLogPatternCommand = async (output, context) => {
419
414
  }
420
415
  const data = await parseBody(output.body, context);
421
416
  let contents = {};
422
- contents = de_DeleteLogPatternResponse(data, context);
417
+ contents = (0, smithy_client_1._json)(data);
423
418
  const response = {
424
419
  $metadata: deserializeMetadata(output),
425
420
  ...contents,
426
421
  };
427
- return Promise.resolve(response);
422
+ return response;
428
423
  };
429
424
  exports.de_DeleteLogPatternCommand = de_DeleteLogPatternCommand;
430
425
  const de_DeleteLogPatternCommandError = async (output, context) => {
@@ -448,10 +443,9 @@ const de_DeleteLogPatternCommandError = async (output, context) => {
448
443
  throw await de_ValidationExceptionRes(parsedOutput, context);
449
444
  default:
450
445
  const parsedBody = parsedOutput.body;
451
- (0, smithy_client_1.throwDefaultError)({
446
+ return throwDefaultError({
452
447
  output,
453
448
  parsedBody,
454
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
455
449
  errorCode,
456
450
  });
457
451
  }
@@ -462,12 +456,12 @@ const de_DescribeApplicationCommand = async (output, context) => {
462
456
  }
463
457
  const data = await parseBody(output.body, context);
464
458
  let contents = {};
465
- contents = de_DescribeApplicationResponse(data, context);
459
+ contents = (0, smithy_client_1._json)(data);
466
460
  const response = {
467
461
  $metadata: deserializeMetadata(output),
468
462
  ...contents,
469
463
  };
470
- return Promise.resolve(response);
464
+ return response;
471
465
  };
472
466
  exports.de_DescribeApplicationCommand = de_DescribeApplicationCommand;
473
467
  const de_DescribeApplicationCommandError = async (output, context) => {
@@ -488,10 +482,9 @@ const de_DescribeApplicationCommandError = async (output, context) => {
488
482
  throw await de_ValidationExceptionRes(parsedOutput, context);
489
483
  default:
490
484
  const parsedBody = parsedOutput.body;
491
- (0, smithy_client_1.throwDefaultError)({
485
+ return throwDefaultError({
492
486
  output,
493
487
  parsedBody,
494
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
495
488
  errorCode,
496
489
  });
497
490
  }
@@ -502,12 +495,12 @@ const de_DescribeComponentCommand = async (output, context) => {
502
495
  }
503
496
  const data = await parseBody(output.body, context);
504
497
  let contents = {};
505
- contents = de_DescribeComponentResponse(data, context);
498
+ contents = (0, smithy_client_1._json)(data);
506
499
  const response = {
507
500
  $metadata: deserializeMetadata(output),
508
501
  ...contents,
509
502
  };
510
- return Promise.resolve(response);
503
+ return response;
511
504
  };
512
505
  exports.de_DescribeComponentCommand = de_DescribeComponentCommand;
513
506
  const de_DescribeComponentCommandError = async (output, context) => {
@@ -528,10 +521,9 @@ const de_DescribeComponentCommandError = async (output, context) => {
528
521
  throw await de_ValidationExceptionRes(parsedOutput, context);
529
522
  default:
530
523
  const parsedBody = parsedOutput.body;
531
- (0, smithy_client_1.throwDefaultError)({
524
+ return throwDefaultError({
532
525
  output,
533
526
  parsedBody,
534
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
535
527
  errorCode,
536
528
  });
537
529
  }
@@ -542,12 +534,12 @@ const de_DescribeComponentConfigurationCommand = async (output, context) => {
542
534
  }
543
535
  const data = await parseBody(output.body, context);
544
536
  let contents = {};
545
- contents = de_DescribeComponentConfigurationResponse(data, context);
537
+ contents = (0, smithy_client_1._json)(data);
546
538
  const response = {
547
539
  $metadata: deserializeMetadata(output),
548
540
  ...contents,
549
541
  };
550
- return Promise.resolve(response);
542
+ return response;
551
543
  };
552
544
  exports.de_DescribeComponentConfigurationCommand = de_DescribeComponentConfigurationCommand;
553
545
  const de_DescribeComponentConfigurationCommandError = async (output, context) => {
@@ -568,10 +560,9 @@ const de_DescribeComponentConfigurationCommandError = async (output, context) =>
568
560
  throw await de_ValidationExceptionRes(parsedOutput, context);
569
561
  default:
570
562
  const parsedBody = parsedOutput.body;
571
- (0, smithy_client_1.throwDefaultError)({
563
+ return throwDefaultError({
572
564
  output,
573
565
  parsedBody,
574
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
575
566
  errorCode,
576
567
  });
577
568
  }
@@ -582,12 +573,12 @@ const de_DescribeComponentConfigurationRecommendationCommand = async (output, co
582
573
  }
583
574
  const data = await parseBody(output.body, context);
584
575
  let contents = {};
585
- contents = de_DescribeComponentConfigurationRecommendationResponse(data, context);
576
+ contents = (0, smithy_client_1._json)(data);
586
577
  const response = {
587
578
  $metadata: deserializeMetadata(output),
588
579
  ...contents,
589
580
  };
590
- return Promise.resolve(response);
581
+ return response;
591
582
  };
592
583
  exports.de_DescribeComponentConfigurationRecommendationCommand = de_DescribeComponentConfigurationRecommendationCommand;
593
584
  const de_DescribeComponentConfigurationRecommendationCommandError = async (output, context) => {
@@ -608,10 +599,9 @@ const de_DescribeComponentConfigurationRecommendationCommandError = async (outpu
608
599
  throw await de_ValidationExceptionRes(parsedOutput, context);
609
600
  default:
610
601
  const parsedBody = parsedOutput.body;
611
- (0, smithy_client_1.throwDefaultError)({
602
+ return throwDefaultError({
612
603
  output,
613
604
  parsedBody,
614
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
615
605
  errorCode,
616
606
  });
617
607
  }
@@ -622,12 +612,12 @@ const de_DescribeLogPatternCommand = async (output, context) => {
622
612
  }
623
613
  const data = await parseBody(output.body, context);
624
614
  let contents = {};
625
- contents = de_DescribeLogPatternResponse(data, context);
615
+ contents = (0, smithy_client_1._json)(data);
626
616
  const response = {
627
617
  $metadata: deserializeMetadata(output),
628
618
  ...contents,
629
619
  };
630
- return Promise.resolve(response);
620
+ return response;
631
621
  };
632
622
  exports.de_DescribeLogPatternCommand = de_DescribeLogPatternCommand;
633
623
  const de_DescribeLogPatternCommandError = async (output, context) => {
@@ -648,10 +638,9 @@ const de_DescribeLogPatternCommandError = async (output, context) => {
648
638
  throw await de_ValidationExceptionRes(parsedOutput, context);
649
639
  default:
650
640
  const parsedBody = parsedOutput.body;
651
- (0, smithy_client_1.throwDefaultError)({
641
+ return throwDefaultError({
652
642
  output,
653
643
  parsedBody,
654
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
655
644
  errorCode,
656
645
  });
657
646
  }
@@ -667,7 +656,7 @@ const de_DescribeObservationCommand = async (output, context) => {
667
656
  $metadata: deserializeMetadata(output),
668
657
  ...contents,
669
658
  };
670
- return Promise.resolve(response);
659
+ return response;
671
660
  };
672
661
  exports.de_DescribeObservationCommand = de_DescribeObservationCommand;
673
662
  const de_DescribeObservationCommandError = async (output, context) => {
@@ -688,10 +677,9 @@ const de_DescribeObservationCommandError = async (output, context) => {
688
677
  throw await de_ValidationExceptionRes(parsedOutput, context);
689
678
  default:
690
679
  const parsedBody = parsedOutput.body;
691
- (0, smithy_client_1.throwDefaultError)({
680
+ return throwDefaultError({
692
681
  output,
693
682
  parsedBody,
694
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
695
683
  errorCode,
696
684
  });
697
685
  }
@@ -707,7 +695,7 @@ const de_DescribeProblemCommand = async (output, context) => {
707
695
  $metadata: deserializeMetadata(output),
708
696
  ...contents,
709
697
  };
710
- return Promise.resolve(response);
698
+ return response;
711
699
  };
712
700
  exports.de_DescribeProblemCommand = de_DescribeProblemCommand;
713
701
  const de_DescribeProblemCommandError = async (output, context) => {
@@ -728,10 +716,9 @@ const de_DescribeProblemCommandError = async (output, context) => {
728
716
  throw await de_ValidationExceptionRes(parsedOutput, context);
729
717
  default:
730
718
  const parsedBody = parsedOutput.body;
731
- (0, smithy_client_1.throwDefaultError)({
719
+ return throwDefaultError({
732
720
  output,
733
721
  parsedBody,
734
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
735
722
  errorCode,
736
723
  });
737
724
  }
@@ -747,7 +734,7 @@ const de_DescribeProblemObservationsCommand = async (output, context) => {
747
734
  $metadata: deserializeMetadata(output),
748
735
  ...contents,
749
736
  };
750
- return Promise.resolve(response);
737
+ return response;
751
738
  };
752
739
  exports.de_DescribeProblemObservationsCommand = de_DescribeProblemObservationsCommand;
753
740
  const de_DescribeProblemObservationsCommandError = async (output, context) => {
@@ -768,10 +755,9 @@ const de_DescribeProblemObservationsCommandError = async (output, context) => {
768
755
  throw await de_ValidationExceptionRes(parsedOutput, context);
769
756
  default:
770
757
  const parsedBody = parsedOutput.body;
771
- (0, smithy_client_1.throwDefaultError)({
758
+ return throwDefaultError({
772
759
  output,
773
760
  parsedBody,
774
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
775
761
  errorCode,
776
762
  });
777
763
  }
@@ -782,12 +768,12 @@ const de_ListApplicationsCommand = async (output, context) => {
782
768
  }
783
769
  const data = await parseBody(output.body, context);
784
770
  let contents = {};
785
- contents = de_ListApplicationsResponse(data, context);
771
+ contents = (0, smithy_client_1._json)(data);
786
772
  const response = {
787
773
  $metadata: deserializeMetadata(output),
788
774
  ...contents,
789
775
  };
790
- return Promise.resolve(response);
776
+ return response;
791
777
  };
792
778
  exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
793
779
  const de_ListApplicationsCommandError = async (output, context) => {
@@ -805,10 +791,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
805
791
  throw await de_ValidationExceptionRes(parsedOutput, context);
806
792
  default:
807
793
  const parsedBody = parsedOutput.body;
808
- (0, smithy_client_1.throwDefaultError)({
794
+ return throwDefaultError({
809
795
  output,
810
796
  parsedBody,
811
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
812
797
  errorCode,
813
798
  });
814
799
  }
@@ -819,12 +804,12 @@ const de_ListComponentsCommand = async (output, context) => {
819
804
  }
820
805
  const data = await parseBody(output.body, context);
821
806
  let contents = {};
822
- contents = de_ListComponentsResponse(data, context);
807
+ contents = (0, smithy_client_1._json)(data);
823
808
  const response = {
824
809
  $metadata: deserializeMetadata(output),
825
810
  ...contents,
826
811
  };
827
- return Promise.resolve(response);
812
+ return response;
828
813
  };
829
814
  exports.de_ListComponentsCommand = de_ListComponentsCommand;
830
815
  const de_ListComponentsCommandError = async (output, context) => {
@@ -845,10 +830,9 @@ const de_ListComponentsCommandError = async (output, context) => {
845
830
  throw await de_ValidationExceptionRes(parsedOutput, context);
846
831
  default:
847
832
  const parsedBody = parsedOutput.body;
848
- (0, smithy_client_1.throwDefaultError)({
833
+ return throwDefaultError({
849
834
  output,
850
835
  parsedBody,
851
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
852
836
  errorCode,
853
837
  });
854
838
  }
@@ -864,7 +848,7 @@ const de_ListConfigurationHistoryCommand = async (output, context) => {
864
848
  $metadata: deserializeMetadata(output),
865
849
  ...contents,
866
850
  };
867
- return Promise.resolve(response);
851
+ return response;
868
852
  };
869
853
  exports.de_ListConfigurationHistoryCommand = de_ListConfigurationHistoryCommand;
870
854
  const de_ListConfigurationHistoryCommandError = async (output, context) => {
@@ -885,10 +869,9 @@ const de_ListConfigurationHistoryCommandError = async (output, context) => {
885
869
  throw await de_ValidationExceptionRes(parsedOutput, context);
886
870
  default:
887
871
  const parsedBody = parsedOutput.body;
888
- (0, smithy_client_1.throwDefaultError)({
872
+ return throwDefaultError({
889
873
  output,
890
874
  parsedBody,
891
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
892
875
  errorCode,
893
876
  });
894
877
  }
@@ -899,12 +882,12 @@ const de_ListLogPatternsCommand = async (output, context) => {
899
882
  }
900
883
  const data = await parseBody(output.body, context);
901
884
  let contents = {};
902
- contents = de_ListLogPatternsResponse(data, context);
885
+ contents = (0, smithy_client_1._json)(data);
903
886
  const response = {
904
887
  $metadata: deserializeMetadata(output),
905
888
  ...contents,
906
889
  };
907
- return Promise.resolve(response);
890
+ return response;
908
891
  };
909
892
  exports.de_ListLogPatternsCommand = de_ListLogPatternsCommand;
910
893
  const de_ListLogPatternsCommandError = async (output, context) => {
@@ -925,10 +908,9 @@ const de_ListLogPatternsCommandError = async (output, context) => {
925
908
  throw await de_ValidationExceptionRes(parsedOutput, context);
926
909
  default:
927
910
  const parsedBody = parsedOutput.body;
928
- (0, smithy_client_1.throwDefaultError)({
911
+ return throwDefaultError({
929
912
  output,
930
913
  parsedBody,
931
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
932
914
  errorCode,
933
915
  });
934
916
  }
@@ -939,12 +921,12 @@ const de_ListLogPatternSetsCommand = async (output, context) => {
939
921
  }
940
922
  const data = await parseBody(output.body, context);
941
923
  let contents = {};
942
- contents = de_ListLogPatternSetsResponse(data, context);
924
+ contents = (0, smithy_client_1._json)(data);
943
925
  const response = {
944
926
  $metadata: deserializeMetadata(output),
945
927
  ...contents,
946
928
  };
947
- return Promise.resolve(response);
929
+ return response;
948
930
  };
949
931
  exports.de_ListLogPatternSetsCommand = de_ListLogPatternSetsCommand;
950
932
  const de_ListLogPatternSetsCommandError = async (output, context) => {
@@ -965,10 +947,9 @@ const de_ListLogPatternSetsCommandError = async (output, context) => {
965
947
  throw await de_ValidationExceptionRes(parsedOutput, context);
966
948
  default:
967
949
  const parsedBody = parsedOutput.body;
968
- (0, smithy_client_1.throwDefaultError)({
950
+ return throwDefaultError({
969
951
  output,
970
952
  parsedBody,
971
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
972
953
  errorCode,
973
954
  });
974
955
  }
@@ -984,7 +965,7 @@ const de_ListProblemsCommand = async (output, context) => {
984
965
  $metadata: deserializeMetadata(output),
985
966
  ...contents,
986
967
  };
987
- return Promise.resolve(response);
968
+ return response;
988
969
  };
989
970
  exports.de_ListProblemsCommand = de_ListProblemsCommand;
990
971
  const de_ListProblemsCommandError = async (output, context) => {
@@ -1005,10 +986,9 @@ const de_ListProblemsCommandError = async (output, context) => {
1005
986
  throw await de_ValidationExceptionRes(parsedOutput, context);
1006
987
  default:
1007
988
  const parsedBody = parsedOutput.body;
1008
- (0, smithy_client_1.throwDefaultError)({
989
+ return throwDefaultError({
1009
990
  output,
1010
991
  parsedBody,
1011
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1012
992
  errorCode,
1013
993
  });
1014
994
  }
@@ -1019,12 +999,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1019
999
  }
1020
1000
  const data = await parseBody(output.body, context);
1021
1001
  let contents = {};
1022
- contents = de_ListTagsForResourceResponse(data, context);
1002
+ contents = (0, smithy_client_1._json)(data);
1023
1003
  const response = {
1024
1004
  $metadata: deserializeMetadata(output),
1025
1005
  ...contents,
1026
1006
  };
1027
- return Promise.resolve(response);
1007
+ return response;
1028
1008
  };
1029
1009
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1030
1010
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1042,10 +1022,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1042
1022
  throw await de_ValidationExceptionRes(parsedOutput, context);
1043
1023
  default:
1044
1024
  const parsedBody = parsedOutput.body;
1045
- (0, smithy_client_1.throwDefaultError)({
1025
+ return throwDefaultError({
1046
1026
  output,
1047
1027
  parsedBody,
1048
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1049
1028
  errorCode,
1050
1029
  });
1051
1030
  }
@@ -1056,12 +1035,12 @@ const de_TagResourceCommand = async (output, context) => {
1056
1035
  }
1057
1036
  const data = await parseBody(output.body, context);
1058
1037
  let contents = {};
1059
- contents = de_TagResourceResponse(data, context);
1038
+ contents = (0, smithy_client_1._json)(data);
1060
1039
  const response = {
1061
1040
  $metadata: deserializeMetadata(output),
1062
1041
  ...contents,
1063
1042
  };
1064
- return Promise.resolve(response);
1043
+ return response;
1065
1044
  };
1066
1045
  exports.de_TagResourceCommand = de_TagResourceCommand;
1067
1046
  const de_TagResourceCommandError = async (output, context) => {
@@ -1082,10 +1061,9 @@ const de_TagResourceCommandError = async (output, context) => {
1082
1061
  throw await de_ValidationExceptionRes(parsedOutput, context);
1083
1062
  default:
1084
1063
  const parsedBody = parsedOutput.body;
1085
- (0, smithy_client_1.throwDefaultError)({
1064
+ return throwDefaultError({
1086
1065
  output,
1087
1066
  parsedBody,
1088
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1089
1067
  errorCode,
1090
1068
  });
1091
1069
  }
@@ -1096,12 +1074,12 @@ const de_UntagResourceCommand = async (output, context) => {
1096
1074
  }
1097
1075
  const data = await parseBody(output.body, context);
1098
1076
  let contents = {};
1099
- contents = de_UntagResourceResponse(data, context);
1077
+ contents = (0, smithy_client_1._json)(data);
1100
1078
  const response = {
1101
1079
  $metadata: deserializeMetadata(output),
1102
1080
  ...contents,
1103
1081
  };
1104
- return Promise.resolve(response);
1082
+ return response;
1105
1083
  };
1106
1084
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1107
1085
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1119,10 +1097,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1119
1097
  throw await de_ValidationExceptionRes(parsedOutput, context);
1120
1098
  default:
1121
1099
  const parsedBody = parsedOutput.body;
1122
- (0, smithy_client_1.throwDefaultError)({
1100
+ return throwDefaultError({
1123
1101
  output,
1124
1102
  parsedBody,
1125
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1126
1103
  errorCode,
1127
1104
  });
1128
1105
  }
@@ -1133,12 +1110,12 @@ const de_UpdateApplicationCommand = async (output, context) => {
1133
1110
  }
1134
1111
  const data = await parseBody(output.body, context);
1135
1112
  let contents = {};
1136
- contents = de_UpdateApplicationResponse(data, context);
1113
+ contents = (0, smithy_client_1._json)(data);
1137
1114
  const response = {
1138
1115
  $metadata: deserializeMetadata(output),
1139
1116
  ...contents,
1140
1117
  };
1141
- return Promise.resolve(response);
1118
+ return response;
1142
1119
  };
1143
1120
  exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
1144
1121
  const de_UpdateApplicationCommandError = async (output, context) => {
@@ -1159,10 +1136,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
1159
1136
  throw await de_ValidationExceptionRes(parsedOutput, context);
1160
1137
  default:
1161
1138
  const parsedBody = parsedOutput.body;
1162
- (0, smithy_client_1.throwDefaultError)({
1139
+ return throwDefaultError({
1163
1140
  output,
1164
1141
  parsedBody,
1165
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1166
1142
  errorCode,
1167
1143
  });
1168
1144
  }
@@ -1173,12 +1149,12 @@ const de_UpdateComponentCommand = async (output, context) => {
1173
1149
  }
1174
1150
  const data = await parseBody(output.body, context);
1175
1151
  let contents = {};
1176
- contents = de_UpdateComponentResponse(data, context);
1152
+ contents = (0, smithy_client_1._json)(data);
1177
1153
  const response = {
1178
1154
  $metadata: deserializeMetadata(output),
1179
1155
  ...contents,
1180
1156
  };
1181
- return Promise.resolve(response);
1157
+ return response;
1182
1158
  };
1183
1159
  exports.de_UpdateComponentCommand = de_UpdateComponentCommand;
1184
1160
  const de_UpdateComponentCommandError = async (output, context) => {
@@ -1202,10 +1178,9 @@ const de_UpdateComponentCommandError = async (output, context) => {
1202
1178
  throw await de_ValidationExceptionRes(parsedOutput, context);
1203
1179
  default:
1204
1180
  const parsedBody = parsedOutput.body;
1205
- (0, smithy_client_1.throwDefaultError)({
1181
+ return throwDefaultError({
1206
1182
  output,
1207
1183
  parsedBody,
1208
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1209
1184
  errorCode,
1210
1185
  });
1211
1186
  }
@@ -1216,12 +1191,12 @@ const de_UpdateComponentConfigurationCommand = async (output, context) => {
1216
1191
  }
1217
1192
  const data = await parseBody(output.body, context);
1218
1193
  let contents = {};
1219
- contents = de_UpdateComponentConfigurationResponse(data, context);
1194
+ contents = (0, smithy_client_1._json)(data);
1220
1195
  const response = {
1221
1196
  $metadata: deserializeMetadata(output),
1222
1197
  ...contents,
1223
1198
  };
1224
- return Promise.resolve(response);
1199
+ return response;
1225
1200
  };
1226
1201
  exports.de_UpdateComponentConfigurationCommand = de_UpdateComponentConfigurationCommand;
1227
1202
  const de_UpdateComponentConfigurationCommandError = async (output, context) => {
@@ -1242,10 +1217,9 @@ const de_UpdateComponentConfigurationCommandError = async (output, context) => {
1242
1217
  throw await de_ValidationExceptionRes(parsedOutput, context);
1243
1218
  default:
1244
1219
  const parsedBody = parsedOutput.body;
1245
- (0, smithy_client_1.throwDefaultError)({
1220
+ return throwDefaultError({
1246
1221
  output,
1247
1222
  parsedBody,
1248
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1249
1223
  errorCode,
1250
1224
  });
1251
1225
  }
@@ -1256,12 +1230,12 @@ const de_UpdateLogPatternCommand = async (output, context) => {
1256
1230
  }
1257
1231
  const data = await parseBody(output.body, context);
1258
1232
  let contents = {};
1259
- contents = de_UpdateLogPatternResponse(data, context);
1233
+ contents = (0, smithy_client_1._json)(data);
1260
1234
  const response = {
1261
1235
  $metadata: deserializeMetadata(output),
1262
1236
  ...contents,
1263
1237
  };
1264
- return Promise.resolve(response);
1238
+ return response;
1265
1239
  };
1266
1240
  exports.de_UpdateLogPatternCommand = de_UpdateLogPatternCommand;
1267
1241
  const de_UpdateLogPatternCommandError = async (output, context) => {
@@ -1285,17 +1259,16 @@ const de_UpdateLogPatternCommandError = async (output, context) => {
1285
1259
  throw await de_ValidationExceptionRes(parsedOutput, context);
1286
1260
  default:
1287
1261
  const parsedBody = parsedOutput.body;
1288
- (0, smithy_client_1.throwDefaultError)({
1262
+ return throwDefaultError({
1289
1263
  output,
1290
1264
  parsedBody,
1291
- exceptionCtor: ApplicationInsightsServiceException_1.ApplicationInsightsServiceException,
1292
1265
  errorCode,
1293
1266
  });
1294
1267
  }
1295
1268
  };
1296
1269
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1297
1270
  const body = parsedOutput.body;
1298
- const deserialized = de_AccessDeniedException(body, context);
1271
+ const deserialized = (0, smithy_client_1._json)(body);
1299
1272
  const exception = new models_0_1.AccessDeniedException({
1300
1273
  $metadata: deserializeMetadata(parsedOutput),
1301
1274
  ...deserialized,
@@ -1304,7 +1277,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1304
1277
  };
1305
1278
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1306
1279
  const body = parsedOutput.body;
1307
- const deserialized = de_BadRequestException(body, context);
1280
+ const deserialized = (0, smithy_client_1._json)(body);
1308
1281
  const exception = new models_0_1.BadRequestException({
1309
1282
  $metadata: deserializeMetadata(parsedOutput),
1310
1283
  ...deserialized,
@@ -1313,7 +1286,7 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1313
1286
  };
1314
1287
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1315
1288
  const body = parsedOutput.body;
1316
- const deserialized = de_InternalServerException(body, context);
1289
+ const deserialized = (0, smithy_client_1._json)(body);
1317
1290
  const exception = new models_0_1.InternalServerException({
1318
1291
  $metadata: deserializeMetadata(parsedOutput),
1319
1292
  ...deserialized,
@@ -1322,7 +1295,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1322
1295
  };
1323
1296
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1324
1297
  const body = parsedOutput.body;
1325
- const deserialized = de_ResourceInUseException(body, context);
1298
+ const deserialized = (0, smithy_client_1._json)(body);
1326
1299
  const exception = new models_0_1.ResourceInUseException({
1327
1300
  $metadata: deserializeMetadata(parsedOutput),
1328
1301
  ...deserialized,
@@ -1331,7 +1304,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1331
1304
  };
1332
1305
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1333
1306
  const body = parsedOutput.body;
1334
- const deserialized = de_ResourceNotFoundException(body, context);
1307
+ const deserialized = (0, smithy_client_1._json)(body);
1335
1308
  const exception = new models_0_1.ResourceNotFoundException({
1336
1309
  $metadata: deserializeMetadata(parsedOutput),
1337
1310
  ...deserialized,
@@ -1340,7 +1313,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1340
1313
  };
1341
1314
  const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
1342
1315
  const body = parsedOutput.body;
1343
- const deserialized = de_TagsAlreadyExistException(body, context);
1316
+ const deserialized = (0, smithy_client_1._json)(body);
1344
1317
  const exception = new models_0_1.TagsAlreadyExistException({
1345
1318
  $metadata: deserializeMetadata(parsedOutput),
1346
1319
  ...deserialized,
@@ -1349,7 +1322,7 @@ const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
1349
1322
  };
1350
1323
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1351
1324
  const body = parsedOutput.body;
1352
- const deserialized = de_TooManyTagsException(body, context);
1325
+ const deserialized = (0, smithy_client_1._json)(body);
1353
1326
  const exception = new models_0_1.TooManyTagsException({
1354
1327
  $metadata: deserializeMetadata(parsedOutput),
1355
1328
  ...deserialized,
@@ -1358,655 +1331,164 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1358
1331
  };
1359
1332
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1360
1333
  const body = parsedOutput.body;
1361
- const deserialized = de_ValidationException(body, context);
1334
+ const deserialized = (0, smithy_client_1._json)(body);
1362
1335
  const exception = new models_0_1.ValidationException({
1363
1336
  $metadata: deserializeMetadata(parsedOutput),
1364
1337
  ...deserialized,
1365
1338
  });
1366
1339
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1367
1340
  };
1368
- const se_CreateApplicationRequest = (input, context) => {
1369
- return {
1370
- ...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1371
- ...(input.AutoCreate != null && { AutoCreate: input.AutoCreate }),
1372
- ...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
1373
- ...(input.GroupingType != null && { GroupingType: input.GroupingType }),
1374
- ...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
1375
- ...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
1376
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1377
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1378
- };
1379
- };
1380
- const se_CreateComponentRequest = (input, context) => {
1381
- return {
1382
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1383
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1384
- ...(input.ResourceList != null && { ResourceList: se_ResourceList(input.ResourceList, context) }),
1385
- };
1386
- };
1387
- const se_CreateLogPatternRequest = (input, context) => {
1388
- return {
1389
- ...(input.Pattern != null && { Pattern: input.Pattern }),
1390
- ...(input.PatternName != null && { PatternName: input.PatternName }),
1391
- ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1392
- ...(input.Rank != null && { Rank: input.Rank }),
1393
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1394
- };
1395
- };
1396
- const se_DeleteApplicationRequest = (input, context) => {
1397
- return {
1398
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1399
- };
1400
- };
1401
- const se_DeleteComponentRequest = (input, context) => {
1402
- return {
1403
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1404
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1405
- };
1406
- };
1407
- const se_DeleteLogPatternRequest = (input, context) => {
1408
- return {
1409
- ...(input.PatternName != null && { PatternName: input.PatternName }),
1410
- ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1411
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1412
- };
1413
- };
1414
- const se_DescribeApplicationRequest = (input, context) => {
1415
- return {
1416
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1417
- };
1418
- };
1419
- const se_DescribeComponentConfigurationRecommendationRequest = (input, context) => {
1420
- return {
1421
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1422
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1423
- ...(input.Tier != null && { Tier: input.Tier }),
1424
- };
1425
- };
1426
- const se_DescribeComponentConfigurationRequest = (input, context) => {
1427
- return {
1428
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1429
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1430
- };
1431
- };
1432
- const se_DescribeComponentRequest = (input, context) => {
1433
- return {
1434
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1435
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1436
- };
1437
- };
1438
- const se_DescribeLogPatternRequest = (input, context) => {
1439
- return {
1440
- ...(input.PatternName != null && { PatternName: input.PatternName }),
1441
- ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1442
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1443
- };
1444
- };
1445
- const se_DescribeObservationRequest = (input, context) => {
1446
- return {
1447
- ...(input.ObservationId != null && { ObservationId: input.ObservationId }),
1448
- };
1449
- };
1450
- const se_DescribeProblemObservationsRequest = (input, context) => {
1451
- return {
1452
- ...(input.ProblemId != null && { ProblemId: input.ProblemId }),
1453
- };
1454
- };
1455
- const se_DescribeProblemRequest = (input, context) => {
1456
- return {
1457
- ...(input.ProblemId != null && { ProblemId: input.ProblemId }),
1458
- };
1459
- };
1460
- const se_ListApplicationsRequest = (input, context) => {
1461
- return {
1462
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1463
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1464
- };
1465
- };
1466
- const se_ListComponentsRequest = (input, context) => {
1467
- return {
1468
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1469
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1470
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1471
- };
1472
- };
1473
1341
  const se_ListConfigurationHistoryRequest = (input, context) => {
1474
- return {
1475
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1476
- ...(input.EventStatus != null && { EventStatus: input.EventStatus }),
1477
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1478
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1479
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1480
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1481
- };
1482
- };
1483
- const se_ListLogPatternSetsRequest = (input, context) => {
1484
- return {
1485
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1486
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1487
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1488
- };
1489
- };
1490
- const se_ListLogPatternsRequest = (input, context) => {
1491
- return {
1492
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1493
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1494
- ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1495
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1496
- };
1497
- };
1498
- const se_ListProblemsRequest = (input, context) => {
1499
- return {
1500
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1501
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1502
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1503
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1504
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1505
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1506
- };
1507
- };
1508
- const se_ListTagsForResourceRequest = (input, context) => {
1509
- return {
1510
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1511
- };
1512
- };
1513
- const se_ResourceList = (input, context) => {
1514
- return input
1515
- .filter((e) => e != null)
1516
- .map((entry) => {
1517
- return entry;
1342
+ return (0, smithy_client_1.take)(input, {
1343
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1344
+ EventStatus: [],
1345
+ MaxResults: [],
1346
+ NextToken: [],
1347
+ ResourceGroupName: [],
1348
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1518
1349
  });
1519
1350
  };
1520
- const se_Tag = (input, context) => {
1521
- return {
1522
- ...(input.Key != null && { Key: input.Key }),
1523
- ...(input.Value != null && { Value: input.Value }),
1524
- };
1525
- };
1526
- const se_TagKeyList = (input, context) => {
1527
- return input
1528
- .filter((e) => e != null)
1529
- .map((entry) => {
1530
- return entry;
1531
- });
1532
- };
1533
- const se_TagList = (input, context) => {
1534
- return input
1535
- .filter((e) => e != null)
1536
- .map((entry) => {
1537
- return se_Tag(entry, context);
1538
- });
1539
- };
1540
- const se_TagResourceRequest = (input, context) => {
1541
- return {
1542
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1543
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
1544
- };
1545
- };
1546
- const se_UntagResourceRequest = (input, context) => {
1547
- return {
1548
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1549
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
1550
- };
1551
- };
1552
- const se_UpdateApplicationRequest = (input, context) => {
1553
- return {
1554
- ...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1555
- ...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
1556
- ...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
1557
- ...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
1558
- ...(input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic }),
1559
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1560
- };
1561
- };
1562
- const se_UpdateComponentConfigurationRequest = (input, context) => {
1563
- return {
1564
- ...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1565
- ...(input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration }),
1566
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1567
- ...(input.Monitor != null && { Monitor: input.Monitor }),
1568
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1569
- ...(input.Tier != null && { Tier: input.Tier }),
1570
- };
1571
- };
1572
- const se_UpdateComponentRequest = (input, context) => {
1573
- return {
1574
- ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1575
- ...(input.NewComponentName != null && { NewComponentName: input.NewComponentName }),
1576
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1577
- ...(input.ResourceList != null && { ResourceList: se_ResourceList(input.ResourceList, context) }),
1578
- };
1579
- };
1580
- const se_UpdateLogPatternRequest = (input, context) => {
1581
- return {
1582
- ...(input.Pattern != null && { Pattern: input.Pattern }),
1583
- ...(input.PatternName != null && { PatternName: input.PatternName }),
1584
- ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1585
- ...(input.Rank != null && { Rank: input.Rank }),
1586
- ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1587
- };
1588
- };
1589
- const de_AccessDeniedException = (output, context) => {
1590
- return {
1591
- Message: (0, smithy_client_1.expectString)(output.Message),
1592
- };
1593
- };
1594
- const de_ApplicationComponent = (output, context) => {
1595
- return {
1596
- ComponentName: (0, smithy_client_1.expectString)(output.ComponentName),
1597
- ComponentRemarks: (0, smithy_client_1.expectString)(output.ComponentRemarks),
1598
- DetectedWorkload: output.DetectedWorkload != null ? de_DetectedWorkload(output.DetectedWorkload, context) : undefined,
1599
- Monitor: (0, smithy_client_1.expectBoolean)(output.Monitor),
1600
- OsType: (0, smithy_client_1.expectString)(output.OsType),
1601
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
1602
- Tier: (0, smithy_client_1.expectString)(output.Tier),
1603
- };
1604
- };
1605
- const de_ApplicationComponentList = (output, context) => {
1606
- const retVal = (output || [])
1607
- .filter((e) => e != null)
1608
- .map((entry) => {
1609
- if (entry === null) {
1610
- return null;
1611
- }
1612
- return de_ApplicationComponent(entry, context);
1613
- });
1614
- return retVal;
1615
- };
1616
- const de_ApplicationInfo = (output, context) => {
1617
- return {
1618
- AutoConfigEnabled: (0, smithy_client_1.expectBoolean)(output.AutoConfigEnabled),
1619
- CWEMonitorEnabled: (0, smithy_client_1.expectBoolean)(output.CWEMonitorEnabled),
1620
- DiscoveryType: (0, smithy_client_1.expectString)(output.DiscoveryType),
1621
- LifeCycle: (0, smithy_client_1.expectString)(output.LifeCycle),
1622
- OpsCenterEnabled: (0, smithy_client_1.expectBoolean)(output.OpsCenterEnabled),
1623
- OpsItemSNSTopicArn: (0, smithy_client_1.expectString)(output.OpsItemSNSTopicArn),
1624
- Remarks: (0, smithy_client_1.expectString)(output.Remarks),
1625
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1626
- };
1627
- };
1628
- const de_ApplicationInfoList = (output, context) => {
1629
- const retVal = (output || [])
1630
- .filter((e) => e != null)
1631
- .map((entry) => {
1632
- if (entry === null) {
1633
- return null;
1634
- }
1635
- return de_ApplicationInfo(entry, context);
1351
+ const se_ListProblemsRequest = (input, context) => {
1352
+ return (0, smithy_client_1.take)(input, {
1353
+ ComponentName: [],
1354
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1355
+ MaxResults: [],
1356
+ NextToken: [],
1357
+ ResourceGroupName: [],
1358
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1636
1359
  });
1637
- return retVal;
1638
- };
1639
- const de_BadRequestException = (output, context) => {
1640
- return {
1641
- Message: (0, smithy_client_1.expectString)(output.Message),
1642
- };
1643
1360
  };
1644
1361
  const de_ConfigurationEvent = (output, context) => {
1645
- return {
1646
- EventDetail: (0, smithy_client_1.expectString)(output.EventDetail),
1647
- EventResourceName: (0, smithy_client_1.expectString)(output.EventResourceName),
1648
- EventResourceType: (0, smithy_client_1.expectString)(output.EventResourceType),
1649
- EventStatus: (0, smithy_client_1.expectString)(output.EventStatus),
1650
- EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
1651
- MonitoredResourceARN: (0, smithy_client_1.expectString)(output.MonitoredResourceARN),
1652
- };
1362
+ return (0, smithy_client_1.take)(output, {
1363
+ EventDetail: smithy_client_1.expectString,
1364
+ EventResourceName: smithy_client_1.expectString,
1365
+ EventResourceType: smithy_client_1.expectString,
1366
+ EventStatus: smithy_client_1.expectString,
1367
+ EventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1368
+ MonitoredResourceARN: smithy_client_1.expectString,
1369
+ });
1653
1370
  };
1654
1371
  const de_ConfigurationEventList = (output, context) => {
1655
1372
  const retVal = (output || [])
1656
1373
  .filter((e) => e != null)
1657
1374
  .map((entry) => {
1658
- if (entry === null) {
1659
- return null;
1660
- }
1661
1375
  return de_ConfigurationEvent(entry, context);
1662
1376
  });
1663
1377
  return retVal;
1664
1378
  };
1665
- const de_CreateApplicationResponse = (output, context) => {
1666
- return {
1667
- ApplicationInfo: output.ApplicationInfo != null ? de_ApplicationInfo(output.ApplicationInfo, context) : undefined,
1668
- };
1669
- };
1670
- const de_CreateComponentResponse = (output, context) => {
1671
- return {};
1672
- };
1673
- const de_CreateLogPatternResponse = (output, context) => {
1674
- return {
1675
- LogPattern: output.LogPattern != null ? de_LogPattern(output.LogPattern, context) : undefined,
1676
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1677
- };
1678
- };
1679
- const de_DeleteApplicationResponse = (output, context) => {
1680
- return {};
1681
- };
1682
- const de_DeleteComponentResponse = (output, context) => {
1683
- return {};
1684
- };
1685
- const de_DeleteLogPatternResponse = (output, context) => {
1686
- return {};
1687
- };
1688
- const de_DescribeApplicationResponse = (output, context) => {
1689
- return {
1690
- ApplicationInfo: output.ApplicationInfo != null ? de_ApplicationInfo(output.ApplicationInfo, context) : undefined,
1691
- };
1692
- };
1693
- const de_DescribeComponentConfigurationRecommendationResponse = (output, context) => {
1694
- return {
1695
- ComponentConfiguration: (0, smithy_client_1.expectString)(output.ComponentConfiguration),
1696
- };
1697
- };
1698
- const de_DescribeComponentConfigurationResponse = (output, context) => {
1699
- return {
1700
- ComponentConfiguration: (0, smithy_client_1.expectString)(output.ComponentConfiguration),
1701
- Monitor: (0, smithy_client_1.expectBoolean)(output.Monitor),
1702
- Tier: (0, smithy_client_1.expectString)(output.Tier),
1703
- };
1704
- };
1705
- const de_DescribeComponentResponse = (output, context) => {
1706
- return {
1707
- ApplicationComponent: output.ApplicationComponent != null ? de_ApplicationComponent(output.ApplicationComponent, context) : undefined,
1708
- ResourceList: output.ResourceList != null ? de_ResourceList(output.ResourceList, context) : undefined,
1709
- };
1710
- };
1711
- const de_DescribeLogPatternResponse = (output, context) => {
1712
- return {
1713
- LogPattern: output.LogPattern != null ? de_LogPattern(output.LogPattern, context) : undefined,
1714
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1715
- };
1716
- };
1717
1379
  const de_DescribeObservationResponse = (output, context) => {
1718
- return {
1719
- Observation: output.Observation != null ? de_Observation(output.Observation, context) : undefined,
1720
- };
1380
+ return (0, smithy_client_1.take)(output, {
1381
+ Observation: (_) => de_Observation(_, context),
1382
+ });
1721
1383
  };
1722
1384
  const de_DescribeProblemObservationsResponse = (output, context) => {
1723
- return {
1724
- RelatedObservations: output.RelatedObservations != null ? de_RelatedObservations(output.RelatedObservations, context) : undefined,
1725
- };
1385
+ return (0, smithy_client_1.take)(output, {
1386
+ RelatedObservations: (_) => de_RelatedObservations(_, context),
1387
+ });
1726
1388
  };
1727
1389
  const de_DescribeProblemResponse = (output, context) => {
1728
- return {
1729
- Problem: output.Problem != null ? de_Problem(output.Problem, context) : undefined,
1730
- };
1731
- };
1732
- const de_DetectedWorkload = (output, context) => {
1733
- return Object.entries(output).reduce((acc, [key, value]) => {
1734
- if (value === null) {
1735
- return acc;
1736
- }
1737
- acc[key] = de_WorkloadMetaData(value, context);
1738
- return acc;
1739
- }, {});
1740
- };
1741
- const de_Feedback = (output, context) => {
1742
- return Object.entries(output).reduce((acc, [key, value]) => {
1743
- if (value === null) {
1744
- return acc;
1745
- }
1746
- acc[key] = (0, smithy_client_1.expectString)(value);
1747
- return acc;
1748
- }, {});
1749
- };
1750
- const de_InternalServerException = (output, context) => {
1751
- return {
1752
- Message: (0, smithy_client_1.expectString)(output.Message),
1753
- };
1754
- };
1755
- const de_ListApplicationsResponse = (output, context) => {
1756
- return {
1757
- ApplicationInfoList: output.ApplicationInfoList != null ? de_ApplicationInfoList(output.ApplicationInfoList, context) : undefined,
1758
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1759
- };
1760
- };
1761
- const de_ListComponentsResponse = (output, context) => {
1762
- return {
1763
- ApplicationComponentList: output.ApplicationComponentList != null
1764
- ? de_ApplicationComponentList(output.ApplicationComponentList, context)
1765
- : undefined,
1766
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1767
- };
1390
+ return (0, smithy_client_1.take)(output, {
1391
+ Problem: (_) => de_Problem(_, context),
1392
+ });
1768
1393
  };
1769
1394
  const de_ListConfigurationHistoryResponse = (output, context) => {
1770
- return {
1771
- EventList: output.EventList != null ? de_ConfigurationEventList(output.EventList, context) : undefined,
1772
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1773
- };
1774
- };
1775
- const de_ListLogPatternSetsResponse = (output, context) => {
1776
- return {
1777
- LogPatternSets: output.LogPatternSets != null ? de_LogPatternSetList(output.LogPatternSets, context) : undefined,
1778
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1779
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1780
- };
1781
- };
1782
- const de_ListLogPatternsResponse = (output, context) => {
1783
- return {
1784
- LogPatterns: output.LogPatterns != null ? de_LogPatternList(output.LogPatterns, context) : undefined,
1785
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1786
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1787
- };
1788
- };
1789
- const de_ListProblemsResponse = (output, context) => {
1790
- return {
1791
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1792
- ProblemList: output.ProblemList != null ? de_ProblemList(output.ProblemList, context) : undefined,
1793
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1794
- };
1795
- };
1796
- const de_ListTagsForResourceResponse = (output, context) => {
1797
- return {
1798
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
1799
- };
1800
- };
1801
- const de_LogPattern = (output, context) => {
1802
- return {
1803
- Pattern: (0, smithy_client_1.expectString)(output.Pattern),
1804
- PatternName: (0, smithy_client_1.expectString)(output.PatternName),
1805
- PatternSetName: (0, smithy_client_1.expectString)(output.PatternSetName),
1806
- Rank: (0, smithy_client_1.expectInt32)(output.Rank),
1807
- };
1808
- };
1809
- const de_LogPatternList = (output, context) => {
1810
- const retVal = (output || [])
1811
- .filter((e) => e != null)
1812
- .map((entry) => {
1813
- if (entry === null) {
1814
- return null;
1815
- }
1816
- return de_LogPattern(entry, context);
1395
+ return (0, smithy_client_1.take)(output, {
1396
+ EventList: (_) => de_ConfigurationEventList(_, context),
1397
+ NextToken: smithy_client_1.expectString,
1817
1398
  });
1818
- return retVal;
1819
1399
  };
1820
- const de_LogPatternSetList = (output, context) => {
1821
- const retVal = (output || [])
1822
- .filter((e) => e != null)
1823
- .map((entry) => {
1824
- if (entry === null) {
1825
- return null;
1826
- }
1827
- return (0, smithy_client_1.expectString)(entry);
1400
+ const de_ListProblemsResponse = (output, context) => {
1401
+ return (0, smithy_client_1.take)(output, {
1402
+ NextToken: smithy_client_1.expectString,
1403
+ ProblemList: (_) => de_ProblemList(_, context),
1404
+ ResourceGroupName: smithy_client_1.expectString,
1828
1405
  });
1829
- return retVal;
1830
1406
  };
1831
1407
  const de_Observation = (output, context) => {
1832
- return {
1833
- CloudWatchEventDetailType: (0, smithy_client_1.expectString)(output.CloudWatchEventDetailType),
1834
- CloudWatchEventId: (0, smithy_client_1.expectString)(output.CloudWatchEventId),
1835
- CloudWatchEventSource: (0, smithy_client_1.expectString)(output.CloudWatchEventSource),
1836
- CodeDeployApplication: (0, smithy_client_1.expectString)(output.CodeDeployApplication),
1837
- CodeDeployDeploymentGroup: (0, smithy_client_1.expectString)(output.CodeDeployDeploymentGroup),
1838
- CodeDeployDeploymentId: (0, smithy_client_1.expectString)(output.CodeDeployDeploymentId),
1839
- CodeDeployInstanceGroupId: (0, smithy_client_1.expectString)(output.CodeDeployInstanceGroupId),
1840
- CodeDeployState: (0, smithy_client_1.expectString)(output.CodeDeployState),
1841
- EbsCause: (0, smithy_client_1.expectString)(output.EbsCause),
1842
- EbsEvent: (0, smithy_client_1.expectString)(output.EbsEvent),
1843
- EbsRequestId: (0, smithy_client_1.expectString)(output.EbsRequestId),
1844
- EbsResult: (0, smithy_client_1.expectString)(output.EbsResult),
1845
- Ec2State: (0, smithy_client_1.expectString)(output.Ec2State),
1846
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
1847
- HealthEventArn: (0, smithy_client_1.expectString)(output.HealthEventArn),
1848
- HealthEventDescription: (0, smithy_client_1.expectString)(output.HealthEventDescription),
1849
- HealthEventTypeCategory: (0, smithy_client_1.expectString)(output.HealthEventTypeCategory),
1850
- HealthEventTypeCode: (0, smithy_client_1.expectString)(output.HealthEventTypeCode),
1851
- HealthService: (0, smithy_client_1.expectString)(output.HealthService),
1852
- Id: (0, smithy_client_1.expectString)(output.Id),
1853
- LineTime: output.LineTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LineTime))) : undefined,
1854
- LogFilter: (0, smithy_client_1.expectString)(output.LogFilter),
1855
- LogGroup: (0, smithy_client_1.expectString)(output.LogGroup),
1856
- LogText: (0, smithy_client_1.expectString)(output.LogText),
1857
- MetricName: (0, smithy_client_1.expectString)(output.MetricName),
1858
- MetricNamespace: (0, smithy_client_1.expectString)(output.MetricNamespace),
1859
- RdsEventCategories: (0, smithy_client_1.expectString)(output.RdsEventCategories),
1860
- RdsEventMessage: (0, smithy_client_1.expectString)(output.RdsEventMessage),
1861
- S3EventName: (0, smithy_client_1.expectString)(output.S3EventName),
1862
- SourceARN: (0, smithy_client_1.expectString)(output.SourceARN),
1863
- SourceType: (0, smithy_client_1.expectString)(output.SourceType),
1864
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
1865
- StatesArn: (0, smithy_client_1.expectString)(output.StatesArn),
1866
- StatesExecutionArn: (0, smithy_client_1.expectString)(output.StatesExecutionArn),
1867
- StatesInput: (0, smithy_client_1.expectString)(output.StatesInput),
1868
- StatesStatus: (0, smithy_client_1.expectString)(output.StatesStatus),
1869
- Unit: (0, smithy_client_1.expectString)(output.Unit),
1870
- Value: (0, smithy_client_1.limitedParseDouble)(output.Value),
1871
- XRayErrorPercent: (0, smithy_client_1.expectInt32)(output.XRayErrorPercent),
1872
- XRayFaultPercent: (0, smithy_client_1.expectInt32)(output.XRayFaultPercent),
1873
- XRayNodeName: (0, smithy_client_1.expectString)(output.XRayNodeName),
1874
- XRayNodeType: (0, smithy_client_1.expectString)(output.XRayNodeType),
1875
- XRayRequestAverageLatency: (0, smithy_client_1.expectLong)(output.XRayRequestAverageLatency),
1876
- XRayRequestCount: (0, smithy_client_1.expectInt32)(output.XRayRequestCount),
1877
- XRayThrottlePercent: (0, smithy_client_1.expectInt32)(output.XRayThrottlePercent),
1878
- };
1408
+ return (0, smithy_client_1.take)(output, {
1409
+ CloudWatchEventDetailType: smithy_client_1.expectString,
1410
+ CloudWatchEventId: smithy_client_1.expectString,
1411
+ CloudWatchEventSource: smithy_client_1.expectString,
1412
+ CodeDeployApplication: smithy_client_1.expectString,
1413
+ CodeDeployDeploymentGroup: smithy_client_1.expectString,
1414
+ CodeDeployDeploymentId: smithy_client_1.expectString,
1415
+ CodeDeployInstanceGroupId: smithy_client_1.expectString,
1416
+ CodeDeployState: smithy_client_1.expectString,
1417
+ EbsCause: smithy_client_1.expectString,
1418
+ EbsEvent: smithy_client_1.expectString,
1419
+ EbsRequestId: smithy_client_1.expectString,
1420
+ EbsResult: smithy_client_1.expectString,
1421
+ Ec2State: smithy_client_1.expectString,
1422
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1423
+ HealthEventArn: smithy_client_1.expectString,
1424
+ HealthEventDescription: smithy_client_1.expectString,
1425
+ HealthEventTypeCategory: smithy_client_1.expectString,
1426
+ HealthEventTypeCode: smithy_client_1.expectString,
1427
+ HealthService: smithy_client_1.expectString,
1428
+ Id: smithy_client_1.expectString,
1429
+ LineTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1430
+ LogFilter: smithy_client_1.expectString,
1431
+ LogGroup: smithy_client_1.expectString,
1432
+ LogText: smithy_client_1.expectString,
1433
+ MetricName: smithy_client_1.expectString,
1434
+ MetricNamespace: smithy_client_1.expectString,
1435
+ RdsEventCategories: smithy_client_1.expectString,
1436
+ RdsEventMessage: smithy_client_1.expectString,
1437
+ S3EventName: smithy_client_1.expectString,
1438
+ SourceARN: smithy_client_1.expectString,
1439
+ SourceType: smithy_client_1.expectString,
1440
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1441
+ StatesArn: smithy_client_1.expectString,
1442
+ StatesExecutionArn: smithy_client_1.expectString,
1443
+ StatesInput: smithy_client_1.expectString,
1444
+ StatesStatus: smithy_client_1.expectString,
1445
+ Unit: smithy_client_1.expectString,
1446
+ Value: smithy_client_1.limitedParseDouble,
1447
+ XRayErrorPercent: smithy_client_1.expectInt32,
1448
+ XRayFaultPercent: smithy_client_1.expectInt32,
1449
+ XRayNodeName: smithy_client_1.expectString,
1450
+ XRayNodeType: smithy_client_1.expectString,
1451
+ XRayRequestAverageLatency: smithy_client_1.expectLong,
1452
+ XRayRequestCount: smithy_client_1.expectInt32,
1453
+ XRayThrottlePercent: smithy_client_1.expectInt32,
1454
+ });
1879
1455
  };
1880
1456
  const de_ObservationList = (output, context) => {
1881
1457
  const retVal = (output || [])
1882
1458
  .filter((e) => e != null)
1883
1459
  .map((entry) => {
1884
- if (entry === null) {
1885
- return null;
1886
- }
1887
1460
  return de_Observation(entry, context);
1888
1461
  });
1889
1462
  return retVal;
1890
1463
  };
1891
1464
  const de_Problem = (output, context) => {
1892
- return {
1893
- AffectedResource: (0, smithy_client_1.expectString)(output.AffectedResource),
1894
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
1895
- Feedback: output.Feedback != null ? de_Feedback(output.Feedback, context) : undefined,
1896
- Id: (0, smithy_client_1.expectString)(output.Id),
1897
- Insights: (0, smithy_client_1.expectString)(output.Insights),
1898
- LastRecurrenceTime: output.LastRecurrenceTime != null
1899
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRecurrenceTime)))
1900
- : undefined,
1901
- RecurringCount: (0, smithy_client_1.expectLong)(output.RecurringCount),
1902
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1903
- SeverityLevel: (0, smithy_client_1.expectString)(output.SeverityLevel),
1904
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
1905
- Status: (0, smithy_client_1.expectString)(output.Status),
1906
- Title: (0, smithy_client_1.expectString)(output.Title),
1907
- };
1465
+ return (0, smithy_client_1.take)(output, {
1466
+ AffectedResource: smithy_client_1.expectString,
1467
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1468
+ Feedback: smithy_client_1._json,
1469
+ Id: smithy_client_1.expectString,
1470
+ Insights: smithy_client_1.expectString,
1471
+ LastRecurrenceTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1472
+ RecurringCount: smithy_client_1.expectLong,
1473
+ ResourceGroupName: smithy_client_1.expectString,
1474
+ SeverityLevel: smithy_client_1.expectString,
1475
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1476
+ Status: smithy_client_1.expectString,
1477
+ Title: smithy_client_1.expectString,
1478
+ });
1908
1479
  };
1909
1480
  const de_ProblemList = (output, context) => {
1910
1481
  const retVal = (output || [])
1911
1482
  .filter((e) => e != null)
1912
1483
  .map((entry) => {
1913
- if (entry === null) {
1914
- return null;
1915
- }
1916
1484
  return de_Problem(entry, context);
1917
1485
  });
1918
1486
  return retVal;
1919
1487
  };
1920
1488
  const de_RelatedObservations = (output, context) => {
1921
- return {
1922
- ObservationList: output.ObservationList != null ? de_ObservationList(output.ObservationList, context) : undefined,
1923
- };
1924
- };
1925
- const de_ResourceInUseException = (output, context) => {
1926
- return {
1927
- Message: (0, smithy_client_1.expectString)(output.Message),
1928
- };
1929
- };
1930
- const de_ResourceList = (output, context) => {
1931
- const retVal = (output || [])
1932
- .filter((e) => e != null)
1933
- .map((entry) => {
1934
- if (entry === null) {
1935
- return null;
1936
- }
1937
- return (0, smithy_client_1.expectString)(entry);
1489
+ return (0, smithy_client_1.take)(output, {
1490
+ ObservationList: (_) => de_ObservationList(_, context),
1938
1491
  });
1939
- return retVal;
1940
- };
1941
- const de_ResourceNotFoundException = (output, context) => {
1942
- return {
1943
- Message: (0, smithy_client_1.expectString)(output.Message),
1944
- };
1945
- };
1946
- const de_Tag = (output, context) => {
1947
- return {
1948
- Key: (0, smithy_client_1.expectString)(output.Key),
1949
- Value: (0, smithy_client_1.expectString)(output.Value),
1950
- };
1951
- };
1952
- const de_TagList = (output, context) => {
1953
- const retVal = (output || [])
1954
- .filter((e) => e != null)
1955
- .map((entry) => {
1956
- if (entry === null) {
1957
- return null;
1958
- }
1959
- return de_Tag(entry, context);
1960
- });
1961
- return retVal;
1962
- };
1963
- const de_TagResourceResponse = (output, context) => {
1964
- return {};
1965
- };
1966
- const de_TagsAlreadyExistException = (output, context) => {
1967
- return {
1968
- Message: (0, smithy_client_1.expectString)(output.Message),
1969
- };
1970
- };
1971
- const de_TooManyTagsException = (output, context) => {
1972
- return {
1973
- Message: (0, smithy_client_1.expectString)(output.Message),
1974
- ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
1975
- };
1976
- };
1977
- const de_UntagResourceResponse = (output, context) => {
1978
- return {};
1979
- };
1980
- const de_UpdateApplicationResponse = (output, context) => {
1981
- return {
1982
- ApplicationInfo: output.ApplicationInfo != null ? de_ApplicationInfo(output.ApplicationInfo, context) : undefined,
1983
- };
1984
- };
1985
- const de_UpdateComponentConfigurationResponse = (output, context) => {
1986
- return {};
1987
- };
1988
- const de_UpdateComponentResponse = (output, context) => {
1989
- return {};
1990
- };
1991
- const de_UpdateLogPatternResponse = (output, context) => {
1992
- return {
1993
- LogPattern: output.LogPattern != null ? de_LogPattern(output.LogPattern, context) : undefined,
1994
- ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1995
- };
1996
- };
1997
- const de_ValidationException = (output, context) => {
1998
- return {
1999
- Message: (0, smithy_client_1.expectString)(output.Message),
2000
- };
2001
- };
2002
- const de_WorkloadMetaData = (output, context) => {
2003
- return Object.entries(output).reduce((acc, [key, value]) => {
2004
- if (value === null) {
2005
- return acc;
2006
- }
2007
- acc[key] = (0, smithy_client_1.expectString)(value);
2008
- return acc;
2009
- }, {});
2010
1492
  };
2011
1493
  const deserializeMetadata = (output) => ({
2012
1494
  httpStatusCode: output.statusCode,
@@ -2021,6 +1503,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2021
1503
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2022
1504
  };
2023
1505
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1506
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationInsightsServiceException_1.ApplicationInsightsServiceException);
2024
1507
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2025
1508
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2026
1509
  const contents = {