@aws-sdk/client-cloudtrail 3.312.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,155 +1,155 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
4
4
  import { AccountHasOngoingImportException, AccountNotFoundException, AccountNotRegisteredException, AccountRegisteredException, CannotDelegateManagementAccountException, ChannelAlreadyExistsException, ChannelARNInvalidException, ChannelExistsForEDSException, ChannelMaxLimitExceededException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, ImportNotFoundException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidImportSourceException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidSourceException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceARNNotValidException, ResourceNotFoundException, ResourcePolicyNotFoundException, ResourcePolicyNotValidException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
5
5
  export const se_AddTagsCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("AddTags");
7
7
  let body;
8
- body = JSON.stringify(se_AddTagsRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_CancelQueryCommand = async (input, context) => {
12
12
  const headers = sharedHeaders("CancelQuery");
13
13
  let body;
14
- body = JSON.stringify(se_CancelQueryRequest(input, context));
14
+ body = JSON.stringify(_json(input));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
17
  export const se_CreateChannelCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CreateChannel");
19
19
  let body;
20
- body = JSON.stringify(se_CreateChannelRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_CreateEventDataStoreCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateEventDataStore");
25
25
  let body;
26
- body = JSON.stringify(se_CreateEventDataStoreRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_CreateTrailCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("CreateTrail");
31
31
  let body;
32
- body = JSON.stringify(se_CreateTrailRequest(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_DeleteChannelCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("DeleteChannel");
37
37
  let body;
38
- body = JSON.stringify(se_DeleteChannelRequest(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_DeleteEventDataStoreCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DeleteEventDataStore");
43
43
  let body;
44
- body = JSON.stringify(se_DeleteEventDataStoreRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_DeleteResourcePolicyCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("DeleteResourcePolicy");
49
49
  let body;
50
- body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_DeleteTrailCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("DeleteTrail");
55
55
  let body;
56
- body = JSON.stringify(se_DeleteTrailRequest(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_DeregisterOrganizationDelegatedAdminCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DeregisterOrganizationDelegatedAdmin");
61
61
  let body;
62
- body = JSON.stringify(se_DeregisterOrganizationDelegatedAdminRequest(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_DescribeQueryCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DescribeQuery");
67
67
  let body;
68
- body = JSON.stringify(se_DescribeQueryRequest(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_DescribeTrailsCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("DescribeTrails");
73
73
  let body;
74
- body = JSON.stringify(se_DescribeTrailsRequest(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_GetChannelCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("GetChannel");
79
79
  let body;
80
- body = JSON.stringify(se_GetChannelRequest(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_GetEventDataStoreCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("GetEventDataStore");
85
85
  let body;
86
- body = JSON.stringify(se_GetEventDataStoreRequest(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_GetEventSelectorsCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("GetEventSelectors");
91
91
  let body;
92
- body = JSON.stringify(se_GetEventSelectorsRequest(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_GetImportCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("GetImport");
97
97
  let body;
98
- body = JSON.stringify(se_GetImportRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_GetInsightSelectorsCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("GetInsightSelectors");
103
103
  let body;
104
- body = JSON.stringify(se_GetInsightSelectorsRequest(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_GetQueryResultsCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("GetQueryResults");
109
109
  let body;
110
- body = JSON.stringify(se_GetQueryResultsRequest(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_GetResourcePolicyCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("GetResourcePolicy");
115
115
  let body;
116
- body = JSON.stringify(se_GetResourcePolicyRequest(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_GetTrailCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("GetTrail");
121
121
  let body;
122
- body = JSON.stringify(se_GetTrailRequest(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_GetTrailStatusCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("GetTrailStatus");
127
127
  let body;
128
- body = JSON.stringify(se_GetTrailStatusRequest(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const se_ListChannelsCommand = async (input, context) => {
132
132
  const headers = sharedHeaders("ListChannels");
133
133
  let body;
134
- body = JSON.stringify(se_ListChannelsRequest(input, context));
134
+ body = JSON.stringify(_json(input));
135
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
136
  };
137
137
  export const se_ListEventDataStoresCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("ListEventDataStores");
139
139
  let body;
140
- body = JSON.stringify(se_ListEventDataStoresRequest(input, context));
140
+ body = JSON.stringify(_json(input));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_ListImportFailuresCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("ListImportFailures");
145
145
  let body;
146
- body = JSON.stringify(se_ListImportFailuresRequest(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_ListImportsCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("ListImports");
151
151
  let body;
152
- body = JSON.stringify(se_ListImportsRequest(input, context));
152
+ body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  export const se_ListPublicKeysCommand = async (input, context) => {
@@ -167,13 +167,13 @@ export const se_ListQueriesCommand = async (input, context) => {
167
167
  export const se_ListTagsCommand = async (input, context) => {
168
168
  const headers = sharedHeaders("ListTags");
169
169
  let body;
170
- body = JSON.stringify(se_ListTagsRequest(input, context));
170
+ body = JSON.stringify(_json(input));
171
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
172
172
  };
173
173
  export const se_ListTrailsCommand = async (input, context) => {
174
174
  const headers = sharedHeaders("ListTrails");
175
175
  let body;
176
- body = JSON.stringify(se_ListTrailsRequest(input, context));
176
+ body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
179
  export const se_LookupEventsCommand = async (input, context) => {
@@ -185,37 +185,37 @@ export const se_LookupEventsCommand = async (input, context) => {
185
185
  export const se_PutEventSelectorsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("PutEventSelectors");
187
187
  let body;
188
- body = JSON.stringify(se_PutEventSelectorsRequest(input, context));
188
+ body = JSON.stringify(_json(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  export const se_PutInsightSelectorsCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("PutInsightSelectors");
193
193
  let body;
194
- body = JSON.stringify(se_PutInsightSelectorsRequest(input, context));
194
+ body = JSON.stringify(_json(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  export const se_PutResourcePolicyCommand = async (input, context) => {
198
198
  const headers = sharedHeaders("PutResourcePolicy");
199
199
  let body;
200
- body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
200
+ body = JSON.stringify(_json(input));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
203
  export const se_RegisterOrganizationDelegatedAdminCommand = async (input, context) => {
204
204
  const headers = sharedHeaders("RegisterOrganizationDelegatedAdmin");
205
205
  let body;
206
- body = JSON.stringify(se_RegisterOrganizationDelegatedAdminRequest(input, context));
206
+ body = JSON.stringify(_json(input));
207
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
208
  };
209
209
  export const se_RemoveTagsCommand = async (input, context) => {
210
210
  const headers = sharedHeaders("RemoveTags");
211
211
  let body;
212
- body = JSON.stringify(se_RemoveTagsRequest(input, context));
212
+ body = JSON.stringify(_json(input));
213
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
214
  };
215
215
  export const se_RestoreEventDataStoreCommand = async (input, context) => {
216
216
  const headers = sharedHeaders("RestoreEventDataStore");
217
217
  let body;
218
- body = JSON.stringify(se_RestoreEventDataStoreRequest(input, context));
218
+ body = JSON.stringify(_json(input));
219
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
220
  };
221
221
  export const se_StartImportCommand = async (input, context) => {
@@ -227,43 +227,43 @@ export const se_StartImportCommand = async (input, context) => {
227
227
  export const se_StartLoggingCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("StartLogging");
229
229
  let body;
230
- body = JSON.stringify(se_StartLoggingRequest(input, context));
230
+ body = JSON.stringify(_json(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  export const se_StartQueryCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("StartQuery");
235
235
  let body;
236
- body = JSON.stringify(se_StartQueryRequest(input, context));
236
+ body = JSON.stringify(_json(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  export const se_StopImportCommand = async (input, context) => {
240
240
  const headers = sharedHeaders("StopImport");
241
241
  let body;
242
- body = JSON.stringify(se_StopImportRequest(input, context));
242
+ body = JSON.stringify(_json(input));
243
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
244
  };
245
245
  export const se_StopLoggingCommand = async (input, context) => {
246
246
  const headers = sharedHeaders("StopLogging");
247
247
  let body;
248
- body = JSON.stringify(se_StopLoggingRequest(input, context));
248
+ body = JSON.stringify(_json(input));
249
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
250
  };
251
251
  export const se_UpdateChannelCommand = async (input, context) => {
252
252
  const headers = sharedHeaders("UpdateChannel");
253
253
  let body;
254
- body = JSON.stringify(se_UpdateChannelRequest(input, context));
254
+ body = JSON.stringify(_json(input));
255
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
256
  };
257
257
  export const se_UpdateEventDataStoreCommand = async (input, context) => {
258
258
  const headers = sharedHeaders("UpdateEventDataStore");
259
259
  let body;
260
- body = JSON.stringify(se_UpdateEventDataStoreRequest(input, context));
260
+ body = JSON.stringify(_json(input));
261
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
262
  };
263
263
  export const se_UpdateTrailCommand = async (input, context) => {
264
264
  const headers = sharedHeaders("UpdateTrail");
265
265
  let body;
266
- body = JSON.stringify(se_UpdateTrailRequest(input, context));
266
+ body = JSON.stringify(_json(input));
267
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
268
  };
269
269
  export const de_AddTagsCommand = async (output, context) => {
@@ -272,12 +272,12 @@ export const de_AddTagsCommand = async (output, context) => {
272
272
  }
273
273
  const data = await parseBody(output.body, context);
274
274
  let contents = {};
275
- contents = de_AddTagsResponse(data, context);
275
+ contents = _json(data);
276
276
  const response = {
277
277
  $metadata: deserializeMetadata(output),
278
278
  ...contents,
279
279
  };
280
- return Promise.resolve(response);
280
+ return response;
281
281
  };
282
282
  const de_AddTagsCommandError = async (output, context) => {
283
283
  const parsedOutput = {
@@ -330,10 +330,9 @@ const de_AddTagsCommandError = async (output, context) => {
330
330
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
331
331
  default:
332
332
  const parsedBody = parsedOutput.body;
333
- throwDefaultError({
333
+ return throwDefaultError({
334
334
  output,
335
335
  parsedBody,
336
- exceptionCtor: __BaseException,
337
336
  errorCode,
338
337
  });
339
338
  }
@@ -344,12 +343,12 @@ export const de_CancelQueryCommand = async (output, context) => {
344
343
  }
345
344
  const data = await parseBody(output.body, context);
346
345
  let contents = {};
347
- contents = de_CancelQueryResponse(data, context);
346
+ contents = _json(data);
348
347
  const response = {
349
348
  $metadata: deserializeMetadata(output),
350
349
  ...contents,
351
350
  };
352
- return Promise.resolve(response);
351
+ return response;
353
352
  };
354
353
  const de_CancelQueryCommandError = async (output, context) => {
355
354
  const parsedOutput = {
@@ -390,10 +389,9 @@ const de_CancelQueryCommandError = async (output, context) => {
390
389
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
391
390
  default:
392
391
  const parsedBody = parsedOutput.body;
393
- throwDefaultError({
392
+ return throwDefaultError({
394
393
  output,
395
394
  parsedBody,
396
- exceptionCtor: __BaseException,
397
395
  errorCode,
398
396
  });
399
397
  }
@@ -404,12 +402,12 @@ export const de_CreateChannelCommand = async (output, context) => {
404
402
  }
405
403
  const data = await parseBody(output.body, context);
406
404
  let contents = {};
407
- contents = de_CreateChannelResponse(data, context);
405
+ contents = _json(data);
408
406
  const response = {
409
407
  $metadata: deserializeMetadata(output),
410
408
  ...contents,
411
409
  };
412
- return Promise.resolve(response);
410
+ return response;
413
411
  };
414
412
  const de_CreateChannelCommandError = async (output, context) => {
415
413
  const parsedOutput = {
@@ -456,10 +454,9 @@ const de_CreateChannelCommandError = async (output, context) => {
456
454
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
457
455
  default:
458
456
  const parsedBody = parsedOutput.body;
459
- throwDefaultError({
457
+ return throwDefaultError({
460
458
  output,
461
459
  parsedBody,
462
- exceptionCtor: __BaseException,
463
460
  errorCode,
464
461
  });
465
462
  }
@@ -475,7 +472,7 @@ export const de_CreateEventDataStoreCommand = async (output, context) => {
475
472
  $metadata: deserializeMetadata(output),
476
473
  ...contents,
477
474
  };
478
- return Promise.resolve(response);
475
+ return response;
479
476
  };
480
477
  const de_CreateEventDataStoreCommandError = async (output, context) => {
481
478
  const parsedOutput = {
@@ -540,10 +537,9 @@ const de_CreateEventDataStoreCommandError = async (output, context) => {
540
537
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
541
538
  default:
542
539
  const parsedBody = parsedOutput.body;
543
- throwDefaultError({
540
+ return throwDefaultError({
544
541
  output,
545
542
  parsedBody,
546
- exceptionCtor: __BaseException,
547
543
  errorCode,
548
544
  });
549
545
  }
@@ -554,12 +550,12 @@ export const de_CreateTrailCommand = async (output, context) => {
554
550
  }
555
551
  const data = await parseBody(output.body, context);
556
552
  let contents = {};
557
- contents = de_CreateTrailResponse(data, context);
553
+ contents = _json(data);
558
554
  const response = {
559
555
  $metadata: deserializeMetadata(output),
560
556
  ...contents,
561
557
  };
562
- return Promise.resolve(response);
558
+ return response;
563
559
  };
564
560
  const de_CreateTrailCommandError = async (output, context) => {
565
561
  const parsedOutput = {
@@ -663,10 +659,9 @@ const de_CreateTrailCommandError = async (output, context) => {
663
659
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
664
660
  default:
665
661
  const parsedBody = parsedOutput.body;
666
- throwDefaultError({
662
+ return throwDefaultError({
667
663
  output,
668
664
  parsedBody,
669
- exceptionCtor: __BaseException,
670
665
  errorCode,
671
666
  });
672
667
  }
@@ -677,12 +672,12 @@ export const de_DeleteChannelCommand = async (output, context) => {
677
672
  }
678
673
  const data = await parseBody(output.body, context);
679
674
  let contents = {};
680
- contents = de_DeleteChannelResponse(data, context);
675
+ contents = _json(data);
681
676
  const response = {
682
677
  $metadata: deserializeMetadata(output),
683
678
  ...contents,
684
679
  };
685
- return Promise.resolve(response);
680
+ return response;
686
681
  };
687
682
  const de_DeleteChannelCommandError = async (output, context) => {
688
683
  const parsedOutput = {
@@ -705,10 +700,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
705
700
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
706
701
  default:
707
702
  const parsedBody = parsedOutput.body;
708
- throwDefaultError({
703
+ return throwDefaultError({
709
704
  output,
710
705
  parsedBody,
711
- exceptionCtor: __BaseException,
712
706
  errorCode,
713
707
  });
714
708
  }
@@ -719,12 +713,12 @@ export const de_DeleteEventDataStoreCommand = async (output, context) => {
719
713
  }
720
714
  const data = await parseBody(output.body, context);
721
715
  let contents = {};
722
- contents = de_DeleteEventDataStoreResponse(data, context);
716
+ contents = _json(data);
723
717
  const response = {
724
718
  $metadata: deserializeMetadata(output),
725
719
  ...contents,
726
720
  };
727
- return Promise.resolve(response);
721
+ return response;
728
722
  };
729
723
  const de_DeleteEventDataStoreCommandError = async (output, context) => {
730
724
  const parsedOutput = {
@@ -771,10 +765,9 @@ const de_DeleteEventDataStoreCommandError = async (output, context) => {
771
765
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
772
766
  default:
773
767
  const parsedBody = parsedOutput.body;
774
- throwDefaultError({
768
+ return throwDefaultError({
775
769
  output,
776
770
  parsedBody,
777
- exceptionCtor: __BaseException,
778
771
  errorCode,
779
772
  });
780
773
  }
@@ -785,12 +778,12 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
785
778
  }
786
779
  const data = await parseBody(output.body, context);
787
780
  let contents = {};
788
- contents = de_DeleteResourcePolicyResponse(data, context);
781
+ contents = _json(data);
789
782
  const response = {
790
783
  $metadata: deserializeMetadata(output),
791
784
  ...contents,
792
785
  };
793
- return Promise.resolve(response);
786
+ return response;
794
787
  };
795
788
  const de_DeleteResourcePolicyCommandError = async (output, context) => {
796
789
  const parsedOutput = {
@@ -819,10 +812,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
819
812
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
820
813
  default:
821
814
  const parsedBody = parsedOutput.body;
822
- throwDefaultError({
815
+ return throwDefaultError({
823
816
  output,
824
817
  parsedBody,
825
- exceptionCtor: __BaseException,
826
818
  errorCode,
827
819
  });
828
820
  }
@@ -833,12 +825,12 @@ export const de_DeleteTrailCommand = async (output, context) => {
833
825
  }
834
826
  const data = await parseBody(output.body, context);
835
827
  let contents = {};
836
- contents = de_DeleteTrailResponse(data, context);
828
+ contents = _json(data);
837
829
  const response = {
838
830
  $metadata: deserializeMetadata(output),
839
831
  ...contents,
840
832
  };
841
- return Promise.resolve(response);
833
+ return response;
842
834
  };
843
835
  const de_DeleteTrailCommandError = async (output, context) => {
844
836
  const parsedOutput = {
@@ -879,10 +871,9 @@ const de_DeleteTrailCommandError = async (output, context) => {
879
871
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
880
872
  default:
881
873
  const parsedBody = parsedOutput.body;
882
- throwDefaultError({
874
+ return throwDefaultError({
883
875
  output,
884
876
  parsedBody,
885
- exceptionCtor: __BaseException,
886
877
  errorCode,
887
878
  });
888
879
  }
@@ -893,12 +884,12 @@ export const de_DeregisterOrganizationDelegatedAdminCommand = async (output, con
893
884
  }
894
885
  const data = await parseBody(output.body, context);
895
886
  let contents = {};
896
- contents = de_DeregisterOrganizationDelegatedAdminResponse(data, context);
887
+ contents = _json(data);
897
888
  const response = {
898
889
  $metadata: deserializeMetadata(output),
899
890
  ...contents,
900
891
  };
901
- return Promise.resolve(response);
892
+ return response;
902
893
  };
903
894
  const de_DeregisterOrganizationDelegatedAdminCommandError = async (output, context) => {
904
895
  const parsedOutput = {
@@ -942,10 +933,9 @@ const de_DeregisterOrganizationDelegatedAdminCommandError = async (output, conte
942
933
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
943
934
  default:
944
935
  const parsedBody = parsedOutput.body;
945
- throwDefaultError({
936
+ return throwDefaultError({
946
937
  output,
947
938
  parsedBody,
948
- exceptionCtor: __BaseException,
949
939
  errorCode,
950
940
  });
951
941
  }
@@ -961,7 +951,7 @@ export const de_DescribeQueryCommand = async (output, context) => {
961
951
  $metadata: deserializeMetadata(output),
962
952
  ...contents,
963
953
  };
964
- return Promise.resolve(response);
954
+ return response;
965
955
  };
966
956
  const de_DescribeQueryCommandError = async (output, context) => {
967
957
  const parsedOutput = {
@@ -996,10 +986,9 @@ const de_DescribeQueryCommandError = async (output, context) => {
996
986
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
997
987
  default:
998
988
  const parsedBody = parsedOutput.body;
999
- throwDefaultError({
989
+ return throwDefaultError({
1000
990
  output,
1001
991
  parsedBody,
1002
- exceptionCtor: __BaseException,
1003
992
  errorCode,
1004
993
  });
1005
994
  }
@@ -1010,12 +999,12 @@ export const de_DescribeTrailsCommand = async (output, context) => {
1010
999
  }
1011
1000
  const data = await parseBody(output.body, context);
1012
1001
  let contents = {};
1013
- contents = de_DescribeTrailsResponse(data, context);
1002
+ contents = _json(data);
1014
1003
  const response = {
1015
1004
  $metadata: deserializeMetadata(output),
1016
1005
  ...contents,
1017
1006
  };
1018
- return Promise.resolve(response);
1007
+ return response;
1019
1008
  };
1020
1009
  const de_DescribeTrailsCommandError = async (output, context) => {
1021
1010
  const parsedOutput = {
@@ -1038,10 +1027,9 @@ const de_DescribeTrailsCommandError = async (output, context) => {
1038
1027
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1039
1028
  default:
1040
1029
  const parsedBody = parsedOutput.body;
1041
- throwDefaultError({
1030
+ return throwDefaultError({
1042
1031
  output,
1043
1032
  parsedBody,
1044
- exceptionCtor: __BaseException,
1045
1033
  errorCode,
1046
1034
  });
1047
1035
  }
@@ -1057,7 +1045,7 @@ export const de_GetChannelCommand = async (output, context) => {
1057
1045
  $metadata: deserializeMetadata(output),
1058
1046
  ...contents,
1059
1047
  };
1060
- return Promise.resolve(response);
1048
+ return response;
1061
1049
  };
1062
1050
  const de_GetChannelCommandError = async (output, context) => {
1063
1051
  const parsedOutput = {
@@ -1080,10 +1068,9 @@ const de_GetChannelCommandError = async (output, context) => {
1080
1068
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1081
1069
  default:
1082
1070
  const parsedBody = parsedOutput.body;
1083
- throwDefaultError({
1071
+ return throwDefaultError({
1084
1072
  output,
1085
1073
  parsedBody,
1086
- exceptionCtor: __BaseException,
1087
1074
  errorCode,
1088
1075
  });
1089
1076
  }
@@ -1099,7 +1086,7 @@ export const de_GetEventDataStoreCommand = async (output, context) => {
1099
1086
  $metadata: deserializeMetadata(output),
1100
1087
  ...contents,
1101
1088
  };
1102
- return Promise.resolve(response);
1089
+ return response;
1103
1090
  };
1104
1091
  const de_GetEventDataStoreCommandError = async (output, context) => {
1105
1092
  const parsedOutput = {
@@ -1128,10 +1115,9 @@ const de_GetEventDataStoreCommandError = async (output, context) => {
1128
1115
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1129
1116
  default:
1130
1117
  const parsedBody = parsedOutput.body;
1131
- throwDefaultError({
1118
+ return throwDefaultError({
1132
1119
  output,
1133
1120
  parsedBody,
1134
- exceptionCtor: __BaseException,
1135
1121
  errorCode,
1136
1122
  });
1137
1123
  }
@@ -1142,12 +1128,12 @@ export const de_GetEventSelectorsCommand = async (output, context) => {
1142
1128
  }
1143
1129
  const data = await parseBody(output.body, context);
1144
1130
  let contents = {};
1145
- contents = de_GetEventSelectorsResponse(data, context);
1131
+ contents = _json(data);
1146
1132
  const response = {
1147
1133
  $metadata: deserializeMetadata(output),
1148
1134
  ...contents,
1149
1135
  };
1150
- return Promise.resolve(response);
1136
+ return response;
1151
1137
  };
1152
1138
  const de_GetEventSelectorsCommandError = async (output, context) => {
1153
1139
  const parsedOutput = {
@@ -1176,10 +1162,9 @@ const de_GetEventSelectorsCommandError = async (output, context) => {
1176
1162
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1177
1163
  default:
1178
1164
  const parsedBody = parsedOutput.body;
1179
- throwDefaultError({
1165
+ return throwDefaultError({
1180
1166
  output,
1181
1167
  parsedBody,
1182
- exceptionCtor: __BaseException,
1183
1168
  errorCode,
1184
1169
  });
1185
1170
  }
@@ -1195,7 +1180,7 @@ export const de_GetImportCommand = async (output, context) => {
1195
1180
  $metadata: deserializeMetadata(output),
1196
1181
  ...contents,
1197
1182
  };
1198
- return Promise.resolve(response);
1183
+ return response;
1199
1184
  };
1200
1185
  const de_GetImportCommandError = async (output, context) => {
1201
1186
  const parsedOutput = {
@@ -1218,10 +1203,9 @@ const de_GetImportCommandError = async (output, context) => {
1218
1203
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1219
1204
  default:
1220
1205
  const parsedBody = parsedOutput.body;
1221
- throwDefaultError({
1206
+ return throwDefaultError({
1222
1207
  output,
1223
1208
  parsedBody,
1224
- exceptionCtor: __BaseException,
1225
1209
  errorCode,
1226
1210
  });
1227
1211
  }
@@ -1232,12 +1216,12 @@ export const de_GetInsightSelectorsCommand = async (output, context) => {
1232
1216
  }
1233
1217
  const data = await parseBody(output.body, context);
1234
1218
  let contents = {};
1235
- contents = de_GetInsightSelectorsResponse(data, context);
1219
+ contents = _json(data);
1236
1220
  const response = {
1237
1221
  $metadata: deserializeMetadata(output),
1238
1222
  ...contents,
1239
1223
  };
1240
- return Promise.resolve(response);
1224
+ return response;
1241
1225
  };
1242
1226
  const de_GetInsightSelectorsCommandError = async (output, context) => {
1243
1227
  const parsedOutput = {
@@ -1269,10 +1253,9 @@ const de_GetInsightSelectorsCommandError = async (output, context) => {
1269
1253
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1270
1254
  default:
1271
1255
  const parsedBody = parsedOutput.body;
1272
- throwDefaultError({
1256
+ return throwDefaultError({
1273
1257
  output,
1274
1258
  parsedBody,
1275
- exceptionCtor: __BaseException,
1276
1259
  errorCode,
1277
1260
  });
1278
1261
  }
@@ -1283,12 +1266,12 @@ export const de_GetQueryResultsCommand = async (output, context) => {
1283
1266
  }
1284
1267
  const data = await parseBody(output.body, context);
1285
1268
  let contents = {};
1286
- contents = de_GetQueryResultsResponse(data, context);
1269
+ contents = _json(data);
1287
1270
  const response = {
1288
1271
  $metadata: deserializeMetadata(output),
1289
1272
  ...contents,
1290
1273
  };
1291
- return Promise.resolve(response);
1274
+ return response;
1292
1275
  };
1293
1276
  const de_GetQueryResultsCommandError = async (output, context) => {
1294
1277
  const parsedOutput = {
@@ -1332,10 +1315,9 @@ const de_GetQueryResultsCommandError = async (output, context) => {
1332
1315
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1333
1316
  default:
1334
1317
  const parsedBody = parsedOutput.body;
1335
- throwDefaultError({
1318
+ return throwDefaultError({
1336
1319
  output,
1337
1320
  parsedBody,
1338
- exceptionCtor: __BaseException,
1339
1321
  errorCode,
1340
1322
  });
1341
1323
  }
@@ -1346,12 +1328,12 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
1346
1328
  }
1347
1329
  const data = await parseBody(output.body, context);
1348
1330
  let contents = {};
1349
- contents = de_GetResourcePolicyResponse(data, context);
1331
+ contents = _json(data);
1350
1332
  const response = {
1351
1333
  $metadata: deserializeMetadata(output),
1352
1334
  ...contents,
1353
1335
  };
1354
- return Promise.resolve(response);
1336
+ return response;
1355
1337
  };
1356
1338
  const de_GetResourcePolicyCommandError = async (output, context) => {
1357
1339
  const parsedOutput = {
@@ -1380,10 +1362,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
1380
1362
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1381
1363
  default:
1382
1364
  const parsedBody = parsedOutput.body;
1383
- throwDefaultError({
1365
+ return throwDefaultError({
1384
1366
  output,
1385
1367
  parsedBody,
1386
- exceptionCtor: __BaseException,
1387
1368
  errorCode,
1388
1369
  });
1389
1370
  }
@@ -1394,12 +1375,12 @@ export const de_GetTrailCommand = async (output, context) => {
1394
1375
  }
1395
1376
  const data = await parseBody(output.body, context);
1396
1377
  let contents = {};
1397
- contents = de_GetTrailResponse(data, context);
1378
+ contents = _json(data);
1398
1379
  const response = {
1399
1380
  $metadata: deserializeMetadata(output),
1400
1381
  ...contents,
1401
1382
  };
1402
- return Promise.resolve(response);
1383
+ return response;
1403
1384
  };
1404
1385
  const de_GetTrailCommandError = async (output, context) => {
1405
1386
  const parsedOutput = {
@@ -1425,10 +1406,9 @@ const de_GetTrailCommandError = async (output, context) => {
1425
1406
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1426
1407
  default:
1427
1408
  const parsedBody = parsedOutput.body;
1428
- throwDefaultError({
1409
+ return throwDefaultError({
1429
1410
  output,
1430
1411
  parsedBody,
1431
- exceptionCtor: __BaseException,
1432
1412
  errorCode,
1433
1413
  });
1434
1414
  }
@@ -1444,7 +1424,7 @@ export const de_GetTrailStatusCommand = async (output, context) => {
1444
1424
  $metadata: deserializeMetadata(output),
1445
1425
  ...contents,
1446
1426
  };
1447
- return Promise.resolve(response);
1427
+ return response;
1448
1428
  };
1449
1429
  const de_GetTrailStatusCommandError = async (output, context) => {
1450
1430
  const parsedOutput = {
@@ -1470,10 +1450,9 @@ const de_GetTrailStatusCommandError = async (output, context) => {
1470
1450
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1471
1451
  default:
1472
1452
  const parsedBody = parsedOutput.body;
1473
- throwDefaultError({
1453
+ return throwDefaultError({
1474
1454
  output,
1475
1455
  parsedBody,
1476
- exceptionCtor: __BaseException,
1477
1456
  errorCode,
1478
1457
  });
1479
1458
  }
@@ -1484,12 +1463,12 @@ export const de_ListChannelsCommand = async (output, context) => {
1484
1463
  }
1485
1464
  const data = await parseBody(output.body, context);
1486
1465
  let contents = {};
1487
- contents = de_ListChannelsResponse(data, context);
1466
+ contents = _json(data);
1488
1467
  const response = {
1489
1468
  $metadata: deserializeMetadata(output),
1490
1469
  ...contents,
1491
1470
  };
1492
- return Promise.resolve(response);
1471
+ return response;
1493
1472
  };
1494
1473
  const de_ListChannelsCommandError = async (output, context) => {
1495
1474
  const parsedOutput = {
@@ -1509,10 +1488,9 @@ const de_ListChannelsCommandError = async (output, context) => {
1509
1488
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1510
1489
  default:
1511
1490
  const parsedBody = parsedOutput.body;
1512
- throwDefaultError({
1491
+ return throwDefaultError({
1513
1492
  output,
1514
1493
  parsedBody,
1515
- exceptionCtor: __BaseException,
1516
1494
  errorCode,
1517
1495
  });
1518
1496
  }
@@ -1528,7 +1506,7 @@ export const de_ListEventDataStoresCommand = async (output, context) => {
1528
1506
  $metadata: deserializeMetadata(output),
1529
1507
  ...contents,
1530
1508
  };
1531
- return Promise.resolve(response);
1509
+ return response;
1532
1510
  };
1533
1511
  const de_ListEventDataStoresCommandError = async (output, context) => {
1534
1512
  const parsedOutput = {
@@ -1554,10 +1532,9 @@ const de_ListEventDataStoresCommandError = async (output, context) => {
1554
1532
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1555
1533
  default:
1556
1534
  const parsedBody = parsedOutput.body;
1557
- throwDefaultError({
1535
+ return throwDefaultError({
1558
1536
  output,
1559
1537
  parsedBody,
1560
- exceptionCtor: __BaseException,
1561
1538
  errorCode,
1562
1539
  });
1563
1540
  }
@@ -1573,7 +1550,7 @@ export const de_ListImportFailuresCommand = async (output, context) => {
1573
1550
  $metadata: deserializeMetadata(output),
1574
1551
  ...contents,
1575
1552
  };
1576
- return Promise.resolve(response);
1553
+ return response;
1577
1554
  };
1578
1555
  const de_ListImportFailuresCommandError = async (output, context) => {
1579
1556
  const parsedOutput = {
@@ -1593,10 +1570,9 @@ const de_ListImportFailuresCommandError = async (output, context) => {
1593
1570
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1594
1571
  default:
1595
1572
  const parsedBody = parsedOutput.body;
1596
- throwDefaultError({
1573
+ return throwDefaultError({
1597
1574
  output,
1598
1575
  parsedBody,
1599
- exceptionCtor: __BaseException,
1600
1576
  errorCode,
1601
1577
  });
1602
1578
  }
@@ -1612,7 +1588,7 @@ export const de_ListImportsCommand = async (output, context) => {
1612
1588
  $metadata: deserializeMetadata(output),
1613
1589
  ...contents,
1614
1590
  };
1615
- return Promise.resolve(response);
1591
+ return response;
1616
1592
  };
1617
1593
  const de_ListImportsCommandError = async (output, context) => {
1618
1594
  const parsedOutput = {
@@ -1638,10 +1614,9 @@ const de_ListImportsCommandError = async (output, context) => {
1638
1614
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1639
1615
  default:
1640
1616
  const parsedBody = parsedOutput.body;
1641
- throwDefaultError({
1617
+ return throwDefaultError({
1642
1618
  output,
1643
1619
  parsedBody,
1644
- exceptionCtor: __BaseException,
1645
1620
  errorCode,
1646
1621
  });
1647
1622
  }
@@ -1657,7 +1632,7 @@ export const de_ListPublicKeysCommand = async (output, context) => {
1657
1632
  $metadata: deserializeMetadata(output),
1658
1633
  ...contents,
1659
1634
  };
1660
- return Promise.resolve(response);
1635
+ return response;
1661
1636
  };
1662
1637
  const de_ListPublicKeysCommandError = async (output, context) => {
1663
1638
  const parsedOutput = {
@@ -1680,10 +1655,9 @@ const de_ListPublicKeysCommandError = async (output, context) => {
1680
1655
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1681
1656
  default:
1682
1657
  const parsedBody = parsedOutput.body;
1683
- throwDefaultError({
1658
+ return throwDefaultError({
1684
1659
  output,
1685
1660
  parsedBody,
1686
- exceptionCtor: __BaseException,
1687
1661
  errorCode,
1688
1662
  });
1689
1663
  }
@@ -1699,7 +1673,7 @@ export const de_ListQueriesCommand = async (output, context) => {
1699
1673
  $metadata: deserializeMetadata(output),
1700
1674
  ...contents,
1701
1675
  };
1702
- return Promise.resolve(response);
1676
+ return response;
1703
1677
  };
1704
1678
  const de_ListQueriesCommandError = async (output, context) => {
1705
1679
  const parsedOutput = {
@@ -1743,10 +1717,9 @@ const de_ListQueriesCommandError = async (output, context) => {
1743
1717
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1744
1718
  default:
1745
1719
  const parsedBody = parsedOutput.body;
1746
- throwDefaultError({
1720
+ return throwDefaultError({
1747
1721
  output,
1748
1722
  parsedBody,
1749
- exceptionCtor: __BaseException,
1750
1723
  errorCode,
1751
1724
  });
1752
1725
  }
@@ -1757,12 +1730,12 @@ export const de_ListTagsCommand = async (output, context) => {
1757
1730
  }
1758
1731
  const data = await parseBody(output.body, context);
1759
1732
  let contents = {};
1760
- contents = de_ListTagsResponse(data, context);
1733
+ contents = _json(data);
1761
1734
  const response = {
1762
1735
  $metadata: deserializeMetadata(output),
1763
1736
  ...contents,
1764
1737
  };
1765
- return Promise.resolve(response);
1738
+ return response;
1766
1739
  };
1767
1740
  const de_ListTagsCommandError = async (output, context) => {
1768
1741
  const parsedOutput = {
@@ -1803,10 +1776,9 @@ const de_ListTagsCommandError = async (output, context) => {
1803
1776
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1804
1777
  default:
1805
1778
  const parsedBody = parsedOutput.body;
1806
- throwDefaultError({
1779
+ return throwDefaultError({
1807
1780
  output,
1808
1781
  parsedBody,
1809
- exceptionCtor: __BaseException,
1810
1782
  errorCode,
1811
1783
  });
1812
1784
  }
@@ -1817,12 +1789,12 @@ export const de_ListTrailsCommand = async (output, context) => {
1817
1789
  }
1818
1790
  const data = await parseBody(output.body, context);
1819
1791
  let contents = {};
1820
- contents = de_ListTrailsResponse(data, context);
1792
+ contents = _json(data);
1821
1793
  const response = {
1822
1794
  $metadata: deserializeMetadata(output),
1823
1795
  ...contents,
1824
1796
  };
1825
- return Promise.resolve(response);
1797
+ return response;
1826
1798
  };
1827
1799
  const de_ListTrailsCommandError = async (output, context) => {
1828
1800
  const parsedOutput = {
@@ -1839,10 +1811,9 @@ const de_ListTrailsCommandError = async (output, context) => {
1839
1811
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1840
1812
  default:
1841
1813
  const parsedBody = parsedOutput.body;
1842
- throwDefaultError({
1814
+ return throwDefaultError({
1843
1815
  output,
1844
1816
  parsedBody,
1845
- exceptionCtor: __BaseException,
1846
1817
  errorCode,
1847
1818
  });
1848
1819
  }
@@ -1858,7 +1829,7 @@ export const de_LookupEventsCommand = async (output, context) => {
1858
1829
  $metadata: deserializeMetadata(output),
1859
1830
  ...contents,
1860
1831
  };
1861
- return Promise.resolve(response);
1832
+ return response;
1862
1833
  };
1863
1834
  const de_LookupEventsCommandError = async (output, context) => {
1864
1835
  const parsedOutput = {
@@ -1890,10 +1861,9 @@ const de_LookupEventsCommandError = async (output, context) => {
1890
1861
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1891
1862
  default:
1892
1863
  const parsedBody = parsedOutput.body;
1893
- throwDefaultError({
1864
+ return throwDefaultError({
1894
1865
  output,
1895
1866
  parsedBody,
1896
- exceptionCtor: __BaseException,
1897
1867
  errorCode,
1898
1868
  });
1899
1869
  }
@@ -1904,12 +1874,12 @@ export const de_PutEventSelectorsCommand = async (output, context) => {
1904
1874
  }
1905
1875
  const data = await parseBody(output.body, context);
1906
1876
  let contents = {};
1907
- contents = de_PutEventSelectorsResponse(data, context);
1877
+ contents = _json(data);
1908
1878
  const response = {
1909
1879
  $metadata: deserializeMetadata(output),
1910
1880
  ...contents,
1911
1881
  };
1912
- return Promise.resolve(response);
1882
+ return response;
1913
1883
  };
1914
1884
  const de_PutEventSelectorsCommandError = async (output, context) => {
1915
1885
  const parsedOutput = {
@@ -1950,10 +1920,9 @@ const de_PutEventSelectorsCommandError = async (output, context) => {
1950
1920
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1951
1921
  default:
1952
1922
  const parsedBody = parsedOutput.body;
1953
- throwDefaultError({
1923
+ return throwDefaultError({
1954
1924
  output,
1955
1925
  parsedBody,
1956
- exceptionCtor: __BaseException,
1957
1926
  errorCode,
1958
1927
  });
1959
1928
  }
@@ -1964,12 +1933,12 @@ export const de_PutInsightSelectorsCommand = async (output, context) => {
1964
1933
  }
1965
1934
  const data = await parseBody(output.body, context);
1966
1935
  let contents = {};
1967
- contents = de_PutInsightSelectorsResponse(data, context);
1936
+ contents = _json(data);
1968
1937
  const response = {
1969
1938
  $metadata: deserializeMetadata(output),
1970
1939
  ...contents,
1971
1940
  };
1972
- return Promise.resolve(response);
1941
+ return response;
1973
1942
  };
1974
1943
  const de_PutInsightSelectorsCommandError = async (output, context) => {
1975
1944
  const parsedOutput = {
@@ -2019,10 +1988,9 @@ const de_PutInsightSelectorsCommandError = async (output, context) => {
2019
1988
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2020
1989
  default:
2021
1990
  const parsedBody = parsedOutput.body;
2022
- throwDefaultError({
1991
+ return throwDefaultError({
2023
1992
  output,
2024
1993
  parsedBody,
2025
- exceptionCtor: __BaseException,
2026
1994
  errorCode,
2027
1995
  });
2028
1996
  }
@@ -2033,12 +2001,12 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
2033
2001
  }
2034
2002
  const data = await parseBody(output.body, context);
2035
2003
  let contents = {};
2036
- contents = de_PutResourcePolicyResponse(data, context);
2004
+ contents = _json(data);
2037
2005
  const response = {
2038
2006
  $metadata: deserializeMetadata(output),
2039
2007
  ...contents,
2040
2008
  };
2041
- return Promise.resolve(response);
2009
+ return response;
2042
2010
  };
2043
2011
  const de_PutResourcePolicyCommandError = async (output, context) => {
2044
2012
  const parsedOutput = {
@@ -2067,10 +2035,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
2067
2035
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2068
2036
  default:
2069
2037
  const parsedBody = parsedOutput.body;
2070
- throwDefaultError({
2038
+ return throwDefaultError({
2071
2039
  output,
2072
2040
  parsedBody,
2073
- exceptionCtor: __BaseException,
2074
2041
  errorCode,
2075
2042
  });
2076
2043
  }
@@ -2081,12 +2048,12 @@ export const de_RegisterOrganizationDelegatedAdminCommand = async (output, conte
2081
2048
  }
2082
2049
  const data = await parseBody(output.body, context);
2083
2050
  let contents = {};
2084
- contents = de_RegisterOrganizationDelegatedAdminResponse(data, context);
2051
+ contents = _json(data);
2085
2052
  const response = {
2086
2053
  $metadata: deserializeMetadata(output),
2087
2054
  ...contents,
2088
2055
  };
2089
- return Promise.resolve(response);
2056
+ return response;
2090
2057
  };
2091
2058
  const de_RegisterOrganizationDelegatedAdminCommandError = async (output, context) => {
2092
2059
  const parsedOutput = {
@@ -2136,10 +2103,9 @@ const de_RegisterOrganizationDelegatedAdminCommandError = async (output, context
2136
2103
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2137
2104
  default:
2138
2105
  const parsedBody = parsedOutput.body;
2139
- throwDefaultError({
2106
+ return throwDefaultError({
2140
2107
  output,
2141
2108
  parsedBody,
2142
- exceptionCtor: __BaseException,
2143
2109
  errorCode,
2144
2110
  });
2145
2111
  }
@@ -2150,12 +2116,12 @@ export const de_RemoveTagsCommand = async (output, context) => {
2150
2116
  }
2151
2117
  const data = await parseBody(output.body, context);
2152
2118
  let contents = {};
2153
- contents = de_RemoveTagsResponse(data, context);
2119
+ contents = _json(data);
2154
2120
  const response = {
2155
2121
  $metadata: deserializeMetadata(output),
2156
2122
  ...contents,
2157
2123
  };
2158
- return Promise.resolve(response);
2124
+ return response;
2159
2125
  };
2160
2126
  const de_RemoveTagsCommandError = async (output, context) => {
2161
2127
  const parsedOutput = {
@@ -2202,10 +2168,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
2202
2168
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2203
2169
  default:
2204
2170
  const parsedBody = parsedOutput.body;
2205
- throwDefaultError({
2171
+ return throwDefaultError({
2206
2172
  output,
2207
2173
  parsedBody,
2208
- exceptionCtor: __BaseException,
2209
2174
  errorCode,
2210
2175
  });
2211
2176
  }
@@ -2221,7 +2186,7 @@ export const de_RestoreEventDataStoreCommand = async (output, context) => {
2221
2186
  $metadata: deserializeMetadata(output),
2222
2187
  ...contents,
2223
2188
  };
2224
- return Promise.resolve(response);
2189
+ return response;
2225
2190
  };
2226
2191
  const de_RestoreEventDataStoreCommandError = async (output, context) => {
2227
2192
  const parsedOutput = {
@@ -2271,10 +2236,9 @@ const de_RestoreEventDataStoreCommandError = async (output, context) => {
2271
2236
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2272
2237
  default:
2273
2238
  const parsedBody = parsedOutput.body;
2274
- throwDefaultError({
2239
+ return throwDefaultError({
2275
2240
  output,
2276
2241
  parsedBody,
2277
- exceptionCtor: __BaseException,
2278
2242
  errorCode,
2279
2243
  });
2280
2244
  }
@@ -2290,7 +2254,7 @@ export const de_StartImportCommand = async (output, context) => {
2290
2254
  $metadata: deserializeMetadata(output),
2291
2255
  ...contents,
2292
2256
  };
2293
- return Promise.resolve(response);
2257
+ return response;
2294
2258
  };
2295
2259
  const de_StartImportCommandError = async (output, context) => {
2296
2260
  const parsedOutput = {
@@ -2337,10 +2301,9 @@ const de_StartImportCommandError = async (output, context) => {
2337
2301
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2338
2302
  default:
2339
2303
  const parsedBody = parsedOutput.body;
2340
- throwDefaultError({
2304
+ return throwDefaultError({
2341
2305
  output,
2342
2306
  parsedBody,
2343
- exceptionCtor: __BaseException,
2344
2307
  errorCode,
2345
2308
  });
2346
2309
  }
@@ -2351,12 +2314,12 @@ export const de_StartLoggingCommand = async (output, context) => {
2351
2314
  }
2352
2315
  const data = await parseBody(output.body, context);
2353
2316
  let contents = {};
2354
- contents = de_StartLoggingResponse(data, context);
2317
+ contents = _json(data);
2355
2318
  const response = {
2356
2319
  $metadata: deserializeMetadata(output),
2357
2320
  ...contents,
2358
2321
  };
2359
- return Promise.resolve(response);
2322
+ return response;
2360
2323
  };
2361
2324
  const de_StartLoggingCommandError = async (output, context) => {
2362
2325
  const parsedOutput = {
@@ -2397,10 +2360,9 @@ const de_StartLoggingCommandError = async (output, context) => {
2397
2360
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2398
2361
  default:
2399
2362
  const parsedBody = parsedOutput.body;
2400
- throwDefaultError({
2363
+ return throwDefaultError({
2401
2364
  output,
2402
2365
  parsedBody,
2403
- exceptionCtor: __BaseException,
2404
2366
  errorCode,
2405
2367
  });
2406
2368
  }
@@ -2411,12 +2373,12 @@ export const de_StartQueryCommand = async (output, context) => {
2411
2373
  }
2412
2374
  const data = await parseBody(output.body, context);
2413
2375
  let contents = {};
2414
- contents = de_StartQueryResponse(data, context);
2376
+ contents = _json(data);
2415
2377
  const response = {
2416
2378
  $metadata: deserializeMetadata(output),
2417
2379
  ...contents,
2418
2380
  };
2419
- return Promise.resolve(response);
2381
+ return response;
2420
2382
  };
2421
2383
  const de_StartQueryCommandError = async (output, context) => {
2422
2384
  const parsedOutput = {
@@ -2469,10 +2431,9 @@ const de_StartQueryCommandError = async (output, context) => {
2469
2431
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2470
2432
  default:
2471
2433
  const parsedBody = parsedOutput.body;
2472
- throwDefaultError({
2434
+ return throwDefaultError({
2473
2435
  output,
2474
2436
  parsedBody,
2475
- exceptionCtor: __BaseException,
2476
2437
  errorCode,
2477
2438
  });
2478
2439
  }
@@ -2488,7 +2449,7 @@ export const de_StopImportCommand = async (output, context) => {
2488
2449
  $metadata: deserializeMetadata(output),
2489
2450
  ...contents,
2490
2451
  };
2491
- return Promise.resolve(response);
2452
+ return response;
2492
2453
  };
2493
2454
  const de_StopImportCommandError = async (output, context) => {
2494
2455
  const parsedOutput = {
@@ -2511,10 +2472,9 @@ const de_StopImportCommandError = async (output, context) => {
2511
2472
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2512
2473
  default:
2513
2474
  const parsedBody = parsedOutput.body;
2514
- throwDefaultError({
2475
+ return throwDefaultError({
2515
2476
  output,
2516
2477
  parsedBody,
2517
- exceptionCtor: __BaseException,
2518
2478
  errorCode,
2519
2479
  });
2520
2480
  }
@@ -2525,12 +2485,12 @@ export const de_StopLoggingCommand = async (output, context) => {
2525
2485
  }
2526
2486
  const data = await parseBody(output.body, context);
2527
2487
  let contents = {};
2528
- contents = de_StopLoggingResponse(data, context);
2488
+ contents = _json(data);
2529
2489
  const response = {
2530
2490
  $metadata: deserializeMetadata(output),
2531
2491
  ...contents,
2532
2492
  };
2533
- return Promise.resolve(response);
2493
+ return response;
2534
2494
  };
2535
2495
  const de_StopLoggingCommandError = async (output, context) => {
2536
2496
  const parsedOutput = {
@@ -2571,10 +2531,9 @@ const de_StopLoggingCommandError = async (output, context) => {
2571
2531
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2572
2532
  default:
2573
2533
  const parsedBody = parsedOutput.body;
2574
- throwDefaultError({
2534
+ return throwDefaultError({
2575
2535
  output,
2576
2536
  parsedBody,
2577
- exceptionCtor: __BaseException,
2578
2537
  errorCode,
2579
2538
  });
2580
2539
  }
@@ -2585,12 +2544,12 @@ export const de_UpdateChannelCommand = async (output, context) => {
2585
2544
  }
2586
2545
  const data = await parseBody(output.body, context);
2587
2546
  let contents = {};
2588
- contents = de_UpdateChannelResponse(data, context);
2547
+ contents = _json(data);
2589
2548
  const response = {
2590
2549
  $metadata: deserializeMetadata(output),
2591
2550
  ...contents,
2592
2551
  };
2593
- return Promise.resolve(response);
2552
+ return response;
2594
2553
  };
2595
2554
  const de_UpdateChannelCommandError = async (output, context) => {
2596
2555
  const parsedOutput = {
@@ -2631,10 +2590,9 @@ const de_UpdateChannelCommandError = async (output, context) => {
2631
2590
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2632
2591
  default:
2633
2592
  const parsedBody = parsedOutput.body;
2634
- throwDefaultError({
2593
+ return throwDefaultError({
2635
2594
  output,
2636
2595
  parsedBody,
2637
- exceptionCtor: __BaseException,
2638
2596
  errorCode,
2639
2597
  });
2640
2598
  }
@@ -2650,7 +2608,7 @@ export const de_UpdateEventDataStoreCommand = async (output, context) => {
2650
2608
  $metadata: deserializeMetadata(output),
2651
2609
  ...contents,
2652
2610
  };
2653
- return Promise.resolve(response);
2611
+ return response;
2654
2612
  };
2655
2613
  const de_UpdateEventDataStoreCommandError = async (output, context) => {
2656
2614
  const parsedOutput = {
@@ -2715,10 +2673,9 @@ const de_UpdateEventDataStoreCommandError = async (output, context) => {
2715
2673
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2716
2674
  default:
2717
2675
  const parsedBody = parsedOutput.body;
2718
- throwDefaultError({
2676
+ return throwDefaultError({
2719
2677
  output,
2720
2678
  parsedBody,
2721
- exceptionCtor: __BaseException,
2722
2679
  errorCode,
2723
2680
  });
2724
2681
  }
@@ -2729,12 +2686,12 @@ export const de_UpdateTrailCommand = async (output, context) => {
2729
2686
  }
2730
2687
  const data = await parseBody(output.body, context);
2731
2688
  let contents = {};
2732
- contents = de_UpdateTrailResponse(data, context);
2689
+ contents = _json(data);
2733
2690
  const response = {
2734
2691
  $metadata: deserializeMetadata(output),
2735
2692
  ...contents,
2736
2693
  };
2737
- return Promise.resolve(response);
2694
+ return response;
2738
2695
  };
2739
2696
  const de_UpdateTrailCommandError = async (output, context) => {
2740
2697
  const parsedOutput = {
@@ -2841,17 +2798,16 @@ const de_UpdateTrailCommandError = async (output, context) => {
2841
2798
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2842
2799
  default:
2843
2800
  const parsedBody = parsedOutput.body;
2844
- throwDefaultError({
2801
+ return throwDefaultError({
2845
2802
  output,
2846
2803
  parsedBody,
2847
- exceptionCtor: __BaseException,
2848
2804
  errorCode,
2849
2805
  });
2850
2806
  }
2851
2807
  };
2852
2808
  const de_AccountHasOngoingImportExceptionRes = async (parsedOutput, context) => {
2853
2809
  const body = parsedOutput.body;
2854
- const deserialized = de_AccountHasOngoingImportException(body, context);
2810
+ const deserialized = _json(body);
2855
2811
  const exception = new AccountHasOngoingImportException({
2856
2812
  $metadata: deserializeMetadata(parsedOutput),
2857
2813
  ...deserialized,
@@ -2860,7 +2816,7 @@ const de_AccountHasOngoingImportExceptionRes = async (parsedOutput, context) =>
2860
2816
  };
2861
2817
  const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
2862
2818
  const body = parsedOutput.body;
2863
- const deserialized = de_AccountNotFoundException(body, context);
2819
+ const deserialized = _json(body);
2864
2820
  const exception = new AccountNotFoundException({
2865
2821
  $metadata: deserializeMetadata(parsedOutput),
2866
2822
  ...deserialized,
@@ -2869,7 +2825,7 @@ const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
2869
2825
  };
2870
2826
  const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
2871
2827
  const body = parsedOutput.body;
2872
- const deserialized = de_AccountNotRegisteredException(body, context);
2828
+ const deserialized = _json(body);
2873
2829
  const exception = new AccountNotRegisteredException({
2874
2830
  $metadata: deserializeMetadata(parsedOutput),
2875
2831
  ...deserialized,
@@ -2878,7 +2834,7 @@ const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
2878
2834
  };
2879
2835
  const de_AccountRegisteredExceptionRes = async (parsedOutput, context) => {
2880
2836
  const body = parsedOutput.body;
2881
- const deserialized = de_AccountRegisteredException(body, context);
2837
+ const deserialized = _json(body);
2882
2838
  const exception = new AccountRegisteredException({
2883
2839
  $metadata: deserializeMetadata(parsedOutput),
2884
2840
  ...deserialized,
@@ -2887,7 +2843,7 @@ const de_AccountRegisteredExceptionRes = async (parsedOutput, context) => {
2887
2843
  };
2888
2844
  const de_CannotDelegateManagementAccountExceptionRes = async (parsedOutput, context) => {
2889
2845
  const body = parsedOutput.body;
2890
- const deserialized = de_CannotDelegateManagementAccountException(body, context);
2846
+ const deserialized = _json(body);
2891
2847
  const exception = new CannotDelegateManagementAccountException({
2892
2848
  $metadata: deserializeMetadata(parsedOutput),
2893
2849
  ...deserialized,
@@ -2896,7 +2852,7 @@ const de_CannotDelegateManagementAccountExceptionRes = async (parsedOutput, cont
2896
2852
  };
2897
2853
  const de_ChannelAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2898
2854
  const body = parsedOutput.body;
2899
- const deserialized = de_ChannelAlreadyExistsException(body, context);
2855
+ const deserialized = _json(body);
2900
2856
  const exception = new ChannelAlreadyExistsException({
2901
2857
  $metadata: deserializeMetadata(parsedOutput),
2902
2858
  ...deserialized,
@@ -2905,7 +2861,7 @@ const de_ChannelAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2905
2861
  };
2906
2862
  const de_ChannelARNInvalidExceptionRes = async (parsedOutput, context) => {
2907
2863
  const body = parsedOutput.body;
2908
- const deserialized = de_ChannelARNInvalidException(body, context);
2864
+ const deserialized = _json(body);
2909
2865
  const exception = new ChannelARNInvalidException({
2910
2866
  $metadata: deserializeMetadata(parsedOutput),
2911
2867
  ...deserialized,
@@ -2914,7 +2870,7 @@ const de_ChannelARNInvalidExceptionRes = async (parsedOutput, context) => {
2914
2870
  };
2915
2871
  const de_ChannelExistsForEDSExceptionRes = async (parsedOutput, context) => {
2916
2872
  const body = parsedOutput.body;
2917
- const deserialized = de_ChannelExistsForEDSException(body, context);
2873
+ const deserialized = _json(body);
2918
2874
  const exception = new ChannelExistsForEDSException({
2919
2875
  $metadata: deserializeMetadata(parsedOutput),
2920
2876
  ...deserialized,
@@ -2923,7 +2879,7 @@ const de_ChannelExistsForEDSExceptionRes = async (parsedOutput, context) => {
2923
2879
  };
2924
2880
  const de_ChannelMaxLimitExceededExceptionRes = async (parsedOutput, context) => {
2925
2881
  const body = parsedOutput.body;
2926
- const deserialized = de_ChannelMaxLimitExceededException(body, context);
2882
+ const deserialized = _json(body);
2927
2883
  const exception = new ChannelMaxLimitExceededException({
2928
2884
  $metadata: deserializeMetadata(parsedOutput),
2929
2885
  ...deserialized,
@@ -2932,7 +2888,7 @@ const de_ChannelMaxLimitExceededExceptionRes = async (parsedOutput, context) =>
2932
2888
  };
2933
2889
  const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
2934
2890
  const body = parsedOutput.body;
2935
- const deserialized = de_ChannelNotFoundException(body, context);
2891
+ const deserialized = _json(body);
2936
2892
  const exception = new ChannelNotFoundException({
2937
2893
  $metadata: deserializeMetadata(parsedOutput),
2938
2894
  ...deserialized,
@@ -2941,7 +2897,7 @@ const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
2941
2897
  };
2942
2898
  const de_CloudTrailAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
2943
2899
  const body = parsedOutput.body;
2944
- const deserialized = de_CloudTrailAccessNotEnabledException(body, context);
2900
+ const deserialized = _json(body);
2945
2901
  const exception = new CloudTrailAccessNotEnabledException({
2946
2902
  $metadata: deserializeMetadata(parsedOutput),
2947
2903
  ...deserialized,
@@ -2950,7 +2906,7 @@ const de_CloudTrailAccessNotEnabledExceptionRes = async (parsedOutput, context)
2950
2906
  };
2951
2907
  const de_CloudTrailARNInvalidExceptionRes = async (parsedOutput, context) => {
2952
2908
  const body = parsedOutput.body;
2953
- const deserialized = de_CloudTrailARNInvalidException(body, context);
2909
+ const deserialized = _json(body);
2954
2910
  const exception = new CloudTrailARNInvalidException({
2955
2911
  $metadata: deserializeMetadata(parsedOutput),
2956
2912
  ...deserialized,
@@ -2959,7 +2915,7 @@ const de_CloudTrailARNInvalidExceptionRes = async (parsedOutput, context) => {
2959
2915
  };
2960
2916
  const de_CloudTrailInvalidClientTokenIdExceptionRes = async (parsedOutput, context) => {
2961
2917
  const body = parsedOutput.body;
2962
- const deserialized = de_CloudTrailInvalidClientTokenIdException(body, context);
2918
+ const deserialized = _json(body);
2963
2919
  const exception = new CloudTrailInvalidClientTokenIdException({
2964
2920
  $metadata: deserializeMetadata(parsedOutput),
2965
2921
  ...deserialized,
@@ -2968,7 +2924,7 @@ const de_CloudTrailInvalidClientTokenIdExceptionRes = async (parsedOutput, conte
2968
2924
  };
2969
2925
  const de_CloudWatchLogsDeliveryUnavailableExceptionRes = async (parsedOutput, context) => {
2970
2926
  const body = parsedOutput.body;
2971
- const deserialized = de_CloudWatchLogsDeliveryUnavailableException(body, context);
2927
+ const deserialized = _json(body);
2972
2928
  const exception = new CloudWatchLogsDeliveryUnavailableException({
2973
2929
  $metadata: deserializeMetadata(parsedOutput),
2974
2930
  ...deserialized,
@@ -2977,7 +2933,7 @@ const de_CloudWatchLogsDeliveryUnavailableExceptionRes = async (parsedOutput, co
2977
2933
  };
2978
2934
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2979
2935
  const body = parsedOutput.body;
2980
- const deserialized = de_ConflictException(body, context);
2936
+ const deserialized = _json(body);
2981
2937
  const exception = new ConflictException({
2982
2938
  $metadata: deserializeMetadata(parsedOutput),
2983
2939
  ...deserialized,
@@ -2986,7 +2942,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2986
2942
  };
2987
2943
  const de_DelegatedAdminAccountLimitExceededExceptionRes = async (parsedOutput, context) => {
2988
2944
  const body = parsedOutput.body;
2989
- const deserialized = de_DelegatedAdminAccountLimitExceededException(body, context);
2945
+ const deserialized = _json(body);
2990
2946
  const exception = new DelegatedAdminAccountLimitExceededException({
2991
2947
  $metadata: deserializeMetadata(parsedOutput),
2992
2948
  ...deserialized,
@@ -2995,7 +2951,7 @@ const de_DelegatedAdminAccountLimitExceededExceptionRes = async (parsedOutput, c
2995
2951
  };
2996
2952
  const de_EventDataStoreAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2997
2953
  const body = parsedOutput.body;
2998
- const deserialized = de_EventDataStoreAlreadyExistsException(body, context);
2954
+ const deserialized = _json(body);
2999
2955
  const exception = new EventDataStoreAlreadyExistsException({
3000
2956
  $metadata: deserializeMetadata(parsedOutput),
3001
2957
  ...deserialized,
@@ -3004,7 +2960,7 @@ const de_EventDataStoreAlreadyExistsExceptionRes = async (parsedOutput, context)
3004
2960
  };
3005
2961
  const de_EventDataStoreARNInvalidExceptionRes = async (parsedOutput, context) => {
3006
2962
  const body = parsedOutput.body;
3007
- const deserialized = de_EventDataStoreARNInvalidException(body, context);
2963
+ const deserialized = _json(body);
3008
2964
  const exception = new EventDataStoreARNInvalidException({
3009
2965
  $metadata: deserializeMetadata(parsedOutput),
3010
2966
  ...deserialized,
@@ -3013,7 +2969,7 @@ const de_EventDataStoreARNInvalidExceptionRes = async (parsedOutput, context) =>
3013
2969
  };
3014
2970
  const de_EventDataStoreHasOngoingImportExceptionRes = async (parsedOutput, context) => {
3015
2971
  const body = parsedOutput.body;
3016
- const deserialized = de_EventDataStoreHasOngoingImportException(body, context);
2972
+ const deserialized = _json(body);
3017
2973
  const exception = new EventDataStoreHasOngoingImportException({
3018
2974
  $metadata: deserializeMetadata(parsedOutput),
3019
2975
  ...deserialized,
@@ -3022,7 +2978,7 @@ const de_EventDataStoreHasOngoingImportExceptionRes = async (parsedOutput, conte
3022
2978
  };
3023
2979
  const de_EventDataStoreMaxLimitExceededExceptionRes = async (parsedOutput, context) => {
3024
2980
  const body = parsedOutput.body;
3025
- const deserialized = de_EventDataStoreMaxLimitExceededException(body, context);
2981
+ const deserialized = _json(body);
3026
2982
  const exception = new EventDataStoreMaxLimitExceededException({
3027
2983
  $metadata: deserializeMetadata(parsedOutput),
3028
2984
  ...deserialized,
@@ -3031,7 +2987,7 @@ const de_EventDataStoreMaxLimitExceededExceptionRes = async (parsedOutput, conte
3031
2987
  };
3032
2988
  const de_EventDataStoreNotFoundExceptionRes = async (parsedOutput, context) => {
3033
2989
  const body = parsedOutput.body;
3034
- const deserialized = de_EventDataStoreNotFoundException(body, context);
2990
+ const deserialized = _json(body);
3035
2991
  const exception = new EventDataStoreNotFoundException({
3036
2992
  $metadata: deserializeMetadata(parsedOutput),
3037
2993
  ...deserialized,
@@ -3040,7 +2996,7 @@ const de_EventDataStoreNotFoundExceptionRes = async (parsedOutput, context) => {
3040
2996
  };
3041
2997
  const de_EventDataStoreTerminationProtectedExceptionRes = async (parsedOutput, context) => {
3042
2998
  const body = parsedOutput.body;
3043
- const deserialized = de_EventDataStoreTerminationProtectedException(body, context);
2999
+ const deserialized = _json(body);
3044
3000
  const exception = new EventDataStoreTerminationProtectedException({
3045
3001
  $metadata: deserializeMetadata(parsedOutput),
3046
3002
  ...deserialized,
@@ -3049,7 +3005,7 @@ const de_EventDataStoreTerminationProtectedExceptionRes = async (parsedOutput, c
3049
3005
  };
3050
3006
  const de_ImportNotFoundExceptionRes = async (parsedOutput, context) => {
3051
3007
  const body = parsedOutput.body;
3052
- const deserialized = de_ImportNotFoundException(body, context);
3008
+ const deserialized = _json(body);
3053
3009
  const exception = new ImportNotFoundException({
3054
3010
  $metadata: deserializeMetadata(parsedOutput),
3055
3011
  ...deserialized,
@@ -3058,7 +3014,7 @@ const de_ImportNotFoundExceptionRes = async (parsedOutput, context) => {
3058
3014
  };
3059
3015
  const de_InactiveEventDataStoreExceptionRes = async (parsedOutput, context) => {
3060
3016
  const body = parsedOutput.body;
3061
- const deserialized = de_InactiveEventDataStoreException(body, context);
3017
+ const deserialized = _json(body);
3062
3018
  const exception = new InactiveEventDataStoreException({
3063
3019
  $metadata: deserializeMetadata(parsedOutput),
3064
3020
  ...deserialized,
@@ -3067,7 +3023,7 @@ const de_InactiveEventDataStoreExceptionRes = async (parsedOutput, context) => {
3067
3023
  };
3068
3024
  const de_InactiveQueryExceptionRes = async (parsedOutput, context) => {
3069
3025
  const body = parsedOutput.body;
3070
- const deserialized = de_InactiveQueryException(body, context);
3026
+ const deserialized = _json(body);
3071
3027
  const exception = new InactiveQueryException({
3072
3028
  $metadata: deserializeMetadata(parsedOutput),
3073
3029
  ...deserialized,
@@ -3076,7 +3032,7 @@ const de_InactiveQueryExceptionRes = async (parsedOutput, context) => {
3076
3032
  };
3077
3033
  const de_InsightNotEnabledExceptionRes = async (parsedOutput, context) => {
3078
3034
  const body = parsedOutput.body;
3079
- const deserialized = de_InsightNotEnabledException(body, context);
3035
+ const deserialized = _json(body);
3080
3036
  const exception = new InsightNotEnabledException({
3081
3037
  $metadata: deserializeMetadata(parsedOutput),
3082
3038
  ...deserialized,
@@ -3085,7 +3041,7 @@ const de_InsightNotEnabledExceptionRes = async (parsedOutput, context) => {
3085
3041
  };
3086
3042
  const de_InsufficientDependencyServiceAccessPermissionExceptionRes = async (parsedOutput, context) => {
3087
3043
  const body = parsedOutput.body;
3088
- const deserialized = de_InsufficientDependencyServiceAccessPermissionException(body, context);
3044
+ const deserialized = _json(body);
3089
3045
  const exception = new InsufficientDependencyServiceAccessPermissionException({
3090
3046
  $metadata: deserializeMetadata(parsedOutput),
3091
3047
  ...deserialized,
@@ -3094,7 +3050,7 @@ const de_InsufficientDependencyServiceAccessPermissionExceptionRes = async (pars
3094
3050
  };
3095
3051
  const de_InsufficientEncryptionPolicyExceptionRes = async (parsedOutput, context) => {
3096
3052
  const body = parsedOutput.body;
3097
- const deserialized = de_InsufficientEncryptionPolicyException(body, context);
3053
+ const deserialized = _json(body);
3098
3054
  const exception = new InsufficientEncryptionPolicyException({
3099
3055
  $metadata: deserializeMetadata(parsedOutput),
3100
3056
  ...deserialized,
@@ -3103,7 +3059,7 @@ const de_InsufficientEncryptionPolicyExceptionRes = async (parsedOutput, context
3103
3059
  };
3104
3060
  const de_InsufficientS3BucketPolicyExceptionRes = async (parsedOutput, context) => {
3105
3061
  const body = parsedOutput.body;
3106
- const deserialized = de_InsufficientS3BucketPolicyException(body, context);
3062
+ const deserialized = _json(body);
3107
3063
  const exception = new InsufficientS3BucketPolicyException({
3108
3064
  $metadata: deserializeMetadata(parsedOutput),
3109
3065
  ...deserialized,
@@ -3112,7 +3068,7 @@ const de_InsufficientS3BucketPolicyExceptionRes = async (parsedOutput, context)
3112
3068
  };
3113
3069
  const de_InsufficientSnsTopicPolicyExceptionRes = async (parsedOutput, context) => {
3114
3070
  const body = parsedOutput.body;
3115
- const deserialized = de_InsufficientSnsTopicPolicyException(body, context);
3071
+ const deserialized = _json(body);
3116
3072
  const exception = new InsufficientSnsTopicPolicyException({
3117
3073
  $metadata: deserializeMetadata(parsedOutput),
3118
3074
  ...deserialized,
@@ -3121,7 +3077,7 @@ const de_InsufficientSnsTopicPolicyExceptionRes = async (parsedOutput, context)
3121
3077
  };
3122
3078
  const de_InvalidCloudWatchLogsLogGroupArnExceptionRes = async (parsedOutput, context) => {
3123
3079
  const body = parsedOutput.body;
3124
- const deserialized = de_InvalidCloudWatchLogsLogGroupArnException(body, context);
3080
+ const deserialized = _json(body);
3125
3081
  const exception = new InvalidCloudWatchLogsLogGroupArnException({
3126
3082
  $metadata: deserializeMetadata(parsedOutput),
3127
3083
  ...deserialized,
@@ -3130,7 +3086,7 @@ const de_InvalidCloudWatchLogsLogGroupArnExceptionRes = async (parsedOutput, con
3130
3086
  };
3131
3087
  const de_InvalidCloudWatchLogsRoleArnExceptionRes = async (parsedOutput, context) => {
3132
3088
  const body = parsedOutput.body;
3133
- const deserialized = de_InvalidCloudWatchLogsRoleArnException(body, context);
3089
+ const deserialized = _json(body);
3134
3090
  const exception = new InvalidCloudWatchLogsRoleArnException({
3135
3091
  $metadata: deserializeMetadata(parsedOutput),
3136
3092
  ...deserialized,
@@ -3139,7 +3095,7 @@ const de_InvalidCloudWatchLogsRoleArnExceptionRes = async (parsedOutput, context
3139
3095
  };
3140
3096
  const de_InvalidDateRangeExceptionRes = async (parsedOutput, context) => {
3141
3097
  const body = parsedOutput.body;
3142
- const deserialized = de_InvalidDateRangeException(body, context);
3098
+ const deserialized = _json(body);
3143
3099
  const exception = new InvalidDateRangeException({
3144
3100
  $metadata: deserializeMetadata(parsedOutput),
3145
3101
  ...deserialized,
@@ -3148,7 +3104,7 @@ const de_InvalidDateRangeExceptionRes = async (parsedOutput, context) => {
3148
3104
  };
3149
3105
  const de_InvalidEventCategoryExceptionRes = async (parsedOutput, context) => {
3150
3106
  const body = parsedOutput.body;
3151
- const deserialized = de_InvalidEventCategoryException(body, context);
3107
+ const deserialized = _json(body);
3152
3108
  const exception = new InvalidEventCategoryException({
3153
3109
  $metadata: deserializeMetadata(parsedOutput),
3154
3110
  ...deserialized,
@@ -3157,7 +3113,7 @@ const de_InvalidEventCategoryExceptionRes = async (parsedOutput, context) => {
3157
3113
  };
3158
3114
  const de_InvalidEventDataStoreCategoryExceptionRes = async (parsedOutput, context) => {
3159
3115
  const body = parsedOutput.body;
3160
- const deserialized = de_InvalidEventDataStoreCategoryException(body, context);
3116
+ const deserialized = _json(body);
3161
3117
  const exception = new InvalidEventDataStoreCategoryException({
3162
3118
  $metadata: deserializeMetadata(parsedOutput),
3163
3119
  ...deserialized,
@@ -3166,7 +3122,7 @@ const de_InvalidEventDataStoreCategoryExceptionRes = async (parsedOutput, contex
3166
3122
  };
3167
3123
  const de_InvalidEventDataStoreStatusExceptionRes = async (parsedOutput, context) => {
3168
3124
  const body = parsedOutput.body;
3169
- const deserialized = de_InvalidEventDataStoreStatusException(body, context);
3125
+ const deserialized = _json(body);
3170
3126
  const exception = new InvalidEventDataStoreStatusException({
3171
3127
  $metadata: deserializeMetadata(parsedOutput),
3172
3128
  ...deserialized,
@@ -3175,7 +3131,7 @@ const de_InvalidEventDataStoreStatusExceptionRes = async (parsedOutput, context)
3175
3131
  };
3176
3132
  const de_InvalidEventSelectorsExceptionRes = async (parsedOutput, context) => {
3177
3133
  const body = parsedOutput.body;
3178
- const deserialized = de_InvalidEventSelectorsException(body, context);
3134
+ const deserialized = _json(body);
3179
3135
  const exception = new InvalidEventSelectorsException({
3180
3136
  $metadata: deserializeMetadata(parsedOutput),
3181
3137
  ...deserialized,
@@ -3184,7 +3140,7 @@ const de_InvalidEventSelectorsExceptionRes = async (parsedOutput, context) => {
3184
3140
  };
3185
3141
  const de_InvalidHomeRegionExceptionRes = async (parsedOutput, context) => {
3186
3142
  const body = parsedOutput.body;
3187
- const deserialized = de_InvalidHomeRegionException(body, context);
3143
+ const deserialized = _json(body);
3188
3144
  const exception = new InvalidHomeRegionException({
3189
3145
  $metadata: deserializeMetadata(parsedOutput),
3190
3146
  ...deserialized,
@@ -3193,7 +3149,7 @@ const de_InvalidHomeRegionExceptionRes = async (parsedOutput, context) => {
3193
3149
  };
3194
3150
  const de_InvalidImportSourceExceptionRes = async (parsedOutput, context) => {
3195
3151
  const body = parsedOutput.body;
3196
- const deserialized = de_InvalidImportSourceException(body, context);
3152
+ const deserialized = _json(body);
3197
3153
  const exception = new InvalidImportSourceException({
3198
3154
  $metadata: deserializeMetadata(parsedOutput),
3199
3155
  ...deserialized,
@@ -3202,7 +3158,7 @@ const de_InvalidImportSourceExceptionRes = async (parsedOutput, context) => {
3202
3158
  };
3203
3159
  const de_InvalidInsightSelectorsExceptionRes = async (parsedOutput, context) => {
3204
3160
  const body = parsedOutput.body;
3205
- const deserialized = de_InvalidInsightSelectorsException(body, context);
3161
+ const deserialized = _json(body);
3206
3162
  const exception = new InvalidInsightSelectorsException({
3207
3163
  $metadata: deserializeMetadata(parsedOutput),
3208
3164
  ...deserialized,
@@ -3211,7 +3167,7 @@ const de_InvalidInsightSelectorsExceptionRes = async (parsedOutput, context) =>
3211
3167
  };
3212
3168
  const de_InvalidKmsKeyIdExceptionRes = async (parsedOutput, context) => {
3213
3169
  const body = parsedOutput.body;
3214
- const deserialized = de_InvalidKmsKeyIdException(body, context);
3170
+ const deserialized = _json(body);
3215
3171
  const exception = new InvalidKmsKeyIdException({
3216
3172
  $metadata: deserializeMetadata(parsedOutput),
3217
3173
  ...deserialized,
@@ -3220,7 +3176,7 @@ const de_InvalidKmsKeyIdExceptionRes = async (parsedOutput, context) => {
3220
3176
  };
3221
3177
  const de_InvalidLookupAttributesExceptionRes = async (parsedOutput, context) => {
3222
3178
  const body = parsedOutput.body;
3223
- const deserialized = de_InvalidLookupAttributesException(body, context);
3179
+ const deserialized = _json(body);
3224
3180
  const exception = new InvalidLookupAttributesException({
3225
3181
  $metadata: deserializeMetadata(parsedOutput),
3226
3182
  ...deserialized,
@@ -3229,7 +3185,7 @@ const de_InvalidLookupAttributesExceptionRes = async (parsedOutput, context) =>
3229
3185
  };
3230
3186
  const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
3231
3187
  const body = parsedOutput.body;
3232
- const deserialized = de_InvalidMaxResultsException(body, context);
3188
+ const deserialized = _json(body);
3233
3189
  const exception = new InvalidMaxResultsException({
3234
3190
  $metadata: deserializeMetadata(parsedOutput),
3235
3191
  ...deserialized,
@@ -3238,7 +3194,7 @@ const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
3238
3194
  };
3239
3195
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3240
3196
  const body = parsedOutput.body;
3241
- const deserialized = de_InvalidNextTokenException(body, context);
3197
+ const deserialized = _json(body);
3242
3198
  const exception = new InvalidNextTokenException({
3243
3199
  $metadata: deserializeMetadata(parsedOutput),
3244
3200
  ...deserialized,
@@ -3247,7 +3203,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
3247
3203
  };
3248
3204
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
3249
3205
  const body = parsedOutput.body;
3250
- const deserialized = de_InvalidParameterCombinationException(body, context);
3206
+ const deserialized = _json(body);
3251
3207
  const exception = new InvalidParameterCombinationException({
3252
3208
  $metadata: deserializeMetadata(parsedOutput),
3253
3209
  ...deserialized,
@@ -3256,7 +3212,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
3256
3212
  };
3257
3213
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3258
3214
  const body = parsedOutput.body;
3259
- const deserialized = de_InvalidParameterException(body, context);
3215
+ const deserialized = _json(body);
3260
3216
  const exception = new InvalidParameterException({
3261
3217
  $metadata: deserializeMetadata(parsedOutput),
3262
3218
  ...deserialized,
@@ -3265,7 +3221,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
3265
3221
  };
3266
3222
  const de_InvalidQueryStatementExceptionRes = async (parsedOutput, context) => {
3267
3223
  const body = parsedOutput.body;
3268
- const deserialized = de_InvalidQueryStatementException(body, context);
3224
+ const deserialized = _json(body);
3269
3225
  const exception = new InvalidQueryStatementException({
3270
3226
  $metadata: deserializeMetadata(parsedOutput),
3271
3227
  ...deserialized,
@@ -3274,7 +3230,7 @@ const de_InvalidQueryStatementExceptionRes = async (parsedOutput, context) => {
3274
3230
  };
3275
3231
  const de_InvalidQueryStatusExceptionRes = async (parsedOutput, context) => {
3276
3232
  const body = parsedOutput.body;
3277
- const deserialized = de_InvalidQueryStatusException(body, context);
3233
+ const deserialized = _json(body);
3278
3234
  const exception = new InvalidQueryStatusException({
3279
3235
  $metadata: deserializeMetadata(parsedOutput),
3280
3236
  ...deserialized,
@@ -3283,7 +3239,7 @@ const de_InvalidQueryStatusExceptionRes = async (parsedOutput, context) => {
3283
3239
  };
3284
3240
  const de_InvalidS3BucketNameExceptionRes = async (parsedOutput, context) => {
3285
3241
  const body = parsedOutput.body;
3286
- const deserialized = de_InvalidS3BucketNameException(body, context);
3242
+ const deserialized = _json(body);
3287
3243
  const exception = new InvalidS3BucketNameException({
3288
3244
  $metadata: deserializeMetadata(parsedOutput),
3289
3245
  ...deserialized,
@@ -3292,7 +3248,7 @@ const de_InvalidS3BucketNameExceptionRes = async (parsedOutput, context) => {
3292
3248
  };
3293
3249
  const de_InvalidS3PrefixExceptionRes = async (parsedOutput, context) => {
3294
3250
  const body = parsedOutput.body;
3295
- const deserialized = de_InvalidS3PrefixException(body, context);
3251
+ const deserialized = _json(body);
3296
3252
  const exception = new InvalidS3PrefixException({
3297
3253
  $metadata: deserializeMetadata(parsedOutput),
3298
3254
  ...deserialized,
@@ -3301,7 +3257,7 @@ const de_InvalidS3PrefixExceptionRes = async (parsedOutput, context) => {
3301
3257
  };
3302
3258
  const de_InvalidSnsTopicNameExceptionRes = async (parsedOutput, context) => {
3303
3259
  const body = parsedOutput.body;
3304
- const deserialized = de_InvalidSnsTopicNameException(body, context);
3260
+ const deserialized = _json(body);
3305
3261
  const exception = new InvalidSnsTopicNameException({
3306
3262
  $metadata: deserializeMetadata(parsedOutput),
3307
3263
  ...deserialized,
@@ -3310,7 +3266,7 @@ const de_InvalidSnsTopicNameExceptionRes = async (parsedOutput, context) => {
3310
3266
  };
3311
3267
  const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
3312
3268
  const body = parsedOutput.body;
3313
- const deserialized = de_InvalidSourceException(body, context);
3269
+ const deserialized = _json(body);
3314
3270
  const exception = new InvalidSourceException({
3315
3271
  $metadata: deserializeMetadata(parsedOutput),
3316
3272
  ...deserialized,
@@ -3319,7 +3275,7 @@ const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
3319
3275
  };
3320
3276
  const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
3321
3277
  const body = parsedOutput.body;
3322
- const deserialized = de_InvalidTagParameterException(body, context);
3278
+ const deserialized = _json(body);
3323
3279
  const exception = new InvalidTagParameterException({
3324
3280
  $metadata: deserializeMetadata(parsedOutput),
3325
3281
  ...deserialized,
@@ -3328,7 +3284,7 @@ const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
3328
3284
  };
3329
3285
  const de_InvalidTimeRangeExceptionRes = async (parsedOutput, context) => {
3330
3286
  const body = parsedOutput.body;
3331
- const deserialized = de_InvalidTimeRangeException(body, context);
3287
+ const deserialized = _json(body);
3332
3288
  const exception = new InvalidTimeRangeException({
3333
3289
  $metadata: deserializeMetadata(parsedOutput),
3334
3290
  ...deserialized,
@@ -3337,7 +3293,7 @@ const de_InvalidTimeRangeExceptionRes = async (parsedOutput, context) => {
3337
3293
  };
3338
3294
  const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
3339
3295
  const body = parsedOutput.body;
3340
- const deserialized = de_InvalidTokenException(body, context);
3296
+ const deserialized = _json(body);
3341
3297
  const exception = new InvalidTokenException({
3342
3298
  $metadata: deserializeMetadata(parsedOutput),
3343
3299
  ...deserialized,
@@ -3346,7 +3302,7 @@ const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
3346
3302
  };
3347
3303
  const de_InvalidTrailNameExceptionRes = async (parsedOutput, context) => {
3348
3304
  const body = parsedOutput.body;
3349
- const deserialized = de_InvalidTrailNameException(body, context);
3305
+ const deserialized = _json(body);
3350
3306
  const exception = new InvalidTrailNameException({
3351
3307
  $metadata: deserializeMetadata(parsedOutput),
3352
3308
  ...deserialized,
@@ -3355,7 +3311,7 @@ const de_InvalidTrailNameExceptionRes = async (parsedOutput, context) => {
3355
3311
  };
3356
3312
  const de_KmsExceptionRes = async (parsedOutput, context) => {
3357
3313
  const body = parsedOutput.body;
3358
- const deserialized = de_KmsException(body, context);
3314
+ const deserialized = _json(body);
3359
3315
  const exception = new KmsException({
3360
3316
  $metadata: deserializeMetadata(parsedOutput),
3361
3317
  ...deserialized,
@@ -3364,7 +3320,7 @@ const de_KmsExceptionRes = async (parsedOutput, context) => {
3364
3320
  };
3365
3321
  const de_KmsKeyDisabledExceptionRes = async (parsedOutput, context) => {
3366
3322
  const body = parsedOutput.body;
3367
- const deserialized = de_KmsKeyDisabledException(body, context);
3323
+ const deserialized = _json(body);
3368
3324
  const exception = new KmsKeyDisabledException({
3369
3325
  $metadata: deserializeMetadata(parsedOutput),
3370
3326
  ...deserialized,
@@ -3373,7 +3329,7 @@ const de_KmsKeyDisabledExceptionRes = async (parsedOutput, context) => {
3373
3329
  };
3374
3330
  const de_KmsKeyNotFoundExceptionRes = async (parsedOutput, context) => {
3375
3331
  const body = parsedOutput.body;
3376
- const deserialized = de_KmsKeyNotFoundException(body, context);
3332
+ const deserialized = _json(body);
3377
3333
  const exception = new KmsKeyNotFoundException({
3378
3334
  $metadata: deserializeMetadata(parsedOutput),
3379
3335
  ...deserialized,
@@ -3382,7 +3338,7 @@ const de_KmsKeyNotFoundExceptionRes = async (parsedOutput, context) => {
3382
3338
  };
3383
3339
  const de_MaxConcurrentQueriesExceptionRes = async (parsedOutput, context) => {
3384
3340
  const body = parsedOutput.body;
3385
- const deserialized = de_MaxConcurrentQueriesException(body, context);
3341
+ const deserialized = _json(body);
3386
3342
  const exception = new MaxConcurrentQueriesException({
3387
3343
  $metadata: deserializeMetadata(parsedOutput),
3388
3344
  ...deserialized,
@@ -3391,7 +3347,7 @@ const de_MaxConcurrentQueriesExceptionRes = async (parsedOutput, context) => {
3391
3347
  };
3392
3348
  const de_MaximumNumberOfTrailsExceededExceptionRes = async (parsedOutput, context) => {
3393
3349
  const body = parsedOutput.body;
3394
- const deserialized = de_MaximumNumberOfTrailsExceededException(body, context);
3350
+ const deserialized = _json(body);
3395
3351
  const exception = new MaximumNumberOfTrailsExceededException({
3396
3352
  $metadata: deserializeMetadata(parsedOutput),
3397
3353
  ...deserialized,
@@ -3400,7 +3356,7 @@ const de_MaximumNumberOfTrailsExceededExceptionRes = async (parsedOutput, contex
3400
3356
  };
3401
3357
  const de_NoManagementAccountSLRExistsExceptionRes = async (parsedOutput, context) => {
3402
3358
  const body = parsedOutput.body;
3403
- const deserialized = de_NoManagementAccountSLRExistsException(body, context);
3359
+ const deserialized = _json(body);
3404
3360
  const exception = new NoManagementAccountSLRExistsException({
3405
3361
  $metadata: deserializeMetadata(parsedOutput),
3406
3362
  ...deserialized,
@@ -3409,7 +3365,7 @@ const de_NoManagementAccountSLRExistsExceptionRes = async (parsedOutput, context
3409
3365
  };
3410
3366
  const de_NotOrganizationManagementAccountExceptionRes = async (parsedOutput, context) => {
3411
3367
  const body = parsedOutput.body;
3412
- const deserialized = de_NotOrganizationManagementAccountException(body, context);
3368
+ const deserialized = _json(body);
3413
3369
  const exception = new NotOrganizationManagementAccountException({
3414
3370
  $metadata: deserializeMetadata(parsedOutput),
3415
3371
  ...deserialized,
@@ -3418,7 +3374,7 @@ const de_NotOrganizationManagementAccountExceptionRes = async (parsedOutput, con
3418
3374
  };
3419
3375
  const de_NotOrganizationMasterAccountExceptionRes = async (parsedOutput, context) => {
3420
3376
  const body = parsedOutput.body;
3421
- const deserialized = de_NotOrganizationMasterAccountException(body, context);
3377
+ const deserialized = _json(body);
3422
3378
  const exception = new NotOrganizationMasterAccountException({
3423
3379
  $metadata: deserializeMetadata(parsedOutput),
3424
3380
  ...deserialized,
@@ -3427,7 +3383,7 @@ const de_NotOrganizationMasterAccountExceptionRes = async (parsedOutput, context
3427
3383
  };
3428
3384
  const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3429
3385
  const body = parsedOutput.body;
3430
- const deserialized = de_OperationNotPermittedException(body, context);
3386
+ const deserialized = _json(body);
3431
3387
  const exception = new OperationNotPermittedException({
3432
3388
  $metadata: deserializeMetadata(parsedOutput),
3433
3389
  ...deserialized,
@@ -3436,7 +3392,7 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3436
3392
  };
3437
3393
  const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
3438
3394
  const body = parsedOutput.body;
3439
- const deserialized = de_OrganizationNotInAllFeaturesModeException(body, context);
3395
+ const deserialized = _json(body);
3440
3396
  const exception = new OrganizationNotInAllFeaturesModeException({
3441
3397
  $metadata: deserializeMetadata(parsedOutput),
3442
3398
  ...deserialized,
@@ -3445,7 +3401,7 @@ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, con
3445
3401
  };
3446
3402
  const de_OrganizationsNotInUseExceptionRes = async (parsedOutput, context) => {
3447
3403
  const body = parsedOutput.body;
3448
- const deserialized = de_OrganizationsNotInUseException(body, context);
3404
+ const deserialized = _json(body);
3449
3405
  const exception = new OrganizationsNotInUseException({
3450
3406
  $metadata: deserializeMetadata(parsedOutput),
3451
3407
  ...deserialized,
@@ -3454,7 +3410,7 @@ const de_OrganizationsNotInUseExceptionRes = async (parsedOutput, context) => {
3454
3410
  };
3455
3411
  const de_QueryIdNotFoundExceptionRes = async (parsedOutput, context) => {
3456
3412
  const body = parsedOutput.body;
3457
- const deserialized = de_QueryIdNotFoundException(body, context);
3413
+ const deserialized = _json(body);
3458
3414
  const exception = new QueryIdNotFoundException({
3459
3415
  $metadata: deserializeMetadata(parsedOutput),
3460
3416
  ...deserialized,
@@ -3463,7 +3419,7 @@ const de_QueryIdNotFoundExceptionRes = async (parsedOutput, context) => {
3463
3419
  };
3464
3420
  const de_ResourceARNNotValidExceptionRes = async (parsedOutput, context) => {
3465
3421
  const body = parsedOutput.body;
3466
- const deserialized = de_ResourceARNNotValidException(body, context);
3422
+ const deserialized = _json(body);
3467
3423
  const exception = new ResourceARNNotValidException({
3468
3424
  $metadata: deserializeMetadata(parsedOutput),
3469
3425
  ...deserialized,
@@ -3472,7 +3428,7 @@ const de_ResourceARNNotValidExceptionRes = async (parsedOutput, context) => {
3472
3428
  };
3473
3429
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3474
3430
  const body = parsedOutput.body;
3475
- const deserialized = de_ResourceNotFoundException(body, context);
3431
+ const deserialized = _json(body);
3476
3432
  const exception = new ResourceNotFoundException({
3477
3433
  $metadata: deserializeMetadata(parsedOutput),
3478
3434
  ...deserialized,
@@ -3481,7 +3437,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3481
3437
  };
3482
3438
  const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
3483
3439
  const body = parsedOutput.body;
3484
- const deserialized = de_ResourcePolicyNotFoundException(body, context);
3440
+ const deserialized = _json(body);
3485
3441
  const exception = new ResourcePolicyNotFoundException({
3486
3442
  $metadata: deserializeMetadata(parsedOutput),
3487
3443
  ...deserialized,
@@ -3490,7 +3446,7 @@ const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
3490
3446
  };
3491
3447
  const de_ResourcePolicyNotValidExceptionRes = async (parsedOutput, context) => {
3492
3448
  const body = parsedOutput.body;
3493
- const deserialized = de_ResourcePolicyNotValidException(body, context);
3449
+ const deserialized = _json(body);
3494
3450
  const exception = new ResourcePolicyNotValidException({
3495
3451
  $metadata: deserializeMetadata(parsedOutput),
3496
3452
  ...deserialized,
@@ -3499,7 +3455,7 @@ const de_ResourcePolicyNotValidExceptionRes = async (parsedOutput, context) => {
3499
3455
  };
3500
3456
  const de_ResourceTypeNotSupportedExceptionRes = async (parsedOutput, context) => {
3501
3457
  const body = parsedOutput.body;
3502
- const deserialized = de_ResourceTypeNotSupportedException(body, context);
3458
+ const deserialized = _json(body);
3503
3459
  const exception = new ResourceTypeNotSupportedException({
3504
3460
  $metadata: deserializeMetadata(parsedOutput),
3505
3461
  ...deserialized,
@@ -3508,7 +3464,7 @@ const de_ResourceTypeNotSupportedExceptionRes = async (parsedOutput, context) =>
3508
3464
  };
3509
3465
  const de_S3BucketDoesNotExistExceptionRes = async (parsedOutput, context) => {
3510
3466
  const body = parsedOutput.body;
3511
- const deserialized = de_S3BucketDoesNotExistException(body, context);
3467
+ const deserialized = _json(body);
3512
3468
  const exception = new S3BucketDoesNotExistException({
3513
3469
  $metadata: deserializeMetadata(parsedOutput),
3514
3470
  ...deserialized,
@@ -3517,7 +3473,7 @@ const de_S3BucketDoesNotExistExceptionRes = async (parsedOutput, context) => {
3517
3473
  };
3518
3474
  const de_TagsLimitExceededExceptionRes = async (parsedOutput, context) => {
3519
3475
  const body = parsedOutput.body;
3520
- const deserialized = de_TagsLimitExceededException(body, context);
3476
+ const deserialized = _json(body);
3521
3477
  const exception = new TagsLimitExceededException({
3522
3478
  $metadata: deserializeMetadata(parsedOutput),
3523
3479
  ...deserialized,
@@ -3526,7 +3482,7 @@ const de_TagsLimitExceededExceptionRes = async (parsedOutput, context) => {
3526
3482
  };
3527
3483
  const de_TrailAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3528
3484
  const body = parsedOutput.body;
3529
- const deserialized = de_TrailAlreadyExistsException(body, context);
3485
+ const deserialized = _json(body);
3530
3486
  const exception = new TrailAlreadyExistsException({
3531
3487
  $metadata: deserializeMetadata(parsedOutput),
3532
3488
  ...deserialized,
@@ -3535,7 +3491,7 @@ const de_TrailAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3535
3491
  };
3536
3492
  const de_TrailNotFoundExceptionRes = async (parsedOutput, context) => {
3537
3493
  const body = parsedOutput.body;
3538
- const deserialized = de_TrailNotFoundException(body, context);
3494
+ const deserialized = _json(body);
3539
3495
  const exception = new TrailNotFoundException({
3540
3496
  $metadata: deserializeMetadata(parsedOutput),
3541
3497
  ...deserialized,
@@ -3544,7 +3500,7 @@ const de_TrailNotFoundExceptionRes = async (parsedOutput, context) => {
3544
3500
  };
3545
3501
  const de_TrailNotProvidedExceptionRes = async (parsedOutput, context) => {
3546
3502
  const body = parsedOutput.body;
3547
- const deserialized = de_TrailNotProvidedException(body, context);
3503
+ const deserialized = _json(body);
3548
3504
  const exception = new TrailNotProvidedException({
3549
3505
  $metadata: deserializeMetadata(parsedOutput),
3550
3506
  ...deserialized,
@@ -3553,1796 +3509,351 @@ const de_TrailNotProvidedExceptionRes = async (parsedOutput, context) => {
3553
3509
  };
3554
3510
  const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
3555
3511
  const body = parsedOutput.body;
3556
- const deserialized = de_UnsupportedOperationException(body, context);
3512
+ const deserialized = _json(body);
3557
3513
  const exception = new UnsupportedOperationException({
3558
3514
  $metadata: deserializeMetadata(parsedOutput),
3559
3515
  ...deserialized,
3560
3516
  });
3561
3517
  return __decorateServiceException(exception, body);
3562
3518
  };
3563
- const se_AddTagsRequest = (input, context) => {
3564
- return {
3565
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3566
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3567
- };
3568
- };
3569
- const se_AdvancedEventSelector = (input, context) => {
3570
- return {
3571
- ...(input.FieldSelectors != null && { FieldSelectors: se_AdvancedFieldSelectors(input.FieldSelectors, context) }),
3572
- ...(input.Name != null && { Name: input.Name }),
3573
- };
3574
- };
3575
- const se_AdvancedEventSelectors = (input, context) => {
3576
- return input
3577
- .filter((e) => e != null)
3578
- .map((entry) => {
3579
- return se_AdvancedEventSelector(entry, context);
3580
- });
3581
- };
3582
- const se_AdvancedFieldSelector = (input, context) => {
3583
- return {
3584
- ...(input.EndsWith != null && { EndsWith: se_Operator(input.EndsWith, context) }),
3585
- ...(input.Equals != null && { Equals: se_Operator(input.Equals, context) }),
3586
- ...(input.Field != null && { Field: input.Field }),
3587
- ...(input.NotEndsWith != null && { NotEndsWith: se_Operator(input.NotEndsWith, context) }),
3588
- ...(input.NotEquals != null && { NotEquals: se_Operator(input.NotEquals, context) }),
3589
- ...(input.NotStartsWith != null && { NotStartsWith: se_Operator(input.NotStartsWith, context) }),
3590
- ...(input.StartsWith != null && { StartsWith: se_Operator(input.StartsWith, context) }),
3591
- };
3592
- };
3593
- const se_AdvancedFieldSelectors = (input, context) => {
3594
- return input
3595
- .filter((e) => e != null)
3596
- .map((entry) => {
3597
- return se_AdvancedFieldSelector(entry, context);
3598
- });
3599
- };
3600
- const se_CancelQueryRequest = (input, context) => {
3601
- return {
3602
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3603
- ...(input.QueryId != null && { QueryId: input.QueryId }),
3604
- };
3605
- };
3606
- const se_CreateChannelRequest = (input, context) => {
3607
- return {
3608
- ...(input.Destinations != null && { Destinations: se_Destinations(input.Destinations, context) }),
3609
- ...(input.Name != null && { Name: input.Name }),
3610
- ...(input.Source != null && { Source: input.Source }),
3611
- ...(input.Tags != null && { Tags: se_TagsList(input.Tags, context) }),
3612
- };
3613
- };
3614
- const se_CreateEventDataStoreRequest = (input, context) => {
3615
- return {
3616
- ...(input.AdvancedEventSelectors != null && {
3617
- AdvancedEventSelectors: se_AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3618
- }),
3619
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
3620
- ...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
3621
- ...(input.Name != null && { Name: input.Name }),
3622
- ...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
3623
- ...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
3624
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3625
- ...(input.TerminationProtectionEnabled != null && {
3626
- TerminationProtectionEnabled: input.TerminationProtectionEnabled,
3627
- }),
3628
- };
3629
- };
3630
- const se_CreateTrailRequest = (input, context) => {
3631
- return {
3632
- ...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
3633
- ...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
3634
- ...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
3635
- ...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
3636
- ...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
3637
- ...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
3638
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
3639
- ...(input.Name != null && { Name: input.Name }),
3640
- ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
3641
- ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
3642
- ...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
3643
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3644
- };
3645
- };
3646
- const se_DataResource = (input, context) => {
3647
- return {
3648
- ...(input.Type != null && { Type: input.Type }),
3649
- ...(input.Values != null && { Values: se_DataResourceValues(input.Values, context) }),
3650
- };
3651
- };
3652
- const se_DataResources = (input, context) => {
3653
- return input
3654
- .filter((e) => e != null)
3655
- .map((entry) => {
3656
- return se_DataResource(entry, context);
3657
- });
3658
- };
3659
- const se_DataResourceValues = (input, context) => {
3660
- return input
3661
- .filter((e) => e != null)
3662
- .map((entry) => {
3663
- return entry;
3664
- });
3665
- };
3666
- const se_DeleteChannelRequest = (input, context) => {
3667
- return {
3668
- ...(input.Channel != null && { Channel: input.Channel }),
3669
- };
3670
- };
3671
- const se_DeleteEventDataStoreRequest = (input, context) => {
3672
- return {
3673
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3674
- };
3675
- };
3676
- const se_DeleteResourcePolicyRequest = (input, context) => {
3677
- return {
3678
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3679
- };
3680
- };
3681
- const se_DeleteTrailRequest = (input, context) => {
3682
- return {
3683
- ...(input.Name != null && { Name: input.Name }),
3684
- };
3685
- };
3686
- const se_DeregisterOrganizationDelegatedAdminRequest = (input, context) => {
3687
- return {
3688
- ...(input.DelegatedAdminAccountId != null && { DelegatedAdminAccountId: input.DelegatedAdminAccountId }),
3689
- };
3690
- };
3691
- const se_DescribeQueryRequest = (input, context) => {
3692
- return {
3693
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3694
- ...(input.QueryId != null && { QueryId: input.QueryId }),
3695
- };
3696
- };
3697
- const se_DescribeTrailsRequest = (input, context) => {
3698
- return {
3699
- ...(input.includeShadowTrails != null && { includeShadowTrails: input.includeShadowTrails }),
3700
- ...(input.trailNameList != null && { trailNameList: se_TrailNameList(input.trailNameList, context) }),
3701
- };
3702
- };
3703
- const se_Destination = (input, context) => {
3704
- return {
3705
- ...(input.Location != null && { Location: input.Location }),
3706
- ...(input.Type != null && { Type: input.Type }),
3707
- };
3708
- };
3709
- const se_Destinations = (input, context) => {
3710
- return input
3711
- .filter((e) => e != null)
3712
- .map((entry) => {
3713
- return se_Destination(entry, context);
3714
- });
3715
- };
3716
- const se_EventSelector = (input, context) => {
3717
- return {
3718
- ...(input.DataResources != null && { DataResources: se_DataResources(input.DataResources, context) }),
3719
- ...(input.ExcludeManagementEventSources != null && {
3720
- ExcludeManagementEventSources: se_ExcludeManagementEventSources(input.ExcludeManagementEventSources, context),
3721
- }),
3722
- ...(input.IncludeManagementEvents != null && { IncludeManagementEvents: input.IncludeManagementEvents }),
3723
- ...(input.ReadWriteType != null && { ReadWriteType: input.ReadWriteType }),
3724
- };
3725
- };
3726
- const se_EventSelectors = (input, context) => {
3727
- return input
3728
- .filter((e) => e != null)
3729
- .map((entry) => {
3730
- return se_EventSelector(entry, context);
3731
- });
3732
- };
3733
- const se_ExcludeManagementEventSources = (input, context) => {
3734
- return input
3735
- .filter((e) => e != null)
3736
- .map((entry) => {
3737
- return entry;
3738
- });
3739
- };
3740
- const se_GetChannelRequest = (input, context) => {
3741
- return {
3742
- ...(input.Channel != null && { Channel: input.Channel }),
3743
- };
3744
- };
3745
- const se_GetEventDataStoreRequest = (input, context) => {
3746
- return {
3747
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3748
- };
3749
- };
3750
- const se_GetEventSelectorsRequest = (input, context) => {
3751
- return {
3752
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3753
- };
3754
- };
3755
- const se_GetImportRequest = (input, context) => {
3756
- return {
3757
- ...(input.ImportId != null && { ImportId: input.ImportId }),
3758
- };
3759
- };
3760
- const se_GetInsightSelectorsRequest = (input, context) => {
3761
- return {
3762
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3763
- };
3764
- };
3765
- const se_GetQueryResultsRequest = (input, context) => {
3766
- return {
3767
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3768
- ...(input.MaxQueryResults != null && { MaxQueryResults: input.MaxQueryResults }),
3769
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3770
- ...(input.QueryId != null && { QueryId: input.QueryId }),
3771
- };
3772
- };
3773
- const se_GetResourcePolicyRequest = (input, context) => {
3774
- return {
3775
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3776
- };
3777
- };
3778
- const se_GetTrailRequest = (input, context) => {
3779
- return {
3780
- ...(input.Name != null && { Name: input.Name }),
3781
- };
3782
- };
3783
- const se_GetTrailStatusRequest = (input, context) => {
3784
- return {
3785
- ...(input.Name != null && { Name: input.Name }),
3786
- };
3787
- };
3788
- const se_ImportDestinations = (input, context) => {
3789
- return input
3790
- .filter((e) => e != null)
3791
- .map((entry) => {
3792
- return entry;
3793
- });
3794
- };
3795
- const se_ImportSource = (input, context) => {
3796
- return {
3797
- ...(input.S3 != null && { S3: se_S3ImportSource(input.S3, context) }),
3798
- };
3799
- };
3800
- const se_InsightSelector = (input, context) => {
3801
- return {
3802
- ...(input.InsightType != null && { InsightType: input.InsightType }),
3803
- };
3804
- };
3805
- const se_InsightSelectors = (input, context) => {
3806
- return input
3807
- .filter((e) => e != null)
3808
- .map((entry) => {
3809
- return se_InsightSelector(entry, context);
3810
- });
3811
- };
3812
- const se_ListChannelsRequest = (input, context) => {
3813
- return {
3814
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3815
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3816
- };
3817
- };
3818
- const se_ListEventDataStoresRequest = (input, context) => {
3819
- return {
3820
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3821
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3822
- };
3823
- };
3824
- const se_ListImportFailuresRequest = (input, context) => {
3825
- return {
3826
- ...(input.ImportId != null && { ImportId: input.ImportId }),
3827
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3828
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3829
- };
3830
- };
3831
- const se_ListImportsRequest = (input, context) => {
3832
- return {
3833
- ...(input.Destination != null && { Destination: input.Destination }),
3834
- ...(input.ImportStatus != null && { ImportStatus: input.ImportStatus }),
3835
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3836
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3837
- };
3838
- };
3839
- const se_ListPublicKeysRequest = (input, context) => {
3840
- return {
3841
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3842
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3843
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3844
- };
3845
- };
3846
- const se_ListQueriesRequest = (input, context) => {
3847
- return {
3848
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3849
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3850
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3851
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3852
- ...(input.QueryStatus != null && { QueryStatus: input.QueryStatus }),
3853
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3854
- };
3855
- };
3856
- const se_ListTagsRequest = (input, context) => {
3857
- return {
3858
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3859
- ...(input.ResourceIdList != null && { ResourceIdList: se_ResourceIdList(input.ResourceIdList, context) }),
3860
- };
3861
- };
3862
- const se_ListTrailsRequest = (input, context) => {
3863
- return {
3864
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3865
- };
3866
- };
3867
- const se_LookupAttribute = (input, context) => {
3868
- return {
3869
- ...(input.AttributeKey != null && { AttributeKey: input.AttributeKey }),
3870
- ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
3871
- };
3872
- };
3873
- const se_LookupAttributesList = (input, context) => {
3874
- return input
3875
- .filter((e) => e != null)
3876
- .map((entry) => {
3877
- return se_LookupAttribute(entry, context);
3878
- });
3879
- };
3880
- const se_LookupEventsRequest = (input, context) => {
3881
- return {
3882
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3883
- ...(input.EventCategory != null && { EventCategory: input.EventCategory }),
3884
- ...(input.LookupAttributes != null && {
3885
- LookupAttributes: se_LookupAttributesList(input.LookupAttributes, context),
3886
- }),
3887
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3888
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3889
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3890
- };
3891
- };
3892
- const se_Operator = (input, context) => {
3893
- return input
3894
- .filter((e) => e != null)
3895
- .map((entry) => {
3896
- return entry;
3897
- });
3898
- };
3899
- const se_PutEventSelectorsRequest = (input, context) => {
3900
- return {
3901
- ...(input.AdvancedEventSelectors != null && {
3902
- AdvancedEventSelectors: se_AdvancedEventSelectors(input.AdvancedEventSelectors, context),
3903
- }),
3904
- ...(input.EventSelectors != null && { EventSelectors: se_EventSelectors(input.EventSelectors, context) }),
3905
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3906
- };
3907
- };
3908
- const se_PutInsightSelectorsRequest = (input, context) => {
3909
- return {
3910
- ...(input.InsightSelectors != null && { InsightSelectors: se_InsightSelectors(input.InsightSelectors, context) }),
3911
- ...(input.TrailName != null && { TrailName: input.TrailName }),
3912
- };
3913
- };
3914
- const se_PutResourcePolicyRequest = (input, context) => {
3915
- return {
3916
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3917
- ...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
3918
- };
3919
- };
3920
- const se_RegisterOrganizationDelegatedAdminRequest = (input, context) => {
3921
- return {
3922
- ...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
3923
- };
3924
- };
3925
- const se_RemoveTagsRequest = (input, context) => {
3926
- return {
3927
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3928
- ...(input.TagsList != null && { TagsList: se_TagsList(input.TagsList, context) }),
3929
- };
3930
- };
3931
- const se_ResourceIdList = (input, context) => {
3932
- return input
3933
- .filter((e) => e != null)
3934
- .map((entry) => {
3935
- return entry;
3936
- });
3937
- };
3938
- const se_RestoreEventDataStoreRequest = (input, context) => {
3939
- return {
3940
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
3941
- };
3942
- };
3943
- const se_S3ImportSource = (input, context) => {
3944
- return {
3945
- ...(input.S3BucketAccessRoleArn != null && { S3BucketAccessRoleArn: input.S3BucketAccessRoleArn }),
3946
- ...(input.S3BucketRegion != null && { S3BucketRegion: input.S3BucketRegion }),
3947
- ...(input.S3LocationUri != null && { S3LocationUri: input.S3LocationUri }),
3948
- };
3949
- };
3950
- const se_StartImportRequest = (input, context) => {
3951
- return {
3952
- ...(input.Destinations != null && { Destinations: se_ImportDestinations(input.Destinations, context) }),
3953
- ...(input.EndEventTime != null && { EndEventTime: Math.round(input.EndEventTime.getTime() / 1000) }),
3954
- ...(input.ImportId != null && { ImportId: input.ImportId }),
3955
- ...(input.ImportSource != null && { ImportSource: se_ImportSource(input.ImportSource, context) }),
3956
- ...(input.StartEventTime != null && { StartEventTime: Math.round(input.StartEventTime.getTime() / 1000) }),
3957
- };
3958
- };
3959
- const se_StartLoggingRequest = (input, context) => {
3960
- return {
3961
- ...(input.Name != null && { Name: input.Name }),
3962
- };
3963
- };
3964
- const se_StartQueryRequest = (input, context) => {
3965
- return {
3966
- ...(input.DeliveryS3Uri != null && { DeliveryS3Uri: input.DeliveryS3Uri }),
3967
- ...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
3968
- };
3969
- };
3970
- const se_StopImportRequest = (input, context) => {
3971
- return {
3972
- ...(input.ImportId != null && { ImportId: input.ImportId }),
3973
- };
3974
- };
3975
- const se_StopLoggingRequest = (input, context) => {
3976
- return {
3977
- ...(input.Name != null && { Name: input.Name }),
3978
- };
3979
- };
3980
- const se_Tag = (input, context) => {
3981
- return {
3982
- ...(input.Key != null && { Key: input.Key }),
3983
- ...(input.Value != null && { Value: input.Value }),
3984
- };
3985
- };
3986
- const se_TagsList = (input, context) => {
3987
- return input
3988
- .filter((e) => e != null)
3989
- .map((entry) => {
3990
- return se_Tag(entry, context);
3991
- });
3992
- };
3993
- const se_TrailNameList = (input, context) => {
3994
- return input
3995
- .filter((e) => e != null)
3996
- .map((entry) => {
3997
- return entry;
3998
- });
3999
- };
4000
- const se_UpdateChannelRequest = (input, context) => {
4001
- return {
4002
- ...(input.Channel != null && { Channel: input.Channel }),
4003
- ...(input.Destinations != null && { Destinations: se_Destinations(input.Destinations, context) }),
4004
- ...(input.Name != null && { Name: input.Name }),
4005
- };
4006
- };
4007
- const se_UpdateEventDataStoreRequest = (input, context) => {
4008
- return {
4009
- ...(input.AdvancedEventSelectors != null && {
4010
- AdvancedEventSelectors: se_AdvancedEventSelectors(input.AdvancedEventSelectors, context),
4011
- }),
4012
- ...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
4013
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
4014
- ...(input.MultiRegionEnabled != null && { MultiRegionEnabled: input.MultiRegionEnabled }),
4015
- ...(input.Name != null && { Name: input.Name }),
4016
- ...(input.OrganizationEnabled != null && { OrganizationEnabled: input.OrganizationEnabled }),
4017
- ...(input.RetentionPeriod != null && { RetentionPeriod: input.RetentionPeriod }),
4018
- ...(input.TerminationProtectionEnabled != null && {
4019
- TerminationProtectionEnabled: input.TerminationProtectionEnabled,
4020
- }),
4021
- };
4022
- };
4023
- const se_UpdateTrailRequest = (input, context) => {
4024
- return {
4025
- ...(input.CloudWatchLogsLogGroupArn != null && { CloudWatchLogsLogGroupArn: input.CloudWatchLogsLogGroupArn }),
4026
- ...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
4027
- ...(input.EnableLogFileValidation != null && { EnableLogFileValidation: input.EnableLogFileValidation }),
4028
- ...(input.IncludeGlobalServiceEvents != null && { IncludeGlobalServiceEvents: input.IncludeGlobalServiceEvents }),
4029
- ...(input.IsMultiRegionTrail != null && { IsMultiRegionTrail: input.IsMultiRegionTrail }),
4030
- ...(input.IsOrganizationTrail != null && { IsOrganizationTrail: input.IsOrganizationTrail }),
4031
- ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
4032
- ...(input.Name != null && { Name: input.Name }),
4033
- ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
4034
- ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
4035
- ...(input.SnsTopicName != null && { SnsTopicName: input.SnsTopicName }),
4036
- };
4037
- };
4038
- const de_AccountHasOngoingImportException = (output, context) => {
4039
- return {
4040
- Message: __expectString(output.Message),
4041
- };
4042
- };
4043
- const de_AccountNotFoundException = (output, context) => {
4044
- return {
4045
- Message: __expectString(output.Message),
4046
- };
4047
- };
4048
- const de_AccountNotRegisteredException = (output, context) => {
4049
- return {
4050
- Message: __expectString(output.Message),
4051
- };
4052
- };
4053
- const de_AccountRegisteredException = (output, context) => {
4054
- return {
4055
- Message: __expectString(output.Message),
4056
- };
4057
- };
4058
- const de_AddTagsResponse = (output, context) => {
4059
- return {};
4060
- };
4061
- const de_AdvancedEventSelector = (output, context) => {
4062
- return {
4063
- FieldSelectors: output.FieldSelectors != null ? de_AdvancedFieldSelectors(output.FieldSelectors, context) : undefined,
4064
- Name: __expectString(output.Name),
4065
- };
4066
- };
4067
- const de_AdvancedEventSelectors = (output, context) => {
4068
- const retVal = (output || [])
4069
- .filter((e) => e != null)
4070
- .map((entry) => {
4071
- if (entry === null) {
4072
- return null;
4073
- }
4074
- return de_AdvancedEventSelector(entry, context);
4075
- });
4076
- return retVal;
4077
- };
4078
- const de_AdvancedFieldSelector = (output, context) => {
4079
- return {
4080
- EndsWith: output.EndsWith != null ? de_Operator(output.EndsWith, context) : undefined,
4081
- Equals: output.Equals != null ? de_Operator(output.Equals, context) : undefined,
4082
- Field: __expectString(output.Field),
4083
- NotEndsWith: output.NotEndsWith != null ? de_Operator(output.NotEndsWith, context) : undefined,
4084
- NotEquals: output.NotEquals != null ? de_Operator(output.NotEquals, context) : undefined,
4085
- NotStartsWith: output.NotStartsWith != null ? de_Operator(output.NotStartsWith, context) : undefined,
4086
- StartsWith: output.StartsWith != null ? de_Operator(output.StartsWith, context) : undefined,
4087
- };
4088
- };
4089
- const de_AdvancedFieldSelectors = (output, context) => {
4090
- const retVal = (output || [])
4091
- .filter((e) => e != null)
4092
- .map((entry) => {
4093
- if (entry === null) {
4094
- return null;
4095
- }
4096
- return de_AdvancedFieldSelector(entry, context);
4097
- });
4098
- return retVal;
4099
- };
4100
- const de_CancelQueryResponse = (output, context) => {
4101
- return {
4102
- QueryId: __expectString(output.QueryId),
4103
- QueryStatus: __expectString(output.QueryStatus),
4104
- };
4105
- };
4106
- const de_CannotDelegateManagementAccountException = (output, context) => {
4107
- return {
4108
- Message: __expectString(output.Message),
4109
- };
4110
- };
4111
- const de_Channel = (output, context) => {
4112
- return {
4113
- ChannelArn: __expectString(output.ChannelArn),
4114
- Name: __expectString(output.Name),
4115
- };
4116
- };
4117
- const de_ChannelAlreadyExistsException = (output, context) => {
4118
- return {
4119
- Message: __expectString(output.Message),
4120
- };
4121
- };
4122
- const de_ChannelARNInvalidException = (output, context) => {
4123
- return {
4124
- Message: __expectString(output.Message),
4125
- };
4126
- };
4127
- const de_ChannelExistsForEDSException = (output, context) => {
4128
- return {
4129
- Message: __expectString(output.Message),
4130
- };
4131
- };
4132
- const de_ChannelMaxLimitExceededException = (output, context) => {
4133
- return {
4134
- Message: __expectString(output.Message),
4135
- };
4136
- };
4137
- const de_ChannelNotFoundException = (output, context) => {
4138
- return {
4139
- Message: __expectString(output.Message),
4140
- };
4141
- };
4142
- const de_Channels = (output, context) => {
4143
- const retVal = (output || [])
4144
- .filter((e) => e != null)
4145
- .map((entry) => {
4146
- if (entry === null) {
4147
- return null;
4148
- }
4149
- return de_Channel(entry, context);
4150
- });
4151
- return retVal;
4152
- };
4153
- const de_CloudTrailAccessNotEnabledException = (output, context) => {
4154
- return {
4155
- Message: __expectString(output.Message),
4156
- };
4157
- };
4158
- const de_CloudTrailARNInvalidException = (output, context) => {
4159
- return {
4160
- Message: __expectString(output.Message),
4161
- };
4162
- };
4163
- const de_CloudTrailInvalidClientTokenIdException = (output, context) => {
4164
- return {
4165
- Message: __expectString(output.Message),
4166
- };
4167
- };
4168
- const de_CloudWatchLogsDeliveryUnavailableException = (output, context) => {
4169
- return {
4170
- Message: __expectString(output.Message),
4171
- };
4172
- };
4173
- const de_ConflictException = (output, context) => {
4174
- return {
4175
- Message: __expectString(output.Message),
4176
- };
4177
- };
4178
- const de_CreateChannelResponse = (output, context) => {
4179
- return {
4180
- ChannelArn: __expectString(output.ChannelArn),
4181
- Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
4182
- Name: __expectString(output.Name),
4183
- Source: __expectString(output.Source),
4184
- Tags: output.Tags != null ? de_TagsList(output.Tags, context) : undefined,
4185
- };
4186
- };
4187
- const de_CreateEventDataStoreResponse = (output, context) => {
4188
- return {
4189
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4190
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4191
- : undefined,
4192
- CreatedTimestamp: output.CreatedTimestamp != null
4193
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4194
- : undefined,
4195
- EventDataStoreArn: __expectString(output.EventDataStoreArn),
4196
- KmsKeyId: __expectString(output.KmsKeyId),
4197
- MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
4198
- Name: __expectString(output.Name),
4199
- OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
4200
- RetentionPeriod: __expectInt32(output.RetentionPeriod),
4201
- Status: __expectString(output.Status),
4202
- TagsList: output.TagsList != null ? de_TagsList(output.TagsList, context) : undefined,
4203
- TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
4204
- UpdatedTimestamp: output.UpdatedTimestamp != null
4205
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4206
- : undefined,
4207
- };
4208
- };
4209
- const de_CreateTrailResponse = (output, context) => {
4210
- return {
4211
- CloudWatchLogsLogGroupArn: __expectString(output.CloudWatchLogsLogGroupArn),
4212
- CloudWatchLogsRoleArn: __expectString(output.CloudWatchLogsRoleArn),
4213
- IncludeGlobalServiceEvents: __expectBoolean(output.IncludeGlobalServiceEvents),
4214
- IsMultiRegionTrail: __expectBoolean(output.IsMultiRegionTrail),
4215
- IsOrganizationTrail: __expectBoolean(output.IsOrganizationTrail),
4216
- KmsKeyId: __expectString(output.KmsKeyId),
4217
- LogFileValidationEnabled: __expectBoolean(output.LogFileValidationEnabled),
4218
- Name: __expectString(output.Name),
4219
- S3BucketName: __expectString(output.S3BucketName),
4220
- S3KeyPrefix: __expectString(output.S3KeyPrefix),
4221
- SnsTopicARN: __expectString(output.SnsTopicARN),
4222
- SnsTopicName: __expectString(output.SnsTopicName),
4223
- TrailARN: __expectString(output.TrailARN),
4224
- };
4225
- };
4226
- const de_DataResource = (output, context) => {
4227
- return {
4228
- Type: __expectString(output.Type),
4229
- Values: output.Values != null ? de_DataResourceValues(output.Values, context) : undefined,
4230
- };
4231
- };
4232
- const de_DataResources = (output, context) => {
4233
- const retVal = (output || [])
4234
- .filter((e) => e != null)
4235
- .map((entry) => {
4236
- if (entry === null) {
4237
- return null;
4238
- }
4239
- return de_DataResource(entry, context);
4240
- });
4241
- return retVal;
4242
- };
4243
- const de_DataResourceValues = (output, context) => {
4244
- const retVal = (output || [])
4245
- .filter((e) => e != null)
4246
- .map((entry) => {
4247
- if (entry === null) {
4248
- return null;
4249
- }
4250
- return __expectString(entry);
4251
- });
4252
- return retVal;
4253
- };
4254
- const de_DelegatedAdminAccountLimitExceededException = (output, context) => {
4255
- return {
4256
- Message: __expectString(output.Message),
4257
- };
4258
- };
4259
- const de_DeleteChannelResponse = (output, context) => {
4260
- return {};
4261
- };
4262
- const de_DeleteEventDataStoreResponse = (output, context) => {
4263
- return {};
4264
- };
4265
- const de_DeleteResourcePolicyResponse = (output, context) => {
4266
- return {};
4267
- };
4268
- const de_DeleteTrailResponse = (output, context) => {
4269
- return {};
4270
- };
4271
- const de_DeregisterOrganizationDelegatedAdminResponse = (output, context) => {
4272
- return {};
4273
- };
4274
- const de_DescribeQueryResponse = (output, context) => {
4275
- return {
4276
- DeliveryS3Uri: __expectString(output.DeliveryS3Uri),
4277
- DeliveryStatus: __expectString(output.DeliveryStatus),
4278
- ErrorMessage: __expectString(output.ErrorMessage),
4279
- QueryId: __expectString(output.QueryId),
4280
- QueryStatistics: output.QueryStatistics != null ? de_QueryStatisticsForDescribeQuery(output.QueryStatistics, context) : undefined,
4281
- QueryStatus: __expectString(output.QueryStatus),
4282
- QueryString: __expectString(output.QueryString),
4283
- };
4284
- };
4285
- const de_DescribeTrailsResponse = (output, context) => {
4286
- return {
4287
- trailList: output.trailList != null ? de_TrailList(output.trailList, context) : undefined,
4288
- };
4289
- };
4290
- const de_Destination = (output, context) => {
4291
- return {
4292
- Location: __expectString(output.Location),
4293
- Type: __expectString(output.Type),
4294
- };
4295
- };
4296
- const de_Destinations = (output, context) => {
4297
- const retVal = (output || [])
4298
- .filter((e) => e != null)
4299
- .map((entry) => {
4300
- if (entry === null) {
4301
- return null;
4302
- }
4303
- return de_Destination(entry, context);
4304
- });
4305
- return retVal;
4306
- };
4307
- const de_Event = (output, context) => {
4308
- return {
4309
- AccessKeyId: __expectString(output.AccessKeyId),
4310
- CloudTrailEvent: __expectString(output.CloudTrailEvent),
4311
- EventId: __expectString(output.EventId),
4312
- EventName: __expectString(output.EventName),
4313
- EventSource: __expectString(output.EventSource),
4314
- EventTime: output.EventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime))) : undefined,
4315
- ReadOnly: __expectString(output.ReadOnly),
4316
- Resources: output.Resources != null ? de_ResourceList(output.Resources, context) : undefined,
4317
- Username: __expectString(output.Username),
4318
- };
4319
- };
4320
- const de_EventDataStore = (output, context) => {
4321
- return {
4322
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4323
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4324
- : undefined,
4325
- CreatedTimestamp: output.CreatedTimestamp != null
4326
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4327
- : undefined,
4328
- EventDataStoreArn: __expectString(output.EventDataStoreArn),
4329
- MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
4330
- Name: __expectString(output.Name),
4331
- OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
4332
- RetentionPeriod: __expectInt32(output.RetentionPeriod),
4333
- Status: __expectString(output.Status),
4334
- TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
4335
- UpdatedTimestamp: output.UpdatedTimestamp != null
4336
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4337
- : undefined,
4338
- };
4339
- };
4340
- const de_EventDataStoreAlreadyExistsException = (output, context) => {
4341
- return {
4342
- Message: __expectString(output.Message),
4343
- };
4344
- };
4345
- const de_EventDataStoreARNInvalidException = (output, context) => {
4346
- return {
4347
- Message: __expectString(output.Message),
4348
- };
4349
- };
4350
- const de_EventDataStoreHasOngoingImportException = (output, context) => {
4351
- return {
4352
- Message: __expectString(output.Message),
4353
- };
4354
- };
4355
- const de_EventDataStoreMaxLimitExceededException = (output, context) => {
4356
- return {
4357
- Message: __expectString(output.Message),
4358
- };
4359
- };
4360
- const de_EventDataStoreNotFoundException = (output, context) => {
4361
- return {
4362
- Message: __expectString(output.Message),
4363
- };
4364
- };
4365
- const de_EventDataStores = (output, context) => {
4366
- const retVal = (output || [])
4367
- .filter((e) => e != null)
4368
- .map((entry) => {
4369
- if (entry === null) {
4370
- return null;
4371
- }
4372
- return de_EventDataStore(entry, context);
4373
- });
4374
- return retVal;
4375
- };
4376
- const de_EventDataStoreTerminationProtectedException = (output, context) => {
4377
- return {
4378
- Message: __expectString(output.Message),
4379
- };
4380
- };
4381
- const de_EventSelector = (output, context) => {
4382
- return {
4383
- DataResources: output.DataResources != null ? de_DataResources(output.DataResources, context) : undefined,
4384
- ExcludeManagementEventSources: output.ExcludeManagementEventSources != null
4385
- ? de_ExcludeManagementEventSources(output.ExcludeManagementEventSources, context)
4386
- : undefined,
4387
- IncludeManagementEvents: __expectBoolean(output.IncludeManagementEvents),
4388
- ReadWriteType: __expectString(output.ReadWriteType),
4389
- };
4390
- };
4391
- const de_EventSelectors = (output, context) => {
4392
- const retVal = (output || [])
4393
- .filter((e) => e != null)
4394
- .map((entry) => {
4395
- if (entry === null) {
4396
- return null;
4397
- }
4398
- return de_EventSelector(entry, context);
4399
- });
4400
- return retVal;
4401
- };
4402
- const de_EventsList = (output, context) => {
4403
- const retVal = (output || [])
4404
- .filter((e) => e != null)
4405
- .map((entry) => {
4406
- if (entry === null) {
4407
- return null;
4408
- }
4409
- return de_Event(entry, context);
4410
- });
4411
- return retVal;
4412
- };
4413
- const de_ExcludeManagementEventSources = (output, context) => {
4414
- const retVal = (output || [])
4415
- .filter((e) => e != null)
4416
- .map((entry) => {
4417
- if (entry === null) {
4418
- return null;
4419
- }
4420
- return __expectString(entry);
4421
- });
4422
- return retVal;
4423
- };
4424
- const de_GetChannelResponse = (output, context) => {
4425
- return {
4426
- ChannelArn: __expectString(output.ChannelArn),
4427
- Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
4428
- IngestionStatus: output.IngestionStatus != null ? de_IngestionStatus(output.IngestionStatus, context) : undefined,
4429
- Name: __expectString(output.Name),
4430
- Source: __expectString(output.Source),
4431
- SourceConfig: output.SourceConfig != null ? de_SourceConfig(output.SourceConfig, context) : undefined,
4432
- };
4433
- };
4434
- const de_GetEventDataStoreResponse = (output, context) => {
4435
- return {
4436
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4437
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4438
- : undefined,
4439
- CreatedTimestamp: output.CreatedTimestamp != null
4440
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4441
- : undefined,
4442
- EventDataStoreArn: __expectString(output.EventDataStoreArn),
4443
- KmsKeyId: __expectString(output.KmsKeyId),
4444
- MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
4445
- Name: __expectString(output.Name),
4446
- OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
4447
- RetentionPeriod: __expectInt32(output.RetentionPeriod),
4448
- Status: __expectString(output.Status),
4449
- TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
4450
- UpdatedTimestamp: output.UpdatedTimestamp != null
4451
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4452
- : undefined,
4453
- };
4454
- };
4455
- const de_GetEventSelectorsResponse = (output, context) => {
4456
- return {
4457
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4458
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4459
- : undefined,
4460
- EventSelectors: output.EventSelectors != null ? de_EventSelectors(output.EventSelectors, context) : undefined,
4461
- TrailARN: __expectString(output.TrailARN),
4462
- };
4463
- };
4464
- const de_GetImportResponse = (output, context) => {
4465
- return {
4466
- CreatedTimestamp: output.CreatedTimestamp != null
4467
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4468
- : undefined,
4469
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
4470
- EndEventTime: output.EndEventTime != null
4471
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndEventTime)))
4472
- : undefined,
4473
- ImportId: __expectString(output.ImportId),
4474
- ImportSource: output.ImportSource != null ? de_ImportSource(output.ImportSource, context) : undefined,
4475
- ImportStatistics: output.ImportStatistics != null ? de_ImportStatistics(output.ImportStatistics, context) : undefined,
4476
- ImportStatus: __expectString(output.ImportStatus),
4477
- StartEventTime: output.StartEventTime != null
4478
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartEventTime)))
4479
- : undefined,
4480
- UpdatedTimestamp: output.UpdatedTimestamp != null
4481
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4482
- : undefined,
4483
- };
4484
- };
4485
- const de_GetInsightSelectorsResponse = (output, context) => {
4486
- return {
4487
- InsightSelectors: output.InsightSelectors != null ? de_InsightSelectors(output.InsightSelectors, context) : undefined,
4488
- TrailARN: __expectString(output.TrailARN),
4489
- };
4490
- };
4491
- const de_GetQueryResultsResponse = (output, context) => {
4492
- return {
4493
- ErrorMessage: __expectString(output.ErrorMessage),
4494
- NextToken: __expectString(output.NextToken),
4495
- QueryResultRows: output.QueryResultRows != null ? de_QueryResultRows(output.QueryResultRows, context) : undefined,
4496
- QueryStatistics: output.QueryStatistics != null ? de_QueryStatistics(output.QueryStatistics, context) : undefined,
4497
- QueryStatus: __expectString(output.QueryStatus),
4498
- };
4499
- };
4500
- const de_GetResourcePolicyResponse = (output, context) => {
4501
- return {
4502
- ResourceArn: __expectString(output.ResourceArn),
4503
- ResourcePolicy: __expectString(output.ResourcePolicy),
4504
- };
4505
- };
4506
- const de_GetTrailResponse = (output, context) => {
4507
- return {
4508
- Trail: output.Trail != null ? de_Trail(output.Trail, context) : undefined,
4509
- };
4510
- };
4511
- const de_GetTrailStatusResponse = (output, context) => {
4512
- return {
4513
- IsLogging: __expectBoolean(output.IsLogging),
4514
- LatestCloudWatchLogsDeliveryError: __expectString(output.LatestCloudWatchLogsDeliveryError),
4515
- LatestCloudWatchLogsDeliveryTime: output.LatestCloudWatchLogsDeliveryTime != null
4516
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestCloudWatchLogsDeliveryTime)))
4517
- : undefined,
4518
- LatestDeliveryAttemptSucceeded: __expectString(output.LatestDeliveryAttemptSucceeded),
4519
- LatestDeliveryAttemptTime: __expectString(output.LatestDeliveryAttemptTime),
4520
- LatestDeliveryError: __expectString(output.LatestDeliveryError),
4521
- LatestDeliveryTime: output.LatestDeliveryTime != null
4522
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestDeliveryTime)))
4523
- : undefined,
4524
- LatestDigestDeliveryError: __expectString(output.LatestDigestDeliveryError),
4525
- LatestDigestDeliveryTime: output.LatestDigestDeliveryTime != null
4526
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestDigestDeliveryTime)))
4527
- : undefined,
4528
- LatestNotificationAttemptSucceeded: __expectString(output.LatestNotificationAttemptSucceeded),
4529
- LatestNotificationAttemptTime: __expectString(output.LatestNotificationAttemptTime),
4530
- LatestNotificationError: __expectString(output.LatestNotificationError),
4531
- LatestNotificationTime: output.LatestNotificationTime != null
4532
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestNotificationTime)))
4533
- : undefined,
4534
- StartLoggingTime: output.StartLoggingTime != null
4535
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartLoggingTime)))
4536
- : undefined,
4537
- StopLoggingTime: output.StopLoggingTime != null
4538
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopLoggingTime)))
4539
- : undefined,
4540
- TimeLoggingStarted: __expectString(output.TimeLoggingStarted),
4541
- TimeLoggingStopped: __expectString(output.TimeLoggingStopped),
4542
- };
4543
- };
4544
- const de_ImportDestinations = (output, context) => {
4545
- const retVal = (output || [])
4546
- .filter((e) => e != null)
4547
- .map((entry) => {
4548
- if (entry === null) {
4549
- return null;
4550
- }
4551
- return __expectString(entry);
4552
- });
4553
- return retVal;
4554
- };
4555
- const de_ImportFailureList = (output, context) => {
4556
- const retVal = (output || [])
4557
- .filter((e) => e != null)
4558
- .map((entry) => {
4559
- if (entry === null) {
4560
- return null;
4561
- }
4562
- return de_ImportFailureListItem(entry, context);
4563
- });
4564
- return retVal;
4565
- };
4566
- const de_ImportFailureListItem = (output, context) => {
4567
- return {
4568
- ErrorMessage: __expectString(output.ErrorMessage),
4569
- ErrorType: __expectString(output.ErrorType),
4570
- LastUpdatedTime: output.LastUpdatedTime != null
4571
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
4572
- : undefined,
4573
- Location: __expectString(output.Location),
4574
- Status: __expectString(output.Status),
4575
- };
4576
- };
4577
- const de_ImportNotFoundException = (output, context) => {
4578
- return {
4579
- Message: __expectString(output.Message),
4580
- };
4581
- };
4582
- const de_ImportsList = (output, context) => {
4583
- const retVal = (output || [])
4584
- .filter((e) => e != null)
4585
- .map((entry) => {
4586
- if (entry === null) {
4587
- return null;
4588
- }
4589
- return de_ImportsListItem(entry, context);
4590
- });
4591
- return retVal;
4592
- };
4593
- const de_ImportsListItem = (output, context) => {
4594
- return {
4595
- CreatedTimestamp: output.CreatedTimestamp != null
4596
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
4597
- : undefined,
4598
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
4599
- ImportId: __expectString(output.ImportId),
4600
- ImportStatus: __expectString(output.ImportStatus),
4601
- UpdatedTimestamp: output.UpdatedTimestamp != null
4602
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
4603
- : undefined,
4604
- };
4605
- };
4606
- const de_ImportSource = (output, context) => {
4607
- return {
4608
- S3: output.S3 != null ? de_S3ImportSource(output.S3, context) : undefined,
4609
- };
4610
- };
4611
- const de_ImportStatistics = (output, context) => {
4612
- return {
4613
- EventsCompleted: __expectLong(output.EventsCompleted),
4614
- FailedEntries: __expectLong(output.FailedEntries),
4615
- FilesCompleted: __expectLong(output.FilesCompleted),
4616
- PrefixesCompleted: __expectLong(output.PrefixesCompleted),
4617
- PrefixesFound: __expectLong(output.PrefixesFound),
4618
- };
4619
- };
4620
- const de_InactiveEventDataStoreException = (output, context) => {
4621
- return {
4622
- Message: __expectString(output.Message),
4623
- };
4624
- };
4625
- const de_InactiveQueryException = (output, context) => {
4626
- return {
4627
- Message: __expectString(output.Message),
4628
- };
4629
- };
4630
- const de_IngestionStatus = (output, context) => {
4631
- return {
4632
- LatestIngestionAttemptEventID: __expectString(output.LatestIngestionAttemptEventID),
4633
- LatestIngestionAttemptTime: output.LatestIngestionAttemptTime != null
4634
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestIngestionAttemptTime)))
4635
- : undefined,
4636
- LatestIngestionErrorCode: __expectString(output.LatestIngestionErrorCode),
4637
- LatestIngestionSuccessEventID: __expectString(output.LatestIngestionSuccessEventID),
4638
- LatestIngestionSuccessTime: output.LatestIngestionSuccessTime != null
4639
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestIngestionSuccessTime)))
4640
- : undefined,
4641
- };
4642
- };
4643
- const de_InsightNotEnabledException = (output, context) => {
4644
- return {
4645
- Message: __expectString(output.Message),
4646
- };
4647
- };
4648
- const de_InsightSelector = (output, context) => {
4649
- return {
4650
- InsightType: __expectString(output.InsightType),
4651
- };
4652
- };
4653
- const de_InsightSelectors = (output, context) => {
4654
- const retVal = (output || [])
4655
- .filter((e) => e != null)
4656
- .map((entry) => {
4657
- if (entry === null) {
4658
- return null;
4659
- }
4660
- return de_InsightSelector(entry, context);
4661
- });
4662
- return retVal;
4663
- };
4664
- const de_InsufficientDependencyServiceAccessPermissionException = (output, context) => {
4665
- return {
4666
- Message: __expectString(output.Message),
4667
- };
4668
- };
4669
- const de_InsufficientEncryptionPolicyException = (output, context) => {
4670
- return {
4671
- Message: __expectString(output.Message),
4672
- };
4673
- };
4674
- const de_InsufficientS3BucketPolicyException = (output, context) => {
4675
- return {
4676
- Message: __expectString(output.Message),
4677
- };
4678
- };
4679
- const de_InsufficientSnsTopicPolicyException = (output, context) => {
4680
- return {
4681
- Message: __expectString(output.Message),
4682
- };
4683
- };
4684
- const de_InvalidCloudWatchLogsLogGroupArnException = (output, context) => {
4685
- return {
4686
- Message: __expectString(output.Message),
4687
- };
4688
- };
4689
- const de_InvalidCloudWatchLogsRoleArnException = (output, context) => {
4690
- return {
4691
- Message: __expectString(output.Message),
4692
- };
4693
- };
4694
- const de_InvalidDateRangeException = (output, context) => {
4695
- return {
4696
- Message: __expectString(output.Message),
4697
- };
4698
- };
4699
- const de_InvalidEventCategoryException = (output, context) => {
4700
- return {
4701
- Message: __expectString(output.Message),
4702
- };
4703
- };
4704
- const de_InvalidEventDataStoreCategoryException = (output, context) => {
4705
- return {
4706
- Message: __expectString(output.Message),
4707
- };
4708
- };
4709
- const de_InvalidEventDataStoreStatusException = (output, context) => {
4710
- return {
4711
- Message: __expectString(output.Message),
4712
- };
4713
- };
4714
- const de_InvalidEventSelectorsException = (output, context) => {
4715
- return {
4716
- Message: __expectString(output.Message),
4717
- };
4718
- };
4719
- const de_InvalidHomeRegionException = (output, context) => {
4720
- return {
4721
- Message: __expectString(output.Message),
4722
- };
4723
- };
4724
- const de_InvalidImportSourceException = (output, context) => {
4725
- return {
4726
- Message: __expectString(output.Message),
4727
- };
4728
- };
4729
- const de_InvalidInsightSelectorsException = (output, context) => {
4730
- return {
4731
- Message: __expectString(output.Message),
4732
- };
4733
- };
4734
- const de_InvalidKmsKeyIdException = (output, context) => {
4735
- return {
4736
- Message: __expectString(output.Message),
4737
- };
4738
- };
4739
- const de_InvalidLookupAttributesException = (output, context) => {
4740
- return {
4741
- Message: __expectString(output.Message),
4742
- };
4743
- };
4744
- const de_InvalidMaxResultsException = (output, context) => {
4745
- return {
4746
- Message: __expectString(output.Message),
4747
- };
4748
- };
4749
- const de_InvalidNextTokenException = (output, context) => {
4750
- return {
4751
- Message: __expectString(output.Message),
4752
- };
4753
- };
4754
- const de_InvalidParameterCombinationException = (output, context) => {
4755
- return {
4756
- Message: __expectString(output.Message),
4757
- };
4758
- };
4759
- const de_InvalidParameterException = (output, context) => {
4760
- return {
4761
- Message: __expectString(output.Message),
4762
- };
4763
- };
4764
- const de_InvalidQueryStatementException = (output, context) => {
4765
- return {
4766
- Message: __expectString(output.Message),
4767
- };
4768
- };
4769
- const de_InvalidQueryStatusException = (output, context) => {
4770
- return {
4771
- Message: __expectString(output.Message),
4772
- };
4773
- };
4774
- const de_InvalidS3BucketNameException = (output, context) => {
4775
- return {
4776
- Message: __expectString(output.Message),
4777
- };
4778
- };
4779
- const de_InvalidS3PrefixException = (output, context) => {
4780
- return {
4781
- Message: __expectString(output.Message),
4782
- };
4783
- };
4784
- const de_InvalidSnsTopicNameException = (output, context) => {
4785
- return {
4786
- Message: __expectString(output.Message),
4787
- };
4788
- };
4789
- const de_InvalidSourceException = (output, context) => {
4790
- return {
4791
- Message: __expectString(output.Message),
4792
- };
4793
- };
4794
- const de_InvalidTagParameterException = (output, context) => {
4795
- return {
4796
- Message: __expectString(output.Message),
4797
- };
4798
- };
4799
- const de_InvalidTimeRangeException = (output, context) => {
4800
- return {
4801
- Message: __expectString(output.Message),
4802
- };
4803
- };
4804
- const de_InvalidTokenException = (output, context) => {
4805
- return {
4806
- Message: __expectString(output.Message),
4807
- };
4808
- };
4809
- const de_InvalidTrailNameException = (output, context) => {
4810
- return {
4811
- Message: __expectString(output.Message),
4812
- };
4813
- };
4814
- const de_KmsException = (output, context) => {
4815
- return {
4816
- Message: __expectString(output.Message),
4817
- };
4818
- };
4819
- const de_KmsKeyDisabledException = (output, context) => {
4820
- return {
4821
- Message: __expectString(output.Message),
4822
- };
4823
- };
4824
- const de_KmsKeyNotFoundException = (output, context) => {
4825
- return {
4826
- Message: __expectString(output.Message),
4827
- };
4828
- };
4829
- const de_ListChannelsResponse = (output, context) => {
4830
- return {
4831
- Channels: output.Channels != null ? de_Channels(output.Channels, context) : undefined,
4832
- NextToken: __expectString(output.NextToken),
4833
- };
4834
- };
4835
- const de_ListEventDataStoresResponse = (output, context) => {
4836
- return {
4837
- EventDataStores: output.EventDataStores != null ? de_EventDataStores(output.EventDataStores, context) : undefined,
4838
- NextToken: __expectString(output.NextToken),
4839
- };
4840
- };
4841
- const de_ListImportFailuresResponse = (output, context) => {
4842
- return {
4843
- Failures: output.Failures != null ? de_ImportFailureList(output.Failures, context) : undefined,
4844
- NextToken: __expectString(output.NextToken),
4845
- };
4846
- };
4847
- const de_ListImportsResponse = (output, context) => {
4848
- return {
4849
- Imports: output.Imports != null ? de_ImportsList(output.Imports, context) : undefined,
4850
- NextToken: __expectString(output.NextToken),
4851
- };
4852
- };
4853
- const de_ListPublicKeysResponse = (output, context) => {
4854
- return {
4855
- NextToken: __expectString(output.NextToken),
4856
- PublicKeyList: output.PublicKeyList != null ? de_PublicKeyList(output.PublicKeyList, context) : undefined,
4857
- };
4858
- };
4859
- const de_ListQueriesResponse = (output, context) => {
4860
- return {
4861
- NextToken: __expectString(output.NextToken),
4862
- Queries: output.Queries != null ? de_Queries(output.Queries, context) : undefined,
4863
- };
4864
- };
4865
- const de_ListTagsResponse = (output, context) => {
4866
- return {
4867
- NextToken: __expectString(output.NextToken),
4868
- ResourceTagList: output.ResourceTagList != null ? de_ResourceTagList(output.ResourceTagList, context) : undefined,
4869
- };
4870
- };
4871
- const de_ListTrailsResponse = (output, context) => {
4872
- return {
4873
- NextToken: __expectString(output.NextToken),
4874
- Trails: output.Trails != null ? de_Trails(output.Trails, context) : undefined,
4875
- };
4876
- };
4877
- const de_LookupEventsResponse = (output, context) => {
4878
- return {
4879
- Events: output.Events != null ? de_EventsList(output.Events, context) : undefined,
4880
- NextToken: __expectString(output.NextToken),
4881
- };
4882
- };
4883
- const de_MaxConcurrentQueriesException = (output, context) => {
4884
- return {
4885
- Message: __expectString(output.Message),
4886
- };
4887
- };
4888
- const de_MaximumNumberOfTrailsExceededException = (output, context) => {
4889
- return {
4890
- Message: __expectString(output.Message),
4891
- };
4892
- };
4893
- const de_NoManagementAccountSLRExistsException = (output, context) => {
4894
- return {
4895
- Message: __expectString(output.Message),
4896
- };
4897
- };
4898
- const de_NotOrganizationManagementAccountException = (output, context) => {
4899
- return {
4900
- Message: __expectString(output.Message),
4901
- };
4902
- };
4903
- const de_NotOrganizationMasterAccountException = (output, context) => {
4904
- return {
4905
- Message: __expectString(output.Message),
4906
- };
4907
- };
4908
- const de_OperationNotPermittedException = (output, context) => {
4909
- return {
4910
- Message: __expectString(output.Message),
4911
- };
4912
- };
4913
- const de_Operator = (output, context) => {
4914
- const retVal = (output || [])
4915
- .filter((e) => e != null)
4916
- .map((entry) => {
4917
- if (entry === null) {
4918
- return null;
4919
- }
4920
- return __expectString(entry);
3519
+ const se_ListPublicKeysRequest = (input, context) => {
3520
+ return take(input, {
3521
+ EndTime: (_) => Math.round(_.getTime() / 1000),
3522
+ NextToken: [],
3523
+ StartTime: (_) => Math.round(_.getTime() / 1000),
4921
3524
  });
4922
- return retVal;
4923
- };
4924
- const de_OrganizationNotInAllFeaturesModeException = (output, context) => {
4925
- return {
4926
- Message: __expectString(output.Message),
4927
- };
4928
- };
4929
- const de_OrganizationsNotInUseException = (output, context) => {
4930
- return {
4931
- Message: __expectString(output.Message),
4932
- };
4933
- };
4934
- const de_PublicKey = (output, context) => {
4935
- return {
4936
- Fingerprint: __expectString(output.Fingerprint),
4937
- ValidityEndTime: output.ValidityEndTime != null
4938
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidityEndTime)))
4939
- : undefined,
4940
- ValidityStartTime: output.ValidityStartTime != null
4941
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidityStartTime)))
4942
- : undefined,
4943
- Value: output.Value != null ? context.base64Decoder(output.Value) : undefined,
4944
- };
4945
3525
  };
4946
- const de_PublicKeyList = (output, context) => {
4947
- const retVal = (output || [])
4948
- .filter((e) => e != null)
4949
- .map((entry) => {
4950
- if (entry === null) {
4951
- return null;
4952
- }
4953
- return de_PublicKey(entry, context);
3526
+ const se_ListQueriesRequest = (input, context) => {
3527
+ return take(input, {
3528
+ EndTime: (_) => Math.round(_.getTime() / 1000),
3529
+ EventDataStore: [],
3530
+ MaxResults: [],
3531
+ NextToken: [],
3532
+ QueryStatus: [],
3533
+ StartTime: (_) => Math.round(_.getTime() / 1000),
4954
3534
  });
4955
- return retVal;
4956
- };
4957
- const de_PutEventSelectorsResponse = (output, context) => {
4958
- return {
4959
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
4960
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
4961
- : undefined,
4962
- EventSelectors: output.EventSelectors != null ? de_EventSelectors(output.EventSelectors, context) : undefined,
4963
- TrailARN: __expectString(output.TrailARN),
4964
- };
4965
3535
  };
4966
- const de_PutInsightSelectorsResponse = (output, context) => {
4967
- return {
4968
- InsightSelectors: output.InsightSelectors != null ? de_InsightSelectors(output.InsightSelectors, context) : undefined,
4969
- TrailARN: __expectString(output.TrailARN),
4970
- };
3536
+ const se_LookupEventsRequest = (input, context) => {
3537
+ return take(input, {
3538
+ EndTime: (_) => Math.round(_.getTime() / 1000),
3539
+ EventCategory: [],
3540
+ LookupAttributes: _json,
3541
+ MaxResults: [],
3542
+ NextToken: [],
3543
+ StartTime: (_) => Math.round(_.getTime() / 1000),
3544
+ });
4971
3545
  };
4972
- const de_PutResourcePolicyResponse = (output, context) => {
4973
- return {
4974
- ResourceArn: __expectString(output.ResourceArn),
4975
- ResourcePolicy: __expectString(output.ResourcePolicy),
4976
- };
3546
+ const se_StartImportRequest = (input, context) => {
3547
+ return take(input, {
3548
+ Destinations: _json,
3549
+ EndEventTime: (_) => Math.round(_.getTime() / 1000),
3550
+ ImportId: [],
3551
+ ImportSource: _json,
3552
+ StartEventTime: (_) => Math.round(_.getTime() / 1000),
3553
+ });
4977
3554
  };
4978
- const de_Queries = (output, context) => {
4979
- const retVal = (output || [])
4980
- .filter((e) => e != null)
4981
- .map((entry) => {
4982
- if (entry === null) {
4983
- return null;
4984
- }
4985
- return de_Query(entry, context);
3555
+ const de_CreateEventDataStoreResponse = (output, context) => {
3556
+ return take(output, {
3557
+ AdvancedEventSelectors: _json,
3558
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3559
+ EventDataStoreArn: __expectString,
3560
+ KmsKeyId: __expectString,
3561
+ MultiRegionEnabled: __expectBoolean,
3562
+ Name: __expectString,
3563
+ OrganizationEnabled: __expectBoolean,
3564
+ RetentionPeriod: __expectInt32,
3565
+ Status: __expectString,
3566
+ TagsList: _json,
3567
+ TerminationProtectionEnabled: __expectBoolean,
3568
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4986
3569
  });
4987
- return retVal;
4988
3570
  };
4989
- const de_Query = (output, context) => {
4990
- return {
4991
- CreationTime: output.CreationTime != null
4992
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4993
- : undefined,
4994
- QueryId: __expectString(output.QueryId),
4995
- QueryStatus: __expectString(output.QueryStatus),
4996
- };
3571
+ const de_DescribeQueryResponse = (output, context) => {
3572
+ return take(output, {
3573
+ DeliveryS3Uri: __expectString,
3574
+ DeliveryStatus: __expectString,
3575
+ ErrorMessage: __expectString,
3576
+ QueryId: __expectString,
3577
+ QueryStatistics: (_) => de_QueryStatisticsForDescribeQuery(_, context),
3578
+ QueryStatus: __expectString,
3579
+ QueryString: __expectString,
3580
+ });
4997
3581
  };
4998
- const de_QueryIdNotFoundException = (output, context) => {
4999
- return {
5000
- Message: __expectString(output.Message),
5001
- };
3582
+ const de_Event = (output, context) => {
3583
+ return take(output, {
3584
+ AccessKeyId: __expectString,
3585
+ CloudTrailEvent: __expectString,
3586
+ EventId: __expectString,
3587
+ EventName: __expectString,
3588
+ EventSource: __expectString,
3589
+ EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3590
+ ReadOnly: __expectString,
3591
+ Resources: _json,
3592
+ Username: __expectString,
3593
+ });
5002
3594
  };
5003
- const de_QueryResultColumn = (output, context) => {
5004
- return Object.entries(output).reduce((acc, [key, value]) => {
5005
- if (value === null) {
5006
- return acc;
5007
- }
5008
- acc[key] = __expectString(value);
5009
- return acc;
5010
- }, {});
3595
+ const de_EventDataStore = (output, context) => {
3596
+ return take(output, {
3597
+ AdvancedEventSelectors: _json,
3598
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3599
+ EventDataStoreArn: __expectString,
3600
+ MultiRegionEnabled: __expectBoolean,
3601
+ Name: __expectString,
3602
+ OrganizationEnabled: __expectBoolean,
3603
+ RetentionPeriod: __expectInt32,
3604
+ Status: __expectString,
3605
+ TerminationProtectionEnabled: __expectBoolean,
3606
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3607
+ });
5011
3608
  };
5012
- const de_QueryResultRow = (output, context) => {
3609
+ const de_EventDataStores = (output, context) => {
5013
3610
  const retVal = (output || [])
5014
3611
  .filter((e) => e != null)
5015
3612
  .map((entry) => {
5016
- if (entry === null) {
5017
- return null;
5018
- }
5019
- return de_QueryResultColumn(entry, context);
3613
+ return de_EventDataStore(entry, context);
5020
3614
  });
5021
3615
  return retVal;
5022
3616
  };
5023
- const de_QueryResultRows = (output, context) => {
3617
+ const de_EventsList = (output, context) => {
5024
3618
  const retVal = (output || [])
5025
3619
  .filter((e) => e != null)
5026
3620
  .map((entry) => {
5027
- if (entry === null) {
5028
- return null;
5029
- }
5030
- return de_QueryResultRow(entry, context);
3621
+ return de_Event(entry, context);
5031
3622
  });
5032
3623
  return retVal;
5033
3624
  };
5034
- const de_QueryStatistics = (output, context) => {
5035
- return {
5036
- BytesScanned: __expectLong(output.BytesScanned),
5037
- ResultsCount: __expectInt32(output.ResultsCount),
5038
- TotalResultsCount: __expectInt32(output.TotalResultsCount),
5039
- };
5040
- };
5041
- const de_QueryStatisticsForDescribeQuery = (output, context) => {
5042
- return {
5043
- BytesScanned: __expectLong(output.BytesScanned),
5044
- CreationTime: output.CreationTime != null
5045
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5046
- : undefined,
5047
- EventsMatched: __expectLong(output.EventsMatched),
5048
- EventsScanned: __expectLong(output.EventsScanned),
5049
- ExecutionTimeInMillis: __expectInt32(output.ExecutionTimeInMillis),
5050
- };
5051
- };
5052
- const de_RegisterOrganizationDelegatedAdminResponse = (output, context) => {
5053
- return {};
3625
+ const de_GetChannelResponse = (output, context) => {
3626
+ return take(output, {
3627
+ ChannelArn: __expectString,
3628
+ Destinations: _json,
3629
+ IngestionStatus: (_) => de_IngestionStatus(_, context),
3630
+ Name: __expectString,
3631
+ Source: __expectString,
3632
+ SourceConfig: _json,
3633
+ });
5054
3634
  };
5055
- const de_RemoveTagsResponse = (output, context) => {
5056
- return {};
3635
+ const de_GetEventDataStoreResponse = (output, context) => {
3636
+ return take(output, {
3637
+ AdvancedEventSelectors: _json,
3638
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3639
+ EventDataStoreArn: __expectString,
3640
+ KmsKeyId: __expectString,
3641
+ MultiRegionEnabled: __expectBoolean,
3642
+ Name: __expectString,
3643
+ OrganizationEnabled: __expectBoolean,
3644
+ RetentionPeriod: __expectInt32,
3645
+ Status: __expectString,
3646
+ TerminationProtectionEnabled: __expectBoolean,
3647
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3648
+ });
5057
3649
  };
5058
- const de_Resource = (output, context) => {
5059
- return {
5060
- ResourceName: __expectString(output.ResourceName),
5061
- ResourceType: __expectString(output.ResourceType),
5062
- };
3650
+ const de_GetImportResponse = (output, context) => {
3651
+ return take(output, {
3652
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3653
+ Destinations: _json,
3654
+ EndEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3655
+ ImportId: __expectString,
3656
+ ImportSource: _json,
3657
+ ImportStatistics: _json,
3658
+ ImportStatus: __expectString,
3659
+ StartEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3660
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3661
+ });
5063
3662
  };
5064
- const de_ResourceARNNotValidException = (output, context) => {
5065
- return {
5066
- Message: __expectString(output.Message),
5067
- };
3663
+ const de_GetTrailStatusResponse = (output, context) => {
3664
+ return take(output, {
3665
+ IsLogging: __expectBoolean,
3666
+ LatestCloudWatchLogsDeliveryError: __expectString,
3667
+ LatestCloudWatchLogsDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3668
+ LatestDeliveryAttemptSucceeded: __expectString,
3669
+ LatestDeliveryAttemptTime: __expectString,
3670
+ LatestDeliveryError: __expectString,
3671
+ LatestDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3672
+ LatestDigestDeliveryError: __expectString,
3673
+ LatestDigestDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3674
+ LatestNotificationAttemptSucceeded: __expectString,
3675
+ LatestNotificationAttemptTime: __expectString,
3676
+ LatestNotificationError: __expectString,
3677
+ LatestNotificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3678
+ StartLoggingTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3679
+ StopLoggingTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3680
+ TimeLoggingStarted: __expectString,
3681
+ TimeLoggingStopped: __expectString,
3682
+ });
5068
3683
  };
5069
- const de_ResourceList = (output, context) => {
3684
+ const de_ImportFailureList = (output, context) => {
5070
3685
  const retVal = (output || [])
5071
3686
  .filter((e) => e != null)
5072
3687
  .map((entry) => {
5073
- if (entry === null) {
5074
- return null;
5075
- }
5076
- return de_Resource(entry, context);
3688
+ return de_ImportFailureListItem(entry, context);
5077
3689
  });
5078
3690
  return retVal;
5079
3691
  };
5080
- const de_ResourceNotFoundException = (output, context) => {
5081
- return {
5082
- Message: __expectString(output.Message),
5083
- };
5084
- };
5085
- const de_ResourcePolicyNotFoundException = (output, context) => {
5086
- return {
5087
- Message: __expectString(output.Message),
5088
- };
5089
- };
5090
- const de_ResourcePolicyNotValidException = (output, context) => {
5091
- return {
5092
- Message: __expectString(output.Message),
5093
- };
5094
- };
5095
- const de_ResourceTag = (output, context) => {
5096
- return {
5097
- ResourceId: __expectString(output.ResourceId),
5098
- TagsList: output.TagsList != null ? de_TagsList(output.TagsList, context) : undefined,
5099
- };
3692
+ const de_ImportFailureListItem = (output, context) => {
3693
+ return take(output, {
3694
+ ErrorMessage: __expectString,
3695
+ ErrorType: __expectString,
3696
+ LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3697
+ Location: __expectString,
3698
+ Status: __expectString,
3699
+ });
5100
3700
  };
5101
- const de_ResourceTagList = (output, context) => {
3701
+ const de_ImportsList = (output, context) => {
5102
3702
  const retVal = (output || [])
5103
3703
  .filter((e) => e != null)
5104
3704
  .map((entry) => {
5105
- if (entry === null) {
5106
- return null;
5107
- }
5108
- return de_ResourceTag(entry, context);
3705
+ return de_ImportsListItem(entry, context);
5109
3706
  });
5110
3707
  return retVal;
5111
3708
  };
5112
- const de_ResourceTypeNotSupportedException = (output, context) => {
5113
- return {
5114
- Message: __expectString(output.Message),
5115
- };
5116
- };
5117
- const de_RestoreEventDataStoreResponse = (output, context) => {
5118
- return {
5119
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5120
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5121
- : undefined,
5122
- CreatedTimestamp: output.CreatedTimestamp != null
5123
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
5124
- : undefined,
5125
- EventDataStoreArn: __expectString(output.EventDataStoreArn),
5126
- KmsKeyId: __expectString(output.KmsKeyId),
5127
- MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
5128
- Name: __expectString(output.Name),
5129
- OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
5130
- RetentionPeriod: __expectInt32(output.RetentionPeriod),
5131
- Status: __expectString(output.Status),
5132
- TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
5133
- UpdatedTimestamp: output.UpdatedTimestamp != null
5134
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
5135
- : undefined,
5136
- };
5137
- };
5138
- const de_S3BucketDoesNotExistException = (output, context) => {
5139
- return {
5140
- Message: __expectString(output.Message),
5141
- };
5142
- };
5143
- const de_S3ImportSource = (output, context) => {
5144
- return {
5145
- S3BucketAccessRoleArn: __expectString(output.S3BucketAccessRoleArn),
5146
- S3BucketRegion: __expectString(output.S3BucketRegion),
5147
- S3LocationUri: __expectString(output.S3LocationUri),
5148
- };
3709
+ const de_ImportsListItem = (output, context) => {
3710
+ return take(output, {
3711
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3712
+ Destinations: _json,
3713
+ ImportId: __expectString,
3714
+ ImportStatus: __expectString,
3715
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3716
+ });
5149
3717
  };
5150
- const de_SourceConfig = (output, context) => {
5151
- return {
5152
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5153
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5154
- : undefined,
5155
- ApplyToAllRegions: __expectBoolean(output.ApplyToAllRegions),
5156
- };
3718
+ const de_IngestionStatus = (output, context) => {
3719
+ return take(output, {
3720
+ LatestIngestionAttemptEventID: __expectString,
3721
+ LatestIngestionAttemptTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3722
+ LatestIngestionErrorCode: __expectString,
3723
+ LatestIngestionSuccessEventID: __expectString,
3724
+ LatestIngestionSuccessTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3725
+ });
5157
3726
  };
5158
- const de_StartImportResponse = (output, context) => {
5159
- return {
5160
- CreatedTimestamp: output.CreatedTimestamp != null
5161
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
5162
- : undefined,
5163
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
5164
- EndEventTime: output.EndEventTime != null
5165
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndEventTime)))
5166
- : undefined,
5167
- ImportId: __expectString(output.ImportId),
5168
- ImportSource: output.ImportSource != null ? de_ImportSource(output.ImportSource, context) : undefined,
5169
- ImportStatus: __expectString(output.ImportStatus),
5170
- StartEventTime: output.StartEventTime != null
5171
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartEventTime)))
5172
- : undefined,
5173
- UpdatedTimestamp: output.UpdatedTimestamp != null
5174
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
5175
- : undefined,
5176
- };
3727
+ const de_ListEventDataStoresResponse = (output, context) => {
3728
+ return take(output, {
3729
+ EventDataStores: (_) => de_EventDataStores(_, context),
3730
+ NextToken: __expectString,
3731
+ });
5177
3732
  };
5178
- const de_StartLoggingResponse = (output, context) => {
5179
- return {};
3733
+ const de_ListImportFailuresResponse = (output, context) => {
3734
+ return take(output, {
3735
+ Failures: (_) => de_ImportFailureList(_, context),
3736
+ NextToken: __expectString,
3737
+ });
5180
3738
  };
5181
- const de_StartQueryResponse = (output, context) => {
5182
- return {
5183
- QueryId: __expectString(output.QueryId),
5184
- };
3739
+ const de_ListImportsResponse = (output, context) => {
3740
+ return take(output, {
3741
+ Imports: (_) => de_ImportsList(_, context),
3742
+ NextToken: __expectString,
3743
+ });
5185
3744
  };
5186
- const de_StopImportResponse = (output, context) => {
5187
- return {
5188
- CreatedTimestamp: output.CreatedTimestamp != null
5189
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
5190
- : undefined,
5191
- Destinations: output.Destinations != null ? de_ImportDestinations(output.Destinations, context) : undefined,
5192
- EndEventTime: output.EndEventTime != null
5193
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndEventTime)))
5194
- : undefined,
5195
- ImportId: __expectString(output.ImportId),
5196
- ImportSource: output.ImportSource != null ? de_ImportSource(output.ImportSource, context) : undefined,
5197
- ImportStatistics: output.ImportStatistics != null ? de_ImportStatistics(output.ImportStatistics, context) : undefined,
5198
- ImportStatus: __expectString(output.ImportStatus),
5199
- StartEventTime: output.StartEventTime != null
5200
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartEventTime)))
5201
- : undefined,
5202
- UpdatedTimestamp: output.UpdatedTimestamp != null
5203
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
5204
- : undefined,
5205
- };
3745
+ const de_ListPublicKeysResponse = (output, context) => {
3746
+ return take(output, {
3747
+ NextToken: __expectString,
3748
+ PublicKeyList: (_) => de_PublicKeyList(_, context),
3749
+ });
5206
3750
  };
5207
- const de_StopLoggingResponse = (output, context) => {
5208
- return {};
3751
+ const de_ListQueriesResponse = (output, context) => {
3752
+ return take(output, {
3753
+ NextToken: __expectString,
3754
+ Queries: (_) => de_Queries(_, context),
3755
+ });
5209
3756
  };
5210
- const de_Tag = (output, context) => {
5211
- return {
5212
- Key: __expectString(output.Key),
5213
- Value: __expectString(output.Value),
5214
- };
3757
+ const de_LookupEventsResponse = (output, context) => {
3758
+ return take(output, {
3759
+ Events: (_) => de_EventsList(_, context),
3760
+ NextToken: __expectString,
3761
+ });
5215
3762
  };
5216
- const de_TagsLimitExceededException = (output, context) => {
5217
- return {
5218
- Message: __expectString(output.Message),
5219
- };
3763
+ const de_PublicKey = (output, context) => {
3764
+ return take(output, {
3765
+ Fingerprint: __expectString,
3766
+ ValidityEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3767
+ ValidityStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3768
+ Value: context.base64Decoder,
3769
+ });
5220
3770
  };
5221
- const de_TagsList = (output, context) => {
3771
+ const de_PublicKeyList = (output, context) => {
5222
3772
  const retVal = (output || [])
5223
3773
  .filter((e) => e != null)
5224
3774
  .map((entry) => {
5225
- if (entry === null) {
5226
- return null;
5227
- }
5228
- return de_Tag(entry, context);
3775
+ return de_PublicKey(entry, context);
5229
3776
  });
5230
3777
  return retVal;
5231
3778
  };
5232
- const de_Trail = (output, context) => {
5233
- return {
5234
- CloudWatchLogsLogGroupArn: __expectString(output.CloudWatchLogsLogGroupArn),
5235
- CloudWatchLogsRoleArn: __expectString(output.CloudWatchLogsRoleArn),
5236
- HasCustomEventSelectors: __expectBoolean(output.HasCustomEventSelectors),
5237
- HasInsightSelectors: __expectBoolean(output.HasInsightSelectors),
5238
- HomeRegion: __expectString(output.HomeRegion),
5239
- IncludeGlobalServiceEvents: __expectBoolean(output.IncludeGlobalServiceEvents),
5240
- IsMultiRegionTrail: __expectBoolean(output.IsMultiRegionTrail),
5241
- IsOrganizationTrail: __expectBoolean(output.IsOrganizationTrail),
5242
- KmsKeyId: __expectString(output.KmsKeyId),
5243
- LogFileValidationEnabled: __expectBoolean(output.LogFileValidationEnabled),
5244
- Name: __expectString(output.Name),
5245
- S3BucketName: __expectString(output.S3BucketName),
5246
- S3KeyPrefix: __expectString(output.S3KeyPrefix),
5247
- SnsTopicARN: __expectString(output.SnsTopicARN),
5248
- SnsTopicName: __expectString(output.SnsTopicName),
5249
- TrailARN: __expectString(output.TrailARN),
5250
- };
5251
- };
5252
- const de_TrailAlreadyExistsException = (output, context) => {
5253
- return {
5254
- Message: __expectString(output.Message),
5255
- };
5256
- };
5257
- const de_TrailInfo = (output, context) => {
5258
- return {
5259
- HomeRegion: __expectString(output.HomeRegion),
5260
- Name: __expectString(output.Name),
5261
- TrailARN: __expectString(output.TrailARN),
5262
- };
5263
- };
5264
- const de_TrailList = (output, context) => {
3779
+ const de_Queries = (output, context) => {
5265
3780
  const retVal = (output || [])
5266
3781
  .filter((e) => e != null)
5267
3782
  .map((entry) => {
5268
- if (entry === null) {
5269
- return null;
5270
- }
5271
- return de_Trail(entry, context);
3783
+ return de_Query(entry, context);
5272
3784
  });
5273
3785
  return retVal;
5274
3786
  };
5275
- const de_TrailNotFoundException = (output, context) => {
5276
- return {
5277
- Message: __expectString(output.Message),
5278
- };
3787
+ const de_Query = (output, context) => {
3788
+ return take(output, {
3789
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3790
+ QueryId: __expectString,
3791
+ QueryStatus: __expectString,
3792
+ });
5279
3793
  };
5280
- const de_TrailNotProvidedException = (output, context) => {
5281
- return {
5282
- Message: __expectString(output.Message),
5283
- };
3794
+ const de_QueryStatisticsForDescribeQuery = (output, context) => {
3795
+ return take(output, {
3796
+ BytesScanned: __expectLong,
3797
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3798
+ EventsMatched: __expectLong,
3799
+ EventsScanned: __expectLong,
3800
+ ExecutionTimeInMillis: __expectInt32,
3801
+ });
5284
3802
  };
5285
- const de_Trails = (output, context) => {
5286
- const retVal = (output || [])
5287
- .filter((e) => e != null)
5288
- .map((entry) => {
5289
- if (entry === null) {
5290
- return null;
5291
- }
5292
- return de_TrailInfo(entry, context);
3803
+ const de_RestoreEventDataStoreResponse = (output, context) => {
3804
+ return take(output, {
3805
+ AdvancedEventSelectors: _json,
3806
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3807
+ EventDataStoreArn: __expectString,
3808
+ KmsKeyId: __expectString,
3809
+ MultiRegionEnabled: __expectBoolean,
3810
+ Name: __expectString,
3811
+ OrganizationEnabled: __expectBoolean,
3812
+ RetentionPeriod: __expectInt32,
3813
+ Status: __expectString,
3814
+ TerminationProtectionEnabled: __expectBoolean,
3815
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5293
3816
  });
5294
- return retVal;
5295
3817
  };
5296
- const de_UnsupportedOperationException = (output, context) => {
5297
- return {
5298
- Message: __expectString(output.Message),
5299
- };
3818
+ const de_StartImportResponse = (output, context) => {
3819
+ return take(output, {
3820
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3821
+ Destinations: _json,
3822
+ EndEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3823
+ ImportId: __expectString,
3824
+ ImportSource: _json,
3825
+ ImportStatus: __expectString,
3826
+ StartEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3827
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3828
+ });
5300
3829
  };
5301
- const de_UpdateChannelResponse = (output, context) => {
5302
- return {
5303
- ChannelArn: __expectString(output.ChannelArn),
5304
- Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
5305
- Name: __expectString(output.Name),
5306
- Source: __expectString(output.Source),
5307
- };
3830
+ const de_StopImportResponse = (output, context) => {
3831
+ return take(output, {
3832
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3833
+ Destinations: _json,
3834
+ EndEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3835
+ ImportId: __expectString,
3836
+ ImportSource: _json,
3837
+ ImportStatistics: _json,
3838
+ ImportStatus: __expectString,
3839
+ StartEventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3840
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3841
+ });
5308
3842
  };
5309
3843
  const de_UpdateEventDataStoreResponse = (output, context) => {
5310
- return {
5311
- AdvancedEventSelectors: output.AdvancedEventSelectors != null
5312
- ? de_AdvancedEventSelectors(output.AdvancedEventSelectors, context)
5313
- : undefined,
5314
- CreatedTimestamp: output.CreatedTimestamp != null
5315
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
5316
- : undefined,
5317
- EventDataStoreArn: __expectString(output.EventDataStoreArn),
5318
- KmsKeyId: __expectString(output.KmsKeyId),
5319
- MultiRegionEnabled: __expectBoolean(output.MultiRegionEnabled),
5320
- Name: __expectString(output.Name),
5321
- OrganizationEnabled: __expectBoolean(output.OrganizationEnabled),
5322
- RetentionPeriod: __expectInt32(output.RetentionPeriod),
5323
- Status: __expectString(output.Status),
5324
- TerminationProtectionEnabled: __expectBoolean(output.TerminationProtectionEnabled),
5325
- UpdatedTimestamp: output.UpdatedTimestamp != null
5326
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedTimestamp)))
5327
- : undefined,
5328
- };
5329
- };
5330
- const de_UpdateTrailResponse = (output, context) => {
5331
- return {
5332
- CloudWatchLogsLogGroupArn: __expectString(output.CloudWatchLogsLogGroupArn),
5333
- CloudWatchLogsRoleArn: __expectString(output.CloudWatchLogsRoleArn),
5334
- IncludeGlobalServiceEvents: __expectBoolean(output.IncludeGlobalServiceEvents),
5335
- IsMultiRegionTrail: __expectBoolean(output.IsMultiRegionTrail),
5336
- IsOrganizationTrail: __expectBoolean(output.IsOrganizationTrail),
5337
- KmsKeyId: __expectString(output.KmsKeyId),
5338
- LogFileValidationEnabled: __expectBoolean(output.LogFileValidationEnabled),
5339
- Name: __expectString(output.Name),
5340
- S3BucketName: __expectString(output.S3BucketName),
5341
- S3KeyPrefix: __expectString(output.S3KeyPrefix),
5342
- SnsTopicARN: __expectString(output.SnsTopicARN),
5343
- SnsTopicName: __expectString(output.SnsTopicName),
5344
- TrailARN: __expectString(output.TrailARN),
5345
- };
3844
+ return take(output, {
3845
+ AdvancedEventSelectors: _json,
3846
+ CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3847
+ EventDataStoreArn: __expectString,
3848
+ KmsKeyId: __expectString,
3849
+ MultiRegionEnabled: __expectBoolean,
3850
+ Name: __expectString,
3851
+ OrganizationEnabled: __expectBoolean,
3852
+ RetentionPeriod: __expectInt32,
3853
+ Status: __expectString,
3854
+ TerminationProtectionEnabled: __expectBoolean,
3855
+ UpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3856
+ });
5346
3857
  };
5347
3858
  const deserializeMetadata = (output) => ({
5348
3859
  httpStatusCode: output.statusCode,
@@ -5357,6 +3868,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5357
3868
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5358
3869
  };
5359
3870
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3871
+ const throwDefaultError = withBaseException(__BaseException);
5360
3872
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5361
3873
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5362
3874
  const contents = {