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

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