@aws-sdk/client-cloudwatch-events 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,259 +10,259 @@ const models_0_1 = require("../models/models_0");
10
10
  const se_ActivateEventSourceCommand = async (input, context) => {
11
11
  const headers = sharedHeaders("ActivateEventSource");
12
12
  let body;
13
- body = JSON.stringify(se_ActivateEventSourceRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
16
  exports.se_ActivateEventSourceCommand = se_ActivateEventSourceCommand;
17
17
  const se_CancelReplayCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CancelReplay");
19
19
  let body;
20
- body = JSON.stringify(se_CancelReplayRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_CancelReplayCommand = se_CancelReplayCommand;
24
24
  const se_CreateApiDestinationCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("CreateApiDestination");
26
26
  let body;
27
- body = JSON.stringify(se_CreateApiDestinationRequest(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  exports.se_CreateApiDestinationCommand = se_CreateApiDestinationCommand;
31
31
  const se_CreateArchiveCommand = async (input, context) => {
32
32
  const headers = sharedHeaders("CreateArchive");
33
33
  let body;
34
- body = JSON.stringify(se_CreateArchiveRequest(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
37
  exports.se_CreateArchiveCommand = se_CreateArchiveCommand;
38
38
  const se_CreateConnectionCommand = async (input, context) => {
39
39
  const headers = sharedHeaders("CreateConnection");
40
40
  let body;
41
- body = JSON.stringify(se_CreateConnectionRequest(input, context));
41
+ body = JSON.stringify((0, smithy_client_1._json)(input));
42
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
43
  };
44
44
  exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
45
45
  const se_CreateEventBusCommand = async (input, context) => {
46
46
  const headers = sharedHeaders("CreateEventBus");
47
47
  let body;
48
- body = JSON.stringify(se_CreateEventBusRequest(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
51
  exports.se_CreateEventBusCommand = se_CreateEventBusCommand;
52
52
  const se_CreatePartnerEventSourceCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("CreatePartnerEventSource");
54
54
  let body;
55
- body = JSON.stringify(se_CreatePartnerEventSourceRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_CreatePartnerEventSourceCommand = se_CreatePartnerEventSourceCommand;
59
59
  const se_DeactivateEventSourceCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DeactivateEventSource");
61
61
  let body;
62
- body = JSON.stringify(se_DeactivateEventSourceRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_DeactivateEventSourceCommand = se_DeactivateEventSourceCommand;
66
66
  const se_DeauthorizeConnectionCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("DeauthorizeConnection");
68
68
  let body;
69
- body = JSON.stringify(se_DeauthorizeConnectionRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_DeauthorizeConnectionCommand = se_DeauthorizeConnectionCommand;
73
73
  const se_DeleteApiDestinationCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("DeleteApiDestination");
75
75
  let body;
76
- body = JSON.stringify(se_DeleteApiDestinationRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_DeleteApiDestinationCommand = se_DeleteApiDestinationCommand;
80
80
  const se_DeleteArchiveCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("DeleteArchive");
82
82
  let body;
83
- body = JSON.stringify(se_DeleteArchiveRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_DeleteArchiveCommand = se_DeleteArchiveCommand;
87
87
  const se_DeleteConnectionCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("DeleteConnection");
89
89
  let body;
90
- body = JSON.stringify(se_DeleteConnectionRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
94
94
  const se_DeleteEventBusCommand = async (input, context) => {
95
95
  const headers = sharedHeaders("DeleteEventBus");
96
96
  let body;
97
- body = JSON.stringify(se_DeleteEventBusRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
98
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
99
  };
100
100
  exports.se_DeleteEventBusCommand = se_DeleteEventBusCommand;
101
101
  const se_DeletePartnerEventSourceCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("DeletePartnerEventSource");
103
103
  let body;
104
- body = JSON.stringify(se_DeletePartnerEventSourceRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_DeletePartnerEventSourceCommand = se_DeletePartnerEventSourceCommand;
108
108
  const se_DeleteRuleCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DeleteRule");
110
110
  let body;
111
- body = JSON.stringify(se_DeleteRuleRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
115
115
  const se_DescribeApiDestinationCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("DescribeApiDestination");
117
117
  let body;
118
- body = JSON.stringify(se_DescribeApiDestinationRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_DescribeApiDestinationCommand = se_DescribeApiDestinationCommand;
122
122
  const se_DescribeArchiveCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("DescribeArchive");
124
124
  let body;
125
- body = JSON.stringify(se_DescribeArchiveRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_DescribeArchiveCommand = se_DescribeArchiveCommand;
129
129
  const se_DescribeConnectionCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("DescribeConnection");
131
131
  let body;
132
- body = JSON.stringify(se_DescribeConnectionRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_DescribeConnectionCommand = se_DescribeConnectionCommand;
136
136
  const se_DescribeEventBusCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("DescribeEventBus");
138
138
  let body;
139
- body = JSON.stringify(se_DescribeEventBusRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_DescribeEventBusCommand = se_DescribeEventBusCommand;
143
143
  const se_DescribeEventSourceCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("DescribeEventSource");
145
145
  let body;
146
- body = JSON.stringify(se_DescribeEventSourceRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_DescribeEventSourceCommand = se_DescribeEventSourceCommand;
150
150
  const se_DescribePartnerEventSourceCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DescribePartnerEventSource");
152
152
  let body;
153
- body = JSON.stringify(se_DescribePartnerEventSourceRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_DescribePartnerEventSourceCommand = se_DescribePartnerEventSourceCommand;
157
157
  const se_DescribeReplayCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("DescribeReplay");
159
159
  let body;
160
- body = JSON.stringify(se_DescribeReplayRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_DescribeReplayCommand = se_DescribeReplayCommand;
164
164
  const se_DescribeRuleCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("DescribeRule");
166
166
  let body;
167
- body = JSON.stringify(se_DescribeRuleRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_DescribeRuleCommand = se_DescribeRuleCommand;
171
171
  const se_DisableRuleCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("DisableRule");
173
173
  let body;
174
- body = JSON.stringify(se_DisableRuleRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_DisableRuleCommand = se_DisableRuleCommand;
178
178
  const se_EnableRuleCommand = async (input, context) => {
179
179
  const headers = sharedHeaders("EnableRule");
180
180
  let body;
181
- body = JSON.stringify(se_EnableRuleRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
182
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
183
  };
184
184
  exports.se_EnableRuleCommand = se_EnableRuleCommand;
185
185
  const se_ListApiDestinationsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("ListApiDestinations");
187
187
  let body;
188
- body = JSON.stringify(se_ListApiDestinationsRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_ListApiDestinationsCommand = se_ListApiDestinationsCommand;
192
192
  const se_ListArchivesCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("ListArchives");
194
194
  let body;
195
- body = JSON.stringify(se_ListArchivesRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_ListArchivesCommand = se_ListArchivesCommand;
199
199
  const se_ListConnectionsCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("ListConnections");
201
201
  let body;
202
- body = JSON.stringify(se_ListConnectionsRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_ListConnectionsCommand = se_ListConnectionsCommand;
206
206
  const se_ListEventBusesCommand = async (input, context) => {
207
207
  const headers = sharedHeaders("ListEventBuses");
208
208
  let body;
209
- body = JSON.stringify(se_ListEventBusesRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
210
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
211
  };
212
212
  exports.se_ListEventBusesCommand = se_ListEventBusesCommand;
213
213
  const se_ListEventSourcesCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("ListEventSources");
215
215
  let body;
216
- body = JSON.stringify(se_ListEventSourcesRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_ListEventSourcesCommand = se_ListEventSourcesCommand;
220
220
  const se_ListPartnerEventSourceAccountsCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("ListPartnerEventSourceAccounts");
222
222
  let body;
223
- body = JSON.stringify(se_ListPartnerEventSourceAccountsRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_ListPartnerEventSourceAccountsCommand = se_ListPartnerEventSourceAccountsCommand;
227
227
  const se_ListPartnerEventSourcesCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("ListPartnerEventSources");
229
229
  let body;
230
- body = JSON.stringify(se_ListPartnerEventSourcesRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_ListPartnerEventSourcesCommand = se_ListPartnerEventSourcesCommand;
234
234
  const se_ListReplaysCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("ListReplays");
236
236
  let body;
237
- body = JSON.stringify(se_ListReplaysRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  exports.se_ListReplaysCommand = se_ListReplaysCommand;
241
241
  const se_ListRuleNamesByTargetCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("ListRuleNamesByTarget");
243
243
  let body;
244
- body = JSON.stringify(se_ListRuleNamesByTargetRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_ListRuleNamesByTargetCommand = se_ListRuleNamesByTargetCommand;
248
248
  const se_ListRulesCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("ListRules");
250
250
  let body;
251
- body = JSON.stringify(se_ListRulesRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_ListRulesCommand = se_ListRulesCommand;
255
255
  const se_ListTagsForResourceCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("ListTagsForResource");
257
257
  let body;
258
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
262
262
  const se_ListTargetsByRuleCommand = async (input, context) => {
263
263
  const headers = sharedHeaders("ListTargetsByRule");
264
264
  let body;
265
- body = JSON.stringify(se_ListTargetsByRuleRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
267
  };
268
268
  exports.se_ListTargetsByRuleCommand = se_ListTargetsByRuleCommand;
@@ -283,35 +283,35 @@ exports.se_PutPartnerEventsCommand = se_PutPartnerEventsCommand;
283
283
  const se_PutPermissionCommand = async (input, context) => {
284
284
  const headers = sharedHeaders("PutPermission");
285
285
  let body;
286
- body = JSON.stringify(se_PutPermissionRequest(input, context));
286
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
288
  };
289
289
  exports.se_PutPermissionCommand = se_PutPermissionCommand;
290
290
  const se_PutRuleCommand = async (input, context) => {
291
291
  const headers = sharedHeaders("PutRule");
292
292
  let body;
293
- body = JSON.stringify(se_PutRuleRequest(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
296
  exports.se_PutRuleCommand = se_PutRuleCommand;
297
297
  const se_PutTargetsCommand = async (input, context) => {
298
298
  const headers = sharedHeaders("PutTargets");
299
299
  let body;
300
- body = JSON.stringify(se_PutTargetsRequest(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
301
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
302
  };
303
303
  exports.se_PutTargetsCommand = se_PutTargetsCommand;
304
304
  const se_RemovePermissionCommand = async (input, context) => {
305
305
  const headers = sharedHeaders("RemovePermission");
306
306
  let body;
307
- body = JSON.stringify(se_RemovePermissionRequest(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
308
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
309
  };
310
310
  exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
311
311
  const se_RemoveTargetsCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("RemoveTargets");
313
313
  let body;
314
- body = JSON.stringify(se_RemoveTargetsRequest(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  exports.se_RemoveTargetsCommand = se_RemoveTargetsCommand;
@@ -325,42 +325,42 @@ exports.se_StartReplayCommand = se_StartReplayCommand;
325
325
  const se_TagResourceCommand = async (input, context) => {
326
326
  const headers = sharedHeaders("TagResource");
327
327
  let body;
328
- body = JSON.stringify(se_TagResourceRequest(input, context));
328
+ body = JSON.stringify((0, smithy_client_1._json)(input));
329
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
330
  };
331
331
  exports.se_TagResourceCommand = se_TagResourceCommand;
332
332
  const se_TestEventPatternCommand = async (input, context) => {
333
333
  const headers = sharedHeaders("TestEventPattern");
334
334
  let body;
335
- body = JSON.stringify(se_TestEventPatternRequest(input, context));
335
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
337
  };
338
338
  exports.se_TestEventPatternCommand = se_TestEventPatternCommand;
339
339
  const se_UntagResourceCommand = async (input, context) => {
340
340
  const headers = sharedHeaders("UntagResource");
341
341
  let body;
342
- body = JSON.stringify(se_UntagResourceRequest(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
343
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
344
  };
345
345
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
346
346
  const se_UpdateApiDestinationCommand = async (input, context) => {
347
347
  const headers = sharedHeaders("UpdateApiDestination");
348
348
  let body;
349
- body = JSON.stringify(se_UpdateApiDestinationRequest(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
350
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
351
  };
352
352
  exports.se_UpdateApiDestinationCommand = se_UpdateApiDestinationCommand;
353
353
  const se_UpdateArchiveCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("UpdateArchive");
355
355
  let body;
356
- body = JSON.stringify(se_UpdateArchiveRequest(input, context));
356
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  exports.se_UpdateArchiveCommand = se_UpdateArchiveCommand;
360
360
  const se_UpdateConnectionCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("UpdateConnection");
362
362
  let body;
363
- body = JSON.stringify(se_UpdateConnectionRequest(input, context));
363
+ body = JSON.stringify((0, smithy_client_1._json)(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
@@ -372,7 +372,7 @@ const de_ActivateEventSourceCommand = async (output, context) => {
372
372
  const response = {
373
373
  $metadata: deserializeMetadata(output),
374
374
  };
375
- return Promise.resolve(response);
375
+ return response;
376
376
  };
377
377
  exports.de_ActivateEventSourceCommand = de_ActivateEventSourceCommand;
378
378
  const de_ActivateEventSourceCommandError = async (output, context) => {
@@ -399,10 +399,9 @@ const de_ActivateEventSourceCommandError = async (output, context) => {
399
399
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
400
400
  default:
401
401
  const parsedBody = parsedOutput.body;
402
- (0, smithy_client_1.throwDefaultError)({
402
+ return throwDefaultError({
403
403
  output,
404
404
  parsedBody,
405
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
406
405
  errorCode,
407
406
  });
408
407
  }
@@ -413,12 +412,12 @@ const de_CancelReplayCommand = async (output, context) => {
413
412
  }
414
413
  const data = await parseBody(output.body, context);
415
414
  let contents = {};
416
- contents = de_CancelReplayResponse(data, context);
415
+ contents = (0, smithy_client_1._json)(data);
417
416
  const response = {
418
417
  $metadata: deserializeMetadata(output),
419
418
  ...contents,
420
419
  };
421
- return Promise.resolve(response);
420
+ return response;
422
421
  };
423
422
  exports.de_CancelReplayCommand = de_CancelReplayCommand;
424
423
  const de_CancelReplayCommandError = async (output, context) => {
@@ -442,10 +441,9 @@ const de_CancelReplayCommandError = async (output, context) => {
442
441
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
443
442
  default:
444
443
  const parsedBody = parsedOutput.body;
445
- (0, smithy_client_1.throwDefaultError)({
444
+ return throwDefaultError({
446
445
  output,
447
446
  parsedBody,
448
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
449
447
  errorCode,
450
448
  });
451
449
  }
@@ -461,7 +459,7 @@ const de_CreateApiDestinationCommand = async (output, context) => {
461
459
  $metadata: deserializeMetadata(output),
462
460
  ...contents,
463
461
  };
464
- return Promise.resolve(response);
462
+ return response;
465
463
  };
466
464
  exports.de_CreateApiDestinationCommand = de_CreateApiDestinationCommand;
467
465
  const de_CreateApiDestinationCommandError = async (output, context) => {
@@ -485,10 +483,9 @@ const de_CreateApiDestinationCommandError = async (output, context) => {
485
483
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
486
484
  default:
487
485
  const parsedBody = parsedOutput.body;
488
- (0, smithy_client_1.throwDefaultError)({
486
+ return throwDefaultError({
489
487
  output,
490
488
  parsedBody,
491
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
492
489
  errorCode,
493
490
  });
494
491
  }
@@ -504,7 +501,7 @@ const de_CreateArchiveCommand = async (output, context) => {
504
501
  $metadata: deserializeMetadata(output),
505
502
  ...contents,
506
503
  };
507
- return Promise.resolve(response);
504
+ return response;
508
505
  };
509
506
  exports.de_CreateArchiveCommand = de_CreateArchiveCommand;
510
507
  const de_CreateArchiveCommandError = async (output, context) => {
@@ -534,10 +531,9 @@ const de_CreateArchiveCommandError = async (output, context) => {
534
531
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
535
532
  default:
536
533
  const parsedBody = parsedOutput.body;
537
- (0, smithy_client_1.throwDefaultError)({
534
+ return throwDefaultError({
538
535
  output,
539
536
  parsedBody,
540
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
541
537
  errorCode,
542
538
  });
543
539
  }
@@ -553,7 +549,7 @@ const de_CreateConnectionCommand = async (output, context) => {
553
549
  $metadata: deserializeMetadata(output),
554
550
  ...contents,
555
551
  };
556
- return Promise.resolve(response);
552
+ return response;
557
553
  };
558
554
  exports.de_CreateConnectionCommand = de_CreateConnectionCommand;
559
555
  const de_CreateConnectionCommandError = async (output, context) => {
@@ -574,10 +570,9 @@ const de_CreateConnectionCommandError = async (output, context) => {
574
570
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
575
571
  default:
576
572
  const parsedBody = parsedOutput.body;
577
- (0, smithy_client_1.throwDefaultError)({
573
+ return throwDefaultError({
578
574
  output,
579
575
  parsedBody,
580
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
581
576
  errorCode,
582
577
  });
583
578
  }
@@ -588,12 +583,12 @@ const de_CreateEventBusCommand = async (output, context) => {
588
583
  }
589
584
  const data = await parseBody(output.body, context);
590
585
  let contents = {};
591
- contents = de_CreateEventBusResponse(data, context);
586
+ contents = (0, smithy_client_1._json)(data);
592
587
  const response = {
593
588
  $metadata: deserializeMetadata(output),
594
589
  ...contents,
595
590
  };
596
- return Promise.resolve(response);
591
+ return response;
597
592
  };
598
593
  exports.de_CreateEventBusCommand = de_CreateEventBusCommand;
599
594
  const de_CreateEventBusCommandError = async (output, context) => {
@@ -626,10 +621,9 @@ const de_CreateEventBusCommandError = async (output, context) => {
626
621
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
627
622
  default:
628
623
  const parsedBody = parsedOutput.body;
629
- (0, smithy_client_1.throwDefaultError)({
624
+ return throwDefaultError({
630
625
  output,
631
626
  parsedBody,
632
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
633
627
  errorCode,
634
628
  });
635
629
  }
@@ -640,12 +634,12 @@ const de_CreatePartnerEventSourceCommand = async (output, context) => {
640
634
  }
641
635
  const data = await parseBody(output.body, context);
642
636
  let contents = {};
643
- contents = de_CreatePartnerEventSourceResponse(data, context);
637
+ contents = (0, smithy_client_1._json)(data);
644
638
  const response = {
645
639
  $metadata: deserializeMetadata(output),
646
640
  ...contents,
647
641
  };
648
- return Promise.resolve(response);
642
+ return response;
649
643
  };
650
644
  exports.de_CreatePartnerEventSourceCommand = de_CreatePartnerEventSourceCommand;
651
645
  const de_CreatePartnerEventSourceCommandError = async (output, context) => {
@@ -672,10 +666,9 @@ const de_CreatePartnerEventSourceCommandError = async (output, context) => {
672
666
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
673
667
  default:
674
668
  const parsedBody = parsedOutput.body;
675
- (0, smithy_client_1.throwDefaultError)({
669
+ return throwDefaultError({
676
670
  output,
677
671
  parsedBody,
678
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
679
672
  errorCode,
680
673
  });
681
674
  }
@@ -688,7 +681,7 @@ const de_DeactivateEventSourceCommand = async (output, context) => {
688
681
  const response = {
689
682
  $metadata: deserializeMetadata(output),
690
683
  };
691
- return Promise.resolve(response);
684
+ return response;
692
685
  };
693
686
  exports.de_DeactivateEventSourceCommand = de_DeactivateEventSourceCommand;
694
687
  const de_DeactivateEventSourceCommandError = async (output, context) => {
@@ -715,10 +708,9 @@ const de_DeactivateEventSourceCommandError = async (output, context) => {
715
708
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
716
709
  default:
717
710
  const parsedBody = parsedOutput.body;
718
- (0, smithy_client_1.throwDefaultError)({
711
+ return throwDefaultError({
719
712
  output,
720
713
  parsedBody,
721
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
722
714
  errorCode,
723
715
  });
724
716
  }
@@ -734,7 +726,7 @@ const de_DeauthorizeConnectionCommand = async (output, context) => {
734
726
  $metadata: deserializeMetadata(output),
735
727
  ...contents,
736
728
  };
737
- return Promise.resolve(response);
729
+ return response;
738
730
  };
739
731
  exports.de_DeauthorizeConnectionCommand = de_DeauthorizeConnectionCommand;
740
732
  const de_DeauthorizeConnectionCommandError = async (output, context) => {
@@ -755,10 +747,9 @@ const de_DeauthorizeConnectionCommandError = async (output, context) => {
755
747
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
756
748
  default:
757
749
  const parsedBody = parsedOutput.body;
758
- (0, smithy_client_1.throwDefaultError)({
750
+ return throwDefaultError({
759
751
  output,
760
752
  parsedBody,
761
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
762
753
  errorCode,
763
754
  });
764
755
  }
@@ -769,12 +760,12 @@ const de_DeleteApiDestinationCommand = async (output, context) => {
769
760
  }
770
761
  const data = await parseBody(output.body, context);
771
762
  let contents = {};
772
- contents = de_DeleteApiDestinationResponse(data, context);
763
+ contents = (0, smithy_client_1._json)(data);
773
764
  const response = {
774
765
  $metadata: deserializeMetadata(output),
775
766
  ...contents,
776
767
  };
777
- return Promise.resolve(response);
768
+ return response;
778
769
  };
779
770
  exports.de_DeleteApiDestinationCommand = de_DeleteApiDestinationCommand;
780
771
  const de_DeleteApiDestinationCommandError = async (output, context) => {
@@ -795,10 +786,9 @@ const de_DeleteApiDestinationCommandError = async (output, context) => {
795
786
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
796
787
  default:
797
788
  const parsedBody = parsedOutput.body;
798
- (0, smithy_client_1.throwDefaultError)({
789
+ return throwDefaultError({
799
790
  output,
800
791
  parsedBody,
801
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
802
792
  errorCode,
803
793
  });
804
794
  }
@@ -809,12 +799,12 @@ const de_DeleteArchiveCommand = async (output, context) => {
809
799
  }
810
800
  const data = await parseBody(output.body, context);
811
801
  let contents = {};
812
- contents = de_DeleteArchiveResponse(data, context);
802
+ contents = (0, smithy_client_1._json)(data);
813
803
  const response = {
814
804
  $metadata: deserializeMetadata(output),
815
805
  ...contents,
816
806
  };
817
- return Promise.resolve(response);
807
+ return response;
818
808
  };
819
809
  exports.de_DeleteArchiveCommand = de_DeleteArchiveCommand;
820
810
  const de_DeleteArchiveCommandError = async (output, context) => {
@@ -835,10 +825,9 @@ const de_DeleteArchiveCommandError = async (output, context) => {
835
825
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
836
826
  default:
837
827
  const parsedBody = parsedOutput.body;
838
- (0, smithy_client_1.throwDefaultError)({
828
+ return throwDefaultError({
839
829
  output,
840
830
  parsedBody,
841
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
842
831
  errorCode,
843
832
  });
844
833
  }
@@ -854,7 +843,7 @@ const de_DeleteConnectionCommand = async (output, context) => {
854
843
  $metadata: deserializeMetadata(output),
855
844
  ...contents,
856
845
  };
857
- return Promise.resolve(response);
846
+ return response;
858
847
  };
859
848
  exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
860
849
  const de_DeleteConnectionCommandError = async (output, context) => {
@@ -875,10 +864,9 @@ const de_DeleteConnectionCommandError = async (output, context) => {
875
864
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
876
865
  default:
877
866
  const parsedBody = parsedOutput.body;
878
- (0, smithy_client_1.throwDefaultError)({
867
+ return throwDefaultError({
879
868
  output,
880
869
  parsedBody,
881
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
882
870
  errorCode,
883
871
  });
884
872
  }
@@ -891,7 +879,7 @@ const de_DeleteEventBusCommand = async (output, context) => {
891
879
  const response = {
892
880
  $metadata: deserializeMetadata(output),
893
881
  };
894
- return Promise.resolve(response);
882
+ return response;
895
883
  };
896
884
  exports.de_DeleteEventBusCommand = de_DeleteEventBusCommand;
897
885
  const de_DeleteEventBusCommandError = async (output, context) => {
@@ -909,10 +897,9 @@ const de_DeleteEventBusCommandError = async (output, context) => {
909
897
  throw await de_InternalExceptionRes(parsedOutput, context);
910
898
  default:
911
899
  const parsedBody = parsedOutput.body;
912
- (0, smithy_client_1.throwDefaultError)({
900
+ return throwDefaultError({
913
901
  output,
914
902
  parsedBody,
915
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
916
903
  errorCode,
917
904
  });
918
905
  }
@@ -925,7 +912,7 @@ const de_DeletePartnerEventSourceCommand = async (output, context) => {
925
912
  const response = {
926
913
  $metadata: deserializeMetadata(output),
927
914
  };
928
- return Promise.resolve(response);
915
+ return response;
929
916
  };
930
917
  exports.de_DeletePartnerEventSourceCommand = de_DeletePartnerEventSourceCommand;
931
918
  const de_DeletePartnerEventSourceCommandError = async (output, context) => {
@@ -946,10 +933,9 @@ const de_DeletePartnerEventSourceCommandError = async (output, context) => {
946
933
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
947
934
  default:
948
935
  const parsedBody = parsedOutput.body;
949
- (0, smithy_client_1.throwDefaultError)({
936
+ return throwDefaultError({
950
937
  output,
951
938
  parsedBody,
952
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
953
939
  errorCode,
954
940
  });
955
941
  }
@@ -962,7 +948,7 @@ const de_DeleteRuleCommand = async (output, context) => {
962
948
  const response = {
963
949
  $metadata: deserializeMetadata(output),
964
950
  };
965
- return Promise.resolve(response);
951
+ return response;
966
952
  };
967
953
  exports.de_DeleteRuleCommand = de_DeleteRuleCommand;
968
954
  const de_DeleteRuleCommandError = async (output, context) => {
@@ -986,10 +972,9 @@ const de_DeleteRuleCommandError = async (output, context) => {
986
972
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
987
973
  default:
988
974
  const parsedBody = parsedOutput.body;
989
- (0, smithy_client_1.throwDefaultError)({
975
+ return throwDefaultError({
990
976
  output,
991
977
  parsedBody,
992
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
993
978
  errorCode,
994
979
  });
995
980
  }
@@ -1005,7 +990,7 @@ const de_DescribeApiDestinationCommand = async (output, context) => {
1005
990
  $metadata: deserializeMetadata(output),
1006
991
  ...contents,
1007
992
  };
1008
- return Promise.resolve(response);
993
+ return response;
1009
994
  };
1010
995
  exports.de_DescribeApiDestinationCommand = de_DescribeApiDestinationCommand;
1011
996
  const de_DescribeApiDestinationCommandError = async (output, context) => {
@@ -1023,10 +1008,9 @@ const de_DescribeApiDestinationCommandError = async (output, context) => {
1023
1008
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1024
1009
  default:
1025
1010
  const parsedBody = parsedOutput.body;
1026
- (0, smithy_client_1.throwDefaultError)({
1011
+ return throwDefaultError({
1027
1012
  output,
1028
1013
  parsedBody,
1029
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1030
1014
  errorCode,
1031
1015
  });
1032
1016
  }
@@ -1042,7 +1026,7 @@ const de_DescribeArchiveCommand = async (output, context) => {
1042
1026
  $metadata: deserializeMetadata(output),
1043
1027
  ...contents,
1044
1028
  };
1045
- return Promise.resolve(response);
1029
+ return response;
1046
1030
  };
1047
1031
  exports.de_DescribeArchiveCommand = de_DescribeArchiveCommand;
1048
1032
  const de_DescribeArchiveCommandError = async (output, context) => {
@@ -1063,10 +1047,9 @@ const de_DescribeArchiveCommandError = async (output, context) => {
1063
1047
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1064
1048
  default:
1065
1049
  const parsedBody = parsedOutput.body;
1066
- (0, smithy_client_1.throwDefaultError)({
1050
+ return throwDefaultError({
1067
1051
  output,
1068
1052
  parsedBody,
1069
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1070
1053
  errorCode,
1071
1054
  });
1072
1055
  }
@@ -1082,7 +1065,7 @@ const de_DescribeConnectionCommand = async (output, context) => {
1082
1065
  $metadata: deserializeMetadata(output),
1083
1066
  ...contents,
1084
1067
  };
1085
- return Promise.resolve(response);
1068
+ return response;
1086
1069
  };
1087
1070
  exports.de_DescribeConnectionCommand = de_DescribeConnectionCommand;
1088
1071
  const de_DescribeConnectionCommandError = async (output, context) => {
@@ -1100,10 +1083,9 @@ const de_DescribeConnectionCommandError = async (output, context) => {
1100
1083
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1101
1084
  default:
1102
1085
  const parsedBody = parsedOutput.body;
1103
- (0, smithy_client_1.throwDefaultError)({
1086
+ return throwDefaultError({
1104
1087
  output,
1105
1088
  parsedBody,
1106
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1107
1089
  errorCode,
1108
1090
  });
1109
1091
  }
@@ -1114,12 +1096,12 @@ const de_DescribeEventBusCommand = async (output, context) => {
1114
1096
  }
1115
1097
  const data = await parseBody(output.body, context);
1116
1098
  let contents = {};
1117
- contents = de_DescribeEventBusResponse(data, context);
1099
+ contents = (0, smithy_client_1._json)(data);
1118
1100
  const response = {
1119
1101
  $metadata: deserializeMetadata(output),
1120
1102
  ...contents,
1121
1103
  };
1122
- return Promise.resolve(response);
1104
+ return response;
1123
1105
  };
1124
1106
  exports.de_DescribeEventBusCommand = de_DescribeEventBusCommand;
1125
1107
  const de_DescribeEventBusCommandError = async (output, context) => {
@@ -1137,10 +1119,9 @@ const de_DescribeEventBusCommandError = async (output, context) => {
1137
1119
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1138
1120
  default:
1139
1121
  const parsedBody = parsedOutput.body;
1140
- (0, smithy_client_1.throwDefaultError)({
1122
+ return throwDefaultError({
1141
1123
  output,
1142
1124
  parsedBody,
1143
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1144
1125
  errorCode,
1145
1126
  });
1146
1127
  }
@@ -1156,7 +1137,7 @@ const de_DescribeEventSourceCommand = async (output, context) => {
1156
1137
  $metadata: deserializeMetadata(output),
1157
1138
  ...contents,
1158
1139
  };
1159
- return Promise.resolve(response);
1140
+ return response;
1160
1141
  };
1161
1142
  exports.de_DescribeEventSourceCommand = de_DescribeEventSourceCommand;
1162
1143
  const de_DescribeEventSourceCommandError = async (output, context) => {
@@ -1177,10 +1158,9 @@ const de_DescribeEventSourceCommandError = async (output, context) => {
1177
1158
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1178
1159
  default:
1179
1160
  const parsedBody = parsedOutput.body;
1180
- (0, smithy_client_1.throwDefaultError)({
1161
+ return throwDefaultError({
1181
1162
  output,
1182
1163
  parsedBody,
1183
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1184
1164
  errorCode,
1185
1165
  });
1186
1166
  }
@@ -1191,12 +1171,12 @@ const de_DescribePartnerEventSourceCommand = async (output, context) => {
1191
1171
  }
1192
1172
  const data = await parseBody(output.body, context);
1193
1173
  let contents = {};
1194
- contents = de_DescribePartnerEventSourceResponse(data, context);
1174
+ contents = (0, smithy_client_1._json)(data);
1195
1175
  const response = {
1196
1176
  $metadata: deserializeMetadata(output),
1197
1177
  ...contents,
1198
1178
  };
1199
- return Promise.resolve(response);
1179
+ return response;
1200
1180
  };
1201
1181
  exports.de_DescribePartnerEventSourceCommand = de_DescribePartnerEventSourceCommand;
1202
1182
  const de_DescribePartnerEventSourceCommandError = async (output, context) => {
@@ -1217,10 +1197,9 @@ const de_DescribePartnerEventSourceCommandError = async (output, context) => {
1217
1197
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1218
1198
  default:
1219
1199
  const parsedBody = parsedOutput.body;
1220
- (0, smithy_client_1.throwDefaultError)({
1200
+ return throwDefaultError({
1221
1201
  output,
1222
1202
  parsedBody,
1223
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1224
1203
  errorCode,
1225
1204
  });
1226
1205
  }
@@ -1236,7 +1215,7 @@ const de_DescribeReplayCommand = async (output, context) => {
1236
1215
  $metadata: deserializeMetadata(output),
1237
1216
  ...contents,
1238
1217
  };
1239
- return Promise.resolve(response);
1218
+ return response;
1240
1219
  };
1241
1220
  exports.de_DescribeReplayCommand = de_DescribeReplayCommand;
1242
1221
  const de_DescribeReplayCommandError = async (output, context) => {
@@ -1254,10 +1233,9 @@ const de_DescribeReplayCommandError = async (output, context) => {
1254
1233
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1255
1234
  default:
1256
1235
  const parsedBody = parsedOutput.body;
1257
- (0, smithy_client_1.throwDefaultError)({
1236
+ return throwDefaultError({
1258
1237
  output,
1259
1238
  parsedBody,
1260
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1261
1239
  errorCode,
1262
1240
  });
1263
1241
  }
@@ -1268,12 +1246,12 @@ const de_DescribeRuleCommand = async (output, context) => {
1268
1246
  }
1269
1247
  const data = await parseBody(output.body, context);
1270
1248
  let contents = {};
1271
- contents = de_DescribeRuleResponse(data, context);
1249
+ contents = (0, smithy_client_1._json)(data);
1272
1250
  const response = {
1273
1251
  $metadata: deserializeMetadata(output),
1274
1252
  ...contents,
1275
1253
  };
1276
- return Promise.resolve(response);
1254
+ return response;
1277
1255
  };
1278
1256
  exports.de_DescribeRuleCommand = de_DescribeRuleCommand;
1279
1257
  const de_DescribeRuleCommandError = async (output, context) => {
@@ -1291,10 +1269,9 @@ const de_DescribeRuleCommandError = async (output, context) => {
1291
1269
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1292
1270
  default:
1293
1271
  const parsedBody = parsedOutput.body;
1294
- (0, smithy_client_1.throwDefaultError)({
1272
+ return throwDefaultError({
1295
1273
  output,
1296
1274
  parsedBody,
1297
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1298
1275
  errorCode,
1299
1276
  });
1300
1277
  }
@@ -1307,7 +1284,7 @@ const de_DisableRuleCommand = async (output, context) => {
1307
1284
  const response = {
1308
1285
  $metadata: deserializeMetadata(output),
1309
1286
  };
1310
- return Promise.resolve(response);
1287
+ return response;
1311
1288
  };
1312
1289
  exports.de_DisableRuleCommand = de_DisableRuleCommand;
1313
1290
  const de_DisableRuleCommandError = async (output, context) => {
@@ -1331,10 +1308,9 @@ const de_DisableRuleCommandError = async (output, context) => {
1331
1308
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1332
1309
  default:
1333
1310
  const parsedBody = parsedOutput.body;
1334
- (0, smithy_client_1.throwDefaultError)({
1311
+ return throwDefaultError({
1335
1312
  output,
1336
1313
  parsedBody,
1337
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1338
1314
  errorCode,
1339
1315
  });
1340
1316
  }
@@ -1347,7 +1323,7 @@ const de_EnableRuleCommand = async (output, context) => {
1347
1323
  const response = {
1348
1324
  $metadata: deserializeMetadata(output),
1349
1325
  };
1350
- return Promise.resolve(response);
1326
+ return response;
1351
1327
  };
1352
1328
  exports.de_EnableRuleCommand = de_EnableRuleCommand;
1353
1329
  const de_EnableRuleCommandError = async (output, context) => {
@@ -1371,10 +1347,9 @@ const de_EnableRuleCommandError = async (output, context) => {
1371
1347
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1372
1348
  default:
1373
1349
  const parsedBody = parsedOutput.body;
1374
- (0, smithy_client_1.throwDefaultError)({
1350
+ return throwDefaultError({
1375
1351
  output,
1376
1352
  parsedBody,
1377
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1378
1353
  errorCode,
1379
1354
  });
1380
1355
  }
@@ -1390,7 +1365,7 @@ const de_ListApiDestinationsCommand = async (output, context) => {
1390
1365
  $metadata: deserializeMetadata(output),
1391
1366
  ...contents,
1392
1367
  };
1393
- return Promise.resolve(response);
1368
+ return response;
1394
1369
  };
1395
1370
  exports.de_ListApiDestinationsCommand = de_ListApiDestinationsCommand;
1396
1371
  const de_ListApiDestinationsCommandError = async (output, context) => {
@@ -1405,10 +1380,9 @@ const de_ListApiDestinationsCommandError = async (output, context) => {
1405
1380
  throw await de_InternalExceptionRes(parsedOutput, context);
1406
1381
  default:
1407
1382
  const parsedBody = parsedOutput.body;
1408
- (0, smithy_client_1.throwDefaultError)({
1383
+ return throwDefaultError({
1409
1384
  output,
1410
1385
  parsedBody,
1411
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1412
1386
  errorCode,
1413
1387
  });
1414
1388
  }
@@ -1424,7 +1398,7 @@ const de_ListArchivesCommand = async (output, context) => {
1424
1398
  $metadata: deserializeMetadata(output),
1425
1399
  ...contents,
1426
1400
  };
1427
- return Promise.resolve(response);
1401
+ return response;
1428
1402
  };
1429
1403
  exports.de_ListArchivesCommand = de_ListArchivesCommand;
1430
1404
  const de_ListArchivesCommandError = async (output, context) => {
@@ -1442,10 +1416,9 @@ const de_ListArchivesCommandError = async (output, context) => {
1442
1416
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1443
1417
  default:
1444
1418
  const parsedBody = parsedOutput.body;
1445
- (0, smithy_client_1.throwDefaultError)({
1419
+ return throwDefaultError({
1446
1420
  output,
1447
1421
  parsedBody,
1448
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1449
1422
  errorCode,
1450
1423
  });
1451
1424
  }
@@ -1461,7 +1434,7 @@ const de_ListConnectionsCommand = async (output, context) => {
1461
1434
  $metadata: deserializeMetadata(output),
1462
1435
  ...contents,
1463
1436
  };
1464
- return Promise.resolve(response);
1437
+ return response;
1465
1438
  };
1466
1439
  exports.de_ListConnectionsCommand = de_ListConnectionsCommand;
1467
1440
  const de_ListConnectionsCommandError = async (output, context) => {
@@ -1476,10 +1449,9 @@ const de_ListConnectionsCommandError = async (output, context) => {
1476
1449
  throw await de_InternalExceptionRes(parsedOutput, context);
1477
1450
  default:
1478
1451
  const parsedBody = parsedOutput.body;
1479
- (0, smithy_client_1.throwDefaultError)({
1452
+ return throwDefaultError({
1480
1453
  output,
1481
1454
  parsedBody,
1482
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1483
1455
  errorCode,
1484
1456
  });
1485
1457
  }
@@ -1490,12 +1462,12 @@ const de_ListEventBusesCommand = async (output, context) => {
1490
1462
  }
1491
1463
  const data = await parseBody(output.body, context);
1492
1464
  let contents = {};
1493
- contents = de_ListEventBusesResponse(data, context);
1465
+ contents = (0, smithy_client_1._json)(data);
1494
1466
  const response = {
1495
1467
  $metadata: deserializeMetadata(output),
1496
1468
  ...contents,
1497
1469
  };
1498
- return Promise.resolve(response);
1470
+ return response;
1499
1471
  };
1500
1472
  exports.de_ListEventBusesCommand = de_ListEventBusesCommand;
1501
1473
  const de_ListEventBusesCommandError = async (output, context) => {
@@ -1510,10 +1482,9 @@ const de_ListEventBusesCommandError = async (output, context) => {
1510
1482
  throw await de_InternalExceptionRes(parsedOutput, context);
1511
1483
  default:
1512
1484
  const parsedBody = parsedOutput.body;
1513
- (0, smithy_client_1.throwDefaultError)({
1485
+ return throwDefaultError({
1514
1486
  output,
1515
1487
  parsedBody,
1516
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1517
1488
  errorCode,
1518
1489
  });
1519
1490
  }
@@ -1529,7 +1500,7 @@ const de_ListEventSourcesCommand = async (output, context) => {
1529
1500
  $metadata: deserializeMetadata(output),
1530
1501
  ...contents,
1531
1502
  };
1532
- return Promise.resolve(response);
1503
+ return response;
1533
1504
  };
1534
1505
  exports.de_ListEventSourcesCommand = de_ListEventSourcesCommand;
1535
1506
  const de_ListEventSourcesCommandError = async (output, context) => {
@@ -1547,10 +1518,9 @@ const de_ListEventSourcesCommandError = async (output, context) => {
1547
1518
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
1548
1519
  default:
1549
1520
  const parsedBody = parsedOutput.body;
1550
- (0, smithy_client_1.throwDefaultError)({
1521
+ return throwDefaultError({
1551
1522
  output,
1552
1523
  parsedBody,
1553
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1554
1524
  errorCode,
1555
1525
  });
1556
1526
  }
@@ -1566,7 +1536,7 @@ const de_ListPartnerEventSourceAccountsCommand = async (output, context) => {
1566
1536
  $metadata: deserializeMetadata(output),
1567
1537
  ...contents,
1568
1538
  };
1569
- return Promise.resolve(response);
1539
+ return response;
1570
1540
  };
1571
1541
  exports.de_ListPartnerEventSourceAccountsCommand = de_ListPartnerEventSourceAccountsCommand;
1572
1542
  const de_ListPartnerEventSourceAccountsCommandError = async (output, context) => {
@@ -1587,10 +1557,9 @@ const de_ListPartnerEventSourceAccountsCommandError = async (output, context) =>
1587
1557
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1588
1558
  default:
1589
1559
  const parsedBody = parsedOutput.body;
1590
- (0, smithy_client_1.throwDefaultError)({
1560
+ return throwDefaultError({
1591
1561
  output,
1592
1562
  parsedBody,
1593
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1594
1563
  errorCode,
1595
1564
  });
1596
1565
  }
@@ -1601,12 +1570,12 @@ const de_ListPartnerEventSourcesCommand = async (output, context) => {
1601
1570
  }
1602
1571
  const data = await parseBody(output.body, context);
1603
1572
  let contents = {};
1604
- contents = de_ListPartnerEventSourcesResponse(data, context);
1573
+ contents = (0, smithy_client_1._json)(data);
1605
1574
  const response = {
1606
1575
  $metadata: deserializeMetadata(output),
1607
1576
  ...contents,
1608
1577
  };
1609
- return Promise.resolve(response);
1578
+ return response;
1610
1579
  };
1611
1580
  exports.de_ListPartnerEventSourcesCommand = de_ListPartnerEventSourcesCommand;
1612
1581
  const de_ListPartnerEventSourcesCommandError = async (output, context) => {
@@ -1624,10 +1593,9 @@ const de_ListPartnerEventSourcesCommandError = async (output, context) => {
1624
1593
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
1625
1594
  default:
1626
1595
  const parsedBody = parsedOutput.body;
1627
- (0, smithy_client_1.throwDefaultError)({
1596
+ return throwDefaultError({
1628
1597
  output,
1629
1598
  parsedBody,
1630
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1631
1599
  errorCode,
1632
1600
  });
1633
1601
  }
@@ -1643,7 +1611,7 @@ const de_ListReplaysCommand = async (output, context) => {
1643
1611
  $metadata: deserializeMetadata(output),
1644
1612
  ...contents,
1645
1613
  };
1646
- return Promise.resolve(response);
1614
+ return response;
1647
1615
  };
1648
1616
  exports.de_ListReplaysCommand = de_ListReplaysCommand;
1649
1617
  const de_ListReplaysCommandError = async (output, context) => {
@@ -1658,10 +1626,9 @@ const de_ListReplaysCommandError = async (output, context) => {
1658
1626
  throw await de_InternalExceptionRes(parsedOutput, context);
1659
1627
  default:
1660
1628
  const parsedBody = parsedOutput.body;
1661
- (0, smithy_client_1.throwDefaultError)({
1629
+ return throwDefaultError({
1662
1630
  output,
1663
1631
  parsedBody,
1664
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1665
1632
  errorCode,
1666
1633
  });
1667
1634
  }
@@ -1672,12 +1639,12 @@ const de_ListRuleNamesByTargetCommand = async (output, context) => {
1672
1639
  }
1673
1640
  const data = await parseBody(output.body, context);
1674
1641
  let contents = {};
1675
- contents = de_ListRuleNamesByTargetResponse(data, context);
1642
+ contents = (0, smithy_client_1._json)(data);
1676
1643
  const response = {
1677
1644
  $metadata: deserializeMetadata(output),
1678
1645
  ...contents,
1679
1646
  };
1680
- return Promise.resolve(response);
1647
+ return response;
1681
1648
  };
1682
1649
  exports.de_ListRuleNamesByTargetCommand = de_ListRuleNamesByTargetCommand;
1683
1650
  const de_ListRuleNamesByTargetCommandError = async (output, context) => {
@@ -1695,10 +1662,9 @@ const de_ListRuleNamesByTargetCommandError = async (output, context) => {
1695
1662
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1696
1663
  default:
1697
1664
  const parsedBody = parsedOutput.body;
1698
- (0, smithy_client_1.throwDefaultError)({
1665
+ return throwDefaultError({
1699
1666
  output,
1700
1667
  parsedBody,
1701
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1702
1668
  errorCode,
1703
1669
  });
1704
1670
  }
@@ -1709,12 +1675,12 @@ const de_ListRulesCommand = async (output, context) => {
1709
1675
  }
1710
1676
  const data = await parseBody(output.body, context);
1711
1677
  let contents = {};
1712
- contents = de_ListRulesResponse(data, context);
1678
+ contents = (0, smithy_client_1._json)(data);
1713
1679
  const response = {
1714
1680
  $metadata: deserializeMetadata(output),
1715
1681
  ...contents,
1716
1682
  };
1717
- return Promise.resolve(response);
1683
+ return response;
1718
1684
  };
1719
1685
  exports.de_ListRulesCommand = de_ListRulesCommand;
1720
1686
  const de_ListRulesCommandError = async (output, context) => {
@@ -1732,10 +1698,9 @@ const de_ListRulesCommandError = async (output, context) => {
1732
1698
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1733
1699
  default:
1734
1700
  const parsedBody = parsedOutput.body;
1735
- (0, smithy_client_1.throwDefaultError)({
1701
+ return throwDefaultError({
1736
1702
  output,
1737
1703
  parsedBody,
1738
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1739
1704
  errorCode,
1740
1705
  });
1741
1706
  }
@@ -1746,12 +1711,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1746
1711
  }
1747
1712
  const data = await parseBody(output.body, context);
1748
1713
  let contents = {};
1749
- contents = de_ListTagsForResourceResponse(data, context);
1714
+ contents = (0, smithy_client_1._json)(data);
1750
1715
  const response = {
1751
1716
  $metadata: deserializeMetadata(output),
1752
1717
  ...contents,
1753
1718
  };
1754
- return Promise.resolve(response);
1719
+ return response;
1755
1720
  };
1756
1721
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1757
1722
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1769,10 +1734,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1769
1734
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1770
1735
  default:
1771
1736
  const parsedBody = parsedOutput.body;
1772
- (0, smithy_client_1.throwDefaultError)({
1737
+ return throwDefaultError({
1773
1738
  output,
1774
1739
  parsedBody,
1775
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1776
1740
  errorCode,
1777
1741
  });
1778
1742
  }
@@ -1783,12 +1747,12 @@ const de_ListTargetsByRuleCommand = async (output, context) => {
1783
1747
  }
1784
1748
  const data = await parseBody(output.body, context);
1785
1749
  let contents = {};
1786
- contents = de_ListTargetsByRuleResponse(data, context);
1750
+ contents = (0, smithy_client_1._json)(data);
1787
1751
  const response = {
1788
1752
  $metadata: deserializeMetadata(output),
1789
1753
  ...contents,
1790
1754
  };
1791
- return Promise.resolve(response);
1755
+ return response;
1792
1756
  };
1793
1757
  exports.de_ListTargetsByRuleCommand = de_ListTargetsByRuleCommand;
1794
1758
  const de_ListTargetsByRuleCommandError = async (output, context) => {
@@ -1806,10 +1770,9 @@ const de_ListTargetsByRuleCommandError = async (output, context) => {
1806
1770
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1807
1771
  default:
1808
1772
  const parsedBody = parsedOutput.body;
1809
- (0, smithy_client_1.throwDefaultError)({
1773
+ return throwDefaultError({
1810
1774
  output,
1811
1775
  parsedBody,
1812
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1813
1776
  errorCode,
1814
1777
  });
1815
1778
  }
@@ -1820,12 +1783,12 @@ const de_PutEventsCommand = async (output, context) => {
1820
1783
  }
1821
1784
  const data = await parseBody(output.body, context);
1822
1785
  let contents = {};
1823
- contents = de_PutEventsResponse(data, context);
1786
+ contents = (0, smithy_client_1._json)(data);
1824
1787
  const response = {
1825
1788
  $metadata: deserializeMetadata(output),
1826
1789
  ...contents,
1827
1790
  };
1828
- return Promise.resolve(response);
1791
+ return response;
1829
1792
  };
1830
1793
  exports.de_PutEventsCommand = de_PutEventsCommand;
1831
1794
  const de_PutEventsCommandError = async (output, context) => {
@@ -1840,10 +1803,9 @@ const de_PutEventsCommandError = async (output, context) => {
1840
1803
  throw await de_InternalExceptionRes(parsedOutput, context);
1841
1804
  default:
1842
1805
  const parsedBody = parsedOutput.body;
1843
- (0, smithy_client_1.throwDefaultError)({
1806
+ return throwDefaultError({
1844
1807
  output,
1845
1808
  parsedBody,
1846
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1847
1809
  errorCode,
1848
1810
  });
1849
1811
  }
@@ -1854,12 +1816,12 @@ const de_PutPartnerEventsCommand = async (output, context) => {
1854
1816
  }
1855
1817
  const data = await parseBody(output.body, context);
1856
1818
  let contents = {};
1857
- contents = de_PutPartnerEventsResponse(data, context);
1819
+ contents = (0, smithy_client_1._json)(data);
1858
1820
  const response = {
1859
1821
  $metadata: deserializeMetadata(output),
1860
1822
  ...contents,
1861
1823
  };
1862
- return Promise.resolve(response);
1824
+ return response;
1863
1825
  };
1864
1826
  exports.de_PutPartnerEventsCommand = de_PutPartnerEventsCommand;
1865
1827
  const de_PutPartnerEventsCommandError = async (output, context) => {
@@ -1877,10 +1839,9 @@ const de_PutPartnerEventsCommandError = async (output, context) => {
1877
1839
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
1878
1840
  default:
1879
1841
  const parsedBody = parsedOutput.body;
1880
- (0, smithy_client_1.throwDefaultError)({
1842
+ return throwDefaultError({
1881
1843
  output,
1882
1844
  parsedBody,
1883
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1884
1845
  errorCode,
1885
1846
  });
1886
1847
  }
@@ -1893,7 +1854,7 @@ const de_PutPermissionCommand = async (output, context) => {
1893
1854
  const response = {
1894
1855
  $metadata: deserializeMetadata(output),
1895
1856
  };
1896
- return Promise.resolve(response);
1857
+ return response;
1897
1858
  };
1898
1859
  exports.de_PutPermissionCommand = de_PutPermissionCommand;
1899
1860
  const de_PutPermissionCommandError = async (output, context) => {
@@ -1920,10 +1881,9 @@ const de_PutPermissionCommandError = async (output, context) => {
1920
1881
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1921
1882
  default:
1922
1883
  const parsedBody = parsedOutput.body;
1923
- (0, smithy_client_1.throwDefaultError)({
1884
+ return throwDefaultError({
1924
1885
  output,
1925
1886
  parsedBody,
1926
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1927
1887
  errorCode,
1928
1888
  });
1929
1889
  }
@@ -1934,12 +1894,12 @@ const de_PutRuleCommand = async (output, context) => {
1934
1894
  }
1935
1895
  const data = await parseBody(output.body, context);
1936
1896
  let contents = {};
1937
- contents = de_PutRuleResponse(data, context);
1897
+ contents = (0, smithy_client_1._json)(data);
1938
1898
  const response = {
1939
1899
  $metadata: deserializeMetadata(output),
1940
1900
  ...contents,
1941
1901
  };
1942
- return Promise.resolve(response);
1902
+ return response;
1943
1903
  };
1944
1904
  exports.de_PutRuleCommand = de_PutRuleCommand;
1945
1905
  const de_PutRuleCommandError = async (output, context) => {
@@ -1969,10 +1929,9 @@ const de_PutRuleCommandError = async (output, context) => {
1969
1929
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1970
1930
  default:
1971
1931
  const parsedBody = parsedOutput.body;
1972
- (0, smithy_client_1.throwDefaultError)({
1932
+ return throwDefaultError({
1973
1933
  output,
1974
1934
  parsedBody,
1975
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
1976
1935
  errorCode,
1977
1936
  });
1978
1937
  }
@@ -1983,12 +1942,12 @@ const de_PutTargetsCommand = async (output, context) => {
1983
1942
  }
1984
1943
  const data = await parseBody(output.body, context);
1985
1944
  let contents = {};
1986
- contents = de_PutTargetsResponse(data, context);
1945
+ contents = (0, smithy_client_1._json)(data);
1987
1946
  const response = {
1988
1947
  $metadata: deserializeMetadata(output),
1989
1948
  ...contents,
1990
1949
  };
1991
- return Promise.resolve(response);
1950
+ return response;
1992
1951
  };
1993
1952
  exports.de_PutTargetsCommand = de_PutTargetsCommand;
1994
1953
  const de_PutTargetsCommandError = async (output, context) => {
@@ -2015,10 +1974,9 @@ const de_PutTargetsCommandError = async (output, context) => {
2015
1974
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2016
1975
  default:
2017
1976
  const parsedBody = parsedOutput.body;
2018
- (0, smithy_client_1.throwDefaultError)({
1977
+ return throwDefaultError({
2019
1978
  output,
2020
1979
  parsedBody,
2021
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2022
1980
  errorCode,
2023
1981
  });
2024
1982
  }
@@ -2031,7 +1989,7 @@ const de_RemovePermissionCommand = async (output, context) => {
2031
1989
  const response = {
2032
1990
  $metadata: deserializeMetadata(output),
2033
1991
  };
2034
- return Promise.resolve(response);
1992
+ return response;
2035
1993
  };
2036
1994
  exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
2037
1995
  const de_RemovePermissionCommandError = async (output, context) => {
@@ -2055,10 +2013,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
2055
2013
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2056
2014
  default:
2057
2015
  const parsedBody = parsedOutput.body;
2058
- (0, smithy_client_1.throwDefaultError)({
2016
+ return throwDefaultError({
2059
2017
  output,
2060
2018
  parsedBody,
2061
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2062
2019
  errorCode,
2063
2020
  });
2064
2021
  }
@@ -2069,12 +2026,12 @@ const de_RemoveTargetsCommand = async (output, context) => {
2069
2026
  }
2070
2027
  const data = await parseBody(output.body, context);
2071
2028
  let contents = {};
2072
- contents = de_RemoveTargetsResponse(data, context);
2029
+ contents = (0, smithy_client_1._json)(data);
2073
2030
  const response = {
2074
2031
  $metadata: deserializeMetadata(output),
2075
2032
  ...contents,
2076
2033
  };
2077
- return Promise.resolve(response);
2034
+ return response;
2078
2035
  };
2079
2036
  exports.de_RemoveTargetsCommand = de_RemoveTargetsCommand;
2080
2037
  const de_RemoveTargetsCommandError = async (output, context) => {
@@ -2098,10 +2055,9 @@ const de_RemoveTargetsCommandError = async (output, context) => {
2098
2055
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2099
2056
  default:
2100
2057
  const parsedBody = parsedOutput.body;
2101
- (0, smithy_client_1.throwDefaultError)({
2058
+ return throwDefaultError({
2102
2059
  output,
2103
2060
  parsedBody,
2104
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2105
2061
  errorCode,
2106
2062
  });
2107
2063
  }
@@ -2117,7 +2073,7 @@ const de_StartReplayCommand = async (output, context) => {
2117
2073
  $metadata: deserializeMetadata(output),
2118
2074
  ...contents,
2119
2075
  };
2120
- return Promise.resolve(response);
2076
+ return response;
2121
2077
  };
2122
2078
  exports.de_StartReplayCommand = de_StartReplayCommand;
2123
2079
  const de_StartReplayCommandError = async (output, context) => {
@@ -2144,10 +2100,9 @@ const de_StartReplayCommandError = async (output, context) => {
2144
2100
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2145
2101
  default:
2146
2102
  const parsedBody = parsedOutput.body;
2147
- (0, smithy_client_1.throwDefaultError)({
2103
+ return throwDefaultError({
2148
2104
  output,
2149
2105
  parsedBody,
2150
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2151
2106
  errorCode,
2152
2107
  });
2153
2108
  }
@@ -2158,12 +2113,12 @@ const de_TagResourceCommand = async (output, context) => {
2158
2113
  }
2159
2114
  const data = await parseBody(output.body, context);
2160
2115
  let contents = {};
2161
- contents = de_TagResourceResponse(data, context);
2116
+ contents = (0, smithy_client_1._json)(data);
2162
2117
  const response = {
2163
2118
  $metadata: deserializeMetadata(output),
2164
2119
  ...contents,
2165
2120
  };
2166
- return Promise.resolve(response);
2121
+ return response;
2167
2122
  };
2168
2123
  exports.de_TagResourceCommand = de_TagResourceCommand;
2169
2124
  const de_TagResourceCommandError = async (output, context) => {
@@ -2187,10 +2142,9 @@ const de_TagResourceCommandError = async (output, context) => {
2187
2142
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2188
2143
  default:
2189
2144
  const parsedBody = parsedOutput.body;
2190
- (0, smithy_client_1.throwDefaultError)({
2145
+ return throwDefaultError({
2191
2146
  output,
2192
2147
  parsedBody,
2193
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2194
2148
  errorCode,
2195
2149
  });
2196
2150
  }
@@ -2201,12 +2155,12 @@ const de_TestEventPatternCommand = async (output, context) => {
2201
2155
  }
2202
2156
  const data = await parseBody(output.body, context);
2203
2157
  let contents = {};
2204
- contents = de_TestEventPatternResponse(data, context);
2158
+ contents = (0, smithy_client_1._json)(data);
2205
2159
  const response = {
2206
2160
  $metadata: deserializeMetadata(output),
2207
2161
  ...contents,
2208
2162
  };
2209
- return Promise.resolve(response);
2163
+ return response;
2210
2164
  };
2211
2165
  exports.de_TestEventPatternCommand = de_TestEventPatternCommand;
2212
2166
  const de_TestEventPatternCommandError = async (output, context) => {
@@ -2224,10 +2178,9 @@ const de_TestEventPatternCommandError = async (output, context) => {
2224
2178
  throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
2225
2179
  default:
2226
2180
  const parsedBody = parsedOutput.body;
2227
- (0, smithy_client_1.throwDefaultError)({
2181
+ return throwDefaultError({
2228
2182
  output,
2229
2183
  parsedBody,
2230
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2231
2184
  errorCode,
2232
2185
  });
2233
2186
  }
@@ -2238,12 +2191,12 @@ const de_UntagResourceCommand = async (output, context) => {
2238
2191
  }
2239
2192
  const data = await parseBody(output.body, context);
2240
2193
  let contents = {};
2241
- contents = de_UntagResourceResponse(data, context);
2194
+ contents = (0, smithy_client_1._json)(data);
2242
2195
  const response = {
2243
2196
  $metadata: deserializeMetadata(output),
2244
2197
  ...contents,
2245
2198
  };
2246
- return Promise.resolve(response);
2199
+ return response;
2247
2200
  };
2248
2201
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2249
2202
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2267,10 +2220,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2267
2220
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2268
2221
  default:
2269
2222
  const parsedBody = parsedOutput.body;
2270
- (0, smithy_client_1.throwDefaultError)({
2223
+ return throwDefaultError({
2271
2224
  output,
2272
2225
  parsedBody,
2273
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2274
2226
  errorCode,
2275
2227
  });
2276
2228
  }
@@ -2286,7 +2238,7 @@ const de_UpdateApiDestinationCommand = async (output, context) => {
2286
2238
  $metadata: deserializeMetadata(output),
2287
2239
  ...contents,
2288
2240
  };
2289
- return Promise.resolve(response);
2241
+ return response;
2290
2242
  };
2291
2243
  exports.de_UpdateApiDestinationCommand = de_UpdateApiDestinationCommand;
2292
2244
  const de_UpdateApiDestinationCommandError = async (output, context) => {
@@ -2310,10 +2262,9 @@ const de_UpdateApiDestinationCommandError = async (output, context) => {
2310
2262
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2311
2263
  default:
2312
2264
  const parsedBody = parsedOutput.body;
2313
- (0, smithy_client_1.throwDefaultError)({
2265
+ return throwDefaultError({
2314
2266
  output,
2315
2267
  parsedBody,
2316
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2317
2268
  errorCode,
2318
2269
  });
2319
2270
  }
@@ -2329,7 +2280,7 @@ const de_UpdateArchiveCommand = async (output, context) => {
2329
2280
  $metadata: deserializeMetadata(output),
2330
2281
  ...contents,
2331
2282
  };
2332
- return Promise.resolve(response);
2283
+ return response;
2333
2284
  };
2334
2285
  exports.de_UpdateArchiveCommand = de_UpdateArchiveCommand;
2335
2286
  const de_UpdateArchiveCommandError = async (output, context) => {
@@ -2356,10 +2307,9 @@ const de_UpdateArchiveCommandError = async (output, context) => {
2356
2307
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2357
2308
  default:
2358
2309
  const parsedBody = parsedOutput.body;
2359
- (0, smithy_client_1.throwDefaultError)({
2310
+ return throwDefaultError({
2360
2311
  output,
2361
2312
  parsedBody,
2362
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2363
2313
  errorCode,
2364
2314
  });
2365
2315
  }
@@ -2375,7 +2325,7 @@ const de_UpdateConnectionCommand = async (output, context) => {
2375
2325
  $metadata: deserializeMetadata(output),
2376
2326
  ...contents,
2377
2327
  };
2378
- return Promise.resolve(response);
2328
+ return response;
2379
2329
  };
2380
2330
  exports.de_UpdateConnectionCommand = de_UpdateConnectionCommand;
2381
2331
  const de_UpdateConnectionCommandError = async (output, context) => {
@@ -2399,17 +2349,16 @@ const de_UpdateConnectionCommandError = async (output, context) => {
2399
2349
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2400
2350
  default:
2401
2351
  const parsedBody = parsedOutput.body;
2402
- (0, smithy_client_1.throwDefaultError)({
2352
+ return throwDefaultError({
2403
2353
  output,
2404
2354
  parsedBody,
2405
- exceptionCtor: CloudWatchEventsServiceException_1.CloudWatchEventsServiceException,
2406
2355
  errorCode,
2407
2356
  });
2408
2357
  }
2409
2358
  };
2410
2359
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2411
2360
  const body = parsedOutput.body;
2412
- const deserialized = de_ConcurrentModificationException(body, context);
2361
+ const deserialized = (0, smithy_client_1._json)(body);
2413
2362
  const exception = new models_0_1.ConcurrentModificationException({
2414
2363
  $metadata: deserializeMetadata(parsedOutput),
2415
2364
  ...deserialized,
@@ -2418,7 +2367,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2418
2367
  };
2419
2368
  const de_IllegalStatusExceptionRes = async (parsedOutput, context) => {
2420
2369
  const body = parsedOutput.body;
2421
- const deserialized = de_IllegalStatusException(body, context);
2370
+ const deserialized = (0, smithy_client_1._json)(body);
2422
2371
  const exception = new models_0_1.IllegalStatusException({
2423
2372
  $metadata: deserializeMetadata(parsedOutput),
2424
2373
  ...deserialized,
@@ -2427,7 +2376,7 @@ const de_IllegalStatusExceptionRes = async (parsedOutput, context) => {
2427
2376
  };
2428
2377
  const de_InternalExceptionRes = async (parsedOutput, context) => {
2429
2378
  const body = parsedOutput.body;
2430
- const deserialized = de_InternalException(body, context);
2379
+ const deserialized = (0, smithy_client_1._json)(body);
2431
2380
  const exception = new models_0_1.InternalException({
2432
2381
  $metadata: deserializeMetadata(parsedOutput),
2433
2382
  ...deserialized,
@@ -2436,7 +2385,7 @@ const de_InternalExceptionRes = async (parsedOutput, context) => {
2436
2385
  };
2437
2386
  const de_InvalidEventPatternExceptionRes = async (parsedOutput, context) => {
2438
2387
  const body = parsedOutput.body;
2439
- const deserialized = de_InvalidEventPatternException(body, context);
2388
+ const deserialized = (0, smithy_client_1._json)(body);
2440
2389
  const exception = new models_0_1.InvalidEventPatternException({
2441
2390
  $metadata: deserializeMetadata(parsedOutput),
2442
2391
  ...deserialized,
@@ -2445,7 +2394,7 @@ const de_InvalidEventPatternExceptionRes = async (parsedOutput, context) => {
2445
2394
  };
2446
2395
  const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
2447
2396
  const body = parsedOutput.body;
2448
- const deserialized = de_InvalidStateException(body, context);
2397
+ const deserialized = (0, smithy_client_1._json)(body);
2449
2398
  const exception = new models_0_1.InvalidStateException({
2450
2399
  $metadata: deserializeMetadata(parsedOutput),
2451
2400
  ...deserialized,
@@ -2454,7 +2403,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
2454
2403
  };
2455
2404
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2456
2405
  const body = parsedOutput.body;
2457
- const deserialized = de_LimitExceededException(body, context);
2406
+ const deserialized = (0, smithy_client_1._json)(body);
2458
2407
  const exception = new models_0_1.LimitExceededException({
2459
2408
  $metadata: deserializeMetadata(parsedOutput),
2460
2409
  ...deserialized,
@@ -2463,7 +2412,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2463
2412
  };
2464
2413
  const de_ManagedRuleExceptionRes = async (parsedOutput, context) => {
2465
2414
  const body = parsedOutput.body;
2466
- const deserialized = de_ManagedRuleException(body, context);
2415
+ const deserialized = (0, smithy_client_1._json)(body);
2467
2416
  const exception = new models_0_1.ManagedRuleException({
2468
2417
  $metadata: deserializeMetadata(parsedOutput),
2469
2418
  ...deserialized,
@@ -2472,7 +2421,7 @@ const de_ManagedRuleExceptionRes = async (parsedOutput, context) => {
2472
2421
  };
2473
2422
  const de_OperationDisabledExceptionRes = async (parsedOutput, context) => {
2474
2423
  const body = parsedOutput.body;
2475
- const deserialized = de_OperationDisabledException(body, context);
2424
+ const deserialized = (0, smithy_client_1._json)(body);
2476
2425
  const exception = new models_0_1.OperationDisabledException({
2477
2426
  $metadata: deserializeMetadata(parsedOutput),
2478
2427
  ...deserialized,
@@ -2481,7 +2430,7 @@ const de_OperationDisabledExceptionRes = async (parsedOutput, context) => {
2481
2430
  };
2482
2431
  const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
2483
2432
  const body = parsedOutput.body;
2484
- const deserialized = de_PolicyLengthExceededException(body, context);
2433
+ const deserialized = (0, smithy_client_1._json)(body);
2485
2434
  const exception = new models_0_1.PolicyLengthExceededException({
2486
2435
  $metadata: deserializeMetadata(parsedOutput),
2487
2436
  ...deserialized,
@@ -2490,7 +2439,7 @@ const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
2490
2439
  };
2491
2440
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2492
2441
  const body = parsedOutput.body;
2493
- const deserialized = de_ResourceAlreadyExistsException(body, context);
2442
+ const deserialized = (0, smithy_client_1._json)(body);
2494
2443
  const exception = new models_0_1.ResourceAlreadyExistsException({
2495
2444
  $metadata: deserializeMetadata(parsedOutput),
2496
2445
  ...deserialized,
@@ -2499,2029 +2448,363 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2499
2448
  };
2500
2449
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2501
2450
  const body = parsedOutput.body;
2502
- const deserialized = de_ResourceNotFoundException(body, context);
2451
+ const deserialized = (0, smithy_client_1._json)(body);
2503
2452
  const exception = new models_0_1.ResourceNotFoundException({
2504
2453
  $metadata: deserializeMetadata(parsedOutput),
2505
2454
  ...deserialized,
2506
2455
  });
2507
2456
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2508
2457
  };
2509
- const se_ActivateEventSourceRequest = (input, context) => {
2510
- return {
2511
- ...(input.Name != null && { Name: input.Name }),
2512
- };
2513
- };
2514
- const se_AwsVpcConfiguration = (input, context) => {
2515
- return {
2516
- ...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
2517
- ...(input.SecurityGroups != null && { SecurityGroups: se_StringList(input.SecurityGroups, context) }),
2518
- ...(input.Subnets != null && { Subnets: se_StringList(input.Subnets, context) }),
2519
- };
2520
- };
2521
- const se_BatchArrayProperties = (input, context) => {
2522
- return {
2523
- ...(input.Size != null && { Size: input.Size }),
2524
- };
2525
- };
2526
- const se_BatchParameters = (input, context) => {
2527
- return {
2528
- ...(input.ArrayProperties != null && { ArrayProperties: se_BatchArrayProperties(input.ArrayProperties, context) }),
2529
- ...(input.JobDefinition != null && { JobDefinition: input.JobDefinition }),
2530
- ...(input.JobName != null && { JobName: input.JobName }),
2531
- ...(input.RetryStrategy != null && { RetryStrategy: se_BatchRetryStrategy(input.RetryStrategy, context) }),
2532
- };
2533
- };
2534
- const se_BatchRetryStrategy = (input, context) => {
2535
- return {
2536
- ...(input.Attempts != null && { Attempts: input.Attempts }),
2537
- };
2538
- };
2539
- const se_CancelReplayRequest = (input, context) => {
2540
- return {
2541
- ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
2542
- };
2543
- };
2544
- const se_CapacityProviderStrategy = (input, context) => {
2545
- return input
2546
- .filter((e) => e != null)
2547
- .map((entry) => {
2548
- return se_CapacityProviderStrategyItem(entry, context);
2549
- });
2550
- };
2551
- const se_CapacityProviderStrategyItem = (input, context) => {
2552
- return {
2553
- ...(input.base != null && { base: input.base }),
2554
- ...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
2555
- ...(input.weight != null && { weight: input.weight }),
2556
- };
2557
- };
2558
- const se_Condition = (input, context) => {
2559
- return {
2560
- ...(input.Key != null && { Key: input.Key }),
2561
- ...(input.Type != null && { Type: input.Type }),
2562
- ...(input.Value != null && { Value: input.Value }),
2563
- };
2564
- };
2565
- const se_ConnectionBodyParameter = (input, context) => {
2566
- return {
2567
- ...(input.IsValueSecret != null && { IsValueSecret: input.IsValueSecret }),
2568
- ...(input.Key != null && { Key: input.Key }),
2569
- ...(input.Value != null && { Value: input.Value }),
2570
- };
2571
- };
2572
- const se_ConnectionBodyParametersList = (input, context) => {
2573
- return input
2574
- .filter((e) => e != null)
2575
- .map((entry) => {
2576
- return se_ConnectionBodyParameter(entry, context);
2577
- });
2578
- };
2579
- const se_ConnectionHeaderParameter = (input, context) => {
2580
- return {
2581
- ...(input.IsValueSecret != null && { IsValueSecret: input.IsValueSecret }),
2582
- ...(input.Key != null && { Key: input.Key }),
2583
- ...(input.Value != null && { Value: input.Value }),
2584
- };
2585
- };
2586
- const se_ConnectionHeaderParametersList = (input, context) => {
2587
- return input
2588
- .filter((e) => e != null)
2589
- .map((entry) => {
2590
- return se_ConnectionHeaderParameter(entry, context);
2591
- });
2592
- };
2593
- const se_ConnectionHttpParameters = (input, context) => {
2594
- return {
2595
- ...(input.BodyParameters != null && {
2596
- BodyParameters: se_ConnectionBodyParametersList(input.BodyParameters, context),
2597
- }),
2598
- ...(input.HeaderParameters != null && {
2599
- HeaderParameters: se_ConnectionHeaderParametersList(input.HeaderParameters, context),
2600
- }),
2601
- ...(input.QueryStringParameters != null && {
2602
- QueryStringParameters: se_ConnectionQueryStringParametersList(input.QueryStringParameters, context),
2603
- }),
2604
- };
2605
- };
2606
- const se_ConnectionQueryStringParameter = (input, context) => {
2607
- return {
2608
- ...(input.IsValueSecret != null && { IsValueSecret: input.IsValueSecret }),
2609
- ...(input.Key != null && { Key: input.Key }),
2610
- ...(input.Value != null && { Value: input.Value }),
2611
- };
2612
- };
2613
- const se_ConnectionQueryStringParametersList = (input, context) => {
2614
- return input
2615
- .filter((e) => e != null)
2616
- .map((entry) => {
2617
- return se_ConnectionQueryStringParameter(entry, context);
2618
- });
2619
- };
2620
- const se_CreateApiDestinationRequest = (input, context) => {
2621
- return {
2622
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
2623
- ...(input.Description != null && { Description: input.Description }),
2624
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
2625
- ...(input.InvocationEndpoint != null && { InvocationEndpoint: input.InvocationEndpoint }),
2626
- ...(input.InvocationRateLimitPerSecond != null && {
2627
- InvocationRateLimitPerSecond: input.InvocationRateLimitPerSecond,
2628
- }),
2629
- ...(input.Name != null && { Name: input.Name }),
2630
- };
2631
- };
2632
- const se_CreateArchiveRequest = (input, context) => {
2633
- return {
2634
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
2635
- ...(input.Description != null && { Description: input.Description }),
2636
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
2637
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
2638
- ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
2639
- };
2640
- };
2641
- const se_CreateConnectionApiKeyAuthRequestParameters = (input, context) => {
2642
- return {
2643
- ...(input.ApiKeyName != null && { ApiKeyName: input.ApiKeyName }),
2644
- ...(input.ApiKeyValue != null && { ApiKeyValue: input.ApiKeyValue }),
2645
- };
2646
- };
2647
- const se_CreateConnectionAuthRequestParameters = (input, context) => {
2648
- return {
2649
- ...(input.ApiKeyAuthParameters != null && {
2650
- ApiKeyAuthParameters: se_CreateConnectionApiKeyAuthRequestParameters(input.ApiKeyAuthParameters, context),
2651
- }),
2652
- ...(input.BasicAuthParameters != null && {
2653
- BasicAuthParameters: se_CreateConnectionBasicAuthRequestParameters(input.BasicAuthParameters, context),
2654
- }),
2655
- ...(input.InvocationHttpParameters != null && {
2656
- InvocationHttpParameters: se_ConnectionHttpParameters(input.InvocationHttpParameters, context),
2657
- }),
2658
- ...(input.OAuthParameters != null && {
2659
- OAuthParameters: se_CreateConnectionOAuthRequestParameters(input.OAuthParameters, context),
2660
- }),
2661
- };
2662
- };
2663
- const se_CreateConnectionBasicAuthRequestParameters = (input, context) => {
2664
- return {
2665
- ...(input.Password != null && { Password: input.Password }),
2666
- ...(input.Username != null && { Username: input.Username }),
2667
- };
2668
- };
2669
- const se_CreateConnectionOAuthClientRequestParameters = (input, context) => {
2670
- return {
2671
- ...(input.ClientID != null && { ClientID: input.ClientID }),
2672
- ...(input.ClientSecret != null && { ClientSecret: input.ClientSecret }),
2673
- };
2674
- };
2675
- const se_CreateConnectionOAuthRequestParameters = (input, context) => {
2676
- return {
2677
- ...(input.AuthorizationEndpoint != null && { AuthorizationEndpoint: input.AuthorizationEndpoint }),
2678
- ...(input.ClientParameters != null && {
2679
- ClientParameters: se_CreateConnectionOAuthClientRequestParameters(input.ClientParameters, context),
2680
- }),
2681
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
2682
- ...(input.OAuthHttpParameters != null && {
2683
- OAuthHttpParameters: se_ConnectionHttpParameters(input.OAuthHttpParameters, context),
2684
- }),
2685
- };
2686
- };
2687
- const se_CreateConnectionRequest = (input, context) => {
2688
- return {
2689
- ...(input.AuthParameters != null && {
2690
- AuthParameters: se_CreateConnectionAuthRequestParameters(input.AuthParameters, context),
2691
- }),
2692
- ...(input.AuthorizationType != null && { AuthorizationType: input.AuthorizationType }),
2693
- ...(input.Description != null && { Description: input.Description }),
2694
- ...(input.Name != null && { Name: input.Name }),
2695
- };
2696
- };
2697
- const se_CreateEventBusRequest = (input, context) => {
2698
- return {
2699
- ...(input.EventSourceName != null && { EventSourceName: input.EventSourceName }),
2700
- ...(input.Name != null && { Name: input.Name }),
2701
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2702
- };
2703
- };
2704
- const se_CreatePartnerEventSourceRequest = (input, context) => {
2705
- return {
2706
- ...(input.Account != null && { Account: input.Account }),
2707
- ...(input.Name != null && { Name: input.Name }),
2708
- };
2709
- };
2710
- const se_DeactivateEventSourceRequest = (input, context) => {
2711
- return {
2712
- ...(input.Name != null && { Name: input.Name }),
2713
- };
2714
- };
2715
- const se_DeadLetterConfig = (input, context) => {
2716
- return {
2717
- ...(input.Arn != null && { Arn: input.Arn }),
2718
- };
2719
- };
2720
- const se_DeauthorizeConnectionRequest = (input, context) => {
2721
- return {
2722
- ...(input.Name != null && { Name: input.Name }),
2723
- };
2724
- };
2725
- const se_DeleteApiDestinationRequest = (input, context) => {
2726
- return {
2727
- ...(input.Name != null && { Name: input.Name }),
2728
- };
2729
- };
2730
- const se_DeleteArchiveRequest = (input, context) => {
2731
- return {
2732
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
2733
- };
2734
- };
2735
- const se_DeleteConnectionRequest = (input, context) => {
2736
- return {
2737
- ...(input.Name != null && { Name: input.Name }),
2738
- };
2739
- };
2740
- const se_DeleteEventBusRequest = (input, context) => {
2741
- return {
2742
- ...(input.Name != null && { Name: input.Name }),
2743
- };
2744
- };
2745
- const se_DeletePartnerEventSourceRequest = (input, context) => {
2746
- return {
2747
- ...(input.Account != null && { Account: input.Account }),
2748
- ...(input.Name != null && { Name: input.Name }),
2749
- };
2750
- };
2751
- const se_DeleteRuleRequest = (input, context) => {
2752
- return {
2753
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2754
- ...(input.Force != null && { Force: input.Force }),
2755
- ...(input.Name != null && { Name: input.Name }),
2756
- };
2757
- };
2758
- const se_DescribeApiDestinationRequest = (input, context) => {
2759
- return {
2760
- ...(input.Name != null && { Name: input.Name }),
2761
- };
2762
- };
2763
- const se_DescribeArchiveRequest = (input, context) => {
2764
- return {
2765
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
2766
- };
2767
- };
2768
- const se_DescribeConnectionRequest = (input, context) => {
2769
- return {
2770
- ...(input.Name != null && { Name: input.Name }),
2771
- };
2772
- };
2773
- const se_DescribeEventBusRequest = (input, context) => {
2774
- return {
2775
- ...(input.Name != null && { Name: input.Name }),
2776
- };
2777
- };
2778
- const se_DescribeEventSourceRequest = (input, context) => {
2779
- return {
2780
- ...(input.Name != null && { Name: input.Name }),
2781
- };
2782
- };
2783
- const se_DescribePartnerEventSourceRequest = (input, context) => {
2784
- return {
2785
- ...(input.Name != null && { Name: input.Name }),
2786
- };
2787
- };
2788
- const se_DescribeReplayRequest = (input, context) => {
2789
- return {
2790
- ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
2791
- };
2792
- };
2793
- const se_DescribeRuleRequest = (input, context) => {
2794
- return {
2795
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2796
- ...(input.Name != null && { Name: input.Name }),
2797
- };
2798
- };
2799
- const se_DisableRuleRequest = (input, context) => {
2800
- return {
2801
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2802
- ...(input.Name != null && { Name: input.Name }),
2803
- };
2804
- };
2805
- const se_EcsParameters = (input, context) => {
2806
- return {
2807
- ...(input.CapacityProviderStrategy != null && {
2808
- CapacityProviderStrategy: se_CapacityProviderStrategy(input.CapacityProviderStrategy, context),
2809
- }),
2810
- ...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
2811
- ...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
2812
- ...(input.Group != null && { Group: input.Group }),
2813
- ...(input.LaunchType != null && { LaunchType: input.LaunchType }),
2814
- ...(input.NetworkConfiguration != null && {
2815
- NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
2816
- }),
2817
- ...(input.PlacementConstraints != null && {
2818
- PlacementConstraints: se_PlacementConstraints(input.PlacementConstraints, context),
2819
- }),
2820
- ...(input.PlacementStrategy != null && {
2821
- PlacementStrategy: se_PlacementStrategies(input.PlacementStrategy, context),
2822
- }),
2823
- ...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
2824
- ...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
2825
- ...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
2826
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2827
- ...(input.TaskCount != null && { TaskCount: input.TaskCount }),
2828
- ...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
2829
- };
2830
- };
2831
- const se_EnableRuleRequest = (input, context) => {
2832
- return {
2833
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2834
- ...(input.Name != null && { Name: input.Name }),
2835
- };
2836
- };
2837
- const se_EventResourceList = (input, context) => {
2838
- return input
2839
- .filter((e) => e != null)
2840
- .map((entry) => {
2841
- return entry;
2842
- });
2843
- };
2844
- const se_HeaderParametersMap = (input, context) => {
2845
- return Object.entries(input).reduce((acc, [key, value]) => {
2846
- if (value === null) {
2847
- return acc;
2848
- }
2849
- acc[key] = value;
2850
- return acc;
2851
- }, {});
2852
- };
2853
- const se_HttpParameters = (input, context) => {
2854
- return {
2855
- ...(input.HeaderParameters != null && {
2856
- HeaderParameters: se_HeaderParametersMap(input.HeaderParameters, context),
2857
- }),
2858
- ...(input.PathParameterValues != null && {
2859
- PathParameterValues: se_PathParameterList(input.PathParameterValues, context),
2860
- }),
2861
- ...(input.QueryStringParameters != null && {
2862
- QueryStringParameters: se_QueryStringParametersMap(input.QueryStringParameters, context),
2863
- }),
2864
- };
2865
- };
2866
- const se_InputTransformer = (input, context) => {
2867
- return {
2868
- ...(input.InputPathsMap != null && { InputPathsMap: se_TransformerPaths(input.InputPathsMap, context) }),
2869
- ...(input.InputTemplate != null && { InputTemplate: input.InputTemplate }),
2870
- };
2871
- };
2872
- const se_KinesisParameters = (input, context) => {
2873
- return {
2874
- ...(input.PartitionKeyPath != null && { PartitionKeyPath: input.PartitionKeyPath }),
2875
- };
2876
- };
2877
- const se_ListApiDestinationsRequest = (input, context) => {
2878
- return {
2879
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
2880
- ...(input.Limit != null && { Limit: input.Limit }),
2881
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2882
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2883
- };
2884
- };
2885
- const se_ListArchivesRequest = (input, context) => {
2886
- return {
2887
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
2888
- ...(input.Limit != null && { Limit: input.Limit }),
2889
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2890
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2891
- ...(input.State != null && { State: input.State }),
2892
- };
2893
- };
2894
- const se_ListConnectionsRequest = (input, context) => {
2895
- return {
2896
- ...(input.ConnectionState != null && { ConnectionState: input.ConnectionState }),
2897
- ...(input.Limit != null && { Limit: input.Limit }),
2898
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2899
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2900
- };
2901
- };
2902
- const se_ListEventBusesRequest = (input, context) => {
2903
- return {
2904
- ...(input.Limit != null && { Limit: input.Limit }),
2905
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2906
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2907
- };
2908
- };
2909
- const se_ListEventSourcesRequest = (input, context) => {
2910
- return {
2911
- ...(input.Limit != null && { Limit: input.Limit }),
2912
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2913
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2914
- };
2915
- };
2916
- const se_ListPartnerEventSourceAccountsRequest = (input, context) => {
2917
- return {
2918
- ...(input.EventSourceName != null && { EventSourceName: input.EventSourceName }),
2919
- ...(input.Limit != null && { Limit: input.Limit }),
2920
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2921
- };
2922
- };
2923
- const se_ListPartnerEventSourcesRequest = (input, context) => {
2924
- return {
2925
- ...(input.Limit != null && { Limit: input.Limit }),
2926
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2927
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2928
- };
2929
- };
2930
- const se_ListReplaysRequest = (input, context) => {
2931
- return {
2932
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
2933
- ...(input.Limit != null && { Limit: input.Limit }),
2934
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2935
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2936
- ...(input.State != null && { State: input.State }),
2937
- };
2938
- };
2939
- const se_ListRuleNamesByTargetRequest = (input, context) => {
2940
- return {
2941
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2942
- ...(input.Limit != null && { Limit: input.Limit }),
2943
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2944
- ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
2945
- };
2946
- };
2947
- const se_ListRulesRequest = (input, context) => {
2948
- return {
2949
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2950
- ...(input.Limit != null && { Limit: input.Limit }),
2951
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
2952
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2953
- };
2954
- };
2955
- const se_ListTagsForResourceRequest = (input, context) => {
2956
- return {
2957
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
2958
- };
2959
- };
2960
- const se_ListTargetsByRuleRequest = (input, context) => {
2961
- return {
2962
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
2963
- ...(input.Limit != null && { Limit: input.Limit }),
2964
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2965
- ...(input.Rule != null && { Rule: input.Rule }),
2966
- };
2967
- };
2968
- const se_NetworkConfiguration = (input, context) => {
2969
- return {
2970
- ...(input.awsvpcConfiguration != null && {
2971
- awsvpcConfiguration: se_AwsVpcConfiguration(input.awsvpcConfiguration, context),
2972
- }),
2973
- };
2974
- };
2975
- const se_PathParameterList = (input, context) => {
2976
- return input
2977
- .filter((e) => e != null)
2978
- .map((entry) => {
2979
- return entry;
2980
- });
2981
- };
2982
- const se_PlacementConstraint = (input, context) => {
2983
- return {
2984
- ...(input.expression != null && { expression: input.expression }),
2985
- ...(input.type != null && { type: input.type }),
2986
- };
2987
- };
2988
- const se_PlacementConstraints = (input, context) => {
2989
- return input
2990
- .filter((e) => e != null)
2991
- .map((entry) => {
2992
- return se_PlacementConstraint(entry, context);
2993
- });
2994
- };
2995
- const se_PlacementStrategies = (input, context) => {
2996
- return input
2997
- .filter((e) => e != null)
2998
- .map((entry) => {
2999
- return se_PlacementStrategy(entry, context);
3000
- });
3001
- };
3002
- const se_PlacementStrategy = (input, context) => {
3003
- return {
3004
- ...(input.field != null && { field: input.field }),
3005
- ...(input.type != null && { type: input.type }),
3006
- };
3007
- };
3008
- const se_PutEventsRequest = (input, context) => {
3009
- return {
3010
- ...(input.Entries != null && { Entries: se_PutEventsRequestEntryList(input.Entries, context) }),
3011
- };
3012
- };
3013
- const se_PutEventsRequestEntry = (input, context) => {
3014
- return {
3015
- ...(input.Detail != null && { Detail: input.Detail }),
3016
- ...(input.DetailType != null && { DetailType: input.DetailType }),
3017
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3018
- ...(input.Resources != null && { Resources: se_EventResourceList(input.Resources, context) }),
3019
- ...(input.Source != null && { Source: input.Source }),
3020
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3021
- ...(input.TraceHeader != null && { TraceHeader: input.TraceHeader }),
3022
- };
3023
- };
3024
- const se_PutEventsRequestEntryList = (input, context) => {
3025
- return input
3026
- .filter((e) => e != null)
3027
- .map((entry) => {
3028
- return se_PutEventsRequestEntry(entry, context);
3029
- });
3030
- };
3031
- const se_PutPartnerEventsRequest = (input, context) => {
3032
- return {
3033
- ...(input.Entries != null && { Entries: se_PutPartnerEventsRequestEntryList(input.Entries, context) }),
3034
- };
3035
- };
3036
- const se_PutPartnerEventsRequestEntry = (input, context) => {
3037
- return {
3038
- ...(input.Detail != null && { Detail: input.Detail }),
3039
- ...(input.DetailType != null && { DetailType: input.DetailType }),
3040
- ...(input.Resources != null && { Resources: se_EventResourceList(input.Resources, context) }),
3041
- ...(input.Source != null && { Source: input.Source }),
3042
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3043
- };
3044
- };
3045
- const se_PutPartnerEventsRequestEntryList = (input, context) => {
3046
- return input
3047
- .filter((e) => e != null)
3048
- .map((entry) => {
3049
- return se_PutPartnerEventsRequestEntry(entry, context);
3050
- });
3051
- };
3052
- const se_PutPermissionRequest = (input, context) => {
3053
- return {
3054
- ...(input.Action != null && { Action: input.Action }),
3055
- ...(input.Condition != null && { Condition: se_Condition(input.Condition, context) }),
3056
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3057
- ...(input.Policy != null && { Policy: input.Policy }),
3058
- ...(input.Principal != null && { Principal: input.Principal }),
3059
- ...(input.StatementId != null && { StatementId: input.StatementId }),
3060
- };
3061
- };
3062
- const se_PutRuleRequest = (input, context) => {
3063
- return {
3064
- ...(input.Description != null && { Description: input.Description }),
3065
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3066
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3067
- ...(input.Name != null && { Name: input.Name }),
3068
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3069
- ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
3070
- ...(input.State != null && { State: input.State }),
3071
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3072
- };
3073
- };
3074
- const se_PutTargetsRequest = (input, context) => {
3075
- return {
3076
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3077
- ...(input.Rule != null && { Rule: input.Rule }),
3078
- ...(input.Targets != null && { Targets: se_TargetList(input.Targets, context) }),
3079
- };
3080
- };
3081
- const se_QueryStringParametersMap = (input, context) => {
3082
- return Object.entries(input).reduce((acc, [key, value]) => {
3083
- if (value === null) {
3084
- return acc;
3085
- }
3086
- acc[key] = value;
3087
- return acc;
3088
- }, {});
3089
- };
3090
- const se_RedshiftDataParameters = (input, context) => {
3091
- return {
3092
- ...(input.Database != null && { Database: input.Database }),
3093
- ...(input.DbUser != null && { DbUser: input.DbUser }),
3094
- ...(input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn }),
3095
- ...(input.Sql != null && { Sql: input.Sql }),
3096
- ...(input.StatementName != null && { StatementName: input.StatementName }),
3097
- ...(input.WithEvent != null && { WithEvent: input.WithEvent }),
3098
- };
3099
- };
3100
- const se_RemovePermissionRequest = (input, context) => {
3101
- return {
3102
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3103
- ...(input.RemoveAllPermissions != null && { RemoveAllPermissions: input.RemoveAllPermissions }),
3104
- ...(input.StatementId != null && { StatementId: input.StatementId }),
3105
- };
3106
- };
3107
- const se_RemoveTargetsRequest = (input, context) => {
3108
- return {
3109
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3110
- ...(input.Force != null && { Force: input.Force }),
3111
- ...(input.Ids != null && { Ids: se_TargetIdList(input.Ids, context) }),
3112
- ...(input.Rule != null && { Rule: input.Rule }),
3113
- };
3114
- };
3115
- const se_ReplayDestination = (input, context) => {
3116
- return {
3117
- ...(input.Arn != null && { Arn: input.Arn }),
3118
- ...(input.FilterArns != null && { FilterArns: se_ReplayDestinationFilters(input.FilterArns, context) }),
3119
- };
3120
- };
3121
- const se_ReplayDestinationFilters = (input, context) => {
3122
- return input
3123
- .filter((e) => e != null)
3124
- .map((entry) => {
3125
- return entry;
3126
- });
3127
- };
3128
- const se_RetryPolicy = (input, context) => {
3129
- return {
3130
- ...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
3131
- ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
3132
- };
3133
- };
3134
- const se_RunCommandParameters = (input, context) => {
3135
- return {
3136
- ...(input.RunCommandTargets != null && {
3137
- RunCommandTargets: se_RunCommandTargets(input.RunCommandTargets, context),
3138
- }),
3139
- };
3140
- };
3141
- const se_RunCommandTarget = (input, context) => {
3142
- return {
3143
- ...(input.Key != null && { Key: input.Key }),
3144
- ...(input.Values != null && { Values: se_RunCommandTargetValues(input.Values, context) }),
3145
- };
3146
- };
3147
- const se_RunCommandTargets = (input, context) => {
3148
- return input
3149
- .filter((e) => e != null)
3150
- .map((entry) => {
3151
- return se_RunCommandTarget(entry, context);
3152
- });
3153
- };
3154
- const se_RunCommandTargetValues = (input, context) => {
3155
- return input
3156
- .filter((e) => e != null)
3157
- .map((entry) => {
3158
- return entry;
3159
- });
3160
- };
3161
- const se_SageMakerPipelineParameter = (input, context) => {
3162
- return {
3163
- ...(input.Name != null && { Name: input.Name }),
3164
- ...(input.Value != null && { Value: input.Value }),
3165
- };
3166
- };
3167
- const se_SageMakerPipelineParameterList = (input, context) => {
3168
- return input
3169
- .filter((e) => e != null)
3170
- .map((entry) => {
3171
- return se_SageMakerPipelineParameter(entry, context);
3172
- });
3173
- };
3174
- const se_SageMakerPipelineParameters = (input, context) => {
3175
- return {
3176
- ...(input.PipelineParameterList != null && {
3177
- PipelineParameterList: se_SageMakerPipelineParameterList(input.PipelineParameterList, context),
3178
- }),
3179
- };
3180
- };
3181
- const se_SqsParameters = (input, context) => {
3182
- return {
3183
- ...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
3184
- };
3185
- };
3186
- const se_StartReplayRequest = (input, context) => {
3187
- return {
3188
- ...(input.Description != null && { Description: input.Description }),
3189
- ...(input.Destination != null && { Destination: se_ReplayDestination(input.Destination, context) }),
3190
- ...(input.EventEndTime != null && { EventEndTime: Math.round(input.EventEndTime.getTime() / 1000) }),
3191
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3192
- ...(input.EventStartTime != null && { EventStartTime: Math.round(input.EventStartTime.getTime() / 1000) }),
3193
- ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
3194
- };
3195
- };
3196
- const se_StringList = (input, context) => {
3197
- return input
3198
- .filter((e) => e != null)
3199
- .map((entry) => {
3200
- return entry;
3201
- });
3202
- };
3203
- const se_Tag = (input, context) => {
3204
- return {
3205
- ...(input.Key != null && { Key: input.Key }),
3206
- ...(input.Value != null && { Value: input.Value }),
3207
- };
3208
- };
3209
- const se_TagKeyList = (input, context) => {
3210
- return input
3211
- .filter((e) => e != null)
3212
- .map((entry) => {
3213
- return entry;
3214
- });
3215
- };
3216
- const se_TagList = (input, context) => {
3217
- return input
3218
- .filter((e) => e != null)
3219
- .map((entry) => {
3220
- return se_Tag(entry, context);
3221
- });
3222
- };
3223
- const se_TagResourceRequest = (input, context) => {
3224
- return {
3225
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3226
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3227
- };
3228
- };
3229
- const se_Target = (input, context) => {
3230
- return {
3231
- ...(input.Arn != null && { Arn: input.Arn }),
3232
- ...(input.BatchParameters != null && { BatchParameters: se_BatchParameters(input.BatchParameters, context) }),
3233
- ...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
3234
- ...(input.EcsParameters != null && { EcsParameters: se_EcsParameters(input.EcsParameters, context) }),
3235
- ...(input.HttpParameters != null && { HttpParameters: se_HttpParameters(input.HttpParameters, context) }),
3236
- ...(input.Id != null && { Id: input.Id }),
3237
- ...(input.Input != null && { Input: input.Input }),
3238
- ...(input.InputPath != null && { InputPath: input.InputPath }),
3239
- ...(input.InputTransformer != null && { InputTransformer: se_InputTransformer(input.InputTransformer, context) }),
3240
- ...(input.KinesisParameters != null && {
3241
- KinesisParameters: se_KinesisParameters(input.KinesisParameters, context),
3242
- }),
3243
- ...(input.RedshiftDataParameters != null && {
3244
- RedshiftDataParameters: se_RedshiftDataParameters(input.RedshiftDataParameters, context),
3245
- }),
3246
- ...(input.RetryPolicy != null && { RetryPolicy: se_RetryPolicy(input.RetryPolicy, context) }),
3247
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3248
- ...(input.RunCommandParameters != null && {
3249
- RunCommandParameters: se_RunCommandParameters(input.RunCommandParameters, context),
3250
- }),
3251
- ...(input.SageMakerPipelineParameters != null && {
3252
- SageMakerPipelineParameters: se_SageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
3253
- }),
3254
- ...(input.SqsParameters != null && { SqsParameters: se_SqsParameters(input.SqsParameters, context) }),
3255
- };
3256
- };
3257
- const se_TargetIdList = (input, context) => {
3258
- return input
3259
- .filter((e) => e != null)
3260
- .map((entry) => {
3261
- return entry;
3262
- });
3263
- };
3264
- const se_TargetList = (input, context) => {
3265
- return input
3266
- .filter((e) => e != null)
3267
- .map((entry) => {
3268
- return se_Target(entry, context);
3269
- });
3270
- };
3271
- const se_TestEventPatternRequest = (input, context) => {
3272
- return {
3273
- ...(input.Event != null && { Event: input.Event }),
3274
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3275
- };
3276
- };
3277
- const se_TransformerPaths = (input, context) => {
3278
- return Object.entries(input).reduce((acc, [key, value]) => {
3279
- if (value === null) {
3280
- return acc;
3281
- }
3282
- acc[key] = value;
3283
- return acc;
3284
- }, {});
3285
- };
3286
- const se_UntagResourceRequest = (input, context) => {
3287
- return {
3288
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3289
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3290
- };
3291
- };
3292
- const se_UpdateApiDestinationRequest = (input, context) => {
3293
- return {
3294
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
3295
- ...(input.Description != null && { Description: input.Description }),
3296
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
3297
- ...(input.InvocationEndpoint != null && { InvocationEndpoint: input.InvocationEndpoint }),
3298
- ...(input.InvocationRateLimitPerSecond != null && {
3299
- InvocationRateLimitPerSecond: input.InvocationRateLimitPerSecond,
3300
- }),
3301
- ...(input.Name != null && { Name: input.Name }),
3302
- };
3303
- };
3304
- const se_UpdateArchiveRequest = (input, context) => {
3305
- return {
3306
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
3307
- ...(input.Description != null && { Description: input.Description }),
3308
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3309
- ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
3310
- };
3311
- };
3312
- const se_UpdateConnectionApiKeyAuthRequestParameters = (input, context) => {
3313
- return {
3314
- ...(input.ApiKeyName != null && { ApiKeyName: input.ApiKeyName }),
3315
- ...(input.ApiKeyValue != null && { ApiKeyValue: input.ApiKeyValue }),
3316
- };
3317
- };
3318
- const se_UpdateConnectionAuthRequestParameters = (input, context) => {
3319
- return {
3320
- ...(input.ApiKeyAuthParameters != null && {
3321
- ApiKeyAuthParameters: se_UpdateConnectionApiKeyAuthRequestParameters(input.ApiKeyAuthParameters, context),
3322
- }),
3323
- ...(input.BasicAuthParameters != null && {
3324
- BasicAuthParameters: se_UpdateConnectionBasicAuthRequestParameters(input.BasicAuthParameters, context),
3325
- }),
3326
- ...(input.InvocationHttpParameters != null && {
3327
- InvocationHttpParameters: se_ConnectionHttpParameters(input.InvocationHttpParameters, context),
3328
- }),
3329
- ...(input.OAuthParameters != null && {
3330
- OAuthParameters: se_UpdateConnectionOAuthRequestParameters(input.OAuthParameters, context),
3331
- }),
3332
- };
3333
- };
3334
- const se_UpdateConnectionBasicAuthRequestParameters = (input, context) => {
3335
- return {
3336
- ...(input.Password != null && { Password: input.Password }),
3337
- ...(input.Username != null && { Username: input.Username }),
3338
- };
3339
- };
3340
- const se_UpdateConnectionOAuthClientRequestParameters = (input, context) => {
3341
- return {
3342
- ...(input.ClientID != null && { ClientID: input.ClientID }),
3343
- ...(input.ClientSecret != null && { ClientSecret: input.ClientSecret }),
3344
- };
3345
- };
3346
- const se_UpdateConnectionOAuthRequestParameters = (input, context) => {
3347
- return {
3348
- ...(input.AuthorizationEndpoint != null && { AuthorizationEndpoint: input.AuthorizationEndpoint }),
3349
- ...(input.ClientParameters != null && {
3350
- ClientParameters: se_UpdateConnectionOAuthClientRequestParameters(input.ClientParameters, context),
3351
- }),
3352
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
3353
- ...(input.OAuthHttpParameters != null && {
3354
- OAuthHttpParameters: se_ConnectionHttpParameters(input.OAuthHttpParameters, context),
3355
- }),
3356
- };
3357
- };
3358
- const se_UpdateConnectionRequest = (input, context) => {
3359
- return {
3360
- ...(input.AuthParameters != null && {
3361
- AuthParameters: se_UpdateConnectionAuthRequestParameters(input.AuthParameters, context),
3362
- }),
3363
- ...(input.AuthorizationType != null && { AuthorizationType: input.AuthorizationType }),
3364
- ...(input.Description != null && { Description: input.Description }),
3365
- ...(input.Name != null && { Name: input.Name }),
3366
- };
3367
- };
3368
- const de_ApiDestination = (output, context) => {
3369
- return {
3370
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
3371
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
3372
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3373
- CreationTime: output.CreationTime != null
3374
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3375
- : undefined,
3376
- HttpMethod: (0, smithy_client_1.expectString)(output.HttpMethod),
3377
- InvocationEndpoint: (0, smithy_client_1.expectString)(output.InvocationEndpoint),
3378
- InvocationRateLimitPerSecond: (0, smithy_client_1.expectInt32)(output.InvocationRateLimitPerSecond),
3379
- LastModifiedTime: output.LastModifiedTime != null
3380
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3381
- : undefined,
3382
- Name: (0, smithy_client_1.expectString)(output.Name),
3383
- };
3384
- };
3385
- const de_ApiDestinationResponseList = (output, context) => {
3386
- const retVal = (output || [])
3387
- .filter((e) => e != null)
3388
- .map((entry) => {
3389
- if (entry === null) {
3390
- return null;
3391
- }
3392
- return de_ApiDestination(entry, context);
3393
- });
3394
- return retVal;
3395
- };
3396
- const de_Archive = (output, context) => {
3397
- return {
3398
- ArchiveName: (0, smithy_client_1.expectString)(output.ArchiveName),
3399
- CreationTime: output.CreationTime != null
3400
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3401
- : undefined,
3402
- EventCount: (0, smithy_client_1.expectLong)(output.EventCount),
3403
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
3404
- RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
3405
- SizeBytes: (0, smithy_client_1.expectLong)(output.SizeBytes),
3406
- State: (0, smithy_client_1.expectString)(output.State),
3407
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3408
- };
3409
- };
3410
- const de_ArchiveResponseList = (output, context) => {
3411
- const retVal = (output || [])
3412
- .filter((e) => e != null)
3413
- .map((entry) => {
3414
- if (entry === null) {
3415
- return null;
3416
- }
3417
- return de_Archive(entry, context);
3418
- });
3419
- return retVal;
3420
- };
3421
- const de_AwsVpcConfiguration = (output, context) => {
3422
- return {
3423
- AssignPublicIp: (0, smithy_client_1.expectString)(output.AssignPublicIp),
3424
- SecurityGroups: output.SecurityGroups != null ? de_StringList(output.SecurityGroups, context) : undefined,
3425
- Subnets: output.Subnets != null ? de_StringList(output.Subnets, context) : undefined,
3426
- };
3427
- };
3428
- const de_BatchArrayProperties = (output, context) => {
3429
- return {
3430
- Size: (0, smithy_client_1.expectInt32)(output.Size),
3431
- };
3432
- };
3433
- const de_BatchParameters = (output, context) => {
3434
- return {
3435
- ArrayProperties: output.ArrayProperties != null ? de_BatchArrayProperties(output.ArrayProperties, context) : undefined,
3436
- JobDefinition: (0, smithy_client_1.expectString)(output.JobDefinition),
3437
- JobName: (0, smithy_client_1.expectString)(output.JobName),
3438
- RetryStrategy: output.RetryStrategy != null ? de_BatchRetryStrategy(output.RetryStrategy, context) : undefined,
3439
- };
3440
- };
3441
- const de_BatchRetryStrategy = (output, context) => {
3442
- return {
3443
- Attempts: (0, smithy_client_1.expectInt32)(output.Attempts),
3444
- };
3445
- };
3446
- const de_CancelReplayResponse = (output, context) => {
3447
- return {
3448
- ReplayArn: (0, smithy_client_1.expectString)(output.ReplayArn),
3449
- State: (0, smithy_client_1.expectString)(output.State),
3450
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3451
- };
3452
- };
3453
- const de_CapacityProviderStrategy = (output, context) => {
3454
- const retVal = (output || [])
3455
- .filter((e) => e != null)
3456
- .map((entry) => {
3457
- if (entry === null) {
3458
- return null;
3459
- }
3460
- return de_CapacityProviderStrategyItem(entry, context);
3461
- });
3462
- return retVal;
3463
- };
3464
- const de_CapacityProviderStrategyItem = (output, context) => {
3465
- return {
3466
- base: (0, smithy_client_1.expectInt32)(output.base),
3467
- capacityProvider: (0, smithy_client_1.expectString)(output.capacityProvider),
3468
- weight: (0, smithy_client_1.expectInt32)(output.weight),
3469
- };
3470
- };
3471
- const de_ConcurrentModificationException = (output, context) => {
3472
- return {
3473
- message: (0, smithy_client_1.expectString)(output.message),
3474
- };
3475
- };
3476
- const de_Connection = (output, context) => {
3477
- return {
3478
- AuthorizationType: (0, smithy_client_1.expectString)(output.AuthorizationType),
3479
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3480
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
3481
- CreationTime: output.CreationTime != null
3482
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3483
- : undefined,
3484
- LastAuthorizedTime: output.LastAuthorizedTime != null
3485
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
3486
- : undefined,
3487
- LastModifiedTime: output.LastModifiedTime != null
3488
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3489
- : undefined,
3490
- Name: (0, smithy_client_1.expectString)(output.Name),
3491
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3492
- };
3493
- };
3494
- const de_ConnectionApiKeyAuthResponseParameters = (output, context) => {
3495
- return {
3496
- ApiKeyName: (0, smithy_client_1.expectString)(output.ApiKeyName),
3497
- };
3498
- };
3499
- const de_ConnectionAuthResponseParameters = (output, context) => {
3500
- return {
3501
- ApiKeyAuthParameters: output.ApiKeyAuthParameters != null
3502
- ? de_ConnectionApiKeyAuthResponseParameters(output.ApiKeyAuthParameters, context)
3503
- : undefined,
3504
- BasicAuthParameters: output.BasicAuthParameters != null
3505
- ? de_ConnectionBasicAuthResponseParameters(output.BasicAuthParameters, context)
3506
- : undefined,
3507
- InvocationHttpParameters: output.InvocationHttpParameters != null
3508
- ? de_ConnectionHttpParameters(output.InvocationHttpParameters, context)
3509
- : undefined,
3510
- OAuthParameters: output.OAuthParameters != null
3511
- ? de_ConnectionOAuthResponseParameters(output.OAuthParameters, context)
3512
- : undefined,
3513
- };
3514
- };
3515
- const de_ConnectionBasicAuthResponseParameters = (output, context) => {
3516
- return {
3517
- Username: (0, smithy_client_1.expectString)(output.Username),
3518
- };
3519
- };
3520
- const de_ConnectionBodyParameter = (output, context) => {
3521
- return {
3522
- IsValueSecret: (0, smithy_client_1.expectBoolean)(output.IsValueSecret),
3523
- Key: (0, smithy_client_1.expectString)(output.Key),
3524
- Value: (0, smithy_client_1.expectString)(output.Value),
3525
- };
3526
- };
3527
- const de_ConnectionBodyParametersList = (output, context) => {
3528
- const retVal = (output || [])
3529
- .filter((e) => e != null)
3530
- .map((entry) => {
3531
- if (entry === null) {
3532
- return null;
3533
- }
3534
- return de_ConnectionBodyParameter(entry, context);
3535
- });
3536
- return retVal;
3537
- };
3538
- const de_ConnectionHeaderParameter = (output, context) => {
3539
- return {
3540
- IsValueSecret: (0, smithy_client_1.expectBoolean)(output.IsValueSecret),
3541
- Key: (0, smithy_client_1.expectString)(output.Key),
3542
- Value: (0, smithy_client_1.expectString)(output.Value),
3543
- };
3544
- };
3545
- const de_ConnectionHeaderParametersList = (output, context) => {
3546
- const retVal = (output || [])
3547
- .filter((e) => e != null)
3548
- .map((entry) => {
3549
- if (entry === null) {
3550
- return null;
3551
- }
3552
- return de_ConnectionHeaderParameter(entry, context);
3553
- });
3554
- return retVal;
3555
- };
3556
- const de_ConnectionHttpParameters = (output, context) => {
3557
- return {
3558
- BodyParameters: output.BodyParameters != null ? de_ConnectionBodyParametersList(output.BodyParameters, context) : undefined,
3559
- HeaderParameters: output.HeaderParameters != null ? de_ConnectionHeaderParametersList(output.HeaderParameters, context) : undefined,
3560
- QueryStringParameters: output.QueryStringParameters != null
3561
- ? de_ConnectionQueryStringParametersList(output.QueryStringParameters, context)
3562
- : undefined,
3563
- };
3564
- };
3565
- const de_ConnectionOAuthClientResponseParameters = (output, context) => {
3566
- return {
3567
- ClientID: (0, smithy_client_1.expectString)(output.ClientID),
3568
- };
3569
- };
3570
- const de_ConnectionOAuthResponseParameters = (output, context) => {
3571
- return {
3572
- AuthorizationEndpoint: (0, smithy_client_1.expectString)(output.AuthorizationEndpoint),
3573
- ClientParameters: output.ClientParameters != null
3574
- ? de_ConnectionOAuthClientResponseParameters(output.ClientParameters, context)
3575
- : undefined,
3576
- HttpMethod: (0, smithy_client_1.expectString)(output.HttpMethod),
3577
- OAuthHttpParameters: output.OAuthHttpParameters != null ? de_ConnectionHttpParameters(output.OAuthHttpParameters, context) : undefined,
3578
- };
3579
- };
3580
- const de_ConnectionQueryStringParameter = (output, context) => {
3581
- return {
3582
- IsValueSecret: (0, smithy_client_1.expectBoolean)(output.IsValueSecret),
3583
- Key: (0, smithy_client_1.expectString)(output.Key),
3584
- Value: (0, smithy_client_1.expectString)(output.Value),
3585
- };
3586
- };
3587
- const de_ConnectionQueryStringParametersList = (output, context) => {
3588
- const retVal = (output || [])
3589
- .filter((e) => e != null)
3590
- .map((entry) => {
3591
- if (entry === null) {
3592
- return null;
3593
- }
3594
- return de_ConnectionQueryStringParameter(entry, context);
3595
- });
3596
- return retVal;
3597
- };
3598
- const de_ConnectionResponseList = (output, context) => {
3599
- const retVal = (output || [])
3600
- .filter((e) => e != null)
3601
- .map((entry) => {
3602
- if (entry === null) {
3603
- return null;
3604
- }
3605
- return de_Connection(entry, context);
3606
- });
3607
- return retVal;
3608
- };
3609
- const de_CreateApiDestinationResponse = (output, context) => {
3610
- return {
3611
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
3612
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
3613
- CreationTime: output.CreationTime != null
3614
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3615
- : undefined,
3616
- LastModifiedTime: output.LastModifiedTime != null
3617
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3618
- : undefined,
3619
- };
3620
- };
3621
- const de_CreateArchiveResponse = (output, context) => {
3622
- return {
3623
- ArchiveArn: (0, smithy_client_1.expectString)(output.ArchiveArn),
3624
- CreationTime: output.CreationTime != null
3625
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3626
- : undefined,
3627
- State: (0, smithy_client_1.expectString)(output.State),
3628
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3629
- };
3630
- };
3631
- const de_CreateConnectionResponse = (output, context) => {
3632
- return {
3633
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3634
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
3635
- CreationTime: output.CreationTime != null
3636
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3637
- : undefined,
3638
- LastModifiedTime: output.LastModifiedTime != null
3639
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3640
- : undefined,
3641
- };
3642
- };
3643
- const de_CreateEventBusResponse = (output, context) => {
3644
- return {
3645
- EventBusArn: (0, smithy_client_1.expectString)(output.EventBusArn),
3646
- };
3647
- };
3648
- const de_CreatePartnerEventSourceResponse = (output, context) => {
3649
- return {
3650
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
3651
- };
3652
- };
3653
- const de_DeadLetterConfig = (output, context) => {
3654
- return {
3655
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3656
- };
3657
- };
3658
- const de_DeauthorizeConnectionResponse = (output, context) => {
3659
- return {
3660
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3661
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
3662
- CreationTime: output.CreationTime != null
3663
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3664
- : undefined,
3665
- LastAuthorizedTime: output.LastAuthorizedTime != null
3666
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
3667
- : undefined,
3668
- LastModifiedTime: output.LastModifiedTime != null
3669
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3670
- : undefined,
3671
- };
3672
- };
3673
- const de_DeleteApiDestinationResponse = (output, context) => {
3674
- return {};
3675
- };
3676
- const de_DeleteArchiveResponse = (output, context) => {
3677
- return {};
3678
- };
3679
- const de_DeleteConnectionResponse = (output, context) => {
3680
- return {
3681
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3682
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
3683
- CreationTime: output.CreationTime != null
3684
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3685
- : undefined,
3686
- LastAuthorizedTime: output.LastAuthorizedTime != null
3687
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
3688
- : undefined,
3689
- LastModifiedTime: output.LastModifiedTime != null
3690
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3691
- : undefined,
3692
- };
3693
- };
3694
- const de_DescribeApiDestinationResponse = (output, context) => {
3695
- return {
3696
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
3697
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
3698
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3699
- CreationTime: output.CreationTime != null
3700
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3701
- : undefined,
3702
- Description: (0, smithy_client_1.expectString)(output.Description),
3703
- HttpMethod: (0, smithy_client_1.expectString)(output.HttpMethod),
3704
- InvocationEndpoint: (0, smithy_client_1.expectString)(output.InvocationEndpoint),
3705
- InvocationRateLimitPerSecond: (0, smithy_client_1.expectInt32)(output.InvocationRateLimitPerSecond),
3706
- LastModifiedTime: output.LastModifiedTime != null
3707
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3708
- : undefined,
3709
- Name: (0, smithy_client_1.expectString)(output.Name),
3710
- };
3711
- };
3712
- const de_DescribeArchiveResponse = (output, context) => {
3713
- return {
3714
- ArchiveArn: (0, smithy_client_1.expectString)(output.ArchiveArn),
3715
- ArchiveName: (0, smithy_client_1.expectString)(output.ArchiveName),
3716
- CreationTime: output.CreationTime != null
3717
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3718
- : undefined,
3719
- Description: (0, smithy_client_1.expectString)(output.Description),
3720
- EventCount: (0, smithy_client_1.expectLong)(output.EventCount),
3721
- EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
3722
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
3723
- RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
3724
- SizeBytes: (0, smithy_client_1.expectLong)(output.SizeBytes),
3725
- State: (0, smithy_client_1.expectString)(output.State),
3726
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3727
- };
3728
- };
3729
- const de_DescribeConnectionResponse = (output, context) => {
3730
- return {
3731
- AuthParameters: output.AuthParameters != null ? de_ConnectionAuthResponseParameters(output.AuthParameters, context) : undefined,
3732
- AuthorizationType: (0, smithy_client_1.expectString)(output.AuthorizationType),
3733
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3734
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
3735
- CreationTime: output.CreationTime != null
3736
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3737
- : undefined,
3738
- Description: (0, smithy_client_1.expectString)(output.Description),
3739
- LastAuthorizedTime: output.LastAuthorizedTime != null
3740
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
3741
- : undefined,
3742
- LastModifiedTime: output.LastModifiedTime != null
3743
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3744
- : undefined,
3745
- Name: (0, smithy_client_1.expectString)(output.Name),
3746
- SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
3747
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3748
- };
3749
- };
3750
- const de_DescribeEventBusResponse = (output, context) => {
3751
- return {
3752
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3753
- Name: (0, smithy_client_1.expectString)(output.Name),
3754
- Policy: (0, smithy_client_1.expectString)(output.Policy),
3755
- };
3756
- };
3757
- const de_DescribeEventSourceResponse = (output, context) => {
3758
- return {
3759
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3760
- CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
3761
- CreationTime: output.CreationTime != null
3762
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3763
- : undefined,
3764
- ExpirationTime: output.ExpirationTime != null
3765
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTime)))
3766
- : undefined,
3767
- Name: (0, smithy_client_1.expectString)(output.Name),
3768
- State: (0, smithy_client_1.expectString)(output.State),
3769
- };
3770
- };
3771
- const de_DescribePartnerEventSourceResponse = (output, context) => {
3772
- return {
3773
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3774
- Name: (0, smithy_client_1.expectString)(output.Name),
3775
- };
3776
- };
3777
- const de_DescribeReplayResponse = (output, context) => {
3778
- return {
3779
- Description: (0, smithy_client_1.expectString)(output.Description),
3780
- Destination: output.Destination != null ? de_ReplayDestination(output.Destination, context) : undefined,
3781
- EventEndTime: output.EventEndTime != null
3782
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventEndTime)))
3783
- : undefined,
3784
- EventLastReplayedTime: output.EventLastReplayedTime != null
3785
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventLastReplayedTime)))
3786
- : undefined,
3787
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
3788
- EventStartTime: output.EventStartTime != null
3789
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventStartTime)))
3790
- : undefined,
3791
- ReplayArn: (0, smithy_client_1.expectString)(output.ReplayArn),
3792
- ReplayEndTime: output.ReplayEndTime != null
3793
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayEndTime)))
3794
- : undefined,
3795
- ReplayName: (0, smithy_client_1.expectString)(output.ReplayName),
3796
- ReplayStartTime: output.ReplayStartTime != null
3797
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayStartTime)))
3798
- : undefined,
3799
- State: (0, smithy_client_1.expectString)(output.State),
3800
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3801
- };
3802
- };
3803
- const de_DescribeRuleResponse = (output, context) => {
3804
- return {
3805
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3806
- CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
3807
- Description: (0, smithy_client_1.expectString)(output.Description),
3808
- EventBusName: (0, smithy_client_1.expectString)(output.EventBusName),
3809
- EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
3810
- ManagedBy: (0, smithy_client_1.expectString)(output.ManagedBy),
3811
- Name: (0, smithy_client_1.expectString)(output.Name),
3812
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
3813
- ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
3814
- State: (0, smithy_client_1.expectString)(output.State),
3815
- };
3816
- };
3817
- const de_EcsParameters = (output, context) => {
3818
- return {
3819
- CapacityProviderStrategy: output.CapacityProviderStrategy != null
3820
- ? de_CapacityProviderStrategy(output.CapacityProviderStrategy, context)
3821
- : undefined,
3822
- EnableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.EnableECSManagedTags),
3823
- EnableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.EnableExecuteCommand),
3824
- Group: (0, smithy_client_1.expectString)(output.Group),
3825
- LaunchType: (0, smithy_client_1.expectString)(output.LaunchType),
3826
- NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
3827
- PlacementConstraints: output.PlacementConstraints != null ? de_PlacementConstraints(output.PlacementConstraints, context) : undefined,
3828
- PlacementStrategy: output.PlacementStrategy != null ? de_PlacementStrategies(output.PlacementStrategy, context) : undefined,
3829
- PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
3830
- PropagateTags: (0, smithy_client_1.expectString)(output.PropagateTags),
3831
- ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
3832
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
3833
- TaskCount: (0, smithy_client_1.expectInt32)(output.TaskCount),
3834
- TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
3835
- };
3836
- };
3837
- const de_EventBus = (output, context) => {
3838
- return {
3839
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3840
- Name: (0, smithy_client_1.expectString)(output.Name),
3841
- Policy: (0, smithy_client_1.expectString)(output.Policy),
3842
- };
3843
- };
3844
- const de_EventBusList = (output, context) => {
3845
- const retVal = (output || [])
3846
- .filter((e) => e != null)
3847
- .map((entry) => {
3848
- if (entry === null) {
3849
- return null;
3850
- }
3851
- return de_EventBus(entry, context);
3852
- });
3853
- return retVal;
3854
- };
3855
- const de_EventSource = (output, context) => {
3856
- return {
3857
- Arn: (0, smithy_client_1.expectString)(output.Arn),
3858
- CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
3859
- CreationTime: output.CreationTime != null
3860
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3861
- : undefined,
3862
- ExpirationTime: output.ExpirationTime != null
3863
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTime)))
3864
- : undefined,
3865
- Name: (0, smithy_client_1.expectString)(output.Name),
3866
- State: (0, smithy_client_1.expectString)(output.State),
3867
- };
3868
- };
3869
- const de_EventSourceList = (output, context) => {
3870
- const retVal = (output || [])
3871
- .filter((e) => e != null)
3872
- .map((entry) => {
3873
- if (entry === null) {
3874
- return null;
3875
- }
3876
- return de_EventSource(entry, context);
3877
- });
3878
- return retVal;
3879
- };
3880
- const de_HeaderParametersMap = (output, context) => {
3881
- return Object.entries(output).reduce((acc, [key, value]) => {
3882
- if (value === null) {
3883
- return acc;
3884
- }
3885
- acc[key] = (0, smithy_client_1.expectString)(value);
3886
- return acc;
3887
- }, {});
3888
- };
3889
- const de_HttpParameters = (output, context) => {
3890
- return {
3891
- HeaderParameters: output.HeaderParameters != null ? de_HeaderParametersMap(output.HeaderParameters, context) : undefined,
3892
- PathParameterValues: output.PathParameterValues != null ? de_PathParameterList(output.PathParameterValues, context) : undefined,
3893
- QueryStringParameters: output.QueryStringParameters != null
3894
- ? de_QueryStringParametersMap(output.QueryStringParameters, context)
3895
- : undefined,
3896
- };
3897
- };
3898
- const de_IllegalStatusException = (output, context) => {
3899
- return {
3900
- message: (0, smithy_client_1.expectString)(output.message),
3901
- };
3902
- };
3903
- const de_InputTransformer = (output, context) => {
3904
- return {
3905
- InputPathsMap: output.InputPathsMap != null ? de_TransformerPaths(output.InputPathsMap, context) : undefined,
3906
- InputTemplate: (0, smithy_client_1.expectString)(output.InputTemplate),
3907
- };
3908
- };
3909
- const de_InternalException = (output, context) => {
3910
- return {
3911
- message: (0, smithy_client_1.expectString)(output.message),
3912
- };
3913
- };
3914
- const de_InvalidEventPatternException = (output, context) => {
3915
- return {
3916
- message: (0, smithy_client_1.expectString)(output.message),
3917
- };
3918
- };
3919
- const de_InvalidStateException = (output, context) => {
3920
- return {
3921
- message: (0, smithy_client_1.expectString)(output.message),
3922
- };
3923
- };
3924
- const de_KinesisParameters = (output, context) => {
3925
- return {
3926
- PartitionKeyPath: (0, smithy_client_1.expectString)(output.PartitionKeyPath),
3927
- };
3928
- };
3929
- const de_LimitExceededException = (output, context) => {
3930
- return {
3931
- message: (0, smithy_client_1.expectString)(output.message),
3932
- };
3933
- };
3934
- const de_ListApiDestinationsResponse = (output, context) => {
3935
- return {
3936
- ApiDestinations: output.ApiDestinations != null ? de_ApiDestinationResponseList(output.ApiDestinations, context) : undefined,
3937
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3938
- };
3939
- };
3940
- const de_ListArchivesResponse = (output, context) => {
3941
- return {
3942
- Archives: output.Archives != null ? de_ArchiveResponseList(output.Archives, context) : undefined,
3943
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3944
- };
3945
- };
3946
- const de_ListConnectionsResponse = (output, context) => {
3947
- return {
3948
- Connections: output.Connections != null ? de_ConnectionResponseList(output.Connections, context) : undefined,
3949
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3950
- };
3951
- };
3952
- const de_ListEventBusesResponse = (output, context) => {
3953
- return {
3954
- EventBuses: output.EventBuses != null ? de_EventBusList(output.EventBuses, context) : undefined,
3955
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3956
- };
3957
- };
3958
- const de_ListEventSourcesResponse = (output, context) => {
3959
- return {
3960
- EventSources: output.EventSources != null ? de_EventSourceList(output.EventSources, context) : undefined,
3961
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3962
- };
3963
- };
3964
- const de_ListPartnerEventSourceAccountsResponse = (output, context) => {
3965
- return {
3966
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3967
- PartnerEventSourceAccounts: output.PartnerEventSourceAccounts != null
3968
- ? de_PartnerEventSourceAccountList(output.PartnerEventSourceAccounts, context)
3969
- : undefined,
3970
- };
3971
- };
3972
- const de_ListPartnerEventSourcesResponse = (output, context) => {
3973
- return {
3974
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3975
- PartnerEventSources: output.PartnerEventSources != null ? de_PartnerEventSourceList(output.PartnerEventSources, context) : undefined,
3976
- };
3977
- };
3978
- const de_ListReplaysResponse = (output, context) => {
3979
- return {
3980
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3981
- Replays: output.Replays != null ? de_ReplayList(output.Replays, context) : undefined,
3982
- };
3983
- };
3984
- const de_ListRuleNamesByTargetResponse = (output, context) => {
3985
- return {
3986
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3987
- RuleNames: output.RuleNames != null ? de_RuleNameList(output.RuleNames, context) : undefined,
3988
- };
3989
- };
3990
- const de_ListRulesResponse = (output, context) => {
3991
- return {
3992
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3993
- Rules: output.Rules != null ? de_RuleResponseList(output.Rules, context) : undefined,
3994
- };
3995
- };
3996
- const de_ListTagsForResourceResponse = (output, context) => {
3997
- return {
3998
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
3999
- };
4000
- };
4001
- const de_ListTargetsByRuleResponse = (output, context) => {
4002
- return {
4003
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4004
- Targets: output.Targets != null ? de_TargetList(output.Targets, context) : undefined,
4005
- };
4006
- };
4007
- const de_ManagedRuleException = (output, context) => {
4008
- return {
4009
- message: (0, smithy_client_1.expectString)(output.message),
4010
- };
4011
- };
4012
- const de_NetworkConfiguration = (output, context) => {
4013
- return {
4014
- awsvpcConfiguration: output.awsvpcConfiguration != null ? de_AwsVpcConfiguration(output.awsvpcConfiguration, context) : undefined,
4015
- };
4016
- };
4017
- const de_OperationDisabledException = (output, context) => {
4018
- return {
4019
- message: (0, smithy_client_1.expectString)(output.message),
4020
- };
4021
- };
4022
- const de_PartnerEventSource = (output, context) => {
4023
- return {
4024
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4025
- Name: (0, smithy_client_1.expectString)(output.Name),
4026
- };
4027
- };
4028
- const de_PartnerEventSourceAccount = (output, context) => {
4029
- return {
4030
- Account: (0, smithy_client_1.expectString)(output.Account),
4031
- CreationTime: output.CreationTime != null
4032
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4033
- : undefined,
4034
- ExpirationTime: output.ExpirationTime != null
4035
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTime)))
4036
- : undefined,
4037
- State: (0, smithy_client_1.expectString)(output.State),
4038
- };
4039
- };
4040
- const de_PartnerEventSourceAccountList = (output, context) => {
4041
- const retVal = (output || [])
4042
- .filter((e) => e != null)
4043
- .map((entry) => {
4044
- if (entry === null) {
4045
- return null;
4046
- }
4047
- return de_PartnerEventSourceAccount(entry, context);
2458
+ const se_PutEventsRequest = (input, context) => {
2459
+ return (0, smithy_client_1.take)(input, {
2460
+ Entries: (_) => se_PutEventsRequestEntryList(_, context),
4048
2461
  });
4049
- return retVal;
4050
2462
  };
4051
- const de_PartnerEventSourceList = (output, context) => {
4052
- const retVal = (output || [])
4053
- .filter((e) => e != null)
4054
- .map((entry) => {
4055
- if (entry === null) {
4056
- return null;
4057
- }
4058
- return de_PartnerEventSource(entry, context);
2463
+ const se_PutEventsRequestEntry = (input, context) => {
2464
+ return (0, smithy_client_1.take)(input, {
2465
+ Detail: [],
2466
+ DetailType: [],
2467
+ EventBusName: [],
2468
+ Resources: smithy_client_1._json,
2469
+ Source: [],
2470
+ Time: (_) => Math.round(_.getTime() / 1000),
2471
+ TraceHeader: [],
4059
2472
  });
4060
- return retVal;
4061
2473
  };
4062
- const de_PathParameterList = (output, context) => {
4063
- const retVal = (output || [])
2474
+ const se_PutEventsRequestEntryList = (input, context) => {
2475
+ return input
4064
2476
  .filter((e) => e != null)
4065
2477
  .map((entry) => {
4066
- if (entry === null) {
4067
- return null;
4068
- }
4069
- return (0, smithy_client_1.expectString)(entry);
2478
+ return se_PutEventsRequestEntry(entry, context);
4070
2479
  });
4071
- return retVal;
4072
2480
  };
4073
- const de_PlacementConstraint = (output, context) => {
4074
- return {
4075
- expression: (0, smithy_client_1.expectString)(output.expression),
4076
- type: (0, smithy_client_1.expectString)(output.type),
4077
- };
4078
- };
4079
- const de_PlacementConstraints = (output, context) => {
4080
- const retVal = (output || [])
4081
- .filter((e) => e != null)
4082
- .map((entry) => {
4083
- if (entry === null) {
4084
- return null;
4085
- }
4086
- return de_PlacementConstraint(entry, context);
2481
+ const se_PutPartnerEventsRequest = (input, context) => {
2482
+ return (0, smithy_client_1.take)(input, {
2483
+ Entries: (_) => se_PutPartnerEventsRequestEntryList(_, context),
4087
2484
  });
4088
- return retVal;
4089
2485
  };
4090
- const de_PlacementStrategies = (output, context) => {
4091
- const retVal = (output || [])
4092
- .filter((e) => e != null)
4093
- .map((entry) => {
4094
- if (entry === null) {
4095
- return null;
4096
- }
4097
- return de_PlacementStrategy(entry, context);
2486
+ const se_PutPartnerEventsRequestEntry = (input, context) => {
2487
+ return (0, smithy_client_1.take)(input, {
2488
+ Detail: [],
2489
+ DetailType: [],
2490
+ Resources: smithy_client_1._json,
2491
+ Source: [],
2492
+ Time: (_) => Math.round(_.getTime() / 1000),
4098
2493
  });
4099
- return retVal;
4100
- };
4101
- const de_PlacementStrategy = (output, context) => {
4102
- return {
4103
- field: (0, smithy_client_1.expectString)(output.field),
4104
- type: (0, smithy_client_1.expectString)(output.type),
4105
- };
4106
- };
4107
- const de_PolicyLengthExceededException = (output, context) => {
4108
- return {
4109
- message: (0, smithy_client_1.expectString)(output.message),
4110
- };
4111
- };
4112
- const de_PutEventsResponse = (output, context) => {
4113
- return {
4114
- Entries: output.Entries != null ? de_PutEventsResultEntryList(output.Entries, context) : undefined,
4115
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4116
- };
4117
2494
  };
4118
- const de_PutEventsResultEntry = (output, context) => {
4119
- return {
4120
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4121
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4122
- EventId: (0, smithy_client_1.expectString)(output.EventId),
4123
- };
4124
- };
4125
- const de_PutEventsResultEntryList = (output, context) => {
4126
- const retVal = (output || [])
2495
+ const se_PutPartnerEventsRequestEntryList = (input, context) => {
2496
+ return input
4127
2497
  .filter((e) => e != null)
4128
2498
  .map((entry) => {
4129
- if (entry === null) {
4130
- return null;
4131
- }
4132
- return de_PutEventsResultEntry(entry, context);
2499
+ return se_PutPartnerEventsRequestEntry(entry, context);
4133
2500
  });
4134
- return retVal;
4135
2501
  };
4136
- const de_PutPartnerEventsResponse = (output, context) => {
4137
- return {
4138
- Entries: output.Entries != null ? de_PutPartnerEventsResultEntryList(output.Entries, context) : undefined,
4139
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4140
- };
2502
+ const se_StartReplayRequest = (input, context) => {
2503
+ return (0, smithy_client_1.take)(input, {
2504
+ Description: [],
2505
+ Destination: smithy_client_1._json,
2506
+ EventEndTime: (_) => Math.round(_.getTime() / 1000),
2507
+ EventSourceArn: [],
2508
+ EventStartTime: (_) => Math.round(_.getTime() / 1000),
2509
+ ReplayName: [],
2510
+ });
4141
2511
  };
4142
- const de_PutPartnerEventsResultEntry = (output, context) => {
4143
- return {
4144
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4145
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4146
- EventId: (0, smithy_client_1.expectString)(output.EventId),
4147
- };
2512
+ const de_ApiDestination = (output, context) => {
2513
+ return (0, smithy_client_1.take)(output, {
2514
+ ApiDestinationArn: smithy_client_1.expectString,
2515
+ ApiDestinationState: smithy_client_1.expectString,
2516
+ ConnectionArn: smithy_client_1.expectString,
2517
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2518
+ HttpMethod: smithy_client_1.expectString,
2519
+ InvocationEndpoint: smithy_client_1.expectString,
2520
+ InvocationRateLimitPerSecond: smithy_client_1.expectInt32,
2521
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2522
+ Name: smithy_client_1.expectString,
2523
+ });
4148
2524
  };
4149
- const de_PutPartnerEventsResultEntryList = (output, context) => {
2525
+ const de_ApiDestinationResponseList = (output, context) => {
4150
2526
  const retVal = (output || [])
4151
2527
  .filter((e) => e != null)
4152
2528
  .map((entry) => {
4153
- if (entry === null) {
4154
- return null;
4155
- }
4156
- return de_PutPartnerEventsResultEntry(entry, context);
2529
+ return de_ApiDestination(entry, context);
4157
2530
  });
4158
2531
  return retVal;
4159
2532
  };
4160
- const de_PutRuleResponse = (output, context) => {
4161
- return {
4162
- RuleArn: (0, smithy_client_1.expectString)(output.RuleArn),
4163
- };
4164
- };
4165
- const de_PutTargetsResponse = (output, context) => {
4166
- return {
4167
- FailedEntries: output.FailedEntries != null ? de_PutTargetsResultEntryList(output.FailedEntries, context) : undefined,
4168
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4169
- };
4170
- };
4171
- const de_PutTargetsResultEntry = (output, context) => {
4172
- return {
4173
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4174
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4175
- TargetId: (0, smithy_client_1.expectString)(output.TargetId),
4176
- };
2533
+ const de_Archive = (output, context) => {
2534
+ return (0, smithy_client_1.take)(output, {
2535
+ ArchiveName: smithy_client_1.expectString,
2536
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2537
+ EventCount: smithy_client_1.expectLong,
2538
+ EventSourceArn: smithy_client_1.expectString,
2539
+ RetentionDays: smithy_client_1.expectInt32,
2540
+ SizeBytes: smithy_client_1.expectLong,
2541
+ State: smithy_client_1.expectString,
2542
+ StateReason: smithy_client_1.expectString,
2543
+ });
4177
2544
  };
4178
- const de_PutTargetsResultEntryList = (output, context) => {
2545
+ const de_ArchiveResponseList = (output, context) => {
4179
2546
  const retVal = (output || [])
4180
2547
  .filter((e) => e != null)
4181
2548
  .map((entry) => {
4182
- if (entry === null) {
4183
- return null;
4184
- }
4185
- return de_PutTargetsResultEntry(entry, context);
2549
+ return de_Archive(entry, context);
4186
2550
  });
4187
2551
  return retVal;
4188
2552
  };
4189
- const de_QueryStringParametersMap = (output, context) => {
4190
- return Object.entries(output).reduce((acc, [key, value]) => {
4191
- if (value === null) {
4192
- return acc;
4193
- }
4194
- acc[key] = (0, smithy_client_1.expectString)(value);
4195
- return acc;
4196
- }, {});
4197
- };
4198
- const de_RedshiftDataParameters = (output, context) => {
4199
- return {
4200
- Database: (0, smithy_client_1.expectString)(output.Database),
4201
- DbUser: (0, smithy_client_1.expectString)(output.DbUser),
4202
- SecretManagerArn: (0, smithy_client_1.expectString)(output.SecretManagerArn),
4203
- Sql: (0, smithy_client_1.expectString)(output.Sql),
4204
- StatementName: (0, smithy_client_1.expectString)(output.StatementName),
4205
- WithEvent: (0, smithy_client_1.expectBoolean)(output.WithEvent),
4206
- };
4207
- };
4208
- const de_RemoveTargetsResponse = (output, context) => {
4209
- return {
4210
- FailedEntries: output.FailedEntries != null ? de_RemoveTargetsResultEntryList(output.FailedEntries, context) : undefined,
4211
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4212
- };
4213
- };
4214
- const de_RemoveTargetsResultEntry = (output, context) => {
4215
- return {
4216
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4217
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4218
- TargetId: (0, smithy_client_1.expectString)(output.TargetId),
4219
- };
2553
+ const de_Connection = (output, context) => {
2554
+ return (0, smithy_client_1.take)(output, {
2555
+ AuthorizationType: smithy_client_1.expectString,
2556
+ ConnectionArn: smithy_client_1.expectString,
2557
+ ConnectionState: smithy_client_1.expectString,
2558
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2559
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2560
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2561
+ Name: smithy_client_1.expectString,
2562
+ StateReason: smithy_client_1.expectString,
2563
+ });
4220
2564
  };
4221
- const de_RemoveTargetsResultEntryList = (output, context) => {
2565
+ const de_ConnectionResponseList = (output, context) => {
4222
2566
  const retVal = (output || [])
4223
2567
  .filter((e) => e != null)
4224
2568
  .map((entry) => {
4225
- if (entry === null) {
4226
- return null;
4227
- }
4228
- return de_RemoveTargetsResultEntry(entry, context);
2569
+ return de_Connection(entry, context);
4229
2570
  });
4230
2571
  return retVal;
4231
2572
  };
4232
- const de_Replay = (output, context) => {
4233
- return {
4234
- EventEndTime: output.EventEndTime != null
4235
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventEndTime)))
4236
- : undefined,
4237
- EventLastReplayedTime: output.EventLastReplayedTime != null
4238
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventLastReplayedTime)))
4239
- : undefined,
4240
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
4241
- EventStartTime: output.EventStartTime != null
4242
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventStartTime)))
4243
- : undefined,
4244
- ReplayEndTime: output.ReplayEndTime != null
4245
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayEndTime)))
4246
- : undefined,
4247
- ReplayName: (0, smithy_client_1.expectString)(output.ReplayName),
4248
- ReplayStartTime: output.ReplayStartTime != null
4249
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayStartTime)))
4250
- : undefined,
4251
- State: (0, smithy_client_1.expectString)(output.State),
4252
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4253
- };
4254
- };
4255
- const de_ReplayDestination = (output, context) => {
4256
- return {
4257
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4258
- FilterArns: output.FilterArns != null ? de_ReplayDestinationFilters(output.FilterArns, context) : undefined,
4259
- };
4260
- };
4261
- const de_ReplayDestinationFilters = (output, context) => {
4262
- const retVal = (output || [])
4263
- .filter((e) => e != null)
4264
- .map((entry) => {
4265
- if (entry === null) {
4266
- return null;
4267
- }
4268
- return (0, smithy_client_1.expectString)(entry);
2573
+ const de_CreateApiDestinationResponse = (output, context) => {
2574
+ return (0, smithy_client_1.take)(output, {
2575
+ ApiDestinationArn: smithy_client_1.expectString,
2576
+ ApiDestinationState: smithy_client_1.expectString,
2577
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2578
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4269
2579
  });
4270
- return retVal;
4271
2580
  };
4272
- const de_ReplayList = (output, context) => {
4273
- const retVal = (output || [])
4274
- .filter((e) => e != null)
4275
- .map((entry) => {
4276
- if (entry === null) {
4277
- return null;
4278
- }
4279
- return de_Replay(entry, context);
2581
+ const de_CreateArchiveResponse = (output, context) => {
2582
+ return (0, smithy_client_1.take)(output, {
2583
+ ArchiveArn: smithy_client_1.expectString,
2584
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2585
+ State: smithy_client_1.expectString,
2586
+ StateReason: smithy_client_1.expectString,
4280
2587
  });
4281
- return retVal;
4282
2588
  };
4283
- const de_ResourceAlreadyExistsException = (output, context) => {
4284
- return {
4285
- message: (0, smithy_client_1.expectString)(output.message),
4286
- };
2589
+ const de_CreateConnectionResponse = (output, context) => {
2590
+ return (0, smithy_client_1.take)(output, {
2591
+ ConnectionArn: smithy_client_1.expectString,
2592
+ ConnectionState: smithy_client_1.expectString,
2593
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2594
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2595
+ });
4287
2596
  };
4288
- const de_ResourceNotFoundException = (output, context) => {
4289
- return {
4290
- message: (0, smithy_client_1.expectString)(output.message),
4291
- };
2597
+ const de_DeauthorizeConnectionResponse = (output, context) => {
2598
+ return (0, smithy_client_1.take)(output, {
2599
+ ConnectionArn: smithy_client_1.expectString,
2600
+ ConnectionState: smithy_client_1.expectString,
2601
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2602
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2603
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2604
+ });
4292
2605
  };
4293
- const de_RetryPolicy = (output, context) => {
4294
- return {
4295
- MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
4296
- MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
4297
- };
2606
+ const de_DeleteConnectionResponse = (output, context) => {
2607
+ return (0, smithy_client_1.take)(output, {
2608
+ ConnectionArn: smithy_client_1.expectString,
2609
+ ConnectionState: smithy_client_1.expectString,
2610
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2611
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2612
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2613
+ });
4298
2614
  };
4299
- const de_Rule = (output, context) => {
4300
- return {
4301
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4302
- Description: (0, smithy_client_1.expectString)(output.Description),
4303
- EventBusName: (0, smithy_client_1.expectString)(output.EventBusName),
4304
- EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
4305
- ManagedBy: (0, smithy_client_1.expectString)(output.ManagedBy),
4306
- Name: (0, smithy_client_1.expectString)(output.Name),
4307
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4308
- ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
4309
- State: (0, smithy_client_1.expectString)(output.State),
4310
- };
2615
+ const de_DescribeApiDestinationResponse = (output, context) => {
2616
+ return (0, smithy_client_1.take)(output, {
2617
+ ApiDestinationArn: smithy_client_1.expectString,
2618
+ ApiDestinationState: smithy_client_1.expectString,
2619
+ ConnectionArn: smithy_client_1.expectString,
2620
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2621
+ Description: smithy_client_1.expectString,
2622
+ HttpMethod: smithy_client_1.expectString,
2623
+ InvocationEndpoint: smithy_client_1.expectString,
2624
+ InvocationRateLimitPerSecond: smithy_client_1.expectInt32,
2625
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2626
+ Name: smithy_client_1.expectString,
2627
+ });
4311
2628
  };
4312
- const de_RuleNameList = (output, context) => {
4313
- const retVal = (output || [])
4314
- .filter((e) => e != null)
4315
- .map((entry) => {
4316
- if (entry === null) {
4317
- return null;
4318
- }
4319
- return (0, smithy_client_1.expectString)(entry);
2629
+ const de_DescribeArchiveResponse = (output, context) => {
2630
+ return (0, smithy_client_1.take)(output, {
2631
+ ArchiveArn: smithy_client_1.expectString,
2632
+ ArchiveName: smithy_client_1.expectString,
2633
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2634
+ Description: smithy_client_1.expectString,
2635
+ EventCount: smithy_client_1.expectLong,
2636
+ EventPattern: smithy_client_1.expectString,
2637
+ EventSourceArn: smithy_client_1.expectString,
2638
+ RetentionDays: smithy_client_1.expectInt32,
2639
+ SizeBytes: smithy_client_1.expectLong,
2640
+ State: smithy_client_1.expectString,
2641
+ StateReason: smithy_client_1.expectString,
4320
2642
  });
4321
- return retVal;
4322
2643
  };
4323
- const de_RuleResponseList = (output, context) => {
4324
- const retVal = (output || [])
4325
- .filter((e) => e != null)
4326
- .map((entry) => {
4327
- if (entry === null) {
4328
- return null;
4329
- }
4330
- return de_Rule(entry, context);
2644
+ const de_DescribeConnectionResponse = (output, context) => {
2645
+ return (0, smithy_client_1.take)(output, {
2646
+ AuthParameters: smithy_client_1._json,
2647
+ AuthorizationType: smithy_client_1.expectString,
2648
+ ConnectionArn: smithy_client_1.expectString,
2649
+ ConnectionState: smithy_client_1.expectString,
2650
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2651
+ Description: smithy_client_1.expectString,
2652
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2653
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2654
+ Name: smithy_client_1.expectString,
2655
+ SecretArn: smithy_client_1.expectString,
2656
+ StateReason: smithy_client_1.expectString,
4331
2657
  });
4332
- return retVal;
4333
2658
  };
4334
- const de_RunCommandParameters = (output, context) => {
4335
- return {
4336
- RunCommandTargets: output.RunCommandTargets != null ? de_RunCommandTargets(output.RunCommandTargets, context) : undefined,
4337
- };
2659
+ const de_DescribeEventSourceResponse = (output, context) => {
2660
+ return (0, smithy_client_1.take)(output, {
2661
+ Arn: smithy_client_1.expectString,
2662
+ CreatedBy: smithy_client_1.expectString,
2663
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2664
+ ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2665
+ Name: smithy_client_1.expectString,
2666
+ State: smithy_client_1.expectString,
2667
+ });
4338
2668
  };
4339
- const de_RunCommandTarget = (output, context) => {
4340
- return {
4341
- Key: (0, smithy_client_1.expectString)(output.Key),
4342
- Values: output.Values != null ? de_RunCommandTargetValues(output.Values, context) : undefined,
4343
- };
2669
+ const de_DescribeReplayResponse = (output, context) => {
2670
+ return (0, smithy_client_1.take)(output, {
2671
+ Description: smithy_client_1.expectString,
2672
+ Destination: smithy_client_1._json,
2673
+ EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2674
+ EventLastReplayedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2675
+ EventSourceArn: smithy_client_1.expectString,
2676
+ EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2677
+ ReplayArn: smithy_client_1.expectString,
2678
+ ReplayEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2679
+ ReplayName: smithy_client_1.expectString,
2680
+ ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2681
+ State: smithy_client_1.expectString,
2682
+ StateReason: smithy_client_1.expectString,
2683
+ });
4344
2684
  };
4345
- const de_RunCommandTargets = (output, context) => {
4346
- const retVal = (output || [])
4347
- .filter((e) => e != null)
4348
- .map((entry) => {
4349
- if (entry === null) {
4350
- return null;
4351
- }
4352
- return de_RunCommandTarget(entry, context);
2685
+ const de_EventSource = (output, context) => {
2686
+ return (0, smithy_client_1.take)(output, {
2687
+ Arn: smithy_client_1.expectString,
2688
+ CreatedBy: smithy_client_1.expectString,
2689
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2690
+ ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2691
+ Name: smithy_client_1.expectString,
2692
+ State: smithy_client_1.expectString,
4353
2693
  });
4354
- return retVal;
4355
2694
  };
4356
- const de_RunCommandTargetValues = (output, context) => {
2695
+ const de_EventSourceList = (output, context) => {
4357
2696
  const retVal = (output || [])
4358
2697
  .filter((e) => e != null)
4359
2698
  .map((entry) => {
4360
- if (entry === null) {
4361
- return null;
4362
- }
4363
- return (0, smithy_client_1.expectString)(entry);
2699
+ return de_EventSource(entry, context);
4364
2700
  });
4365
2701
  return retVal;
4366
2702
  };
4367
- const de_SageMakerPipelineParameter = (output, context) => {
4368
- return {
4369
- Name: (0, smithy_client_1.expectString)(output.Name),
4370
- Value: (0, smithy_client_1.expectString)(output.Value),
4371
- };
2703
+ const de_ListApiDestinationsResponse = (output, context) => {
2704
+ return (0, smithy_client_1.take)(output, {
2705
+ ApiDestinations: (_) => de_ApiDestinationResponseList(_, context),
2706
+ NextToken: smithy_client_1.expectString,
2707
+ });
4372
2708
  };
4373
- const de_SageMakerPipelineParameterList = (output, context) => {
4374
- const retVal = (output || [])
4375
- .filter((e) => e != null)
4376
- .map((entry) => {
4377
- if (entry === null) {
4378
- return null;
4379
- }
4380
- return de_SageMakerPipelineParameter(entry, context);
2709
+ const de_ListArchivesResponse = (output, context) => {
2710
+ return (0, smithy_client_1.take)(output, {
2711
+ Archives: (_) => de_ArchiveResponseList(_, context),
2712
+ NextToken: smithy_client_1.expectString,
4381
2713
  });
4382
- return retVal;
4383
2714
  };
4384
- const de_SageMakerPipelineParameters = (output, context) => {
4385
- return {
4386
- PipelineParameterList: output.PipelineParameterList != null
4387
- ? de_SageMakerPipelineParameterList(output.PipelineParameterList, context)
4388
- : undefined,
4389
- };
2715
+ const de_ListConnectionsResponse = (output, context) => {
2716
+ return (0, smithy_client_1.take)(output, {
2717
+ Connections: (_) => de_ConnectionResponseList(_, context),
2718
+ NextToken: smithy_client_1.expectString,
2719
+ });
4390
2720
  };
4391
- const de_SqsParameters = (output, context) => {
4392
- return {
4393
- MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
4394
- };
2721
+ const de_ListEventSourcesResponse = (output, context) => {
2722
+ return (0, smithy_client_1.take)(output, {
2723
+ EventSources: (_) => de_EventSourceList(_, context),
2724
+ NextToken: smithy_client_1.expectString,
2725
+ });
4395
2726
  };
4396
- const de_StartReplayResponse = (output, context) => {
4397
- return {
4398
- ReplayArn: (0, smithy_client_1.expectString)(output.ReplayArn),
4399
- ReplayStartTime: output.ReplayStartTime != null
4400
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayStartTime)))
4401
- : undefined,
4402
- State: (0, smithy_client_1.expectString)(output.State),
4403
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4404
- };
2727
+ const de_ListPartnerEventSourceAccountsResponse = (output, context) => {
2728
+ return (0, smithy_client_1.take)(output, {
2729
+ NextToken: smithy_client_1.expectString,
2730
+ PartnerEventSourceAccounts: (_) => de_PartnerEventSourceAccountList(_, context),
2731
+ });
4405
2732
  };
4406
- const de_StringList = (output, context) => {
4407
- const retVal = (output || [])
4408
- .filter((e) => e != null)
4409
- .map((entry) => {
4410
- if (entry === null) {
4411
- return null;
4412
- }
4413
- return (0, smithy_client_1.expectString)(entry);
2733
+ const de_ListReplaysResponse = (output, context) => {
2734
+ return (0, smithy_client_1.take)(output, {
2735
+ NextToken: smithy_client_1.expectString,
2736
+ Replays: (_) => de_ReplayList(_, context),
4414
2737
  });
4415
- return retVal;
4416
2738
  };
4417
- const de_Tag = (output, context) => {
4418
- return {
4419
- Key: (0, smithy_client_1.expectString)(output.Key),
4420
- Value: (0, smithy_client_1.expectString)(output.Value),
4421
- };
2739
+ const de_PartnerEventSourceAccount = (output, context) => {
2740
+ return (0, smithy_client_1.take)(output, {
2741
+ Account: smithy_client_1.expectString,
2742
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2743
+ ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2744
+ State: smithy_client_1.expectString,
2745
+ });
4422
2746
  };
4423
- const de_TagList = (output, context) => {
2747
+ const de_PartnerEventSourceAccountList = (output, context) => {
4424
2748
  const retVal = (output || [])
4425
2749
  .filter((e) => e != null)
4426
2750
  .map((entry) => {
4427
- if (entry === null) {
4428
- return null;
4429
- }
4430
- return de_Tag(entry, context);
2751
+ return de_PartnerEventSourceAccount(entry, context);
4431
2752
  });
4432
2753
  return retVal;
4433
2754
  };
4434
- const de_TagResourceResponse = (output, context) => {
4435
- return {};
4436
- };
4437
- const de_Target = (output, context) => {
4438
- return {
4439
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4440
- BatchParameters: output.BatchParameters != null ? de_BatchParameters(output.BatchParameters, context) : undefined,
4441
- DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
4442
- EcsParameters: output.EcsParameters != null ? de_EcsParameters(output.EcsParameters, context) : undefined,
4443
- HttpParameters: output.HttpParameters != null ? de_HttpParameters(output.HttpParameters, context) : undefined,
4444
- Id: (0, smithy_client_1.expectString)(output.Id),
4445
- Input: (0, smithy_client_1.expectString)(output.Input),
4446
- InputPath: (0, smithy_client_1.expectString)(output.InputPath),
4447
- InputTransformer: output.InputTransformer != null ? de_InputTransformer(output.InputTransformer, context) : undefined,
4448
- KinesisParameters: output.KinesisParameters != null ? de_KinesisParameters(output.KinesisParameters, context) : undefined,
4449
- RedshiftDataParameters: output.RedshiftDataParameters != null
4450
- ? de_RedshiftDataParameters(output.RedshiftDataParameters, context)
4451
- : undefined,
4452
- RetryPolicy: output.RetryPolicy != null ? de_RetryPolicy(output.RetryPolicy, context) : undefined,
4453
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4454
- RunCommandParameters: output.RunCommandParameters != null ? de_RunCommandParameters(output.RunCommandParameters, context) : undefined,
4455
- SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
4456
- ? de_SageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
4457
- : undefined,
4458
- SqsParameters: output.SqsParameters != null ? de_SqsParameters(output.SqsParameters, context) : undefined,
4459
- };
2755
+ const de_Replay = (output, context) => {
2756
+ return (0, smithy_client_1.take)(output, {
2757
+ EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2758
+ EventLastReplayedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2759
+ EventSourceArn: smithy_client_1.expectString,
2760
+ EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2761
+ ReplayEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2762
+ ReplayName: smithy_client_1.expectString,
2763
+ ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2764
+ State: smithy_client_1.expectString,
2765
+ StateReason: smithy_client_1.expectString,
2766
+ });
4460
2767
  };
4461
- const de_TargetList = (output, context) => {
2768
+ const de_ReplayList = (output, context) => {
4462
2769
  const retVal = (output || [])
4463
2770
  .filter((e) => e != null)
4464
2771
  .map((entry) => {
4465
- if (entry === null) {
4466
- return null;
4467
- }
4468
- return de_Target(entry, context);
2772
+ return de_Replay(entry, context);
4469
2773
  });
4470
2774
  return retVal;
4471
2775
  };
4472
- const de_TestEventPatternResponse = (output, context) => {
4473
- return {
4474
- Result: (0, smithy_client_1.expectBoolean)(output.Result),
4475
- };
4476
- };
4477
- const de_TransformerPaths = (output, context) => {
4478
- return Object.entries(output).reduce((acc, [key, value]) => {
4479
- if (value === null) {
4480
- return acc;
4481
- }
4482
- acc[key] = (0, smithy_client_1.expectString)(value);
4483
- return acc;
4484
- }, {});
4485
- };
4486
- const de_UntagResourceResponse = (output, context) => {
4487
- return {};
2776
+ const de_StartReplayResponse = (output, context) => {
2777
+ return (0, smithy_client_1.take)(output, {
2778
+ ReplayArn: smithy_client_1.expectString,
2779
+ ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2780
+ State: smithy_client_1.expectString,
2781
+ StateReason: smithy_client_1.expectString,
2782
+ });
4488
2783
  };
4489
2784
  const de_UpdateApiDestinationResponse = (output, context) => {
4490
- return {
4491
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
4492
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
4493
- CreationTime: output.CreationTime != null
4494
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4495
- : undefined,
4496
- LastModifiedTime: output.LastModifiedTime != null
4497
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4498
- : undefined,
4499
- };
2785
+ return (0, smithy_client_1.take)(output, {
2786
+ ApiDestinationArn: smithy_client_1.expectString,
2787
+ ApiDestinationState: smithy_client_1.expectString,
2788
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2789
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2790
+ });
4500
2791
  };
4501
2792
  const de_UpdateArchiveResponse = (output, context) => {
4502
- return {
4503
- ArchiveArn: (0, smithy_client_1.expectString)(output.ArchiveArn),
4504
- CreationTime: output.CreationTime != null
4505
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4506
- : undefined,
4507
- State: (0, smithy_client_1.expectString)(output.State),
4508
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4509
- };
2793
+ return (0, smithy_client_1.take)(output, {
2794
+ ArchiveArn: smithy_client_1.expectString,
2795
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2796
+ State: smithy_client_1.expectString,
2797
+ StateReason: smithy_client_1.expectString,
2798
+ });
4510
2799
  };
4511
2800
  const de_UpdateConnectionResponse = (output, context) => {
4512
- return {
4513
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
4514
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
4515
- CreationTime: output.CreationTime != null
4516
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4517
- : undefined,
4518
- LastAuthorizedTime: output.LastAuthorizedTime != null
4519
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
4520
- : undefined,
4521
- LastModifiedTime: output.LastModifiedTime != null
4522
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4523
- : undefined,
4524
- };
2801
+ return (0, smithy_client_1.take)(output, {
2802
+ ConnectionArn: smithy_client_1.expectString,
2803
+ ConnectionState: smithy_client_1.expectString,
2804
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2805
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2806
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2807
+ });
4525
2808
  };
4526
2809
  const deserializeMetadata = (output) => ({
4527
2810
  httpStatusCode: output.statusCode,
@@ -4536,6 +2819,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4536
2819
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4537
2820
  };
4538
2821
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2822
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudWatchEventsServiceException_1.CloudWatchEventsServiceException);
4539
2823
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4540
2824
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4541
2825
  const contents = {