@aws-sdk/client-kinesis-analytics 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,202 +6,142 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const KinesisAnalyticsServiceException_1 = require("../models/KinesisAnalyticsServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_AddApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
9
- const headers = {
10
- "content-type": "application/x-amz-json-1.1",
11
- "x-amz-target": "KinesisAnalytics_20150814.AddApplicationCloudWatchLoggingOption",
12
- };
9
+ const headers = sharedHeaders("AddApplicationCloudWatchLoggingOption");
13
10
  let body;
14
- body = JSON.stringify(se_AddApplicationCloudWatchLoggingOptionRequest(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
15
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
13
  };
17
14
  exports.se_AddApplicationCloudWatchLoggingOptionCommand = se_AddApplicationCloudWatchLoggingOptionCommand;
18
15
  const se_AddApplicationInputCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-amz-json-1.1",
21
- "x-amz-target": "KinesisAnalytics_20150814.AddApplicationInput",
22
- };
16
+ const headers = sharedHeaders("AddApplicationInput");
23
17
  let body;
24
- body = JSON.stringify(se_AddApplicationInputRequest(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
25
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
20
  };
27
21
  exports.se_AddApplicationInputCommand = se_AddApplicationInputCommand;
28
22
  const se_AddApplicationInputProcessingConfigurationCommand = async (input, context) => {
29
- const headers = {
30
- "content-type": "application/x-amz-json-1.1",
31
- "x-amz-target": "KinesisAnalytics_20150814.AddApplicationInputProcessingConfiguration",
32
- };
23
+ const headers = sharedHeaders("AddApplicationInputProcessingConfiguration");
33
24
  let body;
34
- body = JSON.stringify(se_AddApplicationInputProcessingConfigurationRequest(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
27
  };
37
28
  exports.se_AddApplicationInputProcessingConfigurationCommand = se_AddApplicationInputProcessingConfigurationCommand;
38
29
  const se_AddApplicationOutputCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-amz-json-1.1",
41
- "x-amz-target": "KinesisAnalytics_20150814.AddApplicationOutput",
42
- };
30
+ const headers = sharedHeaders("AddApplicationOutput");
43
31
  let body;
44
- body = JSON.stringify(se_AddApplicationOutputRequest(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
45
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
34
  };
47
35
  exports.se_AddApplicationOutputCommand = se_AddApplicationOutputCommand;
48
36
  const se_AddApplicationReferenceDataSourceCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-amz-json-1.1",
51
- "x-amz-target": "KinesisAnalytics_20150814.AddApplicationReferenceDataSource",
52
- };
37
+ const headers = sharedHeaders("AddApplicationReferenceDataSource");
53
38
  let body;
54
- body = JSON.stringify(se_AddApplicationReferenceDataSourceRequest(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
41
  };
57
42
  exports.se_AddApplicationReferenceDataSourceCommand = se_AddApplicationReferenceDataSourceCommand;
58
43
  const se_CreateApplicationCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "KinesisAnalytics_20150814.CreateApplication",
62
- };
44
+ const headers = sharedHeaders("CreateApplication");
63
45
  let body;
64
- body = JSON.stringify(se_CreateApplicationRequest(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
65
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
48
  };
67
49
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
68
50
  const se_DeleteApplicationCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "KinesisAnalytics_20150814.DeleteApplication",
72
- };
51
+ const headers = sharedHeaders("DeleteApplication");
73
52
  let body;
74
53
  body = JSON.stringify(se_DeleteApplicationRequest(input, context));
75
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
55
  };
77
56
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
78
57
  const se_DeleteApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-amz-json-1.1",
81
- "x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationCloudWatchLoggingOption",
82
- };
58
+ const headers = sharedHeaders("DeleteApplicationCloudWatchLoggingOption");
83
59
  let body;
84
- body = JSON.stringify(se_DeleteApplicationCloudWatchLoggingOptionRequest(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
85
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
62
  };
87
63
  exports.se_DeleteApplicationCloudWatchLoggingOptionCommand = se_DeleteApplicationCloudWatchLoggingOptionCommand;
88
64
  const se_DeleteApplicationInputProcessingConfigurationCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-amz-json-1.1",
91
- "x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationInputProcessingConfiguration",
92
- };
65
+ const headers = sharedHeaders("DeleteApplicationInputProcessingConfiguration");
93
66
  let body;
94
- body = JSON.stringify(se_DeleteApplicationInputProcessingConfigurationRequest(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
95
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
69
  };
97
70
  exports.se_DeleteApplicationInputProcessingConfigurationCommand = se_DeleteApplicationInputProcessingConfigurationCommand;
98
71
  const se_DeleteApplicationOutputCommand = async (input, context) => {
99
- const headers = {
100
- "content-type": "application/x-amz-json-1.1",
101
- "x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationOutput",
102
- };
72
+ const headers = sharedHeaders("DeleteApplicationOutput");
103
73
  let body;
104
- body = JSON.stringify(se_DeleteApplicationOutputRequest(input, context));
74
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
76
  };
107
77
  exports.se_DeleteApplicationOutputCommand = se_DeleteApplicationOutputCommand;
108
78
  const se_DeleteApplicationReferenceDataSourceCommand = async (input, context) => {
109
- const headers = {
110
- "content-type": "application/x-amz-json-1.1",
111
- "x-amz-target": "KinesisAnalytics_20150814.DeleteApplicationReferenceDataSource",
112
- };
79
+ const headers = sharedHeaders("DeleteApplicationReferenceDataSource");
113
80
  let body;
114
- body = JSON.stringify(se_DeleteApplicationReferenceDataSourceRequest(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
115
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
83
  };
117
84
  exports.se_DeleteApplicationReferenceDataSourceCommand = se_DeleteApplicationReferenceDataSourceCommand;
118
85
  const se_DescribeApplicationCommand = async (input, context) => {
119
- const headers = {
120
- "content-type": "application/x-amz-json-1.1",
121
- "x-amz-target": "KinesisAnalytics_20150814.DescribeApplication",
122
- };
86
+ const headers = sharedHeaders("DescribeApplication");
123
87
  let body;
124
- body = JSON.stringify(se_DescribeApplicationRequest(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
90
  };
127
91
  exports.se_DescribeApplicationCommand = se_DescribeApplicationCommand;
128
92
  const se_DiscoverInputSchemaCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-amz-json-1.1",
131
- "x-amz-target": "KinesisAnalytics_20150814.DiscoverInputSchema",
132
- };
93
+ const headers = sharedHeaders("DiscoverInputSchema");
133
94
  let body;
134
- body = JSON.stringify(se_DiscoverInputSchemaRequest(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
135
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
97
  };
137
98
  exports.se_DiscoverInputSchemaCommand = se_DiscoverInputSchemaCommand;
138
99
  const se_ListApplicationsCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-amz-json-1.1",
141
- "x-amz-target": "KinesisAnalytics_20150814.ListApplications",
142
- };
100
+ const headers = sharedHeaders("ListApplications");
143
101
  let body;
144
- body = JSON.stringify(se_ListApplicationsRequest(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
145
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
104
  };
147
105
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
148
106
  const se_ListTagsForResourceCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-amz-json-1.1",
151
- "x-amz-target": "KinesisAnalytics_20150814.ListTagsForResource",
152
- };
107
+ const headers = sharedHeaders("ListTagsForResource");
153
108
  let body;
154
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
155
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
111
  };
157
112
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
158
113
  const se_StartApplicationCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "KinesisAnalytics_20150814.StartApplication",
162
- };
114
+ const headers = sharedHeaders("StartApplication");
163
115
  let body;
164
- body = JSON.stringify(se_StartApplicationRequest(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
165
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
118
  };
167
119
  exports.se_StartApplicationCommand = se_StartApplicationCommand;
168
120
  const se_StopApplicationCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-amz-json-1.1",
171
- "x-amz-target": "KinesisAnalytics_20150814.StopApplication",
172
- };
121
+ const headers = sharedHeaders("StopApplication");
173
122
  let body;
174
- body = JSON.stringify(se_StopApplicationRequest(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
125
  };
177
126
  exports.se_StopApplicationCommand = se_StopApplicationCommand;
178
127
  const se_TagResourceCommand = async (input, context) => {
179
- const headers = {
180
- "content-type": "application/x-amz-json-1.1",
181
- "x-amz-target": "KinesisAnalytics_20150814.TagResource",
182
- };
128
+ const headers = sharedHeaders("TagResource");
183
129
  let body;
184
- body = JSON.stringify(se_TagResourceRequest(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
185
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
132
  };
187
133
  exports.se_TagResourceCommand = se_TagResourceCommand;
188
134
  const se_UntagResourceCommand = async (input, context) => {
189
- const headers = {
190
- "content-type": "application/x-amz-json-1.1",
191
- "x-amz-target": "KinesisAnalytics_20150814.UntagResource",
192
- };
135
+ const headers = sharedHeaders("UntagResource");
193
136
  let body;
194
- body = JSON.stringify(se_UntagResourceRequest(input, context));
137
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
139
  };
197
140
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
198
141
  const se_UpdateApplicationCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-amz-json-1.1",
201
- "x-amz-target": "KinesisAnalytics_20150814.UpdateApplication",
202
- };
142
+ const headers = sharedHeaders("UpdateApplication");
203
143
  let body;
204
- body = JSON.stringify(se_UpdateApplicationRequest(input, context));
144
+ body = JSON.stringify((0, smithy_client_1._json)(input));
205
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
146
  };
207
147
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
@@ -211,12 +151,12 @@ const de_AddApplicationCloudWatchLoggingOptionCommand = async (output, context)
211
151
  }
212
152
  const data = await parseBody(output.body, context);
213
153
  let contents = {};
214
- contents = de_AddApplicationCloudWatchLoggingOptionResponse(data, context);
154
+ contents = (0, smithy_client_1._json)(data);
215
155
  const response = {
216
156
  $metadata: deserializeMetadata(output),
217
157
  ...contents,
218
158
  };
219
- return Promise.resolve(response);
159
+ return response;
220
160
  };
221
161
  exports.de_AddApplicationCloudWatchLoggingOptionCommand = de_AddApplicationCloudWatchLoggingOptionCommand;
222
162
  const de_AddApplicationCloudWatchLoggingOptionCommandError = async (output, context) => {
@@ -243,10 +183,9 @@ const de_AddApplicationCloudWatchLoggingOptionCommandError = async (output, cont
243
183
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
244
184
  default:
245
185
  const parsedBody = parsedOutput.body;
246
- (0, smithy_client_1.throwDefaultError)({
186
+ return throwDefaultError({
247
187
  output,
248
188
  parsedBody,
249
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
250
189
  errorCode,
251
190
  });
252
191
  }
@@ -257,12 +196,12 @@ const de_AddApplicationInputCommand = async (output, context) => {
257
196
  }
258
197
  const data = await parseBody(output.body, context);
259
198
  let contents = {};
260
- contents = de_AddApplicationInputResponse(data, context);
199
+ contents = (0, smithy_client_1._json)(data);
261
200
  const response = {
262
201
  $metadata: deserializeMetadata(output),
263
202
  ...contents,
264
203
  };
265
- return Promise.resolve(response);
204
+ return response;
266
205
  };
267
206
  exports.de_AddApplicationInputCommand = de_AddApplicationInputCommand;
268
207
  const de_AddApplicationInputCommandError = async (output, context) => {
@@ -292,10 +231,9 @@ const de_AddApplicationInputCommandError = async (output, context) => {
292
231
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
293
232
  default:
294
233
  const parsedBody = parsedOutput.body;
295
- (0, smithy_client_1.throwDefaultError)({
234
+ return throwDefaultError({
296
235
  output,
297
236
  parsedBody,
298
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
299
237
  errorCode,
300
238
  });
301
239
  }
@@ -306,12 +244,12 @@ const de_AddApplicationInputProcessingConfigurationCommand = async (output, cont
306
244
  }
307
245
  const data = await parseBody(output.body, context);
308
246
  let contents = {};
309
- contents = de_AddApplicationInputProcessingConfigurationResponse(data, context);
247
+ contents = (0, smithy_client_1._json)(data);
310
248
  const response = {
311
249
  $metadata: deserializeMetadata(output),
312
250
  ...contents,
313
251
  };
314
- return Promise.resolve(response);
252
+ return response;
315
253
  };
316
254
  exports.de_AddApplicationInputProcessingConfigurationCommand = de_AddApplicationInputProcessingConfigurationCommand;
317
255
  const de_AddApplicationInputProcessingConfigurationCommandError = async (output, context) => {
@@ -338,10 +276,9 @@ const de_AddApplicationInputProcessingConfigurationCommandError = async (output,
338
276
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
339
277
  default:
340
278
  const parsedBody = parsedOutput.body;
341
- (0, smithy_client_1.throwDefaultError)({
279
+ return throwDefaultError({
342
280
  output,
343
281
  parsedBody,
344
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
345
282
  errorCode,
346
283
  });
347
284
  }
@@ -352,12 +289,12 @@ const de_AddApplicationOutputCommand = async (output, context) => {
352
289
  }
353
290
  const data = await parseBody(output.body, context);
354
291
  let contents = {};
355
- contents = de_AddApplicationOutputResponse(data, context);
292
+ contents = (0, smithy_client_1._json)(data);
356
293
  const response = {
357
294
  $metadata: deserializeMetadata(output),
358
295
  ...contents,
359
296
  };
360
- return Promise.resolve(response);
297
+ return response;
361
298
  };
362
299
  exports.de_AddApplicationOutputCommand = de_AddApplicationOutputCommand;
363
300
  const de_AddApplicationOutputCommandError = async (output, context) => {
@@ -384,10 +321,9 @@ const de_AddApplicationOutputCommandError = async (output, context) => {
384
321
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
385
322
  default:
386
323
  const parsedBody = parsedOutput.body;
387
- (0, smithy_client_1.throwDefaultError)({
324
+ return throwDefaultError({
388
325
  output,
389
326
  parsedBody,
390
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
391
327
  errorCode,
392
328
  });
393
329
  }
@@ -398,12 +334,12 @@ const de_AddApplicationReferenceDataSourceCommand = async (output, context) => {
398
334
  }
399
335
  const data = await parseBody(output.body, context);
400
336
  let contents = {};
401
- contents = de_AddApplicationReferenceDataSourceResponse(data, context);
337
+ contents = (0, smithy_client_1._json)(data);
402
338
  const response = {
403
339
  $metadata: deserializeMetadata(output),
404
340
  ...contents,
405
341
  };
406
- return Promise.resolve(response);
342
+ return response;
407
343
  };
408
344
  exports.de_AddApplicationReferenceDataSourceCommand = de_AddApplicationReferenceDataSourceCommand;
409
345
  const de_AddApplicationReferenceDataSourceCommandError = async (output, context) => {
@@ -430,10 +366,9 @@ const de_AddApplicationReferenceDataSourceCommandError = async (output, context)
430
366
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
431
367
  default:
432
368
  const parsedBody = parsedOutput.body;
433
- (0, smithy_client_1.throwDefaultError)({
369
+ return throwDefaultError({
434
370
  output,
435
371
  parsedBody,
436
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
437
372
  errorCode,
438
373
  });
439
374
  }
@@ -444,12 +379,12 @@ const de_CreateApplicationCommand = async (output, context) => {
444
379
  }
445
380
  const data = await parseBody(output.body, context);
446
381
  let contents = {};
447
- contents = de_CreateApplicationResponse(data, context);
382
+ contents = (0, smithy_client_1._json)(data);
448
383
  const response = {
449
384
  $metadata: deserializeMetadata(output),
450
385
  ...contents,
451
386
  };
452
- return Promise.resolve(response);
387
+ return response;
453
388
  };
454
389
  exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
455
390
  const de_CreateApplicationCommandError = async (output, context) => {
@@ -479,10 +414,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
479
414
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
480
415
  default:
481
416
  const parsedBody = parsedOutput.body;
482
- (0, smithy_client_1.throwDefaultError)({
417
+ return throwDefaultError({
483
418
  output,
484
419
  parsedBody,
485
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
486
420
  errorCode,
487
421
  });
488
422
  }
@@ -493,12 +427,12 @@ const de_DeleteApplicationCommand = async (output, context) => {
493
427
  }
494
428
  const data = await parseBody(output.body, context);
495
429
  let contents = {};
496
- contents = de_DeleteApplicationResponse(data, context);
430
+ contents = (0, smithy_client_1._json)(data);
497
431
  const response = {
498
432
  $metadata: deserializeMetadata(output),
499
433
  ...contents,
500
434
  };
501
- return Promise.resolve(response);
435
+ return response;
502
436
  };
503
437
  exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
504
438
  const de_DeleteApplicationCommandError = async (output, context) => {
@@ -522,10 +456,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
522
456
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
523
457
  default:
524
458
  const parsedBody = parsedOutput.body;
525
- (0, smithy_client_1.throwDefaultError)({
459
+ return throwDefaultError({
526
460
  output,
527
461
  parsedBody,
528
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
529
462
  errorCode,
530
463
  });
531
464
  }
@@ -536,12 +469,12 @@ const de_DeleteApplicationCloudWatchLoggingOptionCommand = async (output, contex
536
469
  }
537
470
  const data = await parseBody(output.body, context);
538
471
  let contents = {};
539
- contents = de_DeleteApplicationCloudWatchLoggingOptionResponse(data, context);
472
+ contents = (0, smithy_client_1._json)(data);
540
473
  const response = {
541
474
  $metadata: deserializeMetadata(output),
542
475
  ...contents,
543
476
  };
544
- return Promise.resolve(response);
477
+ return response;
545
478
  };
546
479
  exports.de_DeleteApplicationCloudWatchLoggingOptionCommand = de_DeleteApplicationCloudWatchLoggingOptionCommand;
547
480
  const de_DeleteApplicationCloudWatchLoggingOptionCommandError = async (output, context) => {
@@ -568,10 +501,9 @@ const de_DeleteApplicationCloudWatchLoggingOptionCommandError = async (output, c
568
501
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
569
502
  default:
570
503
  const parsedBody = parsedOutput.body;
571
- (0, smithy_client_1.throwDefaultError)({
504
+ return throwDefaultError({
572
505
  output,
573
506
  parsedBody,
574
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
575
507
  errorCode,
576
508
  });
577
509
  }
@@ -582,12 +514,12 @@ const de_DeleteApplicationInputProcessingConfigurationCommand = async (output, c
582
514
  }
583
515
  const data = await parseBody(output.body, context);
584
516
  let contents = {};
585
- contents = de_DeleteApplicationInputProcessingConfigurationResponse(data, context);
517
+ contents = (0, smithy_client_1._json)(data);
586
518
  const response = {
587
519
  $metadata: deserializeMetadata(output),
588
520
  ...contents,
589
521
  };
590
- return Promise.resolve(response);
522
+ return response;
591
523
  };
592
524
  exports.de_DeleteApplicationInputProcessingConfigurationCommand = de_DeleteApplicationInputProcessingConfigurationCommand;
593
525
  const de_DeleteApplicationInputProcessingConfigurationCommandError = async (output, context) => {
@@ -614,10 +546,9 @@ const de_DeleteApplicationInputProcessingConfigurationCommandError = async (outp
614
546
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
615
547
  default:
616
548
  const parsedBody = parsedOutput.body;
617
- (0, smithy_client_1.throwDefaultError)({
549
+ return throwDefaultError({
618
550
  output,
619
551
  parsedBody,
620
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
621
552
  errorCode,
622
553
  });
623
554
  }
@@ -628,12 +559,12 @@ const de_DeleteApplicationOutputCommand = async (output, context) => {
628
559
  }
629
560
  const data = await parseBody(output.body, context);
630
561
  let contents = {};
631
- contents = de_DeleteApplicationOutputResponse(data, context);
562
+ contents = (0, smithy_client_1._json)(data);
632
563
  const response = {
633
564
  $metadata: deserializeMetadata(output),
634
565
  ...contents,
635
566
  };
636
- return Promise.resolve(response);
567
+ return response;
637
568
  };
638
569
  exports.de_DeleteApplicationOutputCommand = de_DeleteApplicationOutputCommand;
639
570
  const de_DeleteApplicationOutputCommandError = async (output, context) => {
@@ -660,10 +591,9 @@ const de_DeleteApplicationOutputCommandError = async (output, context) => {
660
591
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
661
592
  default:
662
593
  const parsedBody = parsedOutput.body;
663
- (0, smithy_client_1.throwDefaultError)({
594
+ return throwDefaultError({
664
595
  output,
665
596
  parsedBody,
666
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
667
597
  errorCode,
668
598
  });
669
599
  }
@@ -674,12 +604,12 @@ const de_DeleteApplicationReferenceDataSourceCommand = async (output, context) =
674
604
  }
675
605
  const data = await parseBody(output.body, context);
676
606
  let contents = {};
677
- contents = de_DeleteApplicationReferenceDataSourceResponse(data, context);
607
+ contents = (0, smithy_client_1._json)(data);
678
608
  const response = {
679
609
  $metadata: deserializeMetadata(output),
680
610
  ...contents,
681
611
  };
682
- return Promise.resolve(response);
612
+ return response;
683
613
  };
684
614
  exports.de_DeleteApplicationReferenceDataSourceCommand = de_DeleteApplicationReferenceDataSourceCommand;
685
615
  const de_DeleteApplicationReferenceDataSourceCommandError = async (output, context) => {
@@ -706,10 +636,9 @@ const de_DeleteApplicationReferenceDataSourceCommandError = async (output, conte
706
636
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
707
637
  default:
708
638
  const parsedBody = parsedOutput.body;
709
- (0, smithy_client_1.throwDefaultError)({
639
+ return throwDefaultError({
710
640
  output,
711
641
  parsedBody,
712
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
713
642
  errorCode,
714
643
  });
715
644
  }
@@ -725,7 +654,7 @@ const de_DescribeApplicationCommand = async (output, context) => {
725
654
  $metadata: deserializeMetadata(output),
726
655
  ...contents,
727
656
  };
728
- return Promise.resolve(response);
657
+ return response;
729
658
  };
730
659
  exports.de_DescribeApplicationCommand = de_DescribeApplicationCommand;
731
660
  const de_DescribeApplicationCommandError = async (output, context) => {
@@ -743,10 +672,9 @@ const de_DescribeApplicationCommandError = async (output, context) => {
743
672
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
744
673
  default:
745
674
  const parsedBody = parsedOutput.body;
746
- (0, smithy_client_1.throwDefaultError)({
675
+ return throwDefaultError({
747
676
  output,
748
677
  parsedBody,
749
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
750
678
  errorCode,
751
679
  });
752
680
  }
@@ -757,12 +685,12 @@ const de_DiscoverInputSchemaCommand = async (output, context) => {
757
685
  }
758
686
  const data = await parseBody(output.body, context);
759
687
  let contents = {};
760
- contents = de_DiscoverInputSchemaResponse(data, context);
688
+ contents = (0, smithy_client_1._json)(data);
761
689
  const response = {
762
690
  $metadata: deserializeMetadata(output),
763
691
  ...contents,
764
692
  };
765
- return Promise.resolve(response);
693
+ return response;
766
694
  };
767
695
  exports.de_DiscoverInputSchemaCommand = de_DiscoverInputSchemaCommand;
768
696
  const de_DiscoverInputSchemaCommandError = async (output, context) => {
@@ -786,10 +714,9 @@ const de_DiscoverInputSchemaCommandError = async (output, context) => {
786
714
  throw await de_UnableToDetectSchemaExceptionRes(parsedOutput, context);
787
715
  default:
788
716
  const parsedBody = parsedOutput.body;
789
- (0, smithy_client_1.throwDefaultError)({
717
+ return throwDefaultError({
790
718
  output,
791
719
  parsedBody,
792
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
793
720
  errorCode,
794
721
  });
795
722
  }
@@ -800,12 +727,12 @@ const de_ListApplicationsCommand = async (output, context) => {
800
727
  }
801
728
  const data = await parseBody(output.body, context);
802
729
  let contents = {};
803
- contents = de_ListApplicationsResponse(data, context);
730
+ contents = (0, smithy_client_1._json)(data);
804
731
  const response = {
805
732
  $metadata: deserializeMetadata(output),
806
733
  ...contents,
807
734
  };
808
- return Promise.resolve(response);
735
+ return response;
809
736
  };
810
737
  exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
811
738
  const de_ListApplicationsCommandError = async (output, context) => {
@@ -815,10 +742,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
815
742
  };
816
743
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
817
744
  const parsedBody = parsedOutput.body;
818
- (0, smithy_client_1.throwDefaultError)({
745
+ return throwDefaultError({
819
746
  output,
820
747
  parsedBody,
821
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
822
748
  errorCode,
823
749
  });
824
750
  };
@@ -828,12 +754,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
828
754
  }
829
755
  const data = await parseBody(output.body, context);
830
756
  let contents = {};
831
- contents = de_ListTagsForResourceResponse(data, context);
757
+ contents = (0, smithy_client_1._json)(data);
832
758
  const response = {
833
759
  $metadata: deserializeMetadata(output),
834
760
  ...contents,
835
761
  };
836
- return Promise.resolve(response);
762
+ return response;
837
763
  };
838
764
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
839
765
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -854,10 +780,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
854
780
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
781
  default:
856
782
  const parsedBody = parsedOutput.body;
857
- (0, smithy_client_1.throwDefaultError)({
783
+ return throwDefaultError({
858
784
  output,
859
785
  parsedBody,
860
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
861
786
  errorCode,
862
787
  });
863
788
  }
@@ -868,12 +793,12 @@ const de_StartApplicationCommand = async (output, context) => {
868
793
  }
869
794
  const data = await parseBody(output.body, context);
870
795
  let contents = {};
871
- contents = de_StartApplicationResponse(data, context);
796
+ contents = (0, smithy_client_1._json)(data);
872
797
  const response = {
873
798
  $metadata: deserializeMetadata(output),
874
799
  ...contents,
875
800
  };
876
- return Promise.resolve(response);
801
+ return response;
877
802
  };
878
803
  exports.de_StartApplicationCommand = de_StartApplicationCommand;
879
804
  const de_StartApplicationCommandError = async (output, context) => {
@@ -900,10 +825,9 @@ const de_StartApplicationCommandError = async (output, context) => {
900
825
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
901
826
  default:
902
827
  const parsedBody = parsedOutput.body;
903
- (0, smithy_client_1.throwDefaultError)({
828
+ return throwDefaultError({
904
829
  output,
905
830
  parsedBody,
906
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
907
831
  errorCode,
908
832
  });
909
833
  }
@@ -914,12 +838,12 @@ const de_StopApplicationCommand = async (output, context) => {
914
838
  }
915
839
  const data = await parseBody(output.body, context);
916
840
  let contents = {};
917
- contents = de_StopApplicationResponse(data, context);
841
+ contents = (0, smithy_client_1._json)(data);
918
842
  const response = {
919
843
  $metadata: deserializeMetadata(output),
920
844
  ...contents,
921
845
  };
922
- return Promise.resolve(response);
846
+ return response;
923
847
  };
924
848
  exports.de_StopApplicationCommand = de_StopApplicationCommand;
925
849
  const de_StopApplicationCommandError = async (output, context) => {
@@ -940,10 +864,9 @@ const de_StopApplicationCommandError = async (output, context) => {
940
864
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
941
865
  default:
942
866
  const parsedBody = parsedOutput.body;
943
- (0, smithy_client_1.throwDefaultError)({
867
+ return throwDefaultError({
944
868
  output,
945
869
  parsedBody,
946
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
947
870
  errorCode,
948
871
  });
949
872
  }
@@ -954,12 +877,12 @@ const de_TagResourceCommand = async (output, context) => {
954
877
  }
955
878
  const data = await parseBody(output.body, context);
956
879
  let contents = {};
957
- contents = de_TagResourceResponse(data, context);
880
+ contents = (0, smithy_client_1._json)(data);
958
881
  const response = {
959
882
  $metadata: deserializeMetadata(output),
960
883
  ...contents,
961
884
  };
962
- return Promise.resolve(response);
885
+ return response;
963
886
  };
964
887
  exports.de_TagResourceCommand = de_TagResourceCommand;
965
888
  const de_TagResourceCommandError = async (output, context) => {
@@ -986,10 +909,9 @@ const de_TagResourceCommandError = async (output, context) => {
986
909
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
987
910
  default:
988
911
  const parsedBody = parsedOutput.body;
989
- (0, smithy_client_1.throwDefaultError)({
912
+ return throwDefaultError({
990
913
  output,
991
914
  parsedBody,
992
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
993
915
  errorCode,
994
916
  });
995
917
  }
@@ -1000,12 +922,12 @@ const de_UntagResourceCommand = async (output, context) => {
1000
922
  }
1001
923
  const data = await parseBody(output.body, context);
1002
924
  let contents = {};
1003
- contents = de_UntagResourceResponse(data, context);
925
+ contents = (0, smithy_client_1._json)(data);
1004
926
  const response = {
1005
927
  $metadata: deserializeMetadata(output),
1006
928
  ...contents,
1007
929
  };
1008
- return Promise.resolve(response);
930
+ return response;
1009
931
  };
1010
932
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1011
933
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1032,10 +954,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1032
954
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1033
955
  default:
1034
956
  const parsedBody = parsedOutput.body;
1035
- (0, smithy_client_1.throwDefaultError)({
957
+ return throwDefaultError({
1036
958
  output,
1037
959
  parsedBody,
1038
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
1039
960
  errorCode,
1040
961
  });
1041
962
  }
@@ -1046,12 +967,12 @@ const de_UpdateApplicationCommand = async (output, context) => {
1046
967
  }
1047
968
  const data = await parseBody(output.body, context);
1048
969
  let contents = {};
1049
- contents = de_UpdateApplicationResponse(data, context);
970
+ contents = (0, smithy_client_1._json)(data);
1050
971
  const response = {
1051
972
  $metadata: deserializeMetadata(output),
1052
973
  ...contents,
1053
974
  };
1054
- return Promise.resolve(response);
975
+ return response;
1055
976
  };
1056
977
  exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
1057
978
  const de_UpdateApplicationCommandError = async (output, context) => {
@@ -1081,17 +1002,16 @@ const de_UpdateApplicationCommandError = async (output, context) => {
1081
1002
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1082
1003
  default:
1083
1004
  const parsedBody = parsedOutput.body;
1084
- (0, smithy_client_1.throwDefaultError)({
1005
+ return throwDefaultError({
1085
1006
  output,
1086
1007
  parsedBody,
1087
- exceptionCtor: KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException,
1088
1008
  errorCode,
1089
1009
  });
1090
1010
  }
1091
1011
  };
1092
1012
  const de_CodeValidationExceptionRes = async (parsedOutput, context) => {
1093
1013
  const body = parsedOutput.body;
1094
- const deserialized = de_CodeValidationException(body, context);
1014
+ const deserialized = (0, smithy_client_1._json)(body);
1095
1015
  const exception = new models_0_1.CodeValidationException({
1096
1016
  $metadata: deserializeMetadata(parsedOutput),
1097
1017
  ...deserialized,
@@ -1100,7 +1020,7 @@ const de_CodeValidationExceptionRes = async (parsedOutput, context) => {
1100
1020
  };
1101
1021
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1102
1022
  const body = parsedOutput.body;
1103
- const deserialized = de_ConcurrentModificationException(body, context);
1023
+ const deserialized = (0, smithy_client_1._json)(body);
1104
1024
  const exception = new models_0_1.ConcurrentModificationException({
1105
1025
  $metadata: deserializeMetadata(parsedOutput),
1106
1026
  ...deserialized,
@@ -1109,7 +1029,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1109
1029
  };
1110
1030
  const de_InvalidApplicationConfigurationExceptionRes = async (parsedOutput, context) => {
1111
1031
  const body = parsedOutput.body;
1112
- const deserialized = de_InvalidApplicationConfigurationException(body, context);
1032
+ const deserialized = (0, smithy_client_1._json)(body);
1113
1033
  const exception = new models_0_1.InvalidApplicationConfigurationException({
1114
1034
  $metadata: deserializeMetadata(parsedOutput),
1115
1035
  ...deserialized,
@@ -1118,7 +1038,7 @@ const de_InvalidApplicationConfigurationExceptionRes = async (parsedOutput, cont
1118
1038
  };
1119
1039
  const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
1120
1040
  const body = parsedOutput.body;
1121
- const deserialized = de_InvalidArgumentException(body, context);
1041
+ const deserialized = (0, smithy_client_1._json)(body);
1122
1042
  const exception = new models_0_1.InvalidArgumentException({
1123
1043
  $metadata: deserializeMetadata(parsedOutput),
1124
1044
  ...deserialized,
@@ -1127,7 +1047,7 @@ const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
1127
1047
  };
1128
1048
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1129
1049
  const body = parsedOutput.body;
1130
- const deserialized = de_LimitExceededException(body, context);
1050
+ const deserialized = (0, smithy_client_1._json)(body);
1131
1051
  const exception = new models_0_1.LimitExceededException({
1132
1052
  $metadata: deserializeMetadata(parsedOutput),
1133
1053
  ...deserialized,
@@ -1136,7 +1056,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1136
1056
  };
1137
1057
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1138
1058
  const body = parsedOutput.body;
1139
- const deserialized = de_ResourceInUseException(body, context);
1059
+ const deserialized = (0, smithy_client_1._json)(body);
1140
1060
  const exception = new models_0_1.ResourceInUseException({
1141
1061
  $metadata: deserializeMetadata(parsedOutput),
1142
1062
  ...deserialized,
@@ -1145,7 +1065,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1145
1065
  };
1146
1066
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1147
1067
  const body = parsedOutput.body;
1148
- const deserialized = de_ResourceNotFoundException(body, context);
1068
+ const deserialized = (0, smithy_client_1._json)(body);
1149
1069
  const exception = new models_0_1.ResourceNotFoundException({
1150
1070
  $metadata: deserializeMetadata(parsedOutput),
1151
1071
  ...deserialized,
@@ -1154,7 +1074,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1154
1074
  };
1155
1075
  const de_ResourceProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
1156
1076
  const body = parsedOutput.body;
1157
- const deserialized = de_ResourceProvisionedThroughputExceededException(body, context);
1077
+ const deserialized = (0, smithy_client_1._json)(body);
1158
1078
  const exception = new models_0_1.ResourceProvisionedThroughputExceededException({
1159
1079
  $metadata: deserializeMetadata(parsedOutput),
1160
1080
  ...deserialized,
@@ -1163,7 +1083,7 @@ const de_ResourceProvisionedThroughputExceededExceptionRes = async (parsedOutput
1163
1083
  };
1164
1084
  const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1165
1085
  const body = parsedOutput.body;
1166
- const deserialized = de_ServiceUnavailableException(body, context);
1086
+ const deserialized = (0, smithy_client_1._json)(body);
1167
1087
  const exception = new models_0_1.ServiceUnavailableException({
1168
1088
  $metadata: deserializeMetadata(parsedOutput),
1169
1089
  ...deserialized,
@@ -1172,7 +1092,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1172
1092
  };
1173
1093
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1174
1094
  const body = parsedOutput.body;
1175
- const deserialized = de_TooManyTagsException(body, context);
1095
+ const deserialized = (0, smithy_client_1._json)(body);
1176
1096
  const exception = new models_0_1.TooManyTagsException({
1177
1097
  $metadata: deserializeMetadata(parsedOutput),
1178
1098
  ...deserialized,
@@ -1181,7 +1101,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1181
1101
  };
1182
1102
  const de_UnableToDetectSchemaExceptionRes = async (parsedOutput, context) => {
1183
1103
  const body = parsedOutput.body;
1184
- const deserialized = de_UnableToDetectSchemaException(body, context);
1104
+ const deserialized = (0, smithy_client_1._json)(body);
1185
1105
  const exception = new models_0_1.UnableToDetectSchemaException({
1186
1106
  $metadata: deserializeMetadata(parsedOutput),
1187
1107
  ...deserialized,
@@ -1190,1040 +1110,39 @@ const de_UnableToDetectSchemaExceptionRes = async (parsedOutput, context) => {
1190
1110
  };
1191
1111
  const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1192
1112
  const body = parsedOutput.body;
1193
- const deserialized = de_UnsupportedOperationException(body, context);
1113
+ const deserialized = (0, smithy_client_1._json)(body);
1194
1114
  const exception = new models_0_1.UnsupportedOperationException({
1195
1115
  $metadata: deserializeMetadata(parsedOutput),
1196
1116
  ...deserialized,
1197
1117
  });
1198
1118
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1199
1119
  };
1200
- const se_AddApplicationCloudWatchLoggingOptionRequest = (input, context) => {
1201
- return {
1202
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1203
- ...(input.CloudWatchLoggingOption != null && {
1204
- CloudWatchLoggingOption: se_CloudWatchLoggingOption(input.CloudWatchLoggingOption, context),
1205
- }),
1206
- ...(input.CurrentApplicationVersionId != null && {
1207
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1208
- }),
1209
- };
1210
- };
1211
- const se_AddApplicationInputProcessingConfigurationRequest = (input, context) => {
1212
- return {
1213
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1214
- ...(input.CurrentApplicationVersionId != null && {
1215
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1216
- }),
1217
- ...(input.InputId != null && { InputId: input.InputId }),
1218
- ...(input.InputProcessingConfiguration != null && {
1219
- InputProcessingConfiguration: se_InputProcessingConfiguration(input.InputProcessingConfiguration, context),
1220
- }),
1221
- };
1222
- };
1223
- const se_AddApplicationInputRequest = (input, context) => {
1224
- return {
1225
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1226
- ...(input.CurrentApplicationVersionId != null && {
1227
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1228
- }),
1229
- ...(input.Input != null && { Input: se_Input(input.Input, context) }),
1230
- };
1231
- };
1232
- const se_AddApplicationOutputRequest = (input, context) => {
1233
- return {
1234
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1235
- ...(input.CurrentApplicationVersionId != null && {
1236
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1237
- }),
1238
- ...(input.Output != null && { Output: se_Output(input.Output, context) }),
1239
- };
1240
- };
1241
- const se_AddApplicationReferenceDataSourceRequest = (input, context) => {
1242
- return {
1243
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1244
- ...(input.CurrentApplicationVersionId != null && {
1245
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1246
- }),
1247
- ...(input.ReferenceDataSource != null && {
1248
- ReferenceDataSource: se_ReferenceDataSource(input.ReferenceDataSource, context),
1249
- }),
1250
- };
1251
- };
1252
- const se_ApplicationUpdate = (input, context) => {
1253
- return {
1254
- ...(input.ApplicationCodeUpdate != null && { ApplicationCodeUpdate: input.ApplicationCodeUpdate }),
1255
- ...(input.CloudWatchLoggingOptionUpdates != null && {
1256
- CloudWatchLoggingOptionUpdates: se_CloudWatchLoggingOptionUpdates(input.CloudWatchLoggingOptionUpdates, context),
1257
- }),
1258
- ...(input.InputUpdates != null && { InputUpdates: se_InputUpdates(input.InputUpdates, context) }),
1259
- ...(input.OutputUpdates != null && { OutputUpdates: se_OutputUpdates(input.OutputUpdates, context) }),
1260
- ...(input.ReferenceDataSourceUpdates != null && {
1261
- ReferenceDataSourceUpdates: se_ReferenceDataSourceUpdates(input.ReferenceDataSourceUpdates, context),
1262
- }),
1263
- };
1264
- };
1265
- const se_CloudWatchLoggingOption = (input, context) => {
1266
- return {
1267
- ...(input.LogStreamARN != null && { LogStreamARN: input.LogStreamARN }),
1268
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1269
- };
1270
- };
1271
- const se_CloudWatchLoggingOptions = (input, context) => {
1272
- return input
1273
- .filter((e) => e != null)
1274
- .map((entry) => {
1275
- return se_CloudWatchLoggingOption(entry, context);
1276
- });
1277
- };
1278
- const se_CloudWatchLoggingOptionUpdate = (input, context) => {
1279
- return {
1280
- ...(input.CloudWatchLoggingOptionId != null && { CloudWatchLoggingOptionId: input.CloudWatchLoggingOptionId }),
1281
- ...(input.LogStreamARNUpdate != null && { LogStreamARNUpdate: input.LogStreamARNUpdate }),
1282
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1283
- };
1284
- };
1285
- const se_CloudWatchLoggingOptionUpdates = (input, context) => {
1286
- return input
1287
- .filter((e) => e != null)
1288
- .map((entry) => {
1289
- return se_CloudWatchLoggingOptionUpdate(entry, context);
1290
- });
1291
- };
1292
- const se_CreateApplicationRequest = (input, context) => {
1293
- return {
1294
- ...(input.ApplicationCode != null && { ApplicationCode: input.ApplicationCode }),
1295
- ...(input.ApplicationDescription != null && { ApplicationDescription: input.ApplicationDescription }),
1296
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1297
- ...(input.CloudWatchLoggingOptions != null && {
1298
- CloudWatchLoggingOptions: se_CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1299
- }),
1300
- ...(input.Inputs != null && { Inputs: se_Inputs(input.Inputs, context) }),
1301
- ...(input.Outputs != null && { Outputs: se_Outputs(input.Outputs, context) }),
1302
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
1303
- };
1304
- };
1305
- const se_CSVMappingParameters = (input, context) => {
1306
- return {
1307
- ...(input.RecordColumnDelimiter != null && { RecordColumnDelimiter: input.RecordColumnDelimiter }),
1308
- ...(input.RecordRowDelimiter != null && { RecordRowDelimiter: input.RecordRowDelimiter }),
1309
- };
1310
- };
1311
- const se_DeleteApplicationCloudWatchLoggingOptionRequest = (input, context) => {
1312
- return {
1313
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1314
- ...(input.CloudWatchLoggingOptionId != null && { CloudWatchLoggingOptionId: input.CloudWatchLoggingOptionId }),
1315
- ...(input.CurrentApplicationVersionId != null && {
1316
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1317
- }),
1318
- };
1319
- };
1320
- const se_DeleteApplicationInputProcessingConfigurationRequest = (input, context) => {
1321
- return {
1322
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1323
- ...(input.CurrentApplicationVersionId != null && {
1324
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1325
- }),
1326
- ...(input.InputId != null && { InputId: input.InputId }),
1327
- };
1328
- };
1329
- const se_DeleteApplicationOutputRequest = (input, context) => {
1330
- return {
1331
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1332
- ...(input.CurrentApplicationVersionId != null && {
1333
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1334
- }),
1335
- ...(input.OutputId != null && { OutputId: input.OutputId }),
1336
- };
1337
- };
1338
- const se_DeleteApplicationReferenceDataSourceRequest = (input, context) => {
1339
- return {
1340
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1341
- ...(input.CurrentApplicationVersionId != null && {
1342
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1343
- }),
1344
- ...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
1345
- };
1346
- };
1347
1120
  const se_DeleteApplicationRequest = (input, context) => {
1348
- return {
1349
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1350
- ...(input.CreateTimestamp != null && { CreateTimestamp: Math.round(input.CreateTimestamp.getTime() / 1000) }),
1351
- };
1352
- };
1353
- const se_DescribeApplicationRequest = (input, context) => {
1354
- return {
1355
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1356
- };
1357
- };
1358
- const se_DestinationSchema = (input, context) => {
1359
- return {
1360
- ...(input.RecordFormatType != null && { RecordFormatType: input.RecordFormatType }),
1361
- };
1362
- };
1363
- const se_DiscoverInputSchemaRequest = (input, context) => {
1364
- return {
1365
- ...(input.InputProcessingConfiguration != null && {
1366
- InputProcessingConfiguration: se_InputProcessingConfiguration(input.InputProcessingConfiguration, context),
1367
- }),
1368
- ...(input.InputStartingPositionConfiguration != null && {
1369
- InputStartingPositionConfiguration: se_InputStartingPositionConfiguration(input.InputStartingPositionConfiguration, context),
1370
- }),
1371
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1372
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1373
- ...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
1374
- };
1375
- };
1376
- const se_Input = (input, context) => {
1377
- return {
1378
- ...(input.InputParallelism != null && { InputParallelism: se_InputParallelism(input.InputParallelism, context) }),
1379
- ...(input.InputProcessingConfiguration != null && {
1380
- InputProcessingConfiguration: se_InputProcessingConfiguration(input.InputProcessingConfiguration, context),
1381
- }),
1382
- ...(input.InputSchema != null && { InputSchema: se_SourceSchema(input.InputSchema, context) }),
1383
- ...(input.KinesisFirehoseInput != null && {
1384
- KinesisFirehoseInput: se_KinesisFirehoseInput(input.KinesisFirehoseInput, context),
1385
- }),
1386
- ...(input.KinesisStreamsInput != null && {
1387
- KinesisStreamsInput: se_KinesisStreamsInput(input.KinesisStreamsInput, context),
1388
- }),
1389
- ...(input.NamePrefix != null && { NamePrefix: input.NamePrefix }),
1390
- };
1391
- };
1392
- const se_InputConfiguration = (input, context) => {
1393
- return {
1394
- ...(input.Id != null && { Id: input.Id }),
1395
- ...(input.InputStartingPositionConfiguration != null && {
1396
- InputStartingPositionConfiguration: se_InputStartingPositionConfiguration(input.InputStartingPositionConfiguration, context),
1397
- }),
1398
- };
1399
- };
1400
- const se_InputConfigurations = (input, context) => {
1401
- return input
1402
- .filter((e) => e != null)
1403
- .map((entry) => {
1404
- return se_InputConfiguration(entry, context);
1121
+ return (0, smithy_client_1.take)(input, {
1122
+ ApplicationName: [],
1123
+ CreateTimestamp: (_) => Math.round(_.getTime() / 1000),
1405
1124
  });
1406
1125
  };
1407
- const se_InputLambdaProcessor = (input, context) => {
1408
- return {
1409
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1410
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1411
- };
1412
- };
1413
- const se_InputLambdaProcessorUpdate = (input, context) => {
1414
- return {
1415
- ...(input.ResourceARNUpdate != null && { ResourceARNUpdate: input.ResourceARNUpdate }),
1416
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1417
- };
1418
- };
1419
- const se_InputParallelism = (input, context) => {
1420
- return {
1421
- ...(input.Count != null && { Count: input.Count }),
1422
- };
1423
- };
1424
- const se_InputParallelismUpdate = (input, context) => {
1425
- return {
1426
- ...(input.CountUpdate != null && { CountUpdate: input.CountUpdate }),
1427
- };
1428
- };
1429
- const se_InputProcessingConfiguration = (input, context) => {
1430
- return {
1431
- ...(input.InputLambdaProcessor != null && {
1432
- InputLambdaProcessor: se_InputLambdaProcessor(input.InputLambdaProcessor, context),
1433
- }),
1434
- };
1435
- };
1436
- const se_InputProcessingConfigurationUpdate = (input, context) => {
1437
- return {
1438
- ...(input.InputLambdaProcessorUpdate != null && {
1439
- InputLambdaProcessorUpdate: se_InputLambdaProcessorUpdate(input.InputLambdaProcessorUpdate, context),
1440
- }),
1441
- };
1442
- };
1443
- const se_Inputs = (input, context) => {
1444
- return input
1445
- .filter((e) => e != null)
1446
- .map((entry) => {
1447
- return se_Input(entry, context);
1448
- });
1449
- };
1450
- const se_InputSchemaUpdate = (input, context) => {
1451
- return {
1452
- ...(input.RecordColumnUpdates != null && {
1453
- RecordColumnUpdates: se_RecordColumns(input.RecordColumnUpdates, context),
1454
- }),
1455
- ...(input.RecordEncodingUpdate != null && { RecordEncodingUpdate: input.RecordEncodingUpdate }),
1456
- ...(input.RecordFormatUpdate != null && { RecordFormatUpdate: se_RecordFormat(input.RecordFormatUpdate, context) }),
1457
- };
1458
- };
1459
- const se_InputStartingPositionConfiguration = (input, context) => {
1460
- return {
1461
- ...(input.InputStartingPosition != null && { InputStartingPosition: input.InputStartingPosition }),
1462
- };
1463
- };
1464
- const se_InputUpdate = (input, context) => {
1465
- return {
1466
- ...(input.InputId != null && { InputId: input.InputId }),
1467
- ...(input.InputParallelismUpdate != null && {
1468
- InputParallelismUpdate: se_InputParallelismUpdate(input.InputParallelismUpdate, context),
1469
- }),
1470
- ...(input.InputProcessingConfigurationUpdate != null && {
1471
- InputProcessingConfigurationUpdate: se_InputProcessingConfigurationUpdate(input.InputProcessingConfigurationUpdate, context),
1472
- }),
1473
- ...(input.InputSchemaUpdate != null && {
1474
- InputSchemaUpdate: se_InputSchemaUpdate(input.InputSchemaUpdate, context),
1475
- }),
1476
- ...(input.KinesisFirehoseInputUpdate != null && {
1477
- KinesisFirehoseInputUpdate: se_KinesisFirehoseInputUpdate(input.KinesisFirehoseInputUpdate, context),
1478
- }),
1479
- ...(input.KinesisStreamsInputUpdate != null && {
1480
- KinesisStreamsInputUpdate: se_KinesisStreamsInputUpdate(input.KinesisStreamsInputUpdate, context),
1481
- }),
1482
- ...(input.NamePrefixUpdate != null && { NamePrefixUpdate: input.NamePrefixUpdate }),
1483
- };
1484
- };
1485
- const se_InputUpdates = (input, context) => {
1486
- return input
1487
- .filter((e) => e != null)
1488
- .map((entry) => {
1489
- return se_InputUpdate(entry, context);
1490
- });
1491
- };
1492
- const se_JSONMappingParameters = (input, context) => {
1493
- return {
1494
- ...(input.RecordRowPath != null && { RecordRowPath: input.RecordRowPath }),
1495
- };
1496
- };
1497
- const se_KinesisFirehoseInput = (input, context) => {
1498
- return {
1499
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1500
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1501
- };
1502
- };
1503
- const se_KinesisFirehoseInputUpdate = (input, context) => {
1504
- return {
1505
- ...(input.ResourceARNUpdate != null && { ResourceARNUpdate: input.ResourceARNUpdate }),
1506
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1507
- };
1508
- };
1509
- const se_KinesisFirehoseOutput = (input, context) => {
1510
- return {
1511
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1512
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1513
- };
1514
- };
1515
- const se_KinesisFirehoseOutputUpdate = (input, context) => {
1516
- return {
1517
- ...(input.ResourceARNUpdate != null && { ResourceARNUpdate: input.ResourceARNUpdate }),
1518
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1519
- };
1520
- };
1521
- const se_KinesisStreamsInput = (input, context) => {
1522
- return {
1523
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1524
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1525
- };
1526
- };
1527
- const se_KinesisStreamsInputUpdate = (input, context) => {
1528
- return {
1529
- ...(input.ResourceARNUpdate != null && { ResourceARNUpdate: input.ResourceARNUpdate }),
1530
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1531
- };
1532
- };
1533
- const se_KinesisStreamsOutput = (input, context) => {
1534
- return {
1535
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1536
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1537
- };
1538
- };
1539
- const se_KinesisStreamsOutputUpdate = (input, context) => {
1540
- return {
1541
- ...(input.ResourceARNUpdate != null && { ResourceARNUpdate: input.ResourceARNUpdate }),
1542
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1543
- };
1544
- };
1545
- const se_LambdaOutput = (input, context) => {
1546
- return {
1547
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1548
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1549
- };
1550
- };
1551
- const se_LambdaOutputUpdate = (input, context) => {
1552
- return {
1553
- ...(input.ResourceARNUpdate != null && { ResourceARNUpdate: input.ResourceARNUpdate }),
1554
- ...(input.RoleARNUpdate != null && { RoleARNUpdate: input.RoleARNUpdate }),
1555
- };
1556
- };
1557
- const se_ListApplicationsRequest = (input, context) => {
1558
- return {
1559
- ...(input.ExclusiveStartApplicationName != null && {
1560
- ExclusiveStartApplicationName: input.ExclusiveStartApplicationName,
1561
- }),
1562
- ...(input.Limit != null && { Limit: input.Limit }),
1563
- };
1564
- };
1565
- const se_ListTagsForResourceRequest = (input, context) => {
1566
- return {
1567
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1568
- };
1569
- };
1570
- const se_MappingParameters = (input, context) => {
1571
- return {
1572
- ...(input.CSVMappingParameters != null && {
1573
- CSVMappingParameters: se_CSVMappingParameters(input.CSVMappingParameters, context),
1574
- }),
1575
- ...(input.JSONMappingParameters != null && {
1576
- JSONMappingParameters: se_JSONMappingParameters(input.JSONMappingParameters, context),
1577
- }),
1578
- };
1579
- };
1580
- const se_Output = (input, context) => {
1581
- return {
1582
- ...(input.DestinationSchema != null && {
1583
- DestinationSchema: se_DestinationSchema(input.DestinationSchema, context),
1584
- }),
1585
- ...(input.KinesisFirehoseOutput != null && {
1586
- KinesisFirehoseOutput: se_KinesisFirehoseOutput(input.KinesisFirehoseOutput, context),
1587
- }),
1588
- ...(input.KinesisStreamsOutput != null && {
1589
- KinesisStreamsOutput: se_KinesisStreamsOutput(input.KinesisStreamsOutput, context),
1590
- }),
1591
- ...(input.LambdaOutput != null && { LambdaOutput: se_LambdaOutput(input.LambdaOutput, context) }),
1592
- ...(input.Name != null && { Name: input.Name }),
1593
- };
1594
- };
1595
- const se_Outputs = (input, context) => {
1596
- return input
1597
- .filter((e) => e != null)
1598
- .map((entry) => {
1599
- return se_Output(entry, context);
1600
- });
1601
- };
1602
- const se_OutputUpdate = (input, context) => {
1603
- return {
1604
- ...(input.DestinationSchemaUpdate != null && {
1605
- DestinationSchemaUpdate: se_DestinationSchema(input.DestinationSchemaUpdate, context),
1606
- }),
1607
- ...(input.KinesisFirehoseOutputUpdate != null && {
1608
- KinesisFirehoseOutputUpdate: se_KinesisFirehoseOutputUpdate(input.KinesisFirehoseOutputUpdate, context),
1609
- }),
1610
- ...(input.KinesisStreamsOutputUpdate != null && {
1611
- KinesisStreamsOutputUpdate: se_KinesisStreamsOutputUpdate(input.KinesisStreamsOutputUpdate, context),
1612
- }),
1613
- ...(input.LambdaOutputUpdate != null && {
1614
- LambdaOutputUpdate: se_LambdaOutputUpdate(input.LambdaOutputUpdate, context),
1615
- }),
1616
- ...(input.NameUpdate != null && { NameUpdate: input.NameUpdate }),
1617
- ...(input.OutputId != null && { OutputId: input.OutputId }),
1618
- };
1619
- };
1620
- const se_OutputUpdates = (input, context) => {
1621
- return input
1622
- .filter((e) => e != null)
1623
- .map((entry) => {
1624
- return se_OutputUpdate(entry, context);
1625
- });
1626
- };
1627
- const se_RecordColumn = (input, context) => {
1628
- return {
1629
- ...(input.Mapping != null && { Mapping: input.Mapping }),
1630
- ...(input.Name != null && { Name: input.Name }),
1631
- ...(input.SqlType != null && { SqlType: input.SqlType }),
1632
- };
1633
- };
1634
- const se_RecordColumns = (input, context) => {
1635
- return input
1636
- .filter((e) => e != null)
1637
- .map((entry) => {
1638
- return se_RecordColumn(entry, context);
1639
- });
1640
- };
1641
- const se_RecordFormat = (input, context) => {
1642
- return {
1643
- ...(input.MappingParameters != null && {
1644
- MappingParameters: se_MappingParameters(input.MappingParameters, context),
1645
- }),
1646
- ...(input.RecordFormatType != null && { RecordFormatType: input.RecordFormatType }),
1647
- };
1648
- };
1649
- const se_ReferenceDataSource = (input, context) => {
1650
- return {
1651
- ...(input.ReferenceSchema != null && { ReferenceSchema: se_SourceSchema(input.ReferenceSchema, context) }),
1652
- ...(input.S3ReferenceDataSource != null && {
1653
- S3ReferenceDataSource: se_S3ReferenceDataSource(input.S3ReferenceDataSource, context),
1654
- }),
1655
- ...(input.TableName != null && { TableName: input.TableName }),
1656
- };
1657
- };
1658
- const se_ReferenceDataSourceUpdate = (input, context) => {
1659
- return {
1660
- ...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
1661
- ...(input.ReferenceSchemaUpdate != null && {
1662
- ReferenceSchemaUpdate: se_SourceSchema(input.ReferenceSchemaUpdate, context),
1663
- }),
1664
- ...(input.S3ReferenceDataSourceUpdate != null && {
1665
- S3ReferenceDataSourceUpdate: se_S3ReferenceDataSourceUpdate(input.S3ReferenceDataSourceUpdate, context),
1666
- }),
1667
- ...(input.TableNameUpdate != null && { TableNameUpdate: input.TableNameUpdate }),
1668
- };
1669
- };
1670
- const se_ReferenceDataSourceUpdates = (input, context) => {
1671
- return input
1672
- .filter((e) => e != null)
1673
- .map((entry) => {
1674
- return se_ReferenceDataSourceUpdate(entry, context);
1675
- });
1676
- };
1677
- const se_S3Configuration = (input, context) => {
1678
- return {
1679
- ...(input.BucketARN != null && { BucketARN: input.BucketARN }),
1680
- ...(input.FileKey != null && { FileKey: input.FileKey }),
1681
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1682
- };
1683
- };
1684
- const se_S3ReferenceDataSource = (input, context) => {
1685
- return {
1686
- ...(input.BucketARN != null && { BucketARN: input.BucketARN }),
1687
- ...(input.FileKey != null && { FileKey: input.FileKey }),
1688
- ...(input.ReferenceRoleARN != null && { ReferenceRoleARN: input.ReferenceRoleARN }),
1689
- };
1690
- };
1691
- const se_S3ReferenceDataSourceUpdate = (input, context) => {
1692
- return {
1693
- ...(input.BucketARNUpdate != null && { BucketARNUpdate: input.BucketARNUpdate }),
1694
- ...(input.FileKeyUpdate != null && { FileKeyUpdate: input.FileKeyUpdate }),
1695
- ...(input.ReferenceRoleARNUpdate != null && { ReferenceRoleARNUpdate: input.ReferenceRoleARNUpdate }),
1696
- };
1697
- };
1698
- const se_SourceSchema = (input, context) => {
1699
- return {
1700
- ...(input.RecordColumns != null && { RecordColumns: se_RecordColumns(input.RecordColumns, context) }),
1701
- ...(input.RecordEncoding != null && { RecordEncoding: input.RecordEncoding }),
1702
- ...(input.RecordFormat != null && { RecordFormat: se_RecordFormat(input.RecordFormat, context) }),
1703
- };
1704
- };
1705
- const se_StartApplicationRequest = (input, context) => {
1706
- return {
1707
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1708
- ...(input.InputConfigurations != null && {
1709
- InputConfigurations: se_InputConfigurations(input.InputConfigurations, context),
1710
- }),
1711
- };
1712
- };
1713
- const se_StopApplicationRequest = (input, context) => {
1714
- return {
1715
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1716
- };
1717
- };
1718
- const se_Tag = (input, context) => {
1719
- return {
1720
- ...(input.Key != null && { Key: input.Key }),
1721
- ...(input.Value != null && { Value: input.Value }),
1722
- };
1723
- };
1724
- const se_TagKeys = (input, context) => {
1725
- return input
1726
- .filter((e) => e != null)
1727
- .map((entry) => {
1728
- return entry;
1729
- });
1730
- };
1731
- const se_TagResourceRequest = (input, context) => {
1732
- return {
1733
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1734
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
1735
- };
1736
- };
1737
- const se_Tags = (input, context) => {
1738
- return input
1739
- .filter((e) => e != null)
1740
- .map((entry) => {
1741
- return se_Tag(entry, context);
1742
- });
1743
- };
1744
- const se_UntagResourceRequest = (input, context) => {
1745
- return {
1746
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1747
- ...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
1748
- };
1749
- };
1750
- const se_UpdateApplicationRequest = (input, context) => {
1751
- return {
1752
- ...(input.ApplicationName != null && { ApplicationName: input.ApplicationName }),
1753
- ...(input.ApplicationUpdate != null && {
1754
- ApplicationUpdate: se_ApplicationUpdate(input.ApplicationUpdate, context),
1755
- }),
1756
- ...(input.CurrentApplicationVersionId != null && {
1757
- CurrentApplicationVersionId: input.CurrentApplicationVersionId,
1758
- }),
1759
- };
1760
- };
1761
- const de_AddApplicationCloudWatchLoggingOptionResponse = (output, context) => {
1762
- return {};
1763
- };
1764
- const de_AddApplicationInputProcessingConfigurationResponse = (output, context) => {
1765
- return {};
1766
- };
1767
- const de_AddApplicationInputResponse = (output, context) => {
1768
- return {};
1769
- };
1770
- const de_AddApplicationOutputResponse = (output, context) => {
1771
- return {};
1772
- };
1773
- const de_AddApplicationReferenceDataSourceResponse = (output, context) => {
1774
- return {};
1775
- };
1776
1126
  const de_ApplicationDetail = (output, context) => {
1777
- return {
1778
- ApplicationARN: (0, smithy_client_1.expectString)(output.ApplicationARN),
1779
- ApplicationCode: (0, smithy_client_1.expectString)(output.ApplicationCode),
1780
- ApplicationDescription: (0, smithy_client_1.expectString)(output.ApplicationDescription),
1781
- ApplicationName: (0, smithy_client_1.expectString)(output.ApplicationName),
1782
- ApplicationStatus: (0, smithy_client_1.expectString)(output.ApplicationStatus),
1783
- ApplicationVersionId: (0, smithy_client_1.expectLong)(output.ApplicationVersionId),
1784
- CloudWatchLoggingOptionDescriptions: output.CloudWatchLoggingOptionDescriptions != null
1785
- ? de_CloudWatchLoggingOptionDescriptions(output.CloudWatchLoggingOptionDescriptions, context)
1786
- : undefined,
1787
- CreateTimestamp: output.CreateTimestamp != null
1788
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1789
- : undefined,
1790
- InputDescriptions: output.InputDescriptions != null ? de_InputDescriptions(output.InputDescriptions, context) : undefined,
1791
- LastUpdateTimestamp: output.LastUpdateTimestamp != null
1792
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
1793
- : undefined,
1794
- OutputDescriptions: output.OutputDescriptions != null ? de_OutputDescriptions(output.OutputDescriptions, context) : undefined,
1795
- ReferenceDataSourceDescriptions: output.ReferenceDataSourceDescriptions != null
1796
- ? de_ReferenceDataSourceDescriptions(output.ReferenceDataSourceDescriptions, context)
1797
- : undefined,
1798
- };
1799
- };
1800
- const de_ApplicationSummaries = (output, context) => {
1801
- const retVal = (output || [])
1802
- .filter((e) => e != null)
1803
- .map((entry) => {
1804
- if (entry === null) {
1805
- return null;
1806
- }
1807
- return de_ApplicationSummary(entry, context);
1127
+ return (0, smithy_client_1.take)(output, {
1128
+ ApplicationARN: smithy_client_1.expectString,
1129
+ ApplicationCode: smithy_client_1.expectString,
1130
+ ApplicationDescription: smithy_client_1.expectString,
1131
+ ApplicationName: smithy_client_1.expectString,
1132
+ ApplicationStatus: smithy_client_1.expectString,
1133
+ ApplicationVersionId: smithy_client_1.expectLong,
1134
+ CloudWatchLoggingOptionDescriptions: smithy_client_1._json,
1135
+ CreateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1136
+ InputDescriptions: smithy_client_1._json,
1137
+ LastUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1138
+ OutputDescriptions: smithy_client_1._json,
1139
+ ReferenceDataSourceDescriptions: smithy_client_1._json,
1808
1140
  });
1809
- return retVal;
1810
- };
1811
- const de_ApplicationSummary = (output, context) => {
1812
- return {
1813
- ApplicationARN: (0, smithy_client_1.expectString)(output.ApplicationARN),
1814
- ApplicationName: (0, smithy_client_1.expectString)(output.ApplicationName),
1815
- ApplicationStatus: (0, smithy_client_1.expectString)(output.ApplicationStatus),
1816
- };
1817
- };
1818
- const de_CloudWatchLoggingOptionDescription = (output, context) => {
1819
- return {
1820
- CloudWatchLoggingOptionId: (0, smithy_client_1.expectString)(output.CloudWatchLoggingOptionId),
1821
- LogStreamARN: (0, smithy_client_1.expectString)(output.LogStreamARN),
1822
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1823
- };
1824
- };
1825
- const de_CloudWatchLoggingOptionDescriptions = (output, context) => {
1826
- const retVal = (output || [])
1827
- .filter((e) => e != null)
1828
- .map((entry) => {
1829
- if (entry === null) {
1830
- return null;
1831
- }
1832
- return de_CloudWatchLoggingOptionDescription(entry, context);
1833
- });
1834
- return retVal;
1835
- };
1836
- const de_CodeValidationException = (output, context) => {
1837
- return {
1838
- message: (0, smithy_client_1.expectString)(output.message),
1839
- };
1840
- };
1841
- const de_ConcurrentModificationException = (output, context) => {
1842
- return {
1843
- message: (0, smithy_client_1.expectString)(output.message),
1844
- };
1845
- };
1846
- const de_CreateApplicationResponse = (output, context) => {
1847
- return {
1848
- ApplicationSummary: output.ApplicationSummary != null ? de_ApplicationSummary(output.ApplicationSummary, context) : undefined,
1849
- };
1850
- };
1851
- const de_CSVMappingParameters = (output, context) => {
1852
- return {
1853
- RecordColumnDelimiter: (0, smithy_client_1.expectString)(output.RecordColumnDelimiter),
1854
- RecordRowDelimiter: (0, smithy_client_1.expectString)(output.RecordRowDelimiter),
1855
- };
1856
- };
1857
- const de_DeleteApplicationCloudWatchLoggingOptionResponse = (output, context) => {
1858
- return {};
1859
- };
1860
- const de_DeleteApplicationInputProcessingConfigurationResponse = (output, context) => {
1861
- return {};
1862
- };
1863
- const de_DeleteApplicationOutputResponse = (output, context) => {
1864
- return {};
1865
- };
1866
- const de_DeleteApplicationReferenceDataSourceResponse = (output, context) => {
1867
- return {};
1868
- };
1869
- const de_DeleteApplicationResponse = (output, context) => {
1870
- return {};
1871
1141
  };
1872
1142
  const de_DescribeApplicationResponse = (output, context) => {
1873
- return {
1874
- ApplicationDetail: output.ApplicationDetail != null ? de_ApplicationDetail(output.ApplicationDetail, context) : undefined,
1875
- };
1876
- };
1877
- const de_DestinationSchema = (output, context) => {
1878
- return {
1879
- RecordFormatType: (0, smithy_client_1.expectString)(output.RecordFormatType),
1880
- };
1881
- };
1882
- const de_DiscoverInputSchemaResponse = (output, context) => {
1883
- return {
1884
- InputSchema: output.InputSchema != null ? de_SourceSchema(output.InputSchema, context) : undefined,
1885
- ParsedInputRecords: output.ParsedInputRecords != null ? de_ParsedInputRecords(output.ParsedInputRecords, context) : undefined,
1886
- ProcessedInputRecords: output.ProcessedInputRecords != null
1887
- ? de_ProcessedInputRecords(output.ProcessedInputRecords, context)
1888
- : undefined,
1889
- RawInputRecords: output.RawInputRecords != null ? de_RawInputRecords(output.RawInputRecords, context) : undefined,
1890
- };
1891
- };
1892
- const de_InAppStreamNames = (output, context) => {
1893
- const retVal = (output || [])
1894
- .filter((e) => e != null)
1895
- .map((entry) => {
1896
- if (entry === null) {
1897
- return null;
1898
- }
1899
- return (0, smithy_client_1.expectString)(entry);
1900
- });
1901
- return retVal;
1902
- };
1903
- const de_InputDescription = (output, context) => {
1904
- return {
1905
- InAppStreamNames: output.InAppStreamNames != null ? de_InAppStreamNames(output.InAppStreamNames, context) : undefined,
1906
- InputId: (0, smithy_client_1.expectString)(output.InputId),
1907
- InputParallelism: output.InputParallelism != null ? de_InputParallelism(output.InputParallelism, context) : undefined,
1908
- InputProcessingConfigurationDescription: output.InputProcessingConfigurationDescription != null
1909
- ? de_InputProcessingConfigurationDescription(output.InputProcessingConfigurationDescription, context)
1910
- : undefined,
1911
- InputSchema: output.InputSchema != null ? de_SourceSchema(output.InputSchema, context) : undefined,
1912
- InputStartingPositionConfiguration: output.InputStartingPositionConfiguration != null
1913
- ? de_InputStartingPositionConfiguration(output.InputStartingPositionConfiguration, context)
1914
- : undefined,
1915
- KinesisFirehoseInputDescription: output.KinesisFirehoseInputDescription != null
1916
- ? de_KinesisFirehoseInputDescription(output.KinesisFirehoseInputDescription, context)
1917
- : undefined,
1918
- KinesisStreamsInputDescription: output.KinesisStreamsInputDescription != null
1919
- ? de_KinesisStreamsInputDescription(output.KinesisStreamsInputDescription, context)
1920
- : undefined,
1921
- NamePrefix: (0, smithy_client_1.expectString)(output.NamePrefix),
1922
- };
1923
- };
1924
- const de_InputDescriptions = (output, context) => {
1925
- const retVal = (output || [])
1926
- .filter((e) => e != null)
1927
- .map((entry) => {
1928
- if (entry === null) {
1929
- return null;
1930
- }
1931
- return de_InputDescription(entry, context);
1932
- });
1933
- return retVal;
1934
- };
1935
- const de_InputLambdaProcessorDescription = (output, context) => {
1936
- return {
1937
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
1938
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1939
- };
1940
- };
1941
- const de_InputParallelism = (output, context) => {
1942
- return {
1943
- Count: (0, smithy_client_1.expectInt32)(output.Count),
1944
- };
1945
- };
1946
- const de_InputProcessingConfigurationDescription = (output, context) => {
1947
- return {
1948
- InputLambdaProcessorDescription: output.InputLambdaProcessorDescription != null
1949
- ? de_InputLambdaProcessorDescription(output.InputLambdaProcessorDescription, context)
1950
- : undefined,
1951
- };
1952
- };
1953
- const de_InputStartingPositionConfiguration = (output, context) => {
1954
- return {
1955
- InputStartingPosition: (0, smithy_client_1.expectString)(output.InputStartingPosition),
1956
- };
1957
- };
1958
- const de_InvalidApplicationConfigurationException = (output, context) => {
1959
- return {
1960
- message: (0, smithy_client_1.expectString)(output.message),
1961
- };
1962
- };
1963
- const de_InvalidArgumentException = (output, context) => {
1964
- return {
1965
- message: (0, smithy_client_1.expectString)(output.message),
1966
- };
1967
- };
1968
- const de_JSONMappingParameters = (output, context) => {
1969
- return {
1970
- RecordRowPath: (0, smithy_client_1.expectString)(output.RecordRowPath),
1971
- };
1972
- };
1973
- const de_KinesisFirehoseInputDescription = (output, context) => {
1974
- return {
1975
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
1976
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1977
- };
1978
- };
1979
- const de_KinesisFirehoseOutputDescription = (output, context) => {
1980
- return {
1981
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
1982
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1983
- };
1984
- };
1985
- const de_KinesisStreamsInputDescription = (output, context) => {
1986
- return {
1987
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
1988
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1989
- };
1990
- };
1991
- const de_KinesisStreamsOutputDescription = (output, context) => {
1992
- return {
1993
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
1994
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
1995
- };
1996
- };
1997
- const de_LambdaOutputDescription = (output, context) => {
1998
- return {
1999
- ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
2000
- RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
2001
- };
2002
- };
2003
- const de_LimitExceededException = (output, context) => {
2004
- return {
2005
- message: (0, smithy_client_1.expectString)(output.message),
2006
- };
2007
- };
2008
- const de_ListApplicationsResponse = (output, context) => {
2009
- return {
2010
- ApplicationSummaries: output.ApplicationSummaries != null ? de_ApplicationSummaries(output.ApplicationSummaries, context) : undefined,
2011
- HasMoreApplications: (0, smithy_client_1.expectBoolean)(output.HasMoreApplications),
2012
- };
2013
- };
2014
- const de_ListTagsForResourceResponse = (output, context) => {
2015
- return {
2016
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
2017
- };
2018
- };
2019
- const de_MappingParameters = (output, context) => {
2020
- return {
2021
- CSVMappingParameters: output.CSVMappingParameters != null ? de_CSVMappingParameters(output.CSVMappingParameters, context) : undefined,
2022
- JSONMappingParameters: output.JSONMappingParameters != null
2023
- ? de_JSONMappingParameters(output.JSONMappingParameters, context)
2024
- : undefined,
2025
- };
2026
- };
2027
- const de_OutputDescription = (output, context) => {
2028
- return {
2029
- DestinationSchema: output.DestinationSchema != null ? de_DestinationSchema(output.DestinationSchema, context) : undefined,
2030
- KinesisFirehoseOutputDescription: output.KinesisFirehoseOutputDescription != null
2031
- ? de_KinesisFirehoseOutputDescription(output.KinesisFirehoseOutputDescription, context)
2032
- : undefined,
2033
- KinesisStreamsOutputDescription: output.KinesisStreamsOutputDescription != null
2034
- ? de_KinesisStreamsOutputDescription(output.KinesisStreamsOutputDescription, context)
2035
- : undefined,
2036
- LambdaOutputDescription: output.LambdaOutputDescription != null
2037
- ? de_LambdaOutputDescription(output.LambdaOutputDescription, context)
2038
- : undefined,
2039
- Name: (0, smithy_client_1.expectString)(output.Name),
2040
- OutputId: (0, smithy_client_1.expectString)(output.OutputId),
2041
- };
2042
- };
2043
- const de_OutputDescriptions = (output, context) => {
2044
- const retVal = (output || [])
2045
- .filter((e) => e != null)
2046
- .map((entry) => {
2047
- if (entry === null) {
2048
- return null;
2049
- }
2050
- return de_OutputDescription(entry, context);
2051
- });
2052
- return retVal;
2053
- };
2054
- const de_ParsedInputRecord = (output, context) => {
2055
- const retVal = (output || [])
2056
- .filter((e) => e != null)
2057
- .map((entry) => {
2058
- if (entry === null) {
2059
- return null;
2060
- }
2061
- return (0, smithy_client_1.expectString)(entry);
2062
- });
2063
- return retVal;
2064
- };
2065
- const de_ParsedInputRecords = (output, context) => {
2066
- const retVal = (output || [])
2067
- .filter((e) => e != null)
2068
- .map((entry) => {
2069
- if (entry === null) {
2070
- return null;
2071
- }
2072
- return de_ParsedInputRecord(entry, context);
1143
+ return (0, smithy_client_1.take)(output, {
1144
+ ApplicationDetail: (_) => de_ApplicationDetail(_, context),
2073
1145
  });
2074
- return retVal;
2075
- };
2076
- const de_ProcessedInputRecords = (output, context) => {
2077
- const retVal = (output || [])
2078
- .filter((e) => e != null)
2079
- .map((entry) => {
2080
- if (entry === null) {
2081
- return null;
2082
- }
2083
- return (0, smithy_client_1.expectString)(entry);
2084
- });
2085
- return retVal;
2086
- };
2087
- const de_RawInputRecords = (output, context) => {
2088
- const retVal = (output || [])
2089
- .filter((e) => e != null)
2090
- .map((entry) => {
2091
- if (entry === null) {
2092
- return null;
2093
- }
2094
- return (0, smithy_client_1.expectString)(entry);
2095
- });
2096
- return retVal;
2097
- };
2098
- const de_RecordColumn = (output, context) => {
2099
- return {
2100
- Mapping: (0, smithy_client_1.expectString)(output.Mapping),
2101
- Name: (0, smithy_client_1.expectString)(output.Name),
2102
- SqlType: (0, smithy_client_1.expectString)(output.SqlType),
2103
- };
2104
- };
2105
- const de_RecordColumns = (output, context) => {
2106
- const retVal = (output || [])
2107
- .filter((e) => e != null)
2108
- .map((entry) => {
2109
- if (entry === null) {
2110
- return null;
2111
- }
2112
- return de_RecordColumn(entry, context);
2113
- });
2114
- return retVal;
2115
- };
2116
- const de_RecordFormat = (output, context) => {
2117
- return {
2118
- MappingParameters: output.MappingParameters != null ? de_MappingParameters(output.MappingParameters, context) : undefined,
2119
- RecordFormatType: (0, smithy_client_1.expectString)(output.RecordFormatType),
2120
- };
2121
- };
2122
- const de_ReferenceDataSourceDescription = (output, context) => {
2123
- return {
2124
- ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
2125
- ReferenceSchema: output.ReferenceSchema != null ? de_SourceSchema(output.ReferenceSchema, context) : undefined,
2126
- S3ReferenceDataSourceDescription: output.S3ReferenceDataSourceDescription != null
2127
- ? de_S3ReferenceDataSourceDescription(output.S3ReferenceDataSourceDescription, context)
2128
- : undefined,
2129
- TableName: (0, smithy_client_1.expectString)(output.TableName),
2130
- };
2131
- };
2132
- const de_ReferenceDataSourceDescriptions = (output, context) => {
2133
- const retVal = (output || [])
2134
- .filter((e) => e != null)
2135
- .map((entry) => {
2136
- if (entry === null) {
2137
- return null;
2138
- }
2139
- return de_ReferenceDataSourceDescription(entry, context);
2140
- });
2141
- return retVal;
2142
- };
2143
- const de_ResourceInUseException = (output, context) => {
2144
- return {
2145
- message: (0, smithy_client_1.expectString)(output.message),
2146
- };
2147
- };
2148
- const de_ResourceNotFoundException = (output, context) => {
2149
- return {
2150
- message: (0, smithy_client_1.expectString)(output.message),
2151
- };
2152
- };
2153
- const de_ResourceProvisionedThroughputExceededException = (output, context) => {
2154
- return {
2155
- message: (0, smithy_client_1.expectString)(output.message),
2156
- };
2157
- };
2158
- const de_S3ReferenceDataSourceDescription = (output, context) => {
2159
- return {
2160
- BucketARN: (0, smithy_client_1.expectString)(output.BucketARN),
2161
- FileKey: (0, smithy_client_1.expectString)(output.FileKey),
2162
- ReferenceRoleARN: (0, smithy_client_1.expectString)(output.ReferenceRoleARN),
2163
- };
2164
- };
2165
- const de_ServiceUnavailableException = (output, context) => {
2166
- return {
2167
- message: (0, smithy_client_1.expectString)(output.message),
2168
- };
2169
- };
2170
- const de_SourceSchema = (output, context) => {
2171
- return {
2172
- RecordColumns: output.RecordColumns != null ? de_RecordColumns(output.RecordColumns, context) : undefined,
2173
- RecordEncoding: (0, smithy_client_1.expectString)(output.RecordEncoding),
2174
- RecordFormat: output.RecordFormat != null ? de_RecordFormat(output.RecordFormat, context) : undefined,
2175
- };
2176
- };
2177
- const de_StartApplicationResponse = (output, context) => {
2178
- return {};
2179
- };
2180
- const de_StopApplicationResponse = (output, context) => {
2181
- return {};
2182
- };
2183
- const de_Tag = (output, context) => {
2184
- return {
2185
- Key: (0, smithy_client_1.expectString)(output.Key),
2186
- Value: (0, smithy_client_1.expectString)(output.Value),
2187
- };
2188
- };
2189
- const de_TagResourceResponse = (output, context) => {
2190
- return {};
2191
- };
2192
- const de_Tags = (output, context) => {
2193
- const retVal = (output || [])
2194
- .filter((e) => e != null)
2195
- .map((entry) => {
2196
- if (entry === null) {
2197
- return null;
2198
- }
2199
- return de_Tag(entry, context);
2200
- });
2201
- return retVal;
2202
- };
2203
- const de_TooManyTagsException = (output, context) => {
2204
- return {
2205
- message: (0, smithy_client_1.expectString)(output.message),
2206
- };
2207
- };
2208
- const de_UnableToDetectSchemaException = (output, context) => {
2209
- return {
2210
- ProcessedInputRecords: output.ProcessedInputRecords != null
2211
- ? de_ProcessedInputRecords(output.ProcessedInputRecords, context)
2212
- : undefined,
2213
- RawInputRecords: output.RawInputRecords != null ? de_RawInputRecords(output.RawInputRecords, context) : undefined,
2214
- message: (0, smithy_client_1.expectString)(output.message),
2215
- };
2216
- };
2217
- const de_UnsupportedOperationException = (output, context) => {
2218
- return {
2219
- message: (0, smithy_client_1.expectString)(output.message),
2220
- };
2221
- };
2222
- const de_UntagResourceResponse = (output, context) => {
2223
- return {};
2224
- };
2225
- const de_UpdateApplicationResponse = (output, context) => {
2226
- return {};
2227
1146
  };
2228
1147
  const deserializeMetadata = (output) => ({
2229
1148
  httpStatusCode: output.statusCode,
@@ -2238,6 +1157,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2238
1157
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2239
1158
  };
2240
1159
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1160
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException);
2241
1161
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2242
1162
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2243
1163
  const contents = {
@@ -2256,6 +1176,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
2256
1176
  }
2257
1177
  return new protocol_http_1.HttpRequest(contents);
2258
1178
  };
1179
+ function sharedHeaders(operation) {
1180
+ return {
1181
+ "content-type": "application/x-amz-json-1.1",
1182
+ "x-amz-target": `KinesisAnalytics_20150814.${operation}`,
1183
+ };
1184
+ }
2259
1185
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2260
1186
  if (encoded.length) {
2261
1187
  return JSON.parse(encoded);