@aws-sdk/client-timestream-query 3.927.0 → 3.929.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 (39) hide show
  1. package/dist-cjs/index.js +766 -824
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/TimestreamQueryClient.js +2 -0
  4. package/dist-es/commands/CancelQueryCommand.js +2 -6
  5. package/dist-es/commands/CreateScheduledQueryCommand.js +2 -7
  6. package/dist-es/commands/DeleteScheduledQueryCommand.js +2 -6
  7. package/dist-es/commands/DescribeAccountSettingsCommand.js +2 -6
  8. package/dist-es/commands/DescribeEndpointsCommand.js +3 -9
  9. package/dist-es/commands/DescribeScheduledQueryCommand.js +2 -7
  10. package/dist-es/commands/ExecuteScheduledQueryCommand.js +2 -7
  11. package/dist-es/commands/ListScheduledQueriesCommand.js +2 -6
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -6
  13. package/dist-es/commands/PrepareQueryCommand.js +2 -7
  14. package/dist-es/commands/QueryCommand.js +2 -7
  15. package/dist-es/commands/TagResourceCommand.js +2 -6
  16. package/dist-es/commands/UntagResourceCommand.js +2 -6
  17. package/dist-es/commands/UpdateAccountSettingsCommand.js +2 -6
  18. package/dist-es/commands/UpdateScheduledQueryCommand.js +2 -6
  19. package/dist-es/models/models_0.js +0 -31
  20. package/dist-es/runtimeConfig.shared.js +7 -0
  21. package/dist-es/schemas/schemas_0.js +715 -0
  22. package/dist-types/TimestreamQueryClient.d.ts +10 -1
  23. package/dist-types/models/models_0.d.ts +0 -28
  24. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  25. package/dist-types/runtimeConfig.d.ts +1 -0
  26. package/dist-types/runtimeConfig.native.d.ts +1 -0
  27. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  28. package/dist-types/schemas/schemas_0.d.ts +115 -0
  29. package/dist-types/ts3.4/TimestreamQueryClient.d.ts +4 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +0 -19
  31. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  35. package/dist-types/ts3.4/schemas/schemas_0.d.ts +121 -0
  36. package/package.json +5 -6
  37. package/dist-es/protocols/Aws_json1_0.js +0 -693
  38. package/dist-types/protocols/Aws_json1_0.d.ts +0 -137
  39. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -185
@@ -1,693 +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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, QueryExecutionException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { TimestreamQueryServiceException as __BaseException } from "../models/TimestreamQueryServiceException";
7
- export const se_CancelQueryCommand = async (input, context) => {
8
- const headers = sharedHeaders("CancelQuery");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_CreateScheduledQueryCommand = async (input, context) => {
14
- const headers = sharedHeaders("CreateScheduledQuery");
15
- let body;
16
- body = JSON.stringify(se_CreateScheduledQueryRequest(input, context));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_DeleteScheduledQueryCommand = async (input, context) => {
20
- const headers = sharedHeaders("DeleteScheduledQuery");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_DescribeAccountSettingsCommand = async (input, context) => {
26
- const headers = sharedHeaders("DescribeAccountSettings");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_DescribeEndpointsCommand = async (input, context) => {
32
- const headers = sharedHeaders("DescribeEndpoints");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_DescribeScheduledQueryCommand = async (input, context) => {
38
- const headers = sharedHeaders("DescribeScheduledQuery");
39
- let body;
40
- body = JSON.stringify(_json(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_ExecuteScheduledQueryCommand = async (input, context) => {
44
- const headers = sharedHeaders("ExecuteScheduledQuery");
45
- let body;
46
- body = JSON.stringify(se_ExecuteScheduledQueryRequest(input, context));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_ListScheduledQueriesCommand = async (input, context) => {
50
- const headers = sharedHeaders("ListScheduledQueries");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_ListTagsForResourceCommand = async (input, context) => {
56
- const headers = sharedHeaders("ListTagsForResource");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_PrepareQueryCommand = async (input, context) => {
62
- const headers = sharedHeaders("PrepareQuery");
63
- let body;
64
- body = JSON.stringify(_json(input));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_QueryCommand = async (input, context) => {
68
- const headers = sharedHeaders("Query");
69
- let body;
70
- body = JSON.stringify(se_QueryRequest(input, context));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_TagResourceCommand = async (input, context) => {
74
- const headers = sharedHeaders("TagResource");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_UntagResourceCommand = async (input, context) => {
80
- const headers = sharedHeaders("UntagResource");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_UpdateAccountSettingsCommand = async (input, context) => {
86
- const headers = sharedHeaders("UpdateAccountSettings");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_UpdateScheduledQueryCommand = async (input, context) => {
92
- const headers = sharedHeaders("UpdateScheduledQuery");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const de_CancelQueryCommand = async (output, context) => {
98
- if (output.statusCode >= 300) {
99
- return de_CommandError(output, context);
100
- }
101
- const data = await parseBody(output.body, context);
102
- let contents = {};
103
- contents = _json(data);
104
- const response = {
105
- $metadata: deserializeMetadata(output),
106
- ...contents,
107
- };
108
- return response;
109
- };
110
- export const de_CreateScheduledQueryCommand = async (output, context) => {
111
- if (output.statusCode >= 300) {
112
- return de_CommandError(output, context);
113
- }
114
- const data = await parseBody(output.body, context);
115
- let contents = {};
116
- contents = _json(data);
117
- const response = {
118
- $metadata: deserializeMetadata(output),
119
- ...contents,
120
- };
121
- return response;
122
- };
123
- export const de_DeleteScheduledQueryCommand = async (output, context) => {
124
- if (output.statusCode >= 300) {
125
- return de_CommandError(output, context);
126
- }
127
- await collectBody(output.body, context);
128
- const response = {
129
- $metadata: deserializeMetadata(output),
130
- };
131
- return response;
132
- };
133
- export const de_DescribeAccountSettingsCommand = async (output, context) => {
134
- if (output.statusCode >= 300) {
135
- return de_CommandError(output, context);
136
- }
137
- const data = await parseBody(output.body, context);
138
- let contents = {};
139
- contents = _json(data);
140
- const response = {
141
- $metadata: deserializeMetadata(output),
142
- ...contents,
143
- };
144
- return response;
145
- };
146
- export const de_DescribeEndpointsCommand = async (output, context) => {
147
- if (output.statusCode >= 300) {
148
- return de_CommandError(output, context);
149
- }
150
- const data = await parseBody(output.body, context);
151
- let contents = {};
152
- contents = _json(data);
153
- const response = {
154
- $metadata: deserializeMetadata(output),
155
- ...contents,
156
- };
157
- return response;
158
- };
159
- export const de_DescribeScheduledQueryCommand = async (output, context) => {
160
- if (output.statusCode >= 300) {
161
- return de_CommandError(output, context);
162
- }
163
- const data = await parseBody(output.body, context);
164
- let contents = {};
165
- contents = de_DescribeScheduledQueryResponse(data, context);
166
- const response = {
167
- $metadata: deserializeMetadata(output),
168
- ...contents,
169
- };
170
- return response;
171
- };
172
- export const de_ExecuteScheduledQueryCommand = async (output, context) => {
173
- if (output.statusCode >= 300) {
174
- return de_CommandError(output, context);
175
- }
176
- await collectBody(output.body, context);
177
- const response = {
178
- $metadata: deserializeMetadata(output),
179
- };
180
- return response;
181
- };
182
- export const de_ListScheduledQueriesCommand = 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 = de_ListScheduledQueriesResponse(data, context);
189
- const response = {
190
- $metadata: deserializeMetadata(output),
191
- ...contents,
192
- };
193
- return response;
194
- };
195
- export const de_ListTagsForResourceCommand = 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_PrepareQueryCommand = 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 = de_PrepareQueryResponse(data, context);
215
- const response = {
216
- $metadata: deserializeMetadata(output),
217
- ...contents,
218
- };
219
- return response;
220
- };
221
- export const de_QueryCommand = 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 = de_QueryResponse(data, context);
228
- const response = {
229
- $metadata: deserializeMetadata(output),
230
- ...contents,
231
- };
232
- return response;
233
- };
234
- export const de_TagResourceCommand = async (output, context) => {
235
- if (output.statusCode >= 300) {
236
- return de_CommandError(output, context);
237
- }
238
- const data = await parseBody(output.body, context);
239
- let contents = {};
240
- contents = _json(data);
241
- const response = {
242
- $metadata: deserializeMetadata(output),
243
- ...contents,
244
- };
245
- return response;
246
- };
247
- export const de_UntagResourceCommand = async (output, context) => {
248
- if (output.statusCode >= 300) {
249
- return de_CommandError(output, context);
250
- }
251
- const data = await parseBody(output.body, context);
252
- let contents = {};
253
- contents = _json(data);
254
- const response = {
255
- $metadata: deserializeMetadata(output),
256
- ...contents,
257
- };
258
- return response;
259
- };
260
- export const de_UpdateAccountSettingsCommand = async (output, context) => {
261
- if (output.statusCode >= 300) {
262
- return de_CommandError(output, context);
263
- }
264
- const data = await parseBody(output.body, context);
265
- let contents = {};
266
- contents = _json(data);
267
- const response = {
268
- $metadata: deserializeMetadata(output),
269
- ...contents,
270
- };
271
- return response;
272
- };
273
- export const de_UpdateScheduledQueryCommand = async (output, context) => {
274
- if (output.statusCode >= 300) {
275
- return de_CommandError(output, context);
276
- }
277
- await collectBody(output.body, context);
278
- const response = {
279
- $metadata: deserializeMetadata(output),
280
- };
281
- return response;
282
- };
283
- const de_CommandError = async (output, context) => {
284
- const parsedOutput = {
285
- ...output,
286
- body: await parseErrorBody(output.body, context),
287
- };
288
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
289
- switch (errorCode) {
290
- case "AccessDeniedException":
291
- case "com.amazonaws.timestreamquery#AccessDeniedException":
292
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
293
- case "InternalServerException":
294
- case "com.amazonaws.timestreamquery#InternalServerException":
295
- throw await de_InternalServerExceptionRes(parsedOutput, context);
296
- case "InvalidEndpointException":
297
- case "com.amazonaws.timestreamquery#InvalidEndpointException":
298
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
299
- case "ThrottlingException":
300
- case "com.amazonaws.timestreamquery#ThrottlingException":
301
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
302
- case "ValidationException":
303
- case "com.amazonaws.timestreamquery#ValidationException":
304
- throw await de_ValidationExceptionRes(parsedOutput, context);
305
- case "ConflictException":
306
- case "com.amazonaws.timestreamquery#ConflictException":
307
- throw await de_ConflictExceptionRes(parsedOutput, context);
308
- case "ServiceQuotaExceededException":
309
- case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
310
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
311
- case "ResourceNotFoundException":
312
- case "com.amazonaws.timestreamquery#ResourceNotFoundException":
313
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
314
- case "QueryExecutionException":
315
- case "com.amazonaws.timestreamquery#QueryExecutionException":
316
- throw await de_QueryExecutionExceptionRes(parsedOutput, context);
317
- default:
318
- const parsedBody = parsedOutput.body;
319
- return throwDefaultError({
320
- output,
321
- parsedBody,
322
- errorCode,
323
- });
324
- }
325
- };
326
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
327
- const body = parsedOutput.body;
328
- const deserialized = _json(body);
329
- const exception = new AccessDeniedException({
330
- $metadata: deserializeMetadata(parsedOutput),
331
- ...deserialized,
332
- });
333
- return __decorateServiceException(exception, body);
334
- };
335
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
336
- const body = parsedOutput.body;
337
- const deserialized = _json(body);
338
- const exception = new ConflictException({
339
- $metadata: deserializeMetadata(parsedOutput),
340
- ...deserialized,
341
- });
342
- return __decorateServiceException(exception, body);
343
- };
344
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
345
- const body = parsedOutput.body;
346
- const deserialized = _json(body);
347
- const exception = new InternalServerException({
348
- $metadata: deserializeMetadata(parsedOutput),
349
- ...deserialized,
350
- });
351
- return __decorateServiceException(exception, body);
352
- };
353
- const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
354
- const body = parsedOutput.body;
355
- const deserialized = _json(body);
356
- const exception = new InvalidEndpointException({
357
- $metadata: deserializeMetadata(parsedOutput),
358
- ...deserialized,
359
- });
360
- return __decorateServiceException(exception, body);
361
- };
362
- const de_QueryExecutionExceptionRes = async (parsedOutput, context) => {
363
- const body = parsedOutput.body;
364
- const deserialized = _json(body);
365
- const exception = new QueryExecutionException({
366
- $metadata: deserializeMetadata(parsedOutput),
367
- ...deserialized,
368
- });
369
- return __decorateServiceException(exception, body);
370
- };
371
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
372
- const body = parsedOutput.body;
373
- const deserialized = _json(body);
374
- const exception = new ResourceNotFoundException({
375
- $metadata: deserializeMetadata(parsedOutput),
376
- ...deserialized,
377
- });
378
- return __decorateServiceException(exception, body);
379
- };
380
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
381
- const body = parsedOutput.body;
382
- const deserialized = _json(body);
383
- const exception = new ServiceQuotaExceededException({
384
- $metadata: deserializeMetadata(parsedOutput),
385
- ...deserialized,
386
- });
387
- return __decorateServiceException(exception, body);
388
- };
389
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
390
- const body = parsedOutput.body;
391
- const deserialized = _json(body);
392
- const exception = new ThrottlingException({
393
- $metadata: deserializeMetadata(parsedOutput),
394
- ...deserialized,
395
- });
396
- return __decorateServiceException(exception, body);
397
- };
398
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
399
- const body = parsedOutput.body;
400
- const deserialized = _json(body);
401
- const exception = new ValidationException({
402
- $metadata: deserializeMetadata(parsedOutput),
403
- ...deserialized,
404
- });
405
- return __decorateServiceException(exception, body);
406
- };
407
- const se_CreateScheduledQueryRequest = (input, context) => {
408
- return take(input, {
409
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
410
- ErrorReportConfiguration: _json,
411
- KmsKeyId: [],
412
- Name: [],
413
- NotificationConfiguration: _json,
414
- QueryString: [],
415
- ScheduleConfiguration: _json,
416
- ScheduledQueryExecutionRoleArn: [],
417
- Tags: _json,
418
- TargetConfiguration: _json,
419
- });
420
- };
421
- const se_ExecuteScheduledQueryRequest = (input, context) => {
422
- return take(input, {
423
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
424
- InvocationTime: (_) => _.getTime() / 1_000,
425
- QueryInsights: _json,
426
- ScheduledQueryArn: [],
427
- });
428
- };
429
- const se_QueryRequest = (input, context) => {
430
- return take(input, {
431
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
432
- MaxRows: [],
433
- NextToken: [],
434
- QueryInsights: _json,
435
- QueryString: [],
436
- });
437
- };
438
- const de_ColumnInfo = (output, context) => {
439
- return take(output, {
440
- Name: __expectString,
441
- Type: (_) => de_Type(_, context),
442
- });
443
- };
444
- const de_ColumnInfoList = (output, context) => {
445
- const retVal = (output || [])
446
- .filter((e) => e != null)
447
- .map((entry) => {
448
- return de_ColumnInfo(entry, context);
449
- });
450
- return retVal;
451
- };
452
- const de_Datum = (output, context) => {
453
- return take(output, {
454
- ArrayValue: (_) => de_DatumList(_, context),
455
- NullValue: __expectBoolean,
456
- RowValue: (_) => de_Row(_, context),
457
- ScalarValue: __expectString,
458
- TimeSeriesValue: (_) => de_TimeSeriesDataPointList(_, context),
459
- });
460
- };
461
- const de_DatumList = (output, context) => {
462
- const retVal = (output || [])
463
- .filter((e) => e != null)
464
- .map((entry) => {
465
- return de_Datum(entry, context);
466
- });
467
- return retVal;
468
- };
469
- const de_DescribeScheduledQueryResponse = (output, context) => {
470
- return take(output, {
471
- ScheduledQuery: (_) => de_ScheduledQueryDescription(_, context),
472
- });
473
- };
474
- const de_ListScheduledQueriesResponse = (output, context) => {
475
- return take(output, {
476
- NextToken: __expectString,
477
- ScheduledQueries: (_) => de_ScheduledQueryList(_, context),
478
- });
479
- };
480
- const de_ParameterMapping = (output, context) => {
481
- return take(output, {
482
- Name: __expectString,
483
- Type: (_) => de_Type(_, context),
484
- });
485
- };
486
- const de_ParameterMappingList = (output, context) => {
487
- const retVal = (output || [])
488
- .filter((e) => e != null)
489
- .map((entry) => {
490
- return de_ParameterMapping(entry, context);
491
- });
492
- return retVal;
493
- };
494
- const de_PrepareQueryResponse = (output, context) => {
495
- return take(output, {
496
- Columns: (_) => de_SelectColumnList(_, context),
497
- Parameters: (_) => de_ParameterMappingList(_, context),
498
- QueryString: __expectString,
499
- });
500
- };
501
- const de_QueryInsightsResponse = (output, context) => {
502
- return take(output, {
503
- OutputBytes: __expectLong,
504
- OutputRows: __expectLong,
505
- QuerySpatialCoverage: (_) => de_QuerySpatialCoverage(_, context),
506
- QueryTableCount: __expectLong,
507
- QueryTemporalRange: _json,
508
- UnloadPartitionCount: __expectLong,
509
- UnloadWrittenBytes: __expectLong,
510
- UnloadWrittenRows: __expectLong,
511
- });
512
- };
513
- const de_QueryResponse = (output, context) => {
514
- return take(output, {
515
- ColumnInfo: (_) => de_ColumnInfoList(_, context),
516
- NextToken: __expectString,
517
- QueryId: __expectString,
518
- QueryInsightsResponse: (_) => de_QueryInsightsResponse(_, context),
519
- QueryStatus: (_) => de_QueryStatus(_, context),
520
- Rows: (_) => de_RowList(_, context),
521
- });
522
- };
523
- const de_QuerySpatialCoverage = (output, context) => {
524
- return take(output, {
525
- Max: (_) => de_QuerySpatialCoverageMax(_, context),
526
- });
527
- };
528
- const de_QuerySpatialCoverageMax = (output, context) => {
529
- return take(output, {
530
- PartitionKey: _json,
531
- TableArn: __expectString,
532
- Value: __limitedParseDouble,
533
- });
534
- };
535
- const de_QueryStatus = (output, context) => {
536
- return take(output, {
537
- CumulativeBytesMetered: __expectLong,
538
- CumulativeBytesScanned: __expectLong,
539
- ProgressPercentage: __limitedParseDouble,
540
- });
541
- };
542
- const de_Row = (output, context) => {
543
- return take(output, {
544
- Data: (_) => de_DatumList(_, context),
545
- });
546
- };
547
- const de_RowList = (output, context) => {
548
- const retVal = (output || [])
549
- .filter((e) => e != null)
550
- .map((entry) => {
551
- return de_Row(entry, context);
552
- });
553
- return retVal;
554
- };
555
- const de_ScheduledQuery = (output, context) => {
556
- return take(output, {
557
- Arn: __expectString,
558
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
559
- ErrorReportConfiguration: _json,
560
- LastRunStatus: __expectString,
561
- Name: __expectString,
562
- NextInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
563
- PreviousInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
564
- State: __expectString,
565
- TargetDestination: _json,
566
- });
567
- };
568
- const de_ScheduledQueryDescription = (output, context) => {
569
- return take(output, {
570
- Arn: __expectString,
571
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
572
- ErrorReportConfiguration: _json,
573
- KmsKeyId: __expectString,
574
- LastRunSummary: (_) => de_ScheduledQueryRunSummary(_, context),
575
- Name: __expectString,
576
- NextInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
577
- NotificationConfiguration: _json,
578
- PreviousInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
579
- QueryString: __expectString,
580
- RecentlyFailedRuns: (_) => de_ScheduledQueryRunSummaryList(_, context),
581
- ScheduleConfiguration: _json,
582
- ScheduledQueryExecutionRoleArn: __expectString,
583
- State: __expectString,
584
- TargetConfiguration: _json,
585
- });
586
- };
587
- const de_ScheduledQueryInsightsResponse = (output, context) => {
588
- return take(output, {
589
- OutputBytes: __expectLong,
590
- OutputRows: __expectLong,
591
- QuerySpatialCoverage: (_) => de_QuerySpatialCoverage(_, context),
592
- QueryTableCount: __expectLong,
593
- QueryTemporalRange: _json,
594
- });
595
- };
596
- const de_ScheduledQueryList = (output, context) => {
597
- const retVal = (output || [])
598
- .filter((e) => e != null)
599
- .map((entry) => {
600
- return de_ScheduledQuery(entry, context);
601
- });
602
- return retVal;
603
- };
604
- const de_ScheduledQueryRunSummary = (output, context) => {
605
- return take(output, {
606
- ErrorReportLocation: _json,
607
- ExecutionStats: _json,
608
- FailureReason: __expectString,
609
- InvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
610
- QueryInsightsResponse: (_) => de_ScheduledQueryInsightsResponse(_, context),
611
- RunStatus: __expectString,
612
- TriggerTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
613
- });
614
- };
615
- const de_ScheduledQueryRunSummaryList = (output, context) => {
616
- const retVal = (output || [])
617
- .filter((e) => e != null)
618
- .map((entry) => {
619
- return de_ScheduledQueryRunSummary(entry, context);
620
- });
621
- return retVal;
622
- };
623
- const de_SelectColumn = (output, context) => {
624
- return take(output, {
625
- Aliased: __expectBoolean,
626
- DatabaseName: __expectString,
627
- Name: __expectString,
628
- TableName: __expectString,
629
- Type: (_) => de_Type(_, context),
630
- });
631
- };
632
- const de_SelectColumnList = (output, context) => {
633
- const retVal = (output || [])
634
- .filter((e) => e != null)
635
- .map((entry) => {
636
- return de_SelectColumn(entry, context);
637
- });
638
- return retVal;
639
- };
640
- const de_TimeSeriesDataPoint = (output, context) => {
641
- return take(output, {
642
- Time: __expectString,
643
- Value: (_) => de_Datum(_, context),
644
- });
645
- };
646
- const de_TimeSeriesDataPointList = (output, context) => {
647
- const retVal = (output || [])
648
- .filter((e) => e != null)
649
- .map((entry) => {
650
- return de_TimeSeriesDataPoint(entry, context);
651
- });
652
- return retVal;
653
- };
654
- const de_Type = (output, context) => {
655
- return take(output, {
656
- ArrayColumnInfo: (_) => de_ColumnInfo(_, context),
657
- RowColumnInfo: (_) => de_ColumnInfoList(_, context),
658
- ScalarType: __expectString,
659
- TimeSeriesMeasureValueColumnInfo: (_) => de_ColumnInfo(_, context),
660
- });
661
- };
662
- const deserializeMetadata = (output) => ({
663
- httpStatusCode: output.statusCode,
664
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
665
- extendedRequestId: output.headers["x-amz-id-2"],
666
- cfId: output.headers["x-amz-cf-id"],
667
- });
668
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
669
- const throwDefaultError = withBaseException(__BaseException);
670
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
671
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
672
- const contents = {
673
- protocol,
674
- hostname,
675
- port,
676
- method: "POST",
677
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
678
- headers,
679
- };
680
- if (resolvedHostname !== undefined) {
681
- contents.hostname = resolvedHostname;
682
- }
683
- if (body !== undefined) {
684
- contents.body = body;
685
- }
686
- return new __HttpRequest(contents);
687
- };
688
- function sharedHeaders(operation) {
689
- return {
690
- "content-type": "application/x-amz-json-1.0",
691
- "x-amz-target": `Timestream_20181101.${operation}`,
692
- };
693
- }