@aws-sdk/client-timestream-query 3.186.0 → 3.190.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 (28) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/TimestreamQuery.js +54 -61
  3. package/dist-es/TimestreamQueryClient.js +23 -29
  4. package/dist-es/commands/CancelQueryCommand.js +22 -29
  5. package/dist-es/commands/CreateScheduledQueryCommand.js +22 -29
  6. package/dist-es/commands/DeleteScheduledQueryCommand.js +23 -30
  7. package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
  8. package/dist-es/commands/DescribeScheduledQueryCommand.js +22 -29
  9. package/dist-es/commands/ExecuteScheduledQueryCommand.js +23 -30
  10. package/dist-es/commands/ListScheduledQueriesCommand.js +22 -29
  11. package/dist-es/commands/ListTagsForResourceCommand.js +22 -29
  12. package/dist-es/commands/PrepareQueryCommand.js +22 -29
  13. package/dist-es/commands/QueryCommand.js +22 -29
  14. package/dist-es/commands/TagResourceCommand.js +22 -29
  15. package/dist-es/commands/UntagResourceCommand.js +22 -29
  16. package/dist-es/commands/UpdateScheduledQueryCommand.js +23 -30
  17. package/dist-es/endpoints.js +8 -8
  18. package/dist-es/models/TimestreamQueryServiceException.js +5 -10
  19. package/dist-es/models/models_0.js +274 -162
  20. package/dist-es/pagination/ListScheduledQueriesPaginator.js +25 -68
  21. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  22. package/dist-es/pagination/QueryPaginator.js +25 -68
  23. package/dist-es/protocols/Aws_json1_0.js +1108 -1374
  24. package/dist-es/runtimeConfig.browser.js +27 -12
  25. package/dist-es/runtimeConfig.js +31 -12
  26. package/dist-es/runtimeConfig.native.js +8 -5
  27. package/dist-es/runtimeConfig.shared.js +8 -11
  28. package/package.json +34 -34
@@ -1,71 +1,70 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { TimestreamQueryServiceException as __BaseException } from "./TimestreamQueryServiceException";
4
- var AccessDeniedException = (function (_super) {
5
- __extends(AccessDeniedException, _super);
6
- function AccessDeniedException(opts) {
7
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
8
- _this.name = "AccessDeniedException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
11
- _this.Message = opts.Message;
12
- return _this;
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.Message = opts.Message;
13
14
  }
14
- return AccessDeniedException;
15
- }(__BaseException));
16
- export { AccessDeniedException };
17
- var InternalServerException = (function (_super) {
18
- __extends(InternalServerException, _super);
19
- function InternalServerException(opts) {
20
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
21
- _this.name = "InternalServerException";
22
- _this.$fault = "server";
23
- Object.setPrototypeOf(_this, InternalServerException.prototype);
24
- _this.Message = opts.Message;
25
- return _this;
15
+ }
16
+ export class InternalServerException extends __BaseException {
17
+ constructor(opts) {
18
+ super({
19
+ name: "InternalServerException",
20
+ $fault: "server",
21
+ ...opts,
22
+ });
23
+ this.name = "InternalServerException";
24
+ this.$fault = "server";
25
+ Object.setPrototypeOf(this, InternalServerException.prototype);
26
+ this.Message = opts.Message;
26
27
  }
27
- return InternalServerException;
28
- }(__BaseException));
29
- export { InternalServerException };
30
- var InvalidEndpointException = (function (_super) {
31
- __extends(InvalidEndpointException, _super);
32
- function InvalidEndpointException(opts) {
33
- var _this = _super.call(this, __assign({ name: "InvalidEndpointException", $fault: "client" }, opts)) || this;
34
- _this.name = "InvalidEndpointException";
35
- _this.$fault = "client";
36
- Object.setPrototypeOf(_this, InvalidEndpointException.prototype);
37
- _this.Message = opts.Message;
38
- return _this;
28
+ }
29
+ export class InvalidEndpointException extends __BaseException {
30
+ constructor(opts) {
31
+ super({
32
+ name: "InvalidEndpointException",
33
+ $fault: "client",
34
+ ...opts,
35
+ });
36
+ this.name = "InvalidEndpointException";
37
+ this.$fault = "client";
38
+ Object.setPrototypeOf(this, InvalidEndpointException.prototype);
39
+ this.Message = opts.Message;
39
40
  }
40
- return InvalidEndpointException;
41
- }(__BaseException));
42
- export { InvalidEndpointException };
43
- var ThrottlingException = (function (_super) {
44
- __extends(ThrottlingException, _super);
45
- function ThrottlingException(opts) {
46
- var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
47
- _this.name = "ThrottlingException";
48
- _this.$fault = "client";
49
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
50
- _this.Message = opts.Message;
51
- return _this;
41
+ }
42
+ export class ThrottlingException extends __BaseException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "ThrottlingException",
46
+ $fault: "client",
47
+ ...opts,
48
+ });
49
+ this.name = "ThrottlingException";
50
+ this.$fault = "client";
51
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
52
+ this.Message = opts.Message;
52
53
  }
53
- return ThrottlingException;
54
- }(__BaseException));
55
- export { ThrottlingException };
56
- var ValidationException = (function (_super) {
57
- __extends(ValidationException, _super);
58
- function ValidationException(opts) {
59
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
60
- _this.name = "ValidationException";
61
- _this.$fault = "client";
62
- Object.setPrototypeOf(_this, ValidationException.prototype);
63
- _this.Message = opts.Message;
64
- return _this;
54
+ }
55
+ export class ValidationException extends __BaseException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "ValidationException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "ValidationException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, ValidationException.prototype);
65
+ this.Message = opts.Message;
65
66
  }
66
- return ValidationException;
67
- }(__BaseException));
68
- export { ValidationException };
67
+ }
69
68
  export var ScalarType;
70
69
  (function (ScalarType) {
71
70
  ScalarType["BIGINT"] = "BIGINT";
@@ -80,19 +79,19 @@ export var ScalarType;
80
79
  ScalarType["UNKNOWN"] = "UNKNOWN";
81
80
  ScalarType["VARCHAR"] = "VARCHAR";
82
81
  })(ScalarType || (ScalarType = {}));
83
- var ConflictException = (function (_super) {
84
- __extends(ConflictException, _super);
85
- function ConflictException(opts) {
86
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
87
- _this.name = "ConflictException";
88
- _this.$fault = "client";
89
- Object.setPrototypeOf(_this, ConflictException.prototype);
90
- _this.Message = opts.Message;
91
- return _this;
82
+ export class ConflictException extends __BaseException {
83
+ constructor(opts) {
84
+ super({
85
+ name: "ConflictException",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ this.name = "ConflictException";
90
+ this.$fault = "client";
91
+ Object.setPrototypeOf(this, ConflictException.prototype);
92
+ this.Message = opts.Message;
92
93
  }
93
- return ConflictException;
94
- }(__BaseException));
95
- export { ConflictException };
94
+ }
96
95
  export var S3EncryptionOption;
97
96
  (function (S3EncryptionOption) {
98
97
  S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
@@ -118,33 +117,33 @@ export var ScalarMeasureValueType;
118
117
  ScalarMeasureValueType["TIMESTAMP"] = "TIMESTAMP";
119
118
  ScalarMeasureValueType["VARCHAR"] = "VARCHAR";
120
119
  })(ScalarMeasureValueType || (ScalarMeasureValueType = {}));
121
- var ServiceQuotaExceededException = (function (_super) {
122
- __extends(ServiceQuotaExceededException, _super);
123
- function ServiceQuotaExceededException(opts) {
124
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
125
- _this.name = "ServiceQuotaExceededException";
126
- _this.$fault = "client";
127
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
128
- _this.Message = opts.Message;
129
- return _this;
120
+ export class ServiceQuotaExceededException extends __BaseException {
121
+ constructor(opts) {
122
+ super({
123
+ name: "ServiceQuotaExceededException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ this.name = "ServiceQuotaExceededException";
128
+ this.$fault = "client";
129
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
130
+ this.Message = opts.Message;
130
131
  }
131
- return ServiceQuotaExceededException;
132
- }(__BaseException));
133
- export { ServiceQuotaExceededException };
134
- var ResourceNotFoundException = (function (_super) {
135
- __extends(ResourceNotFoundException, _super);
136
- function ResourceNotFoundException(opts) {
137
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
138
- _this.name = "ResourceNotFoundException";
139
- _this.$fault = "client";
140
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
141
- _this.Message = opts.Message;
142
- _this.ScheduledQueryArn = opts.ScheduledQueryArn;
143
- return _this;
132
+ }
133
+ export class ResourceNotFoundException extends __BaseException {
134
+ constructor(opts) {
135
+ super({
136
+ name: "ResourceNotFoundException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ this.name = "ResourceNotFoundException";
141
+ this.$fault = "client";
142
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
143
+ this.Message = opts.Message;
144
+ this.ScheduledQueryArn = opts.ScheduledQueryArn;
144
145
  }
145
- return ResourceNotFoundException;
146
- }(__BaseException));
147
- export { ResourceNotFoundException };
146
+ }
148
147
  export var ScheduledQueryRunStatus;
149
148
  (function (ScheduledQueryRunStatus) {
150
149
  ScheduledQueryRunStatus["AUTO_TRIGGER_FAILURE"] = "AUTO_TRIGGER_FAILURE";
@@ -157,68 +156,181 @@ export var ScheduledQueryState;
157
156
  ScheduledQueryState["DISABLED"] = "DISABLED";
158
157
  ScheduledQueryState["ENABLED"] = "ENABLED";
159
158
  })(ScheduledQueryState || (ScheduledQueryState = {}));
160
- var QueryExecutionException = (function (_super) {
161
- __extends(QueryExecutionException, _super);
162
- function QueryExecutionException(opts) {
163
- var _this = _super.call(this, __assign({ name: "QueryExecutionException", $fault: "client" }, opts)) || this;
164
- _this.name = "QueryExecutionException";
165
- _this.$fault = "client";
166
- Object.setPrototypeOf(_this, QueryExecutionException.prototype);
167
- _this.Message = opts.Message;
168
- return _this;
159
+ export class QueryExecutionException extends __BaseException {
160
+ constructor(opts) {
161
+ super({
162
+ name: "QueryExecutionException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ this.name = "QueryExecutionException";
167
+ this.$fault = "client";
168
+ Object.setPrototypeOf(this, QueryExecutionException.prototype);
169
+ this.Message = opts.Message;
169
170
  }
170
- return QueryExecutionException;
171
- }(__BaseException));
172
- export { QueryExecutionException };
173
- export var CancelQueryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
- export var CancelQueryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- export var S3ConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
- export var ErrorReportConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
- export var SnsConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
178
- export var NotificationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- export var ScheduleConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
- export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- export var DimensionMappingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
- export var MultiMeasureAttributeMappingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
- export var MixedMeasureMappingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- export var MultiMeasureMappingsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
- export var TimestreamConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
- export var TargetConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
- export var CreateScheduledQueryRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING })), (obj.ClientToken && { ClientToken: SENSITIVE_STRING }))); };
188
- export var CreateScheduledQueryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
- export var DeleteScheduledQueryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
190
- export var DescribeEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
- export var EndpointFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
- export var DescribeEndpointsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
- export var DescribeScheduledQueryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
- export var S3ReportLocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
- export var ErrorReportLocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
- export var ExecutionStatsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
- export var ScheduledQueryRunSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
- export var ScheduledQueryDescriptionFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING }))); };
199
- export var DescribeScheduledQueryResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ScheduledQuery && { ScheduledQuery: ScheduledQueryDescriptionFilterSensitiveLog(obj.ScheduledQuery) }))); };
200
- export var ExecuteScheduledQueryRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientToken && { ClientToken: SENSITIVE_STRING }))); };
201
- export var ListScheduledQueriesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
- export var TimestreamDestinationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
- export var TargetDestinationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
204
- export var ScheduledQueryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
- export var ListScheduledQueriesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
- export var PrepareQueryRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING }))); };
209
- export var QueryRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING })), (obj.ClientToken && { ClientToken: SENSITIVE_STRING }))); };
210
- export var QueryStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
- export var UpdateScheduledQueryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
- export var ColumnInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
- export var TypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
- export var DatumFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
- export var ParameterMappingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
- export var SelectColumnFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
- export var TimeSeriesDataPointFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
- export var RowFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
- export var QueryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
- export var PrepareQueryResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING }))); };
171
+ }
172
+ export const CancelQueryRequestFilterSensitiveLog = (obj) => ({
173
+ ...obj,
174
+ });
175
+ export const CancelQueryResponseFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ });
178
+ export const S3ConfigurationFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ });
181
+ export const ErrorReportConfigurationFilterSensitiveLog = (obj) => ({
182
+ ...obj,
183
+ });
184
+ export const SnsConfigurationFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ });
187
+ export const NotificationConfigurationFilterSensitiveLog = (obj) => ({
188
+ ...obj,
189
+ });
190
+ export const ScheduleConfigurationFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ });
193
+ export const TagFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ });
196
+ export const DimensionMappingFilterSensitiveLog = (obj) => ({
197
+ ...obj,
198
+ });
199
+ export const MultiMeasureAttributeMappingFilterSensitiveLog = (obj) => ({
200
+ ...obj,
201
+ });
202
+ export const MixedMeasureMappingFilterSensitiveLog = (obj) => ({
203
+ ...obj,
204
+ });
205
+ export const MultiMeasureMappingsFilterSensitiveLog = (obj) => ({
206
+ ...obj,
207
+ });
208
+ export const TimestreamConfigurationFilterSensitiveLog = (obj) => ({
209
+ ...obj,
210
+ });
211
+ export const TargetConfigurationFilterSensitiveLog = (obj) => ({
212
+ ...obj,
213
+ });
214
+ export const CreateScheduledQueryRequestFilterSensitiveLog = (obj) => ({
215
+ ...obj,
216
+ ...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
217
+ ...(obj.ClientToken && { ClientToken: SENSITIVE_STRING }),
218
+ });
219
+ export const CreateScheduledQueryResponseFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ });
222
+ export const DeleteScheduledQueryRequestFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ });
225
+ export const DescribeEndpointsRequestFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ });
228
+ export const EndpointFilterSensitiveLog = (obj) => ({
229
+ ...obj,
230
+ });
231
+ export const DescribeEndpointsResponseFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ });
234
+ export const DescribeScheduledQueryRequestFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ export const S3ReportLocationFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ });
240
+ export const ErrorReportLocationFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ export const ExecutionStatsFilterSensitiveLog = (obj) => ({
244
+ ...obj,
245
+ });
246
+ export const ScheduledQueryRunSummaryFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ export const ScheduledQueryDescriptionFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ ...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
252
+ });
253
+ export const DescribeScheduledQueryResponseFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ ...(obj.ScheduledQuery && { ScheduledQuery: ScheduledQueryDescriptionFilterSensitiveLog(obj.ScheduledQuery) }),
256
+ });
257
+ export const ExecuteScheduledQueryRequestFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ ...(obj.ClientToken && { ClientToken: SENSITIVE_STRING }),
260
+ });
261
+ export const ListScheduledQueriesRequestFilterSensitiveLog = (obj) => ({
262
+ ...obj,
263
+ });
264
+ export const TimestreamDestinationFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ });
267
+ export const TargetDestinationFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ });
270
+ export const ScheduledQueryFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ export const ListScheduledQueriesResponseFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ });
276
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ });
282
+ export const PrepareQueryRequestFilterSensitiveLog = (obj) => ({
283
+ ...obj,
284
+ ...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
285
+ });
286
+ export const QueryRequestFilterSensitiveLog = (obj) => ({
287
+ ...obj,
288
+ ...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
289
+ ...(obj.ClientToken && { ClientToken: SENSITIVE_STRING }),
290
+ });
291
+ export const QueryStatusFilterSensitiveLog = (obj) => ({
292
+ ...obj,
293
+ });
294
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
295
+ ...obj,
296
+ });
297
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
298
+ ...obj,
299
+ });
300
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
301
+ ...obj,
302
+ });
303
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
304
+ ...obj,
305
+ });
306
+ export const UpdateScheduledQueryRequestFilterSensitiveLog = (obj) => ({
307
+ ...obj,
308
+ });
309
+ export const ColumnInfoFilterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ });
312
+ export const TypeFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ });
315
+ export const DatumFilterSensitiveLog = (obj) => ({
316
+ ...obj,
317
+ });
318
+ export const ParameterMappingFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ });
321
+ export const SelectColumnFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ export const TimeSeriesDataPointFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ });
327
+ export const RowFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ });
330
+ export const QueryResponseFilterSensitiveLog = (obj) => ({
331
+ ...obj,
332
+ });
333
+ export const PrepareQueryResponseFilterSensitiveLog = (obj) => ({
334
+ ...obj,
335
+ ...(obj.QueryString && { QueryString: SENSITIVE_STRING }),
336
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListScheduledQueriesCommand, } from "../commands/ListScheduledQueriesCommand";
3
2
  import { TimestreamQuery } from "../TimestreamQuery";
4
3
  import { TimestreamQueryClient } from "../TimestreamQueryClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListScheduledQueriesCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListScheduledQueriesCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listScheduledQueries.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listScheduledQueries(input, ...args);
32
9
  };
33
- export function paginateListScheduledQueries(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListScheduledQueries(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof TimestreamQuery) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof TimestreamQueryClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected TimestreamQuery | TimestreamQueryClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListScheduledQueries_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.NextToken = token;
49
- input["MaxResults"] = config.pageSize;
50
- if (!(config.client instanceof TimestreamQuery)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof TimestreamQueryClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected TimestreamQuery | TimestreamQueryClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.NextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }