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