@aws-sdk/client-firehose 3.927.0 → 3.928.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.
Files changed (36) hide show
  1. package/dist-cjs/index.js +1653 -960
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/FirehoseClient.js +2 -0
  4. package/dist-es/commands/CreateDeliveryStreamCommand.js +3 -10
  5. package/dist-es/commands/DeleteDeliveryStreamCommand.js +3 -9
  6. package/dist-es/commands/DescribeDeliveryStreamCommand.js +3 -10
  7. package/dist-es/commands/ListDeliveryStreamsCommand.js +3 -9
  8. package/dist-es/commands/ListTagsForDeliveryStreamCommand.js +3 -9
  9. package/dist-es/commands/PutRecordBatchCommand.js +3 -9
  10. package/dist-es/commands/PutRecordCommand.js +3 -9
  11. package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +3 -9
  12. package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +3 -9
  13. package/dist-es/commands/TagDeliveryStreamCommand.js +3 -9
  14. package/dist-es/commands/UntagDeliveryStreamCommand.js +3 -9
  15. package/dist-es/commands/UpdateDestinationCommand.js +3 -10
  16. package/dist-es/models/models_0.js +0 -164
  17. package/dist-es/runtimeConfig.shared.js +7 -0
  18. package/dist-es/schemas/schemas_0.js +1615 -0
  19. package/dist-types/FirehoseClient.d.ts +10 -1
  20. package/dist-types/models/models_0.d.ts +0 -80
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +189 -0
  26. package/dist-types/ts3.4/FirehoseClient.d.ts +4 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +0 -60
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  32. package/dist-types/ts3.4/schemas/schemas_0.d.ts +195 -0
  33. package/package.json +5 -5
  34. package/dist-es/protocols/Aws_json1_1.js +0 -673
  35. package/dist-types/protocols/Aws_json1_1.d.ts +0 -110
  36. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -149
@@ -1,673 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, 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, take, withBaseException, } from "@smithy/smithy-client";
4
- import { FirehoseServiceException as __BaseException } from "../models/FirehoseServiceException";
5
- import { ConcurrentModificationException, InvalidArgumentException, InvalidKMSResourceException, InvalidSourceException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
6
- export const se_CreateDeliveryStreamCommand = async (input, context) => {
7
- const headers = sharedHeaders("CreateDeliveryStream");
8
- let body;
9
- body = JSON.stringify(se_CreateDeliveryStreamInput(input, context));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_DeleteDeliveryStreamCommand = async (input, context) => {
13
- const headers = sharedHeaders("DeleteDeliveryStream");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_DescribeDeliveryStreamCommand = async (input, context) => {
19
- const headers = sharedHeaders("DescribeDeliveryStream");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_ListDeliveryStreamsCommand = async (input, context) => {
25
- const headers = sharedHeaders("ListDeliveryStreams");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_ListTagsForDeliveryStreamCommand = async (input, context) => {
31
- const headers = sharedHeaders("ListTagsForDeliveryStream");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_PutRecordCommand = async (input, context) => {
37
- const headers = sharedHeaders("PutRecord");
38
- let body;
39
- body = JSON.stringify(se_PutRecordInput(input, context));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_PutRecordBatchCommand = async (input, context) => {
43
- const headers = sharedHeaders("PutRecordBatch");
44
- let body;
45
- body = JSON.stringify(se_PutRecordBatchInput(input, context));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_StartDeliveryStreamEncryptionCommand = async (input, context) => {
49
- const headers = sharedHeaders("StartDeliveryStreamEncryption");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_StopDeliveryStreamEncryptionCommand = async (input, context) => {
55
- const headers = sharedHeaders("StopDeliveryStreamEncryption");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_TagDeliveryStreamCommand = async (input, context) => {
61
- const headers = sharedHeaders("TagDeliveryStream");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_UntagDeliveryStreamCommand = async (input, context) => {
67
- const headers = sharedHeaders("UntagDeliveryStream");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_UpdateDestinationCommand = async (input, context) => {
73
- const headers = sharedHeaders("UpdateDestination");
74
- let body;
75
- body = JSON.stringify(se_UpdateDestinationInput(input, context));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const de_CreateDeliveryStreamCommand = async (output, context) => {
79
- if (output.statusCode >= 300) {
80
- return de_CommandError(output, context);
81
- }
82
- const data = await parseBody(output.body, context);
83
- let contents = {};
84
- contents = _json(data);
85
- const response = {
86
- $metadata: deserializeMetadata(output),
87
- ...contents,
88
- };
89
- return response;
90
- };
91
- export const de_DeleteDeliveryStreamCommand = async (output, context) => {
92
- if (output.statusCode >= 300) {
93
- return de_CommandError(output, context);
94
- }
95
- const data = await parseBody(output.body, context);
96
- let contents = {};
97
- contents = _json(data);
98
- const response = {
99
- $metadata: deserializeMetadata(output),
100
- ...contents,
101
- };
102
- return response;
103
- };
104
- export const de_DescribeDeliveryStreamCommand = async (output, context) => {
105
- if (output.statusCode >= 300) {
106
- return de_CommandError(output, context);
107
- }
108
- const data = await parseBody(output.body, context);
109
- let contents = {};
110
- contents = de_DescribeDeliveryStreamOutput(data, context);
111
- const response = {
112
- $metadata: deserializeMetadata(output),
113
- ...contents,
114
- };
115
- return response;
116
- };
117
- export const de_ListDeliveryStreamsCommand = async (output, context) => {
118
- if (output.statusCode >= 300) {
119
- return de_CommandError(output, context);
120
- }
121
- const data = await parseBody(output.body, context);
122
- let contents = {};
123
- contents = _json(data);
124
- const response = {
125
- $metadata: deserializeMetadata(output),
126
- ...contents,
127
- };
128
- return response;
129
- };
130
- export const de_ListTagsForDeliveryStreamCommand = async (output, context) => {
131
- if (output.statusCode >= 300) {
132
- return de_CommandError(output, context);
133
- }
134
- const data = await parseBody(output.body, context);
135
- let contents = {};
136
- contents = _json(data);
137
- const response = {
138
- $metadata: deserializeMetadata(output),
139
- ...contents,
140
- };
141
- return response;
142
- };
143
- export const de_PutRecordCommand = async (output, context) => {
144
- if (output.statusCode >= 300) {
145
- return de_CommandError(output, context);
146
- }
147
- const data = await parseBody(output.body, context);
148
- let contents = {};
149
- contents = _json(data);
150
- const response = {
151
- $metadata: deserializeMetadata(output),
152
- ...contents,
153
- };
154
- return response;
155
- };
156
- export const de_PutRecordBatchCommand = async (output, context) => {
157
- if (output.statusCode >= 300) {
158
- return de_CommandError(output, context);
159
- }
160
- const data = await parseBody(output.body, context);
161
- let contents = {};
162
- contents = _json(data);
163
- const response = {
164
- $metadata: deserializeMetadata(output),
165
- ...contents,
166
- };
167
- return response;
168
- };
169
- export const de_StartDeliveryStreamEncryptionCommand = async (output, context) => {
170
- if (output.statusCode >= 300) {
171
- return de_CommandError(output, context);
172
- }
173
- const data = await parseBody(output.body, context);
174
- let contents = {};
175
- contents = _json(data);
176
- const response = {
177
- $metadata: deserializeMetadata(output),
178
- ...contents,
179
- };
180
- return response;
181
- };
182
- export const de_StopDeliveryStreamEncryptionCommand = async (output, context) => {
183
- if (output.statusCode >= 300) {
184
- return de_CommandError(output, context);
185
- }
186
- const data = await parseBody(output.body, context);
187
- let contents = {};
188
- contents = _json(data);
189
- const response = {
190
- $metadata: deserializeMetadata(output),
191
- ...contents,
192
- };
193
- return response;
194
- };
195
- export const de_TagDeliveryStreamCommand = async (output, context) => {
196
- if (output.statusCode >= 300) {
197
- return de_CommandError(output, context);
198
- }
199
- const data = await parseBody(output.body, context);
200
- let contents = {};
201
- contents = _json(data);
202
- const response = {
203
- $metadata: deserializeMetadata(output),
204
- ...contents,
205
- };
206
- return response;
207
- };
208
- export const de_UntagDeliveryStreamCommand = async (output, context) => {
209
- if (output.statusCode >= 300) {
210
- return de_CommandError(output, context);
211
- }
212
- const data = await parseBody(output.body, context);
213
- let contents = {};
214
- contents = _json(data);
215
- const response = {
216
- $metadata: deserializeMetadata(output),
217
- ...contents,
218
- };
219
- return response;
220
- };
221
- export const de_UpdateDestinationCommand = async (output, context) => {
222
- if (output.statusCode >= 300) {
223
- return de_CommandError(output, context);
224
- }
225
- const data = await parseBody(output.body, context);
226
- let contents = {};
227
- contents = _json(data);
228
- const response = {
229
- $metadata: deserializeMetadata(output),
230
- ...contents,
231
- };
232
- return response;
233
- };
234
- const de_CommandError = async (output, context) => {
235
- const parsedOutput = {
236
- ...output,
237
- body: await parseErrorBody(output.body, context),
238
- };
239
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
240
- switch (errorCode) {
241
- case "InvalidArgumentException":
242
- case "com.amazonaws.firehose#InvalidArgumentException":
243
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
244
- case "InvalidKMSResourceException":
245
- case "com.amazonaws.firehose#InvalidKMSResourceException":
246
- throw await de_InvalidKMSResourceExceptionRes(parsedOutput, context);
247
- case "LimitExceededException":
248
- case "com.amazonaws.firehose#LimitExceededException":
249
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
250
- case "ResourceInUseException":
251
- case "com.amazonaws.firehose#ResourceInUseException":
252
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
253
- case "ResourceNotFoundException":
254
- case "com.amazonaws.firehose#ResourceNotFoundException":
255
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
256
- case "InvalidSourceException":
257
- case "com.amazonaws.firehose#InvalidSourceException":
258
- throw await de_InvalidSourceExceptionRes(parsedOutput, context);
259
- case "ServiceUnavailableException":
260
- case "com.amazonaws.firehose#ServiceUnavailableException":
261
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
262
- case "ConcurrentModificationException":
263
- case "com.amazonaws.firehose#ConcurrentModificationException":
264
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
265
- default:
266
- const parsedBody = parsedOutput.body;
267
- return throwDefaultError({
268
- output,
269
- parsedBody,
270
- errorCode,
271
- });
272
- }
273
- };
274
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
275
- const body = parsedOutput.body;
276
- const deserialized = _json(body);
277
- const exception = new ConcurrentModificationException({
278
- $metadata: deserializeMetadata(parsedOutput),
279
- ...deserialized,
280
- });
281
- return __decorateServiceException(exception, body);
282
- };
283
- const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
284
- const body = parsedOutput.body;
285
- const deserialized = _json(body);
286
- const exception = new InvalidArgumentException({
287
- $metadata: deserializeMetadata(parsedOutput),
288
- ...deserialized,
289
- });
290
- return __decorateServiceException(exception, body);
291
- };
292
- const de_InvalidKMSResourceExceptionRes = async (parsedOutput, context) => {
293
- const body = parsedOutput.body;
294
- const deserialized = _json(body);
295
- const exception = new InvalidKMSResourceException({
296
- $metadata: deserializeMetadata(parsedOutput),
297
- ...deserialized,
298
- });
299
- return __decorateServiceException(exception, body);
300
- };
301
- const de_InvalidSourceExceptionRes = async (parsedOutput, context) => {
302
- const body = parsedOutput.body;
303
- const deserialized = _json(body);
304
- const exception = new InvalidSourceException({
305
- $metadata: deserializeMetadata(parsedOutput),
306
- ...deserialized,
307
- });
308
- return __decorateServiceException(exception, body);
309
- };
310
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
311
- const body = parsedOutput.body;
312
- const deserialized = _json(body);
313
- const exception = new LimitExceededException({
314
- $metadata: deserializeMetadata(parsedOutput),
315
- ...deserialized,
316
- });
317
- return __decorateServiceException(exception, body);
318
- };
319
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
320
- const body = parsedOutput.body;
321
- const deserialized = _json(body);
322
- const exception = new ResourceInUseException({
323
- $metadata: deserializeMetadata(parsedOutput),
324
- ...deserialized,
325
- });
326
- return __decorateServiceException(exception, body);
327
- };
328
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
329
- const body = parsedOutput.body;
330
- const deserialized = _json(body);
331
- const exception = new ResourceNotFoundException({
332
- $metadata: deserializeMetadata(parsedOutput),
333
- ...deserialized,
334
- });
335
- return __decorateServiceException(exception, body);
336
- };
337
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
338
- const body = parsedOutput.body;
339
- const deserialized = _json(body);
340
- const exception = new ServiceUnavailableException({
341
- $metadata: deserializeMetadata(parsedOutput),
342
- ...deserialized,
343
- });
344
- return __decorateServiceException(exception, body);
345
- };
346
- const se_CreateDeliveryStreamInput = (input, context) => {
347
- return take(input, {
348
- AmazonOpenSearchServerlessDestinationConfiguration: _json,
349
- AmazonopensearchserviceDestinationConfiguration: _json,
350
- DatabaseSourceConfiguration: _json,
351
- DeliveryStreamEncryptionConfigurationInput: _json,
352
- DeliveryStreamName: [],
353
- DeliveryStreamType: [],
354
- DirectPutSourceConfiguration: _json,
355
- ElasticsearchDestinationConfiguration: _json,
356
- ExtendedS3DestinationConfiguration: (_) => se_ExtendedS3DestinationConfiguration(_, context),
357
- HttpEndpointDestinationConfiguration: _json,
358
- IcebergDestinationConfiguration: _json,
359
- KinesisStreamSourceConfiguration: _json,
360
- MSKSourceConfiguration: (_) => se_MSKSourceConfiguration(_, context),
361
- RedshiftDestinationConfiguration: _json,
362
- S3DestinationConfiguration: _json,
363
- SnowflakeDestinationConfiguration: _json,
364
- SplunkDestinationConfiguration: _json,
365
- Tags: _json,
366
- });
367
- };
368
- const se_DataFormatConversionConfiguration = (input, context) => {
369
- return take(input, {
370
- Enabled: [],
371
- InputFormatConfiguration: _json,
372
- OutputFormatConfiguration: (_) => se_OutputFormatConfiguration(_, context),
373
- SchemaConfiguration: _json,
374
- });
375
- };
376
- const se_ExtendedS3DestinationConfiguration = (input, context) => {
377
- return take(input, {
378
- BucketARN: [],
379
- BufferingHints: _json,
380
- CloudWatchLoggingOptions: _json,
381
- CompressionFormat: [],
382
- CustomTimeZone: [],
383
- DataFormatConversionConfiguration: (_) => se_DataFormatConversionConfiguration(_, context),
384
- DynamicPartitioningConfiguration: _json,
385
- EncryptionConfiguration: _json,
386
- ErrorOutputPrefix: [],
387
- FileExtension: [],
388
- Prefix: [],
389
- ProcessingConfiguration: _json,
390
- RoleARN: [],
391
- S3BackupConfiguration: _json,
392
- S3BackupMode: [],
393
- });
394
- };
395
- const se_ExtendedS3DestinationUpdate = (input, context) => {
396
- return take(input, {
397
- BucketARN: [],
398
- BufferingHints: _json,
399
- CloudWatchLoggingOptions: _json,
400
- CompressionFormat: [],
401
- CustomTimeZone: [],
402
- DataFormatConversionConfiguration: (_) => se_DataFormatConversionConfiguration(_, context),
403
- DynamicPartitioningConfiguration: _json,
404
- EncryptionConfiguration: _json,
405
- ErrorOutputPrefix: [],
406
- FileExtension: [],
407
- Prefix: [],
408
- ProcessingConfiguration: _json,
409
- RoleARN: [],
410
- S3BackupMode: [],
411
- S3BackupUpdate: _json,
412
- });
413
- };
414
- const se_MSKSourceConfiguration = (input, context) => {
415
- return take(input, {
416
- AuthenticationConfiguration: _json,
417
- MSKClusterARN: [],
418
- ReadFromTimestamp: (_) => _.getTime() / 1_000,
419
- TopicName: [],
420
- });
421
- };
422
- const se_OrcSerDe = (input, context) => {
423
- return take(input, {
424
- BlockSizeBytes: [],
425
- BloomFilterColumns: _json,
426
- BloomFilterFalsePositiveProbability: __serializeFloat,
427
- Compression: [],
428
- DictionaryKeyThreshold: __serializeFloat,
429
- EnablePadding: [],
430
- FormatVersion: [],
431
- PaddingTolerance: __serializeFloat,
432
- RowIndexStride: [],
433
- StripeSizeBytes: [],
434
- });
435
- };
436
- const se_OutputFormatConfiguration = (input, context) => {
437
- return take(input, {
438
- Serializer: (_) => se_Serializer(_, context),
439
- });
440
- };
441
- const se_PutRecordBatchInput = (input, context) => {
442
- return take(input, {
443
- DeliveryStreamName: [],
444
- Records: (_) => se_PutRecordBatchRequestEntryList(_, context),
445
- });
446
- };
447
- const se_PutRecordBatchRequestEntryList = (input, context) => {
448
- return input
449
- .filter((e) => e != null)
450
- .map((entry) => {
451
- return se__Record(entry, context);
452
- });
453
- };
454
- const se_PutRecordInput = (input, context) => {
455
- return take(input, {
456
- DeliveryStreamName: [],
457
- Record: (_) => se__Record(_, context),
458
- });
459
- };
460
- const se__Record = (input, context) => {
461
- return take(input, {
462
- Data: context.base64Encoder,
463
- });
464
- };
465
- const se_Serializer = (input, context) => {
466
- return take(input, {
467
- OrcSerDe: (_) => se_OrcSerDe(_, context),
468
- ParquetSerDe: _json,
469
- });
470
- };
471
- const se_UpdateDestinationInput = (input, context) => {
472
- return take(input, {
473
- AmazonOpenSearchServerlessDestinationUpdate: _json,
474
- AmazonopensearchserviceDestinationUpdate: _json,
475
- CurrentDeliveryStreamVersionId: [],
476
- DeliveryStreamName: [],
477
- DestinationId: [],
478
- ElasticsearchDestinationUpdate: _json,
479
- ExtendedS3DestinationUpdate: (_) => se_ExtendedS3DestinationUpdate(_, context),
480
- HttpEndpointDestinationUpdate: _json,
481
- IcebergDestinationUpdate: _json,
482
- RedshiftDestinationUpdate: _json,
483
- S3DestinationUpdate: _json,
484
- SnowflakeDestinationUpdate: _json,
485
- SplunkDestinationUpdate: _json,
486
- });
487
- };
488
- const de_DatabaseSnapshotInfo = (output, context) => {
489
- return take(output, {
490
- FailureDescription: _json,
491
- Id: __expectString,
492
- RequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
493
- RequestedBy: __expectString,
494
- Status: __expectString,
495
- Table: __expectString,
496
- });
497
- };
498
- const de_DatabaseSnapshotInfoList = (output, context) => {
499
- const retVal = (output || [])
500
- .filter((e) => e != null)
501
- .map((entry) => {
502
- return de_DatabaseSnapshotInfo(entry, context);
503
- });
504
- return retVal;
505
- };
506
- const de_DatabaseSourceDescription = (output, context) => {
507
- return take(output, {
508
- Columns: _json,
509
- DatabaseSourceAuthenticationConfiguration: _json,
510
- DatabaseSourceVPCConfiguration: _json,
511
- Databases: _json,
512
- Endpoint: __expectString,
513
- Port: __expectInt32,
514
- SSLMode: __expectString,
515
- SnapshotInfo: (_) => de_DatabaseSnapshotInfoList(_, context),
516
- SnapshotWatermarkTable: __expectString,
517
- SurrogateKeys: _json,
518
- Tables: _json,
519
- Type: __expectString,
520
- });
521
- };
522
- const de_DataFormatConversionConfiguration = (output, context) => {
523
- return take(output, {
524
- Enabled: __expectBoolean,
525
- InputFormatConfiguration: _json,
526
- OutputFormatConfiguration: (_) => de_OutputFormatConfiguration(_, context),
527
- SchemaConfiguration: _json,
528
- });
529
- };
530
- const de_DeliveryStreamDescription = (output, context) => {
531
- return take(output, {
532
- CreateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
533
- DeliveryStreamARN: __expectString,
534
- DeliveryStreamEncryptionConfiguration: _json,
535
- DeliveryStreamName: __expectString,
536
- DeliveryStreamStatus: __expectString,
537
- DeliveryStreamType: __expectString,
538
- Destinations: (_) => de_DestinationDescriptionList(_, context),
539
- FailureDescription: _json,
540
- HasMoreDestinations: __expectBoolean,
541
- LastUpdateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
542
- Source: (_) => de_SourceDescription(_, context),
543
- VersionId: __expectString,
544
- });
545
- };
546
- const de_DescribeDeliveryStreamOutput = (output, context) => {
547
- return take(output, {
548
- DeliveryStreamDescription: (_) => de_DeliveryStreamDescription(_, context),
549
- });
550
- };
551
- const de_DestinationDescription = (output, context) => {
552
- return take(output, {
553
- AmazonOpenSearchServerlessDestinationDescription: _json,
554
- AmazonopensearchserviceDestinationDescription: _json,
555
- DestinationId: __expectString,
556
- ElasticsearchDestinationDescription: _json,
557
- ExtendedS3DestinationDescription: (_) => de_ExtendedS3DestinationDescription(_, context),
558
- HttpEndpointDestinationDescription: _json,
559
- IcebergDestinationDescription: _json,
560
- RedshiftDestinationDescription: _json,
561
- S3DestinationDescription: _json,
562
- SnowflakeDestinationDescription: _json,
563
- SplunkDestinationDescription: _json,
564
- });
565
- };
566
- const de_DestinationDescriptionList = (output, context) => {
567
- const retVal = (output || [])
568
- .filter((e) => e != null)
569
- .map((entry) => {
570
- return de_DestinationDescription(entry, context);
571
- });
572
- return retVal;
573
- };
574
- const de_ExtendedS3DestinationDescription = (output, context) => {
575
- return take(output, {
576
- BucketARN: __expectString,
577
- BufferingHints: _json,
578
- CloudWatchLoggingOptions: _json,
579
- CompressionFormat: __expectString,
580
- CustomTimeZone: __expectString,
581
- DataFormatConversionConfiguration: (_) => de_DataFormatConversionConfiguration(_, context),
582
- DynamicPartitioningConfiguration: _json,
583
- EncryptionConfiguration: _json,
584
- ErrorOutputPrefix: __expectString,
585
- FileExtension: __expectString,
586
- Prefix: __expectString,
587
- ProcessingConfiguration: _json,
588
- RoleARN: __expectString,
589
- S3BackupDescription: _json,
590
- S3BackupMode: __expectString,
591
- });
592
- };
593
- const de_KinesisStreamSourceDescription = (output, context) => {
594
- return take(output, {
595
- DeliveryStartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
596
- KinesisStreamARN: __expectString,
597
- RoleARN: __expectString,
598
- });
599
- };
600
- const de_MSKSourceDescription = (output, context) => {
601
- return take(output, {
602
- AuthenticationConfiguration: _json,
603
- DeliveryStartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
604
- MSKClusterARN: __expectString,
605
- ReadFromTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
606
- TopicName: __expectString,
607
- });
608
- };
609
- const de_OrcSerDe = (output, context) => {
610
- return take(output, {
611
- BlockSizeBytes: __expectInt32,
612
- BloomFilterColumns: _json,
613
- BloomFilterFalsePositiveProbability: __limitedParseDouble,
614
- Compression: __expectString,
615
- DictionaryKeyThreshold: __limitedParseDouble,
616
- EnablePadding: __expectBoolean,
617
- FormatVersion: __expectString,
618
- PaddingTolerance: __limitedParseDouble,
619
- RowIndexStride: __expectInt32,
620
- StripeSizeBytes: __expectInt32,
621
- });
622
- };
623
- const de_OutputFormatConfiguration = (output, context) => {
624
- return take(output, {
625
- Serializer: (_) => de_Serializer(_, context),
626
- });
627
- };
628
- const de_Serializer = (output, context) => {
629
- return take(output, {
630
- OrcSerDe: (_) => de_OrcSerDe(_, context),
631
- ParquetSerDe: _json,
632
- });
633
- };
634
- const de_SourceDescription = (output, context) => {
635
- return take(output, {
636
- DatabaseSourceDescription: (_) => de_DatabaseSourceDescription(_, context),
637
- DirectPutSourceDescription: _json,
638
- KinesisStreamSourceDescription: (_) => de_KinesisStreamSourceDescription(_, context),
639
- MSKSourceDescription: (_) => de_MSKSourceDescription(_, context),
640
- });
641
- };
642
- const deserializeMetadata = (output) => ({
643
- httpStatusCode: output.statusCode,
644
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
645
- extendedRequestId: output.headers["x-amz-id-2"],
646
- cfId: output.headers["x-amz-cf-id"],
647
- });
648
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
649
- const throwDefaultError = withBaseException(__BaseException);
650
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
651
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
- const contents = {
653
- protocol,
654
- hostname,
655
- port,
656
- method: "POST",
657
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
658
- headers,
659
- };
660
- if (resolvedHostname !== undefined) {
661
- contents.hostname = resolvedHostname;
662
- }
663
- if (body !== undefined) {
664
- contents.body = body;
665
- }
666
- return new __HttpRequest(contents);
667
- };
668
- function sharedHeaders(operation) {
669
- return {
670
- "content-type": "application/x-amz-json-1.1",
671
- "x-amz-target": `Firehose_20150804.${operation}`,
672
- };
673
- }