@aws-sdk/client-application-discovery-service 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.
@@ -1,90 +1,90 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ApplicationDiscoveryServiceServiceException as __BaseException } from "../models/ApplicationDiscoveryServiceServiceException";
5
5
  import { AuthorizationErrorException, ConflictErrorException, HomeRegionNotSetException, InvalidParameterException, InvalidParameterValueException, OperationNotPermittedException, ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, } from "../models/models_0";
6
6
  export const se_AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
8
8
  let body;
9
- body = JSON.stringify(se_AssociateConfigurationItemsToApplicationRequest(input, context));
9
+ body = JSON.stringify(_json(input));
10
10
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
11
  };
12
12
  export const se_BatchDeleteImportDataCommand = async (input, context) => {
13
13
  const headers = sharedHeaders("BatchDeleteImportData");
14
14
  let body;
15
- body = JSON.stringify(se_BatchDeleteImportDataRequest(input, context));
15
+ body = JSON.stringify(_json(input));
16
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
17
  };
18
18
  export const se_CreateApplicationCommand = async (input, context) => {
19
19
  const headers = sharedHeaders("CreateApplication");
20
20
  let body;
21
- body = JSON.stringify(se_CreateApplicationRequest(input, context));
21
+ body = JSON.stringify(_json(input));
22
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
23
  };
24
24
  export const se_CreateTagsCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("CreateTags");
26
26
  let body;
27
- body = JSON.stringify(se_CreateTagsRequest(input, context));
27
+ body = JSON.stringify(_json(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  export const se_DeleteApplicationsCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("DeleteApplications");
32
32
  let body;
33
- body = JSON.stringify(se_DeleteApplicationsRequest(input, context));
33
+ body = JSON.stringify(_json(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  export const se_DeleteTagsCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DeleteTags");
38
38
  let body;
39
- body = JSON.stringify(se_DeleteTagsRequest(input, context));
39
+ body = JSON.stringify(_json(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  export const se_DescribeAgentsCommand = async (input, context) => {
43
43
  const headers = sharedHeaders("DescribeAgents");
44
44
  let body;
45
- body = JSON.stringify(se_DescribeAgentsRequest(input, context));
45
+ body = JSON.stringify(_json(input));
46
46
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
47
  };
48
48
  export const se_DescribeConfigurationsCommand = async (input, context) => {
49
49
  const headers = sharedHeaders("DescribeConfigurations");
50
50
  let body;
51
- body = JSON.stringify(se_DescribeConfigurationsRequest(input, context));
51
+ body = JSON.stringify(_json(input));
52
52
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
53
  };
54
54
  export const se_DescribeContinuousExportsCommand = async (input, context) => {
55
55
  const headers = sharedHeaders("DescribeContinuousExports");
56
56
  let body;
57
- body = JSON.stringify(se_DescribeContinuousExportsRequest(input, context));
57
+ body = JSON.stringify(_json(input));
58
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
59
  };
60
60
  export const se_DescribeExportConfigurationsCommand = async (input, context) => {
61
61
  const headers = sharedHeaders("DescribeExportConfigurations");
62
62
  let body;
63
- body = JSON.stringify(se_DescribeExportConfigurationsRequest(input, context));
63
+ body = JSON.stringify(_json(input));
64
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
65
  };
66
66
  export const se_DescribeExportTasksCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("DescribeExportTasks");
68
68
  let body;
69
- body = JSON.stringify(se_DescribeExportTasksRequest(input, context));
69
+ body = JSON.stringify(_json(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  export const se_DescribeImportTasksCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DescribeImportTasks");
74
74
  let body;
75
- body = JSON.stringify(se_DescribeImportTasksRequest(input, context));
75
+ body = JSON.stringify(_json(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  export const se_DescribeTagsCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("DescribeTags");
80
80
  let body;
81
- body = JSON.stringify(se_DescribeTagsRequest(input, context));
81
+ body = JSON.stringify(_json(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  export const se_DisassociateConfigurationItemsFromApplicationCommand = async (input, context) => {
85
85
  const headers = sharedHeaders("DisassociateConfigurationItemsFromApplication");
86
86
  let body;
87
- body = JSON.stringify(se_DisassociateConfigurationItemsFromApplicationRequest(input, context));
87
+ body = JSON.stringify(_json(input));
88
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
89
  };
90
90
  export const se_ExportConfigurationsCommand = async (input, context) => {
@@ -95,31 +95,31 @@ export const se_ExportConfigurationsCommand = async (input, context) => {
95
95
  export const se_GetDiscoverySummaryCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("GetDiscoverySummary");
97
97
  let body;
98
- body = JSON.stringify(se_GetDiscoverySummaryRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_ListConfigurationsCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("ListConfigurations");
103
103
  let body;
104
- body = JSON.stringify(se_ListConfigurationsRequest(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_ListServerNeighborsCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("ListServerNeighbors");
109
109
  let body;
110
- body = JSON.stringify(se_ListServerNeighborsRequest(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_StartContinuousExportCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("StartContinuousExport");
115
115
  let body;
116
- body = JSON.stringify(se_StartContinuousExportRequest(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_StartDataCollectionByAgentIdsCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("StartDataCollectionByAgentIds");
121
121
  let body;
122
- body = JSON.stringify(se_StartDataCollectionByAgentIdsRequest(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_StartExportTaskCommand = async (input, context) => {
@@ -137,19 +137,19 @@ export const se_StartImportTaskCommand = async (input, context) => {
137
137
  export const se_StopContinuousExportCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("StopContinuousExport");
139
139
  let body;
140
- body = JSON.stringify(se_StopContinuousExportRequest(input, context));
140
+ body = JSON.stringify(_json(input));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_StopDataCollectionByAgentIdsCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("StopDataCollectionByAgentIds");
145
145
  let body;
146
- body = JSON.stringify(se_StopDataCollectionByAgentIdsRequest(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_UpdateApplicationCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("UpdateApplication");
151
151
  let body;
152
- body = JSON.stringify(se_UpdateApplicationRequest(input, context));
152
+ body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  export const de_AssociateConfigurationItemsToApplicationCommand = async (output, context) => {
@@ -158,12 +158,12 @@ export const de_AssociateConfigurationItemsToApplicationCommand = async (output,
158
158
  }
159
159
  const data = await parseBody(output.body, context);
160
160
  let contents = {};
161
- contents = de_AssociateConfigurationItemsToApplicationResponse(data, context);
161
+ contents = _json(data);
162
162
  const response = {
163
163
  $metadata: deserializeMetadata(output),
164
164
  ...contents,
165
165
  };
166
- return Promise.resolve(response);
166
+ return response;
167
167
  };
168
168
  const de_AssociateConfigurationItemsToApplicationCommandError = async (output, context) => {
169
169
  const parsedOutput = {
@@ -189,10 +189,9 @@ const de_AssociateConfigurationItemsToApplicationCommandError = async (output, c
189
189
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
190
190
  default:
191
191
  const parsedBody = parsedOutput.body;
192
- throwDefaultError({
192
+ return throwDefaultError({
193
193
  output,
194
194
  parsedBody,
195
- exceptionCtor: __BaseException,
196
195
  errorCode,
197
196
  });
198
197
  }
@@ -203,12 +202,12 @@ export const de_BatchDeleteImportDataCommand = async (output, context) => {
203
202
  }
204
203
  const data = await parseBody(output.body, context);
205
204
  let contents = {};
206
- contents = de_BatchDeleteImportDataResponse(data, context);
205
+ contents = _json(data);
207
206
  const response = {
208
207
  $metadata: deserializeMetadata(output),
209
208
  ...contents,
210
209
  };
211
- return Promise.resolve(response);
210
+ return response;
212
211
  };
213
212
  const de_BatchDeleteImportDataCommandError = async (output, context) => {
214
213
  const parsedOutput = {
@@ -234,10 +233,9 @@ const de_BatchDeleteImportDataCommandError = async (output, context) => {
234
233
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
235
234
  default:
236
235
  const parsedBody = parsedOutput.body;
237
- throwDefaultError({
236
+ return throwDefaultError({
238
237
  output,
239
238
  parsedBody,
240
- exceptionCtor: __BaseException,
241
239
  errorCode,
242
240
  });
243
241
  }
@@ -248,12 +246,12 @@ export const de_CreateApplicationCommand = async (output, context) => {
248
246
  }
249
247
  const data = await parseBody(output.body, context);
250
248
  let contents = {};
251
- contents = de_CreateApplicationResponse(data, context);
249
+ contents = _json(data);
252
250
  const response = {
253
251
  $metadata: deserializeMetadata(output),
254
252
  ...contents,
255
253
  };
256
- return Promise.resolve(response);
254
+ return response;
257
255
  };
258
256
  const de_CreateApplicationCommandError = async (output, context) => {
259
257
  const parsedOutput = {
@@ -279,10 +277,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
279
277
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
280
278
  default:
281
279
  const parsedBody = parsedOutput.body;
282
- throwDefaultError({
280
+ return throwDefaultError({
283
281
  output,
284
282
  parsedBody,
285
- exceptionCtor: __BaseException,
286
283
  errorCode,
287
284
  });
288
285
  }
@@ -293,12 +290,12 @@ export const de_CreateTagsCommand = async (output, context) => {
293
290
  }
294
291
  const data = await parseBody(output.body, context);
295
292
  let contents = {};
296
- contents = de_CreateTagsResponse(data, context);
293
+ contents = _json(data);
297
294
  const response = {
298
295
  $metadata: deserializeMetadata(output),
299
296
  ...contents,
300
297
  };
301
- return Promise.resolve(response);
298
+ return response;
302
299
  };
303
300
  const de_CreateTagsCommandError = async (output, context) => {
304
301
  const parsedOutput = {
@@ -327,10 +324,9 @@ const de_CreateTagsCommandError = async (output, context) => {
327
324
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
328
325
  default:
329
326
  const parsedBody = parsedOutput.body;
330
- throwDefaultError({
327
+ return throwDefaultError({
331
328
  output,
332
329
  parsedBody,
333
- exceptionCtor: __BaseException,
334
330
  errorCode,
335
331
  });
336
332
  }
@@ -341,12 +337,12 @@ export const de_DeleteApplicationsCommand = async (output, context) => {
341
337
  }
342
338
  const data = await parseBody(output.body, context);
343
339
  let contents = {};
344
- contents = de_DeleteApplicationsResponse(data, context);
340
+ contents = _json(data);
345
341
  const response = {
346
342
  $metadata: deserializeMetadata(output),
347
343
  ...contents,
348
344
  };
349
- return Promise.resolve(response);
345
+ return response;
350
346
  };
351
347
  const de_DeleteApplicationsCommandError = async (output, context) => {
352
348
  const parsedOutput = {
@@ -372,10 +368,9 @@ const de_DeleteApplicationsCommandError = async (output, context) => {
372
368
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
373
369
  default:
374
370
  const parsedBody = parsedOutput.body;
375
- throwDefaultError({
371
+ return throwDefaultError({
376
372
  output,
377
373
  parsedBody,
378
- exceptionCtor: __BaseException,
379
374
  errorCode,
380
375
  });
381
376
  }
@@ -386,12 +381,12 @@ export const de_DeleteTagsCommand = async (output, context) => {
386
381
  }
387
382
  const data = await parseBody(output.body, context);
388
383
  let contents = {};
389
- contents = de_DeleteTagsResponse(data, context);
384
+ contents = _json(data);
390
385
  const response = {
391
386
  $metadata: deserializeMetadata(output),
392
387
  ...contents,
393
388
  };
394
- return Promise.resolve(response);
389
+ return response;
395
390
  };
396
391
  const de_DeleteTagsCommandError = async (output, context) => {
397
392
  const parsedOutput = {
@@ -420,10 +415,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
420
415
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
421
416
  default:
422
417
  const parsedBody = parsedOutput.body;
423
- throwDefaultError({
418
+ return throwDefaultError({
424
419
  output,
425
420
  parsedBody,
426
- exceptionCtor: __BaseException,
427
421
  errorCode,
428
422
  });
429
423
  }
@@ -434,12 +428,12 @@ export const de_DescribeAgentsCommand = async (output, context) => {
434
428
  }
435
429
  const data = await parseBody(output.body, context);
436
430
  let contents = {};
437
- contents = de_DescribeAgentsResponse(data, context);
431
+ contents = _json(data);
438
432
  const response = {
439
433
  $metadata: deserializeMetadata(output),
440
434
  ...contents,
441
435
  };
442
- return Promise.resolve(response);
436
+ return response;
443
437
  };
444
438
  const de_DescribeAgentsCommandError = async (output, context) => {
445
439
  const parsedOutput = {
@@ -465,10 +459,9 @@ const de_DescribeAgentsCommandError = async (output, context) => {
465
459
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
466
460
  default:
467
461
  const parsedBody = parsedOutput.body;
468
- throwDefaultError({
462
+ return throwDefaultError({
469
463
  output,
470
464
  parsedBody,
471
- exceptionCtor: __BaseException,
472
465
  errorCode,
473
466
  });
474
467
  }
@@ -479,12 +472,12 @@ export const de_DescribeConfigurationsCommand = async (output, context) => {
479
472
  }
480
473
  const data = await parseBody(output.body, context);
481
474
  let contents = {};
482
- contents = de_DescribeConfigurationsResponse(data, context);
475
+ contents = _json(data);
483
476
  const response = {
484
477
  $metadata: deserializeMetadata(output),
485
478
  ...contents,
486
479
  };
487
- return Promise.resolve(response);
480
+ return response;
488
481
  };
489
482
  const de_DescribeConfigurationsCommandError = async (output, context) => {
490
483
  const parsedOutput = {
@@ -510,10 +503,9 @@ const de_DescribeConfigurationsCommandError = async (output, context) => {
510
503
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
511
504
  default:
512
505
  const parsedBody = parsedOutput.body;
513
- throwDefaultError({
506
+ return throwDefaultError({
514
507
  output,
515
508
  parsedBody,
516
- exceptionCtor: __BaseException,
517
509
  errorCode,
518
510
  });
519
511
  }
@@ -529,7 +521,7 @@ export const de_DescribeContinuousExportsCommand = async (output, context) => {
529
521
  $metadata: deserializeMetadata(output),
530
522
  ...contents,
531
523
  };
532
- return Promise.resolve(response);
524
+ return response;
533
525
  };
534
526
  const de_DescribeContinuousExportsCommandError = async (output, context) => {
535
527
  const parsedOutput = {
@@ -561,10 +553,9 @@ const de_DescribeContinuousExportsCommandError = async (output, context) => {
561
553
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
562
554
  default:
563
555
  const parsedBody = parsedOutput.body;
564
- throwDefaultError({
556
+ return throwDefaultError({
565
557
  output,
566
558
  parsedBody,
567
- exceptionCtor: __BaseException,
568
559
  errorCode,
569
560
  });
570
561
  }
@@ -580,7 +571,7 @@ export const de_DescribeExportConfigurationsCommand = async (output, context) =>
580
571
  $metadata: deserializeMetadata(output),
581
572
  ...contents,
582
573
  };
583
- return Promise.resolve(response);
574
+ return response;
584
575
  };
585
576
  const de_DescribeExportConfigurationsCommandError = async (output, context) => {
586
577
  const parsedOutput = {
@@ -609,10 +600,9 @@ const de_DescribeExportConfigurationsCommandError = async (output, context) => {
609
600
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
610
601
  default:
611
602
  const parsedBody = parsedOutput.body;
612
- throwDefaultError({
603
+ return throwDefaultError({
613
604
  output,
614
605
  parsedBody,
615
- exceptionCtor: __BaseException,
616
606
  errorCode,
617
607
  });
618
608
  }
@@ -628,7 +618,7 @@ export const de_DescribeExportTasksCommand = async (output, context) => {
628
618
  $metadata: deserializeMetadata(output),
629
619
  ...contents,
630
620
  };
631
- return Promise.resolve(response);
621
+ return response;
632
622
  };
633
623
  const de_DescribeExportTasksCommandError = async (output, context) => {
634
624
  const parsedOutput = {
@@ -654,10 +644,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
654
644
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
655
645
  default:
656
646
  const parsedBody = parsedOutput.body;
657
- throwDefaultError({
647
+ return throwDefaultError({
658
648
  output,
659
649
  parsedBody,
660
- exceptionCtor: __BaseException,
661
650
  errorCode,
662
651
  });
663
652
  }
@@ -673,7 +662,7 @@ export const de_DescribeImportTasksCommand = async (output, context) => {
673
662
  $metadata: deserializeMetadata(output),
674
663
  ...contents,
675
664
  };
676
- return Promise.resolve(response);
665
+ return response;
677
666
  };
678
667
  const de_DescribeImportTasksCommandError = async (output, context) => {
679
668
  const parsedOutput = {
@@ -699,10 +688,9 @@ const de_DescribeImportTasksCommandError = async (output, context) => {
699
688
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
700
689
  default:
701
690
  const parsedBody = parsedOutput.body;
702
- throwDefaultError({
691
+ return throwDefaultError({
703
692
  output,
704
693
  parsedBody,
705
- exceptionCtor: __BaseException,
706
694
  errorCode,
707
695
  });
708
696
  }
@@ -718,7 +706,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
718
706
  $metadata: deserializeMetadata(output),
719
707
  ...contents,
720
708
  };
721
- return Promise.resolve(response);
709
+ return response;
722
710
  };
723
711
  const de_DescribeTagsCommandError = async (output, context) => {
724
712
  const parsedOutput = {
@@ -747,10 +735,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
747
735
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
748
736
  default:
749
737
  const parsedBody = parsedOutput.body;
750
- throwDefaultError({
738
+ return throwDefaultError({
751
739
  output,
752
740
  parsedBody,
753
- exceptionCtor: __BaseException,
754
741
  errorCode,
755
742
  });
756
743
  }
@@ -761,12 +748,12 @@ export const de_DisassociateConfigurationItemsFromApplicationCommand = async (ou
761
748
  }
762
749
  const data = await parseBody(output.body, context);
763
750
  let contents = {};
764
- contents = de_DisassociateConfigurationItemsFromApplicationResponse(data, context);
751
+ contents = _json(data);
765
752
  const response = {
766
753
  $metadata: deserializeMetadata(output),
767
754
  ...contents,
768
755
  };
769
- return Promise.resolve(response);
756
+ return response;
770
757
  };
771
758
  const de_DisassociateConfigurationItemsFromApplicationCommandError = async (output, context) => {
772
759
  const parsedOutput = {
@@ -792,10 +779,9 @@ const de_DisassociateConfigurationItemsFromApplicationCommandError = async (outp
792
779
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
793
780
  default:
794
781
  const parsedBody = parsedOutput.body;
795
- throwDefaultError({
782
+ return throwDefaultError({
796
783
  output,
797
784
  parsedBody,
798
- exceptionCtor: __BaseException,
799
785
  errorCode,
800
786
  });
801
787
  }
@@ -806,12 +792,12 @@ export const de_ExportConfigurationsCommand = async (output, context) => {
806
792
  }
807
793
  const data = await parseBody(output.body, context);
808
794
  let contents = {};
809
- contents = de_ExportConfigurationsResponse(data, context);
795
+ contents = _json(data);
810
796
  const response = {
811
797
  $metadata: deserializeMetadata(output),
812
798
  ...contents,
813
799
  };
814
- return Promise.resolve(response);
800
+ return response;
815
801
  };
816
802
  const de_ExportConfigurationsCommandError = async (output, context) => {
817
803
  const parsedOutput = {
@@ -840,10 +826,9 @@ const de_ExportConfigurationsCommandError = async (output, context) => {
840
826
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
841
827
  default:
842
828
  const parsedBody = parsedOutput.body;
843
- throwDefaultError({
829
+ return throwDefaultError({
844
830
  output,
845
831
  parsedBody,
846
- exceptionCtor: __BaseException,
847
832
  errorCode,
848
833
  });
849
834
  }
@@ -854,12 +839,12 @@ export const de_GetDiscoverySummaryCommand = async (output, context) => {
854
839
  }
855
840
  const data = await parseBody(output.body, context);
856
841
  let contents = {};
857
- contents = de_GetDiscoverySummaryResponse(data, context);
842
+ contents = _json(data);
858
843
  const response = {
859
844
  $metadata: deserializeMetadata(output),
860
845
  ...contents,
861
846
  };
862
- return Promise.resolve(response);
847
+ return response;
863
848
  };
864
849
  const de_GetDiscoverySummaryCommandError = async (output, context) => {
865
850
  const parsedOutput = {
@@ -885,10 +870,9 @@ const de_GetDiscoverySummaryCommandError = async (output, context) => {
885
870
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
886
871
  default:
887
872
  const parsedBody = parsedOutput.body;
888
- throwDefaultError({
873
+ return throwDefaultError({
889
874
  output,
890
875
  parsedBody,
891
- exceptionCtor: __BaseException,
892
876
  errorCode,
893
877
  });
894
878
  }
@@ -899,12 +883,12 @@ export const de_ListConfigurationsCommand = async (output, context) => {
899
883
  }
900
884
  const data = await parseBody(output.body, context);
901
885
  let contents = {};
902
- contents = de_ListConfigurationsResponse(data, context);
886
+ contents = _json(data);
903
887
  const response = {
904
888
  $metadata: deserializeMetadata(output),
905
889
  ...contents,
906
890
  };
907
- return Promise.resolve(response);
891
+ return response;
908
892
  };
909
893
  const de_ListConfigurationsCommandError = async (output, context) => {
910
894
  const parsedOutput = {
@@ -933,10 +917,9 @@ const de_ListConfigurationsCommandError = async (output, context) => {
933
917
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
934
918
  default:
935
919
  const parsedBody = parsedOutput.body;
936
- throwDefaultError({
920
+ return throwDefaultError({
937
921
  output,
938
922
  parsedBody,
939
- exceptionCtor: __BaseException,
940
923
  errorCode,
941
924
  });
942
925
  }
@@ -947,12 +930,12 @@ export const de_ListServerNeighborsCommand = async (output, context) => {
947
930
  }
948
931
  const data = await parseBody(output.body, context);
949
932
  let contents = {};
950
- contents = de_ListServerNeighborsResponse(data, context);
933
+ contents = _json(data);
951
934
  const response = {
952
935
  $metadata: deserializeMetadata(output),
953
936
  ...contents,
954
937
  };
955
- return Promise.resolve(response);
938
+ return response;
956
939
  };
957
940
  const de_ListServerNeighborsCommandError = async (output, context) => {
958
941
  const parsedOutput = {
@@ -978,10 +961,9 @@ const de_ListServerNeighborsCommandError = async (output, context) => {
978
961
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
979
962
  default:
980
963
  const parsedBody = parsedOutput.body;
981
- throwDefaultError({
964
+ return throwDefaultError({
982
965
  output,
983
966
  parsedBody,
984
- exceptionCtor: __BaseException,
985
967
  errorCode,
986
968
  });
987
969
  }
@@ -997,7 +979,7 @@ export const de_StartContinuousExportCommand = async (output, context) => {
997
979
  $metadata: deserializeMetadata(output),
998
980
  ...contents,
999
981
  };
1000
- return Promise.resolve(response);
982
+ return response;
1001
983
  };
1002
984
  const de_StartContinuousExportCommandError = async (output, context) => {
1003
985
  const parsedOutput = {
@@ -1032,10 +1014,9 @@ const de_StartContinuousExportCommandError = async (output, context) => {
1032
1014
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1033
1015
  default:
1034
1016
  const parsedBody = parsedOutput.body;
1035
- throwDefaultError({
1017
+ return throwDefaultError({
1036
1018
  output,
1037
1019
  parsedBody,
1038
- exceptionCtor: __BaseException,
1039
1020
  errorCode,
1040
1021
  });
1041
1022
  }
@@ -1046,12 +1027,12 @@ export const de_StartDataCollectionByAgentIdsCommand = async (output, context) =
1046
1027
  }
1047
1028
  const data = await parseBody(output.body, context);
1048
1029
  let contents = {};
1049
- contents = de_StartDataCollectionByAgentIdsResponse(data, context);
1030
+ contents = _json(data);
1050
1031
  const response = {
1051
1032
  $metadata: deserializeMetadata(output),
1052
1033
  ...contents,
1053
1034
  };
1054
- return Promise.resolve(response);
1035
+ return response;
1055
1036
  };
1056
1037
  const de_StartDataCollectionByAgentIdsCommandError = async (output, context) => {
1057
1038
  const parsedOutput = {
@@ -1077,10 +1058,9 @@ const de_StartDataCollectionByAgentIdsCommandError = async (output, context) =>
1077
1058
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1078
1059
  default:
1079
1060
  const parsedBody = parsedOutput.body;
1080
- throwDefaultError({
1061
+ return throwDefaultError({
1081
1062
  output,
1082
1063
  parsedBody,
1083
- exceptionCtor: __BaseException,
1084
1064
  errorCode,
1085
1065
  });
1086
1066
  }
@@ -1091,12 +1071,12 @@ export const de_StartExportTaskCommand = async (output, context) => {
1091
1071
  }
1092
1072
  const data = await parseBody(output.body, context);
1093
1073
  let contents = {};
1094
- contents = de_StartExportTaskResponse(data, context);
1074
+ contents = _json(data);
1095
1075
  const response = {
1096
1076
  $metadata: deserializeMetadata(output),
1097
1077
  ...contents,
1098
1078
  };
1099
- return Promise.resolve(response);
1079
+ return response;
1100
1080
  };
1101
1081
  const de_StartExportTaskCommandError = async (output, context) => {
1102
1082
  const parsedOutput = {
@@ -1125,10 +1105,9 @@ const de_StartExportTaskCommandError = async (output, context) => {
1125
1105
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1126
1106
  default:
1127
1107
  const parsedBody = parsedOutput.body;
1128
- throwDefaultError({
1108
+ return throwDefaultError({
1129
1109
  output,
1130
1110
  parsedBody,
1131
- exceptionCtor: __BaseException,
1132
1111
  errorCode,
1133
1112
  });
1134
1113
  }
@@ -1144,7 +1123,7 @@ export const de_StartImportTaskCommand = async (output, context) => {
1144
1123
  $metadata: deserializeMetadata(output),
1145
1124
  ...contents,
1146
1125
  };
1147
- return Promise.resolve(response);
1126
+ return response;
1148
1127
  };
1149
1128
  const de_StartImportTaskCommandError = async (output, context) => {
1150
1129
  const parsedOutput = {
@@ -1173,10 +1152,9 @@ const de_StartImportTaskCommandError = async (output, context) => {
1173
1152
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1174
1153
  default:
1175
1154
  const parsedBody = parsedOutput.body;
1176
- throwDefaultError({
1155
+ return throwDefaultError({
1177
1156
  output,
1178
1157
  parsedBody,
1179
- exceptionCtor: __BaseException,
1180
1158
  errorCode,
1181
1159
  });
1182
1160
  }
@@ -1192,7 +1170,7 @@ export const de_StopContinuousExportCommand = async (output, context) => {
1192
1170
  $metadata: deserializeMetadata(output),
1193
1171
  ...contents,
1194
1172
  };
1195
- return Promise.resolve(response);
1173
+ return response;
1196
1174
  };
1197
1175
  const de_StopContinuousExportCommandError = async (output, context) => {
1198
1176
  const parsedOutput = {
@@ -1227,10 +1205,9 @@ const de_StopContinuousExportCommandError = async (output, context) => {
1227
1205
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1228
1206
  default:
1229
1207
  const parsedBody = parsedOutput.body;
1230
- throwDefaultError({
1208
+ return throwDefaultError({
1231
1209
  output,
1232
1210
  parsedBody,
1233
- exceptionCtor: __BaseException,
1234
1211
  errorCode,
1235
1212
  });
1236
1213
  }
@@ -1241,12 +1218,12 @@ export const de_StopDataCollectionByAgentIdsCommand = async (output, context) =>
1241
1218
  }
1242
1219
  const data = await parseBody(output.body, context);
1243
1220
  let contents = {};
1244
- contents = de_StopDataCollectionByAgentIdsResponse(data, context);
1221
+ contents = _json(data);
1245
1222
  const response = {
1246
1223
  $metadata: deserializeMetadata(output),
1247
1224
  ...contents,
1248
1225
  };
1249
- return Promise.resolve(response);
1226
+ return response;
1250
1227
  };
1251
1228
  const de_StopDataCollectionByAgentIdsCommandError = async (output, context) => {
1252
1229
  const parsedOutput = {
@@ -1272,10 +1249,9 @@ const de_StopDataCollectionByAgentIdsCommandError = async (output, context) => {
1272
1249
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1273
1250
  default:
1274
1251
  const parsedBody = parsedOutput.body;
1275
- throwDefaultError({
1252
+ return throwDefaultError({
1276
1253
  output,
1277
1254
  parsedBody,
1278
- exceptionCtor: __BaseException,
1279
1255
  errorCode,
1280
1256
  });
1281
1257
  }
@@ -1286,12 +1262,12 @@ export const de_UpdateApplicationCommand = async (output, context) => {
1286
1262
  }
1287
1263
  const data = await parseBody(output.body, context);
1288
1264
  let contents = {};
1289
- contents = de_UpdateApplicationResponse(data, context);
1265
+ contents = _json(data);
1290
1266
  const response = {
1291
1267
  $metadata: deserializeMetadata(output),
1292
1268
  ...contents,
1293
1269
  };
1294
- return Promise.resolve(response);
1270
+ return response;
1295
1271
  };
1296
1272
  const de_UpdateApplicationCommandError = async (output, context) => {
1297
1273
  const parsedOutput = {
@@ -1317,17 +1293,16 @@ const de_UpdateApplicationCommandError = async (output, context) => {
1317
1293
  throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1318
1294
  default:
1319
1295
  const parsedBody = parsedOutput.body;
1320
- throwDefaultError({
1296
+ return throwDefaultError({
1321
1297
  output,
1322
1298
  parsedBody,
1323
- exceptionCtor: __BaseException,
1324
1299
  errorCode,
1325
1300
  });
1326
1301
  }
1327
1302
  };
1328
1303
  const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
1329
1304
  const body = parsedOutput.body;
1330
- const deserialized = de_AuthorizationErrorException(body, context);
1305
+ const deserialized = _json(body);
1331
1306
  const exception = new AuthorizationErrorException({
1332
1307
  $metadata: deserializeMetadata(parsedOutput),
1333
1308
  ...deserialized,
@@ -1336,7 +1311,7 @@ const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
1336
1311
  };
1337
1312
  const de_ConflictErrorExceptionRes = async (parsedOutput, context) => {
1338
1313
  const body = parsedOutput.body;
1339
- const deserialized = de_ConflictErrorException(body, context);
1314
+ const deserialized = _json(body);
1340
1315
  const exception = new ConflictErrorException({
1341
1316
  $metadata: deserializeMetadata(parsedOutput),
1342
1317
  ...deserialized,
@@ -1345,7 +1320,7 @@ const de_ConflictErrorExceptionRes = async (parsedOutput, context) => {
1345
1320
  };
1346
1321
  const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
1347
1322
  const body = parsedOutput.body;
1348
- const deserialized = de_HomeRegionNotSetException(body, context);
1323
+ const deserialized = _json(body);
1349
1324
  const exception = new HomeRegionNotSetException({
1350
1325
  $metadata: deserializeMetadata(parsedOutput),
1351
1326
  ...deserialized,
@@ -1354,7 +1329,7 @@ const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
1354
1329
  };
1355
1330
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1356
1331
  const body = parsedOutput.body;
1357
- const deserialized = de_InvalidParameterException(body, context);
1332
+ const deserialized = _json(body);
1358
1333
  const exception = new InvalidParameterException({
1359
1334
  $metadata: deserializeMetadata(parsedOutput),
1360
1335
  ...deserialized,
@@ -1363,7 +1338,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1363
1338
  };
1364
1339
  const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1365
1340
  const body = parsedOutput.body;
1366
- const deserialized = de_InvalidParameterValueException(body, context);
1341
+ const deserialized = _json(body);
1367
1342
  const exception = new InvalidParameterValueException({
1368
1343
  $metadata: deserializeMetadata(parsedOutput),
1369
1344
  ...deserialized,
@@ -1372,7 +1347,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1372
1347
  };
1373
1348
  const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
1374
1349
  const body = parsedOutput.body;
1375
- const deserialized = de_OperationNotPermittedException(body, context);
1350
+ const deserialized = _json(body);
1376
1351
  const exception = new OperationNotPermittedException({
1377
1352
  $metadata: deserializeMetadata(parsedOutput),
1378
1353
  ...deserialized,
@@ -1381,7 +1356,7 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
1381
1356
  };
1382
1357
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1383
1358
  const body = parsedOutput.body;
1384
- const deserialized = de_ResourceInUseException(body, context);
1359
+ const deserialized = _json(body);
1385
1360
  const exception = new ResourceInUseException({
1386
1361
  $metadata: deserializeMetadata(parsedOutput),
1387
1362
  ...deserialized,
@@ -1390,7 +1365,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1390
1365
  };
1391
1366
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1392
1367
  const body = parsedOutput.body;
1393
- const deserialized = de_ResourceNotFoundException(body, context);
1368
+ const deserialized = _json(body);
1394
1369
  const exception = new ResourceNotFoundException({
1395
1370
  $metadata: deserializeMetadata(parsedOutput),
1396
1371
  ...deserialized,
@@ -1399,801 +1374,159 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1399
1374
  };
1400
1375
  const de_ServerInternalErrorExceptionRes = async (parsedOutput, context) => {
1401
1376
  const body = parsedOutput.body;
1402
- const deserialized = de_ServerInternalErrorException(body, context);
1377
+ const deserialized = _json(body);
1403
1378
  const exception = new ServerInternalErrorException({
1404
1379
  $metadata: deserializeMetadata(parsedOutput),
1405
1380
  ...deserialized,
1406
1381
  });
1407
1382
  return __decorateServiceException(exception, body);
1408
1383
  };
1409
- const se_AgentIds = (input, context) => {
1410
- return input
1411
- .filter((e) => e != null)
1412
- .map((entry) => {
1413
- return entry;
1414
- });
1415
- };
1416
- const se_ApplicationIdsList = (input, context) => {
1417
- return input
1418
- .filter((e) => e != null)
1419
- .map((entry) => {
1420
- return entry;
1421
- });
1422
- };
1423
- const se_AssociateConfigurationItemsToApplicationRequest = (input, context) => {
1424
- return {
1425
- ...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
1426
- ...(input.configurationIds != null && {
1427
- configurationIds: se_ConfigurationIdList(input.configurationIds, context),
1428
- }),
1429
- };
1430
- };
1431
- const se_BatchDeleteImportDataRequest = (input, context) => {
1432
- return {
1433
- ...(input.importTaskIds != null && { importTaskIds: se_ToDeleteIdentifierList(input.importTaskIds, context) }),
1434
- };
1435
- };
1436
- const se_ConfigurationIdList = (input, context) => {
1437
- return input
1438
- .filter((e) => e != null)
1439
- .map((entry) => {
1440
- return entry;
1441
- });
1442
- };
1443
- const se_ContinuousExportIds = (input, context) => {
1444
- return input
1445
- .filter((e) => e != null)
1446
- .map((entry) => {
1447
- return entry;
1448
- });
1449
- };
1450
- const se_CreateApplicationRequest = (input, context) => {
1451
- return {
1452
- ...(input.description != null && { description: input.description }),
1453
- ...(input.name != null && { name: input.name }),
1454
- };
1455
- };
1456
- const se_CreateTagsRequest = (input, context) => {
1457
- return {
1458
- ...(input.configurationIds != null && {
1459
- configurationIds: se_ConfigurationIdList(input.configurationIds, context),
1460
- }),
1461
- ...(input.tags != null && { tags: se_TagSet(input.tags, context) }),
1462
- };
1463
- };
1464
- const se_DeleteApplicationsRequest = (input, context) => {
1465
- return {
1466
- ...(input.configurationIds != null && { configurationIds: se_ApplicationIdsList(input.configurationIds, context) }),
1467
- };
1468
- };
1469
- const se_DeleteTagsRequest = (input, context) => {
1470
- return {
1471
- ...(input.configurationIds != null && {
1472
- configurationIds: se_ConfigurationIdList(input.configurationIds, context),
1473
- }),
1474
- ...(input.tags != null && { tags: se_TagSet(input.tags, context) }),
1475
- };
1476
- };
1477
- const se_DescribeAgentsRequest = (input, context) => {
1478
- return {
1479
- ...(input.agentIds != null && { agentIds: se_AgentIds(input.agentIds, context) }),
1480
- ...(input.filters != null && { filters: se_Filters(input.filters, context) }),
1481
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1482
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1483
- };
1484
- };
1485
- const se_DescribeConfigurationsRequest = (input, context) => {
1486
- return {
1487
- ...(input.configurationIds != null && {
1488
- configurationIds: se_ConfigurationIdList(input.configurationIds, context),
1489
- }),
1490
- };
1491
- };
1492
- const se_DescribeContinuousExportsRequest = (input, context) => {
1493
- return {
1494
- ...(input.exportIds != null && { exportIds: se_ContinuousExportIds(input.exportIds, context) }),
1495
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1496
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1497
- };
1498
- };
1499
- const se_DescribeExportConfigurationsRequest = (input, context) => {
1500
- return {
1501
- ...(input.exportIds != null && { exportIds: se_ExportIds(input.exportIds, context) }),
1502
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1503
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1504
- };
1505
- };
1506
- const se_DescribeExportTasksRequest = (input, context) => {
1507
- return {
1508
- ...(input.exportIds != null && { exportIds: se_ExportIds(input.exportIds, context) }),
1509
- ...(input.filters != null && { filters: se_ExportFilters(input.filters, context) }),
1510
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1511
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1512
- };
1513
- };
1514
- const se_DescribeImportTasksFilterList = (input, context) => {
1515
- return input
1516
- .filter((e) => e != null)
1517
- .map((entry) => {
1518
- return se_ImportTaskFilter(entry, context);
1519
- });
1520
- };
1521
- const se_DescribeImportTasksRequest = (input, context) => {
1522
- return {
1523
- ...(input.filters != null && { filters: se_DescribeImportTasksFilterList(input.filters, context) }),
1524
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1525
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1526
- };
1527
- };
1528
- const se_DescribeTagsRequest = (input, context) => {
1529
- return {
1530
- ...(input.filters != null && { filters: se_TagFilters(input.filters, context) }),
1531
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1532
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1533
- };
1534
- };
1535
- const se_DisassociateConfigurationItemsFromApplicationRequest = (input, context) => {
1536
- return {
1537
- ...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
1538
- ...(input.configurationIds != null && {
1539
- configurationIds: se_ConfigurationIdList(input.configurationIds, context),
1540
- }),
1541
- };
1542
- };
1543
- const se_ExportDataFormats = (input, context) => {
1544
- return input
1545
- .filter((e) => e != null)
1546
- .map((entry) => {
1547
- return entry;
1548
- });
1549
- };
1550
- const se_ExportFilter = (input, context) => {
1551
- return {
1552
- ...(input.condition != null && { condition: input.condition }),
1553
- ...(input.name != null && { name: input.name }),
1554
- ...(input.values != null && { values: se_FilterValues(input.values, context) }),
1555
- };
1556
- };
1557
- const se_ExportFilters = (input, context) => {
1558
- return input
1559
- .filter((e) => e != null)
1560
- .map((entry) => {
1561
- return se_ExportFilter(entry, context);
1562
- });
1563
- };
1564
- const se_ExportIds = (input, context) => {
1565
- return input
1566
- .filter((e) => e != null)
1567
- .map((entry) => {
1568
- return entry;
1569
- });
1570
- };
1571
- const se_Filter = (input, context) => {
1572
- return {
1573
- ...(input.condition != null && { condition: input.condition }),
1574
- ...(input.name != null && { name: input.name }),
1575
- ...(input.values != null && { values: se_FilterValues(input.values, context) }),
1576
- };
1577
- };
1578
- const se_Filters = (input, context) => {
1579
- return input
1580
- .filter((e) => e != null)
1581
- .map((entry) => {
1582
- return se_Filter(entry, context);
1583
- });
1584
- };
1585
- const se_FilterValues = (input, context) => {
1586
- return input
1587
- .filter((e) => e != null)
1588
- .map((entry) => {
1589
- return entry;
1590
- });
1591
- };
1592
- const se_GetDiscoverySummaryRequest = (input, context) => {
1593
- return {};
1594
- };
1595
- const se_ImportTaskFilter = (input, context) => {
1596
- return {
1597
- ...(input.name != null && { name: input.name }),
1598
- ...(input.values != null && { values: se_ImportTaskFilterValueList(input.values, context) }),
1599
- };
1600
- };
1601
- const se_ImportTaskFilterValueList = (input, context) => {
1602
- return input
1603
- .filter((e) => e != null)
1604
- .map((entry) => {
1605
- return entry;
1606
- });
1607
- };
1608
- const se_ListConfigurationsRequest = (input, context) => {
1609
- return {
1610
- ...(input.configurationType != null && { configurationType: input.configurationType }),
1611
- ...(input.filters != null && { filters: se_Filters(input.filters, context) }),
1612
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1613
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1614
- ...(input.orderBy != null && { orderBy: se_OrderByList(input.orderBy, context) }),
1615
- };
1616
- };
1617
- const se_ListServerNeighborsRequest = (input, context) => {
1618
- return {
1619
- ...(input.configurationId != null && { configurationId: input.configurationId }),
1620
- ...(input.maxResults != null && { maxResults: input.maxResults }),
1621
- ...(input.neighborConfigurationIds != null && {
1622
- neighborConfigurationIds: se_ConfigurationIdList(input.neighborConfigurationIds, context),
1623
- }),
1624
- ...(input.nextToken != null && { nextToken: input.nextToken }),
1625
- ...(input.portInformationNeeded != null && { portInformationNeeded: input.portInformationNeeded }),
1626
- };
1627
- };
1628
- const se_OrderByElement = (input, context) => {
1629
- return {
1630
- ...(input.fieldName != null && { fieldName: input.fieldName }),
1631
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
1632
- };
1633
- };
1634
- const se_OrderByList = (input, context) => {
1635
- return input
1636
- .filter((e) => e != null)
1637
- .map((entry) => {
1638
- return se_OrderByElement(entry, context);
1639
- });
1640
- };
1641
- const se_StartContinuousExportRequest = (input, context) => {
1642
- return {};
1643
- };
1644
- const se_StartDataCollectionByAgentIdsRequest = (input, context) => {
1645
- return {
1646
- ...(input.agentIds != null && { agentIds: se_AgentIds(input.agentIds, context) }),
1647
- };
1648
- };
1649
1384
  const se_StartExportTaskRequest = (input, context) => {
1650
- return {
1651
- ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
1652
- ...(input.exportDataFormat != null && { exportDataFormat: se_ExportDataFormats(input.exportDataFormat, context) }),
1653
- ...(input.filters != null && { filters: se_ExportFilters(input.filters, context) }),
1654
- ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
1655
- };
1656
- };
1657
- const se_StartImportTaskRequest = (input, context) => {
1658
- return {
1659
- clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
1660
- ...(input.importUrl != null && { importUrl: input.importUrl }),
1661
- ...(input.name != null && { name: input.name }),
1662
- };
1663
- };
1664
- const se_StopContinuousExportRequest = (input, context) => {
1665
- return {
1666
- ...(input.exportId != null && { exportId: input.exportId }),
1667
- };
1668
- };
1669
- const se_StopDataCollectionByAgentIdsRequest = (input, context) => {
1670
- return {
1671
- ...(input.agentIds != null && { agentIds: se_AgentIds(input.agentIds, context) }),
1672
- };
1673
- };
1674
- const se_Tag = (input, context) => {
1675
- return {
1676
- ...(input.key != null && { key: input.key }),
1677
- ...(input.value != null && { value: input.value }),
1678
- };
1679
- };
1680
- const se_TagFilter = (input, context) => {
1681
- return {
1682
- ...(input.name != null && { name: input.name }),
1683
- ...(input.values != null && { values: se_FilterValues(input.values, context) }),
1684
- };
1685
- };
1686
- const se_TagFilters = (input, context) => {
1687
- return input
1688
- .filter((e) => e != null)
1689
- .map((entry) => {
1690
- return se_TagFilter(entry, context);
1691
- });
1692
- };
1693
- const se_TagSet = (input, context) => {
1694
- return input
1695
- .filter((e) => e != null)
1696
- .map((entry) => {
1697
- return se_Tag(entry, context);
1698
- });
1699
- };
1700
- const se_ToDeleteIdentifierList = (input, context) => {
1701
- return input
1702
- .filter((e) => e != null)
1703
- .map((entry) => {
1704
- return entry;
1705
- });
1706
- };
1707
- const se_UpdateApplicationRequest = (input, context) => {
1708
- return {
1709
- ...(input.configurationId != null && { configurationId: input.configurationId }),
1710
- ...(input.description != null && { description: input.description }),
1711
- ...(input.name != null && { name: input.name }),
1712
- };
1713
- };
1714
- const de_AgentConfigurationStatus = (output, context) => {
1715
- return {
1716
- agentId: __expectString(output.agentId),
1717
- description: __expectString(output.description),
1718
- operationSucceeded: __expectBoolean(output.operationSucceeded),
1719
- };
1720
- };
1721
- const de_AgentConfigurationStatusList = (output, context) => {
1722
- const retVal = (output || [])
1723
- .filter((e) => e != null)
1724
- .map((entry) => {
1725
- if (entry === null) {
1726
- return null;
1727
- }
1728
- return de_AgentConfigurationStatus(entry, context);
1729
- });
1730
- return retVal;
1731
- };
1732
- const de_AgentInfo = (output, context) => {
1733
- return {
1734
- agentId: __expectString(output.agentId),
1735
- agentNetworkInfoList: output.agentNetworkInfoList != null ? de_AgentNetworkInfoList(output.agentNetworkInfoList, context) : undefined,
1736
- agentType: __expectString(output.agentType),
1737
- collectionStatus: __expectString(output.collectionStatus),
1738
- connectorId: __expectString(output.connectorId),
1739
- health: __expectString(output.health),
1740
- hostName: __expectString(output.hostName),
1741
- lastHealthPingTime: __expectString(output.lastHealthPingTime),
1742
- registeredTime: __expectString(output.registeredTime),
1743
- version: __expectString(output.version),
1744
- };
1745
- };
1746
- const de_AgentNetworkInfo = (output, context) => {
1747
- return {
1748
- ipAddress: __expectString(output.ipAddress),
1749
- macAddress: __expectString(output.macAddress),
1750
- };
1751
- };
1752
- const de_AgentNetworkInfoList = (output, context) => {
1753
- const retVal = (output || [])
1754
- .filter((e) => e != null)
1755
- .map((entry) => {
1756
- if (entry === null) {
1757
- return null;
1758
- }
1759
- return de_AgentNetworkInfo(entry, context);
1760
- });
1761
- return retVal;
1762
- };
1763
- const de_AgentsInfo = (output, context) => {
1764
- const retVal = (output || [])
1765
- .filter((e) => e != null)
1766
- .map((entry) => {
1767
- if (entry === null) {
1768
- return null;
1769
- }
1770
- return de_AgentInfo(entry, context);
1771
- });
1772
- return retVal;
1773
- };
1774
- const de_AssociateConfigurationItemsToApplicationResponse = (output, context) => {
1775
- return {};
1776
- };
1777
- const de_AuthorizationErrorException = (output, context) => {
1778
- return {
1779
- message: __expectString(output.message),
1780
- };
1781
- };
1782
- const de_BatchDeleteImportDataError = (output, context) => {
1783
- return {
1784
- errorCode: __expectString(output.errorCode),
1785
- errorDescription: __expectString(output.errorDescription),
1786
- importTaskId: __expectString(output.importTaskId),
1787
- };
1788
- };
1789
- const de_BatchDeleteImportDataErrorList = (output, context) => {
1790
- const retVal = (output || [])
1791
- .filter((e) => e != null)
1792
- .map((entry) => {
1793
- if (entry === null) {
1794
- return null;
1795
- }
1796
- return de_BatchDeleteImportDataError(entry, context);
1385
+ return take(input, {
1386
+ endTime: (_) => Math.round(_.getTime() / 1000),
1387
+ exportDataFormat: _json,
1388
+ filters: _json,
1389
+ startTime: (_) => Math.round(_.getTime() / 1000),
1797
1390
  });
1798
- return retVal;
1799
1391
  };
1800
- const de_BatchDeleteImportDataResponse = (output, context) => {
1801
- return {
1802
- errors: output.errors != null ? de_BatchDeleteImportDataErrorList(output.errors, context) : undefined,
1803
- };
1804
- };
1805
- const de_Configuration = (output, context) => {
1806
- return Object.entries(output).reduce((acc, [key, value]) => {
1807
- if (value === null) {
1808
- return acc;
1809
- }
1810
- acc[key] = __expectString(value);
1811
- return acc;
1812
- }, {});
1813
- };
1814
- const de_Configurations = (output, context) => {
1815
- const retVal = (output || [])
1816
- .filter((e) => e != null)
1817
- .map((entry) => {
1818
- if (entry === null) {
1819
- return null;
1820
- }
1821
- return de_Configuration(entry, context);
1392
+ const se_StartImportTaskRequest = (input, context) => {
1393
+ return take(input, {
1394
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1395
+ importUrl: [],
1396
+ name: [],
1822
1397
  });
1823
- return retVal;
1824
1398
  };
1825
1399
  const de_ConfigurationTag = (output, context) => {
1826
- return {
1827
- configurationId: __expectString(output.configurationId),
1828
- configurationType: __expectString(output.configurationType),
1829
- key: __expectString(output.key),
1830
- timeOfCreation: output.timeOfCreation != null
1831
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timeOfCreation)))
1832
- : undefined,
1833
- value: __expectString(output.value),
1834
- };
1400
+ return take(output, {
1401
+ configurationId: __expectString,
1402
+ configurationType: __expectString,
1403
+ key: __expectString,
1404
+ timeOfCreation: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1405
+ value: __expectString,
1406
+ });
1835
1407
  };
1836
1408
  const de_ConfigurationTagSet = (output, context) => {
1837
1409
  const retVal = (output || [])
1838
1410
  .filter((e) => e != null)
1839
1411
  .map((entry) => {
1840
- if (entry === null) {
1841
- return null;
1842
- }
1843
1412
  return de_ConfigurationTag(entry, context);
1844
1413
  });
1845
1414
  return retVal;
1846
1415
  };
1847
- const de_ConflictErrorException = (output, context) => {
1848
- return {
1849
- message: __expectString(output.message),
1850
- };
1851
- };
1852
1416
  const de_ContinuousExportDescription = (output, context) => {
1853
- return {
1854
- dataSource: __expectString(output.dataSource),
1855
- exportId: __expectString(output.exportId),
1856
- s3Bucket: __expectString(output.s3Bucket),
1857
- schemaStorageConfig: output.schemaStorageConfig != null ? de_SchemaStorageConfig(output.schemaStorageConfig, context) : undefined,
1858
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
1859
- status: __expectString(output.status),
1860
- statusDetail: __expectString(output.statusDetail),
1861
- stopTime: output.stopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopTime))) : undefined,
1862
- };
1417
+ return take(output, {
1418
+ dataSource: __expectString,
1419
+ exportId: __expectString,
1420
+ s3Bucket: __expectString,
1421
+ schemaStorageConfig: _json,
1422
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1423
+ status: __expectString,
1424
+ statusDetail: __expectString,
1425
+ stopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1426
+ });
1863
1427
  };
1864
1428
  const de_ContinuousExportDescriptions = (output, context) => {
1865
1429
  const retVal = (output || [])
1866
1430
  .filter((e) => e != null)
1867
1431
  .map((entry) => {
1868
- if (entry === null) {
1869
- return null;
1870
- }
1871
1432
  return de_ContinuousExportDescription(entry, context);
1872
1433
  });
1873
1434
  return retVal;
1874
1435
  };
1875
- const de_CreateApplicationResponse = (output, context) => {
1876
- return {
1877
- configurationId: __expectString(output.configurationId),
1878
- };
1879
- };
1880
- const de_CreateTagsResponse = (output, context) => {
1881
- return {};
1882
- };
1883
- const de_CustomerAgentInfo = (output, context) => {
1884
- return {
1885
- activeAgents: __expectInt32(output.activeAgents),
1886
- blackListedAgents: __expectInt32(output.blackListedAgents),
1887
- healthyAgents: __expectInt32(output.healthyAgents),
1888
- shutdownAgents: __expectInt32(output.shutdownAgents),
1889
- totalAgents: __expectInt32(output.totalAgents),
1890
- unhealthyAgents: __expectInt32(output.unhealthyAgents),
1891
- unknownAgents: __expectInt32(output.unknownAgents),
1892
- };
1893
- };
1894
- const de_CustomerAgentlessCollectorInfo = (output, context) => {
1895
- return {
1896
- activeAgentlessCollectors: __expectInt32(output.activeAgentlessCollectors),
1897
- denyListedAgentlessCollectors: __expectInt32(output.denyListedAgentlessCollectors),
1898
- healthyAgentlessCollectors: __expectInt32(output.healthyAgentlessCollectors),
1899
- shutdownAgentlessCollectors: __expectInt32(output.shutdownAgentlessCollectors),
1900
- totalAgentlessCollectors: __expectInt32(output.totalAgentlessCollectors),
1901
- unhealthyAgentlessCollectors: __expectInt32(output.unhealthyAgentlessCollectors),
1902
- unknownAgentlessCollectors: __expectInt32(output.unknownAgentlessCollectors),
1903
- };
1904
- };
1905
- const de_CustomerConnectorInfo = (output, context) => {
1906
- return {
1907
- activeConnectors: __expectInt32(output.activeConnectors),
1908
- blackListedConnectors: __expectInt32(output.blackListedConnectors),
1909
- healthyConnectors: __expectInt32(output.healthyConnectors),
1910
- shutdownConnectors: __expectInt32(output.shutdownConnectors),
1911
- totalConnectors: __expectInt32(output.totalConnectors),
1912
- unhealthyConnectors: __expectInt32(output.unhealthyConnectors),
1913
- unknownConnectors: __expectInt32(output.unknownConnectors),
1914
- };
1915
- };
1916
- const de_CustomerMeCollectorInfo = (output, context) => {
1917
- return {
1918
- activeMeCollectors: __expectInt32(output.activeMeCollectors),
1919
- denyListedMeCollectors: __expectInt32(output.denyListedMeCollectors),
1920
- healthyMeCollectors: __expectInt32(output.healthyMeCollectors),
1921
- shutdownMeCollectors: __expectInt32(output.shutdownMeCollectors),
1922
- totalMeCollectors: __expectInt32(output.totalMeCollectors),
1923
- unhealthyMeCollectors: __expectInt32(output.unhealthyMeCollectors),
1924
- unknownMeCollectors: __expectInt32(output.unknownMeCollectors),
1925
- };
1926
- };
1927
- const de_DeleteApplicationsResponse = (output, context) => {
1928
- return {};
1929
- };
1930
- const de_DeleteTagsResponse = (output, context) => {
1931
- return {};
1932
- };
1933
- const de_DescribeAgentsResponse = (output, context) => {
1934
- return {
1935
- agentsInfo: output.agentsInfo != null ? de_AgentsInfo(output.agentsInfo, context) : undefined,
1936
- nextToken: __expectString(output.nextToken),
1937
- };
1938
- };
1939
- const de_DescribeConfigurationsAttribute = (output, context) => {
1940
- return Object.entries(output).reduce((acc, [key, value]) => {
1941
- if (value === null) {
1942
- return acc;
1943
- }
1944
- acc[key] = __expectString(value);
1945
- return acc;
1946
- }, {});
1947
- };
1948
- const de_DescribeConfigurationsAttributes = (output, context) => {
1949
- const retVal = (output || [])
1950
- .filter((e) => e != null)
1951
- .map((entry) => {
1952
- if (entry === null) {
1953
- return null;
1954
- }
1955
- return de_DescribeConfigurationsAttribute(entry, context);
1956
- });
1957
- return retVal;
1958
- };
1959
- const de_DescribeConfigurationsResponse = (output, context) => {
1960
- return {
1961
- configurations: output.configurations != null ? de_DescribeConfigurationsAttributes(output.configurations, context) : undefined,
1962
- };
1963
- };
1964
1436
  const de_DescribeContinuousExportsResponse = (output, context) => {
1965
- return {
1966
- descriptions: output.descriptions != null ? de_ContinuousExportDescriptions(output.descriptions, context) : undefined,
1967
- nextToken: __expectString(output.nextToken),
1968
- };
1437
+ return take(output, {
1438
+ descriptions: (_) => de_ContinuousExportDescriptions(_, context),
1439
+ nextToken: __expectString,
1440
+ });
1969
1441
  };
1970
1442
  const de_DescribeExportConfigurationsResponse = (output, context) => {
1971
- return {
1972
- exportsInfo: output.exportsInfo != null ? de_ExportsInfo(output.exportsInfo, context) : undefined,
1973
- nextToken: __expectString(output.nextToken),
1974
- };
1443
+ return take(output, {
1444
+ exportsInfo: (_) => de_ExportsInfo(_, context),
1445
+ nextToken: __expectString,
1446
+ });
1975
1447
  };
1976
1448
  const de_DescribeExportTasksResponse = (output, context) => {
1977
- return {
1978
- exportsInfo: output.exportsInfo != null ? de_ExportsInfo(output.exportsInfo, context) : undefined,
1979
- nextToken: __expectString(output.nextToken),
1980
- };
1449
+ return take(output, {
1450
+ exportsInfo: (_) => de_ExportsInfo(_, context),
1451
+ nextToken: __expectString,
1452
+ });
1981
1453
  };
1982
1454
  const de_DescribeImportTasksResponse = (output, context) => {
1983
- return {
1984
- nextToken: __expectString(output.nextToken),
1985
- tasks: output.tasks != null ? de_ImportTaskList(output.tasks, context) : undefined,
1986
- };
1455
+ return take(output, {
1456
+ nextToken: __expectString,
1457
+ tasks: (_) => de_ImportTaskList(_, context),
1458
+ });
1987
1459
  };
1988
1460
  const de_DescribeTagsResponse = (output, context) => {
1989
- return {
1990
- nextToken: __expectString(output.nextToken),
1991
- tags: output.tags != null ? de_ConfigurationTagSet(output.tags, context) : undefined,
1992
- };
1993
- };
1994
- const de_DisassociateConfigurationItemsFromApplicationResponse = (output, context) => {
1995
- return {};
1996
- };
1997
- const de_ExportConfigurationsResponse = (output, context) => {
1998
- return {
1999
- exportId: __expectString(output.exportId),
2000
- };
1461
+ return take(output, {
1462
+ nextToken: __expectString,
1463
+ tags: (_) => de_ConfigurationTagSet(_, context),
1464
+ });
2001
1465
  };
2002
1466
  const de_ExportInfo = (output, context) => {
2003
- return {
2004
- configurationsDownloadUrl: __expectString(output.configurationsDownloadUrl),
2005
- exportId: __expectString(output.exportId),
2006
- exportRequestTime: output.exportRequestTime != null
2007
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.exportRequestTime)))
2008
- : undefined,
2009
- exportStatus: __expectString(output.exportStatus),
2010
- isTruncated: __expectBoolean(output.isTruncated),
2011
- requestedEndTime: output.requestedEndTime != null
2012
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestedEndTime)))
2013
- : undefined,
2014
- requestedStartTime: output.requestedStartTime != null
2015
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestedStartTime)))
2016
- : undefined,
2017
- statusMessage: __expectString(output.statusMessage),
2018
- };
1467
+ return take(output, {
1468
+ configurationsDownloadUrl: __expectString,
1469
+ exportId: __expectString,
1470
+ exportRequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1471
+ exportStatus: __expectString,
1472
+ isTruncated: __expectBoolean,
1473
+ requestedEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1474
+ requestedStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1475
+ statusMessage: __expectString,
1476
+ });
2019
1477
  };
2020
1478
  const de_ExportsInfo = (output, context) => {
2021
1479
  const retVal = (output || [])
2022
1480
  .filter((e) => e != null)
2023
1481
  .map((entry) => {
2024
- if (entry === null) {
2025
- return null;
2026
- }
2027
1482
  return de_ExportInfo(entry, context);
2028
1483
  });
2029
1484
  return retVal;
2030
1485
  };
2031
- const de_GetDiscoverySummaryResponse = (output, context) => {
2032
- return {
2033
- agentSummary: output.agentSummary != null ? de_CustomerAgentInfo(output.agentSummary, context) : undefined,
2034
- agentlessCollectorSummary: output.agentlessCollectorSummary != null
2035
- ? de_CustomerAgentlessCollectorInfo(output.agentlessCollectorSummary, context)
2036
- : undefined,
2037
- applications: __expectLong(output.applications),
2038
- connectorSummary: output.connectorSummary != null ? de_CustomerConnectorInfo(output.connectorSummary, context) : undefined,
2039
- meCollectorSummary: output.meCollectorSummary != null ? de_CustomerMeCollectorInfo(output.meCollectorSummary, context) : undefined,
2040
- servers: __expectLong(output.servers),
2041
- serversMappedToApplications: __expectLong(output.serversMappedToApplications),
2042
- serversMappedtoTags: __expectLong(output.serversMappedtoTags),
2043
- };
2044
- };
2045
- const de_HomeRegionNotSetException = (output, context) => {
2046
- return {
2047
- message: __expectString(output.message),
2048
- };
2049
- };
2050
1486
  const de_ImportTask = (output, context) => {
2051
- return {
2052
- applicationImportFailure: __expectInt32(output.applicationImportFailure),
2053
- applicationImportSuccess: __expectInt32(output.applicationImportSuccess),
2054
- clientRequestToken: __expectString(output.clientRequestToken),
2055
- errorsAndFailedEntriesZip: __expectString(output.errorsAndFailedEntriesZip),
2056
- importCompletionTime: output.importCompletionTime != null
2057
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.importCompletionTime)))
2058
- : undefined,
2059
- importDeletedTime: output.importDeletedTime != null
2060
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.importDeletedTime)))
2061
- : undefined,
2062
- importRequestTime: output.importRequestTime != null
2063
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.importRequestTime)))
2064
- : undefined,
2065
- importTaskId: __expectString(output.importTaskId),
2066
- importUrl: __expectString(output.importUrl),
2067
- name: __expectString(output.name),
2068
- serverImportFailure: __expectInt32(output.serverImportFailure),
2069
- serverImportSuccess: __expectInt32(output.serverImportSuccess),
2070
- status: __expectString(output.status),
2071
- };
1487
+ return take(output, {
1488
+ applicationImportFailure: __expectInt32,
1489
+ applicationImportSuccess: __expectInt32,
1490
+ clientRequestToken: __expectString,
1491
+ errorsAndFailedEntriesZip: __expectString,
1492
+ importCompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1493
+ importDeletedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1494
+ importRequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1495
+ importTaskId: __expectString,
1496
+ importUrl: __expectString,
1497
+ name: __expectString,
1498
+ serverImportFailure: __expectInt32,
1499
+ serverImportSuccess: __expectInt32,
1500
+ status: __expectString,
1501
+ });
2072
1502
  };
2073
1503
  const de_ImportTaskList = (output, context) => {
2074
1504
  const retVal = (output || [])
2075
1505
  .filter((e) => e != null)
2076
1506
  .map((entry) => {
2077
- if (entry === null) {
2078
- return null;
2079
- }
2080
1507
  return de_ImportTask(entry, context);
2081
1508
  });
2082
1509
  return retVal;
2083
1510
  };
2084
- const de_InvalidParameterException = (output, context) => {
2085
- return {
2086
- message: __expectString(output.message),
2087
- };
2088
- };
2089
- const de_InvalidParameterValueException = (output, context) => {
2090
- return {
2091
- message: __expectString(output.message),
2092
- };
2093
- };
2094
- const de_ListConfigurationsResponse = (output, context) => {
2095
- return {
2096
- configurations: output.configurations != null ? de_Configurations(output.configurations, context) : undefined,
2097
- nextToken: __expectString(output.nextToken),
2098
- };
2099
- };
2100
- const de_ListServerNeighborsResponse = (output, context) => {
2101
- return {
2102
- knownDependencyCount: __expectLong(output.knownDependencyCount),
2103
- neighbors: output.neighbors != null ? de_NeighborDetailsList(output.neighbors, context) : undefined,
2104
- nextToken: __expectString(output.nextToken),
2105
- };
2106
- };
2107
- const de_NeighborConnectionDetail = (output, context) => {
2108
- return {
2109
- connectionsCount: __expectLong(output.connectionsCount),
2110
- destinationPort: __expectInt32(output.destinationPort),
2111
- destinationServerId: __expectString(output.destinationServerId),
2112
- sourceServerId: __expectString(output.sourceServerId),
2113
- transportProtocol: __expectString(output.transportProtocol),
2114
- };
2115
- };
2116
- const de_NeighborDetailsList = (output, context) => {
2117
- const retVal = (output || [])
2118
- .filter((e) => e != null)
2119
- .map((entry) => {
2120
- if (entry === null) {
2121
- return null;
2122
- }
2123
- return de_NeighborConnectionDetail(entry, context);
2124
- });
2125
- return retVal;
2126
- };
2127
- const de_OperationNotPermittedException = (output, context) => {
2128
- return {
2129
- message: __expectString(output.message),
2130
- };
2131
- };
2132
- const de_ResourceInUseException = (output, context) => {
2133
- return {
2134
- message: __expectString(output.message),
2135
- };
2136
- };
2137
- const de_ResourceNotFoundException = (output, context) => {
2138
- return {
2139
- message: __expectString(output.message),
2140
- };
2141
- };
2142
- const de_SchemaStorageConfig = (output, context) => {
2143
- return Object.entries(output).reduce((acc, [key, value]) => {
2144
- if (value === null) {
2145
- return acc;
2146
- }
2147
- acc[key] = __expectString(value);
2148
- return acc;
2149
- }, {});
2150
- };
2151
- const de_ServerInternalErrorException = (output, context) => {
2152
- return {
2153
- message: __expectString(output.message),
2154
- };
2155
- };
2156
1511
  const de_StartContinuousExportResponse = (output, context) => {
2157
- return {
2158
- dataSource: __expectString(output.dataSource),
2159
- exportId: __expectString(output.exportId),
2160
- s3Bucket: __expectString(output.s3Bucket),
2161
- schemaStorageConfig: output.schemaStorageConfig != null ? de_SchemaStorageConfig(output.schemaStorageConfig, context) : undefined,
2162
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
2163
- };
2164
- };
2165
- const de_StartDataCollectionByAgentIdsResponse = (output, context) => {
2166
- return {
2167
- agentsConfigurationStatus: output.agentsConfigurationStatus != null
2168
- ? de_AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
2169
- : undefined,
2170
- };
2171
- };
2172
- const de_StartExportTaskResponse = (output, context) => {
2173
- return {
2174
- exportId: __expectString(output.exportId),
2175
- };
1512
+ return take(output, {
1513
+ dataSource: __expectString,
1514
+ exportId: __expectString,
1515
+ s3Bucket: __expectString,
1516
+ schemaStorageConfig: _json,
1517
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1518
+ });
2176
1519
  };
2177
1520
  const de_StartImportTaskResponse = (output, context) => {
2178
- return {
2179
- task: output.task != null ? de_ImportTask(output.task, context) : undefined,
2180
- };
1521
+ return take(output, {
1522
+ task: (_) => de_ImportTask(_, context),
1523
+ });
2181
1524
  };
2182
1525
  const de_StopContinuousExportResponse = (output, context) => {
2183
- return {
2184
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
2185
- stopTime: output.stopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopTime))) : undefined,
2186
- };
2187
- };
2188
- const de_StopDataCollectionByAgentIdsResponse = (output, context) => {
2189
- return {
2190
- agentsConfigurationStatus: output.agentsConfigurationStatus != null
2191
- ? de_AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
2192
- : undefined,
2193
- };
2194
- };
2195
- const de_UpdateApplicationResponse = (output, context) => {
2196
- return {};
1526
+ return take(output, {
1527
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1528
+ stopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1529
+ });
2197
1530
  };
2198
1531
  const deserializeMetadata = (output) => ({
2199
1532
  httpStatusCode: output.statusCode,
@@ -2208,6 +1541,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2208
1541
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2209
1542
  };
2210
1543
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1544
+ const throwDefaultError = withBaseException(__BaseException);
2211
1545
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2212
1546
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2213
1547
  const contents = {