@aws-sdk/client-timestream-query 3.899.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +1389 -1555
  2. package/package.json +39 -39
package/dist-cjs/index.js CHANGED
@@ -1,1607 +1,1441 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- CancelQueryCommand: () => CancelQueryCommand,
26
- ComputeMode: () => ComputeMode,
27
- ConflictException: () => ConflictException,
28
- CreateScheduledQueryCommand: () => CreateScheduledQueryCommand,
29
- CreateScheduledQueryRequestFilterSensitiveLog: () => CreateScheduledQueryRequestFilterSensitiveLog,
30
- DeleteScheduledQueryCommand: () => DeleteScheduledQueryCommand,
31
- DescribeAccountSettingsCommand: () => DescribeAccountSettingsCommand,
32
- DescribeEndpointsCommand: () => DescribeEndpointsCommand,
33
- DescribeScheduledQueryCommand: () => DescribeScheduledQueryCommand,
34
- DescribeScheduledQueryResponseFilterSensitiveLog: () => DescribeScheduledQueryResponseFilterSensitiveLog,
35
- DimensionValueType: () => DimensionValueType,
36
- ExecuteScheduledQueryCommand: () => ExecuteScheduledQueryCommand,
37
- ExecuteScheduledQueryRequestFilterSensitiveLog: () => ExecuteScheduledQueryRequestFilterSensitiveLog,
38
- InternalServerException: () => InternalServerException,
39
- InvalidEndpointException: () => InvalidEndpointException,
40
- LastUpdateStatus: () => LastUpdateStatus,
41
- ListScheduledQueriesCommand: () => ListScheduledQueriesCommand,
42
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
43
- MeasureValueType: () => MeasureValueType,
44
- PrepareQueryCommand: () => PrepareQueryCommand,
45
- PrepareQueryRequestFilterSensitiveLog: () => PrepareQueryRequestFilterSensitiveLog,
46
- PrepareQueryResponseFilterSensitiveLog: () => PrepareQueryResponseFilterSensitiveLog,
47
- QueryCommand: () => QueryCommand,
48
- QueryExecutionException: () => QueryExecutionException,
49
- QueryInsightsMode: () => QueryInsightsMode,
50
- QueryPricingModel: () => QueryPricingModel,
51
- QueryRequestFilterSensitiveLog: () => QueryRequestFilterSensitiveLog,
52
- ResourceNotFoundException: () => ResourceNotFoundException,
53
- S3EncryptionOption: () => S3EncryptionOption,
54
- ScalarMeasureValueType: () => ScalarMeasureValueType,
55
- ScalarType: () => ScalarType,
56
- ScheduledQueryDescriptionFilterSensitiveLog: () => ScheduledQueryDescriptionFilterSensitiveLog,
57
- ScheduledQueryInsightsMode: () => ScheduledQueryInsightsMode,
58
- ScheduledQueryRunStatus: () => ScheduledQueryRunStatus,
59
- ScheduledQueryState: () => ScheduledQueryState,
60
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
61
- TagResourceCommand: () => TagResourceCommand,
62
- ThrottlingException: () => ThrottlingException,
63
- TimestreamQuery: () => TimestreamQuery,
64
- TimestreamQueryClient: () => TimestreamQueryClient,
65
- TimestreamQueryServiceException: () => TimestreamQueryServiceException,
66
- UntagResourceCommand: () => UntagResourceCommand,
67
- UpdateAccountSettingsCommand: () => UpdateAccountSettingsCommand,
68
- UpdateScheduledQueryCommand: () => UpdateScheduledQueryCommand,
69
- ValidationException: () => ValidationException,
70
- __Client: () => import_smithy_client.Client,
71
- paginateListScheduledQueries: () => paginateListScheduledQueries,
72
- paginateListTagsForResource: () => paginateListTagsForResource,
73
- paginateQuery: () => paginateQuery
74
- });
75
- module.exports = __toCommonJS(index_exports);
76
-
77
- // src/TimestreamQueryClient.ts
78
- var import_middleware_endpoint_discovery = require("@aws-sdk/middleware-endpoint-discovery");
79
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
80
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
81
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
82
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
83
- var import_config_resolver = require("@smithy/config-resolver");
84
- var import_core2 = require("@smithy/core");
85
- var import_middleware_content_length = require("@smithy/middleware-content-length");
86
-
87
- var import_middleware_retry = require("@smithy/middleware-retry");
88
-
89
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
90
-
91
- // src/commands/DescribeEndpointsCommand.ts
92
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
93
- var import_middleware_serde = require("@smithy/middleware-serde");
94
-
95
-
96
- // src/endpoint/EndpointParameters.ts
97
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
98
- return Object.assign(options, {
99
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
100
- useFipsEndpoint: options.useFipsEndpoint ?? false,
101
- defaultSigningName: "timestream"
102
- });
103
- }, "resolveClientEndpointParameters");
104
- var commonParams = {
105
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
106
- Endpoint: { type: "builtInParams", name: "endpoint" },
107
- Region: { type: "builtInParams", name: "region" },
108
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareEndpointDiscovery = require('@aws-sdk/middleware-endpoint-discovery');
4
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
5
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
6
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
7
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
8
+ var configResolver = require('@smithy/config-resolver');
9
+ var core$1 = require('@smithy/core');
10
+ var middlewareContentLength = require('@smithy/middleware-content-length');
11
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
+ var middlewareRetry = require('@smithy/middleware-retry');
13
+ var smithyClient = require('@smithy/smithy-client');
14
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
+ var middlewareSerde = require('@smithy/middleware-serde');
16
+ var core = require('@aws-sdk/core');
17
+ var protocolHttp = require('@smithy/protocol-http');
18
+ var uuid = require('@smithy/uuid');
19
+ var runtimeConfig = require('./runtimeConfig');
20
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
21
+
22
+ const resolveClientEndpointParameters = (options) => {
23
+ return Object.assign(options, {
24
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
26
+ defaultSigningName: "timestream",
27
+ });
28
+ };
29
+ const commonParams = {
30
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
31
+ Endpoint: { type: "builtInParams", name: "endpoint" },
32
+ Region: { type: "builtInParams", name: "region" },
33
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
109
34
  };
110
35
 
111
- // src/protocols/Aws_json1_0.ts
112
- var import_core = require("@aws-sdk/core");
113
- var import_protocol_http = require("@smithy/protocol-http");
114
-
115
- var import_uuid = require("@smithy/uuid");
116
-
117
- // src/models/models_0.ts
118
-
36
+ class TimestreamQueryServiceException extends smithyClient.ServiceException {
37
+ constructor(options) {
38
+ super(options);
39
+ Object.setPrototypeOf(this, TimestreamQueryServiceException.prototype);
40
+ }
41
+ }
119
42
 
120
- // src/models/TimestreamQueryServiceException.ts
121
- var import_smithy_client = require("@smithy/smithy-client");
122
- var TimestreamQueryServiceException = class _TimestreamQueryServiceException extends import_smithy_client.ServiceException {
123
- static {
124
- __name(this, "TimestreamQueryServiceException");
125
- }
126
- /**
127
- * @internal
128
- */
129
- constructor(options) {
130
- super(options);
131
- Object.setPrototypeOf(this, _TimestreamQueryServiceException.prototype);
132
- }
43
+ class AccessDeniedException extends TimestreamQueryServiceException {
44
+ name = "AccessDeniedException";
45
+ $fault = "client";
46
+ Message;
47
+ constructor(opts) {
48
+ super({
49
+ name: "AccessDeniedException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
54
+ this.Message = opts.Message;
55
+ }
56
+ }
57
+ class InternalServerException extends TimestreamQueryServiceException {
58
+ name = "InternalServerException";
59
+ $fault = "server";
60
+ Message;
61
+ constructor(opts) {
62
+ super({
63
+ name: "InternalServerException",
64
+ $fault: "server",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, InternalServerException.prototype);
68
+ this.Message = opts.Message;
69
+ }
70
+ }
71
+ class InvalidEndpointException extends TimestreamQueryServiceException {
72
+ name = "InvalidEndpointException";
73
+ $fault = "client";
74
+ Message;
75
+ constructor(opts) {
76
+ super({
77
+ name: "InvalidEndpointException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ Object.setPrototypeOf(this, InvalidEndpointException.prototype);
82
+ this.Message = opts.Message;
83
+ }
84
+ }
85
+ class ThrottlingException extends TimestreamQueryServiceException {
86
+ name = "ThrottlingException";
87
+ $fault = "client";
88
+ Message;
89
+ constructor(opts) {
90
+ super({
91
+ name: "ThrottlingException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
96
+ this.Message = opts.Message;
97
+ }
98
+ }
99
+ class ValidationException extends TimestreamQueryServiceException {
100
+ name = "ValidationException";
101
+ $fault = "client";
102
+ Message;
103
+ constructor(opts) {
104
+ super({
105
+ name: "ValidationException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, ValidationException.prototype);
110
+ this.Message = opts.Message;
111
+ }
112
+ }
113
+ const ScalarType = {
114
+ BIGINT: "BIGINT",
115
+ BOOLEAN: "BOOLEAN",
116
+ DATE: "DATE",
117
+ DOUBLE: "DOUBLE",
118
+ INTEGER: "INTEGER",
119
+ INTERVAL_DAY_TO_SECOND: "INTERVAL_DAY_TO_SECOND",
120
+ INTERVAL_YEAR_TO_MONTH: "INTERVAL_YEAR_TO_MONTH",
121
+ TIME: "TIME",
122
+ TIMESTAMP: "TIMESTAMP",
123
+ UNKNOWN: "UNKNOWN",
124
+ VARCHAR: "VARCHAR",
125
+ };
126
+ const ComputeMode = {
127
+ ON_DEMAND: "ON_DEMAND",
128
+ PROVISIONED: "PROVISIONED",
129
+ };
130
+ class ConflictException extends TimestreamQueryServiceException {
131
+ name = "ConflictException";
132
+ $fault = "client";
133
+ Message;
134
+ constructor(opts) {
135
+ super({
136
+ name: "ConflictException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ Object.setPrototypeOf(this, ConflictException.prototype);
141
+ this.Message = opts.Message;
142
+ }
143
+ }
144
+ const S3EncryptionOption = {
145
+ SSE_KMS: "SSE_KMS",
146
+ SSE_S3: "SSE_S3",
147
+ };
148
+ const DimensionValueType = {
149
+ VARCHAR: "VARCHAR",
150
+ };
151
+ const MeasureValueType = {
152
+ BIGINT: "BIGINT",
153
+ BOOLEAN: "BOOLEAN",
154
+ DOUBLE: "DOUBLE",
155
+ MULTI: "MULTI",
156
+ VARCHAR: "VARCHAR",
157
+ };
158
+ const ScalarMeasureValueType = {
159
+ BIGINT: "BIGINT",
160
+ BOOLEAN: "BOOLEAN",
161
+ DOUBLE: "DOUBLE",
162
+ TIMESTAMP: "TIMESTAMP",
163
+ VARCHAR: "VARCHAR",
133
164
  };
165
+ class ServiceQuotaExceededException extends TimestreamQueryServiceException {
166
+ name = "ServiceQuotaExceededException";
167
+ $fault = "client";
168
+ Message;
169
+ constructor(opts) {
170
+ super({
171
+ name: "ServiceQuotaExceededException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
176
+ this.Message = opts.Message;
177
+ }
178
+ }
179
+ class ResourceNotFoundException extends TimestreamQueryServiceException {
180
+ name = "ResourceNotFoundException";
181
+ $fault = "client";
182
+ Message;
183
+ ScheduledQueryArn;
184
+ constructor(opts) {
185
+ super({
186
+ name: "ResourceNotFoundException",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
191
+ this.Message = opts.Message;
192
+ this.ScheduledQueryArn = opts.ScheduledQueryArn;
193
+ }
194
+ }
195
+ const LastUpdateStatus = {
196
+ FAILED: "FAILED",
197
+ PENDING: "PENDING",
198
+ SUCCEEDED: "SUCCEEDED",
199
+ };
200
+ const QueryPricingModel = {
201
+ BYTES_SCANNED: "BYTES_SCANNED",
202
+ COMPUTE_UNITS: "COMPUTE_UNITS",
203
+ };
204
+ const ScheduledQueryRunStatus = {
205
+ AUTO_TRIGGER_FAILURE: "AUTO_TRIGGER_FAILURE",
206
+ AUTO_TRIGGER_SUCCESS: "AUTO_TRIGGER_SUCCESS",
207
+ MANUAL_TRIGGER_FAILURE: "MANUAL_TRIGGER_FAILURE",
208
+ MANUAL_TRIGGER_SUCCESS: "MANUAL_TRIGGER_SUCCESS",
209
+ };
210
+ const ScheduledQueryState = {
211
+ DISABLED: "DISABLED",
212
+ ENABLED: "ENABLED",
213
+ };
214
+ const ScheduledQueryInsightsMode = {
215
+ DISABLED: "DISABLED",
216
+ ENABLED_WITH_RATE_CONTROL: "ENABLED_WITH_RATE_CONTROL",
217
+ };
218
+ class QueryExecutionException extends TimestreamQueryServiceException {
219
+ name = "QueryExecutionException";
220
+ $fault = "client";
221
+ Message;
222
+ constructor(opts) {
223
+ super({
224
+ name: "QueryExecutionException",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, QueryExecutionException.prototype);
229
+ this.Message = opts.Message;
230
+ }
231
+ }
232
+ const QueryInsightsMode = {
233
+ DISABLED: "DISABLED",
234
+ ENABLED_WITH_RATE_CONTROL: "ENABLED_WITH_RATE_CONTROL",
235
+ };
236
+ const CreateScheduledQueryRequestFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ ...(obj.QueryString && { QueryString: smithyClient.SENSITIVE_STRING }),
239
+ ...(obj.ClientToken && { ClientToken: smithyClient.SENSITIVE_STRING }),
240
+ });
241
+ const ScheduledQueryDescriptionFilterSensitiveLog = (obj) => ({
242
+ ...obj,
243
+ ...(obj.QueryString && { QueryString: smithyClient.SENSITIVE_STRING }),
244
+ });
245
+ const DescribeScheduledQueryResponseFilterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ ...(obj.ScheduledQuery && { ScheduledQuery: ScheduledQueryDescriptionFilterSensitiveLog(obj.ScheduledQuery) }),
248
+ });
249
+ const ExecuteScheduledQueryRequestFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ ...(obj.ClientToken && { ClientToken: smithyClient.SENSITIVE_STRING }),
252
+ });
253
+ const PrepareQueryRequestFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ ...(obj.QueryString && { QueryString: smithyClient.SENSITIVE_STRING }),
256
+ });
257
+ const QueryRequestFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ ...(obj.QueryString && { QueryString: smithyClient.SENSITIVE_STRING }),
260
+ ...(obj.ClientToken && { ClientToken: smithyClient.SENSITIVE_STRING }),
261
+ });
262
+ const PrepareQueryResponseFilterSensitiveLog = (obj) => ({
263
+ ...obj,
264
+ ...(obj.QueryString && { QueryString: smithyClient.SENSITIVE_STRING }),
265
+ });
134
266
 
135
- // src/models/models_0.ts
136
- var AccessDeniedException = class _AccessDeniedException extends TimestreamQueryServiceException {
137
- static {
138
- __name(this, "AccessDeniedException");
139
- }
140
- name = "AccessDeniedException";
141
- $fault = "client";
142
- Message;
143
- /**
144
- * @internal
145
- */
146
- constructor(opts) {
147
- super({
148
- name: "AccessDeniedException",
149
- $fault: "client",
150
- ...opts
267
+ const se_CancelQueryCommand = async (input, context) => {
268
+ const headers = sharedHeaders("CancelQuery");
269
+ let body;
270
+ body = JSON.stringify(smithyClient._json(input));
271
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
272
+ };
273
+ const se_CreateScheduledQueryCommand = async (input, context) => {
274
+ const headers = sharedHeaders("CreateScheduledQuery");
275
+ let body;
276
+ body = JSON.stringify(se_CreateScheduledQueryRequest(input));
277
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
+ };
279
+ const se_DeleteScheduledQueryCommand = async (input, context) => {
280
+ const headers = sharedHeaders("DeleteScheduledQuery");
281
+ let body;
282
+ body = JSON.stringify(smithyClient._json(input));
283
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
284
+ };
285
+ const se_DescribeAccountSettingsCommand = async (input, context) => {
286
+ const headers = sharedHeaders("DescribeAccountSettings");
287
+ let body;
288
+ body = JSON.stringify(smithyClient._json(input));
289
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
290
+ };
291
+ const se_DescribeEndpointsCommand = async (input, context) => {
292
+ const headers = sharedHeaders("DescribeEndpoints");
293
+ let body;
294
+ body = JSON.stringify(smithyClient._json(input));
295
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
296
+ };
297
+ const se_DescribeScheduledQueryCommand = async (input, context) => {
298
+ const headers = sharedHeaders("DescribeScheduledQuery");
299
+ let body;
300
+ body = JSON.stringify(smithyClient._json(input));
301
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
+ };
303
+ const se_ExecuteScheduledQueryCommand = async (input, context) => {
304
+ const headers = sharedHeaders("ExecuteScheduledQuery");
305
+ let body;
306
+ body = JSON.stringify(se_ExecuteScheduledQueryRequest(input));
307
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
+ };
309
+ const se_ListScheduledQueriesCommand = async (input, context) => {
310
+ const headers = sharedHeaders("ListScheduledQueries");
311
+ let body;
312
+ body = JSON.stringify(smithyClient._json(input));
313
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
314
+ };
315
+ const se_ListTagsForResourceCommand = async (input, context) => {
316
+ const headers = sharedHeaders("ListTagsForResource");
317
+ let body;
318
+ body = JSON.stringify(smithyClient._json(input));
319
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
320
+ };
321
+ const se_PrepareQueryCommand = async (input, context) => {
322
+ const headers = sharedHeaders("PrepareQuery");
323
+ let body;
324
+ body = JSON.stringify(smithyClient._json(input));
325
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
326
+ };
327
+ const se_QueryCommand = async (input, context) => {
328
+ const headers = sharedHeaders("Query");
329
+ let body;
330
+ body = JSON.stringify(se_QueryRequest(input));
331
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
332
+ };
333
+ const se_TagResourceCommand = async (input, context) => {
334
+ const headers = sharedHeaders("TagResource");
335
+ let body;
336
+ body = JSON.stringify(smithyClient._json(input));
337
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
+ };
339
+ const se_UntagResourceCommand = async (input, context) => {
340
+ const headers = sharedHeaders("UntagResource");
341
+ let body;
342
+ body = JSON.stringify(smithyClient._json(input));
343
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
+ };
345
+ const se_UpdateAccountSettingsCommand = async (input, context) => {
346
+ const headers = sharedHeaders("UpdateAccountSettings");
347
+ let body;
348
+ body = JSON.stringify(smithyClient._json(input));
349
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
350
+ };
351
+ const se_UpdateScheduledQueryCommand = async (input, context) => {
352
+ const headers = sharedHeaders("UpdateScheduledQuery");
353
+ let body;
354
+ body = JSON.stringify(smithyClient._json(input));
355
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
356
+ };
357
+ const de_CancelQueryCommand = async (output, context) => {
358
+ if (output.statusCode >= 300) {
359
+ return de_CommandError(output, context);
360
+ }
361
+ const data = await core.parseJsonBody(output.body, context);
362
+ let contents = {};
363
+ contents = smithyClient._json(data);
364
+ const response = {
365
+ $metadata: deserializeMetadata(output),
366
+ ...contents,
367
+ };
368
+ return response;
369
+ };
370
+ const de_CreateScheduledQueryCommand = async (output, context) => {
371
+ if (output.statusCode >= 300) {
372
+ return de_CommandError(output, context);
373
+ }
374
+ const data = await core.parseJsonBody(output.body, context);
375
+ let contents = {};
376
+ contents = smithyClient._json(data);
377
+ const response = {
378
+ $metadata: deserializeMetadata(output),
379
+ ...contents,
380
+ };
381
+ return response;
382
+ };
383
+ const de_DeleteScheduledQueryCommand = async (output, context) => {
384
+ if (output.statusCode >= 300) {
385
+ return de_CommandError(output, context);
386
+ }
387
+ await smithyClient.collectBody(output.body, context);
388
+ const response = {
389
+ $metadata: deserializeMetadata(output),
390
+ };
391
+ return response;
392
+ };
393
+ const de_DescribeAccountSettingsCommand = async (output, context) => {
394
+ if (output.statusCode >= 300) {
395
+ return de_CommandError(output, context);
396
+ }
397
+ const data = await core.parseJsonBody(output.body, context);
398
+ let contents = {};
399
+ contents = smithyClient._json(data);
400
+ const response = {
401
+ $metadata: deserializeMetadata(output),
402
+ ...contents,
403
+ };
404
+ return response;
405
+ };
406
+ const de_DescribeEndpointsCommand = async (output, context) => {
407
+ if (output.statusCode >= 300) {
408
+ return de_CommandError(output, context);
409
+ }
410
+ const data = await core.parseJsonBody(output.body, context);
411
+ let contents = {};
412
+ contents = smithyClient._json(data);
413
+ const response = {
414
+ $metadata: deserializeMetadata(output),
415
+ ...contents,
416
+ };
417
+ return response;
418
+ };
419
+ const de_DescribeScheduledQueryCommand = async (output, context) => {
420
+ if (output.statusCode >= 300) {
421
+ return de_CommandError(output, context);
422
+ }
423
+ const data = await core.parseJsonBody(output.body, context);
424
+ let contents = {};
425
+ contents = de_DescribeScheduledQueryResponse(data);
426
+ const response = {
427
+ $metadata: deserializeMetadata(output),
428
+ ...contents,
429
+ };
430
+ return response;
431
+ };
432
+ const de_ExecuteScheduledQueryCommand = async (output, context) => {
433
+ if (output.statusCode >= 300) {
434
+ return de_CommandError(output, context);
435
+ }
436
+ await smithyClient.collectBody(output.body, context);
437
+ const response = {
438
+ $metadata: deserializeMetadata(output),
439
+ };
440
+ return response;
441
+ };
442
+ const de_ListScheduledQueriesCommand = async (output, context) => {
443
+ if (output.statusCode >= 300) {
444
+ return de_CommandError(output, context);
445
+ }
446
+ const data = await core.parseJsonBody(output.body, context);
447
+ let contents = {};
448
+ contents = de_ListScheduledQueriesResponse(data);
449
+ const response = {
450
+ $metadata: deserializeMetadata(output),
451
+ ...contents,
452
+ };
453
+ return response;
454
+ };
455
+ const de_ListTagsForResourceCommand = async (output, context) => {
456
+ if (output.statusCode >= 300) {
457
+ return de_CommandError(output, context);
458
+ }
459
+ const data = await core.parseJsonBody(output.body, context);
460
+ let contents = {};
461
+ contents = smithyClient._json(data);
462
+ const response = {
463
+ $metadata: deserializeMetadata(output),
464
+ ...contents,
465
+ };
466
+ return response;
467
+ };
468
+ const de_PrepareQueryCommand = async (output, context) => {
469
+ if (output.statusCode >= 300) {
470
+ return de_CommandError(output, context);
471
+ }
472
+ const data = await core.parseJsonBody(output.body, context);
473
+ let contents = {};
474
+ contents = de_PrepareQueryResponse(data);
475
+ const response = {
476
+ $metadata: deserializeMetadata(output),
477
+ ...contents,
478
+ };
479
+ return response;
480
+ };
481
+ const de_QueryCommand = async (output, context) => {
482
+ if (output.statusCode >= 300) {
483
+ return de_CommandError(output, context);
484
+ }
485
+ const data = await core.parseJsonBody(output.body, context);
486
+ let contents = {};
487
+ contents = de_QueryResponse(data);
488
+ const response = {
489
+ $metadata: deserializeMetadata(output),
490
+ ...contents,
491
+ };
492
+ return response;
493
+ };
494
+ const de_TagResourceCommand = async (output, context) => {
495
+ if (output.statusCode >= 300) {
496
+ return de_CommandError(output, context);
497
+ }
498
+ const data = await core.parseJsonBody(output.body, context);
499
+ let contents = {};
500
+ contents = smithyClient._json(data);
501
+ const response = {
502
+ $metadata: deserializeMetadata(output),
503
+ ...contents,
504
+ };
505
+ return response;
506
+ };
507
+ const de_UntagResourceCommand = async (output, context) => {
508
+ if (output.statusCode >= 300) {
509
+ return de_CommandError(output, context);
510
+ }
511
+ const data = await core.parseJsonBody(output.body, context);
512
+ let contents = {};
513
+ contents = smithyClient._json(data);
514
+ const response = {
515
+ $metadata: deserializeMetadata(output),
516
+ ...contents,
517
+ };
518
+ return response;
519
+ };
520
+ const de_UpdateAccountSettingsCommand = async (output, context) => {
521
+ if (output.statusCode >= 300) {
522
+ return de_CommandError(output, context);
523
+ }
524
+ const data = await core.parseJsonBody(output.body, context);
525
+ let contents = {};
526
+ contents = smithyClient._json(data);
527
+ const response = {
528
+ $metadata: deserializeMetadata(output),
529
+ ...contents,
530
+ };
531
+ return response;
532
+ };
533
+ const de_UpdateScheduledQueryCommand = async (output, context) => {
534
+ if (output.statusCode >= 300) {
535
+ return de_CommandError(output, context);
536
+ }
537
+ await smithyClient.collectBody(output.body, context);
538
+ const response = {
539
+ $metadata: deserializeMetadata(output),
540
+ };
541
+ return response;
542
+ };
543
+ const de_CommandError = async (output, context) => {
544
+ const parsedOutput = {
545
+ ...output,
546
+ body: await core.parseJsonErrorBody(output.body, context),
547
+ };
548
+ const errorCode = core.loadRestJsonErrorCode(output, parsedOutput.body);
549
+ switch (errorCode) {
550
+ case "AccessDeniedException":
551
+ case "com.amazonaws.timestreamquery#AccessDeniedException":
552
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
553
+ case "InternalServerException":
554
+ case "com.amazonaws.timestreamquery#InternalServerException":
555
+ throw await de_InternalServerExceptionRes(parsedOutput);
556
+ case "InvalidEndpointException":
557
+ case "com.amazonaws.timestreamquery#InvalidEndpointException":
558
+ throw await de_InvalidEndpointExceptionRes(parsedOutput);
559
+ case "ThrottlingException":
560
+ case "com.amazonaws.timestreamquery#ThrottlingException":
561
+ throw await de_ThrottlingExceptionRes(parsedOutput);
562
+ case "ValidationException":
563
+ case "com.amazonaws.timestreamquery#ValidationException":
564
+ throw await de_ValidationExceptionRes(parsedOutput);
565
+ case "ConflictException":
566
+ case "com.amazonaws.timestreamquery#ConflictException":
567
+ throw await de_ConflictExceptionRes(parsedOutput);
568
+ case "ServiceQuotaExceededException":
569
+ case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
570
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
571
+ case "ResourceNotFoundException":
572
+ case "com.amazonaws.timestreamquery#ResourceNotFoundException":
573
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
574
+ case "QueryExecutionException":
575
+ case "com.amazonaws.timestreamquery#QueryExecutionException":
576
+ throw await de_QueryExecutionExceptionRes(parsedOutput);
577
+ default:
578
+ const parsedBody = parsedOutput.body;
579
+ return throwDefaultError({
580
+ output,
581
+ parsedBody,
582
+ errorCode,
583
+ });
584
+ }
585
+ };
586
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
587
+ const body = parsedOutput.body;
588
+ const deserialized = smithyClient._json(body);
589
+ const exception = new AccessDeniedException({
590
+ $metadata: deserializeMetadata(parsedOutput),
591
+ ...deserialized,
151
592
  });
152
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
153
- this.Message = opts.Message;
154
- }
155
- };
156
- var InternalServerException = class _InternalServerException extends TimestreamQueryServiceException {
157
- static {
158
- __name(this, "InternalServerException");
159
- }
160
- name = "InternalServerException";
161
- $fault = "server";
162
- Message;
163
- /**
164
- * @internal
165
- */
166
- constructor(opts) {
167
- super({
168
- name: "InternalServerException",
169
- $fault: "server",
170
- ...opts
593
+ return smithyClient.decorateServiceException(exception, body);
594
+ };
595
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
596
+ const body = parsedOutput.body;
597
+ const deserialized = smithyClient._json(body);
598
+ const exception = new ConflictException({
599
+ $metadata: deserializeMetadata(parsedOutput),
600
+ ...deserialized,
171
601
  });
172
- Object.setPrototypeOf(this, _InternalServerException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- };
176
- var InvalidEndpointException = class _InvalidEndpointException extends TimestreamQueryServiceException {
177
- static {
178
- __name(this, "InvalidEndpointException");
179
- }
180
- name = "InvalidEndpointException";
181
- $fault = "client";
182
- Message;
183
- /**
184
- * @internal
185
- */
186
- constructor(opts) {
187
- super({
188
- name: "InvalidEndpointException",
189
- $fault: "client",
190
- ...opts
602
+ return smithyClient.decorateServiceException(exception, body);
603
+ };
604
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
605
+ const body = parsedOutput.body;
606
+ const deserialized = smithyClient._json(body);
607
+ const exception = new InternalServerException({
608
+ $metadata: deserializeMetadata(parsedOutput),
609
+ ...deserialized,
191
610
  });
192
- Object.setPrototypeOf(this, _InvalidEndpointException.prototype);
193
- this.Message = opts.Message;
194
- }
195
- };
196
- var ThrottlingException = class _ThrottlingException extends TimestreamQueryServiceException {
197
- static {
198
- __name(this, "ThrottlingException");
199
- }
200
- name = "ThrottlingException";
201
- $fault = "client";
202
- Message;
203
- /**
204
- * @internal
205
- */
206
- constructor(opts) {
207
- super({
208
- name: "ThrottlingException",
209
- $fault: "client",
210
- ...opts
611
+ return smithyClient.decorateServiceException(exception, body);
612
+ };
613
+ const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
614
+ const body = parsedOutput.body;
615
+ const deserialized = smithyClient._json(body);
616
+ const exception = new InvalidEndpointException({
617
+ $metadata: deserializeMetadata(parsedOutput),
618
+ ...deserialized,
211
619
  });
212
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
213
- this.Message = opts.Message;
214
- }
215
- };
216
- var ValidationException = class _ValidationException extends TimestreamQueryServiceException {
217
- static {
218
- __name(this, "ValidationException");
219
- }
220
- name = "ValidationException";
221
- $fault = "client";
222
- Message;
223
- /**
224
- * @internal
225
- */
226
- constructor(opts) {
227
- super({
228
- name: "ValidationException",
229
- $fault: "client",
230
- ...opts
620
+ return smithyClient.decorateServiceException(exception, body);
621
+ };
622
+ const de_QueryExecutionExceptionRes = async (parsedOutput, context) => {
623
+ const body = parsedOutput.body;
624
+ const deserialized = smithyClient._json(body);
625
+ const exception = new QueryExecutionException({
626
+ $metadata: deserializeMetadata(parsedOutput),
627
+ ...deserialized,
231
628
  });
232
- Object.setPrototypeOf(this, _ValidationException.prototype);
233
- this.Message = opts.Message;
234
- }
235
- };
236
- var ScalarType = {
237
- BIGINT: "BIGINT",
238
- BOOLEAN: "BOOLEAN",
239
- DATE: "DATE",
240
- DOUBLE: "DOUBLE",
241
- INTEGER: "INTEGER",
242
- INTERVAL_DAY_TO_SECOND: "INTERVAL_DAY_TO_SECOND",
243
- INTERVAL_YEAR_TO_MONTH: "INTERVAL_YEAR_TO_MONTH",
244
- TIME: "TIME",
245
- TIMESTAMP: "TIMESTAMP",
246
- UNKNOWN: "UNKNOWN",
247
- VARCHAR: "VARCHAR"
248
- };
249
- var ComputeMode = {
250
- ON_DEMAND: "ON_DEMAND",
251
- PROVISIONED: "PROVISIONED"
252
- };
253
- var ConflictException = class _ConflictException extends TimestreamQueryServiceException {
254
- static {
255
- __name(this, "ConflictException");
256
- }
257
- name = "ConflictException";
258
- $fault = "client";
259
- Message;
260
- /**
261
- * @internal
262
- */
263
- constructor(opts) {
264
- super({
265
- name: "ConflictException",
266
- $fault: "client",
267
- ...opts
629
+ return smithyClient.decorateServiceException(exception, body);
630
+ };
631
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
632
+ const body = parsedOutput.body;
633
+ const deserialized = smithyClient._json(body);
634
+ const exception = new ResourceNotFoundException({
635
+ $metadata: deserializeMetadata(parsedOutput),
636
+ ...deserialized,
268
637
  });
269
- Object.setPrototypeOf(this, _ConflictException.prototype);
270
- this.Message = opts.Message;
271
- }
272
- };
273
- var S3EncryptionOption = {
274
- SSE_KMS: "SSE_KMS",
275
- SSE_S3: "SSE_S3"
276
- };
277
- var DimensionValueType = {
278
- VARCHAR: "VARCHAR"
279
- };
280
- var MeasureValueType = {
281
- BIGINT: "BIGINT",
282
- BOOLEAN: "BOOLEAN",
283
- DOUBLE: "DOUBLE",
284
- MULTI: "MULTI",
285
- VARCHAR: "VARCHAR"
286
- };
287
- var ScalarMeasureValueType = {
288
- BIGINT: "BIGINT",
289
- BOOLEAN: "BOOLEAN",
290
- DOUBLE: "DOUBLE",
291
- TIMESTAMP: "TIMESTAMP",
292
- VARCHAR: "VARCHAR"
293
- };
294
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends TimestreamQueryServiceException {
295
- static {
296
- __name(this, "ServiceQuotaExceededException");
297
- }
298
- name = "ServiceQuotaExceededException";
299
- $fault = "client";
300
- Message;
301
- /**
302
- * @internal
303
- */
304
- constructor(opts) {
305
- super({
306
- name: "ServiceQuotaExceededException",
307
- $fault: "client",
308
- ...opts
638
+ return smithyClient.decorateServiceException(exception, body);
639
+ };
640
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
641
+ const body = parsedOutput.body;
642
+ const deserialized = smithyClient._json(body);
643
+ const exception = new ServiceQuotaExceededException({
644
+ $metadata: deserializeMetadata(parsedOutput),
645
+ ...deserialized,
309
646
  });
310
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
311
- this.Message = opts.Message;
312
- }
313
- };
314
- var ResourceNotFoundException = class _ResourceNotFoundException extends TimestreamQueryServiceException {
315
- static {
316
- __name(this, "ResourceNotFoundException");
317
- }
318
- name = "ResourceNotFoundException";
319
- $fault = "client";
320
- Message;
321
- /**
322
- * <p>The ARN of the scheduled query.</p>
323
- * @public
324
- */
325
- ScheduledQueryArn;
326
- /**
327
- * @internal
328
- */
329
- constructor(opts) {
330
- super({
331
- name: "ResourceNotFoundException",
332
- $fault: "client",
333
- ...opts
647
+ return smithyClient.decorateServiceException(exception, body);
648
+ };
649
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
650
+ const body = parsedOutput.body;
651
+ const deserialized = smithyClient._json(body);
652
+ const exception = new ThrottlingException({
653
+ $metadata: deserializeMetadata(parsedOutput),
654
+ ...deserialized,
334
655
  });
335
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
336
- this.Message = opts.Message;
337
- this.ScheduledQueryArn = opts.ScheduledQueryArn;
338
- }
339
- };
340
- var LastUpdateStatus = {
341
- FAILED: "FAILED",
342
- PENDING: "PENDING",
343
- SUCCEEDED: "SUCCEEDED"
344
- };
345
- var QueryPricingModel = {
346
- BYTES_SCANNED: "BYTES_SCANNED",
347
- COMPUTE_UNITS: "COMPUTE_UNITS"
348
- };
349
- var ScheduledQueryRunStatus = {
350
- AUTO_TRIGGER_FAILURE: "AUTO_TRIGGER_FAILURE",
351
- AUTO_TRIGGER_SUCCESS: "AUTO_TRIGGER_SUCCESS",
352
- MANUAL_TRIGGER_FAILURE: "MANUAL_TRIGGER_FAILURE",
353
- MANUAL_TRIGGER_SUCCESS: "MANUAL_TRIGGER_SUCCESS"
354
- };
355
- var ScheduledQueryState = {
356
- DISABLED: "DISABLED",
357
- ENABLED: "ENABLED"
358
- };
359
- var ScheduledQueryInsightsMode = {
360
- DISABLED: "DISABLED",
361
- ENABLED_WITH_RATE_CONTROL: "ENABLED_WITH_RATE_CONTROL"
362
- };
363
- var QueryExecutionException = class _QueryExecutionException extends TimestreamQueryServiceException {
364
- static {
365
- __name(this, "QueryExecutionException");
366
- }
367
- name = "QueryExecutionException";
368
- $fault = "client";
369
- Message;
370
- /**
371
- * @internal
372
- */
373
- constructor(opts) {
374
- super({
375
- name: "QueryExecutionException",
376
- $fault: "client",
377
- ...opts
656
+ return smithyClient.decorateServiceException(exception, body);
657
+ };
658
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
659
+ const body = parsedOutput.body;
660
+ const deserialized = smithyClient._json(body);
661
+ const exception = new ValidationException({
662
+ $metadata: deserializeMetadata(parsedOutput),
663
+ ...deserialized,
378
664
  });
379
- Object.setPrototypeOf(this, _QueryExecutionException.prototype);
380
- this.Message = opts.Message;
381
- }
382
- };
383
- var QueryInsightsMode = {
384
- DISABLED: "DISABLED",
385
- ENABLED_WITH_RATE_CONTROL: "ENABLED_WITH_RATE_CONTROL"
386
- };
387
- var CreateScheduledQueryRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
388
- ...obj,
389
- ...obj.QueryString && { QueryString: import_smithy_client.SENSITIVE_STRING },
390
- ...obj.ClientToken && { ClientToken: import_smithy_client.SENSITIVE_STRING }
391
- }), "CreateScheduledQueryRequestFilterSensitiveLog");
392
- var ScheduledQueryDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
393
- ...obj,
394
- ...obj.QueryString && { QueryString: import_smithy_client.SENSITIVE_STRING }
395
- }), "ScheduledQueryDescriptionFilterSensitiveLog");
396
- var DescribeScheduledQueryResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
397
- ...obj,
398
- ...obj.ScheduledQuery && { ScheduledQuery: ScheduledQueryDescriptionFilterSensitiveLog(obj.ScheduledQuery) }
399
- }), "DescribeScheduledQueryResponseFilterSensitiveLog");
400
- var ExecuteScheduledQueryRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
401
- ...obj,
402
- ...obj.ClientToken && { ClientToken: import_smithy_client.SENSITIVE_STRING }
403
- }), "ExecuteScheduledQueryRequestFilterSensitiveLog");
404
- var PrepareQueryRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
405
- ...obj,
406
- ...obj.QueryString && { QueryString: import_smithy_client.SENSITIVE_STRING }
407
- }), "PrepareQueryRequestFilterSensitiveLog");
408
- var QueryRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
409
- ...obj,
410
- ...obj.QueryString && { QueryString: import_smithy_client.SENSITIVE_STRING },
411
- ...obj.ClientToken && { ClientToken: import_smithy_client.SENSITIVE_STRING }
412
- }), "QueryRequestFilterSensitiveLog");
413
- var PrepareQueryResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
414
- ...obj,
415
- ...obj.QueryString && { QueryString: import_smithy_client.SENSITIVE_STRING }
416
- }), "PrepareQueryResponseFilterSensitiveLog");
417
-
418
- // src/protocols/Aws_json1_0.ts
419
- var se_CancelQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
420
- const headers = sharedHeaders("CancelQuery");
421
- let body;
422
- body = JSON.stringify((0, import_smithy_client._json)(input));
423
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
424
- }, "se_CancelQueryCommand");
425
- var se_CreateScheduledQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
426
- const headers = sharedHeaders("CreateScheduledQuery");
427
- let body;
428
- body = JSON.stringify(se_CreateScheduledQueryRequest(input, context));
429
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
430
- }, "se_CreateScheduledQueryCommand");
431
- var se_DeleteScheduledQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
432
- const headers = sharedHeaders("DeleteScheduledQuery");
433
- let body;
434
- body = JSON.stringify((0, import_smithy_client._json)(input));
435
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
436
- }, "se_DeleteScheduledQueryCommand");
437
- var se_DescribeAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
438
- const headers = sharedHeaders("DescribeAccountSettings");
439
- let body;
440
- body = JSON.stringify((0, import_smithy_client._json)(input));
441
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
442
- }, "se_DescribeAccountSettingsCommand");
443
- var se_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
444
- const headers = sharedHeaders("DescribeEndpoints");
445
- let body;
446
- body = JSON.stringify((0, import_smithy_client._json)(input));
447
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
448
- }, "se_DescribeEndpointsCommand");
449
- var se_DescribeScheduledQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
450
- const headers = sharedHeaders("DescribeScheduledQuery");
451
- let body;
452
- body = JSON.stringify((0, import_smithy_client._json)(input));
453
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
454
- }, "se_DescribeScheduledQueryCommand");
455
- var se_ExecuteScheduledQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
456
- const headers = sharedHeaders("ExecuteScheduledQuery");
457
- let body;
458
- body = JSON.stringify(se_ExecuteScheduledQueryRequest(input, context));
459
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
460
- }, "se_ExecuteScheduledQueryCommand");
461
- var se_ListScheduledQueriesCommand = /* @__PURE__ */ __name(async (input, context) => {
462
- const headers = sharedHeaders("ListScheduledQueries");
463
- let body;
464
- body = JSON.stringify((0, import_smithy_client._json)(input));
465
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
466
- }, "se_ListScheduledQueriesCommand");
467
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
468
- const headers = sharedHeaders("ListTagsForResource");
469
- let body;
470
- body = JSON.stringify((0, import_smithy_client._json)(input));
471
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
472
- }, "se_ListTagsForResourceCommand");
473
- var se_PrepareQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
474
- const headers = sharedHeaders("PrepareQuery");
475
- let body;
476
- body = JSON.stringify((0, import_smithy_client._json)(input));
477
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
478
- }, "se_PrepareQueryCommand");
479
- var se_QueryCommand = /* @__PURE__ */ __name(async (input, context) => {
480
- const headers = sharedHeaders("Query");
481
- let body;
482
- body = JSON.stringify(se_QueryRequest(input, context));
483
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
484
- }, "se_QueryCommand");
485
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
486
- const headers = sharedHeaders("TagResource");
487
- let body;
488
- body = JSON.stringify((0, import_smithy_client._json)(input));
489
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
490
- }, "se_TagResourceCommand");
491
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
492
- const headers = sharedHeaders("UntagResource");
493
- let body;
494
- body = JSON.stringify((0, import_smithy_client._json)(input));
495
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
496
- }, "se_UntagResourceCommand");
497
- var se_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
498
- const headers = sharedHeaders("UpdateAccountSettings");
499
- let body;
500
- body = JSON.stringify((0, import_smithy_client._json)(input));
501
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
502
- }, "se_UpdateAccountSettingsCommand");
503
- var se_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
504
- const headers = sharedHeaders("UpdateScheduledQuery");
505
- let body;
506
- body = JSON.stringify((0, import_smithy_client._json)(input));
507
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
508
- }, "se_UpdateScheduledQueryCommand");
509
- var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
510
- if (output.statusCode >= 300) {
511
- return de_CommandError(output, context);
512
- }
513
- const data = await (0, import_core.parseJsonBody)(output.body, context);
514
- let contents = {};
515
- contents = (0, import_smithy_client._json)(data);
516
- const response = {
517
- $metadata: deserializeMetadata(output),
518
- ...contents
519
- };
520
- return response;
521
- }, "de_CancelQueryCommand");
522
- var de_CreateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
523
- if (output.statusCode >= 300) {
524
- return de_CommandError(output, context);
525
- }
526
- const data = await (0, import_core.parseJsonBody)(output.body, context);
527
- let contents = {};
528
- contents = (0, import_smithy_client._json)(data);
529
- const response = {
530
- $metadata: deserializeMetadata(output),
531
- ...contents
532
- };
533
- return response;
534
- }, "de_CreateScheduledQueryCommand");
535
- var de_DeleteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
536
- if (output.statusCode >= 300) {
537
- return de_CommandError(output, context);
538
- }
539
- await (0, import_smithy_client.collectBody)(output.body, context);
540
- const response = {
541
- $metadata: deserializeMetadata(output)
542
- };
543
- return response;
544
- }, "de_DeleteScheduledQueryCommand");
545
- var de_DescribeAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
546
- if (output.statusCode >= 300) {
547
- return de_CommandError(output, context);
548
- }
549
- const data = await (0, import_core.parseJsonBody)(output.body, context);
550
- let contents = {};
551
- contents = (0, import_smithy_client._json)(data);
552
- const response = {
553
- $metadata: deserializeMetadata(output),
554
- ...contents
555
- };
556
- return response;
557
- }, "de_DescribeAccountSettingsCommand");
558
- var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
559
- if (output.statusCode >= 300) {
560
- return de_CommandError(output, context);
561
- }
562
- const data = await (0, import_core.parseJsonBody)(output.body, context);
563
- let contents = {};
564
- contents = (0, import_smithy_client._json)(data);
565
- const response = {
566
- $metadata: deserializeMetadata(output),
567
- ...contents
568
- };
569
- return response;
570
- }, "de_DescribeEndpointsCommand");
571
- var de_DescribeScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
572
- if (output.statusCode >= 300) {
573
- return de_CommandError(output, context);
574
- }
575
- const data = await (0, import_core.parseJsonBody)(output.body, context);
576
- let contents = {};
577
- contents = de_DescribeScheduledQueryResponse(data, context);
578
- const response = {
579
- $metadata: deserializeMetadata(output),
580
- ...contents
581
- };
582
- return response;
583
- }, "de_DescribeScheduledQueryCommand");
584
- var de_ExecuteScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
585
- if (output.statusCode >= 300) {
586
- return de_CommandError(output, context);
587
- }
588
- await (0, import_smithy_client.collectBody)(output.body, context);
589
- const response = {
590
- $metadata: deserializeMetadata(output)
591
- };
592
- return response;
593
- }, "de_ExecuteScheduledQueryCommand");
594
- var de_ListScheduledQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
595
- if (output.statusCode >= 300) {
596
- return de_CommandError(output, context);
597
- }
598
- const data = await (0, import_core.parseJsonBody)(output.body, context);
599
- let contents = {};
600
- contents = de_ListScheduledQueriesResponse(data, context);
601
- const response = {
602
- $metadata: deserializeMetadata(output),
603
- ...contents
604
- };
605
- return response;
606
- }, "de_ListScheduledQueriesCommand");
607
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
608
- if (output.statusCode >= 300) {
609
- return de_CommandError(output, context);
610
- }
611
- const data = await (0, import_core.parseJsonBody)(output.body, context);
612
- let contents = {};
613
- contents = (0, import_smithy_client._json)(data);
614
- const response = {
615
- $metadata: deserializeMetadata(output),
616
- ...contents
617
- };
618
- return response;
619
- }, "de_ListTagsForResourceCommand");
620
- var de_PrepareQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
621
- if (output.statusCode >= 300) {
622
- return de_CommandError(output, context);
623
- }
624
- const data = await (0, import_core.parseJsonBody)(output.body, context);
625
- let contents = {};
626
- contents = de_PrepareQueryResponse(data, context);
627
- const response = {
628
- $metadata: deserializeMetadata(output),
629
- ...contents
630
- };
631
- return response;
632
- }, "de_PrepareQueryCommand");
633
- var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
634
- if (output.statusCode >= 300) {
635
- return de_CommandError(output, context);
636
- }
637
- const data = await (0, import_core.parseJsonBody)(output.body, context);
638
- let contents = {};
639
- contents = de_QueryResponse(data, context);
640
- const response = {
641
- $metadata: deserializeMetadata(output),
642
- ...contents
643
- };
644
- return response;
645
- }, "de_QueryCommand");
646
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
647
- if (output.statusCode >= 300) {
648
- return de_CommandError(output, context);
649
- }
650
- const data = await (0, import_core.parseJsonBody)(output.body, context);
651
- let contents = {};
652
- contents = (0, import_smithy_client._json)(data);
653
- const response = {
654
- $metadata: deserializeMetadata(output),
655
- ...contents
656
- };
657
- return response;
658
- }, "de_TagResourceCommand");
659
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
660
- if (output.statusCode >= 300) {
661
- return de_CommandError(output, context);
662
- }
663
- const data = await (0, import_core.parseJsonBody)(output.body, context);
664
- let contents = {};
665
- contents = (0, import_smithy_client._json)(data);
666
- const response = {
667
- $metadata: deserializeMetadata(output),
668
- ...contents
669
- };
670
- return response;
671
- }, "de_UntagResourceCommand");
672
- var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
673
- if (output.statusCode >= 300) {
674
- return de_CommandError(output, context);
675
- }
676
- const data = await (0, import_core.parseJsonBody)(output.body, context);
677
- let contents = {};
678
- contents = (0, import_smithy_client._json)(data);
679
- const response = {
680
- $metadata: deserializeMetadata(output),
681
- ...contents
682
- };
683
- return response;
684
- }, "de_UpdateAccountSettingsCommand");
685
- var de_UpdateScheduledQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
686
- if (output.statusCode >= 300) {
687
- return de_CommandError(output, context);
688
- }
689
- await (0, import_smithy_client.collectBody)(output.body, context);
690
- const response = {
691
- $metadata: deserializeMetadata(output)
692
- };
693
- return response;
694
- }, "de_UpdateScheduledQueryCommand");
695
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
696
- const parsedOutput = {
697
- ...output,
698
- body: await (0, import_core.parseJsonErrorBody)(output.body, context)
699
- };
700
- const errorCode = (0, import_core.loadRestJsonErrorCode)(output, parsedOutput.body);
701
- switch (errorCode) {
702
- case "AccessDeniedException":
703
- case "com.amazonaws.timestreamquery#AccessDeniedException":
704
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
705
- case "InternalServerException":
706
- case "com.amazonaws.timestreamquery#InternalServerException":
707
- throw await de_InternalServerExceptionRes(parsedOutput, context);
708
- case "InvalidEndpointException":
709
- case "com.amazonaws.timestreamquery#InvalidEndpointException":
710
- throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
711
- case "ThrottlingException":
712
- case "com.amazonaws.timestreamquery#ThrottlingException":
713
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
714
- case "ValidationException":
715
- case "com.amazonaws.timestreamquery#ValidationException":
716
- throw await de_ValidationExceptionRes(parsedOutput, context);
717
- case "ConflictException":
718
- case "com.amazonaws.timestreamquery#ConflictException":
719
- throw await de_ConflictExceptionRes(parsedOutput, context);
720
- case "ServiceQuotaExceededException":
721
- case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
722
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
723
- case "ResourceNotFoundException":
724
- case "com.amazonaws.timestreamquery#ResourceNotFoundException":
725
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
726
- case "QueryExecutionException":
727
- case "com.amazonaws.timestreamquery#QueryExecutionException":
728
- throw await de_QueryExecutionExceptionRes(parsedOutput, context);
729
- default:
730
- const parsedBody = parsedOutput.body;
731
- return throwDefaultError({
732
- output,
733
- parsedBody,
734
- errorCode
735
- });
736
- }
737
- }, "de_CommandError");
738
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
739
- const body = parsedOutput.body;
740
- const deserialized = (0, import_smithy_client._json)(body);
741
- const exception = new AccessDeniedException({
742
- $metadata: deserializeMetadata(parsedOutput),
743
- ...deserialized
744
- });
745
- return (0, import_smithy_client.decorateServiceException)(exception, body);
746
- }, "de_AccessDeniedExceptionRes");
747
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
748
- const body = parsedOutput.body;
749
- const deserialized = (0, import_smithy_client._json)(body);
750
- const exception = new ConflictException({
751
- $metadata: deserializeMetadata(parsedOutput),
752
- ...deserialized
753
- });
754
- return (0, import_smithy_client.decorateServiceException)(exception, body);
755
- }, "de_ConflictExceptionRes");
756
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
757
- const body = parsedOutput.body;
758
- const deserialized = (0, import_smithy_client._json)(body);
759
- const exception = new InternalServerException({
760
- $metadata: deserializeMetadata(parsedOutput),
761
- ...deserialized
762
- });
763
- return (0, import_smithy_client.decorateServiceException)(exception, body);
764
- }, "de_InternalServerExceptionRes");
765
- var de_InvalidEndpointExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
766
- const body = parsedOutput.body;
767
- const deserialized = (0, import_smithy_client._json)(body);
768
- const exception = new InvalidEndpointException({
769
- $metadata: deserializeMetadata(parsedOutput),
770
- ...deserialized
771
- });
772
- return (0, import_smithy_client.decorateServiceException)(exception, body);
773
- }, "de_InvalidEndpointExceptionRes");
774
- var de_QueryExecutionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
775
- const body = parsedOutput.body;
776
- const deserialized = (0, import_smithy_client._json)(body);
777
- const exception = new QueryExecutionException({
778
- $metadata: deserializeMetadata(parsedOutput),
779
- ...deserialized
780
- });
781
- return (0, import_smithy_client.decorateServiceException)(exception, body);
782
- }, "de_QueryExecutionExceptionRes");
783
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
784
- const body = parsedOutput.body;
785
- const deserialized = (0, import_smithy_client._json)(body);
786
- const exception = new ResourceNotFoundException({
787
- $metadata: deserializeMetadata(parsedOutput),
788
- ...deserialized
789
- });
790
- return (0, import_smithy_client.decorateServiceException)(exception, body);
791
- }, "de_ResourceNotFoundExceptionRes");
792
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
793
- const body = parsedOutput.body;
794
- const deserialized = (0, import_smithy_client._json)(body);
795
- const exception = new ServiceQuotaExceededException({
796
- $metadata: deserializeMetadata(parsedOutput),
797
- ...deserialized
798
- });
799
- return (0, import_smithy_client.decorateServiceException)(exception, body);
800
- }, "de_ServiceQuotaExceededExceptionRes");
801
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
802
- const body = parsedOutput.body;
803
- const deserialized = (0, import_smithy_client._json)(body);
804
- const exception = new ThrottlingException({
805
- $metadata: deserializeMetadata(parsedOutput),
806
- ...deserialized
807
- });
808
- return (0, import_smithy_client.decorateServiceException)(exception, body);
809
- }, "de_ThrottlingExceptionRes");
810
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
811
- const body = parsedOutput.body;
812
- const deserialized = (0, import_smithy_client._json)(body);
813
- const exception = new ValidationException({
814
- $metadata: deserializeMetadata(parsedOutput),
815
- ...deserialized
816
- });
817
- return (0, import_smithy_client.decorateServiceException)(exception, body);
818
- }, "de_ValidationExceptionRes");
819
- var se_CreateScheduledQueryRequest = /* @__PURE__ */ __name((input, context) => {
820
- return (0, import_smithy_client.take)(input, {
821
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
822
- ErrorReportConfiguration: import_smithy_client._json,
823
- KmsKeyId: [],
824
- Name: [],
825
- NotificationConfiguration: import_smithy_client._json,
826
- QueryString: [],
827
- ScheduleConfiguration: import_smithy_client._json,
828
- ScheduledQueryExecutionRoleArn: [],
829
- Tags: import_smithy_client._json,
830
- TargetConfiguration: import_smithy_client._json
831
- });
832
- }, "se_CreateScheduledQueryRequest");
833
- var se_ExecuteScheduledQueryRequest = /* @__PURE__ */ __name((input, context) => {
834
- return (0, import_smithy_client.take)(input, {
835
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
836
- InvocationTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "InvocationTime"),
837
- QueryInsights: import_smithy_client._json,
838
- ScheduledQueryArn: []
839
- });
840
- }, "se_ExecuteScheduledQueryRequest");
841
- var se_QueryRequest = /* @__PURE__ */ __name((input, context) => {
842
- return (0, import_smithy_client.take)(input, {
843
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
844
- MaxRows: [],
845
- NextToken: [],
846
- QueryInsights: import_smithy_client._json,
847
- QueryString: []
848
- });
849
- }, "se_QueryRequest");
850
- var de_ColumnInfo = /* @__PURE__ */ __name((output, context) => {
851
- return (0, import_smithy_client.take)(output, {
852
- Name: import_smithy_client.expectString,
853
- Type: /* @__PURE__ */ __name((_) => de_Type(_, context), "Type")
854
- });
855
- }, "de_ColumnInfo");
856
- var de_ColumnInfoList = /* @__PURE__ */ __name((output, context) => {
857
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
858
- return de_ColumnInfo(entry, context);
859
- });
860
- return retVal;
861
- }, "de_ColumnInfoList");
862
- var de_Datum = /* @__PURE__ */ __name((output, context) => {
863
- return (0, import_smithy_client.take)(output, {
864
- ArrayValue: /* @__PURE__ */ __name((_) => de_DatumList(_, context), "ArrayValue"),
865
- NullValue: import_smithy_client.expectBoolean,
866
- RowValue: /* @__PURE__ */ __name((_) => de_Row(_, context), "RowValue"),
867
- ScalarValue: import_smithy_client.expectString,
868
- TimeSeriesValue: /* @__PURE__ */ __name((_) => de_TimeSeriesDataPointList(_, context), "TimeSeriesValue")
869
- });
870
- }, "de_Datum");
871
- var de_DatumList = /* @__PURE__ */ __name((output, context) => {
872
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
873
- return de_Datum(entry, context);
874
- });
875
- return retVal;
876
- }, "de_DatumList");
877
- var de_DescribeScheduledQueryResponse = /* @__PURE__ */ __name((output, context) => {
878
- return (0, import_smithy_client.take)(output, {
879
- ScheduledQuery: /* @__PURE__ */ __name((_) => de_ScheduledQueryDescription(_, context), "ScheduledQuery")
880
- });
881
- }, "de_DescribeScheduledQueryResponse");
882
- var de_ListScheduledQueriesResponse = /* @__PURE__ */ __name((output, context) => {
883
- return (0, import_smithy_client.take)(output, {
884
- NextToken: import_smithy_client.expectString,
885
- ScheduledQueries: /* @__PURE__ */ __name((_) => de_ScheduledQueryList(_, context), "ScheduledQueries")
886
- });
887
- }, "de_ListScheduledQueriesResponse");
888
- var de_ParameterMapping = /* @__PURE__ */ __name((output, context) => {
889
- return (0, import_smithy_client.take)(output, {
890
- Name: import_smithy_client.expectString,
891
- Type: /* @__PURE__ */ __name((_) => de_Type(_, context), "Type")
892
- });
893
- }, "de_ParameterMapping");
894
- var de_ParameterMappingList = /* @__PURE__ */ __name((output, context) => {
895
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
896
- return de_ParameterMapping(entry, context);
897
- });
898
- return retVal;
899
- }, "de_ParameterMappingList");
900
- var de_PrepareQueryResponse = /* @__PURE__ */ __name((output, context) => {
901
- return (0, import_smithy_client.take)(output, {
902
- Columns: /* @__PURE__ */ __name((_) => de_SelectColumnList(_, context), "Columns"),
903
- Parameters: /* @__PURE__ */ __name((_) => de_ParameterMappingList(_, context), "Parameters"),
904
- QueryString: import_smithy_client.expectString
905
- });
906
- }, "de_PrepareQueryResponse");
907
- var de_QueryInsightsResponse = /* @__PURE__ */ __name((output, context) => {
908
- return (0, import_smithy_client.take)(output, {
909
- OutputBytes: import_smithy_client.expectLong,
910
- OutputRows: import_smithy_client.expectLong,
911
- QuerySpatialCoverage: /* @__PURE__ */ __name((_) => de_QuerySpatialCoverage(_, context), "QuerySpatialCoverage"),
912
- QueryTableCount: import_smithy_client.expectLong,
913
- QueryTemporalRange: import_smithy_client._json,
914
- UnloadPartitionCount: import_smithy_client.expectLong,
915
- UnloadWrittenBytes: import_smithy_client.expectLong,
916
- UnloadWrittenRows: import_smithy_client.expectLong
917
- });
918
- }, "de_QueryInsightsResponse");
919
- var de_QueryResponse = /* @__PURE__ */ __name((output, context) => {
920
- return (0, import_smithy_client.take)(output, {
921
- ColumnInfo: /* @__PURE__ */ __name((_) => de_ColumnInfoList(_, context), "ColumnInfo"),
922
- NextToken: import_smithy_client.expectString,
923
- QueryId: import_smithy_client.expectString,
924
- QueryInsightsResponse: /* @__PURE__ */ __name((_) => de_QueryInsightsResponse(_, context), "QueryInsightsResponse"),
925
- QueryStatus: /* @__PURE__ */ __name((_) => de_QueryStatus(_, context), "QueryStatus"),
926
- Rows: /* @__PURE__ */ __name((_) => de_RowList(_, context), "Rows")
927
- });
928
- }, "de_QueryResponse");
929
- var de_QuerySpatialCoverage = /* @__PURE__ */ __name((output, context) => {
930
- return (0, import_smithy_client.take)(output, {
931
- Max: /* @__PURE__ */ __name((_) => de_QuerySpatialCoverageMax(_, context), "Max")
932
- });
933
- }, "de_QuerySpatialCoverage");
934
- var de_QuerySpatialCoverageMax = /* @__PURE__ */ __name((output, context) => {
935
- return (0, import_smithy_client.take)(output, {
936
- PartitionKey: import_smithy_client._json,
937
- TableArn: import_smithy_client.expectString,
938
- Value: import_smithy_client.limitedParseDouble
939
- });
940
- }, "de_QuerySpatialCoverageMax");
941
- var de_QueryStatus = /* @__PURE__ */ __name((output, context) => {
942
- return (0, import_smithy_client.take)(output, {
943
- CumulativeBytesMetered: import_smithy_client.expectLong,
944
- CumulativeBytesScanned: import_smithy_client.expectLong,
945
- ProgressPercentage: import_smithy_client.limitedParseDouble
946
- });
947
- }, "de_QueryStatus");
948
- var de_Row = /* @__PURE__ */ __name((output, context) => {
949
- return (0, import_smithy_client.take)(output, {
950
- Data: /* @__PURE__ */ __name((_) => de_DatumList(_, context), "Data")
951
- });
952
- }, "de_Row");
953
- var de_RowList = /* @__PURE__ */ __name((output, context) => {
954
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
955
- return de_Row(entry, context);
956
- });
957
- return retVal;
958
- }, "de_RowList");
959
- var de_ScheduledQuery = /* @__PURE__ */ __name((output, context) => {
960
- return (0, import_smithy_client.take)(output, {
961
- Arn: import_smithy_client.expectString,
962
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
963
- ErrorReportConfiguration: import_smithy_client._json,
964
- LastRunStatus: import_smithy_client.expectString,
965
- Name: import_smithy_client.expectString,
966
- NextInvocationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "NextInvocationTime"),
967
- PreviousInvocationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "PreviousInvocationTime"),
968
- State: import_smithy_client.expectString,
969
- TargetDestination: import_smithy_client._json
970
- });
971
- }, "de_ScheduledQuery");
972
- var de_ScheduledQueryDescription = /* @__PURE__ */ __name((output, context) => {
973
- return (0, import_smithy_client.take)(output, {
974
- Arn: import_smithy_client.expectString,
975
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
976
- ErrorReportConfiguration: import_smithy_client._json,
977
- KmsKeyId: import_smithy_client.expectString,
978
- LastRunSummary: /* @__PURE__ */ __name((_) => de_ScheduledQueryRunSummary(_, context), "LastRunSummary"),
979
- Name: import_smithy_client.expectString,
980
- NextInvocationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "NextInvocationTime"),
981
- NotificationConfiguration: import_smithy_client._json,
982
- PreviousInvocationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "PreviousInvocationTime"),
983
- QueryString: import_smithy_client.expectString,
984
- RecentlyFailedRuns: /* @__PURE__ */ __name((_) => de_ScheduledQueryRunSummaryList(_, context), "RecentlyFailedRuns"),
985
- ScheduleConfiguration: import_smithy_client._json,
986
- ScheduledQueryExecutionRoleArn: import_smithy_client.expectString,
987
- State: import_smithy_client.expectString,
988
- TargetConfiguration: import_smithy_client._json
989
- });
990
- }, "de_ScheduledQueryDescription");
991
- var de_ScheduledQueryInsightsResponse = /* @__PURE__ */ __name((output, context) => {
992
- return (0, import_smithy_client.take)(output, {
993
- OutputBytes: import_smithy_client.expectLong,
994
- OutputRows: import_smithy_client.expectLong,
995
- QuerySpatialCoverage: /* @__PURE__ */ __name((_) => de_QuerySpatialCoverage(_, context), "QuerySpatialCoverage"),
996
- QueryTableCount: import_smithy_client.expectLong,
997
- QueryTemporalRange: import_smithy_client._json
998
- });
999
- }, "de_ScheduledQueryInsightsResponse");
1000
- var de_ScheduledQueryList = /* @__PURE__ */ __name((output, context) => {
1001
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1002
- return de_ScheduledQuery(entry, context);
1003
- });
1004
- return retVal;
1005
- }, "de_ScheduledQueryList");
1006
- var de_ScheduledQueryRunSummary = /* @__PURE__ */ __name((output, context) => {
1007
- return (0, import_smithy_client.take)(output, {
1008
- ErrorReportLocation: import_smithy_client._json,
1009
- ExecutionStats: import_smithy_client._json,
1010
- FailureReason: import_smithy_client.expectString,
1011
- InvocationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "InvocationTime"),
1012
- QueryInsightsResponse: /* @__PURE__ */ __name((_) => de_ScheduledQueryInsightsResponse(_, context), "QueryInsightsResponse"),
1013
- RunStatus: import_smithy_client.expectString,
1014
- TriggerTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "TriggerTime")
1015
- });
1016
- }, "de_ScheduledQueryRunSummary");
1017
- var de_ScheduledQueryRunSummaryList = /* @__PURE__ */ __name((output, context) => {
1018
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1019
- return de_ScheduledQueryRunSummary(entry, context);
1020
- });
1021
- return retVal;
1022
- }, "de_ScheduledQueryRunSummaryList");
1023
- var de_SelectColumn = /* @__PURE__ */ __name((output, context) => {
1024
- return (0, import_smithy_client.take)(output, {
1025
- Aliased: import_smithy_client.expectBoolean,
1026
- DatabaseName: import_smithy_client.expectString,
1027
- Name: import_smithy_client.expectString,
1028
- TableName: import_smithy_client.expectString,
1029
- Type: /* @__PURE__ */ __name((_) => de_Type(_, context), "Type")
1030
- });
1031
- }, "de_SelectColumn");
1032
- var de_SelectColumnList = /* @__PURE__ */ __name((output, context) => {
1033
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1034
- return de_SelectColumn(entry, context);
1035
- });
1036
- return retVal;
1037
- }, "de_SelectColumnList");
1038
- var de_TimeSeriesDataPoint = /* @__PURE__ */ __name((output, context) => {
1039
- return (0, import_smithy_client.take)(output, {
1040
- Time: import_smithy_client.expectString,
1041
- Value: /* @__PURE__ */ __name((_) => de_Datum(_, context), "Value")
1042
- });
1043
- }, "de_TimeSeriesDataPoint");
1044
- var de_TimeSeriesDataPointList = /* @__PURE__ */ __name((output, context) => {
1045
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1046
- return de_TimeSeriesDataPoint(entry, context);
1047
- });
1048
- return retVal;
1049
- }, "de_TimeSeriesDataPointList");
1050
- var de_Type = /* @__PURE__ */ __name((output, context) => {
1051
- return (0, import_smithy_client.take)(output, {
1052
- ArrayColumnInfo: /* @__PURE__ */ __name((_) => de_ColumnInfo(_, context), "ArrayColumnInfo"),
1053
- RowColumnInfo: /* @__PURE__ */ __name((_) => de_ColumnInfoList(_, context), "RowColumnInfo"),
1054
- ScalarType: import_smithy_client.expectString,
1055
- TimeSeriesMeasureValueColumnInfo: /* @__PURE__ */ __name((_) => de_ColumnInfo(_, context), "TimeSeriesMeasureValueColumnInfo")
1056
- });
1057
- }, "de_Type");
1058
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1059
- httpStatusCode: output.statusCode,
1060
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1061
- extendedRequestId: output.headers["x-amz-id-2"],
1062
- cfId: output.headers["x-amz-cf-id"]
1063
- }), "deserializeMetadata");
1064
- var throwDefaultError = (0, import_smithy_client.withBaseException)(TimestreamQueryServiceException);
1065
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1066
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1067
- const contents = {
1068
- protocol,
1069
- hostname,
1070
- port,
1071
- method: "POST",
1072
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1073
- headers
1074
- };
1075
- if (resolvedHostname !== void 0) {
1076
- contents.hostname = resolvedHostname;
1077
- }
1078
- if (body !== void 0) {
1079
- contents.body = body;
1080
- }
1081
- return new import_protocol_http.HttpRequest(contents);
1082
- }, "buildHttpRpcRequest");
1083
- function sharedHeaders(operation) {
1084
- return {
1085
- "content-type": "application/x-amz-json-1.0",
1086
- "x-amz-target": `Timestream_20181101.${operation}`
1087
- };
1088
- }
1089
- __name(sharedHeaders, "sharedHeaders");
1090
-
1091
- // src/commands/DescribeEndpointsCommand.ts
1092
- var DescribeEndpointsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1093
- return [
1094
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1095
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1096
- ];
1097
- }).s("Timestream_20181101", "DescribeEndpoints", {}).n("TimestreamQueryClient", "DescribeEndpointsCommand").f(void 0, void 0).ser(se_DescribeEndpointsCommand).de(de_DescribeEndpointsCommand).build() {
1098
- static {
1099
- __name(this, "DescribeEndpointsCommand");
1100
- }
665
+ return smithyClient.decorateServiceException(exception, body);
1101
666
  };
1102
-
1103
- // src/TimestreamQueryClient.ts
1104
- var import_runtimeConfig = require("././runtimeConfig");
1105
-
1106
- // src/runtimeExtensions.ts
1107
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
1108
-
1109
-
1110
-
1111
- // src/auth/httpAuthExtensionConfiguration.ts
1112
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
1113
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
1114
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
1115
- let _credentials = runtimeConfig.credentials;
1116
- return {
1117
- setHttpAuthScheme(httpAuthScheme) {
1118
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
1119
- if (index === -1) {
1120
- _httpAuthSchemes.push(httpAuthScheme);
1121
- } else {
1122
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
1123
- }
1124
- },
1125
- httpAuthSchemes() {
1126
- return _httpAuthSchemes;
1127
- },
1128
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
1129
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
1130
- },
1131
- httpAuthSchemeProvider() {
1132
- return _httpAuthSchemeProvider;
1133
- },
1134
- setCredentials(credentials) {
1135
- _credentials = credentials;
1136
- },
1137
- credentials() {
1138
- return _credentials;
1139
- }
1140
- };
1141
- }, "getHttpAuthExtensionConfiguration");
1142
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
1143
- return {
1144
- httpAuthSchemes: config.httpAuthSchemes(),
1145
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
1146
- credentials: config.credentials()
1147
- };
1148
- }, "resolveHttpAuthRuntimeConfig");
1149
-
1150
- // src/runtimeExtensions.ts
1151
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
1152
- const extensionConfiguration = Object.assign(
1153
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
1154
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
1155
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
1156
- getHttpAuthExtensionConfiguration(runtimeConfig)
1157
- );
1158
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
1159
- return Object.assign(
1160
- runtimeConfig,
1161
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
1162
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
1163
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
1164
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
1165
- );
1166
- }, "resolveRuntimeExtensions");
1167
-
1168
- // src/TimestreamQueryClient.ts
1169
- var TimestreamQueryClient = class extends import_smithy_client.Client {
1170
- static {
1171
- __name(this, "TimestreamQueryClient");
1172
- }
1173
- /**
1174
- * The resolved configuration of TimestreamQueryClient class. This is resolved and normalized from the {@link TimestreamQueryClientConfig | constructor configuration interface}.
1175
- */
1176
- config;
1177
- constructor(...[configuration]) {
1178
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
1179
- super(_config_0);
1180
- this.initConfig = _config_0;
1181
- const _config_1 = resolveClientEndpointParameters(_config_0);
1182
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
1183
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
1184
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
1185
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
1186
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
1187
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
1188
- const _config_8 = (0, import_middleware_endpoint_discovery.resolveEndpointDiscoveryConfig)(_config_7, {
1189
- endpointDiscoveryCommandCtor: DescribeEndpointsCommand
667
+ const se_CreateScheduledQueryRequest = (input, context) => {
668
+ return smithyClient.take(input, {
669
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
670
+ ErrorReportConfiguration: smithyClient._json,
671
+ KmsKeyId: [],
672
+ Name: [],
673
+ NotificationConfiguration: smithyClient._json,
674
+ QueryString: [],
675
+ ScheduleConfiguration: smithyClient._json,
676
+ ScheduledQueryExecutionRoleArn: [],
677
+ Tags: smithyClient._json,
678
+ TargetConfiguration: smithyClient._json,
1190
679
  });
1191
- const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
1192
- this.config = _config_9;
1193
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
1194
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
1195
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
1196
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
1197
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
1198
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
1199
- this.middlewareStack.use(
1200
- (0, import_core2.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
1201
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultTimestreamQueryHttpAuthSchemeParametersProvider,
1202
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core2.DefaultIdentityProviderConfig({
1203
- "aws.auth#sigv4": config.credentials
1204
- }), "identityProviderConfigProvider")
1205
- })
1206
- );
1207
- this.middlewareStack.use((0, import_core2.getHttpSigningPlugin)(this.config));
1208
- }
1209
- /**
1210
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
1211
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
1212
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
1213
- */
1214
- destroy() {
1215
- super.destroy();
1216
- }
1217
680
  };
1218
-
1219
- // src/TimestreamQuery.ts
1220
-
1221
-
1222
- // src/commands/CancelQueryCommand.ts
1223
-
1224
-
1225
-
1226
-
1227
- var CancelQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1228
- return [
1229
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1230
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1231
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1232
- clientStack: cs,
1233
- isDiscoveredEndpointRequired: true,
1234
- options: o
1235
- })
1236
- ];
1237
- }).s("Timestream_20181101", "CancelQuery", {}).n("TimestreamQueryClient", "CancelQueryCommand").f(void 0, void 0).ser(se_CancelQueryCommand).de(de_CancelQueryCommand).build() {
1238
- static {
1239
- __name(this, "CancelQueryCommand");
1240
- }
681
+ const se_ExecuteScheduledQueryRequest = (input, context) => {
682
+ return smithyClient.take(input, {
683
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
684
+ InvocationTime: (_) => _.getTime() / 1_000,
685
+ QueryInsights: smithyClient._json,
686
+ ScheduledQueryArn: [],
687
+ });
1241
688
  };
1242
-
1243
- // src/commands/CreateScheduledQueryCommand.ts
1244
-
1245
-
1246
-
1247
-
1248
- var CreateScheduledQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1249
- return [
1250
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1251
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1252
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1253
- clientStack: cs,
1254
- isDiscoveredEndpointRequired: true,
1255
- options: o
1256
- })
1257
- ];
1258
- }).s("Timestream_20181101", "CreateScheduledQuery", {}).n("TimestreamQueryClient", "CreateScheduledQueryCommand").f(CreateScheduledQueryRequestFilterSensitiveLog, void 0).ser(se_CreateScheduledQueryCommand).de(de_CreateScheduledQueryCommand).build() {
1259
- static {
1260
- __name(this, "CreateScheduledQueryCommand");
1261
- }
689
+ const se_QueryRequest = (input, context) => {
690
+ return smithyClient.take(input, {
691
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
692
+ MaxRows: [],
693
+ NextToken: [],
694
+ QueryInsights: smithyClient._json,
695
+ QueryString: [],
696
+ });
1262
697
  };
1263
-
1264
- // src/commands/DeleteScheduledQueryCommand.ts
1265
-
1266
-
1267
-
1268
-
1269
- var DeleteScheduledQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1270
- return [
1271
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1272
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1273
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1274
- clientStack: cs,
1275
- isDiscoveredEndpointRequired: true,
1276
- options: o
1277
- })
1278
- ];
1279
- }).s("Timestream_20181101", "DeleteScheduledQuery", {}).n("TimestreamQueryClient", "DeleteScheduledQueryCommand").f(void 0, void 0).ser(se_DeleteScheduledQueryCommand).de(de_DeleteScheduledQueryCommand).build() {
1280
- static {
1281
- __name(this, "DeleteScheduledQueryCommand");
1282
- }
698
+ const de_ColumnInfo = (output, context) => {
699
+ return smithyClient.take(output, {
700
+ Name: smithyClient.expectString,
701
+ Type: (_) => de_Type(_),
702
+ });
1283
703
  };
1284
-
1285
- // src/commands/DescribeAccountSettingsCommand.ts
1286
-
1287
-
1288
-
1289
-
1290
- var DescribeAccountSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1291
- return [
1292
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1293
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1294
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1295
- clientStack: cs,
1296
- isDiscoveredEndpointRequired: true,
1297
- options: o
1298
- })
1299
- ];
1300
- }).s("Timestream_20181101", "DescribeAccountSettings", {}).n("TimestreamQueryClient", "DescribeAccountSettingsCommand").f(void 0, void 0).ser(se_DescribeAccountSettingsCommand).de(de_DescribeAccountSettingsCommand).build() {
1301
- static {
1302
- __name(this, "DescribeAccountSettingsCommand");
1303
- }
704
+ const de_ColumnInfoList = (output, context) => {
705
+ const retVal = (output || [])
706
+ .filter((e) => e != null)
707
+ .map((entry) => {
708
+ return de_ColumnInfo(entry);
709
+ });
710
+ return retVal;
1304
711
  };
1305
-
1306
- // src/commands/DescribeScheduledQueryCommand.ts
1307
-
1308
-
1309
-
1310
-
1311
- var DescribeScheduledQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1312
- return [
1313
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1314
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1315
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1316
- clientStack: cs,
1317
- isDiscoveredEndpointRequired: true,
1318
- options: o
1319
- })
1320
- ];
1321
- }).s("Timestream_20181101", "DescribeScheduledQuery", {}).n("TimestreamQueryClient", "DescribeScheduledQueryCommand").f(void 0, DescribeScheduledQueryResponseFilterSensitiveLog).ser(se_DescribeScheduledQueryCommand).de(de_DescribeScheduledQueryCommand).build() {
1322
- static {
1323
- __name(this, "DescribeScheduledQueryCommand");
1324
- }
712
+ const de_Datum = (output, context) => {
713
+ return smithyClient.take(output, {
714
+ ArrayValue: (_) => de_DatumList(_),
715
+ NullValue: smithyClient.expectBoolean,
716
+ RowValue: (_) => de_Row(_),
717
+ ScalarValue: smithyClient.expectString,
718
+ TimeSeriesValue: (_) => de_TimeSeriesDataPointList(_),
719
+ });
1325
720
  };
1326
-
1327
- // src/commands/ExecuteScheduledQueryCommand.ts
1328
-
1329
-
1330
-
1331
-
1332
- var ExecuteScheduledQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1333
- return [
1334
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1335
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1336
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1337
- clientStack: cs,
1338
- isDiscoveredEndpointRequired: true,
1339
- options: o
1340
- })
1341
- ];
1342
- }).s("Timestream_20181101", "ExecuteScheduledQuery", {}).n("TimestreamQueryClient", "ExecuteScheduledQueryCommand").f(ExecuteScheduledQueryRequestFilterSensitiveLog, void 0).ser(se_ExecuteScheduledQueryCommand).de(de_ExecuteScheduledQueryCommand).build() {
1343
- static {
1344
- __name(this, "ExecuteScheduledQueryCommand");
1345
- }
721
+ const de_DatumList = (output, context) => {
722
+ const retVal = (output || [])
723
+ .filter((e) => e != null)
724
+ .map((entry) => {
725
+ return de_Datum(entry);
726
+ });
727
+ return retVal;
1346
728
  };
1347
-
1348
- // src/commands/ListScheduledQueriesCommand.ts
1349
-
1350
-
1351
-
1352
-
1353
- var ListScheduledQueriesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1354
- return [
1355
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1356
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1357
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1358
- clientStack: cs,
1359
- isDiscoveredEndpointRequired: true,
1360
- options: o
1361
- })
1362
- ];
1363
- }).s("Timestream_20181101", "ListScheduledQueries", {}).n("TimestreamQueryClient", "ListScheduledQueriesCommand").f(void 0, void 0).ser(se_ListScheduledQueriesCommand).de(de_ListScheduledQueriesCommand).build() {
1364
- static {
1365
- __name(this, "ListScheduledQueriesCommand");
1366
- }
729
+ const de_DescribeScheduledQueryResponse = (output, context) => {
730
+ return smithyClient.take(output, {
731
+ ScheduledQuery: (_) => de_ScheduledQueryDescription(_),
732
+ });
1367
733
  };
1368
-
1369
- // src/commands/ListTagsForResourceCommand.ts
1370
-
1371
-
1372
-
1373
-
1374
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1375
- return [
1376
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1377
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1378
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1379
- clientStack: cs,
1380
- isDiscoveredEndpointRequired: true,
1381
- options: o
1382
- })
1383
- ];
1384
- }).s("Timestream_20181101", "ListTagsForResource", {}).n("TimestreamQueryClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1385
- static {
1386
- __name(this, "ListTagsForResourceCommand");
1387
- }
734
+ const de_ListScheduledQueriesResponse = (output, context) => {
735
+ return smithyClient.take(output, {
736
+ NextToken: smithyClient.expectString,
737
+ ScheduledQueries: (_) => de_ScheduledQueryList(_),
738
+ });
1388
739
  };
1389
-
1390
- // src/commands/PrepareQueryCommand.ts
1391
-
1392
-
1393
-
1394
-
1395
- var PrepareQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1396
- return [
1397
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1398
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1399
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1400
- clientStack: cs,
1401
- isDiscoveredEndpointRequired: true,
1402
- options: o
1403
- })
1404
- ];
1405
- }).s("Timestream_20181101", "PrepareQuery", {}).n("TimestreamQueryClient", "PrepareQueryCommand").f(PrepareQueryRequestFilterSensitiveLog, PrepareQueryResponseFilterSensitiveLog).ser(se_PrepareQueryCommand).de(de_PrepareQueryCommand).build() {
1406
- static {
1407
- __name(this, "PrepareQueryCommand");
1408
- }
740
+ const de_ParameterMapping = (output, context) => {
741
+ return smithyClient.take(output, {
742
+ Name: smithyClient.expectString,
743
+ Type: (_) => de_Type(_),
744
+ });
1409
745
  };
1410
-
1411
- // src/commands/QueryCommand.ts
1412
-
1413
-
1414
-
1415
-
1416
- var QueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1417
- return [
1418
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1419
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1420
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1421
- clientStack: cs,
1422
- isDiscoveredEndpointRequired: true,
1423
- options: o
1424
- })
1425
- ];
1426
- }).s("Timestream_20181101", "Query", {}).n("TimestreamQueryClient", "QueryCommand").f(QueryRequestFilterSensitiveLog, void 0).ser(se_QueryCommand).de(de_QueryCommand).build() {
1427
- static {
1428
- __name(this, "QueryCommand");
1429
- }
746
+ const de_ParameterMappingList = (output, context) => {
747
+ const retVal = (output || [])
748
+ .filter((e) => e != null)
749
+ .map((entry) => {
750
+ return de_ParameterMapping(entry);
751
+ });
752
+ return retVal;
1430
753
  };
754
+ const de_PrepareQueryResponse = (output, context) => {
755
+ return smithyClient.take(output, {
756
+ Columns: (_) => de_SelectColumnList(_),
757
+ Parameters: (_) => de_ParameterMappingList(_),
758
+ QueryString: smithyClient.expectString,
759
+ });
760
+ };
761
+ const de_QueryInsightsResponse = (output, context) => {
762
+ return smithyClient.take(output, {
763
+ OutputBytes: smithyClient.expectLong,
764
+ OutputRows: smithyClient.expectLong,
765
+ QuerySpatialCoverage: (_) => de_QuerySpatialCoverage(_),
766
+ QueryTableCount: smithyClient.expectLong,
767
+ QueryTemporalRange: smithyClient._json,
768
+ UnloadPartitionCount: smithyClient.expectLong,
769
+ UnloadWrittenBytes: smithyClient.expectLong,
770
+ UnloadWrittenRows: smithyClient.expectLong,
771
+ });
772
+ };
773
+ const de_QueryResponse = (output, context) => {
774
+ return smithyClient.take(output, {
775
+ ColumnInfo: (_) => de_ColumnInfoList(_),
776
+ NextToken: smithyClient.expectString,
777
+ QueryId: smithyClient.expectString,
778
+ QueryInsightsResponse: (_) => de_QueryInsightsResponse(_),
779
+ QueryStatus: (_) => de_QueryStatus(_),
780
+ Rows: (_) => de_RowList(_),
781
+ });
782
+ };
783
+ const de_QuerySpatialCoverage = (output, context) => {
784
+ return smithyClient.take(output, {
785
+ Max: (_) => de_QuerySpatialCoverageMax(_),
786
+ });
787
+ };
788
+ const de_QuerySpatialCoverageMax = (output, context) => {
789
+ return smithyClient.take(output, {
790
+ PartitionKey: smithyClient._json,
791
+ TableArn: smithyClient.expectString,
792
+ Value: smithyClient.limitedParseDouble,
793
+ });
794
+ };
795
+ const de_QueryStatus = (output, context) => {
796
+ return smithyClient.take(output, {
797
+ CumulativeBytesMetered: smithyClient.expectLong,
798
+ CumulativeBytesScanned: smithyClient.expectLong,
799
+ ProgressPercentage: smithyClient.limitedParseDouble,
800
+ });
801
+ };
802
+ const de_Row = (output, context) => {
803
+ return smithyClient.take(output, {
804
+ Data: (_) => de_DatumList(_),
805
+ });
806
+ };
807
+ const de_RowList = (output, context) => {
808
+ const retVal = (output || [])
809
+ .filter((e) => e != null)
810
+ .map((entry) => {
811
+ return de_Row(entry);
812
+ });
813
+ return retVal;
814
+ };
815
+ const de_ScheduledQuery = (output, context) => {
816
+ return smithyClient.take(output, {
817
+ Arn: smithyClient.expectString,
818
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
819
+ ErrorReportConfiguration: smithyClient._json,
820
+ LastRunStatus: smithyClient.expectString,
821
+ Name: smithyClient.expectString,
822
+ NextInvocationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
823
+ PreviousInvocationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
824
+ State: smithyClient.expectString,
825
+ TargetDestination: smithyClient._json,
826
+ });
827
+ };
828
+ const de_ScheduledQueryDescription = (output, context) => {
829
+ return smithyClient.take(output, {
830
+ Arn: smithyClient.expectString,
831
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
832
+ ErrorReportConfiguration: smithyClient._json,
833
+ KmsKeyId: smithyClient.expectString,
834
+ LastRunSummary: (_) => de_ScheduledQueryRunSummary(_),
835
+ Name: smithyClient.expectString,
836
+ NextInvocationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
837
+ NotificationConfiguration: smithyClient._json,
838
+ PreviousInvocationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
839
+ QueryString: smithyClient.expectString,
840
+ RecentlyFailedRuns: (_) => de_ScheduledQueryRunSummaryList(_),
841
+ ScheduleConfiguration: smithyClient._json,
842
+ ScheduledQueryExecutionRoleArn: smithyClient.expectString,
843
+ State: smithyClient.expectString,
844
+ TargetConfiguration: smithyClient._json,
845
+ });
846
+ };
847
+ const de_ScheduledQueryInsightsResponse = (output, context) => {
848
+ return smithyClient.take(output, {
849
+ OutputBytes: smithyClient.expectLong,
850
+ OutputRows: smithyClient.expectLong,
851
+ QuerySpatialCoverage: (_) => de_QuerySpatialCoverage(_),
852
+ QueryTableCount: smithyClient.expectLong,
853
+ QueryTemporalRange: smithyClient._json,
854
+ });
855
+ };
856
+ const de_ScheduledQueryList = (output, context) => {
857
+ const retVal = (output || [])
858
+ .filter((e) => e != null)
859
+ .map((entry) => {
860
+ return de_ScheduledQuery(entry);
861
+ });
862
+ return retVal;
863
+ };
864
+ const de_ScheduledQueryRunSummary = (output, context) => {
865
+ return smithyClient.take(output, {
866
+ ErrorReportLocation: smithyClient._json,
867
+ ExecutionStats: smithyClient._json,
868
+ FailureReason: smithyClient.expectString,
869
+ InvocationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
870
+ QueryInsightsResponse: (_) => de_ScheduledQueryInsightsResponse(_),
871
+ RunStatus: smithyClient.expectString,
872
+ TriggerTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
873
+ });
874
+ };
875
+ const de_ScheduledQueryRunSummaryList = (output, context) => {
876
+ const retVal = (output || [])
877
+ .filter((e) => e != null)
878
+ .map((entry) => {
879
+ return de_ScheduledQueryRunSummary(entry);
880
+ });
881
+ return retVal;
882
+ };
883
+ const de_SelectColumn = (output, context) => {
884
+ return smithyClient.take(output, {
885
+ Aliased: smithyClient.expectBoolean,
886
+ DatabaseName: smithyClient.expectString,
887
+ Name: smithyClient.expectString,
888
+ TableName: smithyClient.expectString,
889
+ Type: (_) => de_Type(_),
890
+ });
891
+ };
892
+ const de_SelectColumnList = (output, context) => {
893
+ const retVal = (output || [])
894
+ .filter((e) => e != null)
895
+ .map((entry) => {
896
+ return de_SelectColumn(entry);
897
+ });
898
+ return retVal;
899
+ };
900
+ const de_TimeSeriesDataPoint = (output, context) => {
901
+ return smithyClient.take(output, {
902
+ Time: smithyClient.expectString,
903
+ Value: (_) => de_Datum(_),
904
+ });
905
+ };
906
+ const de_TimeSeriesDataPointList = (output, context) => {
907
+ const retVal = (output || [])
908
+ .filter((e) => e != null)
909
+ .map((entry) => {
910
+ return de_TimeSeriesDataPoint(entry);
911
+ });
912
+ return retVal;
913
+ };
914
+ const de_Type = (output, context) => {
915
+ return smithyClient.take(output, {
916
+ ArrayColumnInfo: (_) => de_ColumnInfo(_),
917
+ RowColumnInfo: (_) => de_ColumnInfoList(_),
918
+ ScalarType: smithyClient.expectString,
919
+ TimeSeriesMeasureValueColumnInfo: (_) => de_ColumnInfo(_),
920
+ });
921
+ };
922
+ const deserializeMetadata = (output) => ({
923
+ httpStatusCode: output.statusCode,
924
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
925
+ extendedRequestId: output.headers["x-amz-id-2"],
926
+ cfId: output.headers["x-amz-cf-id"],
927
+ });
928
+ const throwDefaultError = smithyClient.withBaseException(TimestreamQueryServiceException);
929
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
930
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
931
+ const contents = {
932
+ protocol,
933
+ hostname,
934
+ port,
935
+ method: "POST",
936
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
937
+ headers,
938
+ };
939
+ if (body !== undefined) {
940
+ contents.body = body;
941
+ }
942
+ return new protocolHttp.HttpRequest(contents);
943
+ };
944
+ function sharedHeaders(operation) {
945
+ return {
946
+ "content-type": "application/x-amz-json-1.0",
947
+ "x-amz-target": `Timestream_20181101.${operation}`,
948
+ };
949
+ }
1431
950
 
1432
- // src/commands/TagResourceCommand.ts
1433
-
1434
-
951
+ class DescribeEndpointsCommand extends smithyClient.Command
952
+ .classBuilder()
953
+ .ep(commonParams)
954
+ .m(function (Command, cs, config, o) {
955
+ return [
956
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
957
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
958
+ ];
959
+ })
960
+ .s("Timestream_20181101", "DescribeEndpoints", {})
961
+ .n("TimestreamQueryClient", "DescribeEndpointsCommand")
962
+ .f(void 0, void 0)
963
+ .ser(se_DescribeEndpointsCommand)
964
+ .de(de_DescribeEndpointsCommand)
965
+ .build() {
966
+ }
1435
967
 
968
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
969
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
970
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
971
+ let _credentials = runtimeConfig.credentials;
972
+ return {
973
+ setHttpAuthScheme(httpAuthScheme) {
974
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
975
+ if (index === -1) {
976
+ _httpAuthSchemes.push(httpAuthScheme);
977
+ }
978
+ else {
979
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
980
+ }
981
+ },
982
+ httpAuthSchemes() {
983
+ return _httpAuthSchemes;
984
+ },
985
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
986
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
987
+ },
988
+ httpAuthSchemeProvider() {
989
+ return _httpAuthSchemeProvider;
990
+ },
991
+ setCredentials(credentials) {
992
+ _credentials = credentials;
993
+ },
994
+ credentials() {
995
+ return _credentials;
996
+ },
997
+ };
998
+ };
999
+ const resolveHttpAuthRuntimeConfig = (config) => {
1000
+ return {
1001
+ httpAuthSchemes: config.httpAuthSchemes(),
1002
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
1003
+ credentials: config.credentials(),
1004
+ };
1005
+ };
1436
1006
 
1437
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1438
- return [
1439
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1440
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1441
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1442
- clientStack: cs,
1443
- isDiscoveredEndpointRequired: true,
1444
- options: o
1445
- })
1446
- ];
1447
- }).s("Timestream_20181101", "TagResource", {}).n("TimestreamQueryClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1448
- static {
1449
- __name(this, "TagResourceCommand");
1450
- }
1007
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
1008
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
1009
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
1010
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
1451
1011
  };
1452
1012
 
1453
- // src/commands/UntagResourceCommand.ts
1013
+ class TimestreamQueryClient extends smithyClient.Client {
1014
+ config;
1015
+ constructor(...[configuration]) {
1016
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
1017
+ super(_config_0);
1018
+ this.initConfig = _config_0;
1019
+ const _config_1 = resolveClientEndpointParameters(_config_0);
1020
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
1021
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
1022
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
1023
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
1024
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
1025
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
1026
+ const _config_8 = middlewareEndpointDiscovery.resolveEndpointDiscoveryConfig(_config_7, {
1027
+ endpointDiscoveryCommandCtor: DescribeEndpointsCommand,
1028
+ });
1029
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
1030
+ this.config = _config_9;
1031
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
1032
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
1033
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
1034
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
1035
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
1036
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
1037
+ this.middlewareStack.use(core$1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
1038
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultTimestreamQueryHttpAuthSchemeParametersProvider,
1039
+ identityProviderConfigProvider: async (config) => new core$1.DefaultIdentityProviderConfig({
1040
+ "aws.auth#sigv4": config.credentials,
1041
+ }),
1042
+ }));
1043
+ this.middlewareStack.use(core$1.getHttpSigningPlugin(this.config));
1044
+ }
1045
+ destroy() {
1046
+ super.destroy();
1047
+ }
1048
+ }
1454
1049
 
1050
+ class CancelQueryCommand extends smithyClient.Command
1051
+ .classBuilder()
1052
+ .ep(commonParams)
1053
+ .m(function (Command, cs, config, o) {
1054
+ return [
1055
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1056
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1057
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1058
+ clientStack: cs,
1059
+ isDiscoveredEndpointRequired: true,
1060
+ options: o,
1061
+ }),
1062
+ ];
1063
+ })
1064
+ .s("Timestream_20181101", "CancelQuery", {})
1065
+ .n("TimestreamQueryClient", "CancelQueryCommand")
1066
+ .f(void 0, void 0)
1067
+ .ser(se_CancelQueryCommand)
1068
+ .de(de_CancelQueryCommand)
1069
+ .build() {
1070
+ }
1455
1071
 
1072
+ class CreateScheduledQueryCommand extends smithyClient.Command
1073
+ .classBuilder()
1074
+ .ep(commonParams)
1075
+ .m(function (Command, cs, config, o) {
1076
+ return [
1077
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1078
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1079
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1080
+ clientStack: cs,
1081
+ isDiscoveredEndpointRequired: true,
1082
+ options: o,
1083
+ }),
1084
+ ];
1085
+ })
1086
+ .s("Timestream_20181101", "CreateScheduledQuery", {})
1087
+ .n("TimestreamQueryClient", "CreateScheduledQueryCommand")
1088
+ .f(CreateScheduledQueryRequestFilterSensitiveLog, void 0)
1089
+ .ser(se_CreateScheduledQueryCommand)
1090
+ .de(de_CreateScheduledQueryCommand)
1091
+ .build() {
1092
+ }
1456
1093
 
1094
+ class DeleteScheduledQueryCommand extends smithyClient.Command
1095
+ .classBuilder()
1096
+ .ep(commonParams)
1097
+ .m(function (Command, cs, config, o) {
1098
+ return [
1099
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1100
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1101
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1102
+ clientStack: cs,
1103
+ isDiscoveredEndpointRequired: true,
1104
+ options: o,
1105
+ }),
1106
+ ];
1107
+ })
1108
+ .s("Timestream_20181101", "DeleteScheduledQuery", {})
1109
+ .n("TimestreamQueryClient", "DeleteScheduledQueryCommand")
1110
+ .f(void 0, void 0)
1111
+ .ser(se_DeleteScheduledQueryCommand)
1112
+ .de(de_DeleteScheduledQueryCommand)
1113
+ .build() {
1114
+ }
1457
1115
 
1458
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1459
- return [
1460
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1461
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1462
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1463
- clientStack: cs,
1464
- isDiscoveredEndpointRequired: true,
1465
- options: o
1466
- })
1467
- ];
1468
- }).s("Timestream_20181101", "UntagResource", {}).n("TimestreamQueryClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1469
- static {
1470
- __name(this, "UntagResourceCommand");
1471
- }
1472
- };
1116
+ class DescribeAccountSettingsCommand extends smithyClient.Command
1117
+ .classBuilder()
1118
+ .ep(commonParams)
1119
+ .m(function (Command, cs, config, o) {
1120
+ return [
1121
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1122
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1123
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1124
+ clientStack: cs,
1125
+ isDiscoveredEndpointRequired: true,
1126
+ options: o,
1127
+ }),
1128
+ ];
1129
+ })
1130
+ .s("Timestream_20181101", "DescribeAccountSettings", {})
1131
+ .n("TimestreamQueryClient", "DescribeAccountSettingsCommand")
1132
+ .f(void 0, void 0)
1133
+ .ser(se_DescribeAccountSettingsCommand)
1134
+ .de(de_DescribeAccountSettingsCommand)
1135
+ .build() {
1136
+ }
1473
1137
 
1474
- // src/commands/UpdateAccountSettingsCommand.ts
1138
+ class DescribeScheduledQueryCommand extends smithyClient.Command
1139
+ .classBuilder()
1140
+ .ep(commonParams)
1141
+ .m(function (Command, cs, config, o) {
1142
+ return [
1143
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1144
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1145
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1146
+ clientStack: cs,
1147
+ isDiscoveredEndpointRequired: true,
1148
+ options: o,
1149
+ }),
1150
+ ];
1151
+ })
1152
+ .s("Timestream_20181101", "DescribeScheduledQuery", {})
1153
+ .n("TimestreamQueryClient", "DescribeScheduledQueryCommand")
1154
+ .f(void 0, DescribeScheduledQueryResponseFilterSensitiveLog)
1155
+ .ser(se_DescribeScheduledQueryCommand)
1156
+ .de(de_DescribeScheduledQueryCommand)
1157
+ .build() {
1158
+ }
1475
1159
 
1160
+ class ExecuteScheduledQueryCommand extends smithyClient.Command
1161
+ .classBuilder()
1162
+ .ep(commonParams)
1163
+ .m(function (Command, cs, config, o) {
1164
+ return [
1165
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1166
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1167
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1168
+ clientStack: cs,
1169
+ isDiscoveredEndpointRequired: true,
1170
+ options: o,
1171
+ }),
1172
+ ];
1173
+ })
1174
+ .s("Timestream_20181101", "ExecuteScheduledQuery", {})
1175
+ .n("TimestreamQueryClient", "ExecuteScheduledQueryCommand")
1176
+ .f(ExecuteScheduledQueryRequestFilterSensitiveLog, void 0)
1177
+ .ser(se_ExecuteScheduledQueryCommand)
1178
+ .de(de_ExecuteScheduledQueryCommand)
1179
+ .build() {
1180
+ }
1476
1181
 
1182
+ class ListScheduledQueriesCommand extends smithyClient.Command
1183
+ .classBuilder()
1184
+ .ep(commonParams)
1185
+ .m(function (Command, cs, config, o) {
1186
+ return [
1187
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1188
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1189
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1190
+ clientStack: cs,
1191
+ isDiscoveredEndpointRequired: true,
1192
+ options: o,
1193
+ }),
1194
+ ];
1195
+ })
1196
+ .s("Timestream_20181101", "ListScheduledQueries", {})
1197
+ .n("TimestreamQueryClient", "ListScheduledQueriesCommand")
1198
+ .f(void 0, void 0)
1199
+ .ser(se_ListScheduledQueriesCommand)
1200
+ .de(de_ListScheduledQueriesCommand)
1201
+ .build() {
1202
+ }
1477
1203
 
1204
+ class ListTagsForResourceCommand extends smithyClient.Command
1205
+ .classBuilder()
1206
+ .ep(commonParams)
1207
+ .m(function (Command, cs, config, o) {
1208
+ return [
1209
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1210
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1211
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1212
+ clientStack: cs,
1213
+ isDiscoveredEndpointRequired: true,
1214
+ options: o,
1215
+ }),
1216
+ ];
1217
+ })
1218
+ .s("Timestream_20181101", "ListTagsForResource", {})
1219
+ .n("TimestreamQueryClient", "ListTagsForResourceCommand")
1220
+ .f(void 0, void 0)
1221
+ .ser(se_ListTagsForResourceCommand)
1222
+ .de(de_ListTagsForResourceCommand)
1223
+ .build() {
1224
+ }
1478
1225
 
1479
- var UpdateAccountSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1480
- return [
1481
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1482
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1483
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1484
- clientStack: cs,
1485
- isDiscoveredEndpointRequired: true,
1486
- options: o
1487
- })
1488
- ];
1489
- }).s("Timestream_20181101", "UpdateAccountSettings", {}).n("TimestreamQueryClient", "UpdateAccountSettingsCommand").f(void 0, void 0).ser(se_UpdateAccountSettingsCommand).de(de_UpdateAccountSettingsCommand).build() {
1490
- static {
1491
- __name(this, "UpdateAccountSettingsCommand");
1492
- }
1493
- };
1226
+ class PrepareQueryCommand extends smithyClient.Command
1227
+ .classBuilder()
1228
+ .ep(commonParams)
1229
+ .m(function (Command, cs, config, o) {
1230
+ return [
1231
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1232
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1233
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1234
+ clientStack: cs,
1235
+ isDiscoveredEndpointRequired: true,
1236
+ options: o,
1237
+ }),
1238
+ ];
1239
+ })
1240
+ .s("Timestream_20181101", "PrepareQuery", {})
1241
+ .n("TimestreamQueryClient", "PrepareQueryCommand")
1242
+ .f(PrepareQueryRequestFilterSensitiveLog, PrepareQueryResponseFilterSensitiveLog)
1243
+ .ser(se_PrepareQueryCommand)
1244
+ .de(de_PrepareQueryCommand)
1245
+ .build() {
1246
+ }
1494
1247
 
1495
- // src/commands/UpdateScheduledQueryCommand.ts
1248
+ class QueryCommand extends smithyClient.Command
1249
+ .classBuilder()
1250
+ .ep(commonParams)
1251
+ .m(function (Command, cs, config, o) {
1252
+ return [
1253
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1254
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1255
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1256
+ clientStack: cs,
1257
+ isDiscoveredEndpointRequired: true,
1258
+ options: o,
1259
+ }),
1260
+ ];
1261
+ })
1262
+ .s("Timestream_20181101", "Query", {})
1263
+ .n("TimestreamQueryClient", "QueryCommand")
1264
+ .f(QueryRequestFilterSensitiveLog, void 0)
1265
+ .ser(se_QueryCommand)
1266
+ .de(de_QueryCommand)
1267
+ .build() {
1268
+ }
1496
1269
 
1270
+ class TagResourceCommand extends smithyClient.Command
1271
+ .classBuilder()
1272
+ .ep(commonParams)
1273
+ .m(function (Command, cs, config, o) {
1274
+ return [
1275
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1276
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1277
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1278
+ clientStack: cs,
1279
+ isDiscoveredEndpointRequired: true,
1280
+ options: o,
1281
+ }),
1282
+ ];
1283
+ })
1284
+ .s("Timestream_20181101", "TagResource", {})
1285
+ .n("TimestreamQueryClient", "TagResourceCommand")
1286
+ .f(void 0, void 0)
1287
+ .ser(se_TagResourceCommand)
1288
+ .de(de_TagResourceCommand)
1289
+ .build() {
1290
+ }
1497
1291
 
1292
+ class UntagResourceCommand extends smithyClient.Command
1293
+ .classBuilder()
1294
+ .ep(commonParams)
1295
+ .m(function (Command, cs, config, o) {
1296
+ return [
1297
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1298
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1299
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1300
+ clientStack: cs,
1301
+ isDiscoveredEndpointRequired: true,
1302
+ options: o,
1303
+ }),
1304
+ ];
1305
+ })
1306
+ .s("Timestream_20181101", "UntagResource", {})
1307
+ .n("TimestreamQueryClient", "UntagResourceCommand")
1308
+ .f(void 0, void 0)
1309
+ .ser(se_UntagResourceCommand)
1310
+ .de(de_UntagResourceCommand)
1311
+ .build() {
1312
+ }
1498
1313
 
1314
+ class UpdateAccountSettingsCommand extends smithyClient.Command
1315
+ .classBuilder()
1316
+ .ep(commonParams)
1317
+ .m(function (Command, cs, config, o) {
1318
+ return [
1319
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1320
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1321
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1322
+ clientStack: cs,
1323
+ isDiscoveredEndpointRequired: true,
1324
+ options: o,
1325
+ }),
1326
+ ];
1327
+ })
1328
+ .s("Timestream_20181101", "UpdateAccountSettings", {})
1329
+ .n("TimestreamQueryClient", "UpdateAccountSettingsCommand")
1330
+ .f(void 0, void 0)
1331
+ .ser(se_UpdateAccountSettingsCommand)
1332
+ .de(de_UpdateAccountSettingsCommand)
1333
+ .build() {
1334
+ }
1499
1335
 
1500
- var UpdateScheduledQueryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1501
- return [
1502
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1503
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1504
- (0, import_middleware_endpoint_discovery.getEndpointDiscoveryPlugin)(config, {
1505
- clientStack: cs,
1506
- isDiscoveredEndpointRequired: true,
1507
- options: o
1508
- })
1509
- ];
1510
- }).s("Timestream_20181101", "UpdateScheduledQuery", {}).n("TimestreamQueryClient", "UpdateScheduledQueryCommand").f(void 0, void 0).ser(se_UpdateScheduledQueryCommand).de(de_UpdateScheduledQueryCommand).build() {
1511
- static {
1512
- __name(this, "UpdateScheduledQueryCommand");
1513
- }
1514
- };
1336
+ class UpdateScheduledQueryCommand extends smithyClient.Command
1337
+ .classBuilder()
1338
+ .ep(commonParams)
1339
+ .m(function (Command, cs, config, o) {
1340
+ return [
1341
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1342
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1343
+ middlewareEndpointDiscovery.getEndpointDiscoveryPlugin(config, {
1344
+ clientStack: cs,
1345
+ isDiscoveredEndpointRequired: true,
1346
+ options: o,
1347
+ }),
1348
+ ];
1349
+ })
1350
+ .s("Timestream_20181101", "UpdateScheduledQuery", {})
1351
+ .n("TimestreamQueryClient", "UpdateScheduledQueryCommand")
1352
+ .f(void 0, void 0)
1353
+ .ser(se_UpdateScheduledQueryCommand)
1354
+ .de(de_UpdateScheduledQueryCommand)
1355
+ .build() {
1356
+ }
1515
1357
 
1516
- // src/TimestreamQuery.ts
1517
- var commands = {
1518
- CancelQueryCommand,
1519
- CreateScheduledQueryCommand,
1520
- DeleteScheduledQueryCommand,
1521
- DescribeAccountSettingsCommand,
1522
- DescribeEndpointsCommand,
1523
- DescribeScheduledQueryCommand,
1524
- ExecuteScheduledQueryCommand,
1525
- ListScheduledQueriesCommand,
1526
- ListTagsForResourceCommand,
1527
- PrepareQueryCommand,
1528
- QueryCommand,
1529
- TagResourceCommand,
1530
- UntagResourceCommand,
1531
- UpdateAccountSettingsCommand,
1532
- UpdateScheduledQueryCommand
1533
- };
1534
- var TimestreamQuery = class extends TimestreamQueryClient {
1535
- static {
1536
- __name(this, "TimestreamQuery");
1537
- }
1538
- };
1539
- (0, import_smithy_client.createAggregatedClient)(commands, TimestreamQuery);
1358
+ const commands = {
1359
+ CancelQueryCommand,
1360
+ CreateScheduledQueryCommand,
1361
+ DeleteScheduledQueryCommand,
1362
+ DescribeAccountSettingsCommand,
1363
+ DescribeEndpointsCommand,
1364
+ DescribeScheduledQueryCommand,
1365
+ ExecuteScheduledQueryCommand,
1366
+ ListScheduledQueriesCommand,
1367
+ ListTagsForResourceCommand,
1368
+ PrepareQueryCommand,
1369
+ QueryCommand,
1370
+ TagResourceCommand,
1371
+ UntagResourceCommand,
1372
+ UpdateAccountSettingsCommand,
1373
+ UpdateScheduledQueryCommand,
1374
+ };
1375
+ class TimestreamQuery extends TimestreamQueryClient {
1376
+ }
1377
+ smithyClient.createAggregatedClient(commands, TimestreamQuery);
1540
1378
 
1541
- // src/pagination/ListScheduledQueriesPaginator.ts
1542
- var import_core3 = require("@smithy/core");
1543
- var paginateListScheduledQueries = (0, import_core3.createPaginator)(TimestreamQueryClient, ListScheduledQueriesCommand, "NextToken", "NextToken", "MaxResults");
1379
+ const paginateListScheduledQueries = core$1.createPaginator(TimestreamQueryClient, ListScheduledQueriesCommand, "NextToken", "NextToken", "MaxResults");
1544
1380
 
1545
- // src/pagination/ListTagsForResourcePaginator.ts
1546
- var import_core4 = require("@smithy/core");
1547
- var paginateListTagsForResource = (0, import_core4.createPaginator)(TimestreamQueryClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
1381
+ const paginateListTagsForResource = core$1.createPaginator(TimestreamQueryClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
1548
1382
 
1549
- // src/pagination/QueryPaginator.ts
1550
- var import_core5 = require("@smithy/core");
1551
- var paginateQuery = (0, import_core5.createPaginator)(TimestreamQueryClient, QueryCommand, "NextToken", "NextToken", "MaxRows");
1552
- // Annotate the CommonJS export names for ESM import in node:
1383
+ const paginateQuery = core$1.createPaginator(TimestreamQueryClient, QueryCommand, "NextToken", "NextToken", "MaxRows");
1553
1384
 
1554
- 0 && (module.exports = {
1555
- TimestreamQueryServiceException,
1556
- __Client,
1557
- TimestreamQueryClient,
1558
- TimestreamQuery,
1559
- $Command,
1560
- CancelQueryCommand,
1561
- CreateScheduledQueryCommand,
1562
- DeleteScheduledQueryCommand,
1563
- DescribeAccountSettingsCommand,
1564
- DescribeEndpointsCommand,
1565
- DescribeScheduledQueryCommand,
1566
- ExecuteScheduledQueryCommand,
1567
- ListScheduledQueriesCommand,
1568
- ListTagsForResourceCommand,
1569
- PrepareQueryCommand,
1570
- QueryCommand,
1571
- TagResourceCommand,
1572
- UntagResourceCommand,
1573
- UpdateAccountSettingsCommand,
1574
- UpdateScheduledQueryCommand,
1575
- paginateListScheduledQueries,
1576
- paginateListTagsForResource,
1577
- paginateQuery,
1578
- AccessDeniedException,
1579
- InternalServerException,
1580
- InvalidEndpointException,
1581
- ThrottlingException,
1582
- ValidationException,
1583
- ScalarType,
1584
- ComputeMode,
1585
- ConflictException,
1586
- S3EncryptionOption,
1587
- DimensionValueType,
1588
- MeasureValueType,
1589
- ScalarMeasureValueType,
1590
- ServiceQuotaExceededException,
1591
- ResourceNotFoundException,
1592
- LastUpdateStatus,
1593
- QueryPricingModel,
1594
- ScheduledQueryRunStatus,
1595
- ScheduledQueryState,
1596
- ScheduledQueryInsightsMode,
1597
- QueryExecutionException,
1598
- QueryInsightsMode,
1599
- CreateScheduledQueryRequestFilterSensitiveLog,
1600
- ScheduledQueryDescriptionFilterSensitiveLog,
1601
- DescribeScheduledQueryResponseFilterSensitiveLog,
1602
- ExecuteScheduledQueryRequestFilterSensitiveLog,
1603
- PrepareQueryRequestFilterSensitiveLog,
1604
- QueryRequestFilterSensitiveLog,
1605
- PrepareQueryResponseFilterSensitiveLog
1385
+ Object.defineProperty(exports, "$Command", {
1386
+ enumerable: true,
1387
+ get: function () { return smithyClient.Command; }
1606
1388
  });
1607
-
1389
+ Object.defineProperty(exports, "__Client", {
1390
+ enumerable: true,
1391
+ get: function () { return smithyClient.Client; }
1392
+ });
1393
+ exports.AccessDeniedException = AccessDeniedException;
1394
+ exports.CancelQueryCommand = CancelQueryCommand;
1395
+ exports.ComputeMode = ComputeMode;
1396
+ exports.ConflictException = ConflictException;
1397
+ exports.CreateScheduledQueryCommand = CreateScheduledQueryCommand;
1398
+ exports.CreateScheduledQueryRequestFilterSensitiveLog = CreateScheduledQueryRequestFilterSensitiveLog;
1399
+ exports.DeleteScheduledQueryCommand = DeleteScheduledQueryCommand;
1400
+ exports.DescribeAccountSettingsCommand = DescribeAccountSettingsCommand;
1401
+ exports.DescribeEndpointsCommand = DescribeEndpointsCommand;
1402
+ exports.DescribeScheduledQueryCommand = DescribeScheduledQueryCommand;
1403
+ exports.DescribeScheduledQueryResponseFilterSensitiveLog = DescribeScheduledQueryResponseFilterSensitiveLog;
1404
+ exports.DimensionValueType = DimensionValueType;
1405
+ exports.ExecuteScheduledQueryCommand = ExecuteScheduledQueryCommand;
1406
+ exports.ExecuteScheduledQueryRequestFilterSensitiveLog = ExecuteScheduledQueryRequestFilterSensitiveLog;
1407
+ exports.InternalServerException = InternalServerException;
1408
+ exports.InvalidEndpointException = InvalidEndpointException;
1409
+ exports.LastUpdateStatus = LastUpdateStatus;
1410
+ exports.ListScheduledQueriesCommand = ListScheduledQueriesCommand;
1411
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1412
+ exports.MeasureValueType = MeasureValueType;
1413
+ exports.PrepareQueryCommand = PrepareQueryCommand;
1414
+ exports.PrepareQueryRequestFilterSensitiveLog = PrepareQueryRequestFilterSensitiveLog;
1415
+ exports.PrepareQueryResponseFilterSensitiveLog = PrepareQueryResponseFilterSensitiveLog;
1416
+ exports.QueryCommand = QueryCommand;
1417
+ exports.QueryExecutionException = QueryExecutionException;
1418
+ exports.QueryInsightsMode = QueryInsightsMode;
1419
+ exports.QueryPricingModel = QueryPricingModel;
1420
+ exports.QueryRequestFilterSensitiveLog = QueryRequestFilterSensitiveLog;
1421
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1422
+ exports.S3EncryptionOption = S3EncryptionOption;
1423
+ exports.ScalarMeasureValueType = ScalarMeasureValueType;
1424
+ exports.ScalarType = ScalarType;
1425
+ exports.ScheduledQueryDescriptionFilterSensitiveLog = ScheduledQueryDescriptionFilterSensitiveLog;
1426
+ exports.ScheduledQueryInsightsMode = ScheduledQueryInsightsMode;
1427
+ exports.ScheduledQueryRunStatus = ScheduledQueryRunStatus;
1428
+ exports.ScheduledQueryState = ScheduledQueryState;
1429
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1430
+ exports.TagResourceCommand = TagResourceCommand;
1431
+ exports.ThrottlingException = ThrottlingException;
1432
+ exports.TimestreamQuery = TimestreamQuery;
1433
+ exports.TimestreamQueryClient = TimestreamQueryClient;
1434
+ exports.TimestreamQueryServiceException = TimestreamQueryServiceException;
1435
+ exports.UntagResourceCommand = UntagResourceCommand;
1436
+ exports.UpdateAccountSettingsCommand = UpdateAccountSettingsCommand;
1437
+ exports.UpdateScheduledQueryCommand = UpdateScheduledQueryCommand;
1438
+ exports.ValidationException = ValidationException;
1439
+ exports.paginateListScheduledQueries = paginateListScheduledQueries;
1440
+ exports.paginateListTagsForResource = paginateListTagsForResource;
1441
+ exports.paginateQuery = paginateQuery;