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

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