@aws-sdk/client-timestream-query 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_0.js +19 -13
- package/dist-es/TimestreamQuery.js +54 -61
- package/dist-es/TimestreamQueryClient.js +23 -29
- package/dist-es/commands/CancelQueryCommand.js +22 -29
- package/dist-es/commands/CreateScheduledQueryCommand.js +22 -29
- package/dist-es/commands/DeleteScheduledQueryCommand.js +23 -30
- package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
- package/dist-es/commands/DescribeScheduledQueryCommand.js +22 -29
- package/dist-es/commands/ExecuteScheduledQueryCommand.js +23 -30
- package/dist-es/commands/ListScheduledQueriesCommand.js +22 -29
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -29
- package/dist-es/commands/PrepareQueryCommand.js +22 -29
- package/dist-es/commands/QueryCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateScheduledQueryCommand.js +23 -30
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TimestreamQueryServiceException.js +5 -10
- package/dist-es/models/models_0.js +274 -162
- package/dist-es/pagination/ListScheduledQueriesPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/QueryPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +1108 -1361
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- 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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
export
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
export
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
export
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
export
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
export
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
export
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
export
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
export
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
export
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
export
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
export
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
export
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
export
|
|
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
|
-
|
|
6
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
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
|
}
|