@aws-sdk/client-cloudtrail 3.310.0 → 3.315.0

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