@aws-sdk/client-firehose 3.180.0 → 3.183.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,1406 +1,1480 @@
1
- import { __assign, __awaiter, __generator, __read } from "tslib";
2
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
4
3
  import { FirehoseServiceException as __BaseException } from "../models/FirehoseServiceException";
5
4
  import { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
6
- export var serializeAws_json1_1CreateDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
7
- var headers, body;
8
- return __generator(this, function (_a) {
9
- headers = {
10
- "content-type": "application/x-amz-json-1.1",
11
- "x-amz-target": "Firehose_20150804.CreateDeliveryStream",
12
- };
13
- body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context));
14
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
15
- });
16
- }); };
17
- export var serializeAws_json1_1DeleteDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
18
- var headers, body;
19
- return __generator(this, function (_a) {
20
- headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "Firehose_20150804.DeleteDeliveryStream",
23
- };
24
- body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context));
25
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
26
- });
27
- }); };
28
- export var serializeAws_json1_1DescribeDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
29
- var headers, body;
30
- return __generator(this, function (_a) {
31
- headers = {
32
- "content-type": "application/x-amz-json-1.1",
33
- "x-amz-target": "Firehose_20150804.DescribeDeliveryStream",
34
- };
35
- body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context));
36
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
37
- });
38
- }); };
39
- export var serializeAws_json1_1ListDeliveryStreamsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
40
- var headers, body;
41
- return __generator(this, function (_a) {
42
- headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "Firehose_20150804.ListDeliveryStreams",
45
- };
46
- body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context));
47
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
48
- });
49
- }); };
50
- export var serializeAws_json1_1ListTagsForDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
51
- var headers, body;
52
- return __generator(this, function (_a) {
53
- headers = {
54
- "content-type": "application/x-amz-json-1.1",
55
- "x-amz-target": "Firehose_20150804.ListTagsForDeliveryStream",
56
- };
57
- body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context));
58
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
59
- });
60
- }); };
61
- export var serializeAws_json1_1PutRecordCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
62
- var headers, body;
63
- return __generator(this, function (_a) {
64
- headers = {
65
- "content-type": "application/x-amz-json-1.1",
66
- "x-amz-target": "Firehose_20150804.PutRecord",
67
- };
68
- body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
69
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
70
- });
71
- }); };
72
- export var serializeAws_json1_1PutRecordBatchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
73
- var headers, body;
74
- return __generator(this, function (_a) {
75
- headers = {
76
- "content-type": "application/x-amz-json-1.1",
77
- "x-amz-target": "Firehose_20150804.PutRecordBatch",
78
- };
79
- body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context));
80
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
81
- });
82
- }); };
83
- export var serializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
84
- var headers, body;
85
- return __generator(this, function (_a) {
86
- headers = {
87
- "content-type": "application/x-amz-json-1.1",
88
- "x-amz-target": "Firehose_20150804.StartDeliveryStreamEncryption",
89
- };
90
- body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context));
91
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
92
- });
93
- }); };
94
- export var serializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
95
- var headers, body;
96
- return __generator(this, function (_a) {
97
- headers = {
98
- "content-type": "application/x-amz-json-1.1",
99
- "x-amz-target": "Firehose_20150804.StopDeliveryStreamEncryption",
100
- };
101
- body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context));
102
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
103
- });
104
- }); };
105
- export var serializeAws_json1_1TagDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
106
- var headers, body;
107
- return __generator(this, function (_a) {
108
- headers = {
109
- "content-type": "application/x-amz-json-1.1",
110
- "x-amz-target": "Firehose_20150804.TagDeliveryStream",
111
- };
112
- body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context));
113
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
114
- });
115
- }); };
116
- export var serializeAws_json1_1UntagDeliveryStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
117
- var headers, body;
118
- return __generator(this, function (_a) {
119
- headers = {
120
- "content-type": "application/x-amz-json-1.1",
121
- "x-amz-target": "Firehose_20150804.UntagDeliveryStream",
122
- };
123
- body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context));
124
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
125
- });
126
- }); };
127
- export var serializeAws_json1_1UpdateDestinationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
128
- var headers, body;
129
- return __generator(this, function (_a) {
130
- headers = {
131
- "content-type": "application/x-amz-json-1.1",
132
- "x-amz-target": "Firehose_20150804.UpdateDestination",
133
- };
134
- body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context));
135
- return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
136
- });
137
- }); };
138
- export var deserializeAws_json1_1CreateDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
139
- var data, contents, response;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
142
- case 0:
143
- if (output.statusCode >= 300) {
144
- return [2, deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context)];
145
- }
146
- return [4, parseBody(output.body, context)];
147
- case 1:
148
- data = _a.sent();
149
- contents = {};
150
- contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context);
151
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
152
- return [2, Promise.resolve(response)];
153
- }
154
- });
155
- }); };
156
- var deserializeAws_json1_1CreateDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
157
- var parsedOutput, _a, errorCode, _b, parsedBody;
158
- var _c;
159
- return __generator(this, function (_d) {
160
- switch (_d.label) {
161
- case 0:
162
- _a = [__assign({}, output)];
163
- _c = {};
164
- return [4, parseBody(output.body, context)];
165
- case 1:
166
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
167
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
168
- _b = errorCode;
169
- switch (_b) {
170
- case "InvalidArgumentException": return [3, 2];
171
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
172
- case "InvalidKMSResourceException": return [3, 4];
173
- case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
174
- case "LimitExceededException": return [3, 6];
175
- case "com.amazonaws.firehose#LimitExceededException": return [3, 6];
176
- case "ResourceInUseException": return [3, 8];
177
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 8];
178
- }
179
- return [3, 10];
180
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
181
- case 3: throw _d.sent();
182
- case 4: return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
183
- case 5: throw _d.sent();
184
- case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
185
- case 7: throw _d.sent();
186
- case 8: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
187
- case 9: throw _d.sent();
188
- case 10:
189
- parsedBody = parsedOutput.body;
190
- throwDefaultError({
191
- output: output,
192
- parsedBody: parsedBody,
193
- exceptionCtor: __BaseException,
194
- errorCode: errorCode,
195
- });
196
- _d.label = 11;
197
- case 11: return [2];
198
- }
199
- });
200
- }); };
201
- export var deserializeAws_json1_1DeleteDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
202
- var data, contents, response;
203
- return __generator(this, function (_a) {
204
- switch (_a.label) {
205
- case 0:
206
- if (output.statusCode >= 300) {
207
- return [2, deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context)];
208
- }
209
- return [4, parseBody(output.body, context)];
210
- case 1:
211
- data = _a.sent();
212
- contents = {};
213
- contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context);
214
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
215
- return [2, Promise.resolve(response)];
216
- }
217
- });
218
- }); };
219
- var deserializeAws_json1_1DeleteDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
220
- var parsedOutput, _a, errorCode, _b, parsedBody;
221
- var _c;
222
- return __generator(this, function (_d) {
223
- switch (_d.label) {
224
- case 0:
225
- _a = [__assign({}, output)];
226
- _c = {};
227
- return [4, parseBody(output.body, context)];
228
- case 1:
229
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
230
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
231
- _b = errorCode;
232
- switch (_b) {
233
- case "ResourceInUseException": return [3, 2];
234
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 2];
235
- case "ResourceNotFoundException": return [3, 4];
236
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 4];
237
- }
238
- return [3, 6];
239
- case 2: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
240
- case 3: throw _d.sent();
241
- case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
242
- case 5: throw _d.sent();
243
- case 6:
244
- parsedBody = parsedOutput.body;
245
- throwDefaultError({
246
- output: output,
247
- parsedBody: parsedBody,
248
- exceptionCtor: __BaseException,
249
- errorCode: errorCode,
250
- });
251
- _d.label = 7;
252
- case 7: return [2];
253
- }
254
- });
255
- }); };
256
- export var deserializeAws_json1_1DescribeDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
257
- var data, contents, response;
258
- return __generator(this, function (_a) {
259
- switch (_a.label) {
260
- case 0:
261
- if (output.statusCode >= 300) {
262
- return [2, deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context)];
263
- }
264
- return [4, parseBody(output.body, context)];
265
- case 1:
266
- data = _a.sent();
267
- contents = {};
268
- contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context);
269
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
270
- return [2, Promise.resolve(response)];
271
- }
272
- });
273
- }); };
274
- var deserializeAws_json1_1DescribeDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
275
- var parsedOutput, _a, errorCode, _b, parsedBody;
276
- var _c;
277
- return __generator(this, function (_d) {
278
- switch (_d.label) {
279
- case 0:
280
- _a = [__assign({}, output)];
281
- _c = {};
282
- return [4, parseBody(output.body, context)];
283
- case 1:
284
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
285
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
286
- _b = errorCode;
287
- switch (_b) {
288
- case "ResourceNotFoundException": return [3, 2];
289
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 2];
290
- }
291
- return [3, 4];
292
- case 2: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
293
- case 3: throw _d.sent();
294
- case 4:
295
- parsedBody = parsedOutput.body;
296
- throwDefaultError({
297
- output: output,
298
- parsedBody: parsedBody,
299
- exceptionCtor: __BaseException,
300
- errorCode: errorCode,
301
- });
302
- _d.label = 5;
303
- case 5: return [2];
304
- }
305
- });
306
- }); };
307
- export var deserializeAws_json1_1ListDeliveryStreamsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
308
- var data, contents, response;
309
- return __generator(this, function (_a) {
310
- switch (_a.label) {
311
- case 0:
312
- if (output.statusCode >= 300) {
313
- return [2, deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context)];
314
- }
315
- return [4, parseBody(output.body, context)];
316
- case 1:
317
- data = _a.sent();
318
- contents = {};
319
- contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context);
320
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
321
- return [2, Promise.resolve(response)];
322
- }
323
- });
324
- }); };
325
- var deserializeAws_json1_1ListDeliveryStreamsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
326
- var parsedOutput, _a, errorCode, parsedBody;
327
- var _b;
328
- return __generator(this, function (_c) {
329
- switch (_c.label) {
330
- case 0:
331
- _a = [__assign({}, output)];
332
- _b = {};
333
- return [4, parseBody(output.body, context)];
334
- case 1:
335
- parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
336
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
337
- parsedBody = parsedOutput.body;
338
- throwDefaultError({
339
- output: output,
340
- parsedBody: parsedBody,
341
- exceptionCtor: __BaseException,
342
- errorCode: errorCode,
343
- });
344
- return [2];
345
- }
346
- });
347
- }); };
348
- export var deserializeAws_json1_1ListTagsForDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
349
- var data, contents, response;
350
- return __generator(this, function (_a) {
351
- switch (_a.label) {
352
- case 0:
353
- if (output.statusCode >= 300) {
354
- return [2, deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context)];
355
- }
356
- return [4, parseBody(output.body, context)];
357
- case 1:
358
- data = _a.sent();
359
- contents = {};
360
- contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context);
361
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
362
- return [2, Promise.resolve(response)];
363
- }
364
- });
365
- }); };
366
- var deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
367
- var parsedOutput, _a, errorCode, _b, parsedBody;
368
- var _c;
369
- return __generator(this, function (_d) {
370
- switch (_d.label) {
371
- case 0:
372
- _a = [__assign({}, output)];
373
- _c = {};
374
- return [4, parseBody(output.body, context)];
375
- case 1:
376
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
377
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
378
- _b = errorCode;
379
- switch (_b) {
380
- case "InvalidArgumentException": return [3, 2];
381
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
382
- case "LimitExceededException": return [3, 4];
383
- case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
384
- case "ResourceNotFoundException": return [3, 6];
385
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 6];
386
- }
387
- return [3, 8];
388
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
389
- case 3: throw _d.sent();
390
- case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
391
- case 5: throw _d.sent();
392
- case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
393
- case 7: throw _d.sent();
394
- case 8:
395
- parsedBody = parsedOutput.body;
396
- throwDefaultError({
397
- output: output,
398
- parsedBody: parsedBody,
399
- exceptionCtor: __BaseException,
400
- errorCode: errorCode,
401
- });
402
- _d.label = 9;
403
- case 9: return [2];
404
- }
405
- });
406
- }); };
407
- export var deserializeAws_json1_1PutRecordCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
408
- var data, contents, response;
409
- return __generator(this, function (_a) {
410
- switch (_a.label) {
411
- case 0:
412
- if (output.statusCode >= 300) {
413
- return [2, deserializeAws_json1_1PutRecordCommandError(output, context)];
414
- }
415
- return [4, parseBody(output.body, context)];
416
- case 1:
417
- data = _a.sent();
418
- contents = {};
419
- contents = deserializeAws_json1_1PutRecordOutput(data, context);
420
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
421
- return [2, Promise.resolve(response)];
422
- }
423
- });
424
- }); };
425
- var deserializeAws_json1_1PutRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
426
- var parsedOutput, _a, errorCode, _b, parsedBody;
427
- var _c;
428
- return __generator(this, function (_d) {
429
- switch (_d.label) {
430
- case 0:
431
- _a = [__assign({}, output)];
432
- _c = {};
433
- return [4, parseBody(output.body, context)];
434
- case 1:
435
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
436
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
437
- _b = errorCode;
438
- switch (_b) {
439
- case "InvalidArgumentException": return [3, 2];
440
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
441
- case "InvalidKMSResourceException": return [3, 4];
442
- case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
443
- case "ResourceNotFoundException": return [3, 6];
444
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 6];
445
- case "ServiceUnavailableException": return [3, 8];
446
- case "com.amazonaws.firehose#ServiceUnavailableException": return [3, 8];
447
- }
448
- return [3, 10];
449
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
450
- case 3: throw _d.sent();
451
- case 4: return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
452
- case 5: throw _d.sent();
453
- case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
454
- case 7: throw _d.sent();
455
- case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
456
- case 9: throw _d.sent();
457
- case 10:
458
- parsedBody = parsedOutput.body;
459
- throwDefaultError({
460
- output: output,
461
- parsedBody: parsedBody,
462
- exceptionCtor: __BaseException,
463
- errorCode: errorCode,
464
- });
465
- _d.label = 11;
466
- case 11: return [2];
467
- }
468
- });
469
- }); };
470
- export var deserializeAws_json1_1PutRecordBatchCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
471
- var data, contents, response;
472
- return __generator(this, function (_a) {
473
- switch (_a.label) {
474
- case 0:
475
- if (output.statusCode >= 300) {
476
- return [2, deserializeAws_json1_1PutRecordBatchCommandError(output, context)];
477
- }
478
- return [4, parseBody(output.body, context)];
479
- case 1:
480
- data = _a.sent();
481
- contents = {};
482
- contents = deserializeAws_json1_1PutRecordBatchOutput(data, context);
483
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
484
- return [2, Promise.resolve(response)];
485
- }
486
- });
487
- }); };
488
- var deserializeAws_json1_1PutRecordBatchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
489
- var parsedOutput, _a, errorCode, _b, parsedBody;
490
- var _c;
491
- return __generator(this, function (_d) {
492
- switch (_d.label) {
493
- case 0:
494
- _a = [__assign({}, output)];
495
- _c = {};
496
- return [4, parseBody(output.body, context)];
497
- case 1:
498
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
499
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
500
- _b = errorCode;
501
- switch (_b) {
502
- case "InvalidArgumentException": return [3, 2];
503
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
504
- case "InvalidKMSResourceException": return [3, 4];
505
- case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
506
- case "ResourceNotFoundException": return [3, 6];
507
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 6];
508
- case "ServiceUnavailableException": return [3, 8];
509
- case "com.amazonaws.firehose#ServiceUnavailableException": return [3, 8];
510
- }
511
- return [3, 10];
512
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
513
- case 3: throw _d.sent();
514
- case 4: return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
515
- case 5: throw _d.sent();
516
- case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
517
- case 7: throw _d.sent();
518
- case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
519
- case 9: throw _d.sent();
520
- case 10:
521
- parsedBody = parsedOutput.body;
522
- throwDefaultError({
523
- output: output,
524
- parsedBody: parsedBody,
525
- exceptionCtor: __BaseException,
526
- errorCode: errorCode,
527
- });
528
- _d.label = 11;
529
- case 11: return [2];
530
- }
531
- });
532
- }); };
533
- export var deserializeAws_json1_1StartDeliveryStreamEncryptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
534
- var data, contents, response;
535
- return __generator(this, function (_a) {
536
- switch (_a.label) {
537
- case 0:
538
- if (output.statusCode >= 300) {
539
- return [2, deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context)];
540
- }
541
- return [4, parseBody(output.body, context)];
542
- case 1:
543
- data = _a.sent();
544
- contents = {};
545
- contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context);
546
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
547
- return [2, Promise.resolve(response)];
548
- }
549
- });
550
- }); };
551
- var deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
552
- var parsedOutput, _a, errorCode, _b, parsedBody;
553
- var _c;
554
- return __generator(this, function (_d) {
555
- switch (_d.label) {
556
- case 0:
557
- _a = [__assign({}, output)];
558
- _c = {};
559
- return [4, parseBody(output.body, context)];
560
- case 1:
561
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
562
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
563
- _b = errorCode;
564
- switch (_b) {
565
- case "InvalidArgumentException": return [3, 2];
566
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
567
- case "InvalidKMSResourceException": return [3, 4];
568
- case "com.amazonaws.firehose#InvalidKMSResourceException": return [3, 4];
569
- case "LimitExceededException": return [3, 6];
570
- case "com.amazonaws.firehose#LimitExceededException": return [3, 6];
571
- case "ResourceInUseException": return [3, 8];
572
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 8];
573
- case "ResourceNotFoundException": return [3, 10];
574
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 10];
575
- }
576
- return [3, 12];
577
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
578
- case 3: throw _d.sent();
579
- case 4: return [4, deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context)];
580
- case 5: throw _d.sent();
581
- case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
582
- case 7: throw _d.sent();
583
- case 8: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
584
- case 9: throw _d.sent();
585
- case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
586
- case 11: throw _d.sent();
587
- case 12:
588
- parsedBody = parsedOutput.body;
589
- throwDefaultError({
590
- output: output,
591
- parsedBody: parsedBody,
592
- exceptionCtor: __BaseException,
593
- errorCode: errorCode,
594
- });
595
- _d.label = 13;
596
- case 13: return [2];
597
- }
598
- });
599
- }); };
600
- export var deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
601
- var data, contents, response;
602
- return __generator(this, function (_a) {
603
- switch (_a.label) {
604
- case 0:
605
- if (output.statusCode >= 300) {
606
- return [2, deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context)];
607
- }
608
- return [4, parseBody(output.body, context)];
609
- case 1:
610
- data = _a.sent();
611
- contents = {};
612
- contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context);
613
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
614
- return [2, Promise.resolve(response)];
615
- }
616
- });
617
- }); };
618
- var deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
619
- var parsedOutput, _a, errorCode, _b, parsedBody;
620
- var _c;
621
- return __generator(this, function (_d) {
622
- switch (_d.label) {
623
- case 0:
624
- _a = [__assign({}, output)];
625
- _c = {};
626
- return [4, parseBody(output.body, context)];
627
- case 1:
628
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
629
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
630
- _b = errorCode;
631
- switch (_b) {
632
- case "InvalidArgumentException": return [3, 2];
633
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
634
- case "LimitExceededException": return [3, 4];
635
- case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
636
- case "ResourceInUseException": return [3, 6];
637
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
638
- case "ResourceNotFoundException": return [3, 8];
639
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
640
- }
641
- return [3, 10];
642
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
643
- case 3: throw _d.sent();
644
- case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
645
- case 5: throw _d.sent();
646
- case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
647
- case 7: throw _d.sent();
648
- case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
649
- case 9: throw _d.sent();
650
- case 10:
651
- parsedBody = parsedOutput.body;
652
- throwDefaultError({
653
- output: output,
654
- parsedBody: parsedBody,
655
- exceptionCtor: __BaseException,
656
- errorCode: errorCode,
657
- });
658
- _d.label = 11;
659
- case 11: return [2];
660
- }
661
- });
662
- }); };
663
- export var deserializeAws_json1_1TagDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
664
- var data, contents, response;
665
- return __generator(this, function (_a) {
666
- switch (_a.label) {
667
- case 0:
668
- if (output.statusCode >= 300) {
669
- return [2, deserializeAws_json1_1TagDeliveryStreamCommandError(output, context)];
670
- }
671
- return [4, parseBody(output.body, context)];
672
- case 1:
673
- data = _a.sent();
674
- contents = {};
675
- contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context);
676
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
677
- return [2, Promise.resolve(response)];
678
- }
679
- });
680
- }); };
681
- var deserializeAws_json1_1TagDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
682
- var parsedOutput, _a, errorCode, _b, parsedBody;
683
- var _c;
684
- return __generator(this, function (_d) {
685
- switch (_d.label) {
686
- case 0:
687
- _a = [__assign({}, output)];
688
- _c = {};
689
- return [4, parseBody(output.body, context)];
690
- case 1:
691
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
692
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
693
- _b = errorCode;
694
- switch (_b) {
695
- case "InvalidArgumentException": return [3, 2];
696
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
697
- case "LimitExceededException": return [3, 4];
698
- case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
699
- case "ResourceInUseException": return [3, 6];
700
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
701
- case "ResourceNotFoundException": return [3, 8];
702
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
703
- }
704
- return [3, 10];
705
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
706
- case 3: throw _d.sent();
707
- case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
708
- case 5: throw _d.sent();
709
- case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
710
- case 7: throw _d.sent();
711
- case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
712
- case 9: throw _d.sent();
713
- case 10:
714
- parsedBody = parsedOutput.body;
715
- throwDefaultError({
716
- output: output,
717
- parsedBody: parsedBody,
718
- exceptionCtor: __BaseException,
719
- errorCode: errorCode,
720
- });
721
- _d.label = 11;
722
- case 11: return [2];
723
- }
724
- });
725
- }); };
726
- export var deserializeAws_json1_1UntagDeliveryStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
727
- var data, contents, response;
728
- return __generator(this, function (_a) {
729
- switch (_a.label) {
730
- case 0:
731
- if (output.statusCode >= 300) {
732
- return [2, deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context)];
733
- }
734
- return [4, parseBody(output.body, context)];
735
- case 1:
736
- data = _a.sent();
737
- contents = {};
738
- contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
739
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
740
- return [2, Promise.resolve(response)];
741
- }
742
- });
743
- }); };
744
- var deserializeAws_json1_1UntagDeliveryStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
745
- var parsedOutput, _a, errorCode, _b, parsedBody;
746
- var _c;
747
- return __generator(this, function (_d) {
748
- switch (_d.label) {
749
- case 0:
750
- _a = [__assign({}, output)];
751
- _c = {};
752
- return [4, parseBody(output.body, context)];
753
- case 1:
754
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
755
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
756
- _b = errorCode;
757
- switch (_b) {
758
- case "InvalidArgumentException": return [3, 2];
759
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 2];
760
- case "LimitExceededException": return [3, 4];
761
- case "com.amazonaws.firehose#LimitExceededException": return [3, 4];
762
- case "ResourceInUseException": return [3, 6];
763
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
764
- case "ResourceNotFoundException": return [3, 8];
765
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
766
- }
767
- return [3, 10];
768
- case 2: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
769
- case 3: throw _d.sent();
770
- case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
771
- case 5: throw _d.sent();
772
- case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
773
- case 7: throw _d.sent();
774
- case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
775
- case 9: throw _d.sent();
776
- case 10:
777
- parsedBody = parsedOutput.body;
778
- throwDefaultError({
779
- output: output,
780
- parsedBody: parsedBody,
781
- exceptionCtor: __BaseException,
782
- errorCode: errorCode,
783
- });
784
- _d.label = 11;
785
- case 11: return [2];
786
- }
787
- });
788
- }); };
789
- export var deserializeAws_json1_1UpdateDestinationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
790
- var data, contents, response;
791
- return __generator(this, function (_a) {
792
- switch (_a.label) {
793
- case 0:
794
- if (output.statusCode >= 300) {
795
- return [2, deserializeAws_json1_1UpdateDestinationCommandError(output, context)];
796
- }
797
- return [4, parseBody(output.body, context)];
798
- case 1:
799
- data = _a.sent();
800
- contents = {};
801
- contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
802
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
803
- return [2, Promise.resolve(response)];
804
- }
805
- });
806
- }); };
807
- var deserializeAws_json1_1UpdateDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
808
- var parsedOutput, _a, errorCode, _b, parsedBody;
809
- var _c;
810
- return __generator(this, function (_d) {
811
- switch (_d.label) {
812
- case 0:
813
- _a = [__assign({}, output)];
814
- _c = {};
815
- return [4, parseBody(output.body, context)];
816
- case 1:
817
- parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
818
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
819
- _b = errorCode;
820
- switch (_b) {
821
- case "ConcurrentModificationException": return [3, 2];
822
- case "com.amazonaws.firehose#ConcurrentModificationException": return [3, 2];
823
- case "InvalidArgumentException": return [3, 4];
824
- case "com.amazonaws.firehose#InvalidArgumentException": return [3, 4];
825
- case "ResourceInUseException": return [3, 6];
826
- case "com.amazonaws.firehose#ResourceInUseException": return [3, 6];
827
- case "ResourceNotFoundException": return [3, 8];
828
- case "com.amazonaws.firehose#ResourceNotFoundException": return [3, 8];
829
- }
830
- return [3, 10];
831
- case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
832
- case 3: throw _d.sent();
833
- case 4: return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
834
- case 5: throw _d.sent();
835
- case 6: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
836
- case 7: throw _d.sent();
837
- case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
838
- case 9: throw _d.sent();
839
- case 10:
840
- parsedBody = parsedOutput.body;
841
- throwDefaultError({
842
- output: output,
843
- parsedBody: parsedBody,
844
- exceptionCtor: __BaseException,
845
- errorCode: errorCode,
846
- });
847
- _d.label = 11;
848
- case 11: return [2];
849
- }
850
- });
851
- }); };
852
- var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
853
- var body, deserialized, exception;
854
- return __generator(this, function (_a) {
855
- body = parsedOutput.body;
856
- deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
857
- exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
858
- return [2, __decorateServiceException(exception, body)];
859
- });
860
- }); };
861
- var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
862
- var body, deserialized, exception;
863
- return __generator(this, function (_a) {
864
- body = parsedOutput.body;
865
- deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
866
- exception = new InvalidArgumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
867
- return [2, __decorateServiceException(exception, body)];
868
- });
869
- }); };
870
- var deserializeAws_json1_1InvalidKMSResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
871
- var body, deserialized, exception;
872
- return __generator(this, function (_a) {
873
- body = parsedOutput.body;
874
- deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
875
- exception = new InvalidKMSResourceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
876
- return [2, __decorateServiceException(exception, body)];
877
- });
878
- }); };
879
- var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
880
- var body, deserialized, exception;
881
- return __generator(this, function (_a) {
882
- body = parsedOutput.body;
883
- deserialized = deserializeAws_json1_1LimitExceededException(body, context);
884
- exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
885
- return [2, __decorateServiceException(exception, body)];
886
- });
887
- }); };
888
- var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
889
- var body, deserialized, exception;
890
- return __generator(this, function (_a) {
891
- body = parsedOutput.body;
892
- deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
893
- exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
894
- return [2, __decorateServiceException(exception, body)];
895
- });
896
- }); };
897
- var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
898
- var body, deserialized, exception;
899
- return __generator(this, function (_a) {
900
- body = parsedOutput.body;
901
- deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
902
- exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
903
- return [2, __decorateServiceException(exception, body)];
904
- });
905
- }); };
906
- var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
907
- var body, deserialized, exception;
908
- return __generator(this, function (_a) {
909
- body = parsedOutput.body;
910
- deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
911
- exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
912
- return [2, __decorateServiceException(exception, body)];
913
- });
914
- }); };
915
- var serializeAws_json1_1AmazonopensearchserviceBufferingHints = function (input, context) {
916
- return __assign(__assign({}, (input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }));
917
- };
918
- var serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration = function (input, context) {
919
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
920
- BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
921
- })), (input.CloudWatchLoggingOptions != null && {
922
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
923
- })), (input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN != null && { DomainARN: input.DomainARN })), (input.IndexName != null && { IndexName: input.IndexName })), (input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration != null && {
924
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
925
- })), (input.RetryOptions != null && {
926
- RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
927
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration != null && {
928
- S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
929
- })), (input.TypeName != null && { TypeName: input.TypeName })), (input.VpcConfiguration != null && {
930
- VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
931
- }));
932
- };
933
- var serializeAws_json1_1AmazonopensearchserviceDestinationUpdate = function (input, context) {
934
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
935
- BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
936
- })), (input.CloudWatchLoggingOptions != null && {
937
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
938
- })), (input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN != null && { DomainARN: input.DomainARN })), (input.IndexName != null && { IndexName: input.IndexName })), (input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration != null && {
939
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
940
- })), (input.RetryOptions != null && {
941
- RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
942
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName != null && { TypeName: input.TypeName }));
943
- };
944
- var serializeAws_json1_1AmazonopensearchserviceRetryOptions = function (input, context) {
945
- return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
946
- };
947
- var serializeAws_json1_1BufferingHints = function (input, context) {
948
- return __assign(__assign({}, (input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }));
949
- };
950
- var serializeAws_json1_1CloudWatchLoggingOptions = function (input, context) {
951
- return __assign(__assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.LogGroupName != null && { LogGroupName: input.LogGroupName })), (input.LogStreamName != null && { LogStreamName: input.LogStreamName }));
952
- };
953
- var serializeAws_json1_1ColumnToJsonKeyMappings = function (input, context) {
954
- return Object.entries(input).reduce(function (acc, _a) {
955
- var _b;
956
- var _c = __read(_a, 2), key = _c[0], value = _c[1];
5
+ export const serializeAws_json1_1CreateDeliveryStreamCommand = async (input, context) => {
6
+ const headers = {
7
+ "content-type": "application/x-amz-json-1.1",
8
+ "x-amz-target": "Firehose_20150804.CreateDeliveryStream",
9
+ };
10
+ let body;
11
+ body = JSON.stringify(serializeAws_json1_1CreateDeliveryStreamInput(input, context));
12
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
+ };
14
+ export const serializeAws_json1_1DeleteDeliveryStreamCommand = async (input, context) => {
15
+ const headers = {
16
+ "content-type": "application/x-amz-json-1.1",
17
+ "x-amz-target": "Firehose_20150804.DeleteDeliveryStream",
18
+ };
19
+ let body;
20
+ body = JSON.stringify(serializeAws_json1_1DeleteDeliveryStreamInput(input, context));
21
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
+ };
23
+ export const serializeAws_json1_1DescribeDeliveryStreamCommand = async (input, context) => {
24
+ const headers = {
25
+ "content-type": "application/x-amz-json-1.1",
26
+ "x-amz-target": "Firehose_20150804.DescribeDeliveryStream",
27
+ };
28
+ let body;
29
+ body = JSON.stringify(serializeAws_json1_1DescribeDeliveryStreamInput(input, context));
30
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
+ };
32
+ export const serializeAws_json1_1ListDeliveryStreamsCommand = async (input, context) => {
33
+ const headers = {
34
+ "content-type": "application/x-amz-json-1.1",
35
+ "x-amz-target": "Firehose_20150804.ListDeliveryStreams",
36
+ };
37
+ let body;
38
+ body = JSON.stringify(serializeAws_json1_1ListDeliveryStreamsInput(input, context));
39
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
+ };
41
+ export const serializeAws_json1_1ListTagsForDeliveryStreamCommand = async (input, context) => {
42
+ const headers = {
43
+ "content-type": "application/x-amz-json-1.1",
44
+ "x-amz-target": "Firehose_20150804.ListTagsForDeliveryStream",
45
+ };
46
+ let body;
47
+ body = JSON.stringify(serializeAws_json1_1ListTagsForDeliveryStreamInput(input, context));
48
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
+ };
50
+ export const serializeAws_json1_1PutRecordCommand = async (input, context) => {
51
+ const headers = {
52
+ "content-type": "application/x-amz-json-1.1",
53
+ "x-amz-target": "Firehose_20150804.PutRecord",
54
+ };
55
+ let body;
56
+ body = JSON.stringify(serializeAws_json1_1PutRecordInput(input, context));
57
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
+ };
59
+ export const serializeAws_json1_1PutRecordBatchCommand = async (input, context) => {
60
+ const headers = {
61
+ "content-type": "application/x-amz-json-1.1",
62
+ "x-amz-target": "Firehose_20150804.PutRecordBatch",
63
+ };
64
+ let body;
65
+ body = JSON.stringify(serializeAws_json1_1PutRecordBatchInput(input, context));
66
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
+ };
68
+ export const serializeAws_json1_1StartDeliveryStreamEncryptionCommand = async (input, context) => {
69
+ const headers = {
70
+ "content-type": "application/x-amz-json-1.1",
71
+ "x-amz-target": "Firehose_20150804.StartDeliveryStreamEncryption",
72
+ };
73
+ let body;
74
+ body = JSON.stringify(serializeAws_json1_1StartDeliveryStreamEncryptionInput(input, context));
75
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
+ };
77
+ export const serializeAws_json1_1StopDeliveryStreamEncryptionCommand = async (input, context) => {
78
+ const headers = {
79
+ "content-type": "application/x-amz-json-1.1",
80
+ "x-amz-target": "Firehose_20150804.StopDeliveryStreamEncryption",
81
+ };
82
+ let body;
83
+ body = JSON.stringify(serializeAws_json1_1StopDeliveryStreamEncryptionInput(input, context));
84
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
+ };
86
+ export const serializeAws_json1_1TagDeliveryStreamCommand = async (input, context) => {
87
+ const headers = {
88
+ "content-type": "application/x-amz-json-1.1",
89
+ "x-amz-target": "Firehose_20150804.TagDeliveryStream",
90
+ };
91
+ let body;
92
+ body = JSON.stringify(serializeAws_json1_1TagDeliveryStreamInput(input, context));
93
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
+ };
95
+ export const serializeAws_json1_1UntagDeliveryStreamCommand = async (input, context) => {
96
+ const headers = {
97
+ "content-type": "application/x-amz-json-1.1",
98
+ "x-amz-target": "Firehose_20150804.UntagDeliveryStream",
99
+ };
100
+ let body;
101
+ body = JSON.stringify(serializeAws_json1_1UntagDeliveryStreamInput(input, context));
102
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
+ };
104
+ export const serializeAws_json1_1UpdateDestinationCommand = async (input, context) => {
105
+ const headers = {
106
+ "content-type": "application/x-amz-json-1.1",
107
+ "x-amz-target": "Firehose_20150804.UpdateDestination",
108
+ };
109
+ let body;
110
+ body = JSON.stringify(serializeAws_json1_1UpdateDestinationInput(input, context));
111
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
+ };
113
+ export const deserializeAws_json1_1CreateDeliveryStreamCommand = async (output, context) => {
114
+ if (output.statusCode >= 300) {
115
+ return deserializeAws_json1_1CreateDeliveryStreamCommandError(output, context);
116
+ }
117
+ const data = await parseBody(output.body, context);
118
+ let contents = {};
119
+ contents = deserializeAws_json1_1CreateDeliveryStreamOutput(data, context);
120
+ const response = {
121
+ $metadata: deserializeMetadata(output),
122
+ ...contents,
123
+ };
124
+ return Promise.resolve(response);
125
+ };
126
+ const deserializeAws_json1_1CreateDeliveryStreamCommandError = async (output, context) => {
127
+ const parsedOutput = {
128
+ ...output,
129
+ body: await parseErrorBody(output.body, context),
130
+ };
131
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
132
+ switch (errorCode) {
133
+ case "InvalidArgumentException":
134
+ case "com.amazonaws.firehose#InvalidArgumentException":
135
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
136
+ case "InvalidKMSResourceException":
137
+ case "com.amazonaws.firehose#InvalidKMSResourceException":
138
+ throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
139
+ case "LimitExceededException":
140
+ case "com.amazonaws.firehose#LimitExceededException":
141
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
142
+ case "ResourceInUseException":
143
+ case "com.amazonaws.firehose#ResourceInUseException":
144
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
145
+ default:
146
+ const parsedBody = parsedOutput.body;
147
+ throwDefaultError({
148
+ output,
149
+ parsedBody,
150
+ exceptionCtor: __BaseException,
151
+ errorCode,
152
+ });
153
+ }
154
+ };
155
+ export const deserializeAws_json1_1DeleteDeliveryStreamCommand = async (output, context) => {
156
+ if (output.statusCode >= 300) {
157
+ return deserializeAws_json1_1DeleteDeliveryStreamCommandError(output, context);
158
+ }
159
+ const data = await parseBody(output.body, context);
160
+ let contents = {};
161
+ contents = deserializeAws_json1_1DeleteDeliveryStreamOutput(data, context);
162
+ const response = {
163
+ $metadata: deserializeMetadata(output),
164
+ ...contents,
165
+ };
166
+ return Promise.resolve(response);
167
+ };
168
+ const deserializeAws_json1_1DeleteDeliveryStreamCommandError = async (output, context) => {
169
+ const parsedOutput = {
170
+ ...output,
171
+ body: await parseErrorBody(output.body, context),
172
+ };
173
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
174
+ switch (errorCode) {
175
+ case "ResourceInUseException":
176
+ case "com.amazonaws.firehose#ResourceInUseException":
177
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
178
+ case "ResourceNotFoundException":
179
+ case "com.amazonaws.firehose#ResourceNotFoundException":
180
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
181
+ default:
182
+ const parsedBody = parsedOutput.body;
183
+ throwDefaultError({
184
+ output,
185
+ parsedBody,
186
+ exceptionCtor: __BaseException,
187
+ errorCode,
188
+ });
189
+ }
190
+ };
191
+ export const deserializeAws_json1_1DescribeDeliveryStreamCommand = async (output, context) => {
192
+ if (output.statusCode >= 300) {
193
+ return deserializeAws_json1_1DescribeDeliveryStreamCommandError(output, context);
194
+ }
195
+ const data = await parseBody(output.body, context);
196
+ let contents = {};
197
+ contents = deserializeAws_json1_1DescribeDeliveryStreamOutput(data, context);
198
+ const response = {
199
+ $metadata: deserializeMetadata(output),
200
+ ...contents,
201
+ };
202
+ return Promise.resolve(response);
203
+ };
204
+ const deserializeAws_json1_1DescribeDeliveryStreamCommandError = async (output, context) => {
205
+ const parsedOutput = {
206
+ ...output,
207
+ body: await parseErrorBody(output.body, context),
208
+ };
209
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
210
+ switch (errorCode) {
211
+ case "ResourceNotFoundException":
212
+ case "com.amazonaws.firehose#ResourceNotFoundException":
213
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
214
+ default:
215
+ const parsedBody = parsedOutput.body;
216
+ throwDefaultError({
217
+ output,
218
+ parsedBody,
219
+ exceptionCtor: __BaseException,
220
+ errorCode,
221
+ });
222
+ }
223
+ };
224
+ export const deserializeAws_json1_1ListDeliveryStreamsCommand = async (output, context) => {
225
+ if (output.statusCode >= 300) {
226
+ return deserializeAws_json1_1ListDeliveryStreamsCommandError(output, context);
227
+ }
228
+ const data = await parseBody(output.body, context);
229
+ let contents = {};
230
+ contents = deserializeAws_json1_1ListDeliveryStreamsOutput(data, context);
231
+ const response = {
232
+ $metadata: deserializeMetadata(output),
233
+ ...contents,
234
+ };
235
+ return Promise.resolve(response);
236
+ };
237
+ const deserializeAws_json1_1ListDeliveryStreamsCommandError = async (output, context) => {
238
+ const parsedOutput = {
239
+ ...output,
240
+ body: await parseErrorBody(output.body, context),
241
+ };
242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
243
+ const parsedBody = parsedOutput.body;
244
+ throwDefaultError({
245
+ output,
246
+ parsedBody,
247
+ exceptionCtor: __BaseException,
248
+ errorCode,
249
+ });
250
+ };
251
+ export const deserializeAws_json1_1ListTagsForDeliveryStreamCommand = async (output, context) => {
252
+ if (output.statusCode >= 300) {
253
+ return deserializeAws_json1_1ListTagsForDeliveryStreamCommandError(output, context);
254
+ }
255
+ const data = await parseBody(output.body, context);
256
+ let contents = {};
257
+ contents = deserializeAws_json1_1ListTagsForDeliveryStreamOutput(data, context);
258
+ const response = {
259
+ $metadata: deserializeMetadata(output),
260
+ ...contents,
261
+ };
262
+ return Promise.resolve(response);
263
+ };
264
+ const deserializeAws_json1_1ListTagsForDeliveryStreamCommandError = async (output, context) => {
265
+ const parsedOutput = {
266
+ ...output,
267
+ body: await parseErrorBody(output.body, context),
268
+ };
269
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
270
+ switch (errorCode) {
271
+ case "InvalidArgumentException":
272
+ case "com.amazonaws.firehose#InvalidArgumentException":
273
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
274
+ case "LimitExceededException":
275
+ case "com.amazonaws.firehose#LimitExceededException":
276
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
277
+ case "ResourceNotFoundException":
278
+ case "com.amazonaws.firehose#ResourceNotFoundException":
279
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
280
+ default:
281
+ const parsedBody = parsedOutput.body;
282
+ throwDefaultError({
283
+ output,
284
+ parsedBody,
285
+ exceptionCtor: __BaseException,
286
+ errorCode,
287
+ });
288
+ }
289
+ };
290
+ export const deserializeAws_json1_1PutRecordCommand = async (output, context) => {
291
+ if (output.statusCode >= 300) {
292
+ return deserializeAws_json1_1PutRecordCommandError(output, context);
293
+ }
294
+ const data = await parseBody(output.body, context);
295
+ let contents = {};
296
+ contents = deserializeAws_json1_1PutRecordOutput(data, context);
297
+ const response = {
298
+ $metadata: deserializeMetadata(output),
299
+ ...contents,
300
+ };
301
+ return Promise.resolve(response);
302
+ };
303
+ const deserializeAws_json1_1PutRecordCommandError = async (output, context) => {
304
+ const parsedOutput = {
305
+ ...output,
306
+ body: await parseErrorBody(output.body, context),
307
+ };
308
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
309
+ switch (errorCode) {
310
+ case "InvalidArgumentException":
311
+ case "com.amazonaws.firehose#InvalidArgumentException":
312
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
313
+ case "InvalidKMSResourceException":
314
+ case "com.amazonaws.firehose#InvalidKMSResourceException":
315
+ throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
316
+ case "ResourceNotFoundException":
317
+ case "com.amazonaws.firehose#ResourceNotFoundException":
318
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
319
+ case "ServiceUnavailableException":
320
+ case "com.amazonaws.firehose#ServiceUnavailableException":
321
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
322
+ default:
323
+ const parsedBody = parsedOutput.body;
324
+ throwDefaultError({
325
+ output,
326
+ parsedBody,
327
+ exceptionCtor: __BaseException,
328
+ errorCode,
329
+ });
330
+ }
331
+ };
332
+ export const deserializeAws_json1_1PutRecordBatchCommand = async (output, context) => {
333
+ if (output.statusCode >= 300) {
334
+ return deserializeAws_json1_1PutRecordBatchCommandError(output, context);
335
+ }
336
+ const data = await parseBody(output.body, context);
337
+ let contents = {};
338
+ contents = deserializeAws_json1_1PutRecordBatchOutput(data, context);
339
+ const response = {
340
+ $metadata: deserializeMetadata(output),
341
+ ...contents,
342
+ };
343
+ return Promise.resolve(response);
344
+ };
345
+ const deserializeAws_json1_1PutRecordBatchCommandError = async (output, context) => {
346
+ const parsedOutput = {
347
+ ...output,
348
+ body: await parseErrorBody(output.body, context),
349
+ };
350
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
351
+ switch (errorCode) {
352
+ case "InvalidArgumentException":
353
+ case "com.amazonaws.firehose#InvalidArgumentException":
354
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
355
+ case "InvalidKMSResourceException":
356
+ case "com.amazonaws.firehose#InvalidKMSResourceException":
357
+ throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
358
+ case "ResourceNotFoundException":
359
+ case "com.amazonaws.firehose#ResourceNotFoundException":
360
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
361
+ case "ServiceUnavailableException":
362
+ case "com.amazonaws.firehose#ServiceUnavailableException":
363
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
364
+ default:
365
+ const parsedBody = parsedOutput.body;
366
+ throwDefaultError({
367
+ output,
368
+ parsedBody,
369
+ exceptionCtor: __BaseException,
370
+ errorCode,
371
+ });
372
+ }
373
+ };
374
+ export const deserializeAws_json1_1StartDeliveryStreamEncryptionCommand = async (output, context) => {
375
+ if (output.statusCode >= 300) {
376
+ return deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError(output, context);
377
+ }
378
+ const data = await parseBody(output.body, context);
379
+ let contents = {};
380
+ contents = deserializeAws_json1_1StartDeliveryStreamEncryptionOutput(data, context);
381
+ const response = {
382
+ $metadata: deserializeMetadata(output),
383
+ ...contents,
384
+ };
385
+ return Promise.resolve(response);
386
+ };
387
+ const deserializeAws_json1_1StartDeliveryStreamEncryptionCommandError = async (output, context) => {
388
+ const parsedOutput = {
389
+ ...output,
390
+ body: await parseErrorBody(output.body, context),
391
+ };
392
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
393
+ switch (errorCode) {
394
+ case "InvalidArgumentException":
395
+ case "com.amazonaws.firehose#InvalidArgumentException":
396
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
397
+ case "InvalidKMSResourceException":
398
+ case "com.amazonaws.firehose#InvalidKMSResourceException":
399
+ throw await deserializeAws_json1_1InvalidKMSResourceExceptionResponse(parsedOutput, context);
400
+ case "LimitExceededException":
401
+ case "com.amazonaws.firehose#LimitExceededException":
402
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
403
+ case "ResourceInUseException":
404
+ case "com.amazonaws.firehose#ResourceInUseException":
405
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
406
+ case "ResourceNotFoundException":
407
+ case "com.amazonaws.firehose#ResourceNotFoundException":
408
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
409
+ default:
410
+ const parsedBody = parsedOutput.body;
411
+ throwDefaultError({
412
+ output,
413
+ parsedBody,
414
+ exceptionCtor: __BaseException,
415
+ errorCode,
416
+ });
417
+ }
418
+ };
419
+ export const deserializeAws_json1_1StopDeliveryStreamEncryptionCommand = async (output, context) => {
420
+ if (output.statusCode >= 300) {
421
+ return deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError(output, context);
422
+ }
423
+ const data = await parseBody(output.body, context);
424
+ let contents = {};
425
+ contents = deserializeAws_json1_1StopDeliveryStreamEncryptionOutput(data, context);
426
+ const response = {
427
+ $metadata: deserializeMetadata(output),
428
+ ...contents,
429
+ };
430
+ return Promise.resolve(response);
431
+ };
432
+ const deserializeAws_json1_1StopDeliveryStreamEncryptionCommandError = async (output, context) => {
433
+ const parsedOutput = {
434
+ ...output,
435
+ body: await parseErrorBody(output.body, context),
436
+ };
437
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
438
+ switch (errorCode) {
439
+ case "InvalidArgumentException":
440
+ case "com.amazonaws.firehose#InvalidArgumentException":
441
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
442
+ case "LimitExceededException":
443
+ case "com.amazonaws.firehose#LimitExceededException":
444
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
445
+ case "ResourceInUseException":
446
+ case "com.amazonaws.firehose#ResourceInUseException":
447
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
448
+ case "ResourceNotFoundException":
449
+ case "com.amazonaws.firehose#ResourceNotFoundException":
450
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
451
+ default:
452
+ const parsedBody = parsedOutput.body;
453
+ throwDefaultError({
454
+ output,
455
+ parsedBody,
456
+ exceptionCtor: __BaseException,
457
+ errorCode,
458
+ });
459
+ }
460
+ };
461
+ export const deserializeAws_json1_1TagDeliveryStreamCommand = async (output, context) => {
462
+ if (output.statusCode >= 300) {
463
+ return deserializeAws_json1_1TagDeliveryStreamCommandError(output, context);
464
+ }
465
+ const data = await parseBody(output.body, context);
466
+ let contents = {};
467
+ contents = deserializeAws_json1_1TagDeliveryStreamOutput(data, context);
468
+ const response = {
469
+ $metadata: deserializeMetadata(output),
470
+ ...contents,
471
+ };
472
+ return Promise.resolve(response);
473
+ };
474
+ const deserializeAws_json1_1TagDeliveryStreamCommandError = async (output, context) => {
475
+ const parsedOutput = {
476
+ ...output,
477
+ body: await parseErrorBody(output.body, context),
478
+ };
479
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
480
+ switch (errorCode) {
481
+ case "InvalidArgumentException":
482
+ case "com.amazonaws.firehose#InvalidArgumentException":
483
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
484
+ case "LimitExceededException":
485
+ case "com.amazonaws.firehose#LimitExceededException":
486
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
487
+ case "ResourceInUseException":
488
+ case "com.amazonaws.firehose#ResourceInUseException":
489
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
490
+ case "ResourceNotFoundException":
491
+ case "com.amazonaws.firehose#ResourceNotFoundException":
492
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
493
+ default:
494
+ const parsedBody = parsedOutput.body;
495
+ throwDefaultError({
496
+ output,
497
+ parsedBody,
498
+ exceptionCtor: __BaseException,
499
+ errorCode,
500
+ });
501
+ }
502
+ };
503
+ export const deserializeAws_json1_1UntagDeliveryStreamCommand = async (output, context) => {
504
+ if (output.statusCode >= 300) {
505
+ return deserializeAws_json1_1UntagDeliveryStreamCommandError(output, context);
506
+ }
507
+ const data = await parseBody(output.body, context);
508
+ let contents = {};
509
+ contents = deserializeAws_json1_1UntagDeliveryStreamOutput(data, context);
510
+ const response = {
511
+ $metadata: deserializeMetadata(output),
512
+ ...contents,
513
+ };
514
+ return Promise.resolve(response);
515
+ };
516
+ const deserializeAws_json1_1UntagDeliveryStreamCommandError = async (output, context) => {
517
+ const parsedOutput = {
518
+ ...output,
519
+ body: await parseErrorBody(output.body, context),
520
+ };
521
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
522
+ switch (errorCode) {
523
+ case "InvalidArgumentException":
524
+ case "com.amazonaws.firehose#InvalidArgumentException":
525
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
526
+ case "LimitExceededException":
527
+ case "com.amazonaws.firehose#LimitExceededException":
528
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
529
+ case "ResourceInUseException":
530
+ case "com.amazonaws.firehose#ResourceInUseException":
531
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
532
+ case "ResourceNotFoundException":
533
+ case "com.amazonaws.firehose#ResourceNotFoundException":
534
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
535
+ default:
536
+ const parsedBody = parsedOutput.body;
537
+ throwDefaultError({
538
+ output,
539
+ parsedBody,
540
+ exceptionCtor: __BaseException,
541
+ errorCode,
542
+ });
543
+ }
544
+ };
545
+ export const deserializeAws_json1_1UpdateDestinationCommand = async (output, context) => {
546
+ if (output.statusCode >= 300) {
547
+ return deserializeAws_json1_1UpdateDestinationCommandError(output, context);
548
+ }
549
+ const data = await parseBody(output.body, context);
550
+ let contents = {};
551
+ contents = deserializeAws_json1_1UpdateDestinationOutput(data, context);
552
+ const response = {
553
+ $metadata: deserializeMetadata(output),
554
+ ...contents,
555
+ };
556
+ return Promise.resolve(response);
557
+ };
558
+ const deserializeAws_json1_1UpdateDestinationCommandError = async (output, context) => {
559
+ const parsedOutput = {
560
+ ...output,
561
+ body: await parseErrorBody(output.body, context),
562
+ };
563
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
564
+ switch (errorCode) {
565
+ case "ConcurrentModificationException":
566
+ case "com.amazonaws.firehose#ConcurrentModificationException":
567
+ throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
568
+ case "InvalidArgumentException":
569
+ case "com.amazonaws.firehose#InvalidArgumentException":
570
+ throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
571
+ case "ResourceInUseException":
572
+ case "com.amazonaws.firehose#ResourceInUseException":
573
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
574
+ case "ResourceNotFoundException":
575
+ case "com.amazonaws.firehose#ResourceNotFoundException":
576
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
577
+ default:
578
+ const parsedBody = parsedOutput.body;
579
+ throwDefaultError({
580
+ output,
581
+ parsedBody,
582
+ exceptionCtor: __BaseException,
583
+ errorCode,
584
+ });
585
+ }
586
+ };
587
+ const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
588
+ const body = parsedOutput.body;
589
+ const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
590
+ const exception = new ConcurrentModificationException({
591
+ $metadata: deserializeMetadata(parsedOutput),
592
+ ...deserialized,
593
+ });
594
+ return __decorateServiceException(exception, body);
595
+ };
596
+ const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
597
+ const body = parsedOutput.body;
598
+ const deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
599
+ const exception = new InvalidArgumentException({
600
+ $metadata: deserializeMetadata(parsedOutput),
601
+ ...deserialized,
602
+ });
603
+ return __decorateServiceException(exception, body);
604
+ };
605
+ const deserializeAws_json1_1InvalidKMSResourceExceptionResponse = async (parsedOutput, context) => {
606
+ const body = parsedOutput.body;
607
+ const deserialized = deserializeAws_json1_1InvalidKMSResourceException(body, context);
608
+ const exception = new InvalidKMSResourceException({
609
+ $metadata: deserializeMetadata(parsedOutput),
610
+ ...deserialized,
611
+ });
612
+ return __decorateServiceException(exception, body);
613
+ };
614
+ const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
615
+ const body = parsedOutput.body;
616
+ const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
617
+ const exception = new LimitExceededException({
618
+ $metadata: deserializeMetadata(parsedOutput),
619
+ ...deserialized,
620
+ });
621
+ return __decorateServiceException(exception, body);
622
+ };
623
+ const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
624
+ const body = parsedOutput.body;
625
+ const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
626
+ const exception = new ResourceInUseException({
627
+ $metadata: deserializeMetadata(parsedOutput),
628
+ ...deserialized,
629
+ });
630
+ return __decorateServiceException(exception, body);
631
+ };
632
+ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
633
+ const body = parsedOutput.body;
634
+ const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
635
+ const exception = new ResourceNotFoundException({
636
+ $metadata: deserializeMetadata(parsedOutput),
637
+ ...deserialized,
638
+ });
639
+ return __decorateServiceException(exception, body);
640
+ };
641
+ const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
642
+ const body = parsedOutput.body;
643
+ const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
644
+ const exception = new ServiceUnavailableException({
645
+ $metadata: deserializeMetadata(parsedOutput),
646
+ ...deserialized,
647
+ });
648
+ return __decorateServiceException(exception, body);
649
+ };
650
+ const serializeAws_json1_1AmazonopensearchserviceBufferingHints = (input, context) => {
651
+ return {
652
+ ...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
653
+ ...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
654
+ };
655
+ };
656
+ const serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration = (input, context) => {
657
+ return {
658
+ ...(input.BufferingHints != null && {
659
+ BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
660
+ }),
661
+ ...(input.CloudWatchLoggingOptions != null && {
662
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
663
+ }),
664
+ ...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
665
+ ...(input.DomainARN != null && { DomainARN: input.DomainARN }),
666
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
667
+ ...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
668
+ ...(input.ProcessingConfiguration != null && {
669
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
670
+ }),
671
+ ...(input.RetryOptions != null && {
672
+ RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
673
+ }),
674
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
675
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
676
+ ...(input.S3Configuration != null && {
677
+ S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
678
+ }),
679
+ ...(input.TypeName != null && { TypeName: input.TypeName }),
680
+ ...(input.VpcConfiguration != null && {
681
+ VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
682
+ }),
683
+ };
684
+ };
685
+ const serializeAws_json1_1AmazonopensearchserviceDestinationUpdate = (input, context) => {
686
+ return {
687
+ ...(input.BufferingHints != null && {
688
+ BufferingHints: serializeAws_json1_1AmazonopensearchserviceBufferingHints(input.BufferingHints, context),
689
+ }),
690
+ ...(input.CloudWatchLoggingOptions != null && {
691
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
692
+ }),
693
+ ...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
694
+ ...(input.DomainARN != null && { DomainARN: input.DomainARN }),
695
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
696
+ ...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
697
+ ...(input.ProcessingConfiguration != null && {
698
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
699
+ }),
700
+ ...(input.RetryOptions != null && {
701
+ RetryOptions: serializeAws_json1_1AmazonopensearchserviceRetryOptions(input.RetryOptions, context),
702
+ }),
703
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
704
+ ...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
705
+ ...(input.TypeName != null && { TypeName: input.TypeName }),
706
+ };
707
+ };
708
+ const serializeAws_json1_1AmazonopensearchserviceRetryOptions = (input, context) => {
709
+ return {
710
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
711
+ };
712
+ };
713
+ const serializeAws_json1_1BufferingHints = (input, context) => {
714
+ return {
715
+ ...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
716
+ ...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
717
+ };
718
+ };
719
+ const serializeAws_json1_1CloudWatchLoggingOptions = (input, context) => {
720
+ return {
721
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
722
+ ...(input.LogGroupName != null && { LogGroupName: input.LogGroupName }),
723
+ ...(input.LogStreamName != null && { LogStreamName: input.LogStreamName }),
724
+ };
725
+ };
726
+ const serializeAws_json1_1ColumnToJsonKeyMappings = (input, context) => {
727
+ return Object.entries(input).reduce((acc, [key, value]) => {
957
728
  if (value === null) {
958
729
  return acc;
959
730
  }
960
- return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
731
+ return {
732
+ ...acc,
733
+ [key]: value,
734
+ };
961
735
  }, {});
962
736
  };
963
- var serializeAws_json1_1CopyCommand = function (input, context) {
964
- return __assign(__assign(__assign({}, (input.CopyOptions != null && { CopyOptions: input.CopyOptions })), (input.DataTableColumns != null && { DataTableColumns: input.DataTableColumns })), (input.DataTableName != null && { DataTableName: input.DataTableName }));
965
- };
966
- var serializeAws_json1_1CreateDeliveryStreamInput = function (input, context) {
967
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AmazonopensearchserviceDestinationConfiguration != null && {
968
- AmazonopensearchserviceDestinationConfiguration: serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration(input.AmazonopensearchserviceDestinationConfiguration, context),
969
- })), (input.DeliveryStreamEncryptionConfigurationInput != null && {
970
- DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
971
- })), (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.DeliveryStreamType != null && { DeliveryStreamType: input.DeliveryStreamType })), (input.ElasticsearchDestinationConfiguration != null && {
972
- ElasticsearchDestinationConfiguration: serializeAws_json1_1ElasticsearchDestinationConfiguration(input.ElasticsearchDestinationConfiguration, context),
973
- })), (input.ExtendedS3DestinationConfiguration != null && {
974
- ExtendedS3DestinationConfiguration: serializeAws_json1_1ExtendedS3DestinationConfiguration(input.ExtendedS3DestinationConfiguration, context),
975
- })), (input.HttpEndpointDestinationConfiguration != null && {
976
- HttpEndpointDestinationConfiguration: serializeAws_json1_1HttpEndpointDestinationConfiguration(input.HttpEndpointDestinationConfiguration, context),
977
- })), (input.KinesisStreamSourceConfiguration != null && {
978
- KinesisStreamSourceConfiguration: serializeAws_json1_1KinesisStreamSourceConfiguration(input.KinesisStreamSourceConfiguration, context),
979
- })), (input.RedshiftDestinationConfiguration != null && {
980
- RedshiftDestinationConfiguration: serializeAws_json1_1RedshiftDestinationConfiguration(input.RedshiftDestinationConfiguration, context),
981
- })), (input.S3DestinationConfiguration != null && {
982
- S3DestinationConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3DestinationConfiguration, context),
983
- })), (input.SplunkDestinationConfiguration != null && {
984
- SplunkDestinationConfiguration: serializeAws_json1_1SplunkDestinationConfiguration(input.SplunkDestinationConfiguration, context),
985
- })), (input.Tags != null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }));
986
- };
987
- var serializeAws_json1_1DataFormatConversionConfiguration = function (input, context) {
988
- return __assign(__assign(__assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.InputFormatConfiguration != null && {
989
- InputFormatConfiguration: serializeAws_json1_1InputFormatConfiguration(input.InputFormatConfiguration, context),
990
- })), (input.OutputFormatConfiguration != null && {
991
- OutputFormatConfiguration: serializeAws_json1_1OutputFormatConfiguration(input.OutputFormatConfiguration, context),
992
- })), (input.SchemaConfiguration != null && {
993
- SchemaConfiguration: serializeAws_json1_1SchemaConfiguration(input.SchemaConfiguration, context),
994
- }));
995
- };
996
- var serializeAws_json1_1DeleteDeliveryStreamInput = function (input, context) {
997
- return __assign(__assign({}, (input.AllowForceDelete != null && { AllowForceDelete: input.AllowForceDelete })), (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }));
998
- };
999
- var serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput = function (input, context) {
1000
- return __assign(__assign({}, (input.KeyARN != null && { KeyARN: input.KeyARN })), (input.KeyType != null && { KeyType: input.KeyType }));
1001
- };
1002
- var serializeAws_json1_1DescribeDeliveryStreamInput = function (input, context) {
1003
- return __assign(__assign(__assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartDestinationId != null && {
1004
- ExclusiveStartDestinationId: input.ExclusiveStartDestinationId,
1005
- })), (input.Limit != null && { Limit: input.Limit }));
1006
- };
1007
- var serializeAws_json1_1Deserializer = function (input, context) {
1008
- return __assign(__assign({}, (input.HiveJsonSerDe != null && {
1009
- HiveJsonSerDe: serializeAws_json1_1HiveJsonSerDe(input.HiveJsonSerDe, context),
1010
- })), (input.OpenXJsonSerDe != null && {
1011
- OpenXJsonSerDe: serializeAws_json1_1OpenXJsonSerDe(input.OpenXJsonSerDe, context),
1012
- }));
1013
- };
1014
- var serializeAws_json1_1DynamicPartitioningConfiguration = function (input, context) {
1015
- return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.RetryOptions != null && { RetryOptions: serializeAws_json1_1RetryOptions(input.RetryOptions, context) }));
1016
- };
1017
- var serializeAws_json1_1ElasticsearchBufferingHints = function (input, context) {
1018
- return __assign(__assign({}, (input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }));
1019
- };
1020
- var serializeAws_json1_1ElasticsearchDestinationConfiguration = function (input, context) {
1021
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
1022
- BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
1023
- })), (input.CloudWatchLoggingOptions != null && {
1024
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1025
- })), (input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN != null && { DomainARN: input.DomainARN })), (input.IndexName != null && { IndexName: input.IndexName })), (input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration != null && {
1026
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1027
- })), (input.RetryOptions != null && {
1028
- RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
1029
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration != null && {
1030
- S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1031
- })), (input.TypeName != null && { TypeName: input.TypeName })), (input.VpcConfiguration != null && {
1032
- VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
1033
- }));
1034
- };
1035
- var serializeAws_json1_1ElasticsearchDestinationUpdate = function (input, context) {
1036
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
1037
- BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
1038
- })), (input.CloudWatchLoggingOptions != null && {
1039
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1040
- })), (input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint })), (input.DomainARN != null && { DomainARN: input.DomainARN })), (input.IndexName != null && { IndexName: input.IndexName })), (input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod })), (input.ProcessingConfiguration != null && {
1041
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1042
- })), (input.RetryOptions != null && {
1043
- RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
1044
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.TypeName != null && { TypeName: input.TypeName }));
1045
- };
1046
- var serializeAws_json1_1ElasticsearchRetryOptions = function (input, context) {
1047
- return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
1048
- };
1049
- var serializeAws_json1_1EncryptionConfiguration = function (input, context) {
1050
- return __assign(__assign({}, (input.KMSEncryptionConfig != null && {
1051
- KMSEncryptionConfig: serializeAws_json1_1KMSEncryptionConfig(input.KMSEncryptionConfig, context),
1052
- })), (input.NoEncryptionConfig != null && { NoEncryptionConfig: input.NoEncryptionConfig }));
1053
- };
1054
- var serializeAws_json1_1ExtendedS3DestinationConfiguration = function (input, context) {
1055
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BucketARN != null && { BucketARN: input.BucketARN })), (input.BufferingHints != null && {
1056
- BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
1057
- })), (input.CloudWatchLoggingOptions != null && {
1058
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1059
- })), (input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration != null && {
1060
- DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
1061
- })), (input.DynamicPartitioningConfiguration != null && {
1062
- DynamicPartitioningConfiguration: serializeAws_json1_1DynamicPartitioningConfiguration(input.DynamicPartitioningConfiguration, context),
1063
- })), (input.EncryptionConfiguration != null && {
1064
- EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
1065
- })), (input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix != null && { Prefix: input.Prefix })), (input.ProcessingConfiguration != null && {
1066
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1067
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration != null && {
1068
- S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
1069
- })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }));
1070
- };
1071
- var serializeAws_json1_1ExtendedS3DestinationUpdate = function (input, context) {
1072
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BucketARN != null && { BucketARN: input.BucketARN })), (input.BufferingHints != null && {
1073
- BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
1074
- })), (input.CloudWatchLoggingOptions != null && {
1075
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1076
- })), (input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat })), (input.DataFormatConversionConfiguration != null && {
1077
- DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
1078
- })), (input.DynamicPartitioningConfiguration != null && {
1079
- DynamicPartitioningConfiguration: serializeAws_json1_1DynamicPartitioningConfiguration(input.DynamicPartitioningConfiguration, context),
1080
- })), (input.EncryptionConfiguration != null && {
1081
- EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
1082
- })), (input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix != null && { Prefix: input.Prefix })), (input.ProcessingConfiguration != null && {
1083
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1084
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate != null && {
1085
- S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
1086
- }));
1087
- };
1088
- var serializeAws_json1_1HiveJsonSerDe = function (input, context) {
1089
- return __assign({}, (input.TimestampFormats != null && {
1090
- TimestampFormats: serializeAws_json1_1ListOfNonEmptyStrings(input.TimestampFormats, context),
1091
- }));
1092
- };
1093
- var serializeAws_json1_1HttpEndpointBufferingHints = function (input, context) {
1094
- return __assign(__assign({}, (input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds })), (input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }));
1095
- };
1096
- var serializeAws_json1_1HttpEndpointCommonAttribute = function (input, context) {
1097
- return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.AttributeValue != null && { AttributeValue: input.AttributeValue }));
1098
- };
1099
- var serializeAws_json1_1HttpEndpointCommonAttributesList = function (input, context) {
737
+ const serializeAws_json1_1CopyCommand = (input, context) => {
738
+ return {
739
+ ...(input.CopyOptions != null && { CopyOptions: input.CopyOptions }),
740
+ ...(input.DataTableColumns != null && { DataTableColumns: input.DataTableColumns }),
741
+ ...(input.DataTableName != null && { DataTableName: input.DataTableName }),
742
+ };
743
+ };
744
+ const serializeAws_json1_1CreateDeliveryStreamInput = (input, context) => {
745
+ return {
746
+ ...(input.AmazonopensearchserviceDestinationConfiguration != null && {
747
+ AmazonopensearchserviceDestinationConfiguration: serializeAws_json1_1AmazonopensearchserviceDestinationConfiguration(input.AmazonopensearchserviceDestinationConfiguration, context),
748
+ }),
749
+ ...(input.DeliveryStreamEncryptionConfigurationInput != null && {
750
+ DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
751
+ }),
752
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
753
+ ...(input.DeliveryStreamType != null && { DeliveryStreamType: input.DeliveryStreamType }),
754
+ ...(input.ElasticsearchDestinationConfiguration != null && {
755
+ ElasticsearchDestinationConfiguration: serializeAws_json1_1ElasticsearchDestinationConfiguration(input.ElasticsearchDestinationConfiguration, context),
756
+ }),
757
+ ...(input.ExtendedS3DestinationConfiguration != null && {
758
+ ExtendedS3DestinationConfiguration: serializeAws_json1_1ExtendedS3DestinationConfiguration(input.ExtendedS3DestinationConfiguration, context),
759
+ }),
760
+ ...(input.HttpEndpointDestinationConfiguration != null && {
761
+ HttpEndpointDestinationConfiguration: serializeAws_json1_1HttpEndpointDestinationConfiguration(input.HttpEndpointDestinationConfiguration, context),
762
+ }),
763
+ ...(input.KinesisStreamSourceConfiguration != null && {
764
+ KinesisStreamSourceConfiguration: serializeAws_json1_1KinesisStreamSourceConfiguration(input.KinesisStreamSourceConfiguration, context),
765
+ }),
766
+ ...(input.RedshiftDestinationConfiguration != null && {
767
+ RedshiftDestinationConfiguration: serializeAws_json1_1RedshiftDestinationConfiguration(input.RedshiftDestinationConfiguration, context),
768
+ }),
769
+ ...(input.S3DestinationConfiguration != null && {
770
+ S3DestinationConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3DestinationConfiguration, context),
771
+ }),
772
+ ...(input.SplunkDestinationConfiguration != null && {
773
+ SplunkDestinationConfiguration: serializeAws_json1_1SplunkDestinationConfiguration(input.SplunkDestinationConfiguration, context),
774
+ }),
775
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }),
776
+ };
777
+ };
778
+ const serializeAws_json1_1DataFormatConversionConfiguration = (input, context) => {
779
+ return {
780
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
781
+ ...(input.InputFormatConfiguration != null && {
782
+ InputFormatConfiguration: serializeAws_json1_1InputFormatConfiguration(input.InputFormatConfiguration, context),
783
+ }),
784
+ ...(input.OutputFormatConfiguration != null && {
785
+ OutputFormatConfiguration: serializeAws_json1_1OutputFormatConfiguration(input.OutputFormatConfiguration, context),
786
+ }),
787
+ ...(input.SchemaConfiguration != null && {
788
+ SchemaConfiguration: serializeAws_json1_1SchemaConfiguration(input.SchemaConfiguration, context),
789
+ }),
790
+ };
791
+ };
792
+ const serializeAws_json1_1DeleteDeliveryStreamInput = (input, context) => {
793
+ return {
794
+ ...(input.AllowForceDelete != null && { AllowForceDelete: input.AllowForceDelete }),
795
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
796
+ };
797
+ };
798
+ const serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput = (input, context) => {
799
+ return {
800
+ ...(input.KeyARN != null && { KeyARN: input.KeyARN }),
801
+ ...(input.KeyType != null && { KeyType: input.KeyType }),
802
+ };
803
+ };
804
+ const serializeAws_json1_1DescribeDeliveryStreamInput = (input, context) => {
805
+ return {
806
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
807
+ ...(input.ExclusiveStartDestinationId != null && {
808
+ ExclusiveStartDestinationId: input.ExclusiveStartDestinationId,
809
+ }),
810
+ ...(input.Limit != null && { Limit: input.Limit }),
811
+ };
812
+ };
813
+ const serializeAws_json1_1Deserializer = (input, context) => {
814
+ return {
815
+ ...(input.HiveJsonSerDe != null && {
816
+ HiveJsonSerDe: serializeAws_json1_1HiveJsonSerDe(input.HiveJsonSerDe, context),
817
+ }),
818
+ ...(input.OpenXJsonSerDe != null && {
819
+ OpenXJsonSerDe: serializeAws_json1_1OpenXJsonSerDe(input.OpenXJsonSerDe, context),
820
+ }),
821
+ };
822
+ };
823
+ const serializeAws_json1_1DynamicPartitioningConfiguration = (input, context) => {
824
+ return {
825
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
826
+ ...(input.RetryOptions != null && { RetryOptions: serializeAws_json1_1RetryOptions(input.RetryOptions, context) }),
827
+ };
828
+ };
829
+ const serializeAws_json1_1ElasticsearchBufferingHints = (input, context) => {
830
+ return {
831
+ ...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
832
+ ...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
833
+ };
834
+ };
835
+ const serializeAws_json1_1ElasticsearchDestinationConfiguration = (input, context) => {
836
+ return {
837
+ ...(input.BufferingHints != null && {
838
+ BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
839
+ }),
840
+ ...(input.CloudWatchLoggingOptions != null && {
841
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
842
+ }),
843
+ ...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
844
+ ...(input.DomainARN != null && { DomainARN: input.DomainARN }),
845
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
846
+ ...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
847
+ ...(input.ProcessingConfiguration != null && {
848
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
849
+ }),
850
+ ...(input.RetryOptions != null && {
851
+ RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
852
+ }),
853
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
854
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
855
+ ...(input.S3Configuration != null && {
856
+ S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
857
+ }),
858
+ ...(input.TypeName != null && { TypeName: input.TypeName }),
859
+ ...(input.VpcConfiguration != null && {
860
+ VpcConfiguration: serializeAws_json1_1VpcConfiguration(input.VpcConfiguration, context),
861
+ }),
862
+ };
863
+ };
864
+ const serializeAws_json1_1ElasticsearchDestinationUpdate = (input, context) => {
865
+ return {
866
+ ...(input.BufferingHints != null && {
867
+ BufferingHints: serializeAws_json1_1ElasticsearchBufferingHints(input.BufferingHints, context),
868
+ }),
869
+ ...(input.CloudWatchLoggingOptions != null && {
870
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
871
+ }),
872
+ ...(input.ClusterEndpoint != null && { ClusterEndpoint: input.ClusterEndpoint }),
873
+ ...(input.DomainARN != null && { DomainARN: input.DomainARN }),
874
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
875
+ ...(input.IndexRotationPeriod != null && { IndexRotationPeriod: input.IndexRotationPeriod }),
876
+ ...(input.ProcessingConfiguration != null && {
877
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
878
+ }),
879
+ ...(input.RetryOptions != null && {
880
+ RetryOptions: serializeAws_json1_1ElasticsearchRetryOptions(input.RetryOptions, context),
881
+ }),
882
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
883
+ ...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
884
+ ...(input.TypeName != null && { TypeName: input.TypeName }),
885
+ };
886
+ };
887
+ const serializeAws_json1_1ElasticsearchRetryOptions = (input, context) => {
888
+ return {
889
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
890
+ };
891
+ };
892
+ const serializeAws_json1_1EncryptionConfiguration = (input, context) => {
893
+ return {
894
+ ...(input.KMSEncryptionConfig != null && {
895
+ KMSEncryptionConfig: serializeAws_json1_1KMSEncryptionConfig(input.KMSEncryptionConfig, context),
896
+ }),
897
+ ...(input.NoEncryptionConfig != null && { NoEncryptionConfig: input.NoEncryptionConfig }),
898
+ };
899
+ };
900
+ const serializeAws_json1_1ExtendedS3DestinationConfiguration = (input, context) => {
901
+ return {
902
+ ...(input.BucketARN != null && { BucketARN: input.BucketARN }),
903
+ ...(input.BufferingHints != null && {
904
+ BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
905
+ }),
906
+ ...(input.CloudWatchLoggingOptions != null && {
907
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
908
+ }),
909
+ ...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
910
+ ...(input.DataFormatConversionConfiguration != null && {
911
+ DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
912
+ }),
913
+ ...(input.DynamicPartitioningConfiguration != null && {
914
+ DynamicPartitioningConfiguration: serializeAws_json1_1DynamicPartitioningConfiguration(input.DynamicPartitioningConfiguration, context),
915
+ }),
916
+ ...(input.EncryptionConfiguration != null && {
917
+ EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
918
+ }),
919
+ ...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
920
+ ...(input.Prefix != null && { Prefix: input.Prefix }),
921
+ ...(input.ProcessingConfiguration != null && {
922
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
923
+ }),
924
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
925
+ ...(input.S3BackupConfiguration != null && {
926
+ S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
927
+ }),
928
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
929
+ };
930
+ };
931
+ const serializeAws_json1_1ExtendedS3DestinationUpdate = (input, context) => {
932
+ return {
933
+ ...(input.BucketARN != null && { BucketARN: input.BucketARN }),
934
+ ...(input.BufferingHints != null && {
935
+ BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
936
+ }),
937
+ ...(input.CloudWatchLoggingOptions != null && {
938
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
939
+ }),
940
+ ...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
941
+ ...(input.DataFormatConversionConfiguration != null && {
942
+ DataFormatConversionConfiguration: serializeAws_json1_1DataFormatConversionConfiguration(input.DataFormatConversionConfiguration, context),
943
+ }),
944
+ ...(input.DynamicPartitioningConfiguration != null && {
945
+ DynamicPartitioningConfiguration: serializeAws_json1_1DynamicPartitioningConfiguration(input.DynamicPartitioningConfiguration, context),
946
+ }),
947
+ ...(input.EncryptionConfiguration != null && {
948
+ EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
949
+ }),
950
+ ...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
951
+ ...(input.Prefix != null && { Prefix: input.Prefix }),
952
+ ...(input.ProcessingConfiguration != null && {
953
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
954
+ }),
955
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
956
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
957
+ ...(input.S3BackupUpdate != null && {
958
+ S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
959
+ }),
960
+ };
961
+ };
962
+ const serializeAws_json1_1HiveJsonSerDe = (input, context) => {
963
+ return {
964
+ ...(input.TimestampFormats != null && {
965
+ TimestampFormats: serializeAws_json1_1ListOfNonEmptyStrings(input.TimestampFormats, context),
966
+ }),
967
+ };
968
+ };
969
+ const serializeAws_json1_1HttpEndpointBufferingHints = (input, context) => {
970
+ return {
971
+ ...(input.IntervalInSeconds != null && { IntervalInSeconds: input.IntervalInSeconds }),
972
+ ...(input.SizeInMBs != null && { SizeInMBs: input.SizeInMBs }),
973
+ };
974
+ };
975
+ const serializeAws_json1_1HttpEndpointCommonAttribute = (input, context) => {
976
+ return {
977
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
978
+ ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
979
+ };
980
+ };
981
+ const serializeAws_json1_1HttpEndpointCommonAttributesList = (input, context) => {
1100
982
  return input
1101
- .filter(function (e) { return e != null; })
1102
- .map(function (entry) {
983
+ .filter((e) => e != null)
984
+ .map((entry) => {
1103
985
  return serializeAws_json1_1HttpEndpointCommonAttribute(entry, context);
1104
986
  });
1105
987
  };
1106
- var serializeAws_json1_1HttpEndpointConfiguration = function (input, context) {
1107
- return __assign(__assign(__assign({}, (input.AccessKey != null && { AccessKey: input.AccessKey })), (input.Name != null && { Name: input.Name })), (input.Url != null && { Url: input.Url }));
1108
- };
1109
- var serializeAws_json1_1HttpEndpointDestinationConfiguration = function (input, context) {
1110
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
1111
- BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
1112
- })), (input.CloudWatchLoggingOptions != null && {
1113
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1114
- })), (input.EndpointConfiguration != null && {
1115
- EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
1116
- })), (input.ProcessingConfiguration != null && {
1117
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1118
- })), (input.RequestConfiguration != null && {
1119
- RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
1120
- })), (input.RetryOptions != null && {
1121
- RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
1122
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration != null && {
1123
- S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1124
- }));
1125
- };
1126
- var serializeAws_json1_1HttpEndpointDestinationUpdate = function (input, context) {
1127
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BufferingHints != null && {
1128
- BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
1129
- })), (input.CloudWatchLoggingOptions != null && {
1130
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1131
- })), (input.EndpointConfiguration != null && {
1132
- EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
1133
- })), (input.ProcessingConfiguration != null && {
1134
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1135
- })), (input.RequestConfiguration != null && {
1136
- RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
1137
- })), (input.RetryOptions != null && {
1138
- RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
1139
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }));
1140
- };
1141
- var serializeAws_json1_1HttpEndpointRequestConfiguration = function (input, context) {
1142
- return __assign(__assign({}, (input.CommonAttributes != null && {
1143
- CommonAttributes: serializeAws_json1_1HttpEndpointCommonAttributesList(input.CommonAttributes, context),
1144
- })), (input.ContentEncoding != null && { ContentEncoding: input.ContentEncoding }));
1145
- };
1146
- var serializeAws_json1_1HttpEndpointRetryOptions = function (input, context) {
1147
- return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
1148
- };
1149
- var serializeAws_json1_1InputFormatConfiguration = function (input, context) {
1150
- return __assign({}, (input.Deserializer != null && { Deserializer: serializeAws_json1_1Deserializer(input.Deserializer, context) }));
1151
- };
1152
- var serializeAws_json1_1KinesisStreamSourceConfiguration = function (input, context) {
1153
- return __assign(__assign({}, (input.KinesisStreamARN != null && { KinesisStreamARN: input.KinesisStreamARN })), (input.RoleARN != null && { RoleARN: input.RoleARN }));
1154
- };
1155
- var serializeAws_json1_1KMSEncryptionConfig = function (input, context) {
1156
- return __assign({}, (input.AWSKMSKeyARN != null && { AWSKMSKeyARN: input.AWSKMSKeyARN }));
1157
- };
1158
- var serializeAws_json1_1ListDeliveryStreamsInput = function (input, context) {
1159
- return __assign(__assign(__assign({}, (input.DeliveryStreamType != null && { DeliveryStreamType: input.DeliveryStreamType })), (input.ExclusiveStartDeliveryStreamName != null && {
1160
- ExclusiveStartDeliveryStreamName: input.ExclusiveStartDeliveryStreamName,
1161
- })), (input.Limit != null && { Limit: input.Limit }));
1162
- };
1163
- var serializeAws_json1_1ListOfNonEmptyStrings = function (input, context) {
988
+ const serializeAws_json1_1HttpEndpointConfiguration = (input, context) => {
989
+ return {
990
+ ...(input.AccessKey != null && { AccessKey: input.AccessKey }),
991
+ ...(input.Name != null && { Name: input.Name }),
992
+ ...(input.Url != null && { Url: input.Url }),
993
+ };
994
+ };
995
+ const serializeAws_json1_1HttpEndpointDestinationConfiguration = (input, context) => {
996
+ return {
997
+ ...(input.BufferingHints != null && {
998
+ BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
999
+ }),
1000
+ ...(input.CloudWatchLoggingOptions != null && {
1001
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1002
+ }),
1003
+ ...(input.EndpointConfiguration != null && {
1004
+ EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
1005
+ }),
1006
+ ...(input.ProcessingConfiguration != null && {
1007
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1008
+ }),
1009
+ ...(input.RequestConfiguration != null && {
1010
+ RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
1011
+ }),
1012
+ ...(input.RetryOptions != null && {
1013
+ RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
1014
+ }),
1015
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1016
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
1017
+ ...(input.S3Configuration != null && {
1018
+ S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1019
+ }),
1020
+ };
1021
+ };
1022
+ const serializeAws_json1_1HttpEndpointDestinationUpdate = (input, context) => {
1023
+ return {
1024
+ ...(input.BufferingHints != null && {
1025
+ BufferingHints: serializeAws_json1_1HttpEndpointBufferingHints(input.BufferingHints, context),
1026
+ }),
1027
+ ...(input.CloudWatchLoggingOptions != null && {
1028
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1029
+ }),
1030
+ ...(input.EndpointConfiguration != null && {
1031
+ EndpointConfiguration: serializeAws_json1_1HttpEndpointConfiguration(input.EndpointConfiguration, context),
1032
+ }),
1033
+ ...(input.ProcessingConfiguration != null && {
1034
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1035
+ }),
1036
+ ...(input.RequestConfiguration != null && {
1037
+ RequestConfiguration: serializeAws_json1_1HttpEndpointRequestConfiguration(input.RequestConfiguration, context),
1038
+ }),
1039
+ ...(input.RetryOptions != null && {
1040
+ RetryOptions: serializeAws_json1_1HttpEndpointRetryOptions(input.RetryOptions, context),
1041
+ }),
1042
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1043
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
1044
+ ...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
1045
+ };
1046
+ };
1047
+ const serializeAws_json1_1HttpEndpointRequestConfiguration = (input, context) => {
1048
+ return {
1049
+ ...(input.CommonAttributes != null && {
1050
+ CommonAttributes: serializeAws_json1_1HttpEndpointCommonAttributesList(input.CommonAttributes, context),
1051
+ }),
1052
+ ...(input.ContentEncoding != null && { ContentEncoding: input.ContentEncoding }),
1053
+ };
1054
+ };
1055
+ const serializeAws_json1_1HttpEndpointRetryOptions = (input, context) => {
1056
+ return {
1057
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
1058
+ };
1059
+ };
1060
+ const serializeAws_json1_1InputFormatConfiguration = (input, context) => {
1061
+ return {
1062
+ ...(input.Deserializer != null && { Deserializer: serializeAws_json1_1Deserializer(input.Deserializer, context) }),
1063
+ };
1064
+ };
1065
+ const serializeAws_json1_1KinesisStreamSourceConfiguration = (input, context) => {
1066
+ return {
1067
+ ...(input.KinesisStreamARN != null && { KinesisStreamARN: input.KinesisStreamARN }),
1068
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1069
+ };
1070
+ };
1071
+ const serializeAws_json1_1KMSEncryptionConfig = (input, context) => {
1072
+ return {
1073
+ ...(input.AWSKMSKeyARN != null && { AWSKMSKeyARN: input.AWSKMSKeyARN }),
1074
+ };
1075
+ };
1076
+ const serializeAws_json1_1ListDeliveryStreamsInput = (input, context) => {
1077
+ return {
1078
+ ...(input.DeliveryStreamType != null && { DeliveryStreamType: input.DeliveryStreamType }),
1079
+ ...(input.ExclusiveStartDeliveryStreamName != null && {
1080
+ ExclusiveStartDeliveryStreamName: input.ExclusiveStartDeliveryStreamName,
1081
+ }),
1082
+ ...(input.Limit != null && { Limit: input.Limit }),
1083
+ };
1084
+ };
1085
+ const serializeAws_json1_1ListOfNonEmptyStrings = (input, context) => {
1164
1086
  return input
1165
- .filter(function (e) { return e != null; })
1166
- .map(function (entry) {
1087
+ .filter((e) => e != null)
1088
+ .map((entry) => {
1167
1089
  return entry;
1168
1090
  });
1169
1091
  };
1170
- var serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (input, context) {
1092
+ const serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = (input, context) => {
1171
1093
  return input
1172
- .filter(function (e) { return e != null; })
1173
- .map(function (entry) {
1094
+ .filter((e) => e != null)
1095
+ .map((entry) => {
1174
1096
  return entry;
1175
1097
  });
1176
1098
  };
1177
- var serializeAws_json1_1ListTagsForDeliveryStreamInput = function (input, context) {
1178
- return __assign(__assign(__assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey })), (input.Limit != null && { Limit: input.Limit }));
1179
- };
1180
- var serializeAws_json1_1OpenXJsonSerDe = function (input, context) {
1181
- return __assign(__assign(__assign({}, (input.CaseInsensitive != null && { CaseInsensitive: input.CaseInsensitive })), (input.ColumnToJsonKeyMappings != null && {
1182
- ColumnToJsonKeyMappings: serializeAws_json1_1ColumnToJsonKeyMappings(input.ColumnToJsonKeyMappings, context),
1183
- })), (input.ConvertDotsInJsonKeysToUnderscores != null && {
1184
- ConvertDotsInJsonKeysToUnderscores: input.ConvertDotsInJsonKeysToUnderscores,
1185
- }));
1186
- };
1187
- var serializeAws_json1_1OrcSerDe = function (input, context) {
1188
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BlockSizeBytes != null && { BlockSizeBytes: input.BlockSizeBytes })), (input.BloomFilterColumns != null && {
1189
- BloomFilterColumns: serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(input.BloomFilterColumns, context),
1190
- })), (input.BloomFilterFalsePositiveProbability != null && {
1191
- BloomFilterFalsePositiveProbability: __serializeFloat(input.BloomFilterFalsePositiveProbability),
1192
- })), (input.Compression != null && { Compression: input.Compression })), (input.DictionaryKeyThreshold != null && {
1193
- DictionaryKeyThreshold: __serializeFloat(input.DictionaryKeyThreshold),
1194
- })), (input.EnablePadding != null && { EnablePadding: input.EnablePadding })), (input.FormatVersion != null && { FormatVersion: input.FormatVersion })), (input.PaddingTolerance != null && { PaddingTolerance: __serializeFloat(input.PaddingTolerance) })), (input.RowIndexStride != null && { RowIndexStride: input.RowIndexStride })), (input.StripeSizeBytes != null && { StripeSizeBytes: input.StripeSizeBytes }));
1195
- };
1196
- var serializeAws_json1_1OutputFormatConfiguration = function (input, context) {
1197
- return __assign({}, (input.Serializer != null && { Serializer: serializeAws_json1_1Serializer(input.Serializer, context) }));
1198
- };
1199
- var serializeAws_json1_1ParquetSerDe = function (input, context) {
1200
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BlockSizeBytes != null && { BlockSizeBytes: input.BlockSizeBytes })), (input.Compression != null && { Compression: input.Compression })), (input.EnableDictionaryCompression != null && {
1201
- EnableDictionaryCompression: input.EnableDictionaryCompression,
1202
- })), (input.MaxPaddingBytes != null && { MaxPaddingBytes: input.MaxPaddingBytes })), (input.PageSizeBytes != null && { PageSizeBytes: input.PageSizeBytes })), (input.WriterVersion != null && { WriterVersion: input.WriterVersion }));
1203
- };
1204
- var serializeAws_json1_1ProcessingConfiguration = function (input, context) {
1205
- return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.Processors != null && { Processors: serializeAws_json1_1ProcessorList(input.Processors, context) }));
1206
- };
1207
- var serializeAws_json1_1Processor = function (input, context) {
1208
- return __assign(__assign({}, (input.Parameters != null && {
1209
- Parameters: serializeAws_json1_1ProcessorParameterList(input.Parameters, context),
1210
- })), (input.Type != null && { Type: input.Type }));
1211
- };
1212
- var serializeAws_json1_1ProcessorList = function (input, context) {
1099
+ const serializeAws_json1_1ListTagsForDeliveryStreamInput = (input, context) => {
1100
+ return {
1101
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1102
+ ...(input.ExclusiveStartTagKey != null && { ExclusiveStartTagKey: input.ExclusiveStartTagKey }),
1103
+ ...(input.Limit != null && { Limit: input.Limit }),
1104
+ };
1105
+ };
1106
+ const serializeAws_json1_1OpenXJsonSerDe = (input, context) => {
1107
+ return {
1108
+ ...(input.CaseInsensitive != null && { CaseInsensitive: input.CaseInsensitive }),
1109
+ ...(input.ColumnToJsonKeyMappings != null && {
1110
+ ColumnToJsonKeyMappings: serializeAws_json1_1ColumnToJsonKeyMappings(input.ColumnToJsonKeyMappings, context),
1111
+ }),
1112
+ ...(input.ConvertDotsInJsonKeysToUnderscores != null && {
1113
+ ConvertDotsInJsonKeysToUnderscores: input.ConvertDotsInJsonKeysToUnderscores,
1114
+ }),
1115
+ };
1116
+ };
1117
+ const serializeAws_json1_1OrcSerDe = (input, context) => {
1118
+ return {
1119
+ ...(input.BlockSizeBytes != null && { BlockSizeBytes: input.BlockSizeBytes }),
1120
+ ...(input.BloomFilterColumns != null && {
1121
+ BloomFilterColumns: serializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace(input.BloomFilterColumns, context),
1122
+ }),
1123
+ ...(input.BloomFilterFalsePositiveProbability != null && {
1124
+ BloomFilterFalsePositiveProbability: __serializeFloat(input.BloomFilterFalsePositiveProbability),
1125
+ }),
1126
+ ...(input.Compression != null && { Compression: input.Compression }),
1127
+ ...(input.DictionaryKeyThreshold != null && {
1128
+ DictionaryKeyThreshold: __serializeFloat(input.DictionaryKeyThreshold),
1129
+ }),
1130
+ ...(input.EnablePadding != null && { EnablePadding: input.EnablePadding }),
1131
+ ...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
1132
+ ...(input.PaddingTolerance != null && { PaddingTolerance: __serializeFloat(input.PaddingTolerance) }),
1133
+ ...(input.RowIndexStride != null && { RowIndexStride: input.RowIndexStride }),
1134
+ ...(input.StripeSizeBytes != null && { StripeSizeBytes: input.StripeSizeBytes }),
1135
+ };
1136
+ };
1137
+ const serializeAws_json1_1OutputFormatConfiguration = (input, context) => {
1138
+ return {
1139
+ ...(input.Serializer != null && { Serializer: serializeAws_json1_1Serializer(input.Serializer, context) }),
1140
+ };
1141
+ };
1142
+ const serializeAws_json1_1ParquetSerDe = (input, context) => {
1143
+ return {
1144
+ ...(input.BlockSizeBytes != null && { BlockSizeBytes: input.BlockSizeBytes }),
1145
+ ...(input.Compression != null && { Compression: input.Compression }),
1146
+ ...(input.EnableDictionaryCompression != null && {
1147
+ EnableDictionaryCompression: input.EnableDictionaryCompression,
1148
+ }),
1149
+ ...(input.MaxPaddingBytes != null && { MaxPaddingBytes: input.MaxPaddingBytes }),
1150
+ ...(input.PageSizeBytes != null && { PageSizeBytes: input.PageSizeBytes }),
1151
+ ...(input.WriterVersion != null && { WriterVersion: input.WriterVersion }),
1152
+ };
1153
+ };
1154
+ const serializeAws_json1_1ProcessingConfiguration = (input, context) => {
1155
+ return {
1156
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
1157
+ ...(input.Processors != null && { Processors: serializeAws_json1_1ProcessorList(input.Processors, context) }),
1158
+ };
1159
+ };
1160
+ const serializeAws_json1_1Processor = (input, context) => {
1161
+ return {
1162
+ ...(input.Parameters != null && {
1163
+ Parameters: serializeAws_json1_1ProcessorParameterList(input.Parameters, context),
1164
+ }),
1165
+ ...(input.Type != null && { Type: input.Type }),
1166
+ };
1167
+ };
1168
+ const serializeAws_json1_1ProcessorList = (input, context) => {
1213
1169
  return input
1214
- .filter(function (e) { return e != null; })
1215
- .map(function (entry) {
1170
+ .filter((e) => e != null)
1171
+ .map((entry) => {
1216
1172
  return serializeAws_json1_1Processor(entry, context);
1217
1173
  });
1218
1174
  };
1219
- var serializeAws_json1_1ProcessorParameter = function (input, context) {
1220
- return __assign(__assign({}, (input.ParameterName != null && { ParameterName: input.ParameterName })), (input.ParameterValue != null && { ParameterValue: input.ParameterValue }));
1175
+ const serializeAws_json1_1ProcessorParameter = (input, context) => {
1176
+ return {
1177
+ ...(input.ParameterName != null && { ParameterName: input.ParameterName }),
1178
+ ...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
1179
+ };
1221
1180
  };
1222
- var serializeAws_json1_1ProcessorParameterList = function (input, context) {
1181
+ const serializeAws_json1_1ProcessorParameterList = (input, context) => {
1223
1182
  return input
1224
- .filter(function (e) { return e != null; })
1225
- .map(function (entry) {
1183
+ .filter((e) => e != null)
1184
+ .map((entry) => {
1226
1185
  return serializeAws_json1_1ProcessorParameter(entry, context);
1227
1186
  });
1228
1187
  };
1229
- var serializeAws_json1_1PutRecordBatchInput = function (input, context) {
1230
- return __assign(__assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Records != null && {
1231
- Records: serializeAws_json1_1PutRecordBatchRequestEntryList(input.Records, context),
1232
- }));
1188
+ const serializeAws_json1_1PutRecordBatchInput = (input, context) => {
1189
+ return {
1190
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1191
+ ...(input.Records != null && {
1192
+ Records: serializeAws_json1_1PutRecordBatchRequestEntryList(input.Records, context),
1193
+ }),
1194
+ };
1233
1195
  };
1234
- var serializeAws_json1_1PutRecordBatchRequestEntryList = function (input, context) {
1196
+ const serializeAws_json1_1PutRecordBatchRequestEntryList = (input, context) => {
1235
1197
  return input
1236
- .filter(function (e) { return e != null; })
1237
- .map(function (entry) {
1198
+ .filter((e) => e != null)
1199
+ .map((entry) => {
1238
1200
  return serializeAws_json1_1_Record(entry, context);
1239
1201
  });
1240
1202
  };
1241
- var serializeAws_json1_1PutRecordInput = function (input, context) {
1242
- return __assign(__assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Record != null && { Record: serializeAws_json1_1_Record(input.Record, context) }));
1243
- };
1244
- var serializeAws_json1_1_Record = function (input, context) {
1245
- return __assign({}, (input.Data != null && { Data: context.base64Encoder(input.Data) }));
1246
- };
1247
- var serializeAws_json1_1RedshiftDestinationConfiguration = function (input, context) {
1248
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLoggingOptions != null && {
1249
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1250
- })), (input.ClusterJDBCURL != null && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand != null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) })), (input.Password != null && { Password: input.Password })), (input.ProcessingConfiguration != null && {
1251
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1252
- })), (input.RetryOptions != null && {
1253
- RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
1254
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupConfiguration != null && {
1255
- S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
1256
- })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration != null && {
1257
- S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1258
- })), (input.Username != null && { Username: input.Username }));
1259
- };
1260
- var serializeAws_json1_1RedshiftDestinationUpdate = function (input, context) {
1261
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLoggingOptions != null && {
1262
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1263
- })), (input.ClusterJDBCURL != null && { ClusterJDBCURL: input.ClusterJDBCURL })), (input.CopyCommand != null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) })), (input.Password != null && { Password: input.Password })), (input.ProcessingConfiguration != null && {
1264
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1265
- })), (input.RetryOptions != null && {
1266
- RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
1267
- })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3BackupUpdate != null && {
1268
- S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
1269
- })), (input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) })), (input.Username != null && { Username: input.Username }));
1270
- };
1271
- var serializeAws_json1_1RedshiftRetryOptions = function (input, context) {
1272
- return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
1273
- };
1274
- var serializeAws_json1_1RetryOptions = function (input, context) {
1275
- return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
1276
- };
1277
- var serializeAws_json1_1S3DestinationConfiguration = function (input, context) {
1278
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BucketARN != null && { BucketARN: input.BucketARN })), (input.BufferingHints != null && {
1279
- BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
1280
- })), (input.CloudWatchLoggingOptions != null && {
1281
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1282
- })), (input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration != null && {
1283
- EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
1284
- })), (input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix != null && { Prefix: input.Prefix })), (input.RoleARN != null && { RoleARN: input.RoleARN }));
1285
- };
1286
- var serializeAws_json1_1S3DestinationUpdate = function (input, context) {
1287
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BucketARN != null && { BucketARN: input.BucketARN })), (input.BufferingHints != null && {
1288
- BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
1289
- })), (input.CloudWatchLoggingOptions != null && {
1290
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1291
- })), (input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat })), (input.EncryptionConfiguration != null && {
1292
- EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
1293
- })), (input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix })), (input.Prefix != null && { Prefix: input.Prefix })), (input.RoleARN != null && { RoleARN: input.RoleARN }));
1294
- };
1295
- var serializeAws_json1_1SchemaConfiguration = function (input, context) {
1296
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CatalogId != null && { CatalogId: input.CatalogId })), (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.Region != null && { Region: input.Region })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.TableName != null && { TableName: input.TableName })), (input.VersionId != null && { VersionId: input.VersionId }));
1297
- };
1298
- var serializeAws_json1_1SecurityGroupIdList = function (input, context) {
1203
+ const serializeAws_json1_1PutRecordInput = (input, context) => {
1204
+ return {
1205
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1206
+ ...(input.Record != null && { Record: serializeAws_json1_1_Record(input.Record, context) }),
1207
+ };
1208
+ };
1209
+ const serializeAws_json1_1_Record = (input, context) => {
1210
+ return {
1211
+ ...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
1212
+ };
1213
+ };
1214
+ const serializeAws_json1_1RedshiftDestinationConfiguration = (input, context) => {
1215
+ return {
1216
+ ...(input.CloudWatchLoggingOptions != null && {
1217
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1218
+ }),
1219
+ ...(input.ClusterJDBCURL != null && { ClusterJDBCURL: input.ClusterJDBCURL }),
1220
+ ...(input.CopyCommand != null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) }),
1221
+ ...(input.Password != null && { Password: input.Password }),
1222
+ ...(input.ProcessingConfiguration != null && {
1223
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1224
+ }),
1225
+ ...(input.RetryOptions != null && {
1226
+ RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
1227
+ }),
1228
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1229
+ ...(input.S3BackupConfiguration != null && {
1230
+ S3BackupConfiguration: serializeAws_json1_1S3DestinationConfiguration(input.S3BackupConfiguration, context),
1231
+ }),
1232
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
1233
+ ...(input.S3Configuration != null && {
1234
+ S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1235
+ }),
1236
+ ...(input.Username != null && { Username: input.Username }),
1237
+ };
1238
+ };
1239
+ const serializeAws_json1_1RedshiftDestinationUpdate = (input, context) => {
1240
+ return {
1241
+ ...(input.CloudWatchLoggingOptions != null && {
1242
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1243
+ }),
1244
+ ...(input.ClusterJDBCURL != null && { ClusterJDBCURL: input.ClusterJDBCURL }),
1245
+ ...(input.CopyCommand != null && { CopyCommand: serializeAws_json1_1CopyCommand(input.CopyCommand, context) }),
1246
+ ...(input.Password != null && { Password: input.Password }),
1247
+ ...(input.ProcessingConfiguration != null && {
1248
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1249
+ }),
1250
+ ...(input.RetryOptions != null && {
1251
+ RetryOptions: serializeAws_json1_1RedshiftRetryOptions(input.RetryOptions, context),
1252
+ }),
1253
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1254
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
1255
+ ...(input.S3BackupUpdate != null && {
1256
+ S3BackupUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3BackupUpdate, context),
1257
+ }),
1258
+ ...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
1259
+ ...(input.Username != null && { Username: input.Username }),
1260
+ };
1261
+ };
1262
+ const serializeAws_json1_1RedshiftRetryOptions = (input, context) => {
1263
+ return {
1264
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
1265
+ };
1266
+ };
1267
+ const serializeAws_json1_1RetryOptions = (input, context) => {
1268
+ return {
1269
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
1270
+ };
1271
+ };
1272
+ const serializeAws_json1_1S3DestinationConfiguration = (input, context) => {
1273
+ return {
1274
+ ...(input.BucketARN != null && { BucketARN: input.BucketARN }),
1275
+ ...(input.BufferingHints != null && {
1276
+ BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
1277
+ }),
1278
+ ...(input.CloudWatchLoggingOptions != null && {
1279
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1280
+ }),
1281
+ ...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
1282
+ ...(input.EncryptionConfiguration != null && {
1283
+ EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
1284
+ }),
1285
+ ...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
1286
+ ...(input.Prefix != null && { Prefix: input.Prefix }),
1287
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1288
+ };
1289
+ };
1290
+ const serializeAws_json1_1S3DestinationUpdate = (input, context) => {
1291
+ return {
1292
+ ...(input.BucketARN != null && { BucketARN: input.BucketARN }),
1293
+ ...(input.BufferingHints != null && {
1294
+ BufferingHints: serializeAws_json1_1BufferingHints(input.BufferingHints, context),
1295
+ }),
1296
+ ...(input.CloudWatchLoggingOptions != null && {
1297
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1298
+ }),
1299
+ ...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
1300
+ ...(input.EncryptionConfiguration != null && {
1301
+ EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
1302
+ }),
1303
+ ...(input.ErrorOutputPrefix != null && { ErrorOutputPrefix: input.ErrorOutputPrefix }),
1304
+ ...(input.Prefix != null && { Prefix: input.Prefix }),
1305
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1306
+ };
1307
+ };
1308
+ const serializeAws_json1_1SchemaConfiguration = (input, context) => {
1309
+ return {
1310
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
1311
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
1312
+ ...(input.Region != null && { Region: input.Region }),
1313
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1314
+ ...(input.TableName != null && { TableName: input.TableName }),
1315
+ ...(input.VersionId != null && { VersionId: input.VersionId }),
1316
+ };
1317
+ };
1318
+ const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
1299
1319
  return input
1300
- .filter(function (e) { return e != null; })
1301
- .map(function (entry) {
1320
+ .filter((e) => e != null)
1321
+ .map((entry) => {
1302
1322
  return entry;
1303
1323
  });
1304
1324
  };
1305
- var serializeAws_json1_1Serializer = function (input, context) {
1306
- return __assign(__assign({}, (input.OrcSerDe != null && { OrcSerDe: serializeAws_json1_1OrcSerDe(input.OrcSerDe, context) })), (input.ParquetSerDe != null && { ParquetSerDe: serializeAws_json1_1ParquetSerDe(input.ParquetSerDe, context) }));
1307
- };
1308
- var serializeAws_json1_1SplunkDestinationConfiguration = function (input, context) {
1309
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLoggingOptions != null && {
1310
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1311
- })), (input.HECAcknowledgmentTimeoutInSeconds != null && {
1312
- HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
1313
- })), (input.HECEndpoint != null && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType != null && { HECEndpointType: input.HECEndpointType })), (input.HECToken != null && { HECToken: input.HECToken })), (input.ProcessingConfiguration != null && {
1314
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1315
- })), (input.RetryOptions != null && {
1316
- RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
1317
- })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Configuration != null && {
1318
- S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1319
- }));
1320
- };
1321
- var serializeAws_json1_1SplunkDestinationUpdate = function (input, context) {
1322
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLoggingOptions != null && {
1323
- CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1324
- })), (input.HECAcknowledgmentTimeoutInSeconds != null && {
1325
- HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
1326
- })), (input.HECEndpoint != null && { HECEndpoint: input.HECEndpoint })), (input.HECEndpointType != null && { HECEndpointType: input.HECEndpointType })), (input.HECToken != null && { HECToken: input.HECToken })), (input.ProcessingConfiguration != null && {
1327
- ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1328
- })), (input.RetryOptions != null && {
1329
- RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
1330
- })), (input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode })), (input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }));
1331
- };
1332
- var serializeAws_json1_1SplunkRetryOptions = function (input, context) {
1333
- return __assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }));
1334
- };
1335
- var serializeAws_json1_1StartDeliveryStreamEncryptionInput = function (input, context) {
1336
- return __assign(__assign({}, (input.DeliveryStreamEncryptionConfigurationInput != null && {
1337
- DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
1338
- })), (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }));
1339
- };
1340
- var serializeAws_json1_1StopDeliveryStreamEncryptionInput = function (input, context) {
1341
- return __assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }));
1342
- };
1343
- var serializeAws_json1_1SubnetIdList = function (input, context) {
1325
+ const serializeAws_json1_1Serializer = (input, context) => {
1326
+ return {
1327
+ ...(input.OrcSerDe != null && { OrcSerDe: serializeAws_json1_1OrcSerDe(input.OrcSerDe, context) }),
1328
+ ...(input.ParquetSerDe != null && { ParquetSerDe: serializeAws_json1_1ParquetSerDe(input.ParquetSerDe, context) }),
1329
+ };
1330
+ };
1331
+ const serializeAws_json1_1SplunkDestinationConfiguration = (input, context) => {
1332
+ return {
1333
+ ...(input.CloudWatchLoggingOptions != null && {
1334
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1335
+ }),
1336
+ ...(input.HECAcknowledgmentTimeoutInSeconds != null && {
1337
+ HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
1338
+ }),
1339
+ ...(input.HECEndpoint != null && { HECEndpoint: input.HECEndpoint }),
1340
+ ...(input.HECEndpointType != null && { HECEndpointType: input.HECEndpointType }),
1341
+ ...(input.HECToken != null && { HECToken: input.HECToken }),
1342
+ ...(input.ProcessingConfiguration != null && {
1343
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1344
+ }),
1345
+ ...(input.RetryOptions != null && {
1346
+ RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
1347
+ }),
1348
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
1349
+ ...(input.S3Configuration != null && {
1350
+ S3Configuration: serializeAws_json1_1S3DestinationConfiguration(input.S3Configuration, context),
1351
+ }),
1352
+ };
1353
+ };
1354
+ const serializeAws_json1_1SplunkDestinationUpdate = (input, context) => {
1355
+ return {
1356
+ ...(input.CloudWatchLoggingOptions != null && {
1357
+ CloudWatchLoggingOptions: serializeAws_json1_1CloudWatchLoggingOptions(input.CloudWatchLoggingOptions, context),
1358
+ }),
1359
+ ...(input.HECAcknowledgmentTimeoutInSeconds != null && {
1360
+ HECAcknowledgmentTimeoutInSeconds: input.HECAcknowledgmentTimeoutInSeconds,
1361
+ }),
1362
+ ...(input.HECEndpoint != null && { HECEndpoint: input.HECEndpoint }),
1363
+ ...(input.HECEndpointType != null && { HECEndpointType: input.HECEndpointType }),
1364
+ ...(input.HECToken != null && { HECToken: input.HECToken }),
1365
+ ...(input.ProcessingConfiguration != null && {
1366
+ ProcessingConfiguration: serializeAws_json1_1ProcessingConfiguration(input.ProcessingConfiguration, context),
1367
+ }),
1368
+ ...(input.RetryOptions != null && {
1369
+ RetryOptions: serializeAws_json1_1SplunkRetryOptions(input.RetryOptions, context),
1370
+ }),
1371
+ ...(input.S3BackupMode != null && { S3BackupMode: input.S3BackupMode }),
1372
+ ...(input.S3Update != null && { S3Update: serializeAws_json1_1S3DestinationUpdate(input.S3Update, context) }),
1373
+ };
1374
+ };
1375
+ const serializeAws_json1_1SplunkRetryOptions = (input, context) => {
1376
+ return {
1377
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
1378
+ };
1379
+ };
1380
+ const serializeAws_json1_1StartDeliveryStreamEncryptionInput = (input, context) => {
1381
+ return {
1382
+ ...(input.DeliveryStreamEncryptionConfigurationInput != null && {
1383
+ DeliveryStreamEncryptionConfigurationInput: serializeAws_json1_1DeliveryStreamEncryptionConfigurationInput(input.DeliveryStreamEncryptionConfigurationInput, context),
1384
+ }),
1385
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1386
+ };
1387
+ };
1388
+ const serializeAws_json1_1StopDeliveryStreamEncryptionInput = (input, context) => {
1389
+ return {
1390
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1391
+ };
1392
+ };
1393
+ const serializeAws_json1_1SubnetIdList = (input, context) => {
1344
1394
  return input
1345
- .filter(function (e) { return e != null; })
1346
- .map(function (entry) {
1395
+ .filter((e) => e != null)
1396
+ .map((entry) => {
1347
1397
  return entry;
1348
1398
  });
1349
1399
  };
1350
- var serializeAws_json1_1Tag = function (input, context) {
1351
- return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1400
+ const serializeAws_json1_1Tag = (input, context) => {
1401
+ return {
1402
+ ...(input.Key != null && { Key: input.Key }),
1403
+ ...(input.Value != null && { Value: input.Value }),
1404
+ };
1352
1405
  };
1353
- var serializeAws_json1_1TagDeliveryStreamInput = function (input, context) {
1354
- return __assign(__assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.Tags != null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }));
1406
+ const serializeAws_json1_1TagDeliveryStreamInput = (input, context) => {
1407
+ return {
1408
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1409
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagDeliveryStreamInputTagList(input.Tags, context) }),
1410
+ };
1355
1411
  };
1356
- var serializeAws_json1_1TagDeliveryStreamInputTagList = function (input, context) {
1412
+ const serializeAws_json1_1TagDeliveryStreamInputTagList = (input, context) => {
1357
1413
  return input
1358
- .filter(function (e) { return e != null; })
1359
- .map(function (entry) {
1414
+ .filter((e) => e != null)
1415
+ .map((entry) => {
1360
1416
  return serializeAws_json1_1Tag(entry, context);
1361
1417
  });
1362
1418
  };
1363
- var serializeAws_json1_1TagKeyList = function (input, context) {
1419
+ const serializeAws_json1_1TagKeyList = (input, context) => {
1364
1420
  return input
1365
- .filter(function (e) { return e != null; })
1366
- .map(function (entry) {
1421
+ .filter((e) => e != null)
1422
+ .map((entry) => {
1367
1423
  return entry;
1368
1424
  });
1369
1425
  };
1370
- var serializeAws_json1_1UntagDeliveryStreamInput = function (input, context) {
1371
- return __assign(__assign({}, (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
1372
- };
1373
- var serializeAws_json1_1UpdateDestinationInput = function (input, context) {
1374
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AmazonopensearchserviceDestinationUpdate != null && {
1375
- AmazonopensearchserviceDestinationUpdate: serializeAws_json1_1AmazonopensearchserviceDestinationUpdate(input.AmazonopensearchserviceDestinationUpdate, context),
1376
- })), (input.CurrentDeliveryStreamVersionId != null && {
1377
- CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId,
1378
- })), (input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName })), (input.DestinationId != null && { DestinationId: input.DestinationId })), (input.ElasticsearchDestinationUpdate != null && {
1379
- ElasticsearchDestinationUpdate: serializeAws_json1_1ElasticsearchDestinationUpdate(input.ElasticsearchDestinationUpdate, context),
1380
- })), (input.ExtendedS3DestinationUpdate != null && {
1381
- ExtendedS3DestinationUpdate: serializeAws_json1_1ExtendedS3DestinationUpdate(input.ExtendedS3DestinationUpdate, context),
1382
- })), (input.HttpEndpointDestinationUpdate != null && {
1383
- HttpEndpointDestinationUpdate: serializeAws_json1_1HttpEndpointDestinationUpdate(input.HttpEndpointDestinationUpdate, context),
1384
- })), (input.RedshiftDestinationUpdate != null && {
1385
- RedshiftDestinationUpdate: serializeAws_json1_1RedshiftDestinationUpdate(input.RedshiftDestinationUpdate, context),
1386
- })), (input.S3DestinationUpdate != null && {
1387
- S3DestinationUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3DestinationUpdate, context),
1388
- })), (input.SplunkDestinationUpdate != null && {
1389
- SplunkDestinationUpdate: serializeAws_json1_1SplunkDestinationUpdate(input.SplunkDestinationUpdate, context),
1390
- }));
1391
- };
1392
- var serializeAws_json1_1VpcConfiguration = function (input, context) {
1393
- return __assign(__assign(__assign({}, (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.SecurityGroupIds != null && {
1394
- SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
1395
- })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }));
1396
- };
1397
- var deserializeAws_json1_1AmazonopensearchserviceBufferingHints = function (output, context) {
1426
+ const serializeAws_json1_1UntagDeliveryStreamInput = (input, context) => {
1427
+ return {
1428
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1429
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
1430
+ };
1431
+ };
1432
+ const serializeAws_json1_1UpdateDestinationInput = (input, context) => {
1433
+ return {
1434
+ ...(input.AmazonopensearchserviceDestinationUpdate != null && {
1435
+ AmazonopensearchserviceDestinationUpdate: serializeAws_json1_1AmazonopensearchserviceDestinationUpdate(input.AmazonopensearchserviceDestinationUpdate, context),
1436
+ }),
1437
+ ...(input.CurrentDeliveryStreamVersionId != null && {
1438
+ CurrentDeliveryStreamVersionId: input.CurrentDeliveryStreamVersionId,
1439
+ }),
1440
+ ...(input.DeliveryStreamName != null && { DeliveryStreamName: input.DeliveryStreamName }),
1441
+ ...(input.DestinationId != null && { DestinationId: input.DestinationId }),
1442
+ ...(input.ElasticsearchDestinationUpdate != null && {
1443
+ ElasticsearchDestinationUpdate: serializeAws_json1_1ElasticsearchDestinationUpdate(input.ElasticsearchDestinationUpdate, context),
1444
+ }),
1445
+ ...(input.ExtendedS3DestinationUpdate != null && {
1446
+ ExtendedS3DestinationUpdate: serializeAws_json1_1ExtendedS3DestinationUpdate(input.ExtendedS3DestinationUpdate, context),
1447
+ }),
1448
+ ...(input.HttpEndpointDestinationUpdate != null && {
1449
+ HttpEndpointDestinationUpdate: serializeAws_json1_1HttpEndpointDestinationUpdate(input.HttpEndpointDestinationUpdate, context),
1450
+ }),
1451
+ ...(input.RedshiftDestinationUpdate != null && {
1452
+ RedshiftDestinationUpdate: serializeAws_json1_1RedshiftDestinationUpdate(input.RedshiftDestinationUpdate, context),
1453
+ }),
1454
+ ...(input.S3DestinationUpdate != null && {
1455
+ S3DestinationUpdate: serializeAws_json1_1S3DestinationUpdate(input.S3DestinationUpdate, context),
1456
+ }),
1457
+ ...(input.SplunkDestinationUpdate != null && {
1458
+ SplunkDestinationUpdate: serializeAws_json1_1SplunkDestinationUpdate(input.SplunkDestinationUpdate, context),
1459
+ }),
1460
+ };
1461
+ };
1462
+ const serializeAws_json1_1VpcConfiguration = (input, context) => {
1463
+ return {
1464
+ ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1465
+ ...(input.SecurityGroupIds != null && {
1466
+ SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
1467
+ }),
1468
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
1469
+ };
1470
+ };
1471
+ const deserializeAws_json1_1AmazonopensearchserviceBufferingHints = (output, context) => {
1398
1472
  return {
1399
1473
  IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
1400
1474
  SizeInMBs: __expectInt32(output.SizeInMBs),
1401
1475
  };
1402
1476
  };
1403
- var deserializeAws_json1_1AmazonopensearchserviceDestinationDescription = function (output, context) {
1477
+ const deserializeAws_json1_1AmazonopensearchserviceDestinationDescription = (output, context) => {
1404
1478
  return {
1405
1479
  BufferingHints: output.BufferingHints != null
1406
1480
  ? deserializeAws_json1_1AmazonopensearchserviceBufferingHints(output.BufferingHints, context)
@@ -1429,52 +1503,53 @@ var deserializeAws_json1_1AmazonopensearchserviceDestinationDescription = functi
1429
1503
  : undefined,
1430
1504
  };
1431
1505
  };
1432
- var deserializeAws_json1_1AmazonopensearchserviceRetryOptions = function (output, context) {
1506
+ const deserializeAws_json1_1AmazonopensearchserviceRetryOptions = (output, context) => {
1433
1507
  return {
1434
1508
  DurationInSeconds: __expectInt32(output.DurationInSeconds),
1435
1509
  };
1436
1510
  };
1437
- var deserializeAws_json1_1BufferingHints = function (output, context) {
1511
+ const deserializeAws_json1_1BufferingHints = (output, context) => {
1438
1512
  return {
1439
1513
  IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
1440
1514
  SizeInMBs: __expectInt32(output.SizeInMBs),
1441
1515
  };
1442
1516
  };
1443
- var deserializeAws_json1_1CloudWatchLoggingOptions = function (output, context) {
1517
+ const deserializeAws_json1_1CloudWatchLoggingOptions = (output, context) => {
1444
1518
  return {
1445
1519
  Enabled: __expectBoolean(output.Enabled),
1446
1520
  LogGroupName: __expectString(output.LogGroupName),
1447
1521
  LogStreamName: __expectString(output.LogStreamName),
1448
1522
  };
1449
1523
  };
1450
- var deserializeAws_json1_1ColumnToJsonKeyMappings = function (output, context) {
1451
- return Object.entries(output).reduce(function (acc, _a) {
1452
- var _b;
1453
- var _c = __read(_a, 2), key = _c[0], value = _c[1];
1524
+ const deserializeAws_json1_1ColumnToJsonKeyMappings = (output, context) => {
1525
+ return Object.entries(output).reduce((acc, [key, value]) => {
1454
1526
  if (value === null) {
1455
1527
  return acc;
1456
1528
  }
1457
- return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
1529
+ return {
1530
+ ...acc,
1531
+ [key]: __expectString(value),
1532
+ };
1458
1533
  }, {});
1459
1534
  };
1460
- var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
1535
+ const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
1461
1536
  return {
1462
1537
  message: __expectString(output.message),
1463
1538
  };
1464
1539
  };
1465
- var deserializeAws_json1_1CopyCommand = function (output, context) {
1540
+ const deserializeAws_json1_1CopyCommand = (output, context) => {
1466
1541
  return {
1467
1542
  CopyOptions: __expectString(output.CopyOptions),
1468
1543
  DataTableColumns: __expectString(output.DataTableColumns),
1469
1544
  DataTableName: __expectString(output.DataTableName),
1470
1545
  };
1471
1546
  };
1472
- var deserializeAws_json1_1CreateDeliveryStreamOutput = function (output, context) {
1547
+ const deserializeAws_json1_1CreateDeliveryStreamOutput = (output, context) => {
1473
1548
  return {
1474
1549
  DeliveryStreamARN: __expectString(output.DeliveryStreamARN),
1475
1550
  };
1476
1551
  };
1477
- var deserializeAws_json1_1DataFormatConversionConfiguration = function (output, context) {
1552
+ const deserializeAws_json1_1DataFormatConversionConfiguration = (output, context) => {
1478
1553
  return {
1479
1554
  Enabled: __expectBoolean(output.Enabled),
1480
1555
  InputFormatConfiguration: output.InputFormatConfiguration != null
@@ -1488,10 +1563,10 @@ var deserializeAws_json1_1DataFormatConversionConfiguration = function (output,
1488
1563
  : undefined,
1489
1564
  };
1490
1565
  };
1491
- var deserializeAws_json1_1DeleteDeliveryStreamOutput = function (output, context) {
1566
+ const deserializeAws_json1_1DeleteDeliveryStreamOutput = (output, context) => {
1492
1567
  return {};
1493
1568
  };
1494
- var deserializeAws_json1_1DeliveryStreamDescription = function (output, context) {
1569
+ const deserializeAws_json1_1DeliveryStreamDescription = (output, context) => {
1495
1570
  return {
1496
1571
  CreateTimestamp: output.CreateTimestamp != null
1497
1572
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTimestamp)))
@@ -1517,7 +1592,7 @@ var deserializeAws_json1_1DeliveryStreamDescription = function (output, context)
1517
1592
  VersionId: __expectString(output.VersionId),
1518
1593
  };
1519
1594
  };
1520
- var deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = function (output, context) {
1595
+ const deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = (output, context) => {
1521
1596
  return {
1522
1597
  FailureDescription: output.FailureDescription != null
1523
1598
  ? deserializeAws_json1_1FailureDescription(output.FailureDescription, context)
@@ -1527,10 +1602,10 @@ var deserializeAws_json1_1DeliveryStreamEncryptionConfiguration = function (outp
1527
1602
  Status: __expectString(output.Status),
1528
1603
  };
1529
1604
  };
1530
- var deserializeAws_json1_1DeliveryStreamNameList = function (output, context) {
1531
- var retVal = (output || [])
1532
- .filter(function (e) { return e != null; })
1533
- .map(function (entry) {
1605
+ const deserializeAws_json1_1DeliveryStreamNameList = (output, context) => {
1606
+ const retVal = (output || [])
1607
+ .filter((e) => e != null)
1608
+ .map((entry) => {
1534
1609
  if (entry === null) {
1535
1610
  return null;
1536
1611
  }
@@ -1538,20 +1613,20 @@ var deserializeAws_json1_1DeliveryStreamNameList = function (output, context) {
1538
1613
  });
1539
1614
  return retVal;
1540
1615
  };
1541
- var deserializeAws_json1_1DescribeDeliveryStreamOutput = function (output, context) {
1616
+ const deserializeAws_json1_1DescribeDeliveryStreamOutput = (output, context) => {
1542
1617
  return {
1543
1618
  DeliveryStreamDescription: output.DeliveryStreamDescription != null
1544
1619
  ? deserializeAws_json1_1DeliveryStreamDescription(output.DeliveryStreamDescription, context)
1545
1620
  : undefined,
1546
1621
  };
1547
1622
  };
1548
- var deserializeAws_json1_1Deserializer = function (output, context) {
1623
+ const deserializeAws_json1_1Deserializer = (output, context) => {
1549
1624
  return {
1550
1625
  HiveJsonSerDe: output.HiveJsonSerDe != null ? deserializeAws_json1_1HiveJsonSerDe(output.HiveJsonSerDe, context) : undefined,
1551
1626
  OpenXJsonSerDe: output.OpenXJsonSerDe != null ? deserializeAws_json1_1OpenXJsonSerDe(output.OpenXJsonSerDe, context) : undefined,
1552
1627
  };
1553
1628
  };
1554
- var deserializeAws_json1_1DestinationDescription = function (output, context) {
1629
+ const deserializeAws_json1_1DestinationDescription = (output, context) => {
1555
1630
  return {
1556
1631
  AmazonopensearchserviceDestinationDescription: output.AmazonopensearchserviceDestinationDescription != null
1557
1632
  ? deserializeAws_json1_1AmazonopensearchserviceDestinationDescription(output.AmazonopensearchserviceDestinationDescription, context)
@@ -1577,10 +1652,10 @@ var deserializeAws_json1_1DestinationDescription = function (output, context) {
1577
1652
  : undefined,
1578
1653
  };
1579
1654
  };
1580
- var deserializeAws_json1_1DestinationDescriptionList = function (output, context) {
1581
- var retVal = (output || [])
1582
- .filter(function (e) { return e != null; })
1583
- .map(function (entry) {
1655
+ const deserializeAws_json1_1DestinationDescriptionList = (output, context) => {
1656
+ const retVal = (output || [])
1657
+ .filter((e) => e != null)
1658
+ .map((entry) => {
1584
1659
  if (entry === null) {
1585
1660
  return null;
1586
1661
  }
@@ -1588,19 +1663,19 @@ var deserializeAws_json1_1DestinationDescriptionList = function (output, context
1588
1663
  });
1589
1664
  return retVal;
1590
1665
  };
1591
- var deserializeAws_json1_1DynamicPartitioningConfiguration = function (output, context) {
1666
+ const deserializeAws_json1_1DynamicPartitioningConfiguration = (output, context) => {
1592
1667
  return {
1593
1668
  Enabled: __expectBoolean(output.Enabled),
1594
1669
  RetryOptions: output.RetryOptions != null ? deserializeAws_json1_1RetryOptions(output.RetryOptions, context) : undefined,
1595
1670
  };
1596
1671
  };
1597
- var deserializeAws_json1_1ElasticsearchBufferingHints = function (output, context) {
1672
+ const deserializeAws_json1_1ElasticsearchBufferingHints = (output, context) => {
1598
1673
  return {
1599
1674
  IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
1600
1675
  SizeInMBs: __expectInt32(output.SizeInMBs),
1601
1676
  };
1602
1677
  };
1603
- var deserializeAws_json1_1ElasticsearchDestinationDescription = function (output, context) {
1678
+ const deserializeAws_json1_1ElasticsearchDestinationDescription = (output, context) => {
1604
1679
  return {
1605
1680
  BufferingHints: output.BufferingHints != null
1606
1681
  ? deserializeAws_json1_1ElasticsearchBufferingHints(output.BufferingHints, context)
@@ -1629,12 +1704,12 @@ var deserializeAws_json1_1ElasticsearchDestinationDescription = function (output
1629
1704
  : undefined,
1630
1705
  };
1631
1706
  };
1632
- var deserializeAws_json1_1ElasticsearchRetryOptions = function (output, context) {
1707
+ const deserializeAws_json1_1ElasticsearchRetryOptions = (output, context) => {
1633
1708
  return {
1634
1709
  DurationInSeconds: __expectInt32(output.DurationInSeconds),
1635
1710
  };
1636
1711
  };
1637
- var deserializeAws_json1_1EncryptionConfiguration = function (output, context) {
1712
+ const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
1638
1713
  return {
1639
1714
  KMSEncryptionConfig: output.KMSEncryptionConfig != null
1640
1715
  ? deserializeAws_json1_1KMSEncryptionConfig(output.KMSEncryptionConfig, context)
@@ -1642,7 +1717,7 @@ var deserializeAws_json1_1EncryptionConfiguration = function (output, context) {
1642
1717
  NoEncryptionConfig: __expectString(output.NoEncryptionConfig),
1643
1718
  };
1644
1719
  };
1645
- var deserializeAws_json1_1ExtendedS3DestinationDescription = function (output, context) {
1720
+ const deserializeAws_json1_1ExtendedS3DestinationDescription = (output, context) => {
1646
1721
  return {
1647
1722
  BucketARN: __expectString(output.BucketARN),
1648
1723
  BufferingHints: output.BufferingHints != null ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context) : undefined,
@@ -1671,35 +1746,35 @@ var deserializeAws_json1_1ExtendedS3DestinationDescription = function (output, c
1671
1746
  S3BackupMode: __expectString(output.S3BackupMode),
1672
1747
  };
1673
1748
  };
1674
- var deserializeAws_json1_1FailureDescription = function (output, context) {
1749
+ const deserializeAws_json1_1FailureDescription = (output, context) => {
1675
1750
  return {
1676
1751
  Details: __expectString(output.Details),
1677
1752
  Type: __expectString(output.Type),
1678
1753
  };
1679
1754
  };
1680
- var deserializeAws_json1_1HiveJsonSerDe = function (output, context) {
1755
+ const deserializeAws_json1_1HiveJsonSerDe = (output, context) => {
1681
1756
  return {
1682
1757
  TimestampFormats: output.TimestampFormats != null
1683
1758
  ? deserializeAws_json1_1ListOfNonEmptyStrings(output.TimestampFormats, context)
1684
1759
  : undefined,
1685
1760
  };
1686
1761
  };
1687
- var deserializeAws_json1_1HttpEndpointBufferingHints = function (output, context) {
1762
+ const deserializeAws_json1_1HttpEndpointBufferingHints = (output, context) => {
1688
1763
  return {
1689
1764
  IntervalInSeconds: __expectInt32(output.IntervalInSeconds),
1690
1765
  SizeInMBs: __expectInt32(output.SizeInMBs),
1691
1766
  };
1692
1767
  };
1693
- var deserializeAws_json1_1HttpEndpointCommonAttribute = function (output, context) {
1768
+ const deserializeAws_json1_1HttpEndpointCommonAttribute = (output, context) => {
1694
1769
  return {
1695
1770
  AttributeName: __expectString(output.AttributeName),
1696
1771
  AttributeValue: __expectString(output.AttributeValue),
1697
1772
  };
1698
1773
  };
1699
- var deserializeAws_json1_1HttpEndpointCommonAttributesList = function (output, context) {
1700
- var retVal = (output || [])
1701
- .filter(function (e) { return e != null; })
1702
- .map(function (entry) {
1774
+ const deserializeAws_json1_1HttpEndpointCommonAttributesList = (output, context) => {
1775
+ const retVal = (output || [])
1776
+ .filter((e) => e != null)
1777
+ .map((entry) => {
1703
1778
  if (entry === null) {
1704
1779
  return null;
1705
1780
  }
@@ -1707,13 +1782,13 @@ var deserializeAws_json1_1HttpEndpointCommonAttributesList = function (output, c
1707
1782
  });
1708
1783
  return retVal;
1709
1784
  };
1710
- var deserializeAws_json1_1HttpEndpointDescription = function (output, context) {
1785
+ const deserializeAws_json1_1HttpEndpointDescription = (output, context) => {
1711
1786
  return {
1712
1787
  Name: __expectString(output.Name),
1713
1788
  Url: __expectString(output.Url),
1714
1789
  };
1715
1790
  };
1716
- var deserializeAws_json1_1HttpEndpointDestinationDescription = function (output, context) {
1791
+ const deserializeAws_json1_1HttpEndpointDestinationDescription = (output, context) => {
1717
1792
  return {
1718
1793
  BufferingHints: output.BufferingHints != null
1719
1794
  ? deserializeAws_json1_1HttpEndpointBufferingHints(output.BufferingHints, context)
@@ -1740,7 +1815,7 @@ var deserializeAws_json1_1HttpEndpointDestinationDescription = function (output,
1740
1815
  : undefined,
1741
1816
  };
1742
1817
  };
1743
- var deserializeAws_json1_1HttpEndpointRequestConfiguration = function (output, context) {
1818
+ const deserializeAws_json1_1HttpEndpointRequestConfiguration = (output, context) => {
1744
1819
  return {
1745
1820
  CommonAttributes: output.CommonAttributes != null
1746
1821
  ? deserializeAws_json1_1HttpEndpointCommonAttributesList(output.CommonAttributes, context)
@@ -1748,28 +1823,28 @@ var deserializeAws_json1_1HttpEndpointRequestConfiguration = function (output, c
1748
1823
  ContentEncoding: __expectString(output.ContentEncoding),
1749
1824
  };
1750
1825
  };
1751
- var deserializeAws_json1_1HttpEndpointRetryOptions = function (output, context) {
1826
+ const deserializeAws_json1_1HttpEndpointRetryOptions = (output, context) => {
1752
1827
  return {
1753
1828
  DurationInSeconds: __expectInt32(output.DurationInSeconds),
1754
1829
  };
1755
1830
  };
1756
- var deserializeAws_json1_1InputFormatConfiguration = function (output, context) {
1831
+ const deserializeAws_json1_1InputFormatConfiguration = (output, context) => {
1757
1832
  return {
1758
1833
  Deserializer: output.Deserializer != null ? deserializeAws_json1_1Deserializer(output.Deserializer, context) : undefined,
1759
1834
  };
1760
1835
  };
1761
- var deserializeAws_json1_1InvalidArgumentException = function (output, context) {
1836
+ const deserializeAws_json1_1InvalidArgumentException = (output, context) => {
1762
1837
  return {
1763
1838
  message: __expectString(output.message),
1764
1839
  };
1765
1840
  };
1766
- var deserializeAws_json1_1InvalidKMSResourceException = function (output, context) {
1841
+ const deserializeAws_json1_1InvalidKMSResourceException = (output, context) => {
1767
1842
  return {
1768
1843
  code: __expectString(output.code),
1769
1844
  message: __expectString(output.message),
1770
1845
  };
1771
1846
  };
1772
- var deserializeAws_json1_1KinesisStreamSourceDescription = function (output, context) {
1847
+ const deserializeAws_json1_1KinesisStreamSourceDescription = (output, context) => {
1773
1848
  return {
1774
1849
  DeliveryStartTimestamp: output.DeliveryStartTimestamp != null
1775
1850
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeliveryStartTimestamp)))
@@ -1778,17 +1853,17 @@ var deserializeAws_json1_1KinesisStreamSourceDescription = function (output, con
1778
1853
  RoleARN: __expectString(output.RoleARN),
1779
1854
  };
1780
1855
  };
1781
- var deserializeAws_json1_1KMSEncryptionConfig = function (output, context) {
1856
+ const deserializeAws_json1_1KMSEncryptionConfig = (output, context) => {
1782
1857
  return {
1783
1858
  AWSKMSKeyARN: __expectString(output.AWSKMSKeyARN),
1784
1859
  };
1785
1860
  };
1786
- var deserializeAws_json1_1LimitExceededException = function (output, context) {
1861
+ const deserializeAws_json1_1LimitExceededException = (output, context) => {
1787
1862
  return {
1788
1863
  message: __expectString(output.message),
1789
1864
  };
1790
1865
  };
1791
- var deserializeAws_json1_1ListDeliveryStreamsOutput = function (output, context) {
1866
+ const deserializeAws_json1_1ListDeliveryStreamsOutput = (output, context) => {
1792
1867
  return {
1793
1868
  DeliveryStreamNames: output.DeliveryStreamNames != null
1794
1869
  ? deserializeAws_json1_1DeliveryStreamNameList(output.DeliveryStreamNames, context)
@@ -1796,10 +1871,10 @@ var deserializeAws_json1_1ListDeliveryStreamsOutput = function (output, context)
1796
1871
  HasMoreDeliveryStreams: __expectBoolean(output.HasMoreDeliveryStreams),
1797
1872
  };
1798
1873
  };
1799
- var deserializeAws_json1_1ListOfNonEmptyStrings = function (output, context) {
1800
- var retVal = (output || [])
1801
- .filter(function (e) { return e != null; })
1802
- .map(function (entry) {
1874
+ const deserializeAws_json1_1ListOfNonEmptyStrings = (output, context) => {
1875
+ const retVal = (output || [])
1876
+ .filter((e) => e != null)
1877
+ .map((entry) => {
1803
1878
  if (entry === null) {
1804
1879
  return null;
1805
1880
  }
@@ -1807,10 +1882,10 @@ var deserializeAws_json1_1ListOfNonEmptyStrings = function (output, context) {
1807
1882
  });
1808
1883
  return retVal;
1809
1884
  };
1810
- var deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (output, context) {
1811
- var retVal = (output || [])
1812
- .filter(function (e) { return e != null; })
1813
- .map(function (entry) {
1885
+ const deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = (output, context) => {
1886
+ const retVal = (output || [])
1887
+ .filter((e) => e != null)
1888
+ .map((entry) => {
1814
1889
  if (entry === null) {
1815
1890
  return null;
1816
1891
  }
@@ -1818,7 +1893,7 @@ var deserializeAws_json1_1ListOfNonEmptyStringsWithoutWhitespace = function (out
1818
1893
  });
1819
1894
  return retVal;
1820
1895
  };
1821
- var deserializeAws_json1_1ListTagsForDeliveryStreamOutput = function (output, context) {
1896
+ const deserializeAws_json1_1ListTagsForDeliveryStreamOutput = (output, context) => {
1822
1897
  return {
1823
1898
  HasMoreTags: __expectBoolean(output.HasMoreTags),
1824
1899
  Tags: output.Tags != null
@@ -1826,10 +1901,10 @@ var deserializeAws_json1_1ListTagsForDeliveryStreamOutput = function (output, co
1826
1901
  : undefined,
1827
1902
  };
1828
1903
  };
1829
- var deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = function (output, context) {
1830
- var retVal = (output || [])
1831
- .filter(function (e) { return e != null; })
1832
- .map(function (entry) {
1904
+ const deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = (output, context) => {
1905
+ const retVal = (output || [])
1906
+ .filter((e) => e != null)
1907
+ .map((entry) => {
1833
1908
  if (entry === null) {
1834
1909
  return null;
1835
1910
  }
@@ -1837,7 +1912,7 @@ var deserializeAws_json1_1ListTagsForDeliveryStreamOutputTagList = function (out
1837
1912
  });
1838
1913
  return retVal;
1839
1914
  };
1840
- var deserializeAws_json1_1OpenXJsonSerDe = function (output, context) {
1915
+ const deserializeAws_json1_1OpenXJsonSerDe = (output, context) => {
1841
1916
  return {
1842
1917
  CaseInsensitive: __expectBoolean(output.CaseInsensitive),
1843
1918
  ColumnToJsonKeyMappings: output.ColumnToJsonKeyMappings != null
@@ -1846,7 +1921,7 @@ var deserializeAws_json1_1OpenXJsonSerDe = function (output, context) {
1846
1921
  ConvertDotsInJsonKeysToUnderscores: __expectBoolean(output.ConvertDotsInJsonKeysToUnderscores),
1847
1922
  };
1848
1923
  };
1849
- var deserializeAws_json1_1OrcSerDe = function (output, context) {
1924
+ const deserializeAws_json1_1OrcSerDe = (output, context) => {
1850
1925
  return {
1851
1926
  BlockSizeBytes: __expectInt32(output.BlockSizeBytes),
1852
1927
  BloomFilterColumns: output.BloomFilterColumns != null
@@ -1862,12 +1937,12 @@ var deserializeAws_json1_1OrcSerDe = function (output, context) {
1862
1937
  StripeSizeBytes: __expectInt32(output.StripeSizeBytes),
1863
1938
  };
1864
1939
  };
1865
- var deserializeAws_json1_1OutputFormatConfiguration = function (output, context) {
1940
+ const deserializeAws_json1_1OutputFormatConfiguration = (output, context) => {
1866
1941
  return {
1867
1942
  Serializer: output.Serializer != null ? deserializeAws_json1_1Serializer(output.Serializer, context) : undefined,
1868
1943
  };
1869
1944
  };
1870
- var deserializeAws_json1_1ParquetSerDe = function (output, context) {
1945
+ const deserializeAws_json1_1ParquetSerDe = (output, context) => {
1871
1946
  return {
1872
1947
  BlockSizeBytes: __expectInt32(output.BlockSizeBytes),
1873
1948
  Compression: __expectString(output.Compression),
@@ -1877,22 +1952,22 @@ var deserializeAws_json1_1ParquetSerDe = function (output, context) {
1877
1952
  WriterVersion: __expectString(output.WriterVersion),
1878
1953
  };
1879
1954
  };
1880
- var deserializeAws_json1_1ProcessingConfiguration = function (output, context) {
1955
+ const deserializeAws_json1_1ProcessingConfiguration = (output, context) => {
1881
1956
  return {
1882
1957
  Enabled: __expectBoolean(output.Enabled),
1883
1958
  Processors: output.Processors != null ? deserializeAws_json1_1ProcessorList(output.Processors, context) : undefined,
1884
1959
  };
1885
1960
  };
1886
- var deserializeAws_json1_1Processor = function (output, context) {
1961
+ const deserializeAws_json1_1Processor = (output, context) => {
1887
1962
  return {
1888
1963
  Parameters: output.Parameters != null ? deserializeAws_json1_1ProcessorParameterList(output.Parameters, context) : undefined,
1889
1964
  Type: __expectString(output.Type),
1890
1965
  };
1891
1966
  };
1892
- var deserializeAws_json1_1ProcessorList = function (output, context) {
1893
- var retVal = (output || [])
1894
- .filter(function (e) { return e != null; })
1895
- .map(function (entry) {
1967
+ const deserializeAws_json1_1ProcessorList = (output, context) => {
1968
+ const retVal = (output || [])
1969
+ .filter((e) => e != null)
1970
+ .map((entry) => {
1896
1971
  if (entry === null) {
1897
1972
  return null;
1898
1973
  }
@@ -1900,16 +1975,16 @@ var deserializeAws_json1_1ProcessorList = function (output, context) {
1900
1975
  });
1901
1976
  return retVal;
1902
1977
  };
1903
- var deserializeAws_json1_1ProcessorParameter = function (output, context) {
1978
+ const deserializeAws_json1_1ProcessorParameter = (output, context) => {
1904
1979
  return {
1905
1980
  ParameterName: __expectString(output.ParameterName),
1906
1981
  ParameterValue: __expectString(output.ParameterValue),
1907
1982
  };
1908
1983
  };
1909
- var deserializeAws_json1_1ProcessorParameterList = function (output, context) {
1910
- var retVal = (output || [])
1911
- .filter(function (e) { return e != null; })
1912
- .map(function (entry) {
1984
+ const deserializeAws_json1_1ProcessorParameterList = (output, context) => {
1985
+ const retVal = (output || [])
1986
+ .filter((e) => e != null)
1987
+ .map((entry) => {
1913
1988
  if (entry === null) {
1914
1989
  return null;
1915
1990
  }
@@ -1917,7 +1992,7 @@ var deserializeAws_json1_1ProcessorParameterList = function (output, context) {
1917
1992
  });
1918
1993
  return retVal;
1919
1994
  };
1920
- var deserializeAws_json1_1PutRecordBatchOutput = function (output, context) {
1995
+ const deserializeAws_json1_1PutRecordBatchOutput = (output, context) => {
1921
1996
  return {
1922
1997
  Encrypted: __expectBoolean(output.Encrypted),
1923
1998
  FailedPutCount: __expectInt32(output.FailedPutCount),
@@ -1926,17 +2001,17 @@ var deserializeAws_json1_1PutRecordBatchOutput = function (output, context) {
1926
2001
  : undefined,
1927
2002
  };
1928
2003
  };
1929
- var deserializeAws_json1_1PutRecordBatchResponseEntry = function (output, context) {
2004
+ const deserializeAws_json1_1PutRecordBatchResponseEntry = (output, context) => {
1930
2005
  return {
1931
2006
  ErrorCode: __expectString(output.ErrorCode),
1932
2007
  ErrorMessage: __expectString(output.ErrorMessage),
1933
2008
  RecordId: __expectString(output.RecordId),
1934
2009
  };
1935
2010
  };
1936
- var deserializeAws_json1_1PutRecordBatchResponseEntryList = function (output, context) {
1937
- var retVal = (output || [])
1938
- .filter(function (e) { return e != null; })
1939
- .map(function (entry) {
2011
+ const deserializeAws_json1_1PutRecordBatchResponseEntryList = (output, context) => {
2012
+ const retVal = (output || [])
2013
+ .filter((e) => e != null)
2014
+ .map((entry) => {
1940
2015
  if (entry === null) {
1941
2016
  return null;
1942
2017
  }
@@ -1944,13 +2019,13 @@ var deserializeAws_json1_1PutRecordBatchResponseEntryList = function (output, co
1944
2019
  });
1945
2020
  return retVal;
1946
2021
  };
1947
- var deserializeAws_json1_1PutRecordOutput = function (output, context) {
2022
+ const deserializeAws_json1_1PutRecordOutput = (output, context) => {
1948
2023
  return {
1949
2024
  Encrypted: __expectBoolean(output.Encrypted),
1950
2025
  RecordId: __expectString(output.RecordId),
1951
2026
  };
1952
2027
  };
1953
- var deserializeAws_json1_1RedshiftDestinationDescription = function (output, context) {
2028
+ const deserializeAws_json1_1RedshiftDestinationDescription = (output, context) => {
1954
2029
  return {
1955
2030
  CloudWatchLoggingOptions: output.CloudWatchLoggingOptions != null
1956
2031
  ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
@@ -1974,27 +2049,27 @@ var deserializeAws_json1_1RedshiftDestinationDescription = function (output, con
1974
2049
  Username: __expectString(output.Username),
1975
2050
  };
1976
2051
  };
1977
- var deserializeAws_json1_1RedshiftRetryOptions = function (output, context) {
2052
+ const deserializeAws_json1_1RedshiftRetryOptions = (output, context) => {
1978
2053
  return {
1979
2054
  DurationInSeconds: __expectInt32(output.DurationInSeconds),
1980
2055
  };
1981
2056
  };
1982
- var deserializeAws_json1_1ResourceInUseException = function (output, context) {
2057
+ const deserializeAws_json1_1ResourceInUseException = (output, context) => {
1983
2058
  return {
1984
2059
  message: __expectString(output.message),
1985
2060
  };
1986
2061
  };
1987
- var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
2062
+ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
1988
2063
  return {
1989
2064
  message: __expectString(output.message),
1990
2065
  };
1991
2066
  };
1992
- var deserializeAws_json1_1RetryOptions = function (output, context) {
2067
+ const deserializeAws_json1_1RetryOptions = (output, context) => {
1993
2068
  return {
1994
2069
  DurationInSeconds: __expectInt32(output.DurationInSeconds),
1995
2070
  };
1996
2071
  };
1997
- var deserializeAws_json1_1S3DestinationDescription = function (output, context) {
2072
+ const deserializeAws_json1_1S3DestinationDescription = (output, context) => {
1998
2073
  return {
1999
2074
  BucketARN: __expectString(output.BucketARN),
2000
2075
  BufferingHints: output.BufferingHints != null ? deserializeAws_json1_1BufferingHints(output.BufferingHints, context) : undefined,
@@ -2010,7 +2085,7 @@ var deserializeAws_json1_1S3DestinationDescription = function (output, context)
2010
2085
  RoleARN: __expectString(output.RoleARN),
2011
2086
  };
2012
2087
  };
2013
- var deserializeAws_json1_1SchemaConfiguration = function (output, context) {
2088
+ const deserializeAws_json1_1SchemaConfiguration = (output, context) => {
2014
2089
  return {
2015
2090
  CatalogId: __expectString(output.CatalogId),
2016
2091
  DatabaseName: __expectString(output.DatabaseName),
@@ -2020,10 +2095,10 @@ var deserializeAws_json1_1SchemaConfiguration = function (output, context) {
2020
2095
  VersionId: __expectString(output.VersionId),
2021
2096
  };
2022
2097
  };
2023
- var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
2024
- var retVal = (output || [])
2025
- .filter(function (e) { return e != null; })
2026
- .map(function (entry) {
2098
+ const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
2099
+ const retVal = (output || [])
2100
+ .filter((e) => e != null)
2101
+ .map((entry) => {
2027
2102
  if (entry === null) {
2028
2103
  return null;
2029
2104
  }
@@ -2031,25 +2106,25 @@ var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
2031
2106
  });
2032
2107
  return retVal;
2033
2108
  };
2034
- var deserializeAws_json1_1Serializer = function (output, context) {
2109
+ const deserializeAws_json1_1Serializer = (output, context) => {
2035
2110
  return {
2036
2111
  OrcSerDe: output.OrcSerDe != null ? deserializeAws_json1_1OrcSerDe(output.OrcSerDe, context) : undefined,
2037
2112
  ParquetSerDe: output.ParquetSerDe != null ? deserializeAws_json1_1ParquetSerDe(output.ParquetSerDe, context) : undefined,
2038
2113
  };
2039
2114
  };
2040
- var deserializeAws_json1_1ServiceUnavailableException = function (output, context) {
2115
+ const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
2041
2116
  return {
2042
2117
  message: __expectString(output.message),
2043
2118
  };
2044
2119
  };
2045
- var deserializeAws_json1_1SourceDescription = function (output, context) {
2120
+ const deserializeAws_json1_1SourceDescription = (output, context) => {
2046
2121
  return {
2047
2122
  KinesisStreamSourceDescription: output.KinesisStreamSourceDescription != null
2048
2123
  ? deserializeAws_json1_1KinesisStreamSourceDescription(output.KinesisStreamSourceDescription, context)
2049
2124
  : undefined,
2050
2125
  };
2051
2126
  };
2052
- var deserializeAws_json1_1SplunkDestinationDescription = function (output, context) {
2127
+ const deserializeAws_json1_1SplunkDestinationDescription = (output, context) => {
2053
2128
  return {
2054
2129
  CloudWatchLoggingOptions: output.CloudWatchLoggingOptions != null
2055
2130
  ? deserializeAws_json1_1CloudWatchLoggingOptions(output.CloudWatchLoggingOptions, context)
@@ -2068,21 +2143,21 @@ var deserializeAws_json1_1SplunkDestinationDescription = function (output, conte
2068
2143
  : undefined,
2069
2144
  };
2070
2145
  };
2071
- var deserializeAws_json1_1SplunkRetryOptions = function (output, context) {
2146
+ const deserializeAws_json1_1SplunkRetryOptions = (output, context) => {
2072
2147
  return {
2073
2148
  DurationInSeconds: __expectInt32(output.DurationInSeconds),
2074
2149
  };
2075
2150
  };
2076
- var deserializeAws_json1_1StartDeliveryStreamEncryptionOutput = function (output, context) {
2151
+ const deserializeAws_json1_1StartDeliveryStreamEncryptionOutput = (output, context) => {
2077
2152
  return {};
2078
2153
  };
2079
- var deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = function (output, context) {
2154
+ const deserializeAws_json1_1StopDeliveryStreamEncryptionOutput = (output, context) => {
2080
2155
  return {};
2081
2156
  };
2082
- var deserializeAws_json1_1SubnetIdList = function (output, context) {
2083
- var retVal = (output || [])
2084
- .filter(function (e) { return e != null; })
2085
- .map(function (entry) {
2157
+ const deserializeAws_json1_1SubnetIdList = (output, context) => {
2158
+ const retVal = (output || [])
2159
+ .filter((e) => e != null)
2160
+ .map((entry) => {
2086
2161
  if (entry === null) {
2087
2162
  return null;
2088
2163
  }
@@ -2090,22 +2165,22 @@ var deserializeAws_json1_1SubnetIdList = function (output, context) {
2090
2165
  });
2091
2166
  return retVal;
2092
2167
  };
2093
- var deserializeAws_json1_1Tag = function (output, context) {
2168
+ const deserializeAws_json1_1Tag = (output, context) => {
2094
2169
  return {
2095
2170
  Key: __expectString(output.Key),
2096
2171
  Value: __expectString(output.Value),
2097
2172
  };
2098
2173
  };
2099
- var deserializeAws_json1_1TagDeliveryStreamOutput = function (output, context) {
2174
+ const deserializeAws_json1_1TagDeliveryStreamOutput = (output, context) => {
2100
2175
  return {};
2101
2176
  };
2102
- var deserializeAws_json1_1UntagDeliveryStreamOutput = function (output, context) {
2177
+ const deserializeAws_json1_1UntagDeliveryStreamOutput = (output, context) => {
2103
2178
  return {};
2104
2179
  };
2105
- var deserializeAws_json1_1UpdateDestinationOutput = function (output, context) {
2180
+ const deserializeAws_json1_1UpdateDestinationOutput = (output, context) => {
2106
2181
  return {};
2107
2182
  };
2108
- var deserializeAws_json1_1VpcConfigurationDescription = function (output, context) {
2183
+ const deserializeAws_json1_1VpcConfigurationDescription = (output, context) => {
2109
2184
  return {
2110
2185
  RoleARN: __expectString(output.RoleARN),
2111
2186
  SecurityGroupIds: output.SecurityGroupIds != null
@@ -2115,62 +2190,52 @@ var deserializeAws_json1_1VpcConfigurationDescription = function (output, contex
2115
2190
  VpcId: __expectString(output.VpcId),
2116
2191
  };
2117
2192
  };
2118
- var deserializeMetadata = function (output) {
2119
- var _a;
2120
- return ({
2121
- httpStatusCode: output.statusCode,
2122
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2123
- extendedRequestId: output.headers["x-amz-id-2"],
2124
- cfId: output.headers["x-amz-cf-id"],
2125
- });
2126
- };
2127
- var collectBody = function (streamBody, context) {
2128
- if (streamBody === void 0) { streamBody = new Uint8Array(); }
2193
+ const deserializeMetadata = (output) => ({
2194
+ httpStatusCode: output.statusCode,
2195
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
2196
+ extendedRequestId: output.headers["x-amz-id-2"],
2197
+ cfId: output.headers["x-amz-cf-id"],
2198
+ });
2199
+ const collectBody = (streamBody = new Uint8Array(), context) => {
2129
2200
  if (streamBody instanceof Uint8Array) {
2130
2201
  return Promise.resolve(streamBody);
2131
2202
  }
2132
2203
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2133
2204
  };
2134
- var collectBodyString = function (streamBody, context) {
2135
- return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
2136
- };
2137
- var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
2138
- var _a, hostname, _b, protocol, port, basePath, contents;
2139
- return __generator(this, function (_c) {
2140
- switch (_c.label) {
2141
- case 0: return [4, context.endpoint()];
2142
- case 1:
2143
- _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
2144
- contents = {
2145
- protocol: protocol,
2146
- hostname: hostname,
2147
- port: port,
2148
- method: "POST",
2149
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2150
- headers: headers,
2151
- };
2152
- if (resolvedHostname !== undefined) {
2153
- contents.hostname = resolvedHostname;
2154
- }
2155
- if (body !== undefined) {
2156
- contents.body = body;
2157
- }
2158
- return [2, new __HttpRequest(contents)];
2159
- }
2160
- });
2161
- }); };
2162
- var parseBody = function (streamBody, context) {
2163
- return collectBodyString(streamBody, context).then(function (encoded) {
2164
- if (encoded.length) {
2165
- return JSON.parse(encoded);
2166
- }
2167
- return {};
2168
- });
2205
+ const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2206
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2207
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2208
+ const contents = {
2209
+ protocol,
2210
+ hostname,
2211
+ port,
2212
+ method: "POST",
2213
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2214
+ headers,
2215
+ };
2216
+ if (resolvedHostname !== undefined) {
2217
+ contents.hostname = resolvedHostname;
2218
+ }
2219
+ if (body !== undefined) {
2220
+ contents.body = body;
2221
+ }
2222
+ return new __HttpRequest(contents);
2169
2223
  };
2170
- var loadRestJsonErrorCode = function (output, data) {
2171
- var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2172
- var sanitizeErrorCode = function (rawValue) {
2173
- var cleanValue = rawValue;
2224
+ const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2225
+ if (encoded.length) {
2226
+ return JSON.parse(encoded);
2227
+ }
2228
+ return {};
2229
+ });
2230
+ const parseErrorBody = async (errorBody, context) => {
2231
+ const value = await parseBody(errorBody, context);
2232
+ value.message = value.message ?? value.Message;
2233
+ return value;
2234
+ };
2235
+ const loadRestJsonErrorCode = (output, data) => {
2236
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2237
+ const sanitizeErrorCode = (rawValue) => {
2238
+ let cleanValue = rawValue;
2174
2239
  if (typeof cleanValue === "number") {
2175
2240
  cleanValue = cleanValue.toString();
2176
2241
  }
@@ -2185,7 +2250,7 @@ var loadRestJsonErrorCode = function (output, data) {
2185
2250
  }
2186
2251
  return cleanValue;
2187
2252
  };
2188
- var headerKey = findKey(output.headers, "x-amzn-errortype");
2253
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2189
2254
  if (headerKey !== undefined) {
2190
2255
  return sanitizeErrorCode(output.headers[headerKey]);
2191
2256
  }