@aws-sdk/client-eventbridge 3.311.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,562 +8,394 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const EventBridgeServiceException_1 = require("../models/EventBridgeServiceException");
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_CreateEndpointCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.1",
63
- "x-amz-target": "AWSEvents.CreateEndpoint",
64
- };
46
+ const headers = sharedHeaders("CreateEndpoint");
65
47
  let body;
66
- body = JSON.stringify(se_CreateEndpointRequest(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_CreateEndpointCommand = se_CreateEndpointCommand;
70
52
  const se_CreateEventBusCommand = async (input, context) => {
71
- const headers = {
72
- "content-type": "application/x-amz-json-1.1",
73
- "x-amz-target": "AWSEvents.CreateEventBus",
74
- };
53
+ const headers = sharedHeaders("CreateEventBus");
75
54
  let body;
76
- body = JSON.stringify(se_CreateEventBusRequest(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_CreateEventBusCommand = se_CreateEventBusCommand;
80
59
  const se_CreatePartnerEventSourceCommand = async (input, context) => {
81
- const headers = {
82
- "content-type": "application/x-amz-json-1.1",
83
- "x-amz-target": "AWSEvents.CreatePartnerEventSource",
84
- };
60
+ const headers = sharedHeaders("CreatePartnerEventSource");
85
61
  let body;
86
- body = JSON.stringify(se_CreatePartnerEventSourceRequest(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_CreatePartnerEventSourceCommand = se_CreatePartnerEventSourceCommand;
90
66
  const se_DeactivateEventSourceCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-amz-json-1.1",
93
- "x-amz-target": "AWSEvents.DeactivateEventSource",
94
- };
67
+ const headers = sharedHeaders("DeactivateEventSource");
95
68
  let body;
96
- body = JSON.stringify(se_DeactivateEventSourceRequest(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_DeactivateEventSourceCommand = se_DeactivateEventSourceCommand;
100
73
  const se_DeauthorizeConnectionCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-amz-json-1.1",
103
- "x-amz-target": "AWSEvents.DeauthorizeConnection",
104
- };
74
+ const headers = sharedHeaders("DeauthorizeConnection");
105
75
  let body;
106
- body = JSON.stringify(se_DeauthorizeConnectionRequest(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_DeauthorizeConnectionCommand = se_DeauthorizeConnectionCommand;
110
80
  const se_DeleteApiDestinationCommand = async (input, context) => {
111
- const headers = {
112
- "content-type": "application/x-amz-json-1.1",
113
- "x-amz-target": "AWSEvents.DeleteApiDestination",
114
- };
81
+ const headers = sharedHeaders("DeleteApiDestination");
115
82
  let body;
116
- body = JSON.stringify(se_DeleteApiDestinationRequest(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_DeleteApiDestinationCommand = se_DeleteApiDestinationCommand;
120
87
  const se_DeleteArchiveCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-amz-json-1.1",
123
- "x-amz-target": "AWSEvents.DeleteArchive",
124
- };
88
+ const headers = sharedHeaders("DeleteArchive");
125
89
  let body;
126
- body = JSON.stringify(se_DeleteArchiveRequest(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_DeleteArchiveCommand = se_DeleteArchiveCommand;
130
94
  const se_DeleteConnectionCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "AWSEvents.DeleteConnection",
134
- };
95
+ const headers = sharedHeaders("DeleteConnection");
135
96
  let body;
136
- body = JSON.stringify(se_DeleteConnectionRequest(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_DeleteConnectionCommand = se_DeleteConnectionCommand;
140
101
  const se_DeleteEndpointCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AWSEvents.DeleteEndpoint",
144
- };
102
+ const headers = sharedHeaders("DeleteEndpoint");
145
103
  let body;
146
- body = JSON.stringify(se_DeleteEndpointRequest(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_DeleteEndpointCommand = se_DeleteEndpointCommand;
150
108
  const se_DeleteEventBusCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.1",
153
- "x-amz-target": "AWSEvents.DeleteEventBus",
154
- };
109
+ const headers = sharedHeaders("DeleteEventBus");
155
110
  let body;
156
- body = JSON.stringify(se_DeleteEventBusRequest(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_DeleteEventBusCommand = se_DeleteEventBusCommand;
160
115
  const se_DeletePartnerEventSourceCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-amz-json-1.1",
163
- "x-amz-target": "AWSEvents.DeletePartnerEventSource",
164
- };
116
+ const headers = sharedHeaders("DeletePartnerEventSource");
165
117
  let body;
166
- body = JSON.stringify(se_DeletePartnerEventSourceRequest(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_DeletePartnerEventSourceCommand = se_DeletePartnerEventSourceCommand;
170
122
  const se_DeleteRuleCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-amz-json-1.1",
173
- "x-amz-target": "AWSEvents.DeleteRule",
174
- };
123
+ const headers = sharedHeaders("DeleteRule");
175
124
  let body;
176
- body = JSON.stringify(se_DeleteRuleRequest(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_DeleteRuleCommand = se_DeleteRuleCommand;
180
129
  const se_DescribeApiDestinationCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-amz-json-1.1",
183
- "x-amz-target": "AWSEvents.DescribeApiDestination",
184
- };
130
+ const headers = sharedHeaders("DescribeApiDestination");
185
131
  let body;
186
- body = JSON.stringify(se_DescribeApiDestinationRequest(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_DescribeApiDestinationCommand = se_DescribeApiDestinationCommand;
190
136
  const se_DescribeArchiveCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-amz-json-1.1",
193
- "x-amz-target": "AWSEvents.DescribeArchive",
194
- };
137
+ const headers = sharedHeaders("DescribeArchive");
195
138
  let body;
196
- body = JSON.stringify(se_DescribeArchiveRequest(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_DescribeArchiveCommand = se_DescribeArchiveCommand;
200
143
  const se_DescribeConnectionCommand = async (input, context) => {
201
- const headers = {
202
- "content-type": "application/x-amz-json-1.1",
203
- "x-amz-target": "AWSEvents.DescribeConnection",
204
- };
144
+ const headers = sharedHeaders("DescribeConnection");
205
145
  let body;
206
- body = JSON.stringify(se_DescribeConnectionRequest(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_DescribeConnectionCommand = se_DescribeConnectionCommand;
210
150
  const se_DescribeEndpointCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-amz-json-1.1",
213
- "x-amz-target": "AWSEvents.DescribeEndpoint",
214
- };
151
+ const headers = sharedHeaders("DescribeEndpoint");
215
152
  let body;
216
- body = JSON.stringify(se_DescribeEndpointRequest(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_DescribeEndpointCommand = se_DescribeEndpointCommand;
220
157
  const se_DescribeEventBusCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.1",
223
- "x-amz-target": "AWSEvents.DescribeEventBus",
224
- };
158
+ const headers = sharedHeaders("DescribeEventBus");
225
159
  let body;
226
- body = JSON.stringify(se_DescribeEventBusRequest(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_DescribeEventBusCommand = se_DescribeEventBusCommand;
230
164
  const se_DescribeEventSourceCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "AWSEvents.DescribeEventSource",
234
- };
165
+ const headers = sharedHeaders("DescribeEventSource");
235
166
  let body;
236
- body = JSON.stringify(se_DescribeEventSourceRequest(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_DescribeEventSourceCommand = se_DescribeEventSourceCommand;
240
171
  const se_DescribePartnerEventSourceCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.1",
243
- "x-amz-target": "AWSEvents.DescribePartnerEventSource",
244
- };
172
+ const headers = sharedHeaders("DescribePartnerEventSource");
245
173
  let body;
246
- body = JSON.stringify(se_DescribePartnerEventSourceRequest(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_DescribePartnerEventSourceCommand = se_DescribePartnerEventSourceCommand;
250
178
  const se_DescribeReplayCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-amz-json-1.1",
253
- "x-amz-target": "AWSEvents.DescribeReplay",
254
- };
179
+ const headers = sharedHeaders("DescribeReplay");
255
180
  let body;
256
- body = JSON.stringify(se_DescribeReplayRequest(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_DescribeReplayCommand = se_DescribeReplayCommand;
260
185
  const se_DescribeRuleCommand = async (input, context) => {
261
- const headers = {
262
- "content-type": "application/x-amz-json-1.1",
263
- "x-amz-target": "AWSEvents.DescribeRule",
264
- };
186
+ const headers = sharedHeaders("DescribeRule");
265
187
  let body;
266
- body = JSON.stringify(se_DescribeRuleRequest(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_DescribeRuleCommand = se_DescribeRuleCommand;
270
192
  const se_DisableRuleCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-amz-json-1.1",
273
- "x-amz-target": "AWSEvents.DisableRule",
274
- };
193
+ const headers = sharedHeaders("DisableRule");
275
194
  let body;
276
- body = JSON.stringify(se_DisableRuleRequest(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_DisableRuleCommand = se_DisableRuleCommand;
280
199
  const se_EnableRuleCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-amz-json-1.1",
283
- "x-amz-target": "AWSEvents.EnableRule",
284
- };
200
+ const headers = sharedHeaders("EnableRule");
285
201
  let body;
286
- body = JSON.stringify(se_EnableRuleRequest(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_EnableRuleCommand = se_EnableRuleCommand;
290
206
  const se_ListApiDestinationsCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-amz-json-1.1",
293
- "x-amz-target": "AWSEvents.ListApiDestinations",
294
- };
207
+ const headers = sharedHeaders("ListApiDestinations");
295
208
  let body;
296
- body = JSON.stringify(se_ListApiDestinationsRequest(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_ListApiDestinationsCommand = se_ListApiDestinationsCommand;
300
213
  const se_ListArchivesCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-amz-json-1.1",
303
- "x-amz-target": "AWSEvents.ListArchives",
304
- };
214
+ const headers = sharedHeaders("ListArchives");
305
215
  let body;
306
- body = JSON.stringify(se_ListArchivesRequest(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_ListArchivesCommand = se_ListArchivesCommand;
310
220
  const se_ListConnectionsCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.1",
313
- "x-amz-target": "AWSEvents.ListConnections",
314
- };
221
+ const headers = sharedHeaders("ListConnections");
315
222
  let body;
316
- body = JSON.stringify(se_ListConnectionsRequest(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_ListConnectionsCommand = se_ListConnectionsCommand;
320
227
  const se_ListEndpointsCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "AWSEvents.ListEndpoints",
324
- };
228
+ const headers = sharedHeaders("ListEndpoints");
325
229
  let body;
326
- body = JSON.stringify(se_ListEndpointsRequest(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_ListEndpointsCommand = se_ListEndpointsCommand;
330
234
  const se_ListEventBusesCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.1",
333
- "x-amz-target": "AWSEvents.ListEventBuses",
334
- };
235
+ const headers = sharedHeaders("ListEventBuses");
335
236
  let body;
336
- body = JSON.stringify(se_ListEventBusesRequest(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_ListEventBusesCommand = se_ListEventBusesCommand;
340
241
  const se_ListEventSourcesCommand = async (input, context) => {
341
- const headers = {
342
- "content-type": "application/x-amz-json-1.1",
343
- "x-amz-target": "AWSEvents.ListEventSources",
344
- };
242
+ const headers = sharedHeaders("ListEventSources");
345
243
  let body;
346
- body = JSON.stringify(se_ListEventSourcesRequest(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_ListEventSourcesCommand = se_ListEventSourcesCommand;
350
248
  const se_ListPartnerEventSourceAccountsCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-amz-json-1.1",
353
- "x-amz-target": "AWSEvents.ListPartnerEventSourceAccounts",
354
- };
249
+ const headers = sharedHeaders("ListPartnerEventSourceAccounts");
355
250
  let body;
356
- body = JSON.stringify(se_ListPartnerEventSourceAccountsRequest(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_ListPartnerEventSourceAccountsCommand = se_ListPartnerEventSourceAccountsCommand;
360
255
  const se_ListPartnerEventSourcesCommand = async (input, context) => {
361
- const headers = {
362
- "content-type": "application/x-amz-json-1.1",
363
- "x-amz-target": "AWSEvents.ListPartnerEventSources",
364
- };
256
+ const headers = sharedHeaders("ListPartnerEventSources");
365
257
  let body;
366
- body = JSON.stringify(se_ListPartnerEventSourcesRequest(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_ListPartnerEventSourcesCommand = se_ListPartnerEventSourcesCommand;
370
262
  const se_ListReplaysCommand = async (input, context) => {
371
- const headers = {
372
- "content-type": "application/x-amz-json-1.1",
373
- "x-amz-target": "AWSEvents.ListReplays",
374
- };
263
+ const headers = sharedHeaders("ListReplays");
375
264
  let body;
376
- body = JSON.stringify(se_ListReplaysRequest(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_ListReplaysCommand = se_ListReplaysCommand;
380
269
  const se_ListRuleNamesByTargetCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-amz-json-1.1",
383
- "x-amz-target": "AWSEvents.ListRuleNamesByTarget",
384
- };
270
+ const headers = sharedHeaders("ListRuleNamesByTarget");
385
271
  let body;
386
- body = JSON.stringify(se_ListRuleNamesByTargetRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
387
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
274
  };
389
275
  exports.se_ListRuleNamesByTargetCommand = se_ListRuleNamesByTargetCommand;
390
276
  const se_ListRulesCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-amz-json-1.1",
393
- "x-amz-target": "AWSEvents.ListRules",
394
- };
277
+ const headers = sharedHeaders("ListRules");
395
278
  let body;
396
- body = JSON.stringify(se_ListRulesRequest(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
397
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
398
281
  };
399
282
  exports.se_ListRulesCommand = se_ListRulesCommand;
400
283
  const se_ListTagsForResourceCommand = async (input, context) => {
401
- const headers = {
402
- "content-type": "application/x-amz-json-1.1",
403
- "x-amz-target": "AWSEvents.ListTagsForResource",
404
- };
284
+ const headers = sharedHeaders("ListTagsForResource");
405
285
  let body;
406
- body = JSON.stringify(se_ListTagsForResourceRequest(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_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
410
290
  const se_ListTargetsByRuleCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "AWSEvents.ListTargetsByRule",
414
- };
291
+ const headers = sharedHeaders("ListTargetsByRule");
415
292
  let body;
416
- body = JSON.stringify(se_ListTargetsByRuleRequest(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_ListTargetsByRuleCommand = se_ListTargetsByRuleCommand;
420
297
  const se_PutEventsCommand = async (input, context) => {
421
- const headers = {
422
- "content-type": "application/x-amz-json-1.1",
423
- "x-amz-target": "AWSEvents.PutEvents",
424
- };
298
+ const headers = sharedHeaders("PutEvents");
425
299
  let body;
426
300
  body = JSON.stringify(se_PutEventsRequest(input, context));
427
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
302
  };
429
303
  exports.se_PutEventsCommand = se_PutEventsCommand;
430
304
  const se_PutPartnerEventsCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-amz-json-1.1",
433
- "x-amz-target": "AWSEvents.PutPartnerEvents",
434
- };
305
+ const headers = sharedHeaders("PutPartnerEvents");
435
306
  let body;
436
307
  body = JSON.stringify(se_PutPartnerEventsRequest(input, context));
437
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
309
  };
439
310
  exports.se_PutPartnerEventsCommand = se_PutPartnerEventsCommand;
440
311
  const se_PutPermissionCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-amz-json-1.1",
443
- "x-amz-target": "AWSEvents.PutPermission",
444
- };
312
+ const headers = sharedHeaders("PutPermission");
445
313
  let body;
446
- body = JSON.stringify(se_PutPermissionRequest(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_PutPermissionCommand = se_PutPermissionCommand;
450
318
  const se_PutRuleCommand = async (input, context) => {
451
- const headers = {
452
- "content-type": "application/x-amz-json-1.1",
453
- "x-amz-target": "AWSEvents.PutRule",
454
- };
319
+ const headers = sharedHeaders("PutRule");
455
320
  let body;
456
- body = JSON.stringify(se_PutRuleRequest(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
457
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
458
323
  };
459
324
  exports.se_PutRuleCommand = se_PutRuleCommand;
460
325
  const se_PutTargetsCommand = async (input, context) => {
461
- const headers = {
462
- "content-type": "application/x-amz-json-1.1",
463
- "x-amz-target": "AWSEvents.PutTargets",
464
- };
326
+ const headers = sharedHeaders("PutTargets");
465
327
  let body;
466
- body = JSON.stringify(se_PutTargetsRequest(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_PutTargetsCommand = se_PutTargetsCommand;
470
332
  const se_RemovePermissionCommand = async (input, context) => {
471
- const headers = {
472
- "content-type": "application/x-amz-json-1.1",
473
- "x-amz-target": "AWSEvents.RemovePermission",
474
- };
333
+ const headers = sharedHeaders("RemovePermission");
475
334
  let body;
476
- body = JSON.stringify(se_RemovePermissionRequest(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_RemovePermissionCommand = se_RemovePermissionCommand;
480
339
  const se_RemoveTargetsCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-amz-json-1.1",
483
- "x-amz-target": "AWSEvents.RemoveTargets",
484
- };
340
+ const headers = sharedHeaders("RemoveTargets");
485
341
  let body;
486
- body = JSON.stringify(se_RemoveTargetsRequest(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_RemoveTargetsCommand = se_RemoveTargetsCommand;
490
346
  const se_StartReplayCommand = async (input, context) => {
491
- const headers = {
492
- "content-type": "application/x-amz-json-1.1",
493
- "x-amz-target": "AWSEvents.StartReplay",
494
- };
347
+ const headers = sharedHeaders("StartReplay");
495
348
  let body;
496
349
  body = JSON.stringify(se_StartReplayRequest(input, context));
497
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
351
  };
499
352
  exports.se_StartReplayCommand = se_StartReplayCommand;
500
353
  const se_TagResourceCommand = async (input, context) => {
501
- const headers = {
502
- "content-type": "application/x-amz-json-1.1",
503
- "x-amz-target": "AWSEvents.TagResource",
504
- };
354
+ const headers = sharedHeaders("TagResource");
505
355
  let body;
506
- body = JSON.stringify(se_TagResourceRequest(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_TagResourceCommand = se_TagResourceCommand;
510
360
  const se_TestEventPatternCommand = async (input, context) => {
511
- const headers = {
512
- "content-type": "application/x-amz-json-1.1",
513
- "x-amz-target": "AWSEvents.TestEventPattern",
514
- };
361
+ const headers = sharedHeaders("TestEventPattern");
515
362
  let body;
516
- body = JSON.stringify(se_TestEventPatternRequest(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_TestEventPatternCommand = se_TestEventPatternCommand;
520
367
  const se_UntagResourceCommand = async (input, context) => {
521
- const headers = {
522
- "content-type": "application/x-amz-json-1.1",
523
- "x-amz-target": "AWSEvents.UntagResource",
524
- };
368
+ const headers = sharedHeaders("UntagResource");
525
369
  let body;
526
- body = JSON.stringify(se_UntagResourceRequest(input, context));
370
+ body = JSON.stringify((0, smithy_client_1._json)(input));
527
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
372
  };
529
373
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
530
374
  const se_UpdateApiDestinationCommand = async (input, context) => {
531
- const headers = {
532
- "content-type": "application/x-amz-json-1.1",
533
- "x-amz-target": "AWSEvents.UpdateApiDestination",
534
- };
375
+ const headers = sharedHeaders("UpdateApiDestination");
535
376
  let body;
536
- body = JSON.stringify(se_UpdateApiDestinationRequest(input, context));
377
+ body = JSON.stringify((0, smithy_client_1._json)(input));
537
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
538
379
  };
539
380
  exports.se_UpdateApiDestinationCommand = se_UpdateApiDestinationCommand;
540
381
  const se_UpdateArchiveCommand = async (input, context) => {
541
- const headers = {
542
- "content-type": "application/x-amz-json-1.1",
543
- "x-amz-target": "AWSEvents.UpdateArchive",
544
- };
382
+ const headers = sharedHeaders("UpdateArchive");
545
383
  let body;
546
- body = JSON.stringify(se_UpdateArchiveRequest(input, context));
384
+ body = JSON.stringify((0, smithy_client_1._json)(input));
547
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
548
386
  };
549
387
  exports.se_UpdateArchiveCommand = se_UpdateArchiveCommand;
550
388
  const se_UpdateConnectionCommand = async (input, context) => {
551
- const headers = {
552
- "content-type": "application/x-amz-json-1.1",
553
- "x-amz-target": "AWSEvents.UpdateConnection",
554
- };
389
+ const headers = sharedHeaders("UpdateConnection");
555
390
  let body;
556
- body = JSON.stringify(se_UpdateConnectionRequest(input, context));
391
+ body = JSON.stringify((0, smithy_client_1._json)(input));
557
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
393
  };
559
394
  exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
560
395
  const se_UpdateEndpointCommand = async (input, context) => {
561
- const headers = {
562
- "content-type": "application/x-amz-json-1.1",
563
- "x-amz-target": "AWSEvents.UpdateEndpoint",
564
- };
396
+ const headers = sharedHeaders("UpdateEndpoint");
565
397
  let body;
566
- body = JSON.stringify(se_UpdateEndpointRequest(input, context));
398
+ body = JSON.stringify((0, smithy_client_1._json)(input));
567
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
568
400
  };
569
401
  exports.se_UpdateEndpointCommand = se_UpdateEndpointCommand;
@@ -575,7 +407,7 @@ const de_ActivateEventSourceCommand = async (output, context) => {
575
407
  const response = {
576
408
  $metadata: deserializeMetadata(output),
577
409
  };
578
- return Promise.resolve(response);
410
+ return response;
579
411
  };
580
412
  exports.de_ActivateEventSourceCommand = de_ActivateEventSourceCommand;
581
413
  const de_ActivateEventSourceCommandError = async (output, context) => {
@@ -602,10 +434,9 @@ const de_ActivateEventSourceCommandError = async (output, context) => {
602
434
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
603
435
  default:
604
436
  const parsedBody = parsedOutput.body;
605
- (0, smithy_client_1.throwDefaultError)({
437
+ return throwDefaultError({
606
438
  output,
607
439
  parsedBody,
608
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
609
440
  errorCode,
610
441
  });
611
442
  }
@@ -616,12 +447,12 @@ const de_CancelReplayCommand = async (output, context) => {
616
447
  }
617
448
  const data = await parseBody(output.body, context);
618
449
  let contents = {};
619
- contents = de_CancelReplayResponse(data, context);
450
+ contents = (0, smithy_client_1._json)(data);
620
451
  const response = {
621
452
  $metadata: deserializeMetadata(output),
622
453
  ...contents,
623
454
  };
624
- return Promise.resolve(response);
455
+ return response;
625
456
  };
626
457
  exports.de_CancelReplayCommand = de_CancelReplayCommand;
627
458
  const de_CancelReplayCommandError = async (output, context) => {
@@ -645,10 +476,9 @@ const de_CancelReplayCommandError = async (output, context) => {
645
476
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
646
477
  default:
647
478
  const parsedBody = parsedOutput.body;
648
- (0, smithy_client_1.throwDefaultError)({
479
+ return throwDefaultError({
649
480
  output,
650
481
  parsedBody,
651
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
652
482
  errorCode,
653
483
  });
654
484
  }
@@ -664,7 +494,7 @@ const de_CreateApiDestinationCommand = async (output, context) => {
664
494
  $metadata: deserializeMetadata(output),
665
495
  ...contents,
666
496
  };
667
- return Promise.resolve(response);
497
+ return response;
668
498
  };
669
499
  exports.de_CreateApiDestinationCommand = de_CreateApiDestinationCommand;
670
500
  const de_CreateApiDestinationCommandError = async (output, context) => {
@@ -688,10 +518,9 @@ const de_CreateApiDestinationCommandError = async (output, context) => {
688
518
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
689
519
  default:
690
520
  const parsedBody = parsedOutput.body;
691
- (0, smithy_client_1.throwDefaultError)({
521
+ return throwDefaultError({
692
522
  output,
693
523
  parsedBody,
694
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
695
524
  errorCode,
696
525
  });
697
526
  }
@@ -707,7 +536,7 @@ const de_CreateArchiveCommand = async (output, context) => {
707
536
  $metadata: deserializeMetadata(output),
708
537
  ...contents,
709
538
  };
710
- return Promise.resolve(response);
539
+ return response;
711
540
  };
712
541
  exports.de_CreateArchiveCommand = de_CreateArchiveCommand;
713
542
  const de_CreateArchiveCommandError = async (output, context) => {
@@ -737,10 +566,9 @@ const de_CreateArchiveCommandError = async (output, context) => {
737
566
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
738
567
  default:
739
568
  const parsedBody = parsedOutput.body;
740
- (0, smithy_client_1.throwDefaultError)({
569
+ return throwDefaultError({
741
570
  output,
742
571
  parsedBody,
743
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
744
572
  errorCode,
745
573
  });
746
574
  }
@@ -756,7 +584,7 @@ const de_CreateConnectionCommand = async (output, context) => {
756
584
  $metadata: deserializeMetadata(output),
757
585
  ...contents,
758
586
  };
759
- return Promise.resolve(response);
587
+ return response;
760
588
  };
761
589
  exports.de_CreateConnectionCommand = de_CreateConnectionCommand;
762
590
  const de_CreateConnectionCommandError = async (output, context) => {
@@ -777,10 +605,9 @@ const de_CreateConnectionCommandError = async (output, context) => {
777
605
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
778
606
  default:
779
607
  const parsedBody = parsedOutput.body;
780
- (0, smithy_client_1.throwDefaultError)({
608
+ return throwDefaultError({
781
609
  output,
782
610
  parsedBody,
783
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
784
611
  errorCode,
785
612
  });
786
613
  }
@@ -791,12 +618,12 @@ const de_CreateEndpointCommand = async (output, context) => {
791
618
  }
792
619
  const data = await parseBody(output.body, context);
793
620
  let contents = {};
794
- contents = de_CreateEndpointResponse(data, context);
621
+ contents = (0, smithy_client_1._json)(data);
795
622
  const response = {
796
623
  $metadata: deserializeMetadata(output),
797
624
  ...contents,
798
625
  };
799
- return Promise.resolve(response);
626
+ return response;
800
627
  };
801
628
  exports.de_CreateEndpointCommand = de_CreateEndpointCommand;
802
629
  const de_CreateEndpointCommandError = async (output, context) => {
@@ -817,10 +644,9 @@ const de_CreateEndpointCommandError = async (output, context) => {
817
644
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
818
645
  default:
819
646
  const parsedBody = parsedOutput.body;
820
- (0, smithy_client_1.throwDefaultError)({
647
+ return throwDefaultError({
821
648
  output,
822
649
  parsedBody,
823
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
824
650
  errorCode,
825
651
  });
826
652
  }
@@ -831,12 +657,12 @@ const de_CreateEventBusCommand = async (output, context) => {
831
657
  }
832
658
  const data = await parseBody(output.body, context);
833
659
  let contents = {};
834
- contents = de_CreateEventBusResponse(data, context);
660
+ contents = (0, smithy_client_1._json)(data);
835
661
  const response = {
836
662
  $metadata: deserializeMetadata(output),
837
663
  ...contents,
838
664
  };
839
- return Promise.resolve(response);
665
+ return response;
840
666
  };
841
667
  exports.de_CreateEventBusCommand = de_CreateEventBusCommand;
842
668
  const de_CreateEventBusCommandError = async (output, context) => {
@@ -869,10 +695,9 @@ const de_CreateEventBusCommandError = async (output, context) => {
869
695
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
870
696
  default:
871
697
  const parsedBody = parsedOutput.body;
872
- (0, smithy_client_1.throwDefaultError)({
698
+ return throwDefaultError({
873
699
  output,
874
700
  parsedBody,
875
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
876
701
  errorCode,
877
702
  });
878
703
  }
@@ -883,12 +708,12 @@ const de_CreatePartnerEventSourceCommand = async (output, context) => {
883
708
  }
884
709
  const data = await parseBody(output.body, context);
885
710
  let contents = {};
886
- contents = de_CreatePartnerEventSourceResponse(data, context);
711
+ contents = (0, smithy_client_1._json)(data);
887
712
  const response = {
888
713
  $metadata: deserializeMetadata(output),
889
714
  ...contents,
890
715
  };
891
- return Promise.resolve(response);
716
+ return response;
892
717
  };
893
718
  exports.de_CreatePartnerEventSourceCommand = de_CreatePartnerEventSourceCommand;
894
719
  const de_CreatePartnerEventSourceCommandError = async (output, context) => {
@@ -915,10 +740,9 @@ const de_CreatePartnerEventSourceCommandError = async (output, context) => {
915
740
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
916
741
  default:
917
742
  const parsedBody = parsedOutput.body;
918
- (0, smithy_client_1.throwDefaultError)({
743
+ return throwDefaultError({
919
744
  output,
920
745
  parsedBody,
921
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
922
746
  errorCode,
923
747
  });
924
748
  }
@@ -931,7 +755,7 @@ const de_DeactivateEventSourceCommand = async (output, context) => {
931
755
  const response = {
932
756
  $metadata: deserializeMetadata(output),
933
757
  };
934
- return Promise.resolve(response);
758
+ return response;
935
759
  };
936
760
  exports.de_DeactivateEventSourceCommand = de_DeactivateEventSourceCommand;
937
761
  const de_DeactivateEventSourceCommandError = async (output, context) => {
@@ -958,10 +782,9 @@ const de_DeactivateEventSourceCommandError = async (output, context) => {
958
782
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
959
783
  default:
960
784
  const parsedBody = parsedOutput.body;
961
- (0, smithy_client_1.throwDefaultError)({
785
+ return throwDefaultError({
962
786
  output,
963
787
  parsedBody,
964
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
965
788
  errorCode,
966
789
  });
967
790
  }
@@ -977,7 +800,7 @@ const de_DeauthorizeConnectionCommand = async (output, context) => {
977
800
  $metadata: deserializeMetadata(output),
978
801
  ...contents,
979
802
  };
980
- return Promise.resolve(response);
803
+ return response;
981
804
  };
982
805
  exports.de_DeauthorizeConnectionCommand = de_DeauthorizeConnectionCommand;
983
806
  const de_DeauthorizeConnectionCommandError = async (output, context) => {
@@ -998,10 +821,9 @@ const de_DeauthorizeConnectionCommandError = async (output, context) => {
998
821
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
999
822
  default:
1000
823
  const parsedBody = parsedOutput.body;
1001
- (0, smithy_client_1.throwDefaultError)({
824
+ return throwDefaultError({
1002
825
  output,
1003
826
  parsedBody,
1004
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1005
827
  errorCode,
1006
828
  });
1007
829
  }
@@ -1012,12 +834,12 @@ const de_DeleteApiDestinationCommand = async (output, context) => {
1012
834
  }
1013
835
  const data = await parseBody(output.body, context);
1014
836
  let contents = {};
1015
- contents = de_DeleteApiDestinationResponse(data, context);
837
+ contents = (0, smithy_client_1._json)(data);
1016
838
  const response = {
1017
839
  $metadata: deserializeMetadata(output),
1018
840
  ...contents,
1019
841
  };
1020
- return Promise.resolve(response);
842
+ return response;
1021
843
  };
1022
844
  exports.de_DeleteApiDestinationCommand = de_DeleteApiDestinationCommand;
1023
845
  const de_DeleteApiDestinationCommandError = async (output, context) => {
@@ -1038,10 +860,9 @@ const de_DeleteApiDestinationCommandError = async (output, context) => {
1038
860
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1039
861
  default:
1040
862
  const parsedBody = parsedOutput.body;
1041
- (0, smithy_client_1.throwDefaultError)({
863
+ return throwDefaultError({
1042
864
  output,
1043
865
  parsedBody,
1044
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1045
866
  errorCode,
1046
867
  });
1047
868
  }
@@ -1052,12 +873,12 @@ const de_DeleteArchiveCommand = async (output, context) => {
1052
873
  }
1053
874
  const data = await parseBody(output.body, context);
1054
875
  let contents = {};
1055
- contents = de_DeleteArchiveResponse(data, context);
876
+ contents = (0, smithy_client_1._json)(data);
1056
877
  const response = {
1057
878
  $metadata: deserializeMetadata(output),
1058
879
  ...contents,
1059
880
  };
1060
- return Promise.resolve(response);
881
+ return response;
1061
882
  };
1062
883
  exports.de_DeleteArchiveCommand = de_DeleteArchiveCommand;
1063
884
  const de_DeleteArchiveCommandError = async (output, context) => {
@@ -1078,10 +899,9 @@ const de_DeleteArchiveCommandError = async (output, context) => {
1078
899
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1079
900
  default:
1080
901
  const parsedBody = parsedOutput.body;
1081
- (0, smithy_client_1.throwDefaultError)({
902
+ return throwDefaultError({
1082
903
  output,
1083
904
  parsedBody,
1084
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1085
905
  errorCode,
1086
906
  });
1087
907
  }
@@ -1097,7 +917,7 @@ const de_DeleteConnectionCommand = async (output, context) => {
1097
917
  $metadata: deserializeMetadata(output),
1098
918
  ...contents,
1099
919
  };
1100
- return Promise.resolve(response);
920
+ return response;
1101
921
  };
1102
922
  exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
1103
923
  const de_DeleteConnectionCommandError = async (output, context) => {
@@ -1118,10 +938,9 @@ const de_DeleteConnectionCommandError = async (output, context) => {
1118
938
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1119
939
  default:
1120
940
  const parsedBody = parsedOutput.body;
1121
- (0, smithy_client_1.throwDefaultError)({
941
+ return throwDefaultError({
1122
942
  output,
1123
943
  parsedBody,
1124
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1125
944
  errorCode,
1126
945
  });
1127
946
  }
@@ -1132,12 +951,12 @@ const de_DeleteEndpointCommand = async (output, context) => {
1132
951
  }
1133
952
  const data = await parseBody(output.body, context);
1134
953
  let contents = {};
1135
- contents = de_DeleteEndpointResponse(data, context);
954
+ contents = (0, smithy_client_1._json)(data);
1136
955
  const response = {
1137
956
  $metadata: deserializeMetadata(output),
1138
957
  ...contents,
1139
958
  };
1140
- return Promise.resolve(response);
959
+ return response;
1141
960
  };
1142
961
  exports.de_DeleteEndpointCommand = de_DeleteEndpointCommand;
1143
962
  const de_DeleteEndpointCommandError = async (output, context) => {
@@ -1158,10 +977,9 @@ const de_DeleteEndpointCommandError = async (output, context) => {
1158
977
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1159
978
  default:
1160
979
  const parsedBody = parsedOutput.body;
1161
- (0, smithy_client_1.throwDefaultError)({
980
+ return throwDefaultError({
1162
981
  output,
1163
982
  parsedBody,
1164
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1165
983
  errorCode,
1166
984
  });
1167
985
  }
@@ -1174,7 +992,7 @@ const de_DeleteEventBusCommand = async (output, context) => {
1174
992
  const response = {
1175
993
  $metadata: deserializeMetadata(output),
1176
994
  };
1177
- return Promise.resolve(response);
995
+ return response;
1178
996
  };
1179
997
  exports.de_DeleteEventBusCommand = de_DeleteEventBusCommand;
1180
998
  const de_DeleteEventBusCommandError = async (output, context) => {
@@ -1192,10 +1010,9 @@ const de_DeleteEventBusCommandError = async (output, context) => {
1192
1010
  throw await de_InternalExceptionRes(parsedOutput, context);
1193
1011
  default:
1194
1012
  const parsedBody = parsedOutput.body;
1195
- (0, smithy_client_1.throwDefaultError)({
1013
+ return throwDefaultError({
1196
1014
  output,
1197
1015
  parsedBody,
1198
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1199
1016
  errorCode,
1200
1017
  });
1201
1018
  }
@@ -1208,7 +1025,7 @@ const de_DeletePartnerEventSourceCommand = async (output, context) => {
1208
1025
  const response = {
1209
1026
  $metadata: deserializeMetadata(output),
1210
1027
  };
1211
- return Promise.resolve(response);
1028
+ return response;
1212
1029
  };
1213
1030
  exports.de_DeletePartnerEventSourceCommand = de_DeletePartnerEventSourceCommand;
1214
1031
  const de_DeletePartnerEventSourceCommandError = async (output, context) => {
@@ -1229,10 +1046,9 @@ const de_DeletePartnerEventSourceCommandError = async (output, context) => {
1229
1046
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
1230
1047
  default:
1231
1048
  const parsedBody = parsedOutput.body;
1232
- (0, smithy_client_1.throwDefaultError)({
1049
+ return throwDefaultError({
1233
1050
  output,
1234
1051
  parsedBody,
1235
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1236
1052
  errorCode,
1237
1053
  });
1238
1054
  }
@@ -1245,7 +1061,7 @@ const de_DeleteRuleCommand = async (output, context) => {
1245
1061
  const response = {
1246
1062
  $metadata: deserializeMetadata(output),
1247
1063
  };
1248
- return Promise.resolve(response);
1064
+ return response;
1249
1065
  };
1250
1066
  exports.de_DeleteRuleCommand = de_DeleteRuleCommand;
1251
1067
  const de_DeleteRuleCommandError = async (output, context) => {
@@ -1269,10 +1085,9 @@ const de_DeleteRuleCommandError = async (output, context) => {
1269
1085
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1270
1086
  default:
1271
1087
  const parsedBody = parsedOutput.body;
1272
- (0, smithy_client_1.throwDefaultError)({
1088
+ return throwDefaultError({
1273
1089
  output,
1274
1090
  parsedBody,
1275
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1276
1091
  errorCode,
1277
1092
  });
1278
1093
  }
@@ -1288,7 +1103,7 @@ const de_DescribeApiDestinationCommand = async (output, context) => {
1288
1103
  $metadata: deserializeMetadata(output),
1289
1104
  ...contents,
1290
1105
  };
1291
- return Promise.resolve(response);
1106
+ return response;
1292
1107
  };
1293
1108
  exports.de_DescribeApiDestinationCommand = de_DescribeApiDestinationCommand;
1294
1109
  const de_DescribeApiDestinationCommandError = async (output, context) => {
@@ -1306,10 +1121,9 @@ const de_DescribeApiDestinationCommandError = async (output, context) => {
1306
1121
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1307
1122
  default:
1308
1123
  const parsedBody = parsedOutput.body;
1309
- (0, smithy_client_1.throwDefaultError)({
1124
+ return throwDefaultError({
1310
1125
  output,
1311
1126
  parsedBody,
1312
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1313
1127
  errorCode,
1314
1128
  });
1315
1129
  }
@@ -1325,7 +1139,7 @@ const de_DescribeArchiveCommand = async (output, context) => {
1325
1139
  $metadata: deserializeMetadata(output),
1326
1140
  ...contents,
1327
1141
  };
1328
- return Promise.resolve(response);
1142
+ return response;
1329
1143
  };
1330
1144
  exports.de_DescribeArchiveCommand = de_DescribeArchiveCommand;
1331
1145
  const de_DescribeArchiveCommandError = async (output, context) => {
@@ -1346,10 +1160,9 @@ const de_DescribeArchiveCommandError = async (output, context) => {
1346
1160
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1347
1161
  default:
1348
1162
  const parsedBody = parsedOutput.body;
1349
- (0, smithy_client_1.throwDefaultError)({
1163
+ return throwDefaultError({
1350
1164
  output,
1351
1165
  parsedBody,
1352
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1353
1166
  errorCode,
1354
1167
  });
1355
1168
  }
@@ -1365,7 +1178,7 @@ const de_DescribeConnectionCommand = async (output, context) => {
1365
1178
  $metadata: deserializeMetadata(output),
1366
1179
  ...contents,
1367
1180
  };
1368
- return Promise.resolve(response);
1181
+ return response;
1369
1182
  };
1370
1183
  exports.de_DescribeConnectionCommand = de_DescribeConnectionCommand;
1371
1184
  const de_DescribeConnectionCommandError = async (output, context) => {
@@ -1383,10 +1196,9 @@ const de_DescribeConnectionCommandError = async (output, context) => {
1383
1196
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1384
1197
  default:
1385
1198
  const parsedBody = parsedOutput.body;
1386
- (0, smithy_client_1.throwDefaultError)({
1199
+ return throwDefaultError({
1387
1200
  output,
1388
1201
  parsedBody,
1389
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1390
1202
  errorCode,
1391
1203
  });
1392
1204
  }
@@ -1402,7 +1214,7 @@ const de_DescribeEndpointCommand = async (output, context) => {
1402
1214
  $metadata: deserializeMetadata(output),
1403
1215
  ...contents,
1404
1216
  };
1405
- return Promise.resolve(response);
1217
+ return response;
1406
1218
  };
1407
1219
  exports.de_DescribeEndpointCommand = de_DescribeEndpointCommand;
1408
1220
  const de_DescribeEndpointCommandError = async (output, context) => {
@@ -1420,10 +1232,9 @@ const de_DescribeEndpointCommandError = async (output, context) => {
1420
1232
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1421
1233
  default:
1422
1234
  const parsedBody = parsedOutput.body;
1423
- (0, smithy_client_1.throwDefaultError)({
1235
+ return throwDefaultError({
1424
1236
  output,
1425
1237
  parsedBody,
1426
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1427
1238
  errorCode,
1428
1239
  });
1429
1240
  }
@@ -1434,12 +1245,12 @@ const de_DescribeEventBusCommand = async (output, context) => {
1434
1245
  }
1435
1246
  const data = await parseBody(output.body, context);
1436
1247
  let contents = {};
1437
- contents = de_DescribeEventBusResponse(data, context);
1248
+ contents = (0, smithy_client_1._json)(data);
1438
1249
  const response = {
1439
1250
  $metadata: deserializeMetadata(output),
1440
1251
  ...contents,
1441
1252
  };
1442
- return Promise.resolve(response);
1253
+ return response;
1443
1254
  };
1444
1255
  exports.de_DescribeEventBusCommand = de_DescribeEventBusCommand;
1445
1256
  const de_DescribeEventBusCommandError = async (output, context) => {
@@ -1457,10 +1268,9 @@ const de_DescribeEventBusCommandError = async (output, context) => {
1457
1268
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1458
1269
  default:
1459
1270
  const parsedBody = parsedOutput.body;
1460
- (0, smithy_client_1.throwDefaultError)({
1271
+ return throwDefaultError({
1461
1272
  output,
1462
1273
  parsedBody,
1463
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1464
1274
  errorCode,
1465
1275
  });
1466
1276
  }
@@ -1476,7 +1286,7 @@ const de_DescribeEventSourceCommand = async (output, context) => {
1476
1286
  $metadata: deserializeMetadata(output),
1477
1287
  ...contents,
1478
1288
  };
1479
- return Promise.resolve(response);
1289
+ return response;
1480
1290
  };
1481
1291
  exports.de_DescribeEventSourceCommand = de_DescribeEventSourceCommand;
1482
1292
  const de_DescribeEventSourceCommandError = async (output, context) => {
@@ -1497,10 +1307,9 @@ const de_DescribeEventSourceCommandError = async (output, context) => {
1497
1307
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1498
1308
  default:
1499
1309
  const parsedBody = parsedOutput.body;
1500
- (0, smithy_client_1.throwDefaultError)({
1310
+ return throwDefaultError({
1501
1311
  output,
1502
1312
  parsedBody,
1503
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1504
1313
  errorCode,
1505
1314
  });
1506
1315
  }
@@ -1511,12 +1320,12 @@ const de_DescribePartnerEventSourceCommand = async (output, context) => {
1511
1320
  }
1512
1321
  const data = await parseBody(output.body, context);
1513
1322
  let contents = {};
1514
- contents = de_DescribePartnerEventSourceResponse(data, context);
1323
+ contents = (0, smithy_client_1._json)(data);
1515
1324
  const response = {
1516
1325
  $metadata: deserializeMetadata(output),
1517
1326
  ...contents,
1518
1327
  };
1519
- return Promise.resolve(response);
1328
+ return response;
1520
1329
  };
1521
1330
  exports.de_DescribePartnerEventSourceCommand = de_DescribePartnerEventSourceCommand;
1522
1331
  const de_DescribePartnerEventSourceCommandError = async (output, context) => {
@@ -1537,10 +1346,9 @@ const de_DescribePartnerEventSourceCommandError = async (output, context) => {
1537
1346
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1538
1347
  default:
1539
1348
  const parsedBody = parsedOutput.body;
1540
- (0, smithy_client_1.throwDefaultError)({
1349
+ return throwDefaultError({
1541
1350
  output,
1542
1351
  parsedBody,
1543
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1544
1352
  errorCode,
1545
1353
  });
1546
1354
  }
@@ -1556,7 +1364,7 @@ const de_DescribeReplayCommand = async (output, context) => {
1556
1364
  $metadata: deserializeMetadata(output),
1557
1365
  ...contents,
1558
1366
  };
1559
- return Promise.resolve(response);
1367
+ return response;
1560
1368
  };
1561
1369
  exports.de_DescribeReplayCommand = de_DescribeReplayCommand;
1562
1370
  const de_DescribeReplayCommandError = async (output, context) => {
@@ -1574,10 +1382,9 @@ const de_DescribeReplayCommandError = async (output, context) => {
1574
1382
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1575
1383
  default:
1576
1384
  const parsedBody = parsedOutput.body;
1577
- (0, smithy_client_1.throwDefaultError)({
1385
+ return throwDefaultError({
1578
1386
  output,
1579
1387
  parsedBody,
1580
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1581
1388
  errorCode,
1582
1389
  });
1583
1390
  }
@@ -1588,12 +1395,12 @@ const de_DescribeRuleCommand = async (output, context) => {
1588
1395
  }
1589
1396
  const data = await parseBody(output.body, context);
1590
1397
  let contents = {};
1591
- contents = de_DescribeRuleResponse(data, context);
1398
+ contents = (0, smithy_client_1._json)(data);
1592
1399
  const response = {
1593
1400
  $metadata: deserializeMetadata(output),
1594
1401
  ...contents,
1595
1402
  };
1596
- return Promise.resolve(response);
1403
+ return response;
1597
1404
  };
1598
1405
  exports.de_DescribeRuleCommand = de_DescribeRuleCommand;
1599
1406
  const de_DescribeRuleCommandError = async (output, context) => {
@@ -1611,10 +1418,9 @@ const de_DescribeRuleCommandError = async (output, context) => {
1611
1418
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1612
1419
  default:
1613
1420
  const parsedBody = parsedOutput.body;
1614
- (0, smithy_client_1.throwDefaultError)({
1421
+ return throwDefaultError({
1615
1422
  output,
1616
1423
  parsedBody,
1617
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1618
1424
  errorCode,
1619
1425
  });
1620
1426
  }
@@ -1627,7 +1433,7 @@ const de_DisableRuleCommand = async (output, context) => {
1627
1433
  const response = {
1628
1434
  $metadata: deserializeMetadata(output),
1629
1435
  };
1630
- return Promise.resolve(response);
1436
+ return response;
1631
1437
  };
1632
1438
  exports.de_DisableRuleCommand = de_DisableRuleCommand;
1633
1439
  const de_DisableRuleCommandError = async (output, context) => {
@@ -1651,10 +1457,9 @@ const de_DisableRuleCommandError = async (output, context) => {
1651
1457
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1652
1458
  default:
1653
1459
  const parsedBody = parsedOutput.body;
1654
- (0, smithy_client_1.throwDefaultError)({
1460
+ return throwDefaultError({
1655
1461
  output,
1656
1462
  parsedBody,
1657
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1658
1463
  errorCode,
1659
1464
  });
1660
1465
  }
@@ -1667,7 +1472,7 @@ const de_EnableRuleCommand = async (output, context) => {
1667
1472
  const response = {
1668
1473
  $metadata: deserializeMetadata(output),
1669
1474
  };
1670
- return Promise.resolve(response);
1475
+ return response;
1671
1476
  };
1672
1477
  exports.de_EnableRuleCommand = de_EnableRuleCommand;
1673
1478
  const de_EnableRuleCommandError = async (output, context) => {
@@ -1691,10 +1496,9 @@ const de_EnableRuleCommandError = async (output, context) => {
1691
1496
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1692
1497
  default:
1693
1498
  const parsedBody = parsedOutput.body;
1694
- (0, smithy_client_1.throwDefaultError)({
1499
+ return throwDefaultError({
1695
1500
  output,
1696
1501
  parsedBody,
1697
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1698
1502
  errorCode,
1699
1503
  });
1700
1504
  }
@@ -1710,7 +1514,7 @@ const de_ListApiDestinationsCommand = async (output, context) => {
1710
1514
  $metadata: deserializeMetadata(output),
1711
1515
  ...contents,
1712
1516
  };
1713
- return Promise.resolve(response);
1517
+ return response;
1714
1518
  };
1715
1519
  exports.de_ListApiDestinationsCommand = de_ListApiDestinationsCommand;
1716
1520
  const de_ListApiDestinationsCommandError = async (output, context) => {
@@ -1725,10 +1529,9 @@ const de_ListApiDestinationsCommandError = async (output, context) => {
1725
1529
  throw await de_InternalExceptionRes(parsedOutput, context);
1726
1530
  default:
1727
1531
  const parsedBody = parsedOutput.body;
1728
- (0, smithy_client_1.throwDefaultError)({
1532
+ return throwDefaultError({
1729
1533
  output,
1730
1534
  parsedBody,
1731
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1732
1535
  errorCode,
1733
1536
  });
1734
1537
  }
@@ -1744,7 +1547,7 @@ const de_ListArchivesCommand = async (output, context) => {
1744
1547
  $metadata: deserializeMetadata(output),
1745
1548
  ...contents,
1746
1549
  };
1747
- return Promise.resolve(response);
1550
+ return response;
1748
1551
  };
1749
1552
  exports.de_ListArchivesCommand = de_ListArchivesCommand;
1750
1553
  const de_ListArchivesCommandError = async (output, context) => {
@@ -1762,10 +1565,9 @@ const de_ListArchivesCommandError = async (output, context) => {
1762
1565
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1763
1566
  default:
1764
1567
  const parsedBody = parsedOutput.body;
1765
- (0, smithy_client_1.throwDefaultError)({
1568
+ return throwDefaultError({
1766
1569
  output,
1767
1570
  parsedBody,
1768
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1769
1571
  errorCode,
1770
1572
  });
1771
1573
  }
@@ -1781,7 +1583,7 @@ const de_ListConnectionsCommand = async (output, context) => {
1781
1583
  $metadata: deserializeMetadata(output),
1782
1584
  ...contents,
1783
1585
  };
1784
- return Promise.resolve(response);
1586
+ return response;
1785
1587
  };
1786
1588
  exports.de_ListConnectionsCommand = de_ListConnectionsCommand;
1787
1589
  const de_ListConnectionsCommandError = async (output, context) => {
@@ -1796,10 +1598,9 @@ const de_ListConnectionsCommandError = async (output, context) => {
1796
1598
  throw await de_InternalExceptionRes(parsedOutput, context);
1797
1599
  default:
1798
1600
  const parsedBody = parsedOutput.body;
1799
- (0, smithy_client_1.throwDefaultError)({
1601
+ return throwDefaultError({
1800
1602
  output,
1801
1603
  parsedBody,
1802
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1803
1604
  errorCode,
1804
1605
  });
1805
1606
  }
@@ -1815,7 +1616,7 @@ const de_ListEndpointsCommand = async (output, context) => {
1815
1616
  $metadata: deserializeMetadata(output),
1816
1617
  ...contents,
1817
1618
  };
1818
- return Promise.resolve(response);
1619
+ return response;
1819
1620
  };
1820
1621
  exports.de_ListEndpointsCommand = de_ListEndpointsCommand;
1821
1622
  const de_ListEndpointsCommandError = async (output, context) => {
@@ -1830,10 +1631,9 @@ const de_ListEndpointsCommandError = async (output, context) => {
1830
1631
  throw await de_InternalExceptionRes(parsedOutput, context);
1831
1632
  default:
1832
1633
  const parsedBody = parsedOutput.body;
1833
- (0, smithy_client_1.throwDefaultError)({
1634
+ return throwDefaultError({
1834
1635
  output,
1835
1636
  parsedBody,
1836
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1837
1637
  errorCode,
1838
1638
  });
1839
1639
  }
@@ -1844,12 +1644,12 @@ const de_ListEventBusesCommand = async (output, context) => {
1844
1644
  }
1845
1645
  const data = await parseBody(output.body, context);
1846
1646
  let contents = {};
1847
- contents = de_ListEventBusesResponse(data, context);
1647
+ contents = (0, smithy_client_1._json)(data);
1848
1648
  const response = {
1849
1649
  $metadata: deserializeMetadata(output),
1850
1650
  ...contents,
1851
1651
  };
1852
- return Promise.resolve(response);
1652
+ return response;
1853
1653
  };
1854
1654
  exports.de_ListEventBusesCommand = de_ListEventBusesCommand;
1855
1655
  const de_ListEventBusesCommandError = async (output, context) => {
@@ -1864,10 +1664,9 @@ const de_ListEventBusesCommandError = async (output, context) => {
1864
1664
  throw await de_InternalExceptionRes(parsedOutput, context);
1865
1665
  default:
1866
1666
  const parsedBody = parsedOutput.body;
1867
- (0, smithy_client_1.throwDefaultError)({
1667
+ return throwDefaultError({
1868
1668
  output,
1869
1669
  parsedBody,
1870
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1871
1670
  errorCode,
1872
1671
  });
1873
1672
  }
@@ -1883,7 +1682,7 @@ const de_ListEventSourcesCommand = async (output, context) => {
1883
1682
  $metadata: deserializeMetadata(output),
1884
1683
  ...contents,
1885
1684
  };
1886
- return Promise.resolve(response);
1685
+ return response;
1887
1686
  };
1888
1687
  exports.de_ListEventSourcesCommand = de_ListEventSourcesCommand;
1889
1688
  const de_ListEventSourcesCommandError = async (output, context) => {
@@ -1901,10 +1700,9 @@ const de_ListEventSourcesCommandError = async (output, context) => {
1901
1700
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
1902
1701
  default:
1903
1702
  const parsedBody = parsedOutput.body;
1904
- (0, smithy_client_1.throwDefaultError)({
1703
+ return throwDefaultError({
1905
1704
  output,
1906
1705
  parsedBody,
1907
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1908
1706
  errorCode,
1909
1707
  });
1910
1708
  }
@@ -1920,7 +1718,7 @@ const de_ListPartnerEventSourceAccountsCommand = async (output, context) => {
1920
1718
  $metadata: deserializeMetadata(output),
1921
1719
  ...contents,
1922
1720
  };
1923
- return Promise.resolve(response);
1721
+ return response;
1924
1722
  };
1925
1723
  exports.de_ListPartnerEventSourceAccountsCommand = de_ListPartnerEventSourceAccountsCommand;
1926
1724
  const de_ListPartnerEventSourceAccountsCommandError = async (output, context) => {
@@ -1941,10 +1739,9 @@ const de_ListPartnerEventSourceAccountsCommandError = async (output, context) =>
1941
1739
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1942
1740
  default:
1943
1741
  const parsedBody = parsedOutput.body;
1944
- (0, smithy_client_1.throwDefaultError)({
1742
+ return throwDefaultError({
1945
1743
  output,
1946
1744
  parsedBody,
1947
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1948
1745
  errorCode,
1949
1746
  });
1950
1747
  }
@@ -1955,12 +1752,12 @@ const de_ListPartnerEventSourcesCommand = async (output, context) => {
1955
1752
  }
1956
1753
  const data = await parseBody(output.body, context);
1957
1754
  let contents = {};
1958
- contents = de_ListPartnerEventSourcesResponse(data, context);
1755
+ contents = (0, smithy_client_1._json)(data);
1959
1756
  const response = {
1960
1757
  $metadata: deserializeMetadata(output),
1961
1758
  ...contents,
1962
1759
  };
1963
- return Promise.resolve(response);
1760
+ return response;
1964
1761
  };
1965
1762
  exports.de_ListPartnerEventSourcesCommand = de_ListPartnerEventSourcesCommand;
1966
1763
  const de_ListPartnerEventSourcesCommandError = async (output, context) => {
@@ -1978,10 +1775,9 @@ const de_ListPartnerEventSourcesCommandError = async (output, context) => {
1978
1775
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
1979
1776
  default:
1980
1777
  const parsedBody = parsedOutput.body;
1981
- (0, smithy_client_1.throwDefaultError)({
1778
+ return throwDefaultError({
1982
1779
  output,
1983
1780
  parsedBody,
1984
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
1985
1781
  errorCode,
1986
1782
  });
1987
1783
  }
@@ -1997,7 +1793,7 @@ const de_ListReplaysCommand = async (output, context) => {
1997
1793
  $metadata: deserializeMetadata(output),
1998
1794
  ...contents,
1999
1795
  };
2000
- return Promise.resolve(response);
1796
+ return response;
2001
1797
  };
2002
1798
  exports.de_ListReplaysCommand = de_ListReplaysCommand;
2003
1799
  const de_ListReplaysCommandError = async (output, context) => {
@@ -2012,10 +1808,9 @@ const de_ListReplaysCommandError = async (output, context) => {
2012
1808
  throw await de_InternalExceptionRes(parsedOutput, context);
2013
1809
  default:
2014
1810
  const parsedBody = parsedOutput.body;
2015
- (0, smithy_client_1.throwDefaultError)({
1811
+ return throwDefaultError({
2016
1812
  output,
2017
1813
  parsedBody,
2018
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2019
1814
  errorCode,
2020
1815
  });
2021
1816
  }
@@ -2026,12 +1821,12 @@ const de_ListRuleNamesByTargetCommand = async (output, context) => {
2026
1821
  }
2027
1822
  const data = await parseBody(output.body, context);
2028
1823
  let contents = {};
2029
- contents = de_ListRuleNamesByTargetResponse(data, context);
1824
+ contents = (0, smithy_client_1._json)(data);
2030
1825
  const response = {
2031
1826
  $metadata: deserializeMetadata(output),
2032
1827
  ...contents,
2033
1828
  };
2034
- return Promise.resolve(response);
1829
+ return response;
2035
1830
  };
2036
1831
  exports.de_ListRuleNamesByTargetCommand = de_ListRuleNamesByTargetCommand;
2037
1832
  const de_ListRuleNamesByTargetCommandError = async (output, context) => {
@@ -2049,10 +1844,9 @@ const de_ListRuleNamesByTargetCommandError = async (output, context) => {
2049
1844
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2050
1845
  default:
2051
1846
  const parsedBody = parsedOutput.body;
2052
- (0, smithy_client_1.throwDefaultError)({
1847
+ return throwDefaultError({
2053
1848
  output,
2054
1849
  parsedBody,
2055
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2056
1850
  errorCode,
2057
1851
  });
2058
1852
  }
@@ -2063,12 +1857,12 @@ const de_ListRulesCommand = async (output, context) => {
2063
1857
  }
2064
1858
  const data = await parseBody(output.body, context);
2065
1859
  let contents = {};
2066
- contents = de_ListRulesResponse(data, context);
1860
+ contents = (0, smithy_client_1._json)(data);
2067
1861
  const response = {
2068
1862
  $metadata: deserializeMetadata(output),
2069
1863
  ...contents,
2070
1864
  };
2071
- return Promise.resolve(response);
1865
+ return response;
2072
1866
  };
2073
1867
  exports.de_ListRulesCommand = de_ListRulesCommand;
2074
1868
  const de_ListRulesCommandError = async (output, context) => {
@@ -2086,10 +1880,9 @@ const de_ListRulesCommandError = async (output, context) => {
2086
1880
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2087
1881
  default:
2088
1882
  const parsedBody = parsedOutput.body;
2089
- (0, smithy_client_1.throwDefaultError)({
1883
+ return throwDefaultError({
2090
1884
  output,
2091
1885
  parsedBody,
2092
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2093
1886
  errorCode,
2094
1887
  });
2095
1888
  }
@@ -2100,12 +1893,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2100
1893
  }
2101
1894
  const data = await parseBody(output.body, context);
2102
1895
  let contents = {};
2103
- contents = de_ListTagsForResourceResponse(data, context);
1896
+ contents = (0, smithy_client_1._json)(data);
2104
1897
  const response = {
2105
1898
  $metadata: deserializeMetadata(output),
2106
1899
  ...contents,
2107
1900
  };
2108
- return Promise.resolve(response);
1901
+ return response;
2109
1902
  };
2110
1903
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2111
1904
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2123,10 +1916,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2123
1916
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2124
1917
  default:
2125
1918
  const parsedBody = parsedOutput.body;
2126
- (0, smithy_client_1.throwDefaultError)({
1919
+ return throwDefaultError({
2127
1920
  output,
2128
1921
  parsedBody,
2129
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2130
1922
  errorCode,
2131
1923
  });
2132
1924
  }
@@ -2137,12 +1929,12 @@ const de_ListTargetsByRuleCommand = async (output, context) => {
2137
1929
  }
2138
1930
  const data = await parseBody(output.body, context);
2139
1931
  let contents = {};
2140
- contents = de_ListTargetsByRuleResponse(data, context);
1932
+ contents = (0, smithy_client_1._json)(data);
2141
1933
  const response = {
2142
1934
  $metadata: deserializeMetadata(output),
2143
1935
  ...contents,
2144
1936
  };
2145
- return Promise.resolve(response);
1937
+ return response;
2146
1938
  };
2147
1939
  exports.de_ListTargetsByRuleCommand = de_ListTargetsByRuleCommand;
2148
1940
  const de_ListTargetsByRuleCommandError = async (output, context) => {
@@ -2160,10 +1952,9 @@ const de_ListTargetsByRuleCommandError = async (output, context) => {
2160
1952
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2161
1953
  default:
2162
1954
  const parsedBody = parsedOutput.body;
2163
- (0, smithy_client_1.throwDefaultError)({
1955
+ return throwDefaultError({
2164
1956
  output,
2165
1957
  parsedBody,
2166
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2167
1958
  errorCode,
2168
1959
  });
2169
1960
  }
@@ -2174,12 +1965,12 @@ const de_PutEventsCommand = async (output, context) => {
2174
1965
  }
2175
1966
  const data = await parseBody(output.body, context);
2176
1967
  let contents = {};
2177
- contents = de_PutEventsResponse(data, context);
1968
+ contents = (0, smithy_client_1._json)(data);
2178
1969
  const response = {
2179
1970
  $metadata: deserializeMetadata(output),
2180
1971
  ...contents,
2181
1972
  };
2182
- return Promise.resolve(response);
1973
+ return response;
2183
1974
  };
2184
1975
  exports.de_PutEventsCommand = de_PutEventsCommand;
2185
1976
  const de_PutEventsCommandError = async (output, context) => {
@@ -2194,10 +1985,9 @@ const de_PutEventsCommandError = async (output, context) => {
2194
1985
  throw await de_InternalExceptionRes(parsedOutput, context);
2195
1986
  default:
2196
1987
  const parsedBody = parsedOutput.body;
2197
- (0, smithy_client_1.throwDefaultError)({
1988
+ return throwDefaultError({
2198
1989
  output,
2199
1990
  parsedBody,
2200
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2201
1991
  errorCode,
2202
1992
  });
2203
1993
  }
@@ -2208,12 +1998,12 @@ const de_PutPartnerEventsCommand = async (output, context) => {
2208
1998
  }
2209
1999
  const data = await parseBody(output.body, context);
2210
2000
  let contents = {};
2211
- contents = de_PutPartnerEventsResponse(data, context);
2001
+ contents = (0, smithy_client_1._json)(data);
2212
2002
  const response = {
2213
2003
  $metadata: deserializeMetadata(output),
2214
2004
  ...contents,
2215
2005
  };
2216
- return Promise.resolve(response);
2006
+ return response;
2217
2007
  };
2218
2008
  exports.de_PutPartnerEventsCommand = de_PutPartnerEventsCommand;
2219
2009
  const de_PutPartnerEventsCommandError = async (output, context) => {
@@ -2231,10 +2021,9 @@ const de_PutPartnerEventsCommandError = async (output, context) => {
2231
2021
  throw await de_OperationDisabledExceptionRes(parsedOutput, context);
2232
2022
  default:
2233
2023
  const parsedBody = parsedOutput.body;
2234
- (0, smithy_client_1.throwDefaultError)({
2024
+ return throwDefaultError({
2235
2025
  output,
2236
2026
  parsedBody,
2237
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2238
2027
  errorCode,
2239
2028
  });
2240
2029
  }
@@ -2247,7 +2036,7 @@ const de_PutPermissionCommand = async (output, context) => {
2247
2036
  const response = {
2248
2037
  $metadata: deserializeMetadata(output),
2249
2038
  };
2250
- return Promise.resolve(response);
2039
+ return response;
2251
2040
  };
2252
2041
  exports.de_PutPermissionCommand = de_PutPermissionCommand;
2253
2042
  const de_PutPermissionCommandError = async (output, context) => {
@@ -2274,10 +2063,9 @@ const de_PutPermissionCommandError = async (output, context) => {
2274
2063
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2275
2064
  default:
2276
2065
  const parsedBody = parsedOutput.body;
2277
- (0, smithy_client_1.throwDefaultError)({
2066
+ return throwDefaultError({
2278
2067
  output,
2279
2068
  parsedBody,
2280
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2281
2069
  errorCode,
2282
2070
  });
2283
2071
  }
@@ -2288,12 +2076,12 @@ const de_PutRuleCommand = async (output, context) => {
2288
2076
  }
2289
2077
  const data = await parseBody(output.body, context);
2290
2078
  let contents = {};
2291
- contents = de_PutRuleResponse(data, context);
2079
+ contents = (0, smithy_client_1._json)(data);
2292
2080
  const response = {
2293
2081
  $metadata: deserializeMetadata(output),
2294
2082
  ...contents,
2295
2083
  };
2296
- return Promise.resolve(response);
2084
+ return response;
2297
2085
  };
2298
2086
  exports.de_PutRuleCommand = de_PutRuleCommand;
2299
2087
  const de_PutRuleCommandError = async (output, context) => {
@@ -2323,10 +2111,9 @@ const de_PutRuleCommandError = async (output, context) => {
2323
2111
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2324
2112
  default:
2325
2113
  const parsedBody = parsedOutput.body;
2326
- (0, smithy_client_1.throwDefaultError)({
2114
+ return throwDefaultError({
2327
2115
  output,
2328
2116
  parsedBody,
2329
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2330
2117
  errorCode,
2331
2118
  });
2332
2119
  }
@@ -2337,12 +2124,12 @@ const de_PutTargetsCommand = async (output, context) => {
2337
2124
  }
2338
2125
  const data = await parseBody(output.body, context);
2339
2126
  let contents = {};
2340
- contents = de_PutTargetsResponse(data, context);
2127
+ contents = (0, smithy_client_1._json)(data);
2341
2128
  const response = {
2342
2129
  $metadata: deserializeMetadata(output),
2343
2130
  ...contents,
2344
2131
  };
2345
- return Promise.resolve(response);
2132
+ return response;
2346
2133
  };
2347
2134
  exports.de_PutTargetsCommand = de_PutTargetsCommand;
2348
2135
  const de_PutTargetsCommandError = async (output, context) => {
@@ -2369,10 +2156,9 @@ const de_PutTargetsCommandError = async (output, context) => {
2369
2156
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2370
2157
  default:
2371
2158
  const parsedBody = parsedOutput.body;
2372
- (0, smithy_client_1.throwDefaultError)({
2159
+ return throwDefaultError({
2373
2160
  output,
2374
2161
  parsedBody,
2375
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2376
2162
  errorCode,
2377
2163
  });
2378
2164
  }
@@ -2385,7 +2171,7 @@ const de_RemovePermissionCommand = async (output, context) => {
2385
2171
  const response = {
2386
2172
  $metadata: deserializeMetadata(output),
2387
2173
  };
2388
- return Promise.resolve(response);
2174
+ return response;
2389
2175
  };
2390
2176
  exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
2391
2177
  const de_RemovePermissionCommandError = async (output, context) => {
@@ -2409,10 +2195,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
2409
2195
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2410
2196
  default:
2411
2197
  const parsedBody = parsedOutput.body;
2412
- (0, smithy_client_1.throwDefaultError)({
2198
+ return throwDefaultError({
2413
2199
  output,
2414
2200
  parsedBody,
2415
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2416
2201
  errorCode,
2417
2202
  });
2418
2203
  }
@@ -2423,12 +2208,12 @@ const de_RemoveTargetsCommand = async (output, context) => {
2423
2208
  }
2424
2209
  const data = await parseBody(output.body, context);
2425
2210
  let contents = {};
2426
- contents = de_RemoveTargetsResponse(data, context);
2211
+ contents = (0, smithy_client_1._json)(data);
2427
2212
  const response = {
2428
2213
  $metadata: deserializeMetadata(output),
2429
2214
  ...contents,
2430
2215
  };
2431
- return Promise.resolve(response);
2216
+ return response;
2432
2217
  };
2433
2218
  exports.de_RemoveTargetsCommand = de_RemoveTargetsCommand;
2434
2219
  const de_RemoveTargetsCommandError = async (output, context) => {
@@ -2452,10 +2237,9 @@ const de_RemoveTargetsCommandError = async (output, context) => {
2452
2237
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2453
2238
  default:
2454
2239
  const parsedBody = parsedOutput.body;
2455
- (0, smithy_client_1.throwDefaultError)({
2240
+ return throwDefaultError({
2456
2241
  output,
2457
2242
  parsedBody,
2458
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2459
2243
  errorCode,
2460
2244
  });
2461
2245
  }
@@ -2471,7 +2255,7 @@ const de_StartReplayCommand = async (output, context) => {
2471
2255
  $metadata: deserializeMetadata(output),
2472
2256
  ...contents,
2473
2257
  };
2474
- return Promise.resolve(response);
2258
+ return response;
2475
2259
  };
2476
2260
  exports.de_StartReplayCommand = de_StartReplayCommand;
2477
2261
  const de_StartReplayCommandError = async (output, context) => {
@@ -2498,10 +2282,9 @@ const de_StartReplayCommandError = async (output, context) => {
2498
2282
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2499
2283
  default:
2500
2284
  const parsedBody = parsedOutput.body;
2501
- (0, smithy_client_1.throwDefaultError)({
2285
+ return throwDefaultError({
2502
2286
  output,
2503
2287
  parsedBody,
2504
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2505
2288
  errorCode,
2506
2289
  });
2507
2290
  }
@@ -2512,12 +2295,12 @@ const de_TagResourceCommand = async (output, context) => {
2512
2295
  }
2513
2296
  const data = await parseBody(output.body, context);
2514
2297
  let contents = {};
2515
- contents = de_TagResourceResponse(data, context);
2298
+ contents = (0, smithy_client_1._json)(data);
2516
2299
  const response = {
2517
2300
  $metadata: deserializeMetadata(output),
2518
2301
  ...contents,
2519
2302
  };
2520
- return Promise.resolve(response);
2303
+ return response;
2521
2304
  };
2522
2305
  exports.de_TagResourceCommand = de_TagResourceCommand;
2523
2306
  const de_TagResourceCommandError = async (output, context) => {
@@ -2541,10 +2324,9 @@ const de_TagResourceCommandError = async (output, context) => {
2541
2324
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2542
2325
  default:
2543
2326
  const parsedBody = parsedOutput.body;
2544
- (0, smithy_client_1.throwDefaultError)({
2327
+ return throwDefaultError({
2545
2328
  output,
2546
2329
  parsedBody,
2547
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2548
2330
  errorCode,
2549
2331
  });
2550
2332
  }
@@ -2555,12 +2337,12 @@ const de_TestEventPatternCommand = async (output, context) => {
2555
2337
  }
2556
2338
  const data = await parseBody(output.body, context);
2557
2339
  let contents = {};
2558
- contents = de_TestEventPatternResponse(data, context);
2340
+ contents = (0, smithy_client_1._json)(data);
2559
2341
  const response = {
2560
2342
  $metadata: deserializeMetadata(output),
2561
2343
  ...contents,
2562
2344
  };
2563
- return Promise.resolve(response);
2345
+ return response;
2564
2346
  };
2565
2347
  exports.de_TestEventPatternCommand = de_TestEventPatternCommand;
2566
2348
  const de_TestEventPatternCommandError = async (output, context) => {
@@ -2578,10 +2360,9 @@ const de_TestEventPatternCommandError = async (output, context) => {
2578
2360
  throw await de_InvalidEventPatternExceptionRes(parsedOutput, context);
2579
2361
  default:
2580
2362
  const parsedBody = parsedOutput.body;
2581
- (0, smithy_client_1.throwDefaultError)({
2363
+ return throwDefaultError({
2582
2364
  output,
2583
2365
  parsedBody,
2584
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2585
2366
  errorCode,
2586
2367
  });
2587
2368
  }
@@ -2592,12 +2373,12 @@ const de_UntagResourceCommand = async (output, context) => {
2592
2373
  }
2593
2374
  const data = await parseBody(output.body, context);
2594
2375
  let contents = {};
2595
- contents = de_UntagResourceResponse(data, context);
2376
+ contents = (0, smithy_client_1._json)(data);
2596
2377
  const response = {
2597
2378
  $metadata: deserializeMetadata(output),
2598
2379
  ...contents,
2599
2380
  };
2600
- return Promise.resolve(response);
2381
+ return response;
2601
2382
  };
2602
2383
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2603
2384
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2621,10 +2402,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2621
2402
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2622
2403
  default:
2623
2404
  const parsedBody = parsedOutput.body;
2624
- (0, smithy_client_1.throwDefaultError)({
2405
+ return throwDefaultError({
2625
2406
  output,
2626
2407
  parsedBody,
2627
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2628
2408
  errorCode,
2629
2409
  });
2630
2410
  }
@@ -2640,7 +2420,7 @@ const de_UpdateApiDestinationCommand = async (output, context) => {
2640
2420
  $metadata: deserializeMetadata(output),
2641
2421
  ...contents,
2642
2422
  };
2643
- return Promise.resolve(response);
2423
+ return response;
2644
2424
  };
2645
2425
  exports.de_UpdateApiDestinationCommand = de_UpdateApiDestinationCommand;
2646
2426
  const de_UpdateApiDestinationCommandError = async (output, context) => {
@@ -2664,10 +2444,9 @@ const de_UpdateApiDestinationCommandError = async (output, context) => {
2664
2444
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2665
2445
  default:
2666
2446
  const parsedBody = parsedOutput.body;
2667
- (0, smithy_client_1.throwDefaultError)({
2447
+ return throwDefaultError({
2668
2448
  output,
2669
2449
  parsedBody,
2670
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2671
2450
  errorCode,
2672
2451
  });
2673
2452
  }
@@ -2683,7 +2462,7 @@ const de_UpdateArchiveCommand = async (output, context) => {
2683
2462
  $metadata: deserializeMetadata(output),
2684
2463
  ...contents,
2685
2464
  };
2686
- return Promise.resolve(response);
2465
+ return response;
2687
2466
  };
2688
2467
  exports.de_UpdateArchiveCommand = de_UpdateArchiveCommand;
2689
2468
  const de_UpdateArchiveCommandError = async (output, context) => {
@@ -2710,10 +2489,9 @@ const de_UpdateArchiveCommandError = async (output, context) => {
2710
2489
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2711
2490
  default:
2712
2491
  const parsedBody = parsedOutput.body;
2713
- (0, smithy_client_1.throwDefaultError)({
2492
+ return throwDefaultError({
2714
2493
  output,
2715
2494
  parsedBody,
2716
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2717
2495
  errorCode,
2718
2496
  });
2719
2497
  }
@@ -2729,7 +2507,7 @@ const de_UpdateConnectionCommand = async (output, context) => {
2729
2507
  $metadata: deserializeMetadata(output),
2730
2508
  ...contents,
2731
2509
  };
2732
- return Promise.resolve(response);
2510
+ return response;
2733
2511
  };
2734
2512
  exports.de_UpdateConnectionCommand = de_UpdateConnectionCommand;
2735
2513
  const de_UpdateConnectionCommandError = async (output, context) => {
@@ -2753,10 +2531,9 @@ const de_UpdateConnectionCommandError = async (output, context) => {
2753
2531
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2754
2532
  default:
2755
2533
  const parsedBody = parsedOutput.body;
2756
- (0, smithy_client_1.throwDefaultError)({
2534
+ return throwDefaultError({
2757
2535
  output,
2758
2536
  parsedBody,
2759
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2760
2537
  errorCode,
2761
2538
  });
2762
2539
  }
@@ -2767,12 +2544,12 @@ const de_UpdateEndpointCommand = async (output, context) => {
2767
2544
  }
2768
2545
  const data = await parseBody(output.body, context);
2769
2546
  let contents = {};
2770
- contents = de_UpdateEndpointResponse(data, context);
2547
+ contents = (0, smithy_client_1._json)(data);
2771
2548
  const response = {
2772
2549
  $metadata: deserializeMetadata(output),
2773
2550
  ...contents,
2774
2551
  };
2775
- return Promise.resolve(response);
2552
+ return response;
2776
2553
  };
2777
2554
  exports.de_UpdateEndpointCommand = de_UpdateEndpointCommand;
2778
2555
  const de_UpdateEndpointCommandError = async (output, context) => {
@@ -2793,17 +2570,16 @@ const de_UpdateEndpointCommandError = async (output, context) => {
2793
2570
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2794
2571
  default:
2795
2572
  const parsedBody = parsedOutput.body;
2796
- (0, smithy_client_1.throwDefaultError)({
2573
+ return throwDefaultError({
2797
2574
  output,
2798
2575
  parsedBody,
2799
- exceptionCtor: EventBridgeServiceException_1.EventBridgeServiceException,
2800
2576
  errorCode,
2801
2577
  });
2802
2578
  }
2803
2579
  };
2804
2580
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2805
2581
  const body = parsedOutput.body;
2806
- const deserialized = de_ConcurrentModificationException(body, context);
2582
+ const deserialized = (0, smithy_client_1._json)(body);
2807
2583
  const exception = new models_0_1.ConcurrentModificationException({
2808
2584
  $metadata: deserializeMetadata(parsedOutput),
2809
2585
  ...deserialized,
@@ -2812,7 +2588,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2812
2588
  };
2813
2589
  const de_IllegalStatusExceptionRes = async (parsedOutput, context) => {
2814
2590
  const body = parsedOutput.body;
2815
- const deserialized = de_IllegalStatusException(body, context);
2591
+ const deserialized = (0, smithy_client_1._json)(body);
2816
2592
  const exception = new models_0_1.IllegalStatusException({
2817
2593
  $metadata: deserializeMetadata(parsedOutput),
2818
2594
  ...deserialized,
@@ -2821,7 +2597,7 @@ const de_IllegalStatusExceptionRes = async (parsedOutput, context) => {
2821
2597
  };
2822
2598
  const de_InternalExceptionRes = async (parsedOutput, context) => {
2823
2599
  const body = parsedOutput.body;
2824
- const deserialized = de_InternalException(body, context);
2600
+ const deserialized = (0, smithy_client_1._json)(body);
2825
2601
  const exception = new models_0_1.InternalException({
2826
2602
  $metadata: deserializeMetadata(parsedOutput),
2827
2603
  ...deserialized,
@@ -2830,7 +2606,7 @@ const de_InternalExceptionRes = async (parsedOutput, context) => {
2830
2606
  };
2831
2607
  const de_InvalidEventPatternExceptionRes = async (parsedOutput, context) => {
2832
2608
  const body = parsedOutput.body;
2833
- const deserialized = de_InvalidEventPatternException(body, context);
2609
+ const deserialized = (0, smithy_client_1._json)(body);
2834
2610
  const exception = new models_0_1.InvalidEventPatternException({
2835
2611
  $metadata: deserializeMetadata(parsedOutput),
2836
2612
  ...deserialized,
@@ -2839,7 +2615,7 @@ const de_InvalidEventPatternExceptionRes = async (parsedOutput, context) => {
2839
2615
  };
2840
2616
  const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
2841
2617
  const body = parsedOutput.body;
2842
- const deserialized = de_InvalidStateException(body, context);
2618
+ const deserialized = (0, smithy_client_1._json)(body);
2843
2619
  const exception = new models_0_1.InvalidStateException({
2844
2620
  $metadata: deserializeMetadata(parsedOutput),
2845
2621
  ...deserialized,
@@ -2848,7 +2624,7 @@ const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
2848
2624
  };
2849
2625
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2850
2626
  const body = parsedOutput.body;
2851
- const deserialized = de_LimitExceededException(body, context);
2627
+ const deserialized = (0, smithy_client_1._json)(body);
2852
2628
  const exception = new models_0_1.LimitExceededException({
2853
2629
  $metadata: deserializeMetadata(parsedOutput),
2854
2630
  ...deserialized,
@@ -2857,7 +2633,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2857
2633
  };
2858
2634
  const de_ManagedRuleExceptionRes = async (parsedOutput, context) => {
2859
2635
  const body = parsedOutput.body;
2860
- const deserialized = de_ManagedRuleException(body, context);
2636
+ const deserialized = (0, smithy_client_1._json)(body);
2861
2637
  const exception = new models_0_1.ManagedRuleException({
2862
2638
  $metadata: deserializeMetadata(parsedOutput),
2863
2639
  ...deserialized,
@@ -2866,7 +2642,7 @@ const de_ManagedRuleExceptionRes = async (parsedOutput, context) => {
2866
2642
  };
2867
2643
  const de_OperationDisabledExceptionRes = async (parsedOutput, context) => {
2868
2644
  const body = parsedOutput.body;
2869
- const deserialized = de_OperationDisabledException(body, context);
2645
+ const deserialized = (0, smithy_client_1._json)(body);
2870
2646
  const exception = new models_0_1.OperationDisabledException({
2871
2647
  $metadata: deserializeMetadata(parsedOutput),
2872
2648
  ...deserialized,
@@ -2875,7 +2651,7 @@ const de_OperationDisabledExceptionRes = async (parsedOutput, context) => {
2875
2651
  };
2876
2652
  const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
2877
2653
  const body = parsedOutput.body;
2878
- const deserialized = de_PolicyLengthExceededException(body, context);
2654
+ const deserialized = (0, smithy_client_1._json)(body);
2879
2655
  const exception = new models_0_1.PolicyLengthExceededException({
2880
2656
  $metadata: deserializeMetadata(parsedOutput),
2881
2657
  ...deserialized,
@@ -2884,7 +2660,7 @@ const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
2884
2660
  };
2885
2661
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2886
2662
  const body = parsedOutput.body;
2887
- const deserialized = de_ResourceAlreadyExistsException(body, context);
2663
+ const deserialized = (0, smithy_client_1._json)(body);
2888
2664
  const exception = new models_0_1.ResourceAlreadyExistsException({
2889
2665
  $metadata: deserializeMetadata(parsedOutput),
2890
2666
  ...deserialized,
@@ -2893,2259 +2669,412 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2893
2669
  };
2894
2670
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2895
2671
  const body = parsedOutput.body;
2896
- const deserialized = de_ResourceNotFoundException(body, context);
2672
+ const deserialized = (0, smithy_client_1._json)(body);
2897
2673
  const exception = new models_0_1.ResourceNotFoundException({
2898
2674
  $metadata: deserializeMetadata(parsedOutput),
2899
2675
  ...deserialized,
2900
2676
  });
2901
2677
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2902
2678
  };
2903
- const se_ActivateEventSourceRequest = (input, context) => {
2904
- return {
2905
- ...(input.Name != null && { Name: input.Name }),
2906
- };
2907
- };
2908
- const se_AwsVpcConfiguration = (input, context) => {
2909
- return {
2910
- ...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
2911
- ...(input.SecurityGroups != null && { SecurityGroups: se_StringList(input.SecurityGroups, context) }),
2912
- ...(input.Subnets != null && { Subnets: se_StringList(input.Subnets, context) }),
2913
- };
2679
+ const se_PutEventsRequest = (input, context) => {
2680
+ return (0, smithy_client_1.take)(input, {
2681
+ EndpointId: [],
2682
+ Entries: (_) => se_PutEventsRequestEntryList(_, context),
2683
+ });
2914
2684
  };
2915
- const se_BatchArrayProperties = (input, context) => {
2916
- return {
2917
- ...(input.Size != null && { Size: input.Size }),
2918
- };
2685
+ const se_PutEventsRequestEntry = (input, context) => {
2686
+ return (0, smithy_client_1.take)(input, {
2687
+ Detail: [],
2688
+ DetailType: [],
2689
+ EventBusName: [],
2690
+ Resources: smithy_client_1._json,
2691
+ Source: [],
2692
+ Time: (_) => Math.round(_.getTime() / 1000),
2693
+ TraceHeader: [],
2694
+ });
2919
2695
  };
2920
- const se_BatchParameters = (input, context) => {
2921
- return {
2922
- ...(input.ArrayProperties != null && { ArrayProperties: se_BatchArrayProperties(input.ArrayProperties, context) }),
2923
- ...(input.JobDefinition != null && { JobDefinition: input.JobDefinition }),
2924
- ...(input.JobName != null && { JobName: input.JobName }),
2925
- ...(input.RetryStrategy != null && { RetryStrategy: se_BatchRetryStrategy(input.RetryStrategy, context) }),
2926
- };
2696
+ const se_PutEventsRequestEntryList = (input, context) => {
2697
+ return input
2698
+ .filter((e) => e != null)
2699
+ .map((entry) => {
2700
+ return se_PutEventsRequestEntry(entry, context);
2701
+ });
2927
2702
  };
2928
- const se_BatchRetryStrategy = (input, context) => {
2929
- return {
2930
- ...(input.Attempts != null && { Attempts: input.Attempts }),
2931
- };
2703
+ const se_PutPartnerEventsRequest = (input, context) => {
2704
+ return (0, smithy_client_1.take)(input, {
2705
+ Entries: (_) => se_PutPartnerEventsRequestEntryList(_, context),
2706
+ });
2932
2707
  };
2933
- const se_CancelReplayRequest = (input, context) => {
2934
- return {
2935
- ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
2936
- };
2708
+ const se_PutPartnerEventsRequestEntry = (input, context) => {
2709
+ return (0, smithy_client_1.take)(input, {
2710
+ Detail: [],
2711
+ DetailType: [],
2712
+ Resources: smithy_client_1._json,
2713
+ Source: [],
2714
+ Time: (_) => Math.round(_.getTime() / 1000),
2715
+ });
2937
2716
  };
2938
- const se_CapacityProviderStrategy = (input, context) => {
2717
+ const se_PutPartnerEventsRequestEntryList = (input, context) => {
2939
2718
  return input
2940
2719
  .filter((e) => e != null)
2941
2720
  .map((entry) => {
2942
- return se_CapacityProviderStrategyItem(entry, context);
2721
+ return se_PutPartnerEventsRequestEntry(entry, context);
2943
2722
  });
2944
2723
  };
2945
- const se_CapacityProviderStrategyItem = (input, context) => {
2946
- return {
2947
- ...(input.base != null && { base: input.base }),
2948
- ...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
2949
- ...(input.weight != null && { weight: input.weight }),
2950
- };
2951
- };
2952
- const se_Condition = (input, context) => {
2953
- return {
2954
- ...(input.Key != null && { Key: input.Key }),
2955
- ...(input.Type != null && { Type: input.Type }),
2956
- ...(input.Value != null && { Value: input.Value }),
2957
- };
2724
+ const se_StartReplayRequest = (input, context) => {
2725
+ return (0, smithy_client_1.take)(input, {
2726
+ Description: [],
2727
+ Destination: smithy_client_1._json,
2728
+ EventEndTime: (_) => Math.round(_.getTime() / 1000),
2729
+ EventSourceArn: [],
2730
+ EventStartTime: (_) => Math.round(_.getTime() / 1000),
2731
+ ReplayName: [],
2732
+ });
2958
2733
  };
2959
- const se_ConnectionBodyParameter = (input, context) => {
2960
- return {
2961
- ...(input.IsValueSecret != null && { IsValueSecret: input.IsValueSecret }),
2962
- ...(input.Key != null && { Key: input.Key }),
2963
- ...(input.Value != null && { Value: input.Value }),
2964
- };
2734
+ const de_ApiDestination = (output, context) => {
2735
+ return (0, smithy_client_1.take)(output, {
2736
+ ApiDestinationArn: smithy_client_1.expectString,
2737
+ ApiDestinationState: smithy_client_1.expectString,
2738
+ ConnectionArn: smithy_client_1.expectString,
2739
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2740
+ HttpMethod: smithy_client_1.expectString,
2741
+ InvocationEndpoint: smithy_client_1.expectString,
2742
+ InvocationRateLimitPerSecond: smithy_client_1.expectInt32,
2743
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2744
+ Name: smithy_client_1.expectString,
2745
+ });
2965
2746
  };
2966
- const se_ConnectionBodyParametersList = (input, context) => {
2967
- return input
2747
+ const de_ApiDestinationResponseList = (output, context) => {
2748
+ const retVal = (output || [])
2968
2749
  .filter((e) => e != null)
2969
2750
  .map((entry) => {
2970
- return se_ConnectionBodyParameter(entry, context);
2751
+ return de_ApiDestination(entry, context);
2971
2752
  });
2753
+ return retVal;
2972
2754
  };
2973
- const se_ConnectionHeaderParameter = (input, context) => {
2974
- return {
2975
- ...(input.IsValueSecret != null && { IsValueSecret: input.IsValueSecret }),
2976
- ...(input.Key != null && { Key: input.Key }),
2977
- ...(input.Value != null && { Value: input.Value }),
2978
- };
2755
+ const de_Archive = (output, context) => {
2756
+ return (0, smithy_client_1.take)(output, {
2757
+ ArchiveName: smithy_client_1.expectString,
2758
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2759
+ EventCount: smithy_client_1.expectLong,
2760
+ EventSourceArn: smithy_client_1.expectString,
2761
+ RetentionDays: smithy_client_1.expectInt32,
2762
+ SizeBytes: smithy_client_1.expectLong,
2763
+ State: smithy_client_1.expectString,
2764
+ StateReason: smithy_client_1.expectString,
2765
+ });
2979
2766
  };
2980
- const se_ConnectionHeaderParametersList = (input, context) => {
2981
- return input
2767
+ const de_ArchiveResponseList = (output, context) => {
2768
+ const retVal = (output || [])
2982
2769
  .filter((e) => e != null)
2983
2770
  .map((entry) => {
2984
- return se_ConnectionHeaderParameter(entry, context);
2771
+ return de_Archive(entry, context);
2985
2772
  });
2773
+ return retVal;
2986
2774
  };
2987
- const se_ConnectionHttpParameters = (input, context) => {
2988
- return {
2989
- ...(input.BodyParameters != null && {
2990
- BodyParameters: se_ConnectionBodyParametersList(input.BodyParameters, context),
2991
- }),
2992
- ...(input.HeaderParameters != null && {
2993
- HeaderParameters: se_ConnectionHeaderParametersList(input.HeaderParameters, context),
2994
- }),
2995
- ...(input.QueryStringParameters != null && {
2996
- QueryStringParameters: se_ConnectionQueryStringParametersList(input.QueryStringParameters, context),
2997
- }),
2998
- };
2999
- };
3000
- const se_ConnectionQueryStringParameter = (input, context) => {
3001
- return {
3002
- ...(input.IsValueSecret != null && { IsValueSecret: input.IsValueSecret }),
3003
- ...(input.Key != null && { Key: input.Key }),
3004
- ...(input.Value != null && { Value: input.Value }),
3005
- };
2775
+ const de_Connection = (output, context) => {
2776
+ return (0, smithy_client_1.take)(output, {
2777
+ AuthorizationType: smithy_client_1.expectString,
2778
+ ConnectionArn: smithy_client_1.expectString,
2779
+ ConnectionState: smithy_client_1.expectString,
2780
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2781
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2782
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2783
+ Name: smithy_client_1.expectString,
2784
+ StateReason: smithy_client_1.expectString,
2785
+ });
3006
2786
  };
3007
- const se_ConnectionQueryStringParametersList = (input, context) => {
3008
- return input
2787
+ const de_ConnectionResponseList = (output, context) => {
2788
+ const retVal = (output || [])
3009
2789
  .filter((e) => e != null)
3010
2790
  .map((entry) => {
3011
- return se_ConnectionQueryStringParameter(entry, context);
2791
+ return de_Connection(entry, context);
3012
2792
  });
2793
+ return retVal;
3013
2794
  };
3014
- const se_CreateApiDestinationRequest = (input, context) => {
3015
- return {
3016
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
3017
- ...(input.Description != null && { Description: input.Description }),
3018
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
3019
- ...(input.InvocationEndpoint != null && { InvocationEndpoint: input.InvocationEndpoint }),
3020
- ...(input.InvocationRateLimitPerSecond != null && {
3021
- InvocationRateLimitPerSecond: input.InvocationRateLimitPerSecond,
3022
- }),
3023
- ...(input.Name != null && { Name: input.Name }),
3024
- };
2795
+ const de_CreateApiDestinationResponse = (output, context) => {
2796
+ return (0, smithy_client_1.take)(output, {
2797
+ ApiDestinationArn: smithy_client_1.expectString,
2798
+ ApiDestinationState: smithy_client_1.expectString,
2799
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2800
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2801
+ });
3025
2802
  };
3026
- const se_CreateArchiveRequest = (input, context) => {
3027
- return {
3028
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
3029
- ...(input.Description != null && { Description: input.Description }),
3030
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3031
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3032
- ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
3033
- };
2803
+ const de_CreateArchiveResponse = (output, context) => {
2804
+ return (0, smithy_client_1.take)(output, {
2805
+ ArchiveArn: smithy_client_1.expectString,
2806
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2807
+ State: smithy_client_1.expectString,
2808
+ StateReason: smithy_client_1.expectString,
2809
+ });
3034
2810
  };
3035
- const se_CreateConnectionApiKeyAuthRequestParameters = (input, context) => {
3036
- return {
3037
- ...(input.ApiKeyName != null && { ApiKeyName: input.ApiKeyName }),
3038
- ...(input.ApiKeyValue != null && { ApiKeyValue: input.ApiKeyValue }),
3039
- };
2811
+ const de_CreateConnectionResponse = (output, context) => {
2812
+ return (0, smithy_client_1.take)(output, {
2813
+ ConnectionArn: smithy_client_1.expectString,
2814
+ ConnectionState: smithy_client_1.expectString,
2815
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2816
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2817
+ });
3040
2818
  };
3041
- const se_CreateConnectionAuthRequestParameters = (input, context) => {
3042
- return {
3043
- ...(input.ApiKeyAuthParameters != null && {
3044
- ApiKeyAuthParameters: se_CreateConnectionApiKeyAuthRequestParameters(input.ApiKeyAuthParameters, context),
3045
- }),
3046
- ...(input.BasicAuthParameters != null && {
3047
- BasicAuthParameters: se_CreateConnectionBasicAuthRequestParameters(input.BasicAuthParameters, context),
3048
- }),
3049
- ...(input.InvocationHttpParameters != null && {
3050
- InvocationHttpParameters: se_ConnectionHttpParameters(input.InvocationHttpParameters, context),
3051
- }),
3052
- ...(input.OAuthParameters != null && {
3053
- OAuthParameters: se_CreateConnectionOAuthRequestParameters(input.OAuthParameters, context),
3054
- }),
3055
- };
2819
+ const de_DeauthorizeConnectionResponse = (output, context) => {
2820
+ return (0, smithy_client_1.take)(output, {
2821
+ ConnectionArn: smithy_client_1.expectString,
2822
+ ConnectionState: smithy_client_1.expectString,
2823
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2824
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2825
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2826
+ });
3056
2827
  };
3057
- const se_CreateConnectionBasicAuthRequestParameters = (input, context) => {
3058
- return {
3059
- ...(input.Password != null && { Password: input.Password }),
3060
- ...(input.Username != null && { Username: input.Username }),
3061
- };
2828
+ const de_DeleteConnectionResponse = (output, context) => {
2829
+ return (0, smithy_client_1.take)(output, {
2830
+ ConnectionArn: smithy_client_1.expectString,
2831
+ ConnectionState: smithy_client_1.expectString,
2832
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2833
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2834
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2835
+ });
3062
2836
  };
3063
- const se_CreateConnectionOAuthClientRequestParameters = (input, context) => {
3064
- return {
3065
- ...(input.ClientID != null && { ClientID: input.ClientID }),
3066
- ...(input.ClientSecret != null && { ClientSecret: input.ClientSecret }),
3067
- };
2837
+ const de_DescribeApiDestinationResponse = (output, context) => {
2838
+ return (0, smithy_client_1.take)(output, {
2839
+ ApiDestinationArn: smithy_client_1.expectString,
2840
+ ApiDestinationState: smithy_client_1.expectString,
2841
+ ConnectionArn: smithy_client_1.expectString,
2842
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2843
+ Description: smithy_client_1.expectString,
2844
+ HttpMethod: smithy_client_1.expectString,
2845
+ InvocationEndpoint: smithy_client_1.expectString,
2846
+ InvocationRateLimitPerSecond: smithy_client_1.expectInt32,
2847
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2848
+ Name: smithy_client_1.expectString,
2849
+ });
3068
2850
  };
3069
- const se_CreateConnectionOAuthRequestParameters = (input, context) => {
3070
- return {
3071
- ...(input.AuthorizationEndpoint != null && { AuthorizationEndpoint: input.AuthorizationEndpoint }),
3072
- ...(input.ClientParameters != null && {
3073
- ClientParameters: se_CreateConnectionOAuthClientRequestParameters(input.ClientParameters, context),
3074
- }),
3075
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
3076
- ...(input.OAuthHttpParameters != null && {
3077
- OAuthHttpParameters: se_ConnectionHttpParameters(input.OAuthHttpParameters, context),
3078
- }),
3079
- };
2851
+ const de_DescribeArchiveResponse = (output, context) => {
2852
+ return (0, smithy_client_1.take)(output, {
2853
+ ArchiveArn: smithy_client_1.expectString,
2854
+ ArchiveName: smithy_client_1.expectString,
2855
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2856
+ Description: smithy_client_1.expectString,
2857
+ EventCount: smithy_client_1.expectLong,
2858
+ EventPattern: smithy_client_1.expectString,
2859
+ EventSourceArn: smithy_client_1.expectString,
2860
+ RetentionDays: smithy_client_1.expectInt32,
2861
+ SizeBytes: smithy_client_1.expectLong,
2862
+ State: smithy_client_1.expectString,
2863
+ StateReason: smithy_client_1.expectString,
2864
+ });
3080
2865
  };
3081
- const se_CreateConnectionRequest = (input, context) => {
3082
- return {
3083
- ...(input.AuthParameters != null && {
3084
- AuthParameters: se_CreateConnectionAuthRequestParameters(input.AuthParameters, context),
3085
- }),
3086
- ...(input.AuthorizationType != null && { AuthorizationType: input.AuthorizationType }),
3087
- ...(input.Description != null && { Description: input.Description }),
3088
- ...(input.Name != null && { Name: input.Name }),
3089
- };
2866
+ const de_DescribeConnectionResponse = (output, context) => {
2867
+ return (0, smithy_client_1.take)(output, {
2868
+ AuthParameters: smithy_client_1._json,
2869
+ AuthorizationType: smithy_client_1.expectString,
2870
+ ConnectionArn: smithy_client_1.expectString,
2871
+ ConnectionState: smithy_client_1.expectString,
2872
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2873
+ Description: smithy_client_1.expectString,
2874
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2875
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2876
+ Name: smithy_client_1.expectString,
2877
+ SecretArn: smithy_client_1.expectString,
2878
+ StateReason: smithy_client_1.expectString,
2879
+ });
3090
2880
  };
3091
- const se_CreateEndpointRequest = (input, context) => {
3092
- return {
3093
- ...(input.Description != null && { Description: input.Description }),
3094
- ...(input.EventBuses != null && { EventBuses: se_EndpointEventBusList(input.EventBuses, context) }),
3095
- ...(input.Name != null && { Name: input.Name }),
3096
- ...(input.ReplicationConfig != null && {
3097
- ReplicationConfig: se_ReplicationConfig(input.ReplicationConfig, context),
3098
- }),
3099
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3100
- ...(input.RoutingConfig != null && { RoutingConfig: se_RoutingConfig(input.RoutingConfig, context) }),
3101
- };
2881
+ const de_DescribeEndpointResponse = (output, context) => {
2882
+ return (0, smithy_client_1.take)(output, {
2883
+ Arn: smithy_client_1.expectString,
2884
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2885
+ Description: smithy_client_1.expectString,
2886
+ EndpointId: smithy_client_1.expectString,
2887
+ EndpointUrl: smithy_client_1.expectString,
2888
+ EventBuses: smithy_client_1._json,
2889
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2890
+ Name: smithy_client_1.expectString,
2891
+ ReplicationConfig: smithy_client_1._json,
2892
+ RoleArn: smithy_client_1.expectString,
2893
+ RoutingConfig: smithy_client_1._json,
2894
+ State: smithy_client_1.expectString,
2895
+ StateReason: smithy_client_1.expectString,
2896
+ });
3102
2897
  };
3103
- const se_CreateEventBusRequest = (input, context) => {
3104
- return {
3105
- ...(input.EventSourceName != null && { EventSourceName: input.EventSourceName }),
3106
- ...(input.Name != null && { Name: input.Name }),
3107
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3108
- };
2898
+ const de_DescribeEventSourceResponse = (output, context) => {
2899
+ return (0, smithy_client_1.take)(output, {
2900
+ Arn: smithy_client_1.expectString,
2901
+ CreatedBy: smithy_client_1.expectString,
2902
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2903
+ ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2904
+ Name: smithy_client_1.expectString,
2905
+ State: smithy_client_1.expectString,
2906
+ });
3109
2907
  };
3110
- const se_CreatePartnerEventSourceRequest = (input, context) => {
3111
- return {
3112
- ...(input.Account != null && { Account: input.Account }),
3113
- ...(input.Name != null && { Name: input.Name }),
3114
- };
2908
+ const de_DescribeReplayResponse = (output, context) => {
2909
+ return (0, smithy_client_1.take)(output, {
2910
+ Description: smithy_client_1.expectString,
2911
+ Destination: smithy_client_1._json,
2912
+ EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2913
+ EventLastReplayedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2914
+ EventSourceArn: smithy_client_1.expectString,
2915
+ EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2916
+ ReplayArn: smithy_client_1.expectString,
2917
+ ReplayEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2918
+ ReplayName: smithy_client_1.expectString,
2919
+ ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2920
+ State: smithy_client_1.expectString,
2921
+ StateReason: smithy_client_1.expectString,
2922
+ });
3115
2923
  };
3116
- const se_DeactivateEventSourceRequest = (input, context) => {
3117
- return {
3118
- ...(input.Name != null && { Name: input.Name }),
3119
- };
2924
+ const de_Endpoint = (output, context) => {
2925
+ return (0, smithy_client_1.take)(output, {
2926
+ Arn: smithy_client_1.expectString,
2927
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2928
+ Description: smithy_client_1.expectString,
2929
+ EndpointId: smithy_client_1.expectString,
2930
+ EndpointUrl: smithy_client_1.expectString,
2931
+ EventBuses: smithy_client_1._json,
2932
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2933
+ Name: smithy_client_1.expectString,
2934
+ ReplicationConfig: smithy_client_1._json,
2935
+ RoleArn: smithy_client_1.expectString,
2936
+ RoutingConfig: smithy_client_1._json,
2937
+ State: smithy_client_1.expectString,
2938
+ StateReason: smithy_client_1.expectString,
2939
+ });
3120
2940
  };
3121
- const se_DeadLetterConfig = (input, context) => {
3122
- return {
3123
- ...(input.Arn != null && { Arn: input.Arn }),
3124
- };
2941
+ const de_EndpointList = (output, context) => {
2942
+ const retVal = (output || [])
2943
+ .filter((e) => e != null)
2944
+ .map((entry) => {
2945
+ return de_Endpoint(entry, context);
2946
+ });
2947
+ return retVal;
3125
2948
  };
3126
- const se_DeauthorizeConnectionRequest = (input, context) => {
3127
- return {
3128
- ...(input.Name != null && { Name: input.Name }),
3129
- };
2949
+ const de_EventSource = (output, context) => {
2950
+ return (0, smithy_client_1.take)(output, {
2951
+ Arn: smithy_client_1.expectString,
2952
+ CreatedBy: smithy_client_1.expectString,
2953
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2954
+ ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2955
+ Name: smithy_client_1.expectString,
2956
+ State: smithy_client_1.expectString,
2957
+ });
3130
2958
  };
3131
- const se_DeleteApiDestinationRequest = (input, context) => {
3132
- return {
3133
- ...(input.Name != null && { Name: input.Name }),
3134
- };
2959
+ const de_EventSourceList = (output, context) => {
2960
+ const retVal = (output || [])
2961
+ .filter((e) => e != null)
2962
+ .map((entry) => {
2963
+ return de_EventSource(entry, context);
2964
+ });
2965
+ return retVal;
3135
2966
  };
3136
- const se_DeleteArchiveRequest = (input, context) => {
3137
- return {
3138
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
3139
- };
2967
+ const de_ListApiDestinationsResponse = (output, context) => {
2968
+ return (0, smithy_client_1.take)(output, {
2969
+ ApiDestinations: (_) => de_ApiDestinationResponseList(_, context),
2970
+ NextToken: smithy_client_1.expectString,
2971
+ });
3140
2972
  };
3141
- const se_DeleteConnectionRequest = (input, context) => {
3142
- return {
3143
- ...(input.Name != null && { Name: input.Name }),
3144
- };
2973
+ const de_ListArchivesResponse = (output, context) => {
2974
+ return (0, smithy_client_1.take)(output, {
2975
+ Archives: (_) => de_ArchiveResponseList(_, context),
2976
+ NextToken: smithy_client_1.expectString,
2977
+ });
3145
2978
  };
3146
- const se_DeleteEndpointRequest = (input, context) => {
3147
- return {
3148
- ...(input.Name != null && { Name: input.Name }),
3149
- };
3150
- };
3151
- const se_DeleteEventBusRequest = (input, context) => {
3152
- return {
3153
- ...(input.Name != null && { Name: input.Name }),
3154
- };
3155
- };
3156
- const se_DeletePartnerEventSourceRequest = (input, context) => {
3157
- return {
3158
- ...(input.Account != null && { Account: input.Account }),
3159
- ...(input.Name != null && { Name: input.Name }),
3160
- };
3161
- };
3162
- const se_DeleteRuleRequest = (input, context) => {
3163
- return {
3164
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3165
- ...(input.Force != null && { Force: input.Force }),
3166
- ...(input.Name != null && { Name: input.Name }),
3167
- };
3168
- };
3169
- const se_DescribeApiDestinationRequest = (input, context) => {
3170
- return {
3171
- ...(input.Name != null && { Name: input.Name }),
3172
- };
3173
- };
3174
- const se_DescribeArchiveRequest = (input, context) => {
3175
- return {
3176
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
3177
- };
3178
- };
3179
- const se_DescribeConnectionRequest = (input, context) => {
3180
- return {
3181
- ...(input.Name != null && { Name: input.Name }),
3182
- };
3183
- };
3184
- const se_DescribeEndpointRequest = (input, context) => {
3185
- return {
3186
- ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
3187
- ...(input.Name != null && { Name: input.Name }),
3188
- };
3189
- };
3190
- const se_DescribeEventBusRequest = (input, context) => {
3191
- return {
3192
- ...(input.Name != null && { Name: input.Name }),
3193
- };
3194
- };
3195
- const se_DescribeEventSourceRequest = (input, context) => {
3196
- return {
3197
- ...(input.Name != null && { Name: input.Name }),
3198
- };
3199
- };
3200
- const se_DescribePartnerEventSourceRequest = (input, context) => {
3201
- return {
3202
- ...(input.Name != null && { Name: input.Name }),
3203
- };
3204
- };
3205
- const se_DescribeReplayRequest = (input, context) => {
3206
- return {
3207
- ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
3208
- };
3209
- };
3210
- const se_DescribeRuleRequest = (input, context) => {
3211
- return {
3212
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3213
- ...(input.Name != null && { Name: input.Name }),
3214
- };
3215
- };
3216
- const se_DisableRuleRequest = (input, context) => {
3217
- return {
3218
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3219
- ...(input.Name != null && { Name: input.Name }),
3220
- };
3221
- };
3222
- const se_EcsParameters = (input, context) => {
3223
- return {
3224
- ...(input.CapacityProviderStrategy != null && {
3225
- CapacityProviderStrategy: se_CapacityProviderStrategy(input.CapacityProviderStrategy, context),
3226
- }),
3227
- ...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
3228
- ...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
3229
- ...(input.Group != null && { Group: input.Group }),
3230
- ...(input.LaunchType != null && { LaunchType: input.LaunchType }),
3231
- ...(input.NetworkConfiguration != null && {
3232
- NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
3233
- }),
3234
- ...(input.PlacementConstraints != null && {
3235
- PlacementConstraints: se_PlacementConstraints(input.PlacementConstraints, context),
3236
- }),
3237
- ...(input.PlacementStrategy != null && {
3238
- PlacementStrategy: se_PlacementStrategies(input.PlacementStrategy, context),
3239
- }),
3240
- ...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
3241
- ...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
3242
- ...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
3243
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3244
- ...(input.TaskCount != null && { TaskCount: input.TaskCount }),
3245
- ...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
3246
- };
3247
- };
3248
- const se_EnableRuleRequest = (input, context) => {
3249
- return {
3250
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3251
- ...(input.Name != null && { Name: input.Name }),
3252
- };
3253
- };
3254
- const se_EndpointEventBus = (input, context) => {
3255
- return {
3256
- ...(input.EventBusArn != null && { EventBusArn: input.EventBusArn }),
3257
- };
3258
- };
3259
- const se_EndpointEventBusList = (input, context) => {
3260
- return input
3261
- .filter((e) => e != null)
3262
- .map((entry) => {
3263
- return se_EndpointEventBus(entry, context);
3264
- });
3265
- };
3266
- const se_EventResourceList = (input, context) => {
3267
- return input
3268
- .filter((e) => e != null)
3269
- .map((entry) => {
3270
- return entry;
3271
- });
3272
- };
3273
- const se_FailoverConfig = (input, context) => {
3274
- return {
3275
- ...(input.Primary != null && { Primary: se_Primary(input.Primary, context) }),
3276
- ...(input.Secondary != null && { Secondary: se_Secondary(input.Secondary, context) }),
3277
- };
3278
- };
3279
- const se_HeaderParametersMap = (input, context) => {
3280
- return Object.entries(input).reduce((acc, [key, value]) => {
3281
- if (value === null) {
3282
- return acc;
3283
- }
3284
- acc[key] = value;
3285
- return acc;
3286
- }, {});
3287
- };
3288
- const se_HttpParameters = (input, context) => {
3289
- return {
3290
- ...(input.HeaderParameters != null && {
3291
- HeaderParameters: se_HeaderParametersMap(input.HeaderParameters, context),
3292
- }),
3293
- ...(input.PathParameterValues != null && {
3294
- PathParameterValues: se_PathParameterList(input.PathParameterValues, context),
3295
- }),
3296
- ...(input.QueryStringParameters != null && {
3297
- QueryStringParameters: se_QueryStringParametersMap(input.QueryStringParameters, context),
3298
- }),
3299
- };
3300
- };
3301
- const se_InputTransformer = (input, context) => {
3302
- return {
3303
- ...(input.InputPathsMap != null && { InputPathsMap: se_TransformerPaths(input.InputPathsMap, context) }),
3304
- ...(input.InputTemplate != null && { InputTemplate: input.InputTemplate }),
3305
- };
3306
- };
3307
- const se_KinesisParameters = (input, context) => {
3308
- return {
3309
- ...(input.PartitionKeyPath != null && { PartitionKeyPath: input.PartitionKeyPath }),
3310
- };
3311
- };
3312
- const se_ListApiDestinationsRequest = (input, context) => {
3313
- return {
3314
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
3315
- ...(input.Limit != null && { Limit: input.Limit }),
3316
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3317
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3318
- };
3319
- };
3320
- const se_ListArchivesRequest = (input, context) => {
3321
- return {
3322
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3323
- ...(input.Limit != null && { Limit: input.Limit }),
3324
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3325
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3326
- ...(input.State != null && { State: input.State }),
3327
- };
3328
- };
3329
- const se_ListConnectionsRequest = (input, context) => {
3330
- return {
3331
- ...(input.ConnectionState != null && { ConnectionState: input.ConnectionState }),
3332
- ...(input.Limit != null && { Limit: input.Limit }),
3333
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3334
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3335
- };
3336
- };
3337
- const se_ListEndpointsRequest = (input, context) => {
3338
- return {
3339
- ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
3340
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3341
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3342
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3343
- };
3344
- };
3345
- const se_ListEventBusesRequest = (input, context) => {
3346
- return {
3347
- ...(input.Limit != null && { Limit: input.Limit }),
3348
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3349
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3350
- };
3351
- };
3352
- const se_ListEventSourcesRequest = (input, context) => {
3353
- return {
3354
- ...(input.Limit != null && { Limit: input.Limit }),
3355
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3356
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3357
- };
3358
- };
3359
- const se_ListPartnerEventSourceAccountsRequest = (input, context) => {
3360
- return {
3361
- ...(input.EventSourceName != null && { EventSourceName: input.EventSourceName }),
3362
- ...(input.Limit != null && { Limit: input.Limit }),
3363
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3364
- };
3365
- };
3366
- const se_ListPartnerEventSourcesRequest = (input, context) => {
3367
- return {
3368
- ...(input.Limit != null && { Limit: input.Limit }),
3369
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3370
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3371
- };
3372
- };
3373
- const se_ListReplaysRequest = (input, context) => {
3374
- return {
3375
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3376
- ...(input.Limit != null && { Limit: input.Limit }),
3377
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3378
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3379
- ...(input.State != null && { State: input.State }),
3380
- };
3381
- };
3382
- const se_ListRuleNamesByTargetRequest = (input, context) => {
3383
- return {
3384
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3385
- ...(input.Limit != null && { Limit: input.Limit }),
3386
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3387
- ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
3388
- };
3389
- };
3390
- const se_ListRulesRequest = (input, context) => {
3391
- return {
3392
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3393
- ...(input.Limit != null && { Limit: input.Limit }),
3394
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
3395
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3396
- };
3397
- };
3398
- const se_ListTagsForResourceRequest = (input, context) => {
3399
- return {
3400
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3401
- };
3402
- };
3403
- const se_ListTargetsByRuleRequest = (input, context) => {
3404
- return {
3405
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3406
- ...(input.Limit != null && { Limit: input.Limit }),
3407
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3408
- ...(input.Rule != null && { Rule: input.Rule }),
3409
- };
3410
- };
3411
- const se_NetworkConfiguration = (input, context) => {
3412
- return {
3413
- ...(input.awsvpcConfiguration != null && {
3414
- awsvpcConfiguration: se_AwsVpcConfiguration(input.awsvpcConfiguration, context),
3415
- }),
3416
- };
3417
- };
3418
- const se_PathParameterList = (input, context) => {
3419
- return input
3420
- .filter((e) => e != null)
3421
- .map((entry) => {
3422
- return entry;
3423
- });
3424
- };
3425
- const se_PlacementConstraint = (input, context) => {
3426
- return {
3427
- ...(input.expression != null && { expression: input.expression }),
3428
- ...(input.type != null && { type: input.type }),
3429
- };
3430
- };
3431
- const se_PlacementConstraints = (input, context) => {
3432
- return input
3433
- .filter((e) => e != null)
3434
- .map((entry) => {
3435
- return se_PlacementConstraint(entry, context);
3436
- });
3437
- };
3438
- const se_PlacementStrategies = (input, context) => {
3439
- return input
3440
- .filter((e) => e != null)
3441
- .map((entry) => {
3442
- return se_PlacementStrategy(entry, context);
3443
- });
3444
- };
3445
- const se_PlacementStrategy = (input, context) => {
3446
- return {
3447
- ...(input.field != null && { field: input.field }),
3448
- ...(input.type != null && { type: input.type }),
3449
- };
3450
- };
3451
- const se_Primary = (input, context) => {
3452
- return {
3453
- ...(input.HealthCheck != null && { HealthCheck: input.HealthCheck }),
3454
- };
3455
- };
3456
- const se_PutEventsRequest = (input, context) => {
3457
- return {
3458
- ...(input.EndpointId != null && { EndpointId: input.EndpointId }),
3459
- ...(input.Entries != null && { Entries: se_PutEventsRequestEntryList(input.Entries, context) }),
3460
- };
3461
- };
3462
- const se_PutEventsRequestEntry = (input, context) => {
3463
- return {
3464
- ...(input.Detail != null && { Detail: input.Detail }),
3465
- ...(input.DetailType != null && { DetailType: input.DetailType }),
3466
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3467
- ...(input.Resources != null && { Resources: se_EventResourceList(input.Resources, context) }),
3468
- ...(input.Source != null && { Source: input.Source }),
3469
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3470
- ...(input.TraceHeader != null && { TraceHeader: input.TraceHeader }),
3471
- };
3472
- };
3473
- const se_PutEventsRequestEntryList = (input, context) => {
3474
- return input
3475
- .filter((e) => e != null)
3476
- .map((entry) => {
3477
- return se_PutEventsRequestEntry(entry, context);
3478
- });
3479
- };
3480
- const se_PutPartnerEventsRequest = (input, context) => {
3481
- return {
3482
- ...(input.Entries != null && { Entries: se_PutPartnerEventsRequestEntryList(input.Entries, context) }),
3483
- };
3484
- };
3485
- const se_PutPartnerEventsRequestEntry = (input, context) => {
3486
- return {
3487
- ...(input.Detail != null && { Detail: input.Detail }),
3488
- ...(input.DetailType != null && { DetailType: input.DetailType }),
3489
- ...(input.Resources != null && { Resources: se_EventResourceList(input.Resources, context) }),
3490
- ...(input.Source != null && { Source: input.Source }),
3491
- ...(input.Time != null && { Time: Math.round(input.Time.getTime() / 1000) }),
3492
- };
3493
- };
3494
- const se_PutPartnerEventsRequestEntryList = (input, context) => {
3495
- return input
3496
- .filter((e) => e != null)
3497
- .map((entry) => {
3498
- return se_PutPartnerEventsRequestEntry(entry, context);
3499
- });
3500
- };
3501
- const se_PutPermissionRequest = (input, context) => {
3502
- return {
3503
- ...(input.Action != null && { Action: input.Action }),
3504
- ...(input.Condition != null && { Condition: se_Condition(input.Condition, context) }),
3505
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3506
- ...(input.Policy != null && { Policy: input.Policy }),
3507
- ...(input.Principal != null && { Principal: input.Principal }),
3508
- ...(input.StatementId != null && { StatementId: input.StatementId }),
3509
- };
3510
- };
3511
- const se_PutRuleRequest = (input, context) => {
3512
- return {
3513
- ...(input.Description != null && { Description: input.Description }),
3514
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3515
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3516
- ...(input.Name != null && { Name: input.Name }),
3517
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3518
- ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
3519
- ...(input.State != null && { State: input.State }),
3520
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3521
- };
3522
- };
3523
- const se_PutTargetsRequest = (input, context) => {
3524
- return {
3525
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3526
- ...(input.Rule != null && { Rule: input.Rule }),
3527
- ...(input.Targets != null && { Targets: se_TargetList(input.Targets, context) }),
3528
- };
3529
- };
3530
- const se_QueryStringParametersMap = (input, context) => {
3531
- return Object.entries(input).reduce((acc, [key, value]) => {
3532
- if (value === null) {
3533
- return acc;
3534
- }
3535
- acc[key] = value;
3536
- return acc;
3537
- }, {});
3538
- };
3539
- const se_RedshiftDataParameters = (input, context) => {
3540
- return {
3541
- ...(input.Database != null && { Database: input.Database }),
3542
- ...(input.DbUser != null && { DbUser: input.DbUser }),
3543
- ...(input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn }),
3544
- ...(input.Sql != null && { Sql: input.Sql }),
3545
- ...(input.Sqls != null && { Sqls: se_Sqls(input.Sqls, context) }),
3546
- ...(input.StatementName != null && { StatementName: input.StatementName }),
3547
- ...(input.WithEvent != null && { WithEvent: input.WithEvent }),
3548
- };
3549
- };
3550
- const se_RemovePermissionRequest = (input, context) => {
3551
- return {
3552
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3553
- ...(input.RemoveAllPermissions != null && { RemoveAllPermissions: input.RemoveAllPermissions }),
3554
- ...(input.StatementId != null && { StatementId: input.StatementId }),
3555
- };
3556
- };
3557
- const se_RemoveTargetsRequest = (input, context) => {
3558
- return {
3559
- ...(input.EventBusName != null && { EventBusName: input.EventBusName }),
3560
- ...(input.Force != null && { Force: input.Force }),
3561
- ...(input.Ids != null && { Ids: se_TargetIdList(input.Ids, context) }),
3562
- ...(input.Rule != null && { Rule: input.Rule }),
3563
- };
3564
- };
3565
- const se_ReplayDestination = (input, context) => {
3566
- return {
3567
- ...(input.Arn != null && { Arn: input.Arn }),
3568
- ...(input.FilterArns != null && { FilterArns: se_ReplayDestinationFilters(input.FilterArns, context) }),
3569
- };
3570
- };
3571
- const se_ReplayDestinationFilters = (input, context) => {
3572
- return input
3573
- .filter((e) => e != null)
3574
- .map((entry) => {
3575
- return entry;
3576
- });
3577
- };
3578
- const se_ReplicationConfig = (input, context) => {
3579
- return {
3580
- ...(input.State != null && { State: input.State }),
3581
- };
3582
- };
3583
- const se_RetryPolicy = (input, context) => {
3584
- return {
3585
- ...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
3586
- ...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
3587
- };
3588
- };
3589
- const se_RoutingConfig = (input, context) => {
3590
- return {
3591
- ...(input.FailoverConfig != null && { FailoverConfig: se_FailoverConfig(input.FailoverConfig, context) }),
3592
- };
3593
- };
3594
- const se_RunCommandParameters = (input, context) => {
3595
- return {
3596
- ...(input.RunCommandTargets != null && {
3597
- RunCommandTargets: se_RunCommandTargets(input.RunCommandTargets, context),
3598
- }),
3599
- };
3600
- };
3601
- const se_RunCommandTarget = (input, context) => {
3602
- return {
3603
- ...(input.Key != null && { Key: input.Key }),
3604
- ...(input.Values != null && { Values: se_RunCommandTargetValues(input.Values, context) }),
3605
- };
3606
- };
3607
- const se_RunCommandTargets = (input, context) => {
3608
- return input
3609
- .filter((e) => e != null)
3610
- .map((entry) => {
3611
- return se_RunCommandTarget(entry, context);
3612
- });
3613
- };
3614
- const se_RunCommandTargetValues = (input, context) => {
3615
- return input
3616
- .filter((e) => e != null)
3617
- .map((entry) => {
3618
- return entry;
3619
- });
3620
- };
3621
- const se_SageMakerPipelineParameter = (input, context) => {
3622
- return {
3623
- ...(input.Name != null && { Name: input.Name }),
3624
- ...(input.Value != null && { Value: input.Value }),
3625
- };
3626
- };
3627
- const se_SageMakerPipelineParameterList = (input, context) => {
3628
- return input
3629
- .filter((e) => e != null)
3630
- .map((entry) => {
3631
- return se_SageMakerPipelineParameter(entry, context);
3632
- });
3633
- };
3634
- const se_SageMakerPipelineParameters = (input, context) => {
3635
- return {
3636
- ...(input.PipelineParameterList != null && {
3637
- PipelineParameterList: se_SageMakerPipelineParameterList(input.PipelineParameterList, context),
3638
- }),
3639
- };
3640
- };
3641
- const se_Secondary = (input, context) => {
3642
- return {
3643
- ...(input.Route != null && { Route: input.Route }),
3644
- };
3645
- };
3646
- const se_Sqls = (input, context) => {
3647
- return input
3648
- .filter((e) => e != null)
3649
- .map((entry) => {
3650
- return entry;
3651
- });
3652
- };
3653
- const se_SqsParameters = (input, context) => {
3654
- return {
3655
- ...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
3656
- };
3657
- };
3658
- const se_StartReplayRequest = (input, context) => {
3659
- return {
3660
- ...(input.Description != null && { Description: input.Description }),
3661
- ...(input.Destination != null && { Destination: se_ReplayDestination(input.Destination, context) }),
3662
- ...(input.EventEndTime != null && { EventEndTime: Math.round(input.EventEndTime.getTime() / 1000) }),
3663
- ...(input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn }),
3664
- ...(input.EventStartTime != null && { EventStartTime: Math.round(input.EventStartTime.getTime() / 1000) }),
3665
- ...(input.ReplayName != null && { ReplayName: input.ReplayName }),
3666
- };
3667
- };
3668
- const se_StringList = (input, context) => {
3669
- return input
3670
- .filter((e) => e != null)
3671
- .map((entry) => {
3672
- return entry;
3673
- });
3674
- };
3675
- const se_Tag = (input, context) => {
3676
- return {
3677
- ...(input.Key != null && { Key: input.Key }),
3678
- ...(input.Value != null && { Value: input.Value }),
3679
- };
3680
- };
3681
- const se_TagKeyList = (input, context) => {
3682
- return input
3683
- .filter((e) => e != null)
3684
- .map((entry) => {
3685
- return entry;
3686
- });
3687
- };
3688
- const se_TagList = (input, context) => {
3689
- return input
3690
- .filter((e) => e != null)
3691
- .map((entry) => {
3692
- return se_Tag(entry, context);
3693
- });
3694
- };
3695
- const se_TagResourceRequest = (input, context) => {
3696
- return {
3697
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3698
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3699
- };
3700
- };
3701
- const se_Target = (input, context) => {
3702
- return {
3703
- ...(input.Arn != null && { Arn: input.Arn }),
3704
- ...(input.BatchParameters != null && { BatchParameters: se_BatchParameters(input.BatchParameters, context) }),
3705
- ...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
3706
- ...(input.EcsParameters != null && { EcsParameters: se_EcsParameters(input.EcsParameters, context) }),
3707
- ...(input.HttpParameters != null && { HttpParameters: se_HttpParameters(input.HttpParameters, context) }),
3708
- ...(input.Id != null && { Id: input.Id }),
3709
- ...(input.Input != null && { Input: input.Input }),
3710
- ...(input.InputPath != null && { InputPath: input.InputPath }),
3711
- ...(input.InputTransformer != null && { InputTransformer: se_InputTransformer(input.InputTransformer, context) }),
3712
- ...(input.KinesisParameters != null && {
3713
- KinesisParameters: se_KinesisParameters(input.KinesisParameters, context),
3714
- }),
3715
- ...(input.RedshiftDataParameters != null && {
3716
- RedshiftDataParameters: se_RedshiftDataParameters(input.RedshiftDataParameters, context),
3717
- }),
3718
- ...(input.RetryPolicy != null && { RetryPolicy: se_RetryPolicy(input.RetryPolicy, context) }),
3719
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3720
- ...(input.RunCommandParameters != null && {
3721
- RunCommandParameters: se_RunCommandParameters(input.RunCommandParameters, context),
3722
- }),
3723
- ...(input.SageMakerPipelineParameters != null && {
3724
- SageMakerPipelineParameters: se_SageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
3725
- }),
3726
- ...(input.SqsParameters != null && { SqsParameters: se_SqsParameters(input.SqsParameters, context) }),
3727
- };
3728
- };
3729
- const se_TargetIdList = (input, context) => {
3730
- return input
3731
- .filter((e) => e != null)
3732
- .map((entry) => {
3733
- return entry;
3734
- });
3735
- };
3736
- const se_TargetList = (input, context) => {
3737
- return input
3738
- .filter((e) => e != null)
3739
- .map((entry) => {
3740
- return se_Target(entry, context);
3741
- });
3742
- };
3743
- const se_TestEventPatternRequest = (input, context) => {
3744
- return {
3745
- ...(input.Event != null && { Event: input.Event }),
3746
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3747
- };
3748
- };
3749
- const se_TransformerPaths = (input, context) => {
3750
- return Object.entries(input).reduce((acc, [key, value]) => {
3751
- if (value === null) {
3752
- return acc;
3753
- }
3754
- acc[key] = value;
3755
- return acc;
3756
- }, {});
3757
- };
3758
- const se_UntagResourceRequest = (input, context) => {
3759
- return {
3760
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3761
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3762
- };
3763
- };
3764
- const se_UpdateApiDestinationRequest = (input, context) => {
3765
- return {
3766
- ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
3767
- ...(input.Description != null && { Description: input.Description }),
3768
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
3769
- ...(input.InvocationEndpoint != null && { InvocationEndpoint: input.InvocationEndpoint }),
3770
- ...(input.InvocationRateLimitPerSecond != null && {
3771
- InvocationRateLimitPerSecond: input.InvocationRateLimitPerSecond,
3772
- }),
3773
- ...(input.Name != null && { Name: input.Name }),
3774
- };
3775
- };
3776
- const se_UpdateArchiveRequest = (input, context) => {
3777
- return {
3778
- ...(input.ArchiveName != null && { ArchiveName: input.ArchiveName }),
3779
- ...(input.Description != null && { Description: input.Description }),
3780
- ...(input.EventPattern != null && { EventPattern: input.EventPattern }),
3781
- ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
3782
- };
3783
- };
3784
- const se_UpdateConnectionApiKeyAuthRequestParameters = (input, context) => {
3785
- return {
3786
- ...(input.ApiKeyName != null && { ApiKeyName: input.ApiKeyName }),
3787
- ...(input.ApiKeyValue != null && { ApiKeyValue: input.ApiKeyValue }),
3788
- };
3789
- };
3790
- const se_UpdateConnectionAuthRequestParameters = (input, context) => {
3791
- return {
3792
- ...(input.ApiKeyAuthParameters != null && {
3793
- ApiKeyAuthParameters: se_UpdateConnectionApiKeyAuthRequestParameters(input.ApiKeyAuthParameters, context),
3794
- }),
3795
- ...(input.BasicAuthParameters != null && {
3796
- BasicAuthParameters: se_UpdateConnectionBasicAuthRequestParameters(input.BasicAuthParameters, context),
3797
- }),
3798
- ...(input.InvocationHttpParameters != null && {
3799
- InvocationHttpParameters: se_ConnectionHttpParameters(input.InvocationHttpParameters, context),
3800
- }),
3801
- ...(input.OAuthParameters != null && {
3802
- OAuthParameters: se_UpdateConnectionOAuthRequestParameters(input.OAuthParameters, context),
3803
- }),
3804
- };
3805
- };
3806
- const se_UpdateConnectionBasicAuthRequestParameters = (input, context) => {
3807
- return {
3808
- ...(input.Password != null && { Password: input.Password }),
3809
- ...(input.Username != null && { Username: input.Username }),
3810
- };
3811
- };
3812
- const se_UpdateConnectionOAuthClientRequestParameters = (input, context) => {
3813
- return {
3814
- ...(input.ClientID != null && { ClientID: input.ClientID }),
3815
- ...(input.ClientSecret != null && { ClientSecret: input.ClientSecret }),
3816
- };
3817
- };
3818
- const se_UpdateConnectionOAuthRequestParameters = (input, context) => {
3819
- return {
3820
- ...(input.AuthorizationEndpoint != null && { AuthorizationEndpoint: input.AuthorizationEndpoint }),
3821
- ...(input.ClientParameters != null && {
3822
- ClientParameters: se_UpdateConnectionOAuthClientRequestParameters(input.ClientParameters, context),
3823
- }),
3824
- ...(input.HttpMethod != null && { HttpMethod: input.HttpMethod }),
3825
- ...(input.OAuthHttpParameters != null && {
3826
- OAuthHttpParameters: se_ConnectionHttpParameters(input.OAuthHttpParameters, context),
3827
- }),
3828
- };
3829
- };
3830
- const se_UpdateConnectionRequest = (input, context) => {
3831
- return {
3832
- ...(input.AuthParameters != null && {
3833
- AuthParameters: se_UpdateConnectionAuthRequestParameters(input.AuthParameters, context),
3834
- }),
3835
- ...(input.AuthorizationType != null && { AuthorizationType: input.AuthorizationType }),
3836
- ...(input.Description != null && { Description: input.Description }),
3837
- ...(input.Name != null && { Name: input.Name }),
3838
- };
3839
- };
3840
- const se_UpdateEndpointRequest = (input, context) => {
3841
- return {
3842
- ...(input.Description != null && { Description: input.Description }),
3843
- ...(input.EventBuses != null && { EventBuses: se_EndpointEventBusList(input.EventBuses, context) }),
3844
- ...(input.Name != null && { Name: input.Name }),
3845
- ...(input.ReplicationConfig != null && {
3846
- ReplicationConfig: se_ReplicationConfig(input.ReplicationConfig, context),
3847
- }),
3848
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
3849
- ...(input.RoutingConfig != null && { RoutingConfig: se_RoutingConfig(input.RoutingConfig, context) }),
3850
- };
3851
- };
3852
- const de_ApiDestination = (output, context) => {
3853
- return {
3854
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
3855
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
3856
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3857
- CreationTime: output.CreationTime != null
3858
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3859
- : undefined,
3860
- HttpMethod: (0, smithy_client_1.expectString)(output.HttpMethod),
3861
- InvocationEndpoint: (0, smithy_client_1.expectString)(output.InvocationEndpoint),
3862
- InvocationRateLimitPerSecond: (0, smithy_client_1.expectInt32)(output.InvocationRateLimitPerSecond),
3863
- LastModifiedTime: output.LastModifiedTime != null
3864
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3865
- : undefined,
3866
- Name: (0, smithy_client_1.expectString)(output.Name),
3867
- };
3868
- };
3869
- const de_ApiDestinationResponseList = (output, context) => {
3870
- const retVal = (output || [])
3871
- .filter((e) => e != null)
3872
- .map((entry) => {
3873
- if (entry === null) {
3874
- return null;
3875
- }
3876
- return de_ApiDestination(entry, context);
3877
- });
3878
- return retVal;
3879
- };
3880
- const de_Archive = (output, context) => {
3881
- return {
3882
- ArchiveName: (0, smithy_client_1.expectString)(output.ArchiveName),
3883
- CreationTime: output.CreationTime != null
3884
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3885
- : undefined,
3886
- EventCount: (0, smithy_client_1.expectLong)(output.EventCount),
3887
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
3888
- RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
3889
- SizeBytes: (0, smithy_client_1.expectLong)(output.SizeBytes),
3890
- State: (0, smithy_client_1.expectString)(output.State),
3891
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3892
- };
3893
- };
3894
- const de_ArchiveResponseList = (output, context) => {
3895
- const retVal = (output || [])
3896
- .filter((e) => e != null)
3897
- .map((entry) => {
3898
- if (entry === null) {
3899
- return null;
3900
- }
3901
- return de_Archive(entry, context);
3902
- });
3903
- return retVal;
3904
- };
3905
- const de_AwsVpcConfiguration = (output, context) => {
3906
- return {
3907
- AssignPublicIp: (0, smithy_client_1.expectString)(output.AssignPublicIp),
3908
- SecurityGroups: output.SecurityGroups != null ? de_StringList(output.SecurityGroups, context) : undefined,
3909
- Subnets: output.Subnets != null ? de_StringList(output.Subnets, context) : undefined,
3910
- };
3911
- };
3912
- const de_BatchArrayProperties = (output, context) => {
3913
- return {
3914
- Size: (0, smithy_client_1.expectInt32)(output.Size),
3915
- };
3916
- };
3917
- const de_BatchParameters = (output, context) => {
3918
- return {
3919
- ArrayProperties: output.ArrayProperties != null ? de_BatchArrayProperties(output.ArrayProperties, context) : undefined,
3920
- JobDefinition: (0, smithy_client_1.expectString)(output.JobDefinition),
3921
- JobName: (0, smithy_client_1.expectString)(output.JobName),
3922
- RetryStrategy: output.RetryStrategy != null ? de_BatchRetryStrategy(output.RetryStrategy, context) : undefined,
3923
- };
3924
- };
3925
- const de_BatchRetryStrategy = (output, context) => {
3926
- return {
3927
- Attempts: (0, smithy_client_1.expectInt32)(output.Attempts),
3928
- };
3929
- };
3930
- const de_CancelReplayResponse = (output, context) => {
3931
- return {
3932
- ReplayArn: (0, smithy_client_1.expectString)(output.ReplayArn),
3933
- State: (0, smithy_client_1.expectString)(output.State),
3934
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3935
- };
3936
- };
3937
- const de_CapacityProviderStrategy = (output, context) => {
3938
- const retVal = (output || [])
3939
- .filter((e) => e != null)
3940
- .map((entry) => {
3941
- if (entry === null) {
3942
- return null;
3943
- }
3944
- return de_CapacityProviderStrategyItem(entry, context);
3945
- });
3946
- return retVal;
3947
- };
3948
- const de_CapacityProviderStrategyItem = (output, context) => {
3949
- return {
3950
- base: (0, smithy_client_1.expectInt32)(output.base),
3951
- capacityProvider: (0, smithy_client_1.expectString)(output.capacityProvider),
3952
- weight: (0, smithy_client_1.expectInt32)(output.weight),
3953
- };
3954
- };
3955
- const de_ConcurrentModificationException = (output, context) => {
3956
- return {
3957
- message: (0, smithy_client_1.expectString)(output.message),
3958
- };
3959
- };
3960
- const de_Connection = (output, context) => {
3961
- return {
3962
- AuthorizationType: (0, smithy_client_1.expectString)(output.AuthorizationType),
3963
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
3964
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
3965
- CreationTime: output.CreationTime != null
3966
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
3967
- : undefined,
3968
- LastAuthorizedTime: output.LastAuthorizedTime != null
3969
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
3970
- : undefined,
3971
- LastModifiedTime: output.LastModifiedTime != null
3972
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3973
- : undefined,
3974
- Name: (0, smithy_client_1.expectString)(output.Name),
3975
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
3976
- };
3977
- };
3978
- const de_ConnectionApiKeyAuthResponseParameters = (output, context) => {
3979
- return {
3980
- ApiKeyName: (0, smithy_client_1.expectString)(output.ApiKeyName),
3981
- };
3982
- };
3983
- const de_ConnectionAuthResponseParameters = (output, context) => {
3984
- return {
3985
- ApiKeyAuthParameters: output.ApiKeyAuthParameters != null
3986
- ? de_ConnectionApiKeyAuthResponseParameters(output.ApiKeyAuthParameters, context)
3987
- : undefined,
3988
- BasicAuthParameters: output.BasicAuthParameters != null
3989
- ? de_ConnectionBasicAuthResponseParameters(output.BasicAuthParameters, context)
3990
- : undefined,
3991
- InvocationHttpParameters: output.InvocationHttpParameters != null
3992
- ? de_ConnectionHttpParameters(output.InvocationHttpParameters, context)
3993
- : undefined,
3994
- OAuthParameters: output.OAuthParameters != null
3995
- ? de_ConnectionOAuthResponseParameters(output.OAuthParameters, context)
3996
- : undefined,
3997
- };
3998
- };
3999
- const de_ConnectionBasicAuthResponseParameters = (output, context) => {
4000
- return {
4001
- Username: (0, smithy_client_1.expectString)(output.Username),
4002
- };
4003
- };
4004
- const de_ConnectionBodyParameter = (output, context) => {
4005
- return {
4006
- IsValueSecret: (0, smithy_client_1.expectBoolean)(output.IsValueSecret),
4007
- Key: (0, smithy_client_1.expectString)(output.Key),
4008
- Value: (0, smithy_client_1.expectString)(output.Value),
4009
- };
4010
- };
4011
- const de_ConnectionBodyParametersList = (output, context) => {
4012
- const retVal = (output || [])
4013
- .filter((e) => e != null)
4014
- .map((entry) => {
4015
- if (entry === null) {
4016
- return null;
4017
- }
4018
- return de_ConnectionBodyParameter(entry, context);
4019
- });
4020
- return retVal;
4021
- };
4022
- const de_ConnectionHeaderParameter = (output, context) => {
4023
- return {
4024
- IsValueSecret: (0, smithy_client_1.expectBoolean)(output.IsValueSecret),
4025
- Key: (0, smithy_client_1.expectString)(output.Key),
4026
- Value: (0, smithy_client_1.expectString)(output.Value),
4027
- };
4028
- };
4029
- const de_ConnectionHeaderParametersList = (output, context) => {
4030
- const retVal = (output || [])
4031
- .filter((e) => e != null)
4032
- .map((entry) => {
4033
- if (entry === null) {
4034
- return null;
4035
- }
4036
- return de_ConnectionHeaderParameter(entry, context);
4037
- });
4038
- return retVal;
4039
- };
4040
- const de_ConnectionHttpParameters = (output, context) => {
4041
- return {
4042
- BodyParameters: output.BodyParameters != null ? de_ConnectionBodyParametersList(output.BodyParameters, context) : undefined,
4043
- HeaderParameters: output.HeaderParameters != null ? de_ConnectionHeaderParametersList(output.HeaderParameters, context) : undefined,
4044
- QueryStringParameters: output.QueryStringParameters != null
4045
- ? de_ConnectionQueryStringParametersList(output.QueryStringParameters, context)
4046
- : undefined,
4047
- };
4048
- };
4049
- const de_ConnectionOAuthClientResponseParameters = (output, context) => {
4050
- return {
4051
- ClientID: (0, smithy_client_1.expectString)(output.ClientID),
4052
- };
4053
- };
4054
- const de_ConnectionOAuthResponseParameters = (output, context) => {
4055
- return {
4056
- AuthorizationEndpoint: (0, smithy_client_1.expectString)(output.AuthorizationEndpoint),
4057
- ClientParameters: output.ClientParameters != null
4058
- ? de_ConnectionOAuthClientResponseParameters(output.ClientParameters, context)
4059
- : undefined,
4060
- HttpMethod: (0, smithy_client_1.expectString)(output.HttpMethod),
4061
- OAuthHttpParameters: output.OAuthHttpParameters != null ? de_ConnectionHttpParameters(output.OAuthHttpParameters, context) : undefined,
4062
- };
4063
- };
4064
- const de_ConnectionQueryStringParameter = (output, context) => {
4065
- return {
4066
- IsValueSecret: (0, smithy_client_1.expectBoolean)(output.IsValueSecret),
4067
- Key: (0, smithy_client_1.expectString)(output.Key),
4068
- Value: (0, smithy_client_1.expectString)(output.Value),
4069
- };
4070
- };
4071
- const de_ConnectionQueryStringParametersList = (output, context) => {
4072
- const retVal = (output || [])
4073
- .filter((e) => e != null)
4074
- .map((entry) => {
4075
- if (entry === null) {
4076
- return null;
4077
- }
4078
- return de_ConnectionQueryStringParameter(entry, context);
4079
- });
4080
- return retVal;
4081
- };
4082
- const de_ConnectionResponseList = (output, context) => {
4083
- const retVal = (output || [])
4084
- .filter((e) => e != null)
4085
- .map((entry) => {
4086
- if (entry === null) {
4087
- return null;
4088
- }
4089
- return de_Connection(entry, context);
4090
- });
4091
- return retVal;
4092
- };
4093
- const de_CreateApiDestinationResponse = (output, context) => {
4094
- return {
4095
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
4096
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
4097
- CreationTime: output.CreationTime != null
4098
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4099
- : undefined,
4100
- LastModifiedTime: output.LastModifiedTime != null
4101
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4102
- : undefined,
4103
- };
4104
- };
4105
- const de_CreateArchiveResponse = (output, context) => {
4106
- return {
4107
- ArchiveArn: (0, smithy_client_1.expectString)(output.ArchiveArn),
4108
- CreationTime: output.CreationTime != null
4109
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4110
- : undefined,
4111
- State: (0, smithy_client_1.expectString)(output.State),
4112
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4113
- };
4114
- };
4115
- const de_CreateConnectionResponse = (output, context) => {
4116
- return {
4117
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
4118
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
4119
- CreationTime: output.CreationTime != null
4120
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4121
- : undefined,
4122
- LastModifiedTime: output.LastModifiedTime != null
4123
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4124
- : undefined,
4125
- };
4126
- };
4127
- const de_CreateEndpointResponse = (output, context) => {
4128
- return {
4129
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4130
- EventBuses: output.EventBuses != null ? de_EndpointEventBusList(output.EventBuses, context) : undefined,
4131
- Name: (0, smithy_client_1.expectString)(output.Name),
4132
- ReplicationConfig: output.ReplicationConfig != null ? de_ReplicationConfig(output.ReplicationConfig, context) : undefined,
4133
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4134
- RoutingConfig: output.RoutingConfig != null ? de_RoutingConfig(output.RoutingConfig, context) : undefined,
4135
- State: (0, smithy_client_1.expectString)(output.State),
4136
- };
4137
- };
4138
- const de_CreateEventBusResponse = (output, context) => {
4139
- return {
4140
- EventBusArn: (0, smithy_client_1.expectString)(output.EventBusArn),
4141
- };
4142
- };
4143
- const de_CreatePartnerEventSourceResponse = (output, context) => {
4144
- return {
4145
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
4146
- };
4147
- };
4148
- const de_DeadLetterConfig = (output, context) => {
4149
- return {
4150
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4151
- };
4152
- };
4153
- const de_DeauthorizeConnectionResponse = (output, context) => {
4154
- return {
4155
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
4156
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
4157
- CreationTime: output.CreationTime != null
4158
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4159
- : undefined,
4160
- LastAuthorizedTime: output.LastAuthorizedTime != null
4161
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
4162
- : undefined,
4163
- LastModifiedTime: output.LastModifiedTime != null
4164
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4165
- : undefined,
4166
- };
4167
- };
4168
- const de_DeleteApiDestinationResponse = (output, context) => {
4169
- return {};
4170
- };
4171
- const de_DeleteArchiveResponse = (output, context) => {
4172
- return {};
4173
- };
4174
- const de_DeleteConnectionResponse = (output, context) => {
4175
- return {
4176
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
4177
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
4178
- CreationTime: output.CreationTime != null
4179
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4180
- : undefined,
4181
- LastAuthorizedTime: output.LastAuthorizedTime != null
4182
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
4183
- : undefined,
4184
- LastModifiedTime: output.LastModifiedTime != null
4185
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4186
- : undefined,
4187
- };
4188
- };
4189
- const de_DeleteEndpointResponse = (output, context) => {
4190
- return {};
4191
- };
4192
- const de_DescribeApiDestinationResponse = (output, context) => {
4193
- return {
4194
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
4195
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
4196
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
4197
- CreationTime: output.CreationTime != null
4198
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4199
- : undefined,
4200
- Description: (0, smithy_client_1.expectString)(output.Description),
4201
- HttpMethod: (0, smithy_client_1.expectString)(output.HttpMethod),
4202
- InvocationEndpoint: (0, smithy_client_1.expectString)(output.InvocationEndpoint),
4203
- InvocationRateLimitPerSecond: (0, smithy_client_1.expectInt32)(output.InvocationRateLimitPerSecond),
4204
- LastModifiedTime: output.LastModifiedTime != null
4205
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4206
- : undefined,
4207
- Name: (0, smithy_client_1.expectString)(output.Name),
4208
- };
4209
- };
4210
- const de_DescribeArchiveResponse = (output, context) => {
4211
- return {
4212
- ArchiveArn: (0, smithy_client_1.expectString)(output.ArchiveArn),
4213
- ArchiveName: (0, smithy_client_1.expectString)(output.ArchiveName),
4214
- CreationTime: output.CreationTime != null
4215
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4216
- : undefined,
4217
- Description: (0, smithy_client_1.expectString)(output.Description),
4218
- EventCount: (0, smithy_client_1.expectLong)(output.EventCount),
4219
- EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
4220
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
4221
- RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
4222
- SizeBytes: (0, smithy_client_1.expectLong)(output.SizeBytes),
4223
- State: (0, smithy_client_1.expectString)(output.State),
4224
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4225
- };
4226
- };
4227
- const de_DescribeConnectionResponse = (output, context) => {
4228
- return {
4229
- AuthParameters: output.AuthParameters != null ? de_ConnectionAuthResponseParameters(output.AuthParameters, context) : undefined,
4230
- AuthorizationType: (0, smithy_client_1.expectString)(output.AuthorizationType),
4231
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
4232
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
4233
- CreationTime: output.CreationTime != null
4234
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4235
- : undefined,
4236
- Description: (0, smithy_client_1.expectString)(output.Description),
4237
- LastAuthorizedTime: output.LastAuthorizedTime != null
4238
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
4239
- : undefined,
4240
- LastModifiedTime: output.LastModifiedTime != null
4241
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4242
- : undefined,
4243
- Name: (0, smithy_client_1.expectString)(output.Name),
4244
- SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
4245
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4246
- };
4247
- };
4248
- const de_DescribeEndpointResponse = (output, context) => {
4249
- return {
4250
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4251
- CreationTime: output.CreationTime != null
4252
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4253
- : undefined,
4254
- Description: (0, smithy_client_1.expectString)(output.Description),
4255
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
4256
- EndpointUrl: (0, smithy_client_1.expectString)(output.EndpointUrl),
4257
- EventBuses: output.EventBuses != null ? de_EndpointEventBusList(output.EventBuses, context) : undefined,
4258
- LastModifiedTime: output.LastModifiedTime != null
4259
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4260
- : undefined,
4261
- Name: (0, smithy_client_1.expectString)(output.Name),
4262
- ReplicationConfig: output.ReplicationConfig != null ? de_ReplicationConfig(output.ReplicationConfig, context) : undefined,
4263
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4264
- RoutingConfig: output.RoutingConfig != null ? de_RoutingConfig(output.RoutingConfig, context) : undefined,
4265
- State: (0, smithy_client_1.expectString)(output.State),
4266
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4267
- };
4268
- };
4269
- const de_DescribeEventBusResponse = (output, context) => {
4270
- return {
4271
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4272
- Name: (0, smithy_client_1.expectString)(output.Name),
4273
- Policy: (0, smithy_client_1.expectString)(output.Policy),
4274
- };
4275
- };
4276
- const de_DescribeEventSourceResponse = (output, context) => {
4277
- return {
4278
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4279
- CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4280
- CreationTime: output.CreationTime != null
4281
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4282
- : undefined,
4283
- ExpirationTime: output.ExpirationTime != null
4284
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTime)))
4285
- : undefined,
4286
- Name: (0, smithy_client_1.expectString)(output.Name),
4287
- State: (0, smithy_client_1.expectString)(output.State),
4288
- };
4289
- };
4290
- const de_DescribePartnerEventSourceResponse = (output, context) => {
4291
- return {
4292
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4293
- Name: (0, smithy_client_1.expectString)(output.Name),
4294
- };
4295
- };
4296
- const de_DescribeReplayResponse = (output, context) => {
4297
- return {
4298
- Description: (0, smithy_client_1.expectString)(output.Description),
4299
- Destination: output.Destination != null ? de_ReplayDestination(output.Destination, context) : undefined,
4300
- EventEndTime: output.EventEndTime != null
4301
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventEndTime)))
4302
- : undefined,
4303
- EventLastReplayedTime: output.EventLastReplayedTime != null
4304
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventLastReplayedTime)))
4305
- : undefined,
4306
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
4307
- EventStartTime: output.EventStartTime != null
4308
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventStartTime)))
4309
- : undefined,
4310
- ReplayArn: (0, smithy_client_1.expectString)(output.ReplayArn),
4311
- ReplayEndTime: output.ReplayEndTime != null
4312
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayEndTime)))
4313
- : undefined,
4314
- ReplayName: (0, smithy_client_1.expectString)(output.ReplayName),
4315
- ReplayStartTime: output.ReplayStartTime != null
4316
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayStartTime)))
4317
- : undefined,
4318
- State: (0, smithy_client_1.expectString)(output.State),
4319
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4320
- };
4321
- };
4322
- const de_DescribeRuleResponse = (output, context) => {
4323
- return {
4324
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4325
- CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4326
- Description: (0, smithy_client_1.expectString)(output.Description),
4327
- EventBusName: (0, smithy_client_1.expectString)(output.EventBusName),
4328
- EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
4329
- ManagedBy: (0, smithy_client_1.expectString)(output.ManagedBy),
4330
- Name: (0, smithy_client_1.expectString)(output.Name),
4331
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4332
- ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
4333
- State: (0, smithy_client_1.expectString)(output.State),
4334
- };
4335
- };
4336
- const de_EcsParameters = (output, context) => {
4337
- return {
4338
- CapacityProviderStrategy: output.CapacityProviderStrategy != null
4339
- ? de_CapacityProviderStrategy(output.CapacityProviderStrategy, context)
4340
- : undefined,
4341
- EnableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.EnableECSManagedTags),
4342
- EnableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.EnableExecuteCommand),
4343
- Group: (0, smithy_client_1.expectString)(output.Group),
4344
- LaunchType: (0, smithy_client_1.expectString)(output.LaunchType),
4345
- NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
4346
- PlacementConstraints: output.PlacementConstraints != null ? de_PlacementConstraints(output.PlacementConstraints, context) : undefined,
4347
- PlacementStrategy: output.PlacementStrategy != null ? de_PlacementStrategies(output.PlacementStrategy, context) : undefined,
4348
- PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
4349
- PropagateTags: (0, smithy_client_1.expectString)(output.PropagateTags),
4350
- ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
4351
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4352
- TaskCount: (0, smithy_client_1.expectInt32)(output.TaskCount),
4353
- TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
4354
- };
4355
- };
4356
- const de_Endpoint = (output, context) => {
4357
- return {
4358
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4359
- CreationTime: output.CreationTime != null
4360
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4361
- : undefined,
4362
- Description: (0, smithy_client_1.expectString)(output.Description),
4363
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
4364
- EndpointUrl: (0, smithy_client_1.expectString)(output.EndpointUrl),
4365
- EventBuses: output.EventBuses != null ? de_EndpointEventBusList(output.EventBuses, context) : undefined,
4366
- LastModifiedTime: output.LastModifiedTime != null
4367
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4368
- : undefined,
4369
- Name: (0, smithy_client_1.expectString)(output.Name),
4370
- ReplicationConfig: output.ReplicationConfig != null ? de_ReplicationConfig(output.ReplicationConfig, context) : undefined,
4371
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4372
- RoutingConfig: output.RoutingConfig != null ? de_RoutingConfig(output.RoutingConfig, context) : undefined,
4373
- State: (0, smithy_client_1.expectString)(output.State),
4374
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4375
- };
4376
- };
4377
- const de_EndpointEventBus = (output, context) => {
4378
- return {
4379
- EventBusArn: (0, smithy_client_1.expectString)(output.EventBusArn),
4380
- };
4381
- };
4382
- const de_EndpointEventBusList = (output, context) => {
4383
- const retVal = (output || [])
4384
- .filter((e) => e != null)
4385
- .map((entry) => {
4386
- if (entry === null) {
4387
- return null;
4388
- }
4389
- return de_EndpointEventBus(entry, context);
4390
- });
4391
- return retVal;
4392
- };
4393
- const de_EndpointList = (output, context) => {
4394
- const retVal = (output || [])
4395
- .filter((e) => e != null)
4396
- .map((entry) => {
4397
- if (entry === null) {
4398
- return null;
4399
- }
4400
- return de_Endpoint(entry, context);
4401
- });
4402
- return retVal;
4403
- };
4404
- const de_EventBus = (output, context) => {
4405
- return {
4406
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4407
- Name: (0, smithy_client_1.expectString)(output.Name),
4408
- Policy: (0, smithy_client_1.expectString)(output.Policy),
4409
- };
4410
- };
4411
- const de_EventBusList = (output, context) => {
4412
- const retVal = (output || [])
4413
- .filter((e) => e != null)
4414
- .map((entry) => {
4415
- if (entry === null) {
4416
- return null;
4417
- }
4418
- return de_EventBus(entry, context);
4419
- });
4420
- return retVal;
4421
- };
4422
- const de_EventSource = (output, context) => {
4423
- return {
4424
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4425
- CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4426
- CreationTime: output.CreationTime != null
4427
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4428
- : undefined,
4429
- ExpirationTime: output.ExpirationTime != null
4430
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTime)))
4431
- : undefined,
4432
- Name: (0, smithy_client_1.expectString)(output.Name),
4433
- State: (0, smithy_client_1.expectString)(output.State),
4434
- };
4435
- };
4436
- const de_EventSourceList = (output, context) => {
4437
- const retVal = (output || [])
4438
- .filter((e) => e != null)
4439
- .map((entry) => {
4440
- if (entry === null) {
4441
- return null;
4442
- }
4443
- return de_EventSource(entry, context);
4444
- });
4445
- return retVal;
4446
- };
4447
- const de_FailoverConfig = (output, context) => {
4448
- return {
4449
- Primary: output.Primary != null ? de_Primary(output.Primary, context) : undefined,
4450
- Secondary: output.Secondary != null ? de_Secondary(output.Secondary, context) : undefined,
4451
- };
4452
- };
4453
- const de_HeaderParametersMap = (output, context) => {
4454
- return Object.entries(output).reduce((acc, [key, value]) => {
4455
- if (value === null) {
4456
- return acc;
4457
- }
4458
- acc[key] = (0, smithy_client_1.expectString)(value);
4459
- return acc;
4460
- }, {});
4461
- };
4462
- const de_HttpParameters = (output, context) => {
4463
- return {
4464
- HeaderParameters: output.HeaderParameters != null ? de_HeaderParametersMap(output.HeaderParameters, context) : undefined,
4465
- PathParameterValues: output.PathParameterValues != null ? de_PathParameterList(output.PathParameterValues, context) : undefined,
4466
- QueryStringParameters: output.QueryStringParameters != null
4467
- ? de_QueryStringParametersMap(output.QueryStringParameters, context)
4468
- : undefined,
4469
- };
4470
- };
4471
- const de_IllegalStatusException = (output, context) => {
4472
- return {
4473
- message: (0, smithy_client_1.expectString)(output.message),
4474
- };
4475
- };
4476
- const de_InputTransformer = (output, context) => {
4477
- return {
4478
- InputPathsMap: output.InputPathsMap != null ? de_TransformerPaths(output.InputPathsMap, context) : undefined,
4479
- InputTemplate: (0, smithy_client_1.expectString)(output.InputTemplate),
4480
- };
4481
- };
4482
- const de_InternalException = (output, context) => {
4483
- return {
4484
- message: (0, smithy_client_1.expectString)(output.message),
4485
- };
4486
- };
4487
- const de_InvalidEventPatternException = (output, context) => {
4488
- return {
4489
- message: (0, smithy_client_1.expectString)(output.message),
4490
- };
4491
- };
4492
- const de_InvalidStateException = (output, context) => {
4493
- return {
4494
- message: (0, smithy_client_1.expectString)(output.message),
4495
- };
4496
- };
4497
- const de_KinesisParameters = (output, context) => {
4498
- return {
4499
- PartitionKeyPath: (0, smithy_client_1.expectString)(output.PartitionKeyPath),
4500
- };
4501
- };
4502
- const de_LimitExceededException = (output, context) => {
4503
- return {
4504
- message: (0, smithy_client_1.expectString)(output.message),
4505
- };
4506
- };
4507
- const de_ListApiDestinationsResponse = (output, context) => {
4508
- return {
4509
- ApiDestinations: output.ApiDestinations != null ? de_ApiDestinationResponseList(output.ApiDestinations, context) : undefined,
4510
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4511
- };
4512
- };
4513
- const de_ListArchivesResponse = (output, context) => {
4514
- return {
4515
- Archives: output.Archives != null ? de_ArchiveResponseList(output.Archives, context) : undefined,
4516
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4517
- };
4518
- };
4519
- const de_ListConnectionsResponse = (output, context) => {
4520
- return {
4521
- Connections: output.Connections != null ? de_ConnectionResponseList(output.Connections, context) : undefined,
4522
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4523
- };
4524
- };
4525
- const de_ListEndpointsResponse = (output, context) => {
4526
- return {
4527
- Endpoints: output.Endpoints != null ? de_EndpointList(output.Endpoints, context) : undefined,
4528
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4529
- };
4530
- };
4531
- const de_ListEventBusesResponse = (output, context) => {
4532
- return {
4533
- EventBuses: output.EventBuses != null ? de_EventBusList(output.EventBuses, context) : undefined,
4534
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4535
- };
4536
- };
4537
- const de_ListEventSourcesResponse = (output, context) => {
4538
- return {
4539
- EventSources: output.EventSources != null ? de_EventSourceList(output.EventSources, context) : undefined,
4540
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4541
- };
4542
- };
4543
- const de_ListPartnerEventSourceAccountsResponse = (output, context) => {
4544
- return {
4545
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4546
- PartnerEventSourceAccounts: output.PartnerEventSourceAccounts != null
4547
- ? de_PartnerEventSourceAccountList(output.PartnerEventSourceAccounts, context)
4548
- : undefined,
4549
- };
4550
- };
4551
- const de_ListPartnerEventSourcesResponse = (output, context) => {
4552
- return {
4553
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4554
- PartnerEventSources: output.PartnerEventSources != null ? de_PartnerEventSourceList(output.PartnerEventSources, context) : undefined,
4555
- };
4556
- };
4557
- const de_ListReplaysResponse = (output, context) => {
4558
- return {
4559
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4560
- Replays: output.Replays != null ? de_ReplayList(output.Replays, context) : undefined,
4561
- };
4562
- };
4563
- const de_ListRuleNamesByTargetResponse = (output, context) => {
4564
- return {
4565
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4566
- RuleNames: output.RuleNames != null ? de_RuleNameList(output.RuleNames, context) : undefined,
4567
- };
4568
- };
4569
- const de_ListRulesResponse = (output, context) => {
4570
- return {
4571
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4572
- Rules: output.Rules != null ? de_RuleResponseList(output.Rules, context) : undefined,
4573
- };
4574
- };
4575
- const de_ListTagsForResourceResponse = (output, context) => {
4576
- return {
4577
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4578
- };
4579
- };
4580
- const de_ListTargetsByRuleResponse = (output, context) => {
4581
- return {
4582
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4583
- Targets: output.Targets != null ? de_TargetList(output.Targets, context) : undefined,
4584
- };
4585
- };
4586
- const de_ManagedRuleException = (output, context) => {
4587
- return {
4588
- message: (0, smithy_client_1.expectString)(output.message),
4589
- };
4590
- };
4591
- const de_NetworkConfiguration = (output, context) => {
4592
- return {
4593
- awsvpcConfiguration: output.awsvpcConfiguration != null ? de_AwsVpcConfiguration(output.awsvpcConfiguration, context) : undefined,
4594
- };
4595
- };
4596
- const de_OperationDisabledException = (output, context) => {
4597
- return {
4598
- message: (0, smithy_client_1.expectString)(output.message),
4599
- };
4600
- };
4601
- const de_PartnerEventSource = (output, context) => {
4602
- return {
4603
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4604
- Name: (0, smithy_client_1.expectString)(output.Name),
4605
- };
4606
- };
4607
- const de_PartnerEventSourceAccount = (output, context) => {
4608
- return {
4609
- Account: (0, smithy_client_1.expectString)(output.Account),
4610
- CreationTime: output.CreationTime != null
4611
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4612
- : undefined,
4613
- ExpirationTime: output.ExpirationTime != null
4614
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTime)))
4615
- : undefined,
4616
- State: (0, smithy_client_1.expectString)(output.State),
4617
- };
4618
- };
4619
- const de_PartnerEventSourceAccountList = (output, context) => {
4620
- const retVal = (output || [])
4621
- .filter((e) => e != null)
4622
- .map((entry) => {
4623
- if (entry === null) {
4624
- return null;
4625
- }
4626
- return de_PartnerEventSourceAccount(entry, context);
4627
- });
4628
- return retVal;
4629
- };
4630
- const de_PartnerEventSourceList = (output, context) => {
4631
- const retVal = (output || [])
4632
- .filter((e) => e != null)
4633
- .map((entry) => {
4634
- if (entry === null) {
4635
- return null;
4636
- }
4637
- return de_PartnerEventSource(entry, context);
4638
- });
4639
- return retVal;
4640
- };
4641
- const de_PathParameterList = (output, context) => {
4642
- const retVal = (output || [])
4643
- .filter((e) => e != null)
4644
- .map((entry) => {
4645
- if (entry === null) {
4646
- return null;
4647
- }
4648
- return (0, smithy_client_1.expectString)(entry);
2979
+ const de_ListConnectionsResponse = (output, context) => {
2980
+ return (0, smithy_client_1.take)(output, {
2981
+ Connections: (_) => de_ConnectionResponseList(_, context),
2982
+ NextToken: smithy_client_1.expectString,
4649
2983
  });
4650
- return retVal;
4651
- };
4652
- const de_PlacementConstraint = (output, context) => {
4653
- return {
4654
- expression: (0, smithy_client_1.expectString)(output.expression),
4655
- type: (0, smithy_client_1.expectString)(output.type),
4656
- };
4657
2984
  };
4658
- const de_PlacementConstraints = (output, context) => {
4659
- const retVal = (output || [])
4660
- .filter((e) => e != null)
4661
- .map((entry) => {
4662
- if (entry === null) {
4663
- return null;
4664
- }
4665
- return de_PlacementConstraint(entry, context);
2985
+ const de_ListEndpointsResponse = (output, context) => {
2986
+ return (0, smithy_client_1.take)(output, {
2987
+ Endpoints: (_) => de_EndpointList(_, context),
2988
+ NextToken: smithy_client_1.expectString,
4666
2989
  });
4667
- return retVal;
4668
2990
  };
4669
- const de_PlacementStrategies = (output, context) => {
4670
- const retVal = (output || [])
4671
- .filter((e) => e != null)
4672
- .map((entry) => {
4673
- if (entry === null) {
4674
- return null;
4675
- }
4676
- return de_PlacementStrategy(entry, context);
2991
+ const de_ListEventSourcesResponse = (output, context) => {
2992
+ return (0, smithy_client_1.take)(output, {
2993
+ EventSources: (_) => de_EventSourceList(_, context),
2994
+ NextToken: smithy_client_1.expectString,
4677
2995
  });
4678
- return retVal;
4679
- };
4680
- const de_PlacementStrategy = (output, context) => {
4681
- return {
4682
- field: (0, smithy_client_1.expectString)(output.field),
4683
- type: (0, smithy_client_1.expectString)(output.type),
4684
- };
4685
- };
4686
- const de_PolicyLengthExceededException = (output, context) => {
4687
- return {
4688
- message: (0, smithy_client_1.expectString)(output.message),
4689
- };
4690
- };
4691
- const de_Primary = (output, context) => {
4692
- return {
4693
- HealthCheck: (0, smithy_client_1.expectString)(output.HealthCheck),
4694
- };
4695
- };
4696
- const de_PutEventsResponse = (output, context) => {
4697
- return {
4698
- Entries: output.Entries != null ? de_PutEventsResultEntryList(output.Entries, context) : undefined,
4699
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4700
- };
4701
2996
  };
4702
- const de_PutEventsResultEntry = (output, context) => {
4703
- return {
4704
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4705
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4706
- EventId: (0, smithy_client_1.expectString)(output.EventId),
4707
- };
4708
- };
4709
- const de_PutEventsResultEntryList = (output, context) => {
4710
- const retVal = (output || [])
4711
- .filter((e) => e != null)
4712
- .map((entry) => {
4713
- if (entry === null) {
4714
- return null;
4715
- }
4716
- return de_PutEventsResultEntry(entry, context);
2997
+ const de_ListPartnerEventSourceAccountsResponse = (output, context) => {
2998
+ return (0, smithy_client_1.take)(output, {
2999
+ NextToken: smithy_client_1.expectString,
3000
+ PartnerEventSourceAccounts: (_) => de_PartnerEventSourceAccountList(_, context),
4717
3001
  });
4718
- return retVal;
4719
- };
4720
- const de_PutPartnerEventsResponse = (output, context) => {
4721
- return {
4722
- Entries: output.Entries != null ? de_PutPartnerEventsResultEntryList(output.Entries, context) : undefined,
4723
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4724
- };
4725
3002
  };
4726
- const de_PutPartnerEventsResultEntry = (output, context) => {
4727
- return {
4728
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4729
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4730
- EventId: (0, smithy_client_1.expectString)(output.EventId),
4731
- };
4732
- };
4733
- const de_PutPartnerEventsResultEntryList = (output, context) => {
4734
- const retVal = (output || [])
4735
- .filter((e) => e != null)
4736
- .map((entry) => {
4737
- if (entry === null) {
4738
- return null;
4739
- }
4740
- return de_PutPartnerEventsResultEntry(entry, context);
3003
+ const de_ListReplaysResponse = (output, context) => {
3004
+ return (0, smithy_client_1.take)(output, {
3005
+ NextToken: smithy_client_1.expectString,
3006
+ Replays: (_) => de_ReplayList(_, context),
4741
3007
  });
4742
- return retVal;
4743
- };
4744
- const de_PutRuleResponse = (output, context) => {
4745
- return {
4746
- RuleArn: (0, smithy_client_1.expectString)(output.RuleArn),
4747
- };
4748
3008
  };
4749
- const de_PutTargetsResponse = (output, context) => {
4750
- return {
4751
- FailedEntries: output.FailedEntries != null ? de_PutTargetsResultEntryList(output.FailedEntries, context) : undefined,
4752
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4753
- };
4754
- };
4755
- const de_PutTargetsResultEntry = (output, context) => {
4756
- return {
4757
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4758
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4759
- TargetId: (0, smithy_client_1.expectString)(output.TargetId),
4760
- };
4761
- };
4762
- const de_PutTargetsResultEntryList = (output, context) => {
4763
- const retVal = (output || [])
4764
- .filter((e) => e != null)
4765
- .map((entry) => {
4766
- if (entry === null) {
4767
- return null;
4768
- }
4769
- return de_PutTargetsResultEntry(entry, context);
3009
+ const de_PartnerEventSourceAccount = (output, context) => {
3010
+ return (0, smithy_client_1.take)(output, {
3011
+ Account: smithy_client_1.expectString,
3012
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3013
+ ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3014
+ State: smithy_client_1.expectString,
4770
3015
  });
4771
- return retVal;
4772
- };
4773
- const de_QueryStringParametersMap = (output, context) => {
4774
- return Object.entries(output).reduce((acc, [key, value]) => {
4775
- if (value === null) {
4776
- return acc;
4777
- }
4778
- acc[key] = (0, smithy_client_1.expectString)(value);
4779
- return acc;
4780
- }, {});
4781
- };
4782
- const de_RedshiftDataParameters = (output, context) => {
4783
- return {
4784
- Database: (0, smithy_client_1.expectString)(output.Database),
4785
- DbUser: (0, smithy_client_1.expectString)(output.DbUser),
4786
- SecretManagerArn: (0, smithy_client_1.expectString)(output.SecretManagerArn),
4787
- Sql: (0, smithy_client_1.expectString)(output.Sql),
4788
- Sqls: output.Sqls != null ? de_Sqls(output.Sqls, context) : undefined,
4789
- StatementName: (0, smithy_client_1.expectString)(output.StatementName),
4790
- WithEvent: (0, smithy_client_1.expectBoolean)(output.WithEvent),
4791
- };
4792
- };
4793
- const de_RemoveTargetsResponse = (output, context) => {
4794
- return {
4795
- FailedEntries: output.FailedEntries != null ? de_RemoveTargetsResultEntryList(output.FailedEntries, context) : undefined,
4796
- FailedEntryCount: (0, smithy_client_1.expectInt32)(output.FailedEntryCount),
4797
- };
4798
3016
  };
4799
- const de_RemoveTargetsResultEntry = (output, context) => {
4800
- return {
4801
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4802
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4803
- TargetId: (0, smithy_client_1.expectString)(output.TargetId),
4804
- };
4805
- };
4806
- const de_RemoveTargetsResultEntryList = (output, context) => {
3017
+ const de_PartnerEventSourceAccountList = (output, context) => {
4807
3018
  const retVal = (output || [])
4808
3019
  .filter((e) => e != null)
4809
3020
  .map((entry) => {
4810
- if (entry === null) {
4811
- return null;
4812
- }
4813
- return de_RemoveTargetsResultEntry(entry, context);
3021
+ return de_PartnerEventSourceAccount(entry, context);
4814
3022
  });
4815
3023
  return retVal;
4816
3024
  };
4817
3025
  const de_Replay = (output, context) => {
4818
- return {
4819
- EventEndTime: output.EventEndTime != null
4820
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventEndTime)))
4821
- : undefined,
4822
- EventLastReplayedTime: output.EventLastReplayedTime != null
4823
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventLastReplayedTime)))
4824
- : undefined,
4825
- EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
4826
- EventStartTime: output.EventStartTime != null
4827
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventStartTime)))
4828
- : undefined,
4829
- ReplayEndTime: output.ReplayEndTime != null
4830
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayEndTime)))
4831
- : undefined,
4832
- ReplayName: (0, smithy_client_1.expectString)(output.ReplayName),
4833
- ReplayStartTime: output.ReplayStartTime != null
4834
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayStartTime)))
4835
- : undefined,
4836
- State: (0, smithy_client_1.expectString)(output.State),
4837
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
4838
- };
4839
- };
4840
- const de_ReplayDestination = (output, context) => {
4841
- return {
4842
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4843
- FilterArns: output.FilterArns != null ? de_ReplayDestinationFilters(output.FilterArns, context) : undefined,
4844
- };
4845
- };
4846
- const de_ReplayDestinationFilters = (output, context) => {
4847
- const retVal = (output || [])
4848
- .filter((e) => e != null)
4849
- .map((entry) => {
4850
- if (entry === null) {
4851
- return null;
4852
- }
4853
- return (0, smithy_client_1.expectString)(entry);
3026
+ return (0, smithy_client_1.take)(output, {
3027
+ EventEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3028
+ EventLastReplayedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3029
+ EventSourceArn: smithy_client_1.expectString,
3030
+ EventStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3031
+ ReplayEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3032
+ ReplayName: smithy_client_1.expectString,
3033
+ ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3034
+ State: smithy_client_1.expectString,
3035
+ StateReason: smithy_client_1.expectString,
4854
3036
  });
4855
- return retVal;
4856
3037
  };
4857
3038
  const de_ReplayList = (output, context) => {
4858
3039
  const retVal = (output || [])
4859
3040
  .filter((e) => e != null)
4860
3041
  .map((entry) => {
4861
- if (entry === null) {
4862
- return null;
4863
- }
4864
3042
  return de_Replay(entry, context);
4865
3043
  });
4866
3044
  return retVal;
4867
3045
  };
4868
- const de_ReplicationConfig = (output, context) => {
4869
- return {
4870
- State: (0, smithy_client_1.expectString)(output.State),
4871
- };
4872
- };
4873
- const de_ResourceAlreadyExistsException = (output, context) => {
4874
- return {
4875
- message: (0, smithy_client_1.expectString)(output.message),
4876
- };
4877
- };
4878
- const de_ResourceNotFoundException = (output, context) => {
4879
- return {
4880
- message: (0, smithy_client_1.expectString)(output.message),
4881
- };
4882
- };
4883
- const de_RetryPolicy = (output, context) => {
4884
- return {
4885
- MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
4886
- MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
4887
- };
4888
- };
4889
- const de_RoutingConfig = (output, context) => {
4890
- return {
4891
- FailoverConfig: output.FailoverConfig != null ? de_FailoverConfig(output.FailoverConfig, context) : undefined,
4892
- };
4893
- };
4894
- const de_Rule = (output, context) => {
4895
- return {
4896
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4897
- Description: (0, smithy_client_1.expectString)(output.Description),
4898
- EventBusName: (0, smithy_client_1.expectString)(output.EventBusName),
4899
- EventPattern: (0, smithy_client_1.expectString)(output.EventPattern),
4900
- ManagedBy: (0, smithy_client_1.expectString)(output.ManagedBy),
4901
- Name: (0, smithy_client_1.expectString)(output.Name),
4902
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4903
- ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
4904
- State: (0, smithy_client_1.expectString)(output.State),
4905
- };
4906
- };
4907
- const de_RuleNameList = (output, context) => {
4908
- const retVal = (output || [])
4909
- .filter((e) => e != null)
4910
- .map((entry) => {
4911
- if (entry === null) {
4912
- return null;
4913
- }
4914
- return (0, smithy_client_1.expectString)(entry);
4915
- });
4916
- return retVal;
4917
- };
4918
- const de_RuleResponseList = (output, context) => {
4919
- const retVal = (output || [])
4920
- .filter((e) => e != null)
4921
- .map((entry) => {
4922
- if (entry === null) {
4923
- return null;
4924
- }
4925
- return de_Rule(entry, context);
4926
- });
4927
- return retVal;
4928
- };
4929
- const de_RunCommandParameters = (output, context) => {
4930
- return {
4931
- RunCommandTargets: output.RunCommandTargets != null ? de_RunCommandTargets(output.RunCommandTargets, context) : undefined,
4932
- };
4933
- };
4934
- const de_RunCommandTarget = (output, context) => {
4935
- return {
4936
- Key: (0, smithy_client_1.expectString)(output.Key),
4937
- Values: output.Values != null ? de_RunCommandTargetValues(output.Values, context) : undefined,
4938
- };
4939
- };
4940
- const de_RunCommandTargets = (output, context) => {
4941
- const retVal = (output || [])
4942
- .filter((e) => e != null)
4943
- .map((entry) => {
4944
- if (entry === null) {
4945
- return null;
4946
- }
4947
- return de_RunCommandTarget(entry, context);
4948
- });
4949
- return retVal;
4950
- };
4951
- const de_RunCommandTargetValues = (output, context) => {
4952
- const retVal = (output || [])
4953
- .filter((e) => e != null)
4954
- .map((entry) => {
4955
- if (entry === null) {
4956
- return null;
4957
- }
4958
- return (0, smithy_client_1.expectString)(entry);
4959
- });
4960
- return retVal;
4961
- };
4962
- const de_SageMakerPipelineParameter = (output, context) => {
4963
- return {
4964
- Name: (0, smithy_client_1.expectString)(output.Name),
4965
- Value: (0, smithy_client_1.expectString)(output.Value),
4966
- };
4967
- };
4968
- const de_SageMakerPipelineParameterList = (output, context) => {
4969
- const retVal = (output || [])
4970
- .filter((e) => e != null)
4971
- .map((entry) => {
4972
- if (entry === null) {
4973
- return null;
4974
- }
4975
- return de_SageMakerPipelineParameter(entry, context);
4976
- });
4977
- return retVal;
4978
- };
4979
- const de_SageMakerPipelineParameters = (output, context) => {
4980
- return {
4981
- PipelineParameterList: output.PipelineParameterList != null
4982
- ? de_SageMakerPipelineParameterList(output.PipelineParameterList, context)
4983
- : undefined,
4984
- };
4985
- };
4986
- const de_Secondary = (output, context) => {
4987
- return {
4988
- Route: (0, smithy_client_1.expectString)(output.Route),
4989
- };
4990
- };
4991
- const de_Sqls = (output, context) => {
4992
- const retVal = (output || [])
4993
- .filter((e) => e != null)
4994
- .map((entry) => {
4995
- if (entry === null) {
4996
- return null;
4997
- }
4998
- return (0, smithy_client_1.expectString)(entry);
4999
- });
5000
- return retVal;
5001
- };
5002
- const de_SqsParameters = (output, context) => {
5003
- return {
5004
- MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
5005
- };
5006
- };
5007
3046
  const de_StartReplayResponse = (output, context) => {
5008
- return {
5009
- ReplayArn: (0, smithy_client_1.expectString)(output.ReplayArn),
5010
- ReplayStartTime: output.ReplayStartTime != null
5011
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplayStartTime)))
5012
- : undefined,
5013
- State: (0, smithy_client_1.expectString)(output.State),
5014
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
5015
- };
5016
- };
5017
- const de_StringList = (output, context) => {
5018
- const retVal = (output || [])
5019
- .filter((e) => e != null)
5020
- .map((entry) => {
5021
- if (entry === null) {
5022
- return null;
5023
- }
5024
- return (0, smithy_client_1.expectString)(entry);
5025
- });
5026
- return retVal;
5027
- };
5028
- const de_Tag = (output, context) => {
5029
- return {
5030
- Key: (0, smithy_client_1.expectString)(output.Key),
5031
- Value: (0, smithy_client_1.expectString)(output.Value),
5032
- };
5033
- };
5034
- const de_TagList = (output, context) => {
5035
- const retVal = (output || [])
5036
- .filter((e) => e != null)
5037
- .map((entry) => {
5038
- if (entry === null) {
5039
- return null;
5040
- }
5041
- return de_Tag(entry, context);
5042
- });
5043
- return retVal;
5044
- };
5045
- const de_TagResourceResponse = (output, context) => {
5046
- return {};
5047
- };
5048
- const de_Target = (output, context) => {
5049
- return {
5050
- Arn: (0, smithy_client_1.expectString)(output.Arn),
5051
- BatchParameters: output.BatchParameters != null ? de_BatchParameters(output.BatchParameters, context) : undefined,
5052
- DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
5053
- EcsParameters: output.EcsParameters != null ? de_EcsParameters(output.EcsParameters, context) : undefined,
5054
- HttpParameters: output.HttpParameters != null ? de_HttpParameters(output.HttpParameters, context) : undefined,
5055
- Id: (0, smithy_client_1.expectString)(output.Id),
5056
- Input: (0, smithy_client_1.expectString)(output.Input),
5057
- InputPath: (0, smithy_client_1.expectString)(output.InputPath),
5058
- InputTransformer: output.InputTransformer != null ? de_InputTransformer(output.InputTransformer, context) : undefined,
5059
- KinesisParameters: output.KinesisParameters != null ? de_KinesisParameters(output.KinesisParameters, context) : undefined,
5060
- RedshiftDataParameters: output.RedshiftDataParameters != null
5061
- ? de_RedshiftDataParameters(output.RedshiftDataParameters, context)
5062
- : undefined,
5063
- RetryPolicy: output.RetryPolicy != null ? de_RetryPolicy(output.RetryPolicy, context) : undefined,
5064
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
5065
- RunCommandParameters: output.RunCommandParameters != null ? de_RunCommandParameters(output.RunCommandParameters, context) : undefined,
5066
- SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
5067
- ? de_SageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
5068
- : undefined,
5069
- SqsParameters: output.SqsParameters != null ? de_SqsParameters(output.SqsParameters, context) : undefined,
5070
- };
5071
- };
5072
- const de_TargetList = (output, context) => {
5073
- const retVal = (output || [])
5074
- .filter((e) => e != null)
5075
- .map((entry) => {
5076
- if (entry === null) {
5077
- return null;
5078
- }
5079
- return de_Target(entry, context);
3047
+ return (0, smithy_client_1.take)(output, {
3048
+ ReplayArn: smithy_client_1.expectString,
3049
+ ReplayStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3050
+ State: smithy_client_1.expectString,
3051
+ StateReason: smithy_client_1.expectString,
5080
3052
  });
5081
- return retVal;
5082
- };
5083
- const de_TestEventPatternResponse = (output, context) => {
5084
- return {
5085
- Result: (0, smithy_client_1.expectBoolean)(output.Result),
5086
- };
5087
- };
5088
- const de_TransformerPaths = (output, context) => {
5089
- return Object.entries(output).reduce((acc, [key, value]) => {
5090
- if (value === null) {
5091
- return acc;
5092
- }
5093
- acc[key] = (0, smithy_client_1.expectString)(value);
5094
- return acc;
5095
- }, {});
5096
- };
5097
- const de_UntagResourceResponse = (output, context) => {
5098
- return {};
5099
3053
  };
5100
3054
  const de_UpdateApiDestinationResponse = (output, context) => {
5101
- return {
5102
- ApiDestinationArn: (0, smithy_client_1.expectString)(output.ApiDestinationArn),
5103
- ApiDestinationState: (0, smithy_client_1.expectString)(output.ApiDestinationState),
5104
- CreationTime: output.CreationTime != null
5105
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5106
- : undefined,
5107
- LastModifiedTime: output.LastModifiedTime != null
5108
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
5109
- : undefined,
5110
- };
3055
+ return (0, smithy_client_1.take)(output, {
3056
+ ApiDestinationArn: smithy_client_1.expectString,
3057
+ ApiDestinationState: smithy_client_1.expectString,
3058
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3059
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3060
+ });
5111
3061
  };
5112
3062
  const de_UpdateArchiveResponse = (output, context) => {
5113
- return {
5114
- ArchiveArn: (0, smithy_client_1.expectString)(output.ArchiveArn),
5115
- CreationTime: output.CreationTime != null
5116
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5117
- : undefined,
5118
- State: (0, smithy_client_1.expectString)(output.State),
5119
- StateReason: (0, smithy_client_1.expectString)(output.StateReason),
5120
- };
3063
+ return (0, smithy_client_1.take)(output, {
3064
+ ArchiveArn: smithy_client_1.expectString,
3065
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3066
+ State: smithy_client_1.expectString,
3067
+ StateReason: smithy_client_1.expectString,
3068
+ });
5121
3069
  };
5122
3070
  const de_UpdateConnectionResponse = (output, context) => {
5123
- return {
5124
- ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
5125
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
5126
- CreationTime: output.CreationTime != null
5127
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5128
- : undefined,
5129
- LastAuthorizedTime: output.LastAuthorizedTime != null
5130
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAuthorizedTime)))
5131
- : undefined,
5132
- LastModifiedTime: output.LastModifiedTime != null
5133
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
5134
- : undefined,
5135
- };
5136
- };
5137
- const de_UpdateEndpointResponse = (output, context) => {
5138
- return {
5139
- Arn: (0, smithy_client_1.expectString)(output.Arn),
5140
- EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
5141
- EndpointUrl: (0, smithy_client_1.expectString)(output.EndpointUrl),
5142
- EventBuses: output.EventBuses != null ? de_EndpointEventBusList(output.EventBuses, context) : undefined,
5143
- Name: (0, smithy_client_1.expectString)(output.Name),
5144
- ReplicationConfig: output.ReplicationConfig != null ? de_ReplicationConfig(output.ReplicationConfig, context) : undefined,
5145
- RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
5146
- RoutingConfig: output.RoutingConfig != null ? de_RoutingConfig(output.RoutingConfig, context) : undefined,
5147
- State: (0, smithy_client_1.expectString)(output.State),
5148
- };
3071
+ return (0, smithy_client_1.take)(output, {
3072
+ ConnectionArn: smithy_client_1.expectString,
3073
+ ConnectionState: smithy_client_1.expectString,
3074
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3075
+ LastAuthorizedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3076
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3077
+ });
5149
3078
  };
5150
3079
  const deserializeMetadata = (output) => ({
5151
3080
  httpStatusCode: output.statusCode,
@@ -5160,6 +3089,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5160
3089
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5161
3090
  };
5162
3091
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3092
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(EventBridgeServiceException_1.EventBridgeServiceException);
5163
3093
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5164
3094
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5165
3095
  const contents = {
@@ -5178,6 +3108,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5178
3108
  }
5179
3109
  return new protocol_http_1.HttpRequest(contents);
5180
3110
  };
3111
+ function sharedHeaders(operation) {
3112
+ return {
3113
+ "content-type": "application/x-amz-json-1.1",
3114
+ "x-amz-target": `AWSEvents.${operation}`,
3115
+ };
3116
+ }
5181
3117
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5182
3118
  if (encoded.length) {
5183
3119
  return JSON.parse(encoded);