@aws-sdk/client-cloudtrail 3.312.0 → 3.315.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,175 +9,175 @@ const models_0_1 = require("../models/models_0");
9
9
  const se_AddTagsCommand = async (input, context) => {
10
10
  const headers = sharedHeaders("AddTags");
11
11
  let body;
12
- body = JSON.stringify(se_AddTagsRequest(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_AddTagsCommand = se_AddTagsCommand;
16
16
  const se_CancelQueryCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("CancelQuery");
18
18
  let body;
19
- body = JSON.stringify(se_CancelQueryRequest(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_CancelQueryCommand = se_CancelQueryCommand;
23
23
  const se_CreateChannelCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateChannel");
25
25
  let body;
26
- body = JSON.stringify(se_CreateChannelRequest(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_CreateChannelCommand = se_CreateChannelCommand;
30
30
  const se_CreateEventDataStoreCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("CreateEventDataStore");
32
32
  let body;
33
- body = JSON.stringify(se_CreateEventDataStoreRequest(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_CreateEventDataStoreCommand = se_CreateEventDataStoreCommand;
37
37
  const se_CreateTrailCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("CreateTrail");
39
39
  let body;
40
- body = JSON.stringify(se_CreateTrailRequest(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_CreateTrailCommand = se_CreateTrailCommand;
44
44
  const se_DeleteChannelCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("DeleteChannel");
46
46
  let body;
47
- body = JSON.stringify(se_DeleteChannelRequest(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_DeleteChannelCommand = se_DeleteChannelCommand;
51
51
  const se_DeleteEventDataStoreCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("DeleteEventDataStore");
53
53
  let body;
54
- body = JSON.stringify(se_DeleteEventDataStoreRequest(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_DeleteEventDataStoreCommand = se_DeleteEventDataStoreCommand;
58
58
  const se_DeleteResourcePolicyCommand = async (input, context) => {
59
59
  const headers = sharedHeaders("DeleteResourcePolicy");
60
60
  let body;
61
- body = JSON.stringify(se_DeleteResourcePolicyRequest(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_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
65
65
  const se_DeleteTrailCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DeleteTrail");
67
67
  let body;
68
- body = JSON.stringify(se_DeleteTrailRequest(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_DeleteTrailCommand = se_DeleteTrailCommand;
72
72
  const se_DeregisterOrganizationDelegatedAdminCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DeregisterOrganizationDelegatedAdmin");
74
74
  let body;
75
- body = JSON.stringify(se_DeregisterOrganizationDelegatedAdminRequest(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_DeregisterOrganizationDelegatedAdminCommand = se_DeregisterOrganizationDelegatedAdminCommand;
79
79
  const se_DescribeQueryCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("DescribeQuery");
81
81
  let body;
82
- body = JSON.stringify(se_DescribeQueryRequest(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_DescribeQueryCommand = se_DescribeQueryCommand;
86
86
  const se_DescribeTrailsCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("DescribeTrails");
88
88
  let body;
89
- body = JSON.stringify(se_DescribeTrailsRequest(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_DescribeTrailsCommand = se_DescribeTrailsCommand;
93
93
  const se_GetChannelCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("GetChannel");
95
95
  let body;
96
- body = JSON.stringify(se_GetChannelRequest(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_GetChannelCommand = se_GetChannelCommand;
100
100
  const se_GetEventDataStoreCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("GetEventDataStore");
102
102
  let body;
103
- body = JSON.stringify(se_GetEventDataStoreRequest(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_GetEventDataStoreCommand = se_GetEventDataStoreCommand;
107
107
  const se_GetEventSelectorsCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("GetEventSelectors");
109
109
  let body;
110
- body = JSON.stringify(se_GetEventSelectorsRequest(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_GetEventSelectorsCommand = se_GetEventSelectorsCommand;
114
114
  const se_GetImportCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("GetImport");
116
116
  let body;
117
- body = JSON.stringify(se_GetImportRequest(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_GetImportCommand = se_GetImportCommand;
121
121
  const se_GetInsightSelectorsCommand = async (input, context) => {
122
122
  const headers = sharedHeaders("GetInsightSelectors");
123
123
  let body;
124
- body = JSON.stringify(se_GetInsightSelectorsRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
127
  exports.se_GetInsightSelectorsCommand = se_GetInsightSelectorsCommand;
128
128
  const se_GetQueryResultsCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("GetQueryResults");
130
130
  let body;
131
- body = JSON.stringify(se_GetQueryResultsRequest(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_GetQueryResultsCommand = se_GetQueryResultsCommand;
135
135
  const se_GetResourcePolicyCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("GetResourcePolicy");
137
137
  let body;
138
- body = JSON.stringify(se_GetResourcePolicyRequest(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_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
142
142
  const se_GetTrailCommand = async (input, context) => {
143
143
  const headers = sharedHeaders("GetTrail");
144
144
  let body;
145
- body = JSON.stringify(se_GetTrailRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
147
  };
148
148
  exports.se_GetTrailCommand = se_GetTrailCommand;
149
149
  const se_GetTrailStatusCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("GetTrailStatus");
151
151
  let body;
152
- body = JSON.stringify(se_GetTrailStatusRequest(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_GetTrailStatusCommand = se_GetTrailStatusCommand;
156
156
  const se_ListChannelsCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("ListChannels");
158
158
  let body;
159
- body = JSON.stringify(se_ListChannelsRequest(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_ListChannelsCommand = se_ListChannelsCommand;
163
163
  const se_ListEventDataStoresCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("ListEventDataStores");
165
165
  let body;
166
- body = JSON.stringify(se_ListEventDataStoresRequest(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_ListEventDataStoresCommand = se_ListEventDataStoresCommand;
170
170
  const se_ListImportFailuresCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("ListImportFailures");
172
172
  let body;
173
- body = JSON.stringify(se_ListImportFailuresRequest(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_ListImportFailuresCommand = se_ListImportFailuresCommand;
177
177
  const se_ListImportsCommand = async (input, context) => {
178
178
  const headers = sharedHeaders("ListImports");
179
179
  let body;
180
- body = JSON.stringify(se_ListImportsRequest(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_ListImportsCommand = se_ListImportsCommand;
@@ -198,14 +198,14 @@ exports.se_ListQueriesCommand = se_ListQueriesCommand;
198
198
  const se_ListTagsCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("ListTags");
200
200
  let body;
201
- body = JSON.stringify(se_ListTagsRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  exports.se_ListTagsCommand = se_ListTagsCommand;
205
205
  const se_ListTrailsCommand = async (input, context) => {
206
206
  const headers = sharedHeaders("ListTrails");
207
207
  let body;
208
- body = JSON.stringify(se_ListTrailsRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
209
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
210
  };
211
211
  exports.se_ListTrailsCommand = se_ListTrailsCommand;
@@ -219,42 +219,42 @@ exports.se_LookupEventsCommand = se_LookupEventsCommand;
219
219
  const se_PutEventSelectorsCommand = async (input, context) => {
220
220
  const headers = sharedHeaders("PutEventSelectors");
221
221
  let body;
222
- body = JSON.stringify(se_PutEventSelectorsRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
223
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
224
  };
225
225
  exports.se_PutEventSelectorsCommand = se_PutEventSelectorsCommand;
226
226
  const se_PutInsightSelectorsCommand = async (input, context) => {
227
227
  const headers = sharedHeaders("PutInsightSelectors");
228
228
  let body;
229
- body = JSON.stringify(se_PutInsightSelectorsRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
230
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
231
  };
232
232
  exports.se_PutInsightSelectorsCommand = se_PutInsightSelectorsCommand;
233
233
  const se_PutResourcePolicyCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("PutResourcePolicy");
235
235
  let body;
236
- body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
240
240
  const se_RegisterOrganizationDelegatedAdminCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("RegisterOrganizationDelegatedAdmin");
242
242
  let body;
243
- body = JSON.stringify(se_RegisterOrganizationDelegatedAdminRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  exports.se_RegisterOrganizationDelegatedAdminCommand = se_RegisterOrganizationDelegatedAdminCommand;
247
247
  const se_RemoveTagsCommand = async (input, context) => {
248
248
  const headers = sharedHeaders("RemoveTags");
249
249
  let body;
250
- body = JSON.stringify(se_RemoveTagsRequest(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
251
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
252
  };
253
253
  exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
254
254
  const se_RestoreEventDataStoreCommand = async (input, context) => {
255
255
  const headers = sharedHeaders("RestoreEventDataStore");
256
256
  let body;
257
- body = JSON.stringify(se_RestoreEventDataStoreRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.se_RestoreEventDataStoreCommand = se_RestoreEventDataStoreCommand;
@@ -268,49 +268,49 @@ exports.se_StartImportCommand = se_StartImportCommand;
268
268
  const se_StartLoggingCommand = async (input, context) => {
269
269
  const headers = sharedHeaders("StartLogging");
270
270
  let body;
271
- body = JSON.stringify(se_StartLoggingRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
272
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
273
  };
274
274
  exports.se_StartLoggingCommand = se_StartLoggingCommand;
275
275
  const se_StartQueryCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("StartQuery");
277
277
  let body;
278
- body = JSON.stringify(se_StartQueryRequest(input, context));
278
+ body = JSON.stringify((0, smithy_client_1._json)(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  exports.se_StartQueryCommand = se_StartQueryCommand;
282
282
  const se_StopImportCommand = async (input, context) => {
283
283
  const headers = sharedHeaders("StopImport");
284
284
  let body;
285
- body = JSON.stringify(se_StopImportRequest(input, context));
285
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
287
  };
288
288
  exports.se_StopImportCommand = se_StopImportCommand;
289
289
  const se_StopLoggingCommand = async (input, context) => {
290
290
  const headers = sharedHeaders("StopLogging");
291
291
  let body;
292
- body = JSON.stringify(se_StopLoggingRequest(input, context));
292
+ body = JSON.stringify((0, smithy_client_1._json)(input));
293
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
294
  };
295
295
  exports.se_StopLoggingCommand = se_StopLoggingCommand;
296
296
  const se_UpdateChannelCommand = async (input, context) => {
297
297
  const headers = sharedHeaders("UpdateChannel");
298
298
  let body;
299
- body = JSON.stringify(se_UpdateChannelRequest(input, context));
299
+ body = JSON.stringify((0, smithy_client_1._json)(input));
300
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
301
  };
302
302
  exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
303
303
  const se_UpdateEventDataStoreCommand = async (input, context) => {
304
304
  const headers = sharedHeaders("UpdateEventDataStore");
305
305
  let body;
306
- body = JSON.stringify(se_UpdateEventDataStoreRequest(input, context));
306
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
308
  };
309
309
  exports.se_UpdateEventDataStoreCommand = se_UpdateEventDataStoreCommand;
310
310
  const se_UpdateTrailCommand = async (input, context) => {
311
311
  const headers = sharedHeaders("UpdateTrail");
312
312
  let body;
313
- body = JSON.stringify(se_UpdateTrailRequest(input, context));
313
+ body = JSON.stringify((0, smithy_client_1._json)(input));
314
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
315
  };
316
316
  exports.se_UpdateTrailCommand = se_UpdateTrailCommand;
@@ -320,12 +320,12 @@ const de_AddTagsCommand = async (output, context) => {
320
320
  }
321
321
  const data = await parseBody(output.body, context);
322
322
  let contents = {};
323
- contents = de_AddTagsResponse(data, context);
323
+ contents = (0, smithy_client_1._json)(data);
324
324
  const response = {
325
325
  $metadata: deserializeMetadata(output),
326
326
  ...contents,
327
327
  };
328
- return Promise.resolve(response);
328
+ return response;
329
329
  };
330
330
  exports.de_AddTagsCommand = de_AddTagsCommand;
331
331
  const de_AddTagsCommandError = async (output, context) => {
@@ -379,10 +379,9 @@ const de_AddTagsCommandError = async (output, context) => {
379
379
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
380
380
  default:
381
381
  const parsedBody = parsedOutput.body;
382
- (0, smithy_client_1.throwDefaultError)({
382
+ return throwDefaultError({
383
383
  output,
384
384
  parsedBody,
385
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
386
385
  errorCode,
387
386
  });
388
387
  }
@@ -393,12 +392,12 @@ const de_CancelQueryCommand = async (output, context) => {
393
392
  }
394
393
  const data = await parseBody(output.body, context);
395
394
  let contents = {};
396
- contents = de_CancelQueryResponse(data, context);
395
+ contents = (0, smithy_client_1._json)(data);
397
396
  const response = {
398
397
  $metadata: deserializeMetadata(output),
399
398
  ...contents,
400
399
  };
401
- return Promise.resolve(response);
400
+ return response;
402
401
  };
403
402
  exports.de_CancelQueryCommand = de_CancelQueryCommand;
404
403
  const de_CancelQueryCommandError = async (output, context) => {
@@ -440,10 +439,9 @@ const de_CancelQueryCommandError = async (output, context) => {
440
439
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
441
440
  default:
442
441
  const parsedBody = parsedOutput.body;
443
- (0, smithy_client_1.throwDefaultError)({
442
+ return throwDefaultError({
444
443
  output,
445
444
  parsedBody,
446
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
447
445
  errorCode,
448
446
  });
449
447
  }
@@ -454,12 +452,12 @@ const de_CreateChannelCommand = async (output, context) => {
454
452
  }
455
453
  const data = await parseBody(output.body, context);
456
454
  let contents = {};
457
- contents = de_CreateChannelResponse(data, context);
455
+ contents = (0, smithy_client_1._json)(data);
458
456
  const response = {
459
457
  $metadata: deserializeMetadata(output),
460
458
  ...contents,
461
459
  };
462
- return Promise.resolve(response);
460
+ return response;
463
461
  };
464
462
  exports.de_CreateChannelCommand = de_CreateChannelCommand;
465
463
  const de_CreateChannelCommandError = async (output, context) => {
@@ -507,10 +505,9 @@ const de_CreateChannelCommandError = async (output, context) => {
507
505
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
508
506
  default:
509
507
  const parsedBody = parsedOutput.body;
510
- (0, smithy_client_1.throwDefaultError)({
508
+ return throwDefaultError({
511
509
  output,
512
510
  parsedBody,
513
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
514
511
  errorCode,
515
512
  });
516
513
  }
@@ -526,7 +523,7 @@ const de_CreateEventDataStoreCommand = async (output, context) => {
526
523
  $metadata: deserializeMetadata(output),
527
524
  ...contents,
528
525
  };
529
- return Promise.resolve(response);
526
+ return response;
530
527
  };
531
528
  exports.de_CreateEventDataStoreCommand = de_CreateEventDataStoreCommand;
532
529
  const de_CreateEventDataStoreCommandError = async (output, context) => {
@@ -592,10 +589,9 @@ const de_CreateEventDataStoreCommandError = async (output, context) => {
592
589
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
593
590
  default:
594
591
  const parsedBody = parsedOutput.body;
595
- (0, smithy_client_1.throwDefaultError)({
592
+ return throwDefaultError({
596
593
  output,
597
594
  parsedBody,
598
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
599
595
  errorCode,
600
596
  });
601
597
  }
@@ -606,12 +602,12 @@ const de_CreateTrailCommand = async (output, context) => {
606
602
  }
607
603
  const data = await parseBody(output.body, context);
608
604
  let contents = {};
609
- contents = de_CreateTrailResponse(data, context);
605
+ contents = (0, smithy_client_1._json)(data);
610
606
  const response = {
611
607
  $metadata: deserializeMetadata(output),
612
608
  ...contents,
613
609
  };
614
- return Promise.resolve(response);
610
+ return response;
615
611
  };
616
612
  exports.de_CreateTrailCommand = de_CreateTrailCommand;
617
613
  const de_CreateTrailCommandError = async (output, context) => {
@@ -716,10 +712,9 @@ const de_CreateTrailCommandError = async (output, context) => {
716
712
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
717
713
  default:
718
714
  const parsedBody = parsedOutput.body;
719
- (0, smithy_client_1.throwDefaultError)({
715
+ return throwDefaultError({
720
716
  output,
721
717
  parsedBody,
722
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
723
718
  errorCode,
724
719
  });
725
720
  }
@@ -730,12 +725,12 @@ const de_DeleteChannelCommand = async (output, context) => {
730
725
  }
731
726
  const data = await parseBody(output.body, context);
732
727
  let contents = {};
733
- contents = de_DeleteChannelResponse(data, context);
728
+ contents = (0, smithy_client_1._json)(data);
734
729
  const response = {
735
730
  $metadata: deserializeMetadata(output),
736
731
  ...contents,
737
732
  };
738
- return Promise.resolve(response);
733
+ return response;
739
734
  };
740
735
  exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
741
736
  const de_DeleteChannelCommandError = async (output, context) => {
@@ -759,10 +754,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
759
754
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
760
755
  default:
761
756
  const parsedBody = parsedOutput.body;
762
- (0, smithy_client_1.throwDefaultError)({
757
+ return throwDefaultError({
763
758
  output,
764
759
  parsedBody,
765
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
766
760
  errorCode,
767
761
  });
768
762
  }
@@ -773,12 +767,12 @@ const de_DeleteEventDataStoreCommand = async (output, context) => {
773
767
  }
774
768
  const data = await parseBody(output.body, context);
775
769
  let contents = {};
776
- contents = de_DeleteEventDataStoreResponse(data, context);
770
+ contents = (0, smithy_client_1._json)(data);
777
771
  const response = {
778
772
  $metadata: deserializeMetadata(output),
779
773
  ...contents,
780
774
  };
781
- return Promise.resolve(response);
775
+ return response;
782
776
  };
783
777
  exports.de_DeleteEventDataStoreCommand = de_DeleteEventDataStoreCommand;
784
778
  const de_DeleteEventDataStoreCommandError = async (output, context) => {
@@ -826,10 +820,9 @@ const de_DeleteEventDataStoreCommandError = async (output, context) => {
826
820
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
827
821
  default:
828
822
  const parsedBody = parsedOutput.body;
829
- (0, smithy_client_1.throwDefaultError)({
823
+ return throwDefaultError({
830
824
  output,
831
825
  parsedBody,
832
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
833
826
  errorCode,
834
827
  });
835
828
  }
@@ -840,12 +833,12 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
840
833
  }
841
834
  const data = await parseBody(output.body, context);
842
835
  let contents = {};
843
- contents = de_DeleteResourcePolicyResponse(data, context);
836
+ contents = (0, smithy_client_1._json)(data);
844
837
  const response = {
845
838
  $metadata: deserializeMetadata(output),
846
839
  ...contents,
847
840
  };
848
- return Promise.resolve(response);
841
+ return response;
849
842
  };
850
843
  exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
851
844
  const de_DeleteResourcePolicyCommandError = async (output, context) => {
@@ -875,10 +868,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
875
868
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
876
869
  default:
877
870
  const parsedBody = parsedOutput.body;
878
- (0, smithy_client_1.throwDefaultError)({
871
+ return throwDefaultError({
879
872
  output,
880
873
  parsedBody,
881
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
882
874
  errorCode,
883
875
  });
884
876
  }
@@ -889,12 +881,12 @@ const de_DeleteTrailCommand = async (output, context) => {
889
881
  }
890
882
  const data = await parseBody(output.body, context);
891
883
  let contents = {};
892
- contents = de_DeleteTrailResponse(data, context);
884
+ contents = (0, smithy_client_1._json)(data);
893
885
  const response = {
894
886
  $metadata: deserializeMetadata(output),
895
887
  ...contents,
896
888
  };
897
- return Promise.resolve(response);
889
+ return response;
898
890
  };
899
891
  exports.de_DeleteTrailCommand = de_DeleteTrailCommand;
900
892
  const de_DeleteTrailCommandError = async (output, context) => {
@@ -936,10 +928,9 @@ const de_DeleteTrailCommandError = async (output, context) => {
936
928
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
937
929
  default:
938
930
  const parsedBody = parsedOutput.body;
939
- (0, smithy_client_1.throwDefaultError)({
931
+ return throwDefaultError({
940
932
  output,
941
933
  parsedBody,
942
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
943
934
  errorCode,
944
935
  });
945
936
  }
@@ -950,12 +941,12 @@ const de_DeregisterOrganizationDelegatedAdminCommand = async (output, context) =
950
941
  }
951
942
  const data = await parseBody(output.body, context);
952
943
  let contents = {};
953
- contents = de_DeregisterOrganizationDelegatedAdminResponse(data, context);
944
+ contents = (0, smithy_client_1._json)(data);
954
945
  const response = {
955
946
  $metadata: deserializeMetadata(output),
956
947
  ...contents,
957
948
  };
958
- return Promise.resolve(response);
949
+ return response;
959
950
  };
960
951
  exports.de_DeregisterOrganizationDelegatedAdminCommand = de_DeregisterOrganizationDelegatedAdminCommand;
961
952
  const de_DeregisterOrganizationDelegatedAdminCommandError = async (output, context) => {
@@ -1000,10 +991,9 @@ const de_DeregisterOrganizationDelegatedAdminCommandError = async (output, conte
1000
991
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1001
992
  default:
1002
993
  const parsedBody = parsedOutput.body;
1003
- (0, smithy_client_1.throwDefaultError)({
994
+ return throwDefaultError({
1004
995
  output,
1005
996
  parsedBody,
1006
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1007
997
  errorCode,
1008
998
  });
1009
999
  }
@@ -1019,7 +1009,7 @@ const de_DescribeQueryCommand = async (output, context) => {
1019
1009
  $metadata: deserializeMetadata(output),
1020
1010
  ...contents,
1021
1011
  };
1022
- return Promise.resolve(response);
1012
+ return response;
1023
1013
  };
1024
1014
  exports.de_DescribeQueryCommand = de_DescribeQueryCommand;
1025
1015
  const de_DescribeQueryCommandError = async (output, context) => {
@@ -1055,10 +1045,9 @@ const de_DescribeQueryCommandError = async (output, context) => {
1055
1045
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1056
1046
  default:
1057
1047
  const parsedBody = parsedOutput.body;
1058
- (0, smithy_client_1.throwDefaultError)({
1048
+ return throwDefaultError({
1059
1049
  output,
1060
1050
  parsedBody,
1061
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1062
1051
  errorCode,
1063
1052
  });
1064
1053
  }
@@ -1069,12 +1058,12 @@ const de_DescribeTrailsCommand = async (output, context) => {
1069
1058
  }
1070
1059
  const data = await parseBody(output.body, context);
1071
1060
  let contents = {};
1072
- contents = de_DescribeTrailsResponse(data, context);
1061
+ contents = (0, smithy_client_1._json)(data);
1073
1062
  const response = {
1074
1063
  $metadata: deserializeMetadata(output),
1075
1064
  ...contents,
1076
1065
  };
1077
- return Promise.resolve(response);
1066
+ return response;
1078
1067
  };
1079
1068
  exports.de_DescribeTrailsCommand = de_DescribeTrailsCommand;
1080
1069
  const de_DescribeTrailsCommandError = async (output, context) => {
@@ -1098,10 +1087,9 @@ const de_DescribeTrailsCommandError = async (output, context) => {
1098
1087
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1099
1088
  default:
1100
1089
  const parsedBody = parsedOutput.body;
1101
- (0, smithy_client_1.throwDefaultError)({
1090
+ return throwDefaultError({
1102
1091
  output,
1103
1092
  parsedBody,
1104
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1105
1093
  errorCode,
1106
1094
  });
1107
1095
  }
@@ -1117,7 +1105,7 @@ const de_GetChannelCommand = async (output, context) => {
1117
1105
  $metadata: deserializeMetadata(output),
1118
1106
  ...contents,
1119
1107
  };
1120
- return Promise.resolve(response);
1108
+ return response;
1121
1109
  };
1122
1110
  exports.de_GetChannelCommand = de_GetChannelCommand;
1123
1111
  const de_GetChannelCommandError = async (output, context) => {
@@ -1141,10 +1129,9 @@ const de_GetChannelCommandError = async (output, context) => {
1141
1129
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1142
1130
  default:
1143
1131
  const parsedBody = parsedOutput.body;
1144
- (0, smithy_client_1.throwDefaultError)({
1132
+ return throwDefaultError({
1145
1133
  output,
1146
1134
  parsedBody,
1147
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1148
1135
  errorCode,
1149
1136
  });
1150
1137
  }
@@ -1160,7 +1147,7 @@ const de_GetEventDataStoreCommand = async (output, context) => {
1160
1147
  $metadata: deserializeMetadata(output),
1161
1148
  ...contents,
1162
1149
  };
1163
- return Promise.resolve(response);
1150
+ return response;
1164
1151
  };
1165
1152
  exports.de_GetEventDataStoreCommand = de_GetEventDataStoreCommand;
1166
1153
  const de_GetEventDataStoreCommandError = async (output, context) => {
@@ -1190,10 +1177,9 @@ const de_GetEventDataStoreCommandError = async (output, context) => {
1190
1177
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1191
1178
  default:
1192
1179
  const parsedBody = parsedOutput.body;
1193
- (0, smithy_client_1.throwDefaultError)({
1180
+ return throwDefaultError({
1194
1181
  output,
1195
1182
  parsedBody,
1196
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1197
1183
  errorCode,
1198
1184
  });
1199
1185
  }
@@ -1204,12 +1190,12 @@ const de_GetEventSelectorsCommand = async (output, context) => {
1204
1190
  }
1205
1191
  const data = await parseBody(output.body, context);
1206
1192
  let contents = {};
1207
- contents = de_GetEventSelectorsResponse(data, context);
1193
+ contents = (0, smithy_client_1._json)(data);
1208
1194
  const response = {
1209
1195
  $metadata: deserializeMetadata(output),
1210
1196
  ...contents,
1211
1197
  };
1212
- return Promise.resolve(response);
1198
+ return response;
1213
1199
  };
1214
1200
  exports.de_GetEventSelectorsCommand = de_GetEventSelectorsCommand;
1215
1201
  const de_GetEventSelectorsCommandError = async (output, context) => {
@@ -1239,10 +1225,9 @@ const de_GetEventSelectorsCommandError = async (output, context) => {
1239
1225
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1240
1226
  default:
1241
1227
  const parsedBody = parsedOutput.body;
1242
- (0, smithy_client_1.throwDefaultError)({
1228
+ return throwDefaultError({
1243
1229
  output,
1244
1230
  parsedBody,
1245
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1246
1231
  errorCode,
1247
1232
  });
1248
1233
  }
@@ -1258,7 +1243,7 @@ const de_GetImportCommand = async (output, context) => {
1258
1243
  $metadata: deserializeMetadata(output),
1259
1244
  ...contents,
1260
1245
  };
1261
- return Promise.resolve(response);
1246
+ return response;
1262
1247
  };
1263
1248
  exports.de_GetImportCommand = de_GetImportCommand;
1264
1249
  const de_GetImportCommandError = async (output, context) => {
@@ -1282,10 +1267,9 @@ const de_GetImportCommandError = async (output, context) => {
1282
1267
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1283
1268
  default:
1284
1269
  const parsedBody = parsedOutput.body;
1285
- (0, smithy_client_1.throwDefaultError)({
1270
+ return throwDefaultError({
1286
1271
  output,
1287
1272
  parsedBody,
1288
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1289
1273
  errorCode,
1290
1274
  });
1291
1275
  }
@@ -1296,12 +1280,12 @@ const de_GetInsightSelectorsCommand = async (output, context) => {
1296
1280
  }
1297
1281
  const data = await parseBody(output.body, context);
1298
1282
  let contents = {};
1299
- contents = de_GetInsightSelectorsResponse(data, context);
1283
+ contents = (0, smithy_client_1._json)(data);
1300
1284
  const response = {
1301
1285
  $metadata: deserializeMetadata(output),
1302
1286
  ...contents,
1303
1287
  };
1304
- return Promise.resolve(response);
1288
+ return response;
1305
1289
  };
1306
1290
  exports.de_GetInsightSelectorsCommand = de_GetInsightSelectorsCommand;
1307
1291
  const de_GetInsightSelectorsCommandError = async (output, context) => {
@@ -1334,10 +1318,9 @@ const de_GetInsightSelectorsCommandError = async (output, context) => {
1334
1318
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1335
1319
  default:
1336
1320
  const parsedBody = parsedOutput.body;
1337
- (0, smithy_client_1.throwDefaultError)({
1321
+ return throwDefaultError({
1338
1322
  output,
1339
1323
  parsedBody,
1340
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1341
1324
  errorCode,
1342
1325
  });
1343
1326
  }
@@ -1348,12 +1331,12 @@ const de_GetQueryResultsCommand = async (output, context) => {
1348
1331
  }
1349
1332
  const data = await parseBody(output.body, context);
1350
1333
  let contents = {};
1351
- contents = de_GetQueryResultsResponse(data, context);
1334
+ contents = (0, smithy_client_1._json)(data);
1352
1335
  const response = {
1353
1336
  $metadata: deserializeMetadata(output),
1354
1337
  ...contents,
1355
1338
  };
1356
- return Promise.resolve(response);
1339
+ return response;
1357
1340
  };
1358
1341
  exports.de_GetQueryResultsCommand = de_GetQueryResultsCommand;
1359
1342
  const de_GetQueryResultsCommandError = async (output, context) => {
@@ -1398,10 +1381,9 @@ const de_GetQueryResultsCommandError = async (output, context) => {
1398
1381
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1399
1382
  default:
1400
1383
  const parsedBody = parsedOutput.body;
1401
- (0, smithy_client_1.throwDefaultError)({
1384
+ return throwDefaultError({
1402
1385
  output,
1403
1386
  parsedBody,
1404
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1405
1387
  errorCode,
1406
1388
  });
1407
1389
  }
@@ -1412,12 +1394,12 @@ const de_GetResourcePolicyCommand = async (output, context) => {
1412
1394
  }
1413
1395
  const data = await parseBody(output.body, context);
1414
1396
  let contents = {};
1415
- contents = de_GetResourcePolicyResponse(data, context);
1397
+ contents = (0, smithy_client_1._json)(data);
1416
1398
  const response = {
1417
1399
  $metadata: deserializeMetadata(output),
1418
1400
  ...contents,
1419
1401
  };
1420
- return Promise.resolve(response);
1402
+ return response;
1421
1403
  };
1422
1404
  exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
1423
1405
  const de_GetResourcePolicyCommandError = async (output, context) => {
@@ -1447,10 +1429,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
1447
1429
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1448
1430
  default:
1449
1431
  const parsedBody = parsedOutput.body;
1450
- (0, smithy_client_1.throwDefaultError)({
1432
+ return throwDefaultError({
1451
1433
  output,
1452
1434
  parsedBody,
1453
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1454
1435
  errorCode,
1455
1436
  });
1456
1437
  }
@@ -1461,12 +1442,12 @@ const de_GetTrailCommand = async (output, context) => {
1461
1442
  }
1462
1443
  const data = await parseBody(output.body, context);
1463
1444
  let contents = {};
1464
- contents = de_GetTrailResponse(data, context);
1445
+ contents = (0, smithy_client_1._json)(data);
1465
1446
  const response = {
1466
1447
  $metadata: deserializeMetadata(output),
1467
1448
  ...contents,
1468
1449
  };
1469
- return Promise.resolve(response);
1450
+ return response;
1470
1451
  };
1471
1452
  exports.de_GetTrailCommand = de_GetTrailCommand;
1472
1453
  const de_GetTrailCommandError = async (output, context) => {
@@ -1493,10 +1474,9 @@ const de_GetTrailCommandError = async (output, context) => {
1493
1474
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1494
1475
  default:
1495
1476
  const parsedBody = parsedOutput.body;
1496
- (0, smithy_client_1.throwDefaultError)({
1477
+ return throwDefaultError({
1497
1478
  output,
1498
1479
  parsedBody,
1499
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1500
1480
  errorCode,
1501
1481
  });
1502
1482
  }
@@ -1512,7 +1492,7 @@ const de_GetTrailStatusCommand = async (output, context) => {
1512
1492
  $metadata: deserializeMetadata(output),
1513
1493
  ...contents,
1514
1494
  };
1515
- return Promise.resolve(response);
1495
+ return response;
1516
1496
  };
1517
1497
  exports.de_GetTrailStatusCommand = de_GetTrailStatusCommand;
1518
1498
  const de_GetTrailStatusCommandError = async (output, context) => {
@@ -1539,10 +1519,9 @@ const de_GetTrailStatusCommandError = async (output, context) => {
1539
1519
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1540
1520
  default:
1541
1521
  const parsedBody = parsedOutput.body;
1542
- (0, smithy_client_1.throwDefaultError)({
1522
+ return throwDefaultError({
1543
1523
  output,
1544
1524
  parsedBody,
1545
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1546
1525
  errorCode,
1547
1526
  });
1548
1527
  }
@@ -1553,12 +1532,12 @@ const de_ListChannelsCommand = async (output, context) => {
1553
1532
  }
1554
1533
  const data = await parseBody(output.body, context);
1555
1534
  let contents = {};
1556
- contents = de_ListChannelsResponse(data, context);
1535
+ contents = (0, smithy_client_1._json)(data);
1557
1536
  const response = {
1558
1537
  $metadata: deserializeMetadata(output),
1559
1538
  ...contents,
1560
1539
  };
1561
- return Promise.resolve(response);
1540
+ return response;
1562
1541
  };
1563
1542
  exports.de_ListChannelsCommand = de_ListChannelsCommand;
1564
1543
  const de_ListChannelsCommandError = async (output, context) => {
@@ -1579,10 +1558,9 @@ const de_ListChannelsCommandError = async (output, context) => {
1579
1558
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1580
1559
  default:
1581
1560
  const parsedBody = parsedOutput.body;
1582
- (0, smithy_client_1.throwDefaultError)({
1561
+ return throwDefaultError({
1583
1562
  output,
1584
1563
  parsedBody,
1585
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1586
1564
  errorCode,
1587
1565
  });
1588
1566
  }
@@ -1598,7 +1576,7 @@ const de_ListEventDataStoresCommand = async (output, context) => {
1598
1576
  $metadata: deserializeMetadata(output),
1599
1577
  ...contents,
1600
1578
  };
1601
- return Promise.resolve(response);
1579
+ return response;
1602
1580
  };
1603
1581
  exports.de_ListEventDataStoresCommand = de_ListEventDataStoresCommand;
1604
1582
  const de_ListEventDataStoresCommandError = async (output, context) => {
@@ -1625,10 +1603,9 @@ const de_ListEventDataStoresCommandError = async (output, context) => {
1625
1603
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1626
1604
  default:
1627
1605
  const parsedBody = parsedOutput.body;
1628
- (0, smithy_client_1.throwDefaultError)({
1606
+ return throwDefaultError({
1629
1607
  output,
1630
1608
  parsedBody,
1631
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1632
1609
  errorCode,
1633
1610
  });
1634
1611
  }
@@ -1644,7 +1621,7 @@ const de_ListImportFailuresCommand = async (output, context) => {
1644
1621
  $metadata: deserializeMetadata(output),
1645
1622
  ...contents,
1646
1623
  };
1647
- return Promise.resolve(response);
1624
+ return response;
1648
1625
  };
1649
1626
  exports.de_ListImportFailuresCommand = de_ListImportFailuresCommand;
1650
1627
  const de_ListImportFailuresCommandError = async (output, context) => {
@@ -1665,10 +1642,9 @@ const de_ListImportFailuresCommandError = async (output, context) => {
1665
1642
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1666
1643
  default:
1667
1644
  const parsedBody = parsedOutput.body;
1668
- (0, smithy_client_1.throwDefaultError)({
1645
+ return throwDefaultError({
1669
1646
  output,
1670
1647
  parsedBody,
1671
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1672
1648
  errorCode,
1673
1649
  });
1674
1650
  }
@@ -1684,7 +1660,7 @@ const de_ListImportsCommand = async (output, context) => {
1684
1660
  $metadata: deserializeMetadata(output),
1685
1661
  ...contents,
1686
1662
  };
1687
- return Promise.resolve(response);
1663
+ return response;
1688
1664
  };
1689
1665
  exports.de_ListImportsCommand = de_ListImportsCommand;
1690
1666
  const de_ListImportsCommandError = async (output, context) => {
@@ -1711,10 +1687,9 @@ const de_ListImportsCommandError = async (output, context) => {
1711
1687
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1712
1688
  default:
1713
1689
  const parsedBody = parsedOutput.body;
1714
- (0, smithy_client_1.throwDefaultError)({
1690
+ return throwDefaultError({
1715
1691
  output,
1716
1692
  parsedBody,
1717
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1718
1693
  errorCode,
1719
1694
  });
1720
1695
  }
@@ -1730,7 +1705,7 @@ const de_ListPublicKeysCommand = async (output, context) => {
1730
1705
  $metadata: deserializeMetadata(output),
1731
1706
  ...contents,
1732
1707
  };
1733
- return Promise.resolve(response);
1708
+ return response;
1734
1709
  };
1735
1710
  exports.de_ListPublicKeysCommand = de_ListPublicKeysCommand;
1736
1711
  const de_ListPublicKeysCommandError = async (output, context) => {
@@ -1754,10 +1729,9 @@ const de_ListPublicKeysCommandError = async (output, context) => {
1754
1729
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1755
1730
  default:
1756
1731
  const parsedBody = parsedOutput.body;
1757
- (0, smithy_client_1.throwDefaultError)({
1732
+ return throwDefaultError({
1758
1733
  output,
1759
1734
  parsedBody,
1760
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1761
1735
  errorCode,
1762
1736
  });
1763
1737
  }
@@ -1773,7 +1747,7 @@ const de_ListQueriesCommand = async (output, context) => {
1773
1747
  $metadata: deserializeMetadata(output),
1774
1748
  ...contents,
1775
1749
  };
1776
- return Promise.resolve(response);
1750
+ return response;
1777
1751
  };
1778
1752
  exports.de_ListQueriesCommand = de_ListQueriesCommand;
1779
1753
  const de_ListQueriesCommandError = async (output, context) => {
@@ -1818,10 +1792,9 @@ const de_ListQueriesCommandError = async (output, context) => {
1818
1792
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1819
1793
  default:
1820
1794
  const parsedBody = parsedOutput.body;
1821
- (0, smithy_client_1.throwDefaultError)({
1795
+ return throwDefaultError({
1822
1796
  output,
1823
1797
  parsedBody,
1824
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1825
1798
  errorCode,
1826
1799
  });
1827
1800
  }
@@ -1832,12 +1805,12 @@ const de_ListTagsCommand = async (output, context) => {
1832
1805
  }
1833
1806
  const data = await parseBody(output.body, context);
1834
1807
  let contents = {};
1835
- contents = de_ListTagsResponse(data, context);
1808
+ contents = (0, smithy_client_1._json)(data);
1836
1809
  const response = {
1837
1810
  $metadata: deserializeMetadata(output),
1838
1811
  ...contents,
1839
1812
  };
1840
- return Promise.resolve(response);
1813
+ return response;
1841
1814
  };
1842
1815
  exports.de_ListTagsCommand = de_ListTagsCommand;
1843
1816
  const de_ListTagsCommandError = async (output, context) => {
@@ -1879,10 +1852,9 @@ const de_ListTagsCommandError = async (output, context) => {
1879
1852
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1880
1853
  default:
1881
1854
  const parsedBody = parsedOutput.body;
1882
- (0, smithy_client_1.throwDefaultError)({
1855
+ return throwDefaultError({
1883
1856
  output,
1884
1857
  parsedBody,
1885
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1886
1858
  errorCode,
1887
1859
  });
1888
1860
  }
@@ -1893,12 +1865,12 @@ const de_ListTrailsCommand = async (output, context) => {
1893
1865
  }
1894
1866
  const data = await parseBody(output.body, context);
1895
1867
  let contents = {};
1896
- contents = de_ListTrailsResponse(data, context);
1868
+ contents = (0, smithy_client_1._json)(data);
1897
1869
  const response = {
1898
1870
  $metadata: deserializeMetadata(output),
1899
1871
  ...contents,
1900
1872
  };
1901
- return Promise.resolve(response);
1873
+ return response;
1902
1874
  };
1903
1875
  exports.de_ListTrailsCommand = de_ListTrailsCommand;
1904
1876
  const de_ListTrailsCommandError = async (output, context) => {
@@ -1916,10 +1888,9 @@ const de_ListTrailsCommandError = async (output, context) => {
1916
1888
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1917
1889
  default:
1918
1890
  const parsedBody = parsedOutput.body;
1919
- (0, smithy_client_1.throwDefaultError)({
1891
+ return throwDefaultError({
1920
1892
  output,
1921
1893
  parsedBody,
1922
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1923
1894
  errorCode,
1924
1895
  });
1925
1896
  }
@@ -1935,7 +1906,7 @@ const de_LookupEventsCommand = async (output, context) => {
1935
1906
  $metadata: deserializeMetadata(output),
1936
1907
  ...contents,
1937
1908
  };
1938
- return Promise.resolve(response);
1909
+ return response;
1939
1910
  };
1940
1911
  exports.de_LookupEventsCommand = de_LookupEventsCommand;
1941
1912
  const de_LookupEventsCommandError = async (output, context) => {
@@ -1968,10 +1939,9 @@ const de_LookupEventsCommandError = async (output, context) => {
1968
1939
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1969
1940
  default:
1970
1941
  const parsedBody = parsedOutput.body;
1971
- (0, smithy_client_1.throwDefaultError)({
1942
+ return throwDefaultError({
1972
1943
  output,
1973
1944
  parsedBody,
1974
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
1975
1945
  errorCode,
1976
1946
  });
1977
1947
  }
@@ -1982,12 +1952,12 @@ const de_PutEventSelectorsCommand = async (output, context) => {
1982
1952
  }
1983
1953
  const data = await parseBody(output.body, context);
1984
1954
  let contents = {};
1985
- contents = de_PutEventSelectorsResponse(data, context);
1955
+ contents = (0, smithy_client_1._json)(data);
1986
1956
  const response = {
1987
1957
  $metadata: deserializeMetadata(output),
1988
1958
  ...contents,
1989
1959
  };
1990
- return Promise.resolve(response);
1960
+ return response;
1991
1961
  };
1992
1962
  exports.de_PutEventSelectorsCommand = de_PutEventSelectorsCommand;
1993
1963
  const de_PutEventSelectorsCommandError = async (output, context) => {
@@ -2029,10 +1999,9 @@ const de_PutEventSelectorsCommandError = async (output, context) => {
2029
1999
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2030
2000
  default:
2031
2001
  const parsedBody = parsedOutput.body;
2032
- (0, smithy_client_1.throwDefaultError)({
2002
+ return throwDefaultError({
2033
2003
  output,
2034
2004
  parsedBody,
2035
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2036
2005
  errorCode,
2037
2006
  });
2038
2007
  }
@@ -2043,12 +2012,12 @@ const de_PutInsightSelectorsCommand = async (output, context) => {
2043
2012
  }
2044
2013
  const data = await parseBody(output.body, context);
2045
2014
  let contents = {};
2046
- contents = de_PutInsightSelectorsResponse(data, context);
2015
+ contents = (0, smithy_client_1._json)(data);
2047
2016
  const response = {
2048
2017
  $metadata: deserializeMetadata(output),
2049
2018
  ...contents,
2050
2019
  };
2051
- return Promise.resolve(response);
2020
+ return response;
2052
2021
  };
2053
2022
  exports.de_PutInsightSelectorsCommand = de_PutInsightSelectorsCommand;
2054
2023
  const de_PutInsightSelectorsCommandError = async (output, context) => {
@@ -2099,10 +2068,9 @@ const de_PutInsightSelectorsCommandError = async (output, context) => {
2099
2068
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2100
2069
  default:
2101
2070
  const parsedBody = parsedOutput.body;
2102
- (0, smithy_client_1.throwDefaultError)({
2071
+ return throwDefaultError({
2103
2072
  output,
2104
2073
  parsedBody,
2105
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2106
2074
  errorCode,
2107
2075
  });
2108
2076
  }
@@ -2113,12 +2081,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
2113
2081
  }
2114
2082
  const data = await parseBody(output.body, context);
2115
2083
  let contents = {};
2116
- contents = de_PutResourcePolicyResponse(data, context);
2084
+ contents = (0, smithy_client_1._json)(data);
2117
2085
  const response = {
2118
2086
  $metadata: deserializeMetadata(output),
2119
2087
  ...contents,
2120
2088
  };
2121
- return Promise.resolve(response);
2089
+ return response;
2122
2090
  };
2123
2091
  exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
2124
2092
  const de_PutResourcePolicyCommandError = async (output, context) => {
@@ -2148,10 +2116,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
2148
2116
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2149
2117
  default:
2150
2118
  const parsedBody = parsedOutput.body;
2151
- (0, smithy_client_1.throwDefaultError)({
2119
+ return throwDefaultError({
2152
2120
  output,
2153
2121
  parsedBody,
2154
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2155
2122
  errorCode,
2156
2123
  });
2157
2124
  }
@@ -2162,12 +2129,12 @@ const de_RegisterOrganizationDelegatedAdminCommand = async (output, context) =>
2162
2129
  }
2163
2130
  const data = await parseBody(output.body, context);
2164
2131
  let contents = {};
2165
- contents = de_RegisterOrganizationDelegatedAdminResponse(data, context);
2132
+ contents = (0, smithy_client_1._json)(data);
2166
2133
  const response = {
2167
2134
  $metadata: deserializeMetadata(output),
2168
2135
  ...contents,
2169
2136
  };
2170
- return Promise.resolve(response);
2137
+ return response;
2171
2138
  };
2172
2139
  exports.de_RegisterOrganizationDelegatedAdminCommand = de_RegisterOrganizationDelegatedAdminCommand;
2173
2140
  const de_RegisterOrganizationDelegatedAdminCommandError = async (output, context) => {
@@ -2218,10 +2185,9 @@ const de_RegisterOrganizationDelegatedAdminCommandError = async (output, context
2218
2185
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2219
2186
  default:
2220
2187
  const parsedBody = parsedOutput.body;
2221
- (0, smithy_client_1.throwDefaultError)({
2188
+ return throwDefaultError({
2222
2189
  output,
2223
2190
  parsedBody,
2224
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2225
2191
  errorCode,
2226
2192
  });
2227
2193
  }
@@ -2232,12 +2198,12 @@ const de_RemoveTagsCommand = async (output, context) => {
2232
2198
  }
2233
2199
  const data = await parseBody(output.body, context);
2234
2200
  let contents = {};
2235
- contents = de_RemoveTagsResponse(data, context);
2201
+ contents = (0, smithy_client_1._json)(data);
2236
2202
  const response = {
2237
2203
  $metadata: deserializeMetadata(output),
2238
2204
  ...contents,
2239
2205
  };
2240
- return Promise.resolve(response);
2206
+ return response;
2241
2207
  };
2242
2208
  exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
2243
2209
  const de_RemoveTagsCommandError = async (output, context) => {
@@ -2285,10 +2251,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
2285
2251
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2286
2252
  default:
2287
2253
  const parsedBody = parsedOutput.body;
2288
- (0, smithy_client_1.throwDefaultError)({
2254
+ return throwDefaultError({
2289
2255
  output,
2290
2256
  parsedBody,
2291
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2292
2257
  errorCode,
2293
2258
  });
2294
2259
  }
@@ -2304,7 +2269,7 @@ const de_RestoreEventDataStoreCommand = async (output, context) => {
2304
2269
  $metadata: deserializeMetadata(output),
2305
2270
  ...contents,
2306
2271
  };
2307
- return Promise.resolve(response);
2272
+ return response;
2308
2273
  };
2309
2274
  exports.de_RestoreEventDataStoreCommand = de_RestoreEventDataStoreCommand;
2310
2275
  const de_RestoreEventDataStoreCommandError = async (output, context) => {
@@ -2355,10 +2320,9 @@ const de_RestoreEventDataStoreCommandError = async (output, context) => {
2355
2320
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2356
2321
  default:
2357
2322
  const parsedBody = parsedOutput.body;
2358
- (0, smithy_client_1.throwDefaultError)({
2323
+ return throwDefaultError({
2359
2324
  output,
2360
2325
  parsedBody,
2361
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2362
2326
  errorCode,
2363
2327
  });
2364
2328
  }
@@ -2374,7 +2338,7 @@ const de_StartImportCommand = async (output, context) => {
2374
2338
  $metadata: deserializeMetadata(output),
2375
2339
  ...contents,
2376
2340
  };
2377
- return Promise.resolve(response);
2341
+ return response;
2378
2342
  };
2379
2343
  exports.de_StartImportCommand = de_StartImportCommand;
2380
2344
  const de_StartImportCommandError = async (output, context) => {
@@ -2422,10 +2386,9 @@ const de_StartImportCommandError = async (output, context) => {
2422
2386
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2423
2387
  default:
2424
2388
  const parsedBody = parsedOutput.body;
2425
- (0, smithy_client_1.throwDefaultError)({
2389
+ return throwDefaultError({
2426
2390
  output,
2427
2391
  parsedBody,
2428
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2429
2392
  errorCode,
2430
2393
  });
2431
2394
  }
@@ -2436,12 +2399,12 @@ const de_StartLoggingCommand = async (output, context) => {
2436
2399
  }
2437
2400
  const data = await parseBody(output.body, context);
2438
2401
  let contents = {};
2439
- contents = de_StartLoggingResponse(data, context);
2402
+ contents = (0, smithy_client_1._json)(data);
2440
2403
  const response = {
2441
2404
  $metadata: deserializeMetadata(output),
2442
2405
  ...contents,
2443
2406
  };
2444
- return Promise.resolve(response);
2407
+ return response;
2445
2408
  };
2446
2409
  exports.de_StartLoggingCommand = de_StartLoggingCommand;
2447
2410
  const de_StartLoggingCommandError = async (output, context) => {
@@ -2483,10 +2446,9 @@ const de_StartLoggingCommandError = async (output, context) => {
2483
2446
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2484
2447
  default:
2485
2448
  const parsedBody = parsedOutput.body;
2486
- (0, smithy_client_1.throwDefaultError)({
2449
+ return throwDefaultError({
2487
2450
  output,
2488
2451
  parsedBody,
2489
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2490
2452
  errorCode,
2491
2453
  });
2492
2454
  }
@@ -2497,12 +2459,12 @@ const de_StartQueryCommand = async (output, context) => {
2497
2459
  }
2498
2460
  const data = await parseBody(output.body, context);
2499
2461
  let contents = {};
2500
- contents = de_StartQueryResponse(data, context);
2462
+ contents = (0, smithy_client_1._json)(data);
2501
2463
  const response = {
2502
2464
  $metadata: deserializeMetadata(output),
2503
2465
  ...contents,
2504
2466
  };
2505
- return Promise.resolve(response);
2467
+ return response;
2506
2468
  };
2507
2469
  exports.de_StartQueryCommand = de_StartQueryCommand;
2508
2470
  const de_StartQueryCommandError = async (output, context) => {
@@ -2556,10 +2518,9 @@ const de_StartQueryCommandError = async (output, context) => {
2556
2518
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2557
2519
  default:
2558
2520
  const parsedBody = parsedOutput.body;
2559
- (0, smithy_client_1.throwDefaultError)({
2521
+ return throwDefaultError({
2560
2522
  output,
2561
2523
  parsedBody,
2562
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2563
2524
  errorCode,
2564
2525
  });
2565
2526
  }
@@ -2575,7 +2536,7 @@ const de_StopImportCommand = async (output, context) => {
2575
2536
  $metadata: deserializeMetadata(output),
2576
2537
  ...contents,
2577
2538
  };
2578
- return Promise.resolve(response);
2539
+ return response;
2579
2540
  };
2580
2541
  exports.de_StopImportCommand = de_StopImportCommand;
2581
2542
  const de_StopImportCommandError = async (output, context) => {
@@ -2599,10 +2560,9 @@ const de_StopImportCommandError = async (output, context) => {
2599
2560
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2600
2561
  default:
2601
2562
  const parsedBody = parsedOutput.body;
2602
- (0, smithy_client_1.throwDefaultError)({
2563
+ return throwDefaultError({
2603
2564
  output,
2604
2565
  parsedBody,
2605
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2606
2566
  errorCode,
2607
2567
  });
2608
2568
  }
@@ -2613,12 +2573,12 @@ const de_StopLoggingCommand = async (output, context) => {
2613
2573
  }
2614
2574
  const data = await parseBody(output.body, context);
2615
2575
  let contents = {};
2616
- contents = de_StopLoggingResponse(data, context);
2576
+ contents = (0, smithy_client_1._json)(data);
2617
2577
  const response = {
2618
2578
  $metadata: deserializeMetadata(output),
2619
2579
  ...contents,
2620
2580
  };
2621
- return Promise.resolve(response);
2581
+ return response;
2622
2582
  };
2623
2583
  exports.de_StopLoggingCommand = de_StopLoggingCommand;
2624
2584
  const de_StopLoggingCommandError = async (output, context) => {
@@ -2660,10 +2620,9 @@ const de_StopLoggingCommandError = async (output, context) => {
2660
2620
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2661
2621
  default:
2662
2622
  const parsedBody = parsedOutput.body;
2663
- (0, smithy_client_1.throwDefaultError)({
2623
+ return throwDefaultError({
2664
2624
  output,
2665
2625
  parsedBody,
2666
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2667
2626
  errorCode,
2668
2627
  });
2669
2628
  }
@@ -2674,12 +2633,12 @@ const de_UpdateChannelCommand = async (output, context) => {
2674
2633
  }
2675
2634
  const data = await parseBody(output.body, context);
2676
2635
  let contents = {};
2677
- contents = de_UpdateChannelResponse(data, context);
2636
+ contents = (0, smithy_client_1._json)(data);
2678
2637
  const response = {
2679
2638
  $metadata: deserializeMetadata(output),
2680
2639
  ...contents,
2681
2640
  };
2682
- return Promise.resolve(response);
2641
+ return response;
2683
2642
  };
2684
2643
  exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
2685
2644
  const de_UpdateChannelCommandError = async (output, context) => {
@@ -2721,10 +2680,9 @@ const de_UpdateChannelCommandError = async (output, context) => {
2721
2680
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2722
2681
  default:
2723
2682
  const parsedBody = parsedOutput.body;
2724
- (0, smithy_client_1.throwDefaultError)({
2683
+ return throwDefaultError({
2725
2684
  output,
2726
2685
  parsedBody,
2727
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2728
2686
  errorCode,
2729
2687
  });
2730
2688
  }
@@ -2740,7 +2698,7 @@ const de_UpdateEventDataStoreCommand = async (output, context) => {
2740
2698
  $metadata: deserializeMetadata(output),
2741
2699
  ...contents,
2742
2700
  };
2743
- return Promise.resolve(response);
2701
+ return response;
2744
2702
  };
2745
2703
  exports.de_UpdateEventDataStoreCommand = de_UpdateEventDataStoreCommand;
2746
2704
  const de_UpdateEventDataStoreCommandError = async (output, context) => {
@@ -2806,10 +2764,9 @@ const de_UpdateEventDataStoreCommandError = async (output, context) => {
2806
2764
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2807
2765
  default:
2808
2766
  const parsedBody = parsedOutput.body;
2809
- (0, smithy_client_1.throwDefaultError)({
2767
+ return throwDefaultError({
2810
2768
  output,
2811
2769
  parsedBody,
2812
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2813
2770
  errorCode,
2814
2771
  });
2815
2772
  }
@@ -2820,12 +2777,12 @@ const de_UpdateTrailCommand = async (output, context) => {
2820
2777
  }
2821
2778
  const data = await parseBody(output.body, context);
2822
2779
  let contents = {};
2823
- contents = de_UpdateTrailResponse(data, context);
2780
+ contents = (0, smithy_client_1._json)(data);
2824
2781
  const response = {
2825
2782
  $metadata: deserializeMetadata(output),
2826
2783
  ...contents,
2827
2784
  };
2828
- return Promise.resolve(response);
2785
+ return response;
2829
2786
  };
2830
2787
  exports.de_UpdateTrailCommand = de_UpdateTrailCommand;
2831
2788
  const de_UpdateTrailCommandError = async (output, context) => {
@@ -2933,17 +2890,16 @@ const de_UpdateTrailCommandError = async (output, context) => {
2933
2890
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2934
2891
  default:
2935
2892
  const parsedBody = parsedOutput.body;
2936
- (0, smithy_client_1.throwDefaultError)({
2893
+ return throwDefaultError({
2937
2894
  output,
2938
2895
  parsedBody,
2939
- exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
2940
2896
  errorCode,
2941
2897
  });
2942
2898
  }
2943
2899
  };
2944
2900
  const de_AccountHasOngoingImportExceptionRes = async (parsedOutput, context) => {
2945
2901
  const body = parsedOutput.body;
2946
- const deserialized = de_AccountHasOngoingImportException(body, context);
2902
+ const deserialized = (0, smithy_client_1._json)(body);
2947
2903
  const exception = new models_0_1.AccountHasOngoingImportException({
2948
2904
  $metadata: deserializeMetadata(parsedOutput),
2949
2905
  ...deserialized,
@@ -2952,7 +2908,7 @@ const de_AccountHasOngoingImportExceptionRes = async (parsedOutput, context) =>
2952
2908
  };
2953
2909
  const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
2954
2910
  const body = parsedOutput.body;
2955
- const deserialized = de_AccountNotFoundException(body, context);
2911
+ const deserialized = (0, smithy_client_1._json)(body);
2956
2912
  const exception = new models_0_1.AccountNotFoundException({
2957
2913
  $metadata: deserializeMetadata(parsedOutput),
2958
2914
  ...deserialized,
@@ -2961,7 +2917,7 @@ const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
2961
2917
  };
2962
2918
  const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
2963
2919
  const body = parsedOutput.body;
2964
- const deserialized = de_AccountNotRegisteredException(body, context);
2920
+ const deserialized = (0, smithy_client_1._json)(body);
2965
2921
  const exception = new models_0_1.AccountNotRegisteredException({
2966
2922
  $metadata: deserializeMetadata(parsedOutput),
2967
2923
  ...deserialized,
@@ -2970,7 +2926,7 @@ const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
2970
2926
  };
2971
2927
  const de_AccountRegisteredExceptionRes = async (parsedOutput, context) => {
2972
2928
  const body = parsedOutput.body;
2973
- const deserialized = de_AccountRegisteredException(body, context);
2929
+ const deserialized = (0, smithy_client_1._json)(body);
2974
2930
  const exception = new models_0_1.AccountRegisteredException({
2975
2931
  $metadata: deserializeMetadata(parsedOutput),
2976
2932
  ...deserialized,
@@ -2979,7 +2935,7 @@ const de_AccountRegisteredExceptionRes = async (parsedOutput, context) => {
2979
2935
  };
2980
2936
  const de_CannotDelegateManagementAccountExceptionRes = async (parsedOutput, context) => {
2981
2937
  const body = parsedOutput.body;
2982
- const deserialized = de_CannotDelegateManagementAccountException(body, context);
2938
+ const deserialized = (0, smithy_client_1._json)(body);
2983
2939
  const exception = new models_0_1.CannotDelegateManagementAccountException({
2984
2940
  $metadata: deserializeMetadata(parsedOutput),
2985
2941
  ...deserialized,
@@ -2988,7 +2944,7 @@ const de_CannotDelegateManagementAccountExceptionRes = async (parsedOutput, cont
2988
2944
  };
2989
2945
  const de_ChannelAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2990
2946
  const body = parsedOutput.body;
2991
- const deserialized = de_ChannelAlreadyExistsException(body, context);
2947
+ const deserialized = (0, smithy_client_1._json)(body);
2992
2948
  const exception = new models_0_1.ChannelAlreadyExistsException({
2993
2949
  $metadata: deserializeMetadata(parsedOutput),
2994
2950
  ...deserialized,
@@ -2997,7 +2953,7 @@ const de_ChannelAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2997
2953
  };
2998
2954
  const de_ChannelARNInvalidExceptionRes = async (parsedOutput, context) => {
2999
2955
  const body = parsedOutput.body;
3000
- const deserialized = de_ChannelARNInvalidException(body, context);
2956
+ const deserialized = (0, smithy_client_1._json)(body);
3001
2957
  const exception = new models_0_1.ChannelARNInvalidException({
3002
2958
  $metadata: deserializeMetadata(parsedOutput),
3003
2959
  ...deserialized,
@@ -3006,7 +2962,7 @@ const de_ChannelARNInvalidExceptionRes = async (parsedOutput, context) => {
3006
2962
  };
3007
2963
  const de_ChannelExistsForEDSExceptionRes = async (parsedOutput, context) => {
3008
2964
  const body = parsedOutput.body;
3009
- const deserialized = de_ChannelExistsForEDSException(body, context);
2965
+ const deserialized = (0, smithy_client_1._json)(body);
3010
2966
  const exception = new models_0_1.ChannelExistsForEDSException({
3011
2967
  $metadata: deserializeMetadata(parsedOutput),
3012
2968
  ...deserialized,
@@ -3015,7 +2971,7 @@ const de_ChannelExistsForEDSExceptionRes = async (parsedOutput, context) => {
3015
2971
  };
3016
2972
  const de_ChannelMaxLimitExceededExceptionRes = async (parsedOutput, context) => {
3017
2973
  const body = parsedOutput.body;
3018
- const deserialized = de_ChannelMaxLimitExceededException(body, context);
2974
+ const deserialized = (0, smithy_client_1._json)(body);
3019
2975
  const exception = new models_0_1.ChannelMaxLimitExceededException({
3020
2976
  $metadata: deserializeMetadata(parsedOutput),
3021
2977
  ...deserialized,
@@ -3024,7 +2980,7 @@ const de_ChannelMaxLimitExceededExceptionRes = async (parsedOutput, context) =>
3024
2980
  };
3025
2981
  const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
3026
2982
  const body = parsedOutput.body;
3027
- const deserialized = de_ChannelNotFoundException(body, context);
2983
+ const deserialized = (0, smithy_client_1._json)(body);
3028
2984
  const exception = new models_0_1.ChannelNotFoundException({
3029
2985
  $metadata: deserializeMetadata(parsedOutput),
3030
2986
  ...deserialized,
@@ -3033,7 +2989,7 @@ const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
3033
2989
  };
3034
2990
  const de_CloudTrailAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
3035
2991
  const body = parsedOutput.body;
3036
- const deserialized = de_CloudTrailAccessNotEnabledException(body, context);
2992
+ const deserialized = (0, smithy_client_1._json)(body);
3037
2993
  const exception = new models_0_1.CloudTrailAccessNotEnabledException({
3038
2994
  $metadata: deserializeMetadata(parsedOutput),
3039
2995
  ...deserialized,
@@ -3042,7 +2998,7 @@ const de_CloudTrailAccessNotEnabledExceptionRes = async (parsedOutput, context)
3042
2998
  };
3043
2999
  const de_CloudTrailARNInvalidExceptionRes = async (parsedOutput, context) => {
3044
3000
  const body = parsedOutput.body;
3045
- const deserialized = de_CloudTrailARNInvalidException(body, context);
3001
+ const deserialized = (0, smithy_client_1._json)(body);
3046
3002
  const exception = new models_0_1.CloudTrailARNInvalidException({
3047
3003
  $metadata: deserializeMetadata(parsedOutput),
3048
3004
  ...deserialized,
@@ -3051,7 +3007,7 @@ const de_CloudTrailARNInvalidExceptionRes = async (parsedOutput, context) => {
3051
3007
  };
3052
3008
  const de_CloudTrailInvalidClientTokenIdExceptionRes = async (parsedOutput, context) => {
3053
3009
  const body = parsedOutput.body;
3054
- const deserialized = de_CloudTrailInvalidClientTokenIdException(body, context);
3010
+ const deserialized = (0, smithy_client_1._json)(body);
3055
3011
  const exception = new models_0_1.CloudTrailInvalidClientTokenIdException({
3056
3012
  $metadata: deserializeMetadata(parsedOutput),
3057
3013
  ...deserialized,
@@ -3060,7 +3016,7 @@ const de_CloudTrailInvalidClientTokenIdExceptionRes = async (parsedOutput, conte
3060
3016
  };
3061
3017
  const de_CloudWatchLogsDeliveryUnavailableExceptionRes = async (parsedOutput, context) => {
3062
3018
  const body = parsedOutput.body;
3063
- const deserialized = de_CloudWatchLogsDeliveryUnavailableException(body, context);
3019
+ const deserialized = (0, smithy_client_1._json)(body);
3064
3020
  const exception = new models_0_1.CloudWatchLogsDeliveryUnavailableException({
3065
3021
  $metadata: deserializeMetadata(parsedOutput),
3066
3022
  ...deserialized,
@@ -3069,7 +3025,7 @@ const de_CloudWatchLogsDeliveryUnavailableExceptionRes = async (parsedOutput, co
3069
3025
  };
3070
3026
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
3071
3027
  const body = parsedOutput.body;
3072
- const deserialized = de_ConflictException(body, context);
3028
+ const deserialized = (0, smithy_client_1._json)(body);
3073
3029
  const exception = new models_0_1.ConflictException({
3074
3030
  $metadata: deserializeMetadata(parsedOutput),
3075
3031
  ...deserialized,
@@ -3078,7 +3034,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3078
3034
  };
3079
3035
  const de_DelegatedAdminAccountLimitExceededExceptionRes = async (parsedOutput, context) => {
3080
3036
  const body = parsedOutput.body;
3081
- const deserialized = de_DelegatedAdminAccountLimitExceededException(body, context);
3037
+ const deserialized = (0, smithy_client_1._json)(body);
3082
3038
  const exception = new models_0_1.DelegatedAdminAccountLimitExceededException({
3083
3039
  $metadata: deserializeMetadata(parsedOutput),
3084
3040
  ...deserialized,
@@ -3087,7 +3043,7 @@ const de_DelegatedAdminAccountLimitExceededExceptionRes = async (parsedOutput, c
3087
3043
  };
3088
3044
  const de_EventDataStoreAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3089
3045
  const body = parsedOutput.body;
3090
- const deserialized = de_EventDataStoreAlreadyExistsException(body, context);
3046
+ const deserialized = (0, smithy_client_1._json)(body);
3091
3047
  const exception = new models_0_1.EventDataStoreAlreadyExistsException({
3092
3048
  $metadata: deserializeMetadata(parsedOutput),
3093
3049
  ...deserialized,
@@ -3096,7 +3052,7 @@ const de_EventDataStoreAlreadyExistsExceptionRes = async (parsedOutput, context)
3096
3052
  };
3097
3053
  const de_EventDataStoreARNInvalidExceptionRes = async (parsedOutput, context) => {
3098
3054
  const body = parsedOutput.body;
3099
- const deserialized = de_EventDataStoreARNInvalidException(body, context);
3055
+ const deserialized = (0, smithy_client_1._json)(body);
3100
3056
  const exception = new models_0_1.EventDataStoreARNInvalidException({
3101
3057
  $metadata: deserializeMetadata(parsedOutput),
3102
3058
  ...deserialized,
@@ -3105,7 +3061,7 @@ const de_EventDataStoreARNInvalidExceptionRes = async (parsedOutput, context) =>
3105
3061
  };
3106
3062
  const de_EventDataStoreHasOngoingImportExceptionRes = async (parsedOutput, context) => {
3107
3063
  const body = parsedOutput.body;
3108
- const deserialized = de_EventDataStoreHasOngoingImportException(body, context);
3064
+ const deserialized = (0, smithy_client_1._json)(body);
3109
3065
  const exception = new models_0_1.EventDataStoreHasOngoingImportException({
3110
3066
  $metadata: deserializeMetadata(parsedOutput),
3111
3067
  ...deserialized,
@@ -3114,7 +3070,7 @@ const de_EventDataStoreHasOngoingImportExceptionRes = async (parsedOutput, conte
3114
3070
  };
3115
3071
  const de_EventDataStoreMaxLimitExceededExceptionRes = async (parsedOutput, context) => {
3116
3072
  const body = parsedOutput.body;
3117
- const deserialized = de_EventDataStoreMaxLimitExceededException(body, context);
3073
+ const deserialized = (0, smithy_client_1._json)(body);
3118
3074
  const exception = new models_0_1.EventDataStoreMaxLimitExceededException({
3119
3075
  $metadata: deserializeMetadata(parsedOutput),
3120
3076
  ...deserialized,
@@ -3123,7 +3079,7 @@ const de_EventDataStoreMaxLimitExceededExceptionRes = async (parsedOutput, conte
3123
3079
  };
3124
3080
  const de_EventDataStoreNotFoundExceptionRes = async (parsedOutput, context) => {
3125
3081
  const body = parsedOutput.body;
3126
- const deserialized = de_EventDataStoreNotFoundException(body, context);
3082
+ const deserialized = (0, smithy_client_1._json)(body);
3127
3083
  const exception = new models_0_1.EventDataStoreNotFoundException({
3128
3084
  $metadata: deserializeMetadata(parsedOutput),
3129
3085
  ...deserialized,
@@ -3132,7 +3088,7 @@ const de_EventDataStoreNotFoundExceptionRes = async (parsedOutput, context) => {
3132
3088
  };
3133
3089
  const de_EventDataStoreTerminationProtectedExceptionRes = async (parsedOutput, context) => {
3134
3090
  const body = parsedOutput.body;
3135
- const deserialized = de_EventDataStoreTerminationProtectedException(body, context);
3091
+ const deserialized = (0, smithy_client_1._json)(body);
3136
3092
  const exception = new models_0_1.EventDataStoreTerminationProtectedException({
3137
3093
  $metadata: deserializeMetadata(parsedOutput),
3138
3094
  ...deserialized,
@@ -3141,7 +3097,7 @@ const de_EventDataStoreTerminationProtectedExceptionRes = async (parsedOutput, c
3141
3097
  };
3142
3098
  const de_ImportNotFoundExceptionRes = async (parsedOutput, context) => {
3143
3099
  const body = parsedOutput.body;
3144
- const deserialized = de_ImportNotFoundException(body, context);
3100
+ const deserialized = (0, smithy_client_1._json)(body);
3145
3101
  const exception = new models_0_1.ImportNotFoundException({
3146
3102
  $metadata: deserializeMetadata(parsedOutput),
3147
3103
  ...deserialized,
@@ -3150,7 +3106,7 @@ const de_ImportNotFoundExceptionRes = async (parsedOutput, context) => {
3150
3106
  };
3151
3107
  const de_InactiveEventDataStoreExceptionRes = async (parsedOutput, context) => {
3152
3108
  const body = parsedOutput.body;
3153
- const deserialized = de_InactiveEventDataStoreException(body, context);
3109
+ const deserialized = (0, smithy_client_1._json)(body);
3154
3110
  const exception = new models_0_1.InactiveEventDataStoreException({
3155
3111
  $metadata: deserializeMetadata(parsedOutput),
3156
3112
  ...deserialized,
@@ -3159,7 +3115,7 @@ const de_InactiveEventDataStoreExceptionRes = async (parsedOutput, context) => {
3159
3115
  };
3160
3116
  const de_InactiveQueryExceptionRes = async (parsedOutput, context) => {
3161
3117
  const body = parsedOutput.body;
3162
- const deserialized = de_InactiveQueryException(body, context);
3118
+ const deserialized = (0, smithy_client_1._json)(body);
3163
3119
  const exception = new models_0_1.InactiveQueryException({
3164
3120
  $metadata: deserializeMetadata(parsedOutput),
3165
3121
  ...deserialized,
@@ -3168,7 +3124,7 @@ const de_InactiveQueryExceptionRes = async (parsedOutput, context) => {
3168
3124
  };
3169
3125
  const de_InsightNotEnabledExceptionRes = async (parsedOutput, context) => {
3170
3126
  const body = parsedOutput.body;
3171
- const deserialized = de_InsightNotEnabledException(body, context);
3127
+ const deserialized = (0, smithy_client_1._json)(body);
3172
3128
  const exception = new models_0_1.InsightNotEnabledException({
3173
3129
  $metadata: deserializeMetadata(parsedOutput),
3174
3130
  ...deserialized,
@@ -3177,7 +3133,7 @@ const de_InsightNotEnabledExceptionRes = async (parsedOutput, context) => {
3177
3133
  };
3178
3134
  const de_InsufficientDependencyServiceAccessPermissionExceptionRes = async (parsedOutput, context) => {
3179
3135
  const body = parsedOutput.body;
3180
- const deserialized = de_InsufficientDependencyServiceAccessPermissionException(body, context);
3136
+ const deserialized = (0, smithy_client_1._json)(body);
3181
3137
  const exception = new models_0_1.InsufficientDependencyServiceAccessPermissionException({
3182
3138
  $metadata: deserializeMetadata(parsedOutput),
3183
3139
  ...deserialized,
@@ -3186,7 +3142,7 @@ const de_InsufficientDependencyServiceAccessPermissionExceptionRes = async (pars
3186
3142
  };
3187
3143
  const de_InsufficientEncryptionPolicyExceptionRes = async (parsedOutput, context) => {
3188
3144
  const body = parsedOutput.body;
3189
- const deserialized = de_InsufficientEncryptionPolicyException(body, context);
3145
+ const deserialized = (0, smithy_client_1._json)(body);
3190
3146
  const exception = new models_0_1.InsufficientEncryptionPolicyException({
3191
3147
  $metadata: deserializeMetadata(parsedOutput),
3192
3148
  ...deserialized,
@@ -3195,7 +3151,7 @@ const de_InsufficientEncryptionPolicyExceptionRes = async (parsedOutput, context
3195
3151
  };
3196
3152
  const de_InsufficientS3BucketPolicyExceptionRes = async (parsedOutput, context) => {
3197
3153
  const body = parsedOutput.body;
3198
- const deserialized = de_InsufficientS3BucketPolicyException(body, context);
3154
+ const deserialized = (0, smithy_client_1._json)(body);
3199
3155
  const exception = new models_0_1.InsufficientS3BucketPolicyException({
3200
3156
  $metadata: deserializeMetadata(parsedOutput),
3201
3157
  ...deserialized,
@@ -3204,7 +3160,7 @@ const de_InsufficientS3BucketPolicyExceptionRes = async (parsedOutput, context)
3204
3160
  };
3205
3161
  const de_InsufficientSnsTopicPolicyExceptionRes = async (parsedOutput, context) => {
3206
3162
  const body = parsedOutput.body;
3207
- const deserialized = de_InsufficientSnsTopicPolicyException(body, context);
3163
+ const deserialized = (0, smithy_client_1._json)(body);
3208
3164
  const exception = new models_0_1.InsufficientSnsTopicPolicyException({
3209
3165
  $metadata: deserializeMetadata(parsedOutput),
3210
3166
  ...deserialized,
@@ -3213,7 +3169,7 @@ const de_InsufficientSnsTopicPolicyExceptionRes = async (parsedOutput, context)
3213
3169
  };
3214
3170
  const de_InvalidCloudWatchLogsLogGroupArnExceptionRes = async (parsedOutput, context) => {
3215
3171
  const body = parsedOutput.body;
3216
- const deserialized = de_InvalidCloudWatchLogsLogGroupArnException(body, context);
3172
+ const deserialized = (0, smithy_client_1._json)(body);
3217
3173
  const exception = new models_0_1.InvalidCloudWatchLogsLogGroupArnException({
3218
3174
  $metadata: deserializeMetadata(parsedOutput),
3219
3175
  ...deserialized,
@@ -3222,7 +3178,7 @@ const de_InvalidCloudWatchLogsLogGroupArnExceptionRes = async (parsedOutput, con
3222
3178
  };
3223
3179
  const de_InvalidCloudWatchLogsRoleArnExceptionRes = async (parsedOutput, context) => {
3224
3180
  const body = parsedOutput.body;
3225
- const deserialized = de_InvalidCloudWatchLogsRoleArnException(body, context);
3181
+ const deserialized = (0, smithy_client_1._json)(body);
3226
3182
  const exception = new models_0_1.InvalidCloudWatchLogsRoleArnException({
3227
3183
  $metadata: deserializeMetadata(parsedOutput),
3228
3184
  ...deserialized,
@@ -3231,7 +3187,7 @@ const de_InvalidCloudWatchLogsRoleArnExceptionRes = async (parsedOutput, context
3231
3187
  };
3232
3188
  const de_InvalidDateRangeExceptionRes = async (parsedOutput, context) => {
3233
3189
  const body = parsedOutput.body;
3234
- const deserialized = de_InvalidDateRangeException(body, context);
3190
+ const deserialized = (0, smithy_client_1._json)(body);
3235
3191
  const exception = new models_0_1.InvalidDateRangeException({
3236
3192
  $metadata: deserializeMetadata(parsedOutput),
3237
3193
  ...deserialized,
@@ -3240,7 +3196,7 @@ const de_InvalidDateRangeExceptionRes = async (parsedOutput, context) => {
3240
3196
  };
3241
3197
  const de_InvalidEventCategoryExceptionRes = async (parsedOutput, context) => {
3242
3198
  const body = parsedOutput.body;
3243
- const deserialized = de_InvalidEventCategoryException(body, context);
3199
+ const deserialized = (0, smithy_client_1._json)(body);
3244
3200
  const exception = new models_0_1.InvalidEventCategoryException({
3245
3201
  $metadata: deserializeMetadata(parsedOutput),
3246
3202
  ...deserialized,
@@ -3249,7 +3205,7 @@ const de_InvalidEventCategoryExceptionRes = async (parsedOutput, context) => {
3249
3205
  };
3250
3206
  const de_InvalidEventDataStoreCategoryExceptionRes = async (parsedOutput, context) => {
3251
3207
  const body = parsedOutput.body;
3252
- const deserialized = de_InvalidEventDataStoreCategoryException(body, context);
3208
+ const deserialized = (0, smithy_client_1._json)(body);
3253
3209
  const exception = new models_0_1.InvalidEventDataStoreCategoryException({
3254
3210
  $metadata: deserializeMetadata(parsedOutput),
3255
3211
  ...deserialized,
@@ -3258,7 +3214,7 @@ const de_InvalidEventDataStoreCategoryExceptionRes = async (parsedOutput, contex
3258
3214
  };
3259
3215
  const de_InvalidEventDataStoreStatusExceptionRes = async (parsedOutput, context) => {
3260
3216
  const body = parsedOutput.body;
3261
- const deserialized = de_InvalidEventDataStoreStatusException(body, context);
3217
+ const deserialized = (0, smithy_client_1._json)(body);
3262
3218
  const exception = new models_0_1.InvalidEventDataStoreStatusException({
3263
3219
  $metadata: deserializeMetadata(parsedOutput),
3264
3220
  ...deserialized,
@@ -3267,7 +3223,7 @@ const de_InvalidEventDataStoreStatusExceptionRes = async (parsedOutput, context)
3267
3223
  };
3268
3224
  const de_InvalidEventSelectorsExceptionRes = async (parsedOutput, context) => {
3269
3225
  const body = parsedOutput.body;
3270
- const deserialized = de_InvalidEventSelectorsException(body, context);
3226
+ const deserialized = (0, smithy_client_1._json)(body);
3271
3227
  const exception = new models_0_1.InvalidEventSelectorsException({
3272
3228
  $metadata: deserializeMetadata(parsedOutput),
3273
3229
  ...deserialized,
@@ -3276,7 +3232,7 @@ const de_InvalidEventSelectorsExceptionRes = async (parsedOutput, context) => {
3276
3232
  };
3277
3233
  const de_InvalidHomeRegionExceptionRes = async (parsedOutput, context) => {
3278
3234
  const body = parsedOutput.body;
3279
- const deserialized = de_InvalidHomeRegionException(body, context);
3235
+ const deserialized = (0, smithy_client_1._json)(body);
3280
3236
  const exception = new models_0_1.InvalidHomeRegionException({
3281
3237
  $metadata: deserializeMetadata(parsedOutput),
3282
3238
  ...deserialized,
@@ -3285,7 +3241,7 @@ const de_InvalidHomeRegionExceptionRes = async (parsedOutput, context) => {
3285
3241
  };
3286
3242
  const de_InvalidImportSourceExceptionRes = async (parsedOutput, context) => {
3287
3243
  const body = parsedOutput.body;
3288
- const deserialized = de_InvalidImportSourceException(body, context);
3244
+ const deserialized = (0, smithy_client_1._json)(body);
3289
3245
  const exception = new models_0_1.InvalidImportSourceException({
3290
3246
  $metadata: deserializeMetadata(parsedOutput),
3291
3247
  ...deserialized,
@@ -3294,7 +3250,7 @@ const de_InvalidImportSourceExceptionRes = async (parsedOutput, context) => {
3294
3250
  };
3295
3251
  const de_InvalidInsightSelectorsExceptionRes = async (parsedOutput, context) => {
3296
3252
  const body = parsedOutput.body;
3297
- const deserialized = de_InvalidInsightSelectorsException(body, context);
3253
+ const deserialized = (0, smithy_client_1._json)(body);
3298
3254
  const exception = new models_0_1.InvalidInsightSelectorsException({
3299
3255
  $metadata: deserializeMetadata(parsedOutput),
3300
3256
  ...deserialized,
@@ -3303,7 +3259,7 @@ const de_InvalidInsightSelectorsExceptionRes = async (parsedOutput, context) =>
3303
3259
  };
3304
3260
  const de_InvalidKmsKeyIdExceptionRes = async (parsedOutput, context) => {
3305
3261
  const body = parsedOutput.body;
3306
- const deserialized = de_InvalidKmsKeyIdException(body, context);
3262
+ const deserialized = (0, smithy_client_1._json)(body);
3307
3263
  const exception = new models_0_1.InvalidKmsKeyIdException({
3308
3264
  $metadata: deserializeMetadata(parsedOutput),
3309
3265
  ...deserialized,
@@ -3312,7 +3268,7 @@ const de_InvalidKmsKeyIdExceptionRes = async (parsedOutput, context) => {
3312
3268
  };
3313
3269
  const de_InvalidLookupAttributesExceptionRes = async (parsedOutput, context) => {
3314
3270
  const body = parsedOutput.body;
3315
- const deserialized = de_InvalidLookupAttributesException(body, context);
3271
+ const deserialized = (0, smithy_client_1._json)(body);
3316
3272
  const exception = new models_0_1.InvalidLookupAttributesException({
3317
3273
  $metadata: deserializeMetadata(parsedOutput),
3318
3274
  ...deserialized,
@@ -3321,7 +3277,7 @@ const de_InvalidLookupAttributesExceptionRes = async (parsedOutput, context) =>
3321
3277
  };
3322
3278
  const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
3323
3279
  const body = parsedOutput.body;
3324
- const deserialized = de_InvalidMaxResultsException(body, context);
3280
+ const deserialized = (0, smithy_client_1._json)(body);
3325
3281
  const exception = new models_0_1.InvalidMaxResultsException({
3326
3282
  $metadata: deserializeMetadata(parsedOutput),
3327
3283
  ...deserialized,
@@ -3330,7 +3286,7 @@ const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
3330
3286
  };
3331
3287
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3332
3288
  const body = parsedOutput.body;
3333
- const deserialized = de_InvalidNextTokenException(body, context);
3289
+ const deserialized = (0, smithy_client_1._json)(body);
3334
3290
  const exception = new models_0_1.InvalidNextTokenException({
3335
3291
  $metadata: deserializeMetadata(parsedOutput),
3336
3292
  ...deserialized,
@@ -3339,7 +3295,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3339
3295
  };
3340
3296
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
3341
3297
  const body = parsedOutput.body;
3342
- const deserialized = de_InvalidParameterCombinationException(body, context);
3298
+ const deserialized = (0, smithy_client_1._json)(body);
3343
3299
  const exception = new models_0_1.InvalidParameterCombinationException({
3344
3300
  $metadata: deserializeMetadata(parsedOutput),
3345
3301
  ...deserialized,
@@ -3348,7 +3304,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
3348
3304
  };
3349
3305
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3350
3306
  const body = parsedOutput.body;
3351
- const deserialized = de_InvalidParameterException(body, context);
3307
+ const deserialized = (0, smithy_client_1._json)(body);
3352
3308
  const exception = new models_0_1.InvalidParameterException({
3353
3309
  $metadata: deserializeMetadata(parsedOutput),
3354
3310
  ...deserialized,
@@ -3357,7 +3313,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3357
3313
  };
3358
3314
  const de_InvalidQueryStatementExceptionRes = async (parsedOutput, context) => {
3359
3315
  const body = parsedOutput.body;
3360
- const deserialized = de_InvalidQueryStatementException(body, context);
3316
+ const deserialized = (0, smithy_client_1._json)(body);
3361
3317
  const exception = new models_0_1.InvalidQueryStatementException({
3362
3318
  $metadata: deserializeMetadata(parsedOutput),
3363
3319
  ...deserialized,
@@ -3366,7 +3322,7 @@ const de_InvalidQueryStatementExceptionRes = async (parsedOutput, context) => {
3366
3322
  };
3367
3323
  const de_InvalidQueryStatusExceptionRes = async (parsedOutput, context) => {
3368
3324
  const body = parsedOutput.body;
3369
- const deserialized = de_InvalidQueryStatusException(body, context);
3325
+ const deserialized = (0, smithy_client_1._json)(body);
3370
3326
  const exception = new models_0_1.InvalidQueryStatusException({
3371
3327
  $metadata: deserializeMetadata(parsedOutput),
3372
3328
  ...deserialized,
@@ -3375,7 +3331,7 @@ const de_InvalidQueryStatusExceptionRes = async (parsedOutput, context) => {
3375
3331
  };
3376
3332
  const de_InvalidS3BucketNameExceptionRes = async (parsedOutput, context) => {
3377
3333
  const body = parsedOutput.body;
3378
- const deserialized = de_InvalidS3BucketNameException(body, context);
3334
+ const deserialized = (0, smithy_client_1._json)(body);
3379
3335
  const exception = new models_0_1.InvalidS3BucketNameException({
3380
3336
  $metadata: deserializeMetadata(parsedOutput),
3381
3337
  ...deserialized,
@@ -3384,7 +3340,7 @@ const de_InvalidS3BucketNameExceptionRes = async (parsedOutput, context) => {
3384
3340
  };
3385
3341
  const de_InvalidS3PrefixExceptionRes = async (parsedOutput, context) => {
3386
3342
  const body = parsedOutput.body;
3387
- const deserialized = de_InvalidS3PrefixException(body, context);
3343
+ const deserialized = (0, smithy_client_1._json)(body);
3388
3344
  const exception = new models_0_1.InvalidS3PrefixException({
3389
3345
  $metadata: deserializeMetadata(parsedOutput),
3390
3346
  ...deserialized,
@@ -3393,7 +3349,7 @@ const de_InvalidS3PrefixExceptionRes = async (parsedOutput, context) => {
3393
3349
  };
3394
3350
  const de_InvalidSnsTopicNameExceptionRes = async (parsedOutput, context) => {
3395
3351
  const body = parsedOutput.body;
3396
- const deserialized = de_InvalidSnsTopicNameException(body, context);
3352
+ const deserialized = (0, smithy_client_1._json)(body);
3397
3353
  const exception = new models_0_1.InvalidSnsTopicNameException({
3398
3354
  $metadata: deserializeMetadata(parsedOutput),
3399
3355
  ...deserialized,
@@ -3402,7 +3358,7 @@ const de_InvalidSnsTopicNameExceptionRes = async (parsedOutput, context) => {
3402
3358
  };
3403
3359
  const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
3404
3360
  const body = parsedOutput.body;
3405
- const deserialized = de_InvalidSourceException(body, context);
3361
+ const deserialized = (0, smithy_client_1._json)(body);
3406
3362
  const exception = new models_0_1.InvalidSourceException({
3407
3363
  $metadata: deserializeMetadata(parsedOutput),
3408
3364
  ...deserialized,
@@ -3411,7 +3367,7 @@ const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
3411
3367
  };
3412
3368
  const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
3413
3369
  const body = parsedOutput.body;
3414
- const deserialized = de_InvalidTagParameterException(body, context);
3370
+ const deserialized = (0, smithy_client_1._json)(body);
3415
3371
  const exception = new models_0_1.InvalidTagParameterException({
3416
3372
  $metadata: deserializeMetadata(parsedOutput),
3417
3373
  ...deserialized,
@@ -3420,7 +3376,7 @@ const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
3420
3376
  };
3421
3377
  const de_InvalidTimeRangeExceptionRes = async (parsedOutput, context) => {
3422
3378
  const body = parsedOutput.body;
3423
- const deserialized = de_InvalidTimeRangeException(body, context);
3379
+ const deserialized = (0, smithy_client_1._json)(body);
3424
3380
  const exception = new models_0_1.InvalidTimeRangeException({
3425
3381
  $metadata: deserializeMetadata(parsedOutput),
3426
3382
  ...deserialized,
@@ -3429,7 +3385,7 @@ const de_InvalidTimeRangeExceptionRes = async (parsedOutput, context) => {
3429
3385
  };
3430
3386
  const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
3431
3387
  const body = parsedOutput.body;
3432
- const deserialized = de_InvalidTokenException(body, context);
3388
+ const deserialized = (0, smithy_client_1._json)(body);
3433
3389
  const exception = new models_0_1.InvalidTokenException({
3434
3390
  $metadata: deserializeMetadata(parsedOutput),
3435
3391
  ...deserialized,
@@ -3438,7 +3394,7 @@ const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
3438
3394
  };
3439
3395
  const de_InvalidTrailNameExceptionRes = async (parsedOutput, context) => {
3440
3396
  const body = parsedOutput.body;
3441
- const deserialized = de_InvalidTrailNameException(body, context);
3397
+ const deserialized = (0, smithy_client_1._json)(body);
3442
3398
  const exception = new models_0_1.InvalidTrailNameException({
3443
3399
  $metadata: deserializeMetadata(parsedOutput),
3444
3400
  ...deserialized,
@@ -3447,7 +3403,7 @@ const de_InvalidTrailNameExceptionRes = async (parsedOutput, context) => {
3447
3403
  };
3448
3404
  const de_KmsExceptionRes = async (parsedOutput, context) => {
3449
3405
  const body = parsedOutput.body;
3450
- const deserialized = de_KmsException(body, context);
3406
+ const deserialized = (0, smithy_client_1._json)(body);
3451
3407
  const exception = new models_0_1.KmsException({
3452
3408
  $metadata: deserializeMetadata(parsedOutput),
3453
3409
  ...deserialized,
@@ -3456,7 +3412,7 @@ const de_KmsExceptionRes = async (parsedOutput, context) => {
3456
3412
  };
3457
3413
  const de_KmsKeyDisabledExceptionRes = async (parsedOutput, context) => {
3458
3414
  const body = parsedOutput.body;
3459
- const deserialized = de_KmsKeyDisabledException(body, context);
3415
+ const deserialized = (0, smithy_client_1._json)(body);
3460
3416
  const exception = new models_0_1.KmsKeyDisabledException({
3461
3417
  $metadata: deserializeMetadata(parsedOutput),
3462
3418
  ...deserialized,
@@ -3465,7 +3421,7 @@ const de_KmsKeyDisabledExceptionRes = async (parsedOutput, context) => {
3465
3421
  };
3466
3422
  const de_KmsKeyNotFoundExceptionRes = async (parsedOutput, context) => {
3467
3423
  const body = parsedOutput.body;
3468
- const deserialized = de_KmsKeyNotFoundException(body, context);
3424
+ const deserialized = (0, smithy_client_1._json)(body);
3469
3425
  const exception = new models_0_1.KmsKeyNotFoundException({
3470
3426
  $metadata: deserializeMetadata(parsedOutput),
3471
3427
  ...deserialized,
@@ -3474,7 +3430,7 @@ const de_KmsKeyNotFoundExceptionRes = async (parsedOutput, context) => {
3474
3430
  };
3475
3431
  const de_MaxConcurrentQueriesExceptionRes = async (parsedOutput, context) => {
3476
3432
  const body = parsedOutput.body;
3477
- const deserialized = de_MaxConcurrentQueriesException(body, context);
3433
+ const deserialized = (0, smithy_client_1._json)(body);
3478
3434
  const exception = new models_0_1.MaxConcurrentQueriesException({
3479
3435
  $metadata: deserializeMetadata(parsedOutput),
3480
3436
  ...deserialized,
@@ -3483,7 +3439,7 @@ const de_MaxConcurrentQueriesExceptionRes = async (parsedOutput, context) => {
3483
3439
  };
3484
3440
  const de_MaximumNumberOfTrailsExceededExceptionRes = async (parsedOutput, context) => {
3485
3441
  const body = parsedOutput.body;
3486
- const deserialized = de_MaximumNumberOfTrailsExceededException(body, context);
3442
+ const deserialized = (0, smithy_client_1._json)(body);
3487
3443
  const exception = new models_0_1.MaximumNumberOfTrailsExceededException({
3488
3444
  $metadata: deserializeMetadata(parsedOutput),
3489
3445
  ...deserialized,
@@ -3492,7 +3448,7 @@ const de_MaximumNumberOfTrailsExceededExceptionRes = async (parsedOutput, contex
3492
3448
  };
3493
3449
  const de_NoManagementAccountSLRExistsExceptionRes = async (parsedOutput, context) => {
3494
3450
  const body = parsedOutput.body;
3495
- const deserialized = de_NoManagementAccountSLRExistsException(body, context);
3451
+ const deserialized = (0, smithy_client_1._json)(body);
3496
3452
  const exception = new models_0_1.NoManagementAccountSLRExistsException({
3497
3453
  $metadata: deserializeMetadata(parsedOutput),
3498
3454
  ...deserialized,
@@ -3501,7 +3457,7 @@ const de_NoManagementAccountSLRExistsExceptionRes = async (parsedOutput, context
3501
3457
  };
3502
3458
  const de_NotOrganizationManagementAccountExceptionRes = async (parsedOutput, context) => {
3503
3459
  const body = parsedOutput.body;
3504
- const deserialized = de_NotOrganizationManagementAccountException(body, context);
3460
+ const deserialized = (0, smithy_client_1._json)(body);
3505
3461
  const exception = new models_0_1.NotOrganizationManagementAccountException({
3506
3462
  $metadata: deserializeMetadata(parsedOutput),
3507
3463
  ...deserialized,
@@ -3510,7 +3466,7 @@ const de_NotOrganizationManagementAccountExceptionRes = async (parsedOutput, con
3510
3466
  };
3511
3467
  const de_NotOrganizationMasterAccountExceptionRes = async (parsedOutput, context) => {
3512
3468
  const body = parsedOutput.body;
3513
- const deserialized = de_NotOrganizationMasterAccountException(body, context);
3469
+ const deserialized = (0, smithy_client_1._json)(body);
3514
3470
  const exception = new models_0_1.NotOrganizationMasterAccountException({
3515
3471
  $metadata: deserializeMetadata(parsedOutput),
3516
3472
  ...deserialized,
@@ -3519,7 +3475,7 @@ const de_NotOrganizationMasterAccountExceptionRes = async (parsedOutput, context
3519
3475
  };
3520
3476
  const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3521
3477
  const body = parsedOutput.body;
3522
- const deserialized = de_OperationNotPermittedException(body, context);
3478
+ const deserialized = (0, smithy_client_1._json)(body);
3523
3479
  const exception = new models_0_1.OperationNotPermittedException({
3524
3480
  $metadata: deserializeMetadata(parsedOutput),
3525
3481
  ...deserialized,
@@ -3528,7 +3484,7 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3528
3484
  };
3529
3485
  const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
3530
3486
  const body = parsedOutput.body;
3531
- const deserialized = de_OrganizationNotInAllFeaturesModeException(body, context);
3487
+ const deserialized = (0, smithy_client_1._json)(body);
3532
3488
  const exception = new models_0_1.OrganizationNotInAllFeaturesModeException({
3533
3489
  $metadata: deserializeMetadata(parsedOutput),
3534
3490
  ...deserialized,
@@ -3537,7 +3493,7 @@ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, con
3537
3493
  };
3538
3494
  const de_OrganizationsNotInUseExceptionRes = async (parsedOutput, context) => {
3539
3495
  const body = parsedOutput.body;
3540
- const deserialized = de_OrganizationsNotInUseException(body, context);
3496
+ const deserialized = (0, smithy_client_1._json)(body);
3541
3497
  const exception = new models_0_1.OrganizationsNotInUseException({
3542
3498
  $metadata: deserializeMetadata(parsedOutput),
3543
3499
  ...deserialized,
@@ -3546,7 +3502,7 @@ const de_OrganizationsNotInUseExceptionRes = async (parsedOutput, context) => {
3546
3502
  };
3547
3503
  const de_QueryIdNotFoundExceptionRes = async (parsedOutput, context) => {
3548
3504
  const body = parsedOutput.body;
3549
- const deserialized = de_QueryIdNotFoundException(body, context);
3505
+ const deserialized = (0, smithy_client_1._json)(body);
3550
3506
  const exception = new models_0_1.QueryIdNotFoundException({
3551
3507
  $metadata: deserializeMetadata(parsedOutput),
3552
3508
  ...deserialized,
@@ -3555,7 +3511,7 @@ const de_QueryIdNotFoundExceptionRes = async (parsedOutput, context) => {
3555
3511
  };
3556
3512
  const de_ResourceARNNotValidExceptionRes = async (parsedOutput, context) => {
3557
3513
  const body = parsedOutput.body;
3558
- const deserialized = de_ResourceARNNotValidException(body, context);
3514
+ const deserialized = (0, smithy_client_1._json)(body);
3559
3515
  const exception = new models_0_1.ResourceARNNotValidException({
3560
3516
  $metadata: deserializeMetadata(parsedOutput),
3561
3517
  ...deserialized,
@@ -3564,7 +3520,7 @@ const de_ResourceARNNotValidExceptionRes = async (parsedOutput, context) => {
3564
3520
  };
3565
3521
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3566
3522
  const body = parsedOutput.body;
3567
- const deserialized = de_ResourceNotFoundException(body, context);
3523
+ const deserialized = (0, smithy_client_1._json)(body);
3568
3524
  const exception = new models_0_1.ResourceNotFoundException({
3569
3525
  $metadata: deserializeMetadata(parsedOutput),
3570
3526
  ...deserialized,
@@ -3573,7 +3529,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3573
3529
  };
3574
3530
  const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
3575
3531
  const body = parsedOutput.body;
3576
- const deserialized = de_ResourcePolicyNotFoundException(body, context);
3532
+ const deserialized = (0, smithy_client_1._json)(body);
3577
3533
  const exception = new models_0_1.ResourcePolicyNotFoundException({
3578
3534
  $metadata: deserializeMetadata(parsedOutput),
3579
3535
  ...deserialized,
@@ -3582,7 +3538,7 @@ const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
3582
3538
  };
3583
3539
  const de_ResourcePolicyNotValidExceptionRes = async (parsedOutput, context) => {
3584
3540
  const body = parsedOutput.body;
3585
- const deserialized = de_ResourcePolicyNotValidException(body, context);
3541
+ const deserialized = (0, smithy_client_1._json)(body);
3586
3542
  const exception = new models_0_1.ResourcePolicyNotValidException({
3587
3543
  $metadata: deserializeMetadata(parsedOutput),
3588
3544
  ...deserialized,
@@ -3591,7 +3547,7 @@ const de_ResourcePolicyNotValidExceptionRes = async (parsedOutput, context) => {
3591
3547
  };
3592
3548
  const de_ResourceTypeNotSupportedExceptionRes = async (parsedOutput, context) => {
3593
3549
  const body = parsedOutput.body;
3594
- const deserialized = de_ResourceTypeNotSupportedException(body, context);
3550
+ const deserialized = (0, smithy_client_1._json)(body);
3595
3551
  const exception = new models_0_1.ResourceTypeNotSupportedException({
3596
3552
  $metadata: deserializeMetadata(parsedOutput),
3597
3553
  ...deserialized,
@@ -3600,7 +3556,7 @@ const de_ResourceTypeNotSupportedExceptionRes = async (parsedOutput, context) =>
3600
3556
  };
3601
3557
  const de_S3BucketDoesNotExistExceptionRes = async (parsedOutput, context) => {
3602
3558
  const body = parsedOutput.body;
3603
- const deserialized = de_S3BucketDoesNotExistException(body, context);
3559
+ const deserialized = (0, smithy_client_1._json)(body);
3604
3560
  const exception = new models_0_1.S3BucketDoesNotExistException({
3605
3561
  $metadata: deserializeMetadata(parsedOutput),
3606
3562
  ...deserialized,
@@ -3609,7 +3565,7 @@ const de_S3BucketDoesNotExistExceptionRes = async (parsedOutput, context) => {
3609
3565
  };
3610
3566
  const de_TagsLimitExceededExceptionRes = async (parsedOutput, context) => {
3611
3567
  const body = parsedOutput.body;
3612
- const deserialized = de_TagsLimitExceededException(body, context);
3568
+ const deserialized = (0, smithy_client_1._json)(body);
3613
3569
  const exception = new models_0_1.TagsLimitExceededException({
3614
3570
  $metadata: deserializeMetadata(parsedOutput),
3615
3571
  ...deserialized,
@@ -3618,7 +3574,7 @@ const de_TagsLimitExceededExceptionRes = async (parsedOutput, context) => {
3618
3574
  };
3619
3575
  const de_TrailAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3620
3576
  const body = parsedOutput.body;
3621
- const deserialized = de_TrailAlreadyExistsException(body, context);
3577
+ const deserialized = (0, smithy_client_1._json)(body);
3622
3578
  const exception = new models_0_1.TrailAlreadyExistsException({
3623
3579
  $metadata: deserializeMetadata(parsedOutput),
3624
3580
  ...deserialized,
@@ -3627,7 +3583,7 @@ const de_TrailAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3627
3583
  };
3628
3584
  const de_TrailNotFoundExceptionRes = async (parsedOutput, context) => {
3629
3585
  const body = parsedOutput.body;
3630
- const deserialized = de_TrailNotFoundException(body, context);
3586
+ const deserialized = (0, smithy_client_1._json)(body);
3631
3587
  const exception = new models_0_1.TrailNotFoundException({
3632
3588
  $metadata: deserializeMetadata(parsedOutput),
3633
3589
  ...deserialized,
@@ -3636,7 +3592,7 @@ const de_TrailNotFoundExceptionRes = async (parsedOutput, context) => {
3636
3592
  };
3637
3593
  const de_TrailNotProvidedExceptionRes = async (parsedOutput, context) => {
3638
3594
  const body = parsedOutput.body;
3639
- const deserialized = de_TrailNotProvidedException(body, context);
3595
+ const deserialized = (0, smithy_client_1._json)(body);
3640
3596
  const exception = new models_0_1.TrailNotProvidedException({
3641
3597
  $metadata: deserializeMetadata(parsedOutput),
3642
3598
  ...deserialized,
@@ -3645,1796 +3601,351 @@ const de_TrailNotProvidedExceptionRes = async (parsedOutput, context) => {
3645
3601
  };
3646
3602
  const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
3647
3603
  const body = parsedOutput.body;
3648
- const deserialized = de_UnsupportedOperationException(body, context);
3604
+ const deserialized = (0, smithy_client_1._json)(body);
3649
3605
  const exception = new models_0_1.UnsupportedOperationException({
3650
3606
  $metadata: deserializeMetadata(parsedOutput),
3651
3607
  ...deserialized,
3652
3608
  });
3653
3609
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3654
3610
  };
3655
- const se_AddTagsRequest = (input, context) => {
3656
- return {
3657
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3658
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3659
- };
3660
- };
3661
- const se_AdvancedEventSelector = (input, context) => {
3662
- return {
3663
- ...(input.FieldSelectors != null && { FieldSelectors: se_AdvancedFieldSelectors(input.FieldSelectors, context) }),
3664
- ...(input.Name != null && { Name: input.Name }),
3665
- };
3666
- };
3667
- const se_AdvancedEventSelectors = (input, context) => {
3668
- return input
3669
- .filter((e) => e != null)
3670
- .map((entry) => {
3671
- return se_AdvancedEventSelector(entry, context);
3672
- });
3673
- };
3674
- const se_AdvancedFieldSelector = (input, context) => {
3675
- return {
3676
- ...(input.EndsWith != null && { EndsWith: se_Operator(input.EndsWith, context) }),
3677
- ...(input.Equals != null && { Equals: se_Operator(input.Equals, context) }),
3678
- ...(input.Field != null && { Field: input.Field }),
3679
- ...(input.NotEndsWith != null && { NotEndsWith: se_Operator(input.NotEndsWith, context) }),
3680
- ...(input.NotEquals != null && { NotEquals: se_Operator(input.NotEquals, context) }),
3681
- ...(input.NotStartsWith != null && { NotStartsWith: se_Operator(input.NotStartsWith, context) }),
3682
- ...(input.StartsWith != null && { StartsWith: se_Operator(input.StartsWith, context) }),
3683
- };
3684
- };
3685
- const se_AdvancedFieldSelectors = (input, context) => {
3686
- return input
3687
- .filter((e) => e != null)
3688
- .map((entry) => {
3689
- return se_AdvancedFieldSelector(entry, context);
3690
- });
3691
- };
3692
- const se_CancelQueryRequest = (input, context) => {
3693
- return {
3694
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3695
- ...(input.QueryId != null && { QueryId: input.QueryId }),
3696
- };
3697
- };
3698
- const se_CreateChannelRequest = (input, context) => {
3699
- return {
3700
- ...(input.Destinations != null && { Destinations: se_Destinations(input.Destinations, context) }),
3701
- ...(input.Name != null && { Name: input.Name }),
3702
- ...(input.Source != null && { Source: input.Source }),
3703
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
3704
- };
3705
- };
3706
- const se_CreateEventDataStoreRequest = (input, context) => {
3707
- return {
3708
- ...(input.AdvancedEventSelectors != null && {
3709
- AdvancedEventSelectors: se_AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3710
- }),
3711
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
3712
- ...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
3713
- ...(input.Name != null && { Name: input.Name }),
3714
- ...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
3715
- ...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
3716
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3717
- ...(input.TerminationProtectionEnabled != null && {
3718
- TerminationProtectionEnabled: input.TerminationProtectionEnabled,
3719
- }),
3720
- };
3721
- };
3722
- const se_CreateTrailRequest = (input, context) => {
3723
- return {
3724
- ...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
3725
- ...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
3726
- ...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
3727
- ...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
3728
- ...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
3729
- ...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
3730
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
3731
- ...(input.Name != null && { Name: input.Name }),
3732
- ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
3733
- ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
3734
- ...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
3735
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3736
- };
3737
- };
3738
- const se_DataResource = (input, context) => {
3739
- return {
3740
- ...(input.Type != null && { Type: input.Type }),
3741
- ...(input.Values != null && { Values: se_DataResourceValues(input.Values, context) }),
3742
- };
3743
- };
3744
- const se_DataResources = (input, context) => {
3745
- return input
3746
- .filter((e) => e != null)
3747
- .map((entry) => {
3748
- return se_DataResource(entry, context);
3749
- });
3750
- };
3751
- const se_DataResourceValues = (input, context) => {
3752
- return input
3753
- .filter((e) => e != null)
3754
- .map((entry) => {
3755
- return entry;
3756
- });
3757
- };
3758
- const se_DeleteChannelRequest = (input, context) => {
3759
- return {
3760
- ...(input.Channel != null && { Channel: input.Channel }),
3761
- };
3762
- };
3763
- const se_DeleteEventDataStoreRequest = (input, context) => {
3764
- return {
3765
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3766
- };
3767
- };
3768
- const se_DeleteResourcePolicyRequest = (input, context) => {
3769
- return {
3770
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3771
- };
3772
- };
3773
- const se_DeleteTrailRequest = (input, context) => {
3774
- return {
3775
- ...(input.Name != null && { Name: input.Name }),
3776
- };
3777
- };
3778
- const se_DeregisterOrganizationDelegatedAdminRequest = (input, context) => {
3779
- return {
3780
- ...(input.DelegatedAdminAccountId != null && { DelegatedAdminAccountId: input.DelegatedAdminAccountId }),
3781
- };
3782
- };
3783
- const se_DescribeQueryRequest = (input, context) => {
3784
- return {
3785
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3786
- ...(input.QueryId != null && { QueryId: input.QueryId }),
3787
- };
3788
- };
3789
- const se_DescribeTrailsRequest = (input, context) => {
3790
- return {
3791
- ...(input.includeShadowTrails != null && { includeShadowTrails: input.includeShadowTrails }),
3792
- ...(input.trailNameList != null && { trailNameList: se_TrailNameList(input.trailNameList, context) }),
3793
- };
3794
- };
3795
- const se_Destination = (input, context) => {
3796
- return {
3797
- ...(input.Location != null && { Location: input.Location }),
3798
- ...(input.Type != null && { Type: input.Type }),
3799
- };
3800
- };
3801
- const se_Destinations = (input, context) => {
3802
- return input
3803
- .filter((e) => e != null)
3804
- .map((entry) => {
3805
- return se_Destination(entry, context);
3806
- });
3807
- };
3808
- const se_EventSelector = (input, context) => {
3809
- return {
3810
- ...(input.DataResources != null && { DataResources: se_DataResources(input.DataResources, context) }),
3811
- ...(input.ExcludeManagementEventSources != null && {
3812
- ExcludeManagementEventSources: se_ExcludeManagementEventSources(input.ExcludeManagementEventSources, context),
3813
- }),
3814
- ...(input.IncludeManagementEvents != null && { IncludeManagementEvents: input.IncludeManagementEvents }),
3815
- ...(input.ReadWriteType != null && { ReadWriteType: input.ReadWriteType }),
3816
- };
3817
- };
3818
- const se_EventSelectors = (input, context) => {
3819
- return input
3820
- .filter((e) => e != null)
3821
- .map((entry) => {
3822
- return se_EventSelector(entry, context);
3823
- });
3824
- };
3825
- const se_ExcludeManagementEventSources = (input, context) => {
3826
- return input
3827
- .filter((e) => e != null)
3828
- .map((entry) => {
3829
- return entry;
3830
- });
3831
- };
3832
- const se_GetChannelRequest = (input, context) => {
3833
- return {
3834
- ...(input.Channel != null && { Channel: input.Channel }),
3835
- };
3836
- };
3837
- const se_GetEventDataStoreRequest = (input, context) => {
3838
- return {
3839
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3840
- };
3841
- };
3842
- const se_GetEventSelectorsRequest = (input, context) => {
3843
- return {
3844
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3845
- };
3846
- };
3847
- const se_GetImportRequest = (input, context) => {
3848
- return {
3849
- ...(input.ImportId != null && { ImportId: input.ImportId }),
3850
- };
3851
- };
3852
- const se_GetInsightSelectorsRequest = (input, context) => {
3853
- return {
3854
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3855
- };
3856
- };
3857
- const se_GetQueryResultsRequest = (input, context) => {
3858
- return {
3859
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3860
- ...(input.MaxQueryResults != null && { MaxQueryResults: input.MaxQueryResults }),
3861
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3862
- ...(input.QueryId != null && { QueryId: input.QueryId }),
3863
- };
3864
- };
3865
- const se_GetResourcePolicyRequest = (input, context) => {
3866
- return {
3867
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3868
- };
3869
- };
3870
- const se_GetTrailRequest = (input, context) => {
3871
- return {
3872
- ...(input.Name != null && { Name: input.Name }),
3873
- };
3874
- };
3875
- const se_GetTrailStatusRequest = (input, context) => {
3876
- return {
3877
- ...(input.Name != null && { Name: input.Name }),
3878
- };
3879
- };
3880
- const se_ImportDestinations = (input, context) => {
3881
- return input
3882
- .filter((e) => e != null)
3883
- .map((entry) => {
3884
- return entry;
3885
- });
3886
- };
3887
- const se_ImportSource = (input, context) => {
3888
- return {
3889
- ...(input.S3 != null && { S3: se_S3ImportSource(input.S3, context) }),
3890
- };
3891
- };
3892
- const se_InsightSelector = (input, context) => {
3893
- return {
3894
- ...(input.InsightType != null && { InsightType: input.InsightType }),
3895
- };
3896
- };
3897
- const se_InsightSelectors = (input, context) => {
3898
- return input
3899
- .filter((e) => e != null)
3900
- .map((entry) => {
3901
- return se_InsightSelector(entry, context);
3902
- });
3903
- };
3904
- const se_ListChannelsRequest = (input, context) => {
3905
- return {
3906
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3907
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3908
- };
3909
- };
3910
- const se_ListEventDataStoresRequest = (input, context) => {
3911
- return {
3912
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3913
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3914
- };
3915
- };
3916
- const se_ListImportFailuresRequest = (input, context) => {
3917
- return {
3918
- ...(input.ImportId != null && { ImportId: input.ImportId }),
3919
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3920
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3921
- };
3922
- };
3923
- const se_ListImportsRequest = (input, context) => {
3924
- return {
3925
- ...(input.Destination != null && { Destination: input.Destination }),
3926
- ...(input.ImportStatus != null && { ImportStatus: input.ImportStatus }),
3927
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3928
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3929
- };
3930
- };
3931
- const se_ListPublicKeysRequest = (input, context) => {
3932
- return {
3933
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3934
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3935
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3936
- };
3937
- };
3938
- const se_ListQueriesRequest = (input, context) => {
3939
- return {
3940
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3941
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3942
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3943
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3944
- ...(input.QueryStatus != null && { QueryStatus: input.QueryStatus }),
3945
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3946
- };
3947
- };
3948
- const se_ListTagsRequest = (input, context) => {
3949
- return {
3950
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3951
- ...(input.ResourceIdList != null && { ResourceIdList: se_ResourceIdList(input.ResourceIdList, context) }),
3952
- };
3953
- };
3954
- const se_ListTrailsRequest = (input, context) => {
3955
- return {
3956
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3957
- };
3958
- };
3959
- const se_LookupAttribute = (input, context) => {
3960
- return {
3961
- ...(input.AttributeKey != null && { AttributeKey: input.AttributeKey }),
3962
- ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
3963
- };
3964
- };
3965
- const se_LookupAttributesList = (input, context) => {
3966
- return input
3967
- .filter((e) => e != null)
3968
- .map((entry) => {
3969
- return se_LookupAttribute(entry, context);
3970
- });
3971
- };
3972
- const se_LookupEventsRequest = (input, context) => {
3973
- return {
3974
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3975
- ...(input.EventCategory != null && { EventCategory: input.EventCategory }),
3976
- ...(input.LookupAttributes != null && {
3977
- LookupAttributes: se_LookupAttributesList(input.LookupAttributes, context),
3978
- }),
3979
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3980
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3981
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3982
- };
3983
- };
3984
- const se_Operator = (input, context) => {
3985
- return input
3986
- .filter((e) => e != null)
3987
- .map((entry) => {
3988
- return entry;
3989
- });
3990
- };
3991
- const se_PutEventSelectorsRequest = (input, context) => {
3992
- return {
3993
- ...(input.AdvancedEventSelectors != null && {
3994
- AdvancedEventSelectors: se_AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3995
- }),
3996
- ...(input.EventSelectors != null && { EventSelectors: se_EventSelectors(input.EventSelectors, context) }),
3997
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3998
- };
3999
- };
4000
- const se_PutInsightSelectorsRequest = (input, context) => {
4001
- return {
4002
- ...(input.InsightSelectors != null && { InsightSelectors: se_InsightSelectors(input.InsightSelectors, context) }),
4003
- ...(input.TrailName != null && { TrailName: input.TrailName }),
4004
- };
4005
- };
4006
- const se_PutResourcePolicyRequest = (input, context) => {
4007
- return {
4008
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4009
- ...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
4010
- };
4011
- };
4012
- const se_RegisterOrganizationDelegatedAdminRequest = (input, context) => {
4013
- return {
4014
- ...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
4015
- };
4016
- };
4017
- const se_RemoveTagsRequest = (input, context) => {
4018
- return {
4019
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4020
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
4021
- };
4022
- };
4023
- const se_ResourceIdList = (input, context) => {
4024
- return input
4025
- .filter((e) => e != null)
4026
- .map((entry) => {
4027
- return entry;
4028
- });
4029
- };
4030
- const se_RestoreEventDataStoreRequest = (input, context) => {
4031
- return {
4032
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
4033
- };
4034
- };
4035
- const se_S3ImportSource = (input, context) => {
4036
- return {
4037
- ...(input.S3BucketAccessRoleArn != null && { S3BucketAccessRoleArn: input.S3BucketAccessRoleArn }),
4038
- ...(input.S3BucketRegion != null && { S3BucketRegion: input.S3BucketRegion }),
4039
- ...(input.S3LocationUri != null && { S3LocationUri: input.S3LocationUri }),
4040
- };
4041
- };
4042
- const se_StartImportRequest = (input, context) => {
4043
- return {
4044
- ...(input.Destinations != null && { Destinations: se_ImportDestinations(input.Destinations, context) }),
4045
- ...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000) }),
4046
- ...(input.ImportId != null && { ImportId: input.ImportId }),
4047
- ...(input.ImportSource != null && { ImportSource: se_ImportSource(input.ImportSource, context) }),
4048
- ...(input.StartEventTime != null && { StartEventTime: Math.round(input.StartEventTime.getTime() / 1000) }),
4049
- };
4050
- };
4051
- const se_StartLoggingRequest = (input, context) => {
4052
- return {
4053
- ...(input.Name != null && { Name: input.Name }),
4054
- };
4055
- };
4056
- const se_StartQueryRequest = (input, context) => {
4057
- return {
4058
- ...(input.DeliveryS3Uri != null && { DeliveryS3Uri: input.DeliveryS3Uri }),
4059
- ...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
4060
- };
4061
- };
4062
- const se_StopImportRequest = (input, context) => {
4063
- return {
4064
- ...(input.ImportId != null && { ImportId: input.ImportId }),
4065
- };
4066
- };
4067
- const se_StopLoggingRequest = (input, context) => {
4068
- return {
4069
- ...(input.Name != null && { Name: input.Name }),
4070
- };
4071
- };
4072
- const se_Tag = (input, context) => {
4073
- return {
4074
- ...(input.Key != null && { Key: input.Key }),
4075
- ...(input.Value != null && { Value: input.Value }),
4076
- };
4077
- };
4078
- const se_TagsList = (input, context) => {
4079
- return input
4080
- .filter((e) => e != null)
4081
- .map((entry) => {
4082
- return se_Tag(entry, context);
4083
- });
4084
- };
4085
- const se_TrailNameList = (input, context) => {
4086
- return input
4087
- .filter((e) => e != null)
4088
- .map((entry) => {
4089
- return entry;
4090
- });
4091
- };
4092
- const se_UpdateChannelRequest = (input, context) => {
4093
- return {
4094
- ...(input.Channel != null && { Channel: input.Channel }),
4095
- ...(input.Destinations != null && { Destinations: se_Destinations(input.Destinations, context) }),
4096
- ...(input.Name != null && { Name: input.Name }),
4097
- };
4098
- };
4099
- const se_UpdateEventDataStoreRequest = (input, context) => {
4100
- return {
4101
- ...(input.AdvancedEventSelectors != null && {
4102
- AdvancedEventSelectors: se_AdvancedEventSelectors(input.AdvancedEventSelectors, context),
4103
- }),
4104
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
4105
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
4106
- ...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
4107
- ...(input.Name != null && { Name: input.Name }),
4108
- ...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
4109
- ...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
4110
- ...(input.TerminationProtectionEnabled != null && {
4111
- TerminationProtectionEnabled: input.TerminationProtectionEnabled,
4112
- }),
4113
- };
4114
- };
4115
- const se_UpdateTrailRequest = (input, context) => {
4116
- return {
4117
- ...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
4118
- ...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
4119
- ...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
4120
- ...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
4121
- ...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
4122
- ...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
4123
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
4124
- ...(input.Name != null && { Name: input.Name }),
4125
- ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
4126
- ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
4127
- ...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
4128
- };
4129
- };
4130
- const de_AccountHasOngoingImportException = (output, context) => {
4131
- return {
4132
- Message: (0, smithy_client_1.expectString)(output.Message),
4133
- };
4134
- };
4135
- const de_AccountNotFoundException = (output, context) => {
4136
- return {
4137
- Message: (0, smithy_client_1.expectString)(output.Message),
4138
- };
4139
- };
4140
- const de_AccountNotRegisteredException = (output, context) => {
4141
- return {
4142
- Message: (0, smithy_client_1.expectString)(output.Message),
4143
- };
4144
- };
4145
- const de_AccountRegisteredException = (output, context) => {
4146
- return {
4147
- Message: (0, smithy_client_1.expectString)(output.Message),
4148
- };
4149
- };
4150
- const de_AddTagsResponse = (output, context) => {
4151
- return {};
4152
- };
4153
- const de_AdvancedEventSelector = (output, context) => {
4154
- return {
4155
- FieldSelectors: output.FieldSelectors != null ? de_AdvancedFieldSelectors(output.FieldSelectors, context) : undefined,
4156
- Name: (0, smithy_client_1.expectString)(output.Name),
4157
- };
4158
- };
4159
- const de_AdvancedEventSelectors = (output, context) => {
4160
- const retVal = (output || [])
4161
- .filter((e) => e != null)
4162
- .map((entry) => {
4163
- if (entry === null) {
4164
- return null;
4165
- }
4166
- return de_AdvancedEventSelector(entry, context);
4167
- });
4168
- return retVal;
4169
- };
4170
- const de_AdvancedFieldSelector = (output, context) => {
4171
- return {
4172
- EndsWith: output.EndsWith != null ? de_Operator(output.EndsWith, context) : undefined,
4173
- Equals: output.Equals != null ? de_Operator(output.Equals, context) : undefined,
4174
- Field: (0, smithy_client_1.expectString)(output.Field),
4175
- NotEndsWith: output.NotEndsWith != null ? de_Operator(output.NotEndsWith, context) : undefined,
4176
- NotEquals: output.NotEquals != null ? de_Operator(output.NotEquals, context) : undefined,
4177
- NotStartsWith: output.NotStartsWith != null ? de_Operator(output.NotStartsWith, context) : undefined,
4178
- StartsWith: output.StartsWith != null ? de_Operator(output.StartsWith, context) : undefined,
4179
- };
4180
- };
4181
- const de_AdvancedFieldSelectors = (output, context) => {
4182
- const retVal = (output || [])
4183
- .filter((e) => e != null)
4184
- .map((entry) => {
4185
- if (entry === null) {
4186
- return null;
4187
- }
4188
- return de_AdvancedFieldSelector(entry, context);
4189
- });
4190
- return retVal;
4191
- };
4192
- const de_CancelQueryResponse = (output, context) => {
4193
- return {
4194
- QueryId: (0, smithy_client_1.expectString)(output.QueryId),
4195
- QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
4196
- };
4197
- };
4198
- const de_CannotDelegateManagementAccountException = (output, context) => {
4199
- return {
4200
- Message: (0, smithy_client_1.expectString)(output.Message),
4201
- };
4202
- };
4203
- const de_Channel = (output, context) => {
4204
- return {
4205
- ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
4206
- Name: (0, smithy_client_1.expectString)(output.Name),
4207
- };
4208
- };
4209
- const de_ChannelAlreadyExistsException = (output, context) => {
4210
- return {
4211
- Message: (0, smithy_client_1.expectString)(output.Message),
4212
- };
4213
- };
4214
- const de_ChannelARNInvalidException = (output, context) => {
4215
- return {
4216
- Message: (0, smithy_client_1.expectString)(output.Message),
4217
- };
4218
- };
4219
- const de_ChannelExistsForEDSException = (output, context) => {
4220
- return {
4221
- Message: (0, smithy_client_1.expectString)(output.Message),
4222
- };
4223
- };
4224
- const de_ChannelMaxLimitExceededException = (output, context) => {
4225
- return {
4226
- Message: (0, smithy_client_1.expectString)(output.Message),
4227
- };
4228
- };
4229
- const de_ChannelNotFoundException = (output, context) => {
4230
- return {
4231
- Message: (0, smithy_client_1.expectString)(output.Message),
4232
- };
4233
- };
4234
- const de_Channels = (output, context) => {
4235
- const retVal = (output || [])
4236
- .filter((e) => e != null)
4237
- .map((entry) => {
4238
- if (entry === null) {
4239
- return null;
4240
- }
4241
- return de_Channel(entry, context);
4242
- });
4243
- return retVal;
4244
- };
4245
- const de_CloudTrailAccessNotEnabledException = (output, context) => {
4246
- return {
4247
- Message: (0, smithy_client_1.expectString)(output.Message),
4248
- };
4249
- };
4250
- const de_CloudTrailARNInvalidException = (output, context) => {
4251
- return {
4252
- Message: (0, smithy_client_1.expectString)(output.Message),
4253
- };
4254
- };
4255
- const de_CloudTrailInvalidClientTokenIdException = (output, context) => {
4256
- return {
4257
- Message: (0, smithy_client_1.expectString)(output.Message),
4258
- };
4259
- };
4260
- const de_CloudWatchLogsDeliveryUnavailableException = (output, context) => {
4261
- return {
4262
- Message: (0, smithy_client_1.expectString)(output.Message),
4263
- };
4264
- };
4265
- const de_ConflictException = (output, context) => {
4266
- return {
4267
- Message: (0, smithy_client_1.expectString)(output.Message),
4268
- };
4269
- };
4270
- const de_CreateChannelResponse = (output, context) => {
4271
- return {
4272
- ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
4273
- Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
4274
- Name: (0, smithy_client_1.expectString)(output.Name),
4275
- Source: (0, smithy_client_1.expectString)(output.Source),
4276
- Tags: output.Tags != null ? de_TagsList(output.Tags, context) : undefined,
4277
- };
4278
- };
4279
- const de_CreateEventDataStoreResponse = (output, context) => {
4280
- return {
4281
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4282
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4283
- : undefined,
4284
- CreatedTimestamp: output.CreatedTimestamp != null
4285
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4286
- : undefined,
4287
- EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
4288
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4289
- MultiRegionEnabled: (0, smithy_client_1.expectBoolean)(output.MultiRegionEnabled),
4290
- Name: (0, smithy_client_1.expectString)(output.Name),
4291
- OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
4292
- RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
4293
- Status: (0, smithy_client_1.expectString)(output.Status),
4294
- TagsList: output.TagsList != null ? de_TagsList(output.TagsList, context) : undefined,
4295
- TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
4296
- UpdatedTimestamp: output.UpdatedTimestamp != null
4297
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
4298
- : undefined,
4299
- };
4300
- };
4301
- const de_CreateTrailResponse = (output, context) => {
4302
- return {
4303
- CloudWatchLogsLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsLogGroupArn),
4304
- CloudWatchLogsRoleArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsRoleArn),
4305
- IncludeGlobalServiceEvents: (0, smithy_client_1.expectBoolean)(output.IncludeGlobalServiceEvents),
4306
- IsMultiRegionTrail: (0, smithy_client_1.expectBoolean)(output.IsMultiRegionTrail),
4307
- IsOrganizationTrail: (0, smithy_client_1.expectBoolean)(output.IsOrganizationTrail),
4308
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4309
- LogFileValidationEnabled: (0, smithy_client_1.expectBoolean)(output.LogFileValidationEnabled),
4310
- Name: (0, smithy_client_1.expectString)(output.Name),
4311
- S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
4312
- S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
4313
- SnsTopicARN: (0, smithy_client_1.expectString)(output.SnsTopicARN),
4314
- SnsTopicName: (0, smithy_client_1.expectString)(output.SnsTopicName),
4315
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
4316
- };
4317
- };
4318
- const de_DataResource = (output, context) => {
4319
- return {
4320
- Type: (0, smithy_client_1.expectString)(output.Type),
4321
- Values: output.Values != null ? de_DataResourceValues(output.Values, context) : undefined,
4322
- };
4323
- };
4324
- const de_DataResources = (output, context) => {
4325
- const retVal = (output || [])
4326
- .filter((e) => e != null)
4327
- .map((entry) => {
4328
- if (entry === null) {
4329
- return null;
4330
- }
4331
- return de_DataResource(entry, context);
4332
- });
4333
- return retVal;
4334
- };
4335
- const de_DataResourceValues = (output, context) => {
4336
- const retVal = (output || [])
4337
- .filter((e) => e != null)
4338
- .map((entry) => {
4339
- if (entry === null) {
4340
- return null;
4341
- }
4342
- return (0, smithy_client_1.expectString)(entry);
4343
- });
4344
- return retVal;
4345
- };
4346
- const de_DelegatedAdminAccountLimitExceededException = (output, context) => {
4347
- return {
4348
- Message: (0, smithy_client_1.expectString)(output.Message),
4349
- };
4350
- };
4351
- const de_DeleteChannelResponse = (output, context) => {
4352
- return {};
4353
- };
4354
- const de_DeleteEventDataStoreResponse = (output, context) => {
4355
- return {};
4356
- };
4357
- const de_DeleteResourcePolicyResponse = (output, context) => {
4358
- return {};
4359
- };
4360
- const de_DeleteTrailResponse = (output, context) => {
4361
- return {};
4362
- };
4363
- const de_DeregisterOrganizationDelegatedAdminResponse = (output, context) => {
4364
- return {};
4365
- };
4366
- const de_DescribeQueryResponse = (output, context) => {
4367
- return {
4368
- DeliveryS3Uri: (0, smithy_client_1.expectString)(output.DeliveryS3Uri),
4369
- DeliveryStatus: (0, smithy_client_1.expectString)(output.DeliveryStatus),
4370
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4371
- QueryId: (0, smithy_client_1.expectString)(output.QueryId),
4372
- QueryStatistics: output.QueryStatistics != null ? de_QueryStatisticsForDescribeQuery(output.QueryStatistics, context) : undefined,
4373
- QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
4374
- QueryString: (0, smithy_client_1.expectString)(output.QueryString),
4375
- };
4376
- };
4377
- const de_DescribeTrailsResponse = (output, context) => {
4378
- return {
4379
- trailList: output.trailList != null ? de_TrailList(output.trailList, context) : undefined,
4380
- };
4381
- };
4382
- const de_Destination = (output, context) => {
4383
- return {
4384
- Location: (0, smithy_client_1.expectString)(output.Location),
4385
- Type: (0, smithy_client_1.expectString)(output.Type),
4386
- };
4387
- };
4388
- const de_Destinations = (output, context) => {
4389
- const retVal = (output || [])
4390
- .filter((e) => e != null)
4391
- .map((entry) => {
4392
- if (entry === null) {
4393
- return null;
4394
- }
4395
- return de_Destination(entry, context);
4396
- });
4397
- return retVal;
4398
- };
4399
- const de_Event = (output, context) => {
4400
- return {
4401
- AccessKeyId: (0, smithy_client_1.expectString)(output.AccessKeyId),
4402
- CloudTrailEvent: (0, smithy_client_1.expectString)(output.CloudTrailEvent),
4403
- EventId: (0, smithy_client_1.expectString)(output.EventId),
4404
- EventName: (0, smithy_client_1.expectString)(output.EventName),
4405
- EventSource: (0, smithy_client_1.expectString)(output.EventSource),
4406
- EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
4407
- ReadOnly: (0, smithy_client_1.expectString)(output.ReadOnly),
4408
- Resources: output.Resources != null ? de_ResourceList(output.Resources, context) : undefined,
4409
- Username: (0, smithy_client_1.expectString)(output.Username),
4410
- };
4411
- };
4412
- const de_EventDataStore = (output, context) => {
4413
- return {
4414
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4415
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4416
- : undefined,
4417
- CreatedTimestamp: output.CreatedTimestamp != null
4418
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4419
- : undefined,
4420
- EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
4421
- MultiRegionEnabled: (0, smithy_client_1.expectBoolean)(output.MultiRegionEnabled),
4422
- Name: (0, smithy_client_1.expectString)(output.Name),
4423
- OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
4424
- RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
4425
- Status: (0, smithy_client_1.expectString)(output.Status),
4426
- TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
4427
- UpdatedTimestamp: output.UpdatedTimestamp != null
4428
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
4429
- : undefined,
4430
- };
4431
- };
4432
- const de_EventDataStoreAlreadyExistsException = (output, context) => {
4433
- return {
4434
- Message: (0, smithy_client_1.expectString)(output.Message),
4435
- };
4436
- };
4437
- const de_EventDataStoreARNInvalidException = (output, context) => {
4438
- return {
4439
- Message: (0, smithy_client_1.expectString)(output.Message),
4440
- };
4441
- };
4442
- const de_EventDataStoreHasOngoingImportException = (output, context) => {
4443
- return {
4444
- Message: (0, smithy_client_1.expectString)(output.Message),
4445
- };
4446
- };
4447
- const de_EventDataStoreMaxLimitExceededException = (output, context) => {
4448
- return {
4449
- Message: (0, smithy_client_1.expectString)(output.Message),
4450
- };
4451
- };
4452
- const de_EventDataStoreNotFoundException = (output, context) => {
4453
- return {
4454
- Message: (0, smithy_client_1.expectString)(output.Message),
4455
- };
4456
- };
4457
- const de_EventDataStores = (output, context) => {
4458
- const retVal = (output || [])
4459
- .filter((e) => e != null)
4460
- .map((entry) => {
4461
- if (entry === null) {
4462
- return null;
4463
- }
4464
- return de_EventDataStore(entry, context);
4465
- });
4466
- return retVal;
4467
- };
4468
- const de_EventDataStoreTerminationProtectedException = (output, context) => {
4469
- return {
4470
- Message: (0, smithy_client_1.expectString)(output.Message),
4471
- };
4472
- };
4473
- const de_EventSelector = (output, context) => {
4474
- return {
4475
- DataResources: output.DataResources != null ? de_DataResources(output.DataResources, context) : undefined,
4476
- ExcludeManagementEventSources: output.ExcludeManagementEventSources != null
4477
- ? de_ExcludeManagementEventSources(output.ExcludeManagementEventSources, context)
4478
- : undefined,
4479
- IncludeManagementEvents: (0, smithy_client_1.expectBoolean)(output.IncludeManagementEvents),
4480
- ReadWriteType: (0, smithy_client_1.expectString)(output.ReadWriteType),
4481
- };
4482
- };
4483
- const de_EventSelectors = (output, context) => {
4484
- const retVal = (output || [])
4485
- .filter((e) => e != null)
4486
- .map((entry) => {
4487
- if (entry === null) {
4488
- return null;
4489
- }
4490
- return de_EventSelector(entry, context);
4491
- });
4492
- return retVal;
4493
- };
4494
- const de_EventsList = (output, context) => {
4495
- const retVal = (output || [])
4496
- .filter((e) => e != null)
4497
- .map((entry) => {
4498
- if (entry === null) {
4499
- return null;
4500
- }
4501
- return de_Event(entry, context);
4502
- });
4503
- return retVal;
4504
- };
4505
- const de_ExcludeManagementEventSources = (output, context) => {
4506
- const retVal = (output || [])
4507
- .filter((e) => e != null)
4508
- .map((entry) => {
4509
- if (entry === null) {
4510
- return null;
4511
- }
4512
- return (0, smithy_client_1.expectString)(entry);
4513
- });
4514
- return retVal;
4515
- };
4516
- const de_GetChannelResponse = (output, context) => {
4517
- return {
4518
- ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
4519
- Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
4520
- IngestionStatus: output.IngestionStatus != null ? de_IngestionStatus(output.IngestionStatus, context) : undefined,
4521
- Name: (0, smithy_client_1.expectString)(output.Name),
4522
- Source: (0, smithy_client_1.expectString)(output.Source),
4523
- SourceConfig: output.SourceConfig != null ? de_SourceConfig(output.SourceConfig, context) : undefined,
4524
- };
4525
- };
4526
- const de_GetEventDataStoreResponse = (output, context) => {
4527
- return {
4528
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4529
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4530
- : undefined,
4531
- CreatedTimestamp: output.CreatedTimestamp != null
4532
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4533
- : undefined,
4534
- EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
4535
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
4536
- MultiRegionEnabled: (0, smithy_client_1.expectBoolean)(output.MultiRegionEnabled),
4537
- Name: (0, smithy_client_1.expectString)(output.Name),
4538
- OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
4539
- RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
4540
- Status: (0, smithy_client_1.expectString)(output.Status),
4541
- TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
4542
- UpdatedTimestamp: output.UpdatedTimestamp != null
4543
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
4544
- : undefined,
4545
- };
4546
- };
4547
- const de_GetEventSelectorsResponse = (output, context) => {
4548
- return {
4549
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4550
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4551
- : undefined,
4552
- EventSelectors: output.EventSelectors != null ? de_EventSelectors(output.EventSelectors, context) : undefined,
4553
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
4554
- };
4555
- };
4556
- const de_GetImportResponse = (output, context) => {
4557
- return {
4558
- CreatedTimestamp: output.CreatedTimestamp != null
4559
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4560
- : undefined,
4561
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
4562
- EndEventTime: output.EndEventTime != null
4563
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndEventTime)))
4564
- : undefined,
4565
- ImportId: (0, smithy_client_1.expectString)(output.ImportId),
4566
- ImportSource: output.ImportSource != null ? de_ImportSource(output.ImportSource, context) : undefined,
4567
- ImportStatistics: output.ImportStatistics != null ? de_ImportStatistics(output.ImportStatistics, context) : undefined,
4568
- ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
4569
- StartEventTime: output.StartEventTime != null
4570
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartEventTime)))
4571
- : undefined,
4572
- UpdatedTimestamp: output.UpdatedTimestamp != null
4573
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
4574
- : undefined,
4575
- };
4576
- };
4577
- const de_GetInsightSelectorsResponse = (output, context) => {
4578
- return {
4579
- InsightSelectors: output.InsightSelectors != null ? de_InsightSelectors(output.InsightSelectors, context) : undefined,
4580
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
4581
- };
4582
- };
4583
- const de_GetQueryResultsResponse = (output, context) => {
4584
- return {
4585
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4586
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4587
- QueryResultRows: output.QueryResultRows != null ? de_QueryResultRows(output.QueryResultRows, context) : undefined,
4588
- QueryStatistics: output.QueryStatistics != null ? de_QueryStatistics(output.QueryStatistics, context) : undefined,
4589
- QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
4590
- };
4591
- };
4592
- const de_GetResourcePolicyResponse = (output, context) => {
4593
- return {
4594
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4595
- ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
4596
- };
4597
- };
4598
- const de_GetTrailResponse = (output, context) => {
4599
- return {
4600
- Trail: output.Trail != null ? de_Trail(output.Trail, context) : undefined,
4601
- };
4602
- };
4603
- const de_GetTrailStatusResponse = (output, context) => {
4604
- return {
4605
- IsLogging: (0, smithy_client_1.expectBoolean)(output.IsLogging),
4606
- LatestCloudWatchLogsDeliveryError: (0, smithy_client_1.expectString)(output.LatestCloudWatchLogsDeliveryError),
4607
- LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime != null
4608
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestCloudWatchLogsDeliveryTime)))
4609
- : undefined,
4610
- LatestDeliveryAttemptSucceeded: (0, smithy_client_1.expectString)(output.LatestDeliveryAttemptSucceeded),
4611
- LatestDeliveryAttemptTime: (0, smithy_client_1.expectString)(output.LatestDeliveryAttemptTime),
4612
- LatestDeliveryError: (0, smithy_client_1.expectString)(output.LatestDeliveryError),
4613
- LatestDeliveryTime: output.LatestDeliveryTime != null
4614
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestDeliveryTime)))
4615
- : undefined,
4616
- LatestDigestDeliveryError: (0, smithy_client_1.expectString)(output.LatestDigestDeliveryError),
4617
- LatestDigestDeliveryTime: output.LatestDigestDeliveryTime != null
4618
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestDigestDeliveryTime)))
4619
- : undefined,
4620
- LatestNotificationAttemptSucceeded: (0, smithy_client_1.expectString)(output.LatestNotificationAttemptSucceeded),
4621
- LatestNotificationAttemptTime: (0, smithy_client_1.expectString)(output.LatestNotificationAttemptTime),
4622
- LatestNotificationError: (0, smithy_client_1.expectString)(output.LatestNotificationError),
4623
- LatestNotificationTime: output.LatestNotificationTime != null
4624
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestNotificationTime)))
4625
- : undefined,
4626
- StartLoggingTime: output.StartLoggingTime != null
4627
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartLoggingTime)))
4628
- : undefined,
4629
- StopLoggingTime: output.StopLoggingTime != null
4630
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopLoggingTime)))
4631
- : undefined,
4632
- TimeLoggingStarted: (0, smithy_client_1.expectString)(output.TimeLoggingStarted),
4633
- TimeLoggingStopped: (0, smithy_client_1.expectString)(output.TimeLoggingStopped),
4634
- };
4635
- };
4636
- const de_ImportDestinations = (output, context) => {
4637
- const retVal = (output || [])
4638
- .filter((e) => e != null)
4639
- .map((entry) => {
4640
- if (entry === null) {
4641
- return null;
4642
- }
4643
- return (0, smithy_client_1.expectString)(entry);
4644
- });
4645
- return retVal;
4646
- };
4647
- const de_ImportFailureList = (output, context) => {
4648
- const retVal = (output || [])
4649
- .filter((e) => e != null)
4650
- .map((entry) => {
4651
- if (entry === null) {
4652
- return null;
4653
- }
4654
- return de_ImportFailureListItem(entry, context);
4655
- });
4656
- return retVal;
4657
- };
4658
- const de_ImportFailureListItem = (output, context) => {
4659
- return {
4660
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4661
- ErrorType: (0, smithy_client_1.expectString)(output.ErrorType),
4662
- LastUpdatedTime: output.LastUpdatedTime != null
4663
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
4664
- : undefined,
4665
- Location: (0, smithy_client_1.expectString)(output.Location),
4666
- Status: (0, smithy_client_1.expectString)(output.Status),
4667
- };
4668
- };
4669
- const de_ImportNotFoundException = (output, context) => {
4670
- return {
4671
- Message: (0, smithy_client_1.expectString)(output.Message),
4672
- };
4673
- };
4674
- const de_ImportsList = (output, context) => {
4675
- const retVal = (output || [])
4676
- .filter((e) => e != null)
4677
- .map((entry) => {
4678
- if (entry === null) {
4679
- return null;
4680
- }
4681
- return de_ImportsListItem(entry, context);
4682
- });
4683
- return retVal;
4684
- };
4685
- const de_ImportsListItem = (output, context) => {
4686
- return {
4687
- CreatedTimestamp: output.CreatedTimestamp != null
4688
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
4689
- : undefined,
4690
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
4691
- ImportId: (0, smithy_client_1.expectString)(output.ImportId),
4692
- ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
4693
- UpdatedTimestamp: output.UpdatedTimestamp != null
4694
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
4695
- : undefined,
4696
- };
4697
- };
4698
- const de_ImportSource = (output, context) => {
4699
- return {
4700
- S3: output.S3 != null ? de_S3ImportSource(output.S3, context) : undefined,
4701
- };
4702
- };
4703
- const de_ImportStatistics = (output, context) => {
4704
- return {
4705
- EventsCompleted: (0, smithy_client_1.expectLong)(output.EventsCompleted),
4706
- FailedEntries: (0, smithy_client_1.expectLong)(output.FailedEntries),
4707
- FilesCompleted: (0, smithy_client_1.expectLong)(output.FilesCompleted),
4708
- PrefixesCompleted: (0, smithy_client_1.expectLong)(output.PrefixesCompleted),
4709
- PrefixesFound: (0, smithy_client_1.expectLong)(output.PrefixesFound),
4710
- };
4711
- };
4712
- const de_InactiveEventDataStoreException = (output, context) => {
4713
- return {
4714
- Message: (0, smithy_client_1.expectString)(output.Message),
4715
- };
4716
- };
4717
- const de_InactiveQueryException = (output, context) => {
4718
- return {
4719
- Message: (0, smithy_client_1.expectString)(output.Message),
4720
- };
4721
- };
4722
- const de_IngestionStatus = (output, context) => {
4723
- return {
4724
- LatestIngestionAttemptEventID: (0, smithy_client_1.expectString)(output.LatestIngestionAttemptEventID),
4725
- LatestIngestionAttemptTime: output.LatestIngestionAttemptTime != null
4726
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestIngestionAttemptTime)))
4727
- : undefined,
4728
- LatestIngestionErrorCode: (0, smithy_client_1.expectString)(output.LatestIngestionErrorCode),
4729
- LatestIngestionSuccessEventID: (0, smithy_client_1.expectString)(output.LatestIngestionSuccessEventID),
4730
- LatestIngestionSuccessTime: output.LatestIngestionSuccessTime != null
4731
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestIngestionSuccessTime)))
4732
- : undefined,
4733
- };
4734
- };
4735
- const de_InsightNotEnabledException = (output, context) => {
4736
- return {
4737
- Message: (0, smithy_client_1.expectString)(output.Message),
4738
- };
4739
- };
4740
- const de_InsightSelector = (output, context) => {
4741
- return {
4742
- InsightType: (0, smithy_client_1.expectString)(output.InsightType),
4743
- };
4744
- };
4745
- const de_InsightSelectors = (output, context) => {
4746
- const retVal = (output || [])
4747
- .filter((e) => e != null)
4748
- .map((entry) => {
4749
- if (entry === null) {
4750
- return null;
4751
- }
4752
- return de_InsightSelector(entry, context);
4753
- });
4754
- return retVal;
4755
- };
4756
- const de_InsufficientDependencyServiceAccessPermissionException = (output, context) => {
4757
- return {
4758
- Message: (0, smithy_client_1.expectString)(output.Message),
4759
- };
4760
- };
4761
- const de_InsufficientEncryptionPolicyException = (output, context) => {
4762
- return {
4763
- Message: (0, smithy_client_1.expectString)(output.Message),
4764
- };
4765
- };
4766
- const de_InsufficientS3BucketPolicyException = (output, context) => {
4767
- return {
4768
- Message: (0, smithy_client_1.expectString)(output.Message),
4769
- };
4770
- };
4771
- const de_InsufficientSnsTopicPolicyException = (output, context) => {
4772
- return {
4773
- Message: (0, smithy_client_1.expectString)(output.Message),
4774
- };
4775
- };
4776
- const de_InvalidCloudWatchLogsLogGroupArnException = (output, context) => {
4777
- return {
4778
- Message: (0, smithy_client_1.expectString)(output.Message),
4779
- };
4780
- };
4781
- const de_InvalidCloudWatchLogsRoleArnException = (output, context) => {
4782
- return {
4783
- Message: (0, smithy_client_1.expectString)(output.Message),
4784
- };
4785
- };
4786
- const de_InvalidDateRangeException = (output, context) => {
4787
- return {
4788
- Message: (0, smithy_client_1.expectString)(output.Message),
4789
- };
4790
- };
4791
- const de_InvalidEventCategoryException = (output, context) => {
4792
- return {
4793
- Message: (0, smithy_client_1.expectString)(output.Message),
4794
- };
4795
- };
4796
- const de_InvalidEventDataStoreCategoryException = (output, context) => {
4797
- return {
4798
- Message: (0, smithy_client_1.expectString)(output.Message),
4799
- };
4800
- };
4801
- const de_InvalidEventDataStoreStatusException = (output, context) => {
4802
- return {
4803
- Message: (0, smithy_client_1.expectString)(output.Message),
4804
- };
4805
- };
4806
- const de_InvalidEventSelectorsException = (output, context) => {
4807
- return {
4808
- Message: (0, smithy_client_1.expectString)(output.Message),
4809
- };
4810
- };
4811
- const de_InvalidHomeRegionException = (output, context) => {
4812
- return {
4813
- Message: (0, smithy_client_1.expectString)(output.Message),
4814
- };
4815
- };
4816
- const de_InvalidImportSourceException = (output, context) => {
4817
- return {
4818
- Message: (0, smithy_client_1.expectString)(output.Message),
4819
- };
4820
- };
4821
- const de_InvalidInsightSelectorsException = (output, context) => {
4822
- return {
4823
- Message: (0, smithy_client_1.expectString)(output.Message),
4824
- };
4825
- };
4826
- const de_InvalidKmsKeyIdException = (output, context) => {
4827
- return {
4828
- Message: (0, smithy_client_1.expectString)(output.Message),
4829
- };
4830
- };
4831
- const de_InvalidLookupAttributesException = (output, context) => {
4832
- return {
4833
- Message: (0, smithy_client_1.expectString)(output.Message),
4834
- };
4835
- };
4836
- const de_InvalidMaxResultsException = (output, context) => {
4837
- return {
4838
- Message: (0, smithy_client_1.expectString)(output.Message),
4839
- };
4840
- };
4841
- const de_InvalidNextTokenException = (output, context) => {
4842
- return {
4843
- Message: (0, smithy_client_1.expectString)(output.Message),
4844
- };
4845
- };
4846
- const de_InvalidParameterCombinationException = (output, context) => {
4847
- return {
4848
- Message: (0, smithy_client_1.expectString)(output.Message),
4849
- };
4850
- };
4851
- const de_InvalidParameterException = (output, context) => {
4852
- return {
4853
- Message: (0, smithy_client_1.expectString)(output.Message),
4854
- };
4855
- };
4856
- const de_InvalidQueryStatementException = (output, context) => {
4857
- return {
4858
- Message: (0, smithy_client_1.expectString)(output.Message),
4859
- };
4860
- };
4861
- const de_InvalidQueryStatusException = (output, context) => {
4862
- return {
4863
- Message: (0, smithy_client_1.expectString)(output.Message),
4864
- };
4865
- };
4866
- const de_InvalidS3BucketNameException = (output, context) => {
4867
- return {
4868
- Message: (0, smithy_client_1.expectString)(output.Message),
4869
- };
4870
- };
4871
- const de_InvalidS3PrefixException = (output, context) => {
4872
- return {
4873
- Message: (0, smithy_client_1.expectString)(output.Message),
4874
- };
4875
- };
4876
- const de_InvalidSnsTopicNameException = (output, context) => {
4877
- return {
4878
- Message: (0, smithy_client_1.expectString)(output.Message),
4879
- };
4880
- };
4881
- const de_InvalidSourceException = (output, context) => {
4882
- return {
4883
- Message: (0, smithy_client_1.expectString)(output.Message),
4884
- };
4885
- };
4886
- const de_InvalidTagParameterException = (output, context) => {
4887
- return {
4888
- Message: (0, smithy_client_1.expectString)(output.Message),
4889
- };
4890
- };
4891
- const de_InvalidTimeRangeException = (output, context) => {
4892
- return {
4893
- Message: (0, smithy_client_1.expectString)(output.Message),
4894
- };
4895
- };
4896
- const de_InvalidTokenException = (output, context) => {
4897
- return {
4898
- Message: (0, smithy_client_1.expectString)(output.Message),
4899
- };
4900
- };
4901
- const de_InvalidTrailNameException = (output, context) => {
4902
- return {
4903
- Message: (0, smithy_client_1.expectString)(output.Message),
4904
- };
4905
- };
4906
- const de_KmsException = (output, context) => {
4907
- return {
4908
- Message: (0, smithy_client_1.expectString)(output.Message),
4909
- };
4910
- };
4911
- const de_KmsKeyDisabledException = (output, context) => {
4912
- return {
4913
- Message: (0, smithy_client_1.expectString)(output.Message),
4914
- };
4915
- };
4916
- const de_KmsKeyNotFoundException = (output, context) => {
4917
- return {
4918
- Message: (0, smithy_client_1.expectString)(output.Message),
4919
- };
4920
- };
4921
- const de_ListChannelsResponse = (output, context) => {
4922
- return {
4923
- Channels: output.Channels != null ? de_Channels(output.Channels, context) : undefined,
4924
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4925
- };
4926
- };
4927
- const de_ListEventDataStoresResponse = (output, context) => {
4928
- return {
4929
- EventDataStores: output.EventDataStores != null ? de_EventDataStores(output.EventDataStores, context) : undefined,
4930
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4931
- };
4932
- };
4933
- const de_ListImportFailuresResponse = (output, context) => {
4934
- return {
4935
- Failures: output.Failures != null ? de_ImportFailureList(output.Failures, context) : undefined,
4936
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4937
- };
4938
- };
4939
- const de_ListImportsResponse = (output, context) => {
4940
- return {
4941
- Imports: output.Imports != null ? de_ImportsList(output.Imports, context) : undefined,
4942
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4943
- };
4944
- };
4945
- const de_ListPublicKeysResponse = (output, context) => {
4946
- return {
4947
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4948
- PublicKeyList: output.PublicKeyList != null ? de_PublicKeyList(output.PublicKeyList, context) : undefined,
4949
- };
4950
- };
4951
- const de_ListQueriesResponse = (output, context) => {
4952
- return {
4953
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4954
- Queries: output.Queries != null ? de_Queries(output.Queries, context) : undefined,
4955
- };
4956
- };
4957
- const de_ListTagsResponse = (output, context) => {
4958
- return {
4959
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4960
- ResourceTagList: output.ResourceTagList != null ? de_ResourceTagList(output.ResourceTagList, context) : undefined,
4961
- };
4962
- };
4963
- const de_ListTrailsResponse = (output, context) => {
4964
- return {
4965
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4966
- Trails: output.Trails != null ? de_Trails(output.Trails, context) : undefined,
4967
- };
4968
- };
4969
- const de_LookupEventsResponse = (output, context) => {
4970
- return {
4971
- Events: output.Events != null ? de_EventsList(output.Events, context) : undefined,
4972
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4973
- };
4974
- };
4975
- const de_MaxConcurrentQueriesException = (output, context) => {
4976
- return {
4977
- Message: (0, smithy_client_1.expectString)(output.Message),
4978
- };
4979
- };
4980
- const de_MaximumNumberOfTrailsExceededException = (output, context) => {
4981
- return {
4982
- Message: (0, smithy_client_1.expectString)(output.Message),
4983
- };
4984
- };
4985
- const de_NoManagementAccountSLRExistsException = (output, context) => {
4986
- return {
4987
- Message: (0, smithy_client_1.expectString)(output.Message),
4988
- };
4989
- };
4990
- const de_NotOrganizationManagementAccountException = (output, context) => {
4991
- return {
4992
- Message: (0, smithy_client_1.expectString)(output.Message),
4993
- };
4994
- };
4995
- const de_NotOrganizationMasterAccountException = (output, context) => {
4996
- return {
4997
- Message: (0, smithy_client_1.expectString)(output.Message),
4998
- };
4999
- };
5000
- const de_OperationNotPermittedException = (output, context) => {
5001
- return {
5002
- Message: (0, smithy_client_1.expectString)(output.Message),
5003
- };
5004
- };
5005
- const de_Operator = (output, context) => {
5006
- const retVal = (output || [])
5007
- .filter((e) => e != null)
5008
- .map((entry) => {
5009
- if (entry === null) {
5010
- return null;
5011
- }
5012
- return (0, smithy_client_1.expectString)(entry);
3611
+ const se_ListPublicKeysRequest = (input, context) => {
3612
+ return (0, smithy_client_1.take)(input, {
3613
+ EndTime: (_) => Math.round(_.getTime() / 1000),
3614
+ NextToken: [],
3615
+ StartTime: (_) => Math.round(_.getTime() / 1000),
5013
3616
  });
5014
- return retVal;
5015
- };
5016
- const de_OrganizationNotInAllFeaturesModeException = (output, context) => {
5017
- return {
5018
- Message: (0, smithy_client_1.expectString)(output.Message),
5019
- };
5020
- };
5021
- const de_OrganizationsNotInUseException = (output, context) => {
5022
- return {
5023
- Message: (0, smithy_client_1.expectString)(output.Message),
5024
- };
5025
- };
5026
- const de_PublicKey = (output, context) => {
5027
- return {
5028
- Fingerprint: (0, smithy_client_1.expectString)(output.Fingerprint),
5029
- ValidityEndTime: output.ValidityEndTime != null
5030
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidityEndTime)))
5031
- : undefined,
5032
- ValidityStartTime: output.ValidityStartTime != null
5033
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidityStartTime)))
5034
- : undefined,
5035
- Value: output.Value != null ? context.base64Decoder(output.Value) : undefined,
5036
- };
5037
3617
  };
5038
- const de_PublicKeyList = (output, context) => {
5039
- const retVal = (output || [])
5040
- .filter((e) => e != null)
5041
- .map((entry) => {
5042
- if (entry === null) {
5043
- return null;
5044
- }
5045
- return de_PublicKey(entry, context);
3618
+ const se_ListQueriesRequest = (input, context) => {
3619
+ return (0, smithy_client_1.take)(input, {
3620
+ EndTime: (_) => Math.round(_.getTime() / 1000),
3621
+ EventDataStore: [],
3622
+ MaxResults: [],
3623
+ NextToken: [],
3624
+ QueryStatus: [],
3625
+ StartTime: (_) => Math.round(_.getTime() / 1000),
5046
3626
  });
5047
- return retVal;
5048
- };
5049
- const de_PutEventSelectorsResponse = (output, context) => {
5050
- return {
5051
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5052
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5053
- : undefined,
5054
- EventSelectors: output.EventSelectors != null ? de_EventSelectors(output.EventSelectors, context) : undefined,
5055
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
5056
- };
5057
3627
  };
5058
- const de_PutInsightSelectorsResponse = (output, context) => {
5059
- return {
5060
- InsightSelectors: output.InsightSelectors != null ? de_InsightSelectors(output.InsightSelectors, context) : undefined,
5061
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
5062
- };
3628
+ const se_LookupEventsRequest = (input, context) => {
3629
+ return (0, smithy_client_1.take)(input, {
3630
+ EndTime: (_) => Math.round(_.getTime() / 1000),
3631
+ EventCategory: [],
3632
+ LookupAttributes: smithy_client_1._json,
3633
+ MaxResults: [],
3634
+ NextToken: [],
3635
+ StartTime: (_) => Math.round(_.getTime() / 1000),
3636
+ });
5063
3637
  };
5064
- const de_PutResourcePolicyResponse = (output, context) => {
5065
- return {
5066
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
5067
- ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
5068
- };
3638
+ const se_StartImportRequest = (input, context) => {
3639
+ return (0, smithy_client_1.take)(input, {
3640
+ Destinations: smithy_client_1._json,
3641
+ EndEventTime: (_) => Math.round(_.getTime() / 1000),
3642
+ ImportId: [],
3643
+ ImportSource: smithy_client_1._json,
3644
+ StartEventTime: (_) => Math.round(_.getTime() / 1000),
3645
+ });
5069
3646
  };
5070
- const de_Queries = (output, context) => {
5071
- const retVal = (output || [])
5072
- .filter((e) => e != null)
5073
- .map((entry) => {
5074
- if (entry === null) {
5075
- return null;
5076
- }
5077
- return de_Query(entry, context);
3647
+ const de_CreateEventDataStoreResponse = (output, context) => {
3648
+ return (0, smithy_client_1.take)(output, {
3649
+ AdvancedEventSelectors: smithy_client_1._json,
3650
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3651
+ EventDataStoreArn: smithy_client_1.expectString,
3652
+ KmsKeyId: smithy_client_1.expectString,
3653
+ MultiRegionEnabled: smithy_client_1.expectBoolean,
3654
+ Name: smithy_client_1.expectString,
3655
+ OrganizationEnabled: smithy_client_1.expectBoolean,
3656
+ RetentionPeriod: smithy_client_1.expectInt32,
3657
+ Status: smithy_client_1.expectString,
3658
+ TagsList: smithy_client_1._json,
3659
+ TerminationProtectionEnabled: smithy_client_1.expectBoolean,
3660
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5078
3661
  });
5079
- return retVal;
5080
3662
  };
5081
- const de_Query = (output, context) => {
5082
- return {
5083
- CreationTime: output.CreationTime != null
5084
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5085
- : undefined,
5086
- QueryId: (0, smithy_client_1.expectString)(output.QueryId),
5087
- QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
5088
- };
3663
+ const de_DescribeQueryResponse = (output, context) => {
3664
+ return (0, smithy_client_1.take)(output, {
3665
+ DeliveryS3Uri: smithy_client_1.expectString,
3666
+ DeliveryStatus: smithy_client_1.expectString,
3667
+ ErrorMessage: smithy_client_1.expectString,
3668
+ QueryId: smithy_client_1.expectString,
3669
+ QueryStatistics: (_) => de_QueryStatisticsForDescribeQuery(_, context),
3670
+ QueryStatus: smithy_client_1.expectString,
3671
+ QueryString: smithy_client_1.expectString,
3672
+ });
5089
3673
  };
5090
- const de_QueryIdNotFoundException = (output, context) => {
5091
- return {
5092
- Message: (0, smithy_client_1.expectString)(output.Message),
5093
- };
3674
+ const de_Event = (output, context) => {
3675
+ return (0, smithy_client_1.take)(output, {
3676
+ AccessKeyId: smithy_client_1.expectString,
3677
+ CloudTrailEvent: smithy_client_1.expectString,
3678
+ EventId: smithy_client_1.expectString,
3679
+ EventName: smithy_client_1.expectString,
3680
+ EventSource: smithy_client_1.expectString,
3681
+ EventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3682
+ ReadOnly: smithy_client_1.expectString,
3683
+ Resources: smithy_client_1._json,
3684
+ Username: smithy_client_1.expectString,
3685
+ });
5094
3686
  };
5095
- const de_QueryResultColumn = (output, context) => {
5096
- return Object.entries(output).reduce((acc, [key, value]) => {
5097
- if (value === null) {
5098
- return acc;
5099
- }
5100
- acc[key] = (0, smithy_client_1.expectString)(value);
5101
- return acc;
5102
- }, {});
3687
+ const de_EventDataStore = (output, context) => {
3688
+ return (0, smithy_client_1.take)(output, {
3689
+ AdvancedEventSelectors: smithy_client_1._json,
3690
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3691
+ EventDataStoreArn: smithy_client_1.expectString,
3692
+ MultiRegionEnabled: smithy_client_1.expectBoolean,
3693
+ Name: smithy_client_1.expectString,
3694
+ OrganizationEnabled: smithy_client_1.expectBoolean,
3695
+ RetentionPeriod: smithy_client_1.expectInt32,
3696
+ Status: smithy_client_1.expectString,
3697
+ TerminationProtectionEnabled: smithy_client_1.expectBoolean,
3698
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3699
+ });
5103
3700
  };
5104
- const de_QueryResultRow = (output, context) => {
3701
+ const de_EventDataStores = (output, context) => {
5105
3702
  const retVal = (output || [])
5106
3703
  .filter((e) => e != null)
5107
3704
  .map((entry) => {
5108
- if (entry === null) {
5109
- return null;
5110
- }
5111
- return de_QueryResultColumn(entry, context);
3705
+ return de_EventDataStore(entry, context);
5112
3706
  });
5113
3707
  return retVal;
5114
3708
  };
5115
- const de_QueryResultRows = (output, context) => {
3709
+ const de_EventsList = (output, context) => {
5116
3710
  const retVal = (output || [])
5117
3711
  .filter((e) => e != null)
5118
3712
  .map((entry) => {
5119
- if (entry === null) {
5120
- return null;
5121
- }
5122
- return de_QueryResultRow(entry, context);
3713
+ return de_Event(entry, context);
5123
3714
  });
5124
3715
  return retVal;
5125
3716
  };
5126
- const de_QueryStatistics = (output, context) => {
5127
- return {
5128
- BytesScanned: (0, smithy_client_1.expectLong)(output.BytesScanned),
5129
- ResultsCount: (0, smithy_client_1.expectInt32)(output.ResultsCount),
5130
- TotalResultsCount: (0, smithy_client_1.expectInt32)(output.TotalResultsCount),
5131
- };
5132
- };
5133
- const de_QueryStatisticsForDescribeQuery = (output, context) => {
5134
- return {
5135
- BytesScanned: (0, smithy_client_1.expectLong)(output.BytesScanned),
5136
- CreationTime: output.CreationTime != null
5137
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5138
- : undefined,
5139
- EventsMatched: (0, smithy_client_1.expectLong)(output.EventsMatched),
5140
- EventsScanned: (0, smithy_client_1.expectLong)(output.EventsScanned),
5141
- ExecutionTimeInMillis: (0, smithy_client_1.expectInt32)(output.ExecutionTimeInMillis),
5142
- };
5143
- };
5144
- const de_RegisterOrganizationDelegatedAdminResponse = (output, context) => {
5145
- return {};
3717
+ const de_GetChannelResponse = (output, context) => {
3718
+ return (0, smithy_client_1.take)(output, {
3719
+ ChannelArn: smithy_client_1.expectString,
3720
+ Destinations: smithy_client_1._json,
3721
+ IngestionStatus: (_) => de_IngestionStatus(_, context),
3722
+ Name: smithy_client_1.expectString,
3723
+ Source: smithy_client_1.expectString,
3724
+ SourceConfig: smithy_client_1._json,
3725
+ });
5146
3726
  };
5147
- const de_RemoveTagsResponse = (output, context) => {
5148
- return {};
3727
+ const de_GetEventDataStoreResponse = (output, context) => {
3728
+ return (0, smithy_client_1.take)(output, {
3729
+ AdvancedEventSelectors: smithy_client_1._json,
3730
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3731
+ EventDataStoreArn: smithy_client_1.expectString,
3732
+ KmsKeyId: smithy_client_1.expectString,
3733
+ MultiRegionEnabled: smithy_client_1.expectBoolean,
3734
+ Name: smithy_client_1.expectString,
3735
+ OrganizationEnabled: smithy_client_1.expectBoolean,
3736
+ RetentionPeriod: smithy_client_1.expectInt32,
3737
+ Status: smithy_client_1.expectString,
3738
+ TerminationProtectionEnabled: smithy_client_1.expectBoolean,
3739
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3740
+ });
5149
3741
  };
5150
- const de_Resource = (output, context) => {
5151
- return {
5152
- ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
5153
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
5154
- };
3742
+ const de_GetImportResponse = (output, context) => {
3743
+ return (0, smithy_client_1.take)(output, {
3744
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3745
+ Destinations: smithy_client_1._json,
3746
+ EndEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3747
+ ImportId: smithy_client_1.expectString,
3748
+ ImportSource: smithy_client_1._json,
3749
+ ImportStatistics: smithy_client_1._json,
3750
+ ImportStatus: smithy_client_1.expectString,
3751
+ StartEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3752
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3753
+ });
5155
3754
  };
5156
- const de_ResourceARNNotValidException = (output, context) => {
5157
- return {
5158
- Message: (0, smithy_client_1.expectString)(output.Message),
5159
- };
3755
+ const de_GetTrailStatusResponse = (output, context) => {
3756
+ return (0, smithy_client_1.take)(output, {
3757
+ IsLogging: smithy_client_1.expectBoolean,
3758
+ LatestCloudWatchLogsDeliveryError: smithy_client_1.expectString,
3759
+ LatestCloudWatchLogsDeliveryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3760
+ LatestDeliveryAttemptSucceeded: smithy_client_1.expectString,
3761
+ LatestDeliveryAttemptTime: smithy_client_1.expectString,
3762
+ LatestDeliveryError: smithy_client_1.expectString,
3763
+ LatestDeliveryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3764
+ LatestDigestDeliveryError: smithy_client_1.expectString,
3765
+ LatestDigestDeliveryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3766
+ LatestNotificationAttemptSucceeded: smithy_client_1.expectString,
3767
+ LatestNotificationAttemptTime: smithy_client_1.expectString,
3768
+ LatestNotificationError: smithy_client_1.expectString,
3769
+ LatestNotificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3770
+ StartLoggingTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3771
+ StopLoggingTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3772
+ TimeLoggingStarted: smithy_client_1.expectString,
3773
+ TimeLoggingStopped: smithy_client_1.expectString,
3774
+ });
5160
3775
  };
5161
- const de_ResourceList = (output, context) => {
3776
+ const de_ImportFailureList = (output, context) => {
5162
3777
  const retVal = (output || [])
5163
3778
  .filter((e) => e != null)
5164
3779
  .map((entry) => {
5165
- if (entry === null) {
5166
- return null;
5167
- }
5168
- return de_Resource(entry, context);
3780
+ return de_ImportFailureListItem(entry, context);
5169
3781
  });
5170
3782
  return retVal;
5171
3783
  };
5172
- const de_ResourceNotFoundException = (output, context) => {
5173
- return {
5174
- Message: (0, smithy_client_1.expectString)(output.Message),
5175
- };
5176
- };
5177
- const de_ResourcePolicyNotFoundException = (output, context) => {
5178
- return {
5179
- Message: (0, smithy_client_1.expectString)(output.Message),
5180
- };
5181
- };
5182
- const de_ResourcePolicyNotValidException = (output, context) => {
5183
- return {
5184
- Message: (0, smithy_client_1.expectString)(output.Message),
5185
- };
5186
- };
5187
- const de_ResourceTag = (output, context) => {
5188
- return {
5189
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
5190
- TagsList: output.TagsList != null ? de_TagsList(output.TagsList, context) : undefined,
5191
- };
3784
+ const de_ImportFailureListItem = (output, context) => {
3785
+ return (0, smithy_client_1.take)(output, {
3786
+ ErrorMessage: smithy_client_1.expectString,
3787
+ ErrorType: smithy_client_1.expectString,
3788
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3789
+ Location: smithy_client_1.expectString,
3790
+ Status: smithy_client_1.expectString,
3791
+ });
5192
3792
  };
5193
- const de_ResourceTagList = (output, context) => {
3793
+ const de_ImportsList = (output, context) => {
5194
3794
  const retVal = (output || [])
5195
3795
  .filter((e) => e != null)
5196
3796
  .map((entry) => {
5197
- if (entry === null) {
5198
- return null;
5199
- }
5200
- return de_ResourceTag(entry, context);
3797
+ return de_ImportsListItem(entry, context);
5201
3798
  });
5202
3799
  return retVal;
5203
3800
  };
5204
- const de_ResourceTypeNotSupportedException = (output, context) => {
5205
- return {
5206
- Message: (0, smithy_client_1.expectString)(output.Message),
5207
- };
5208
- };
5209
- const de_RestoreEventDataStoreResponse = (output, context) => {
5210
- return {
5211
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5212
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5213
- : undefined,
5214
- CreatedTimestamp: output.CreatedTimestamp != null
5215
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
5216
- : undefined,
5217
- EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
5218
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
5219
- MultiRegionEnabled: (0, smithy_client_1.expectBoolean)(output.MultiRegionEnabled),
5220
- Name: (0, smithy_client_1.expectString)(output.Name),
5221
- OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
5222
- RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
5223
- Status: (0, smithy_client_1.expectString)(output.Status),
5224
- TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
5225
- UpdatedTimestamp: output.UpdatedTimestamp != null
5226
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
5227
- : undefined,
5228
- };
5229
- };
5230
- const de_S3BucketDoesNotExistException = (output, context) => {
5231
- return {
5232
- Message: (0, smithy_client_1.expectString)(output.Message),
5233
- };
5234
- };
5235
- const de_S3ImportSource = (output, context) => {
5236
- return {
5237
- S3BucketAccessRoleArn: (0, smithy_client_1.expectString)(output.S3BucketAccessRoleArn),
5238
- S3BucketRegion: (0, smithy_client_1.expectString)(output.S3BucketRegion),
5239
- S3LocationUri: (0, smithy_client_1.expectString)(output.S3LocationUri),
5240
- };
3801
+ const de_ImportsListItem = (output, context) => {
3802
+ return (0, smithy_client_1.take)(output, {
3803
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3804
+ Destinations: smithy_client_1._json,
3805
+ ImportId: smithy_client_1.expectString,
3806
+ ImportStatus: smithy_client_1.expectString,
3807
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3808
+ });
5241
3809
  };
5242
- const de_SourceConfig = (output, context) => {
5243
- return {
5244
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5245
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5246
- : undefined,
5247
- ApplyToAllRegions: (0, smithy_client_1.expectBoolean)(output.ApplyToAllRegions),
5248
- };
3810
+ const de_IngestionStatus = (output, context) => {
3811
+ return (0, smithy_client_1.take)(output, {
3812
+ LatestIngestionAttemptEventID: smithy_client_1.expectString,
3813
+ LatestIngestionAttemptTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3814
+ LatestIngestionErrorCode: smithy_client_1.expectString,
3815
+ LatestIngestionSuccessEventID: smithy_client_1.expectString,
3816
+ LatestIngestionSuccessTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3817
+ });
5249
3818
  };
5250
- const de_StartImportResponse = (output, context) => {
5251
- return {
5252
- CreatedTimestamp: output.CreatedTimestamp != null
5253
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
5254
- : undefined,
5255
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
5256
- EndEventTime: output.EndEventTime != null
5257
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndEventTime)))
5258
- : undefined,
5259
- ImportId: (0, smithy_client_1.expectString)(output.ImportId),
5260
- ImportSource: output.ImportSource != null ? de_ImportSource(output.ImportSource, context) : undefined,
5261
- ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
5262
- StartEventTime: output.StartEventTime != null
5263
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartEventTime)))
5264
- : undefined,
5265
- UpdatedTimestamp: output.UpdatedTimestamp != null
5266
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
5267
- : undefined,
5268
- };
3819
+ const de_ListEventDataStoresResponse = (output, context) => {
3820
+ return (0, smithy_client_1.take)(output, {
3821
+ EventDataStores: (_) => de_EventDataStores(_, context),
3822
+ NextToken: smithy_client_1.expectString,
3823
+ });
5269
3824
  };
5270
- const de_StartLoggingResponse = (output, context) => {
5271
- return {};
3825
+ const de_ListImportFailuresResponse = (output, context) => {
3826
+ return (0, smithy_client_1.take)(output, {
3827
+ Failures: (_) => de_ImportFailureList(_, context),
3828
+ NextToken: smithy_client_1.expectString,
3829
+ });
5272
3830
  };
5273
- const de_StartQueryResponse = (output, context) => {
5274
- return {
5275
- QueryId: (0, smithy_client_1.expectString)(output.QueryId),
5276
- };
3831
+ const de_ListImportsResponse = (output, context) => {
3832
+ return (0, smithy_client_1.take)(output, {
3833
+ Imports: (_) => de_ImportsList(_, context),
3834
+ NextToken: smithy_client_1.expectString,
3835
+ });
5277
3836
  };
5278
- const de_StopImportResponse = (output, context) => {
5279
- return {
5280
- CreatedTimestamp: output.CreatedTimestamp != null
5281
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
5282
- : undefined,
5283
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
5284
- EndEventTime: output.EndEventTime != null
5285
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndEventTime)))
5286
- : undefined,
5287
- ImportId: (0, smithy_client_1.expectString)(output.ImportId),
5288
- ImportSource: output.ImportSource != null ? de_ImportSource(output.ImportSource, context) : undefined,
5289
- ImportStatistics: output.ImportStatistics != null ? de_ImportStatistics(output.ImportStatistics, context) : undefined,
5290
- ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
5291
- StartEventTime: output.StartEventTime != null
5292
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartEventTime)))
5293
- : undefined,
5294
- UpdatedTimestamp: output.UpdatedTimestamp != null
5295
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
5296
- : undefined,
5297
- };
3837
+ const de_ListPublicKeysResponse = (output, context) => {
3838
+ return (0, smithy_client_1.take)(output, {
3839
+ NextToken: smithy_client_1.expectString,
3840
+ PublicKeyList: (_) => de_PublicKeyList(_, context),
3841
+ });
5298
3842
  };
5299
- const de_StopLoggingResponse = (output, context) => {
5300
- return {};
3843
+ const de_ListQueriesResponse = (output, context) => {
3844
+ return (0, smithy_client_1.take)(output, {
3845
+ NextToken: smithy_client_1.expectString,
3846
+ Queries: (_) => de_Queries(_, context),
3847
+ });
5301
3848
  };
5302
- const de_Tag = (output, context) => {
5303
- return {
5304
- Key: (0, smithy_client_1.expectString)(output.Key),
5305
- Value: (0, smithy_client_1.expectString)(output.Value),
5306
- };
3849
+ const de_LookupEventsResponse = (output, context) => {
3850
+ return (0, smithy_client_1.take)(output, {
3851
+ Events: (_) => de_EventsList(_, context),
3852
+ NextToken: smithy_client_1.expectString,
3853
+ });
5307
3854
  };
5308
- const de_TagsLimitExceededException = (output, context) => {
5309
- return {
5310
- Message: (0, smithy_client_1.expectString)(output.Message),
5311
- };
3855
+ const de_PublicKey = (output, context) => {
3856
+ return (0, smithy_client_1.take)(output, {
3857
+ Fingerprint: smithy_client_1.expectString,
3858
+ ValidityEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3859
+ ValidityStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3860
+ Value: context.base64Decoder,
3861
+ });
5312
3862
  };
5313
- const de_TagsList = (output, context) => {
3863
+ const de_PublicKeyList = (output, context) => {
5314
3864
  const retVal = (output || [])
5315
3865
  .filter((e) => e != null)
5316
3866
  .map((entry) => {
5317
- if (entry === null) {
5318
- return null;
5319
- }
5320
- return de_Tag(entry, context);
3867
+ return de_PublicKey(entry, context);
5321
3868
  });
5322
3869
  return retVal;
5323
3870
  };
5324
- const de_Trail = (output, context) => {
5325
- return {
5326
- CloudWatchLogsLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsLogGroupArn),
5327
- CloudWatchLogsRoleArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsRoleArn),
5328
- HasCustomEventSelectors: (0, smithy_client_1.expectBoolean)(output.HasCustomEventSelectors),
5329
- HasInsightSelectors: (0, smithy_client_1.expectBoolean)(output.HasInsightSelectors),
5330
- HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
5331
- IncludeGlobalServiceEvents: (0, smithy_client_1.expectBoolean)(output.IncludeGlobalServiceEvents),
5332
- IsMultiRegionTrail: (0, smithy_client_1.expectBoolean)(output.IsMultiRegionTrail),
5333
- IsOrganizationTrail: (0, smithy_client_1.expectBoolean)(output.IsOrganizationTrail),
5334
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
5335
- LogFileValidationEnabled: (0, smithy_client_1.expectBoolean)(output.LogFileValidationEnabled),
5336
- Name: (0, smithy_client_1.expectString)(output.Name),
5337
- S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
5338
- S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
5339
- SnsTopicARN: (0, smithy_client_1.expectString)(output.SnsTopicARN),
5340
- SnsTopicName: (0, smithy_client_1.expectString)(output.SnsTopicName),
5341
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
5342
- };
5343
- };
5344
- const de_TrailAlreadyExistsException = (output, context) => {
5345
- return {
5346
- Message: (0, smithy_client_1.expectString)(output.Message),
5347
- };
5348
- };
5349
- const de_TrailInfo = (output, context) => {
5350
- return {
5351
- HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
5352
- Name: (0, smithy_client_1.expectString)(output.Name),
5353
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
5354
- };
5355
- };
5356
- const de_TrailList = (output, context) => {
3871
+ const de_Queries = (output, context) => {
5357
3872
  const retVal = (output || [])
5358
3873
  .filter((e) => e != null)
5359
3874
  .map((entry) => {
5360
- if (entry === null) {
5361
- return null;
5362
- }
5363
- return de_Trail(entry, context);
3875
+ return de_Query(entry, context);
5364
3876
  });
5365
3877
  return retVal;
5366
3878
  };
5367
- const de_TrailNotFoundException = (output, context) => {
5368
- return {
5369
- Message: (0, smithy_client_1.expectString)(output.Message),
5370
- };
3879
+ const de_Query = (output, context) => {
3880
+ return (0, smithy_client_1.take)(output, {
3881
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3882
+ QueryId: smithy_client_1.expectString,
3883
+ QueryStatus: smithy_client_1.expectString,
3884
+ });
5371
3885
  };
5372
- const de_TrailNotProvidedException = (output, context) => {
5373
- return {
5374
- Message: (0, smithy_client_1.expectString)(output.Message),
5375
- };
3886
+ const de_QueryStatisticsForDescribeQuery = (output, context) => {
3887
+ return (0, smithy_client_1.take)(output, {
3888
+ BytesScanned: smithy_client_1.expectLong,
3889
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3890
+ EventsMatched: smithy_client_1.expectLong,
3891
+ EventsScanned: smithy_client_1.expectLong,
3892
+ ExecutionTimeInMillis: smithy_client_1.expectInt32,
3893
+ });
5376
3894
  };
5377
- const de_Trails = (output, context) => {
5378
- const retVal = (output || [])
5379
- .filter((e) => e != null)
5380
- .map((entry) => {
5381
- if (entry === null) {
5382
- return null;
5383
- }
5384
- return de_TrailInfo(entry, context);
3895
+ const de_RestoreEventDataStoreResponse = (output, context) => {
3896
+ return (0, smithy_client_1.take)(output, {
3897
+ AdvancedEventSelectors: smithy_client_1._json,
3898
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3899
+ EventDataStoreArn: smithy_client_1.expectString,
3900
+ KmsKeyId: smithy_client_1.expectString,
3901
+ MultiRegionEnabled: smithy_client_1.expectBoolean,
3902
+ Name: smithy_client_1.expectString,
3903
+ OrganizationEnabled: smithy_client_1.expectBoolean,
3904
+ RetentionPeriod: smithy_client_1.expectInt32,
3905
+ Status: smithy_client_1.expectString,
3906
+ TerminationProtectionEnabled: smithy_client_1.expectBoolean,
3907
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5385
3908
  });
5386
- return retVal;
5387
3909
  };
5388
- const de_UnsupportedOperationException = (output, context) => {
5389
- return {
5390
- Message: (0, smithy_client_1.expectString)(output.Message),
5391
- };
3910
+ const de_StartImportResponse = (output, context) => {
3911
+ return (0, smithy_client_1.take)(output, {
3912
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3913
+ Destinations: smithy_client_1._json,
3914
+ EndEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3915
+ ImportId: smithy_client_1.expectString,
3916
+ ImportSource: smithy_client_1._json,
3917
+ ImportStatus: smithy_client_1.expectString,
3918
+ StartEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3919
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3920
+ });
5392
3921
  };
5393
- const de_UpdateChannelResponse = (output, context) => {
5394
- return {
5395
- ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
5396
- Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
5397
- Name: (0, smithy_client_1.expectString)(output.Name),
5398
- Source: (0, smithy_client_1.expectString)(output.Source),
5399
- };
3922
+ const de_StopImportResponse = (output, context) => {
3923
+ return (0, smithy_client_1.take)(output, {
3924
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3925
+ Destinations: smithy_client_1._json,
3926
+ EndEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3927
+ ImportId: smithy_client_1.expectString,
3928
+ ImportSource: smithy_client_1._json,
3929
+ ImportStatistics: smithy_client_1._json,
3930
+ ImportStatus: smithy_client_1.expectString,
3931
+ StartEventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3932
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3933
+ });
5400
3934
  };
5401
3935
  const de_UpdateEventDataStoreResponse = (output, context) => {
5402
- return {
5403
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5404
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5405
- : undefined,
5406
- CreatedTimestamp: output.CreatedTimestamp != null
5407
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
5408
- : undefined,
5409
- EventDataStoreArn: (0, smithy_client_1.expectString)(output.EventDataStoreArn),
5410
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
5411
- MultiRegionEnabled: (0, smithy_client_1.expectBoolean)(output.MultiRegionEnabled),
5412
- Name: (0, smithy_client_1.expectString)(output.Name),
5413
- OrganizationEnabled: (0, smithy_client_1.expectBoolean)(output.OrganizationEnabled),
5414
- RetentionPeriod: (0, smithy_client_1.expectInt32)(output.RetentionPeriod),
5415
- Status: (0, smithy_client_1.expectString)(output.Status),
5416
- TerminationProtectionEnabled: (0, smithy_client_1.expectBoolean)(output.TerminationProtectionEnabled),
5417
- UpdatedTimestamp: output.UpdatedTimestamp != null
5418
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTimestamp)))
5419
- : undefined,
5420
- };
5421
- };
5422
- const de_UpdateTrailResponse = (output, context) => {
5423
- return {
5424
- CloudWatchLogsLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsLogGroupArn),
5425
- CloudWatchLogsRoleArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsRoleArn),
5426
- IncludeGlobalServiceEvents: (0, smithy_client_1.expectBoolean)(output.IncludeGlobalServiceEvents),
5427
- IsMultiRegionTrail: (0, smithy_client_1.expectBoolean)(output.IsMultiRegionTrail),
5428
- IsOrganizationTrail: (0, smithy_client_1.expectBoolean)(output.IsOrganizationTrail),
5429
- KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
5430
- LogFileValidationEnabled: (0, smithy_client_1.expectBoolean)(output.LogFileValidationEnabled),
5431
- Name: (0, smithy_client_1.expectString)(output.Name),
5432
- S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
5433
- S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
5434
- SnsTopicARN: (0, smithy_client_1.expectString)(output.SnsTopicARN),
5435
- SnsTopicName: (0, smithy_client_1.expectString)(output.SnsTopicName),
5436
- TrailARN: (0, smithy_client_1.expectString)(output.TrailARN),
5437
- };
3936
+ return (0, smithy_client_1.take)(output, {
3937
+ AdvancedEventSelectors: smithy_client_1._json,
3938
+ CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3939
+ EventDataStoreArn: smithy_client_1.expectString,
3940
+ KmsKeyId: smithy_client_1.expectString,
3941
+ MultiRegionEnabled: smithy_client_1.expectBoolean,
3942
+ Name: smithy_client_1.expectString,
3943
+ OrganizationEnabled: smithy_client_1.expectBoolean,
3944
+ RetentionPeriod: smithy_client_1.expectInt32,
3945
+ Status: smithy_client_1.expectString,
3946
+ TerminationProtectionEnabled: smithy_client_1.expectBoolean,
3947
+ UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3948
+ });
5438
3949
  };
5439
3950
  const deserializeMetadata = (output) => ({
5440
3951
  httpStatusCode: output.statusCode,
@@ -5449,6 +3960,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5449
3960
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5450
3961
  };
5451
3962
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3963
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudTrailServiceException_1.CloudTrailServiceException);
5452
3964
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5453
3965
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5454
3966
  const contents = {