@aws-sdk/client-timestream-query 3.533.0 → 3.536.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/dist-types/TimestreamQuery.d.ts +3 -1
- package/dist-types/TimestreamQueryClient.d.ts +1 -1
- package/dist-types/commands/CancelQueryCommand.d.ts +2 -1
- package/dist-types/commands/CreateScheduledQueryCommand.d.ts +2 -1
- package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +2 -1
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeScheduledQueryCommand.d.ts +2 -1
- package/dist-types/commands/ExecuteScheduledQueryCommand.d.ts +2 -1
- package/dist-types/commands/ListScheduledQueriesCommand.d.ts +4 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/PrepareQueryCommand.d.ts +4 -3
- package/dist-types/commands/QueryCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +214 -203
- package/dist-types/ts3.4/TimestreamQuery.d.ts +2 -0
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateScheduledQueryCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteScheduledQueryCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeScheduledQueryCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ExecuteScheduledQueryCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListScheduledQueriesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PrepareQueryCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +7 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateScheduledQueryCommand.d.ts +9 -0
- package/package.json +41 -41
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { TimestreamQueryServiceException as __BaseException } from "./TimestreamQueryServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* @public
|
|
5
4
|
* <p> You are not authorized to perform this action. </p>
|
|
5
|
+
* @public
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccessDeniedException extends __BaseException {
|
|
8
8
|
readonly name: "AccessDeniedException";
|
|
@@ -18,9 +18,9 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface CancelQueryRequest {
|
|
20
20
|
/**
|
|
21
|
-
* @public
|
|
22
21
|
* <p> The ID of the query that needs to be cancelled. <code>QueryID</code> is returned as
|
|
23
22
|
* part of the query result. </p>
|
|
23
|
+
* @public
|
|
24
24
|
*/
|
|
25
25
|
QueryId: string | undefined;
|
|
26
26
|
}
|
|
@@ -29,17 +29,17 @@ export interface CancelQueryRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface CancelQueryResponse {
|
|
31
31
|
/**
|
|
32
|
-
* @public
|
|
33
32
|
* <p> A <code>CancellationMessage</code> is returned when a <code>CancelQuery</code>
|
|
34
33
|
* request for the query specified by <code>QueryId</code> has already been issued. </p>
|
|
34
|
+
* @public
|
|
35
35
|
*/
|
|
36
36
|
CancellationMessage?: string;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* @public
|
|
40
39
|
* <p>
|
|
41
40
|
* Timestream was unable to fully process this request because of an internal
|
|
42
41
|
* server error. </p>
|
|
42
|
+
* @public
|
|
43
43
|
*/
|
|
44
44
|
export declare class InternalServerException extends __BaseException {
|
|
45
45
|
readonly name: "InternalServerException";
|
|
@@ -51,8 +51,8 @@ export declare class InternalServerException extends __BaseException {
|
|
|
51
51
|
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* @public
|
|
55
54
|
* <p>The requested endpoint was not valid.</p>
|
|
55
|
+
* @public
|
|
56
56
|
*/
|
|
57
57
|
export declare class InvalidEndpointException extends __BaseException {
|
|
58
58
|
readonly name: "InvalidEndpointException";
|
|
@@ -64,8 +64,8 @@ export declare class InvalidEndpointException extends __BaseException {
|
|
|
64
64
|
constructor(opts: __ExceptionOptionType<InvalidEndpointException, __BaseException>);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* @public
|
|
68
67
|
* <p>The request was denied due to request throttling.</p>
|
|
68
|
+
* @public
|
|
69
69
|
*/
|
|
70
70
|
export declare class ThrottlingException extends __BaseException {
|
|
71
71
|
readonly name: "ThrottlingException";
|
|
@@ -77,8 +77,8 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
77
77
|
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
* @public
|
|
81
80
|
* <p> Invalid or malformed request. </p>
|
|
81
|
+
* @public
|
|
82
82
|
*/
|
|
83
83
|
export declare class ValidationException extends __BaseException {
|
|
84
84
|
readonly name: "ValidationException";
|
|
@@ -111,8 +111,8 @@ export declare const ScalarType: {
|
|
|
111
111
|
*/
|
|
112
112
|
export type ScalarType = (typeof ScalarType)[keyof typeof ScalarType];
|
|
113
113
|
/**
|
|
114
|
-
* @public
|
|
115
114
|
* <p> Unable to poll results for a cancelled query. </p>
|
|
115
|
+
* @public
|
|
116
116
|
*/
|
|
117
117
|
export declare class ConflictException extends __BaseException {
|
|
118
118
|
readonly name: "ConflictException";
|
|
@@ -136,90 +136,90 @@ export declare const S3EncryptionOption: {
|
|
|
136
136
|
*/
|
|
137
137
|
export type S3EncryptionOption = (typeof S3EncryptionOption)[keyof typeof S3EncryptionOption];
|
|
138
138
|
/**
|
|
139
|
-
* @public
|
|
140
139
|
* <p>Details on S3 location for error reports that result from running a query. </p>
|
|
140
|
+
* @public
|
|
141
141
|
*/
|
|
142
142
|
export interface S3Configuration {
|
|
143
143
|
/**
|
|
144
|
-
* @public
|
|
145
144
|
* <p> Name of the S3 bucket under which error reports will be created.</p>
|
|
145
|
+
* @public
|
|
146
146
|
*/
|
|
147
147
|
BucketName: string | undefined;
|
|
148
148
|
/**
|
|
149
|
-
* @public
|
|
150
149
|
* <p> Prefix for the error report key. Timestream by default adds the following prefix to
|
|
151
150
|
* the error report path. </p>
|
|
151
|
+
* @public
|
|
152
152
|
*/
|
|
153
153
|
ObjectKeyPrefix?: string;
|
|
154
154
|
/**
|
|
155
|
-
* @public
|
|
156
155
|
* <p> Encryption at rest options for the error reports. If no encryption option is
|
|
157
156
|
* specified, Timestream will choose SSE_S3 as default. </p>
|
|
157
|
+
* @public
|
|
158
158
|
*/
|
|
159
159
|
EncryptionOption?: S3EncryptionOption;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* @public
|
|
163
162
|
* <p>Configuration required for error reporting.</p>
|
|
163
|
+
* @public
|
|
164
164
|
*/
|
|
165
165
|
export interface ErrorReportConfiguration {
|
|
166
166
|
/**
|
|
167
|
-
* @public
|
|
168
167
|
* <p>The S3 configuration for the error reports.</p>
|
|
168
|
+
* @public
|
|
169
169
|
*/
|
|
170
170
|
S3Configuration: S3Configuration | undefined;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
* @public
|
|
174
173
|
* <p>Details on SNS that are required to send the notification.</p>
|
|
174
|
+
* @public
|
|
175
175
|
*/
|
|
176
176
|
export interface SnsConfiguration {
|
|
177
177
|
/**
|
|
178
|
-
* @public
|
|
179
178
|
* <p>SNS topic ARN that the scheduled query status notifications will be sent to.</p>
|
|
179
|
+
* @public
|
|
180
180
|
*/
|
|
181
181
|
TopicArn: string | undefined;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
|
+
* <p>Notification configuration for a scheduled query. A notification is sent by Timestream
|
|
185
|
+
* when a scheduled query is created, its state is updated or when it is deleted. </p>
|
|
184
186
|
* @public
|
|
185
|
-
* <p>Notification configuration for a scheduled query. A notification is sent by
|
|
186
|
-
* Timestream when a scheduled query is created, its state is updated or when it is deleted. </p>
|
|
187
187
|
*/
|
|
188
188
|
export interface NotificationConfiguration {
|
|
189
189
|
/**
|
|
190
|
-
* @public
|
|
191
190
|
* <p>Details on SNS configuration. </p>
|
|
191
|
+
* @public
|
|
192
192
|
*/
|
|
193
193
|
SnsConfiguration: SnsConfiguration | undefined;
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
|
-
* @public
|
|
197
196
|
* <p>Configuration of the schedule of the query.</p>
|
|
197
|
+
* @public
|
|
198
198
|
*/
|
|
199
199
|
export interface ScheduleConfiguration {
|
|
200
200
|
/**
|
|
201
|
-
* @public
|
|
202
201
|
* <p>An expression that denotes when to trigger the scheduled query run. This can be a cron
|
|
203
202
|
* expression or a rate expression. </p>
|
|
203
|
+
* @public
|
|
204
204
|
*/
|
|
205
205
|
ScheduleExpression: string | undefined;
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
|
-
* @public
|
|
209
208
|
* <p>A tag is a label that you assign to a Timestream database and/or table. Each tag
|
|
210
209
|
* consists of a key and an optional value, both of which you define. Tags enable you to
|
|
211
210
|
* categorize databases and/or tables, for example, by purpose, owner, or environment.
|
|
212
211
|
* </p>
|
|
212
|
+
* @public
|
|
213
213
|
*/
|
|
214
214
|
export interface Tag {
|
|
215
215
|
/**
|
|
216
|
-
* @public
|
|
217
216
|
* <p>The key of the tag. Tag keys are case sensitive. </p>
|
|
217
|
+
* @public
|
|
218
218
|
*/
|
|
219
219
|
Key: string | undefined;
|
|
220
220
|
/**
|
|
221
|
-
* @public
|
|
222
221
|
* <p>The value of the tag. Tag values are case sensitive and can be null. </p>
|
|
222
|
+
* @public
|
|
223
223
|
*/
|
|
224
224
|
Value: string | undefined;
|
|
225
225
|
}
|
|
@@ -235,19 +235,19 @@ export declare const DimensionValueType: {
|
|
|
235
235
|
*/
|
|
236
236
|
export type DimensionValueType = (typeof DimensionValueType)[keyof typeof DimensionValueType];
|
|
237
237
|
/**
|
|
238
|
-
* @public
|
|
239
238
|
* <p>This type is used to map column(s) from the query result to a dimension in the
|
|
240
239
|
* destination table.</p>
|
|
240
|
+
* @public
|
|
241
241
|
*/
|
|
242
242
|
export interface DimensionMapping {
|
|
243
243
|
/**
|
|
244
|
-
* @public
|
|
245
244
|
* <p>Column name from query result.</p>
|
|
245
|
+
* @public
|
|
246
246
|
*/
|
|
247
247
|
Name: string | undefined;
|
|
248
248
|
/**
|
|
249
|
-
* @public
|
|
250
249
|
* <p>Type for the dimension. </p>
|
|
250
|
+
* @public
|
|
251
251
|
*/
|
|
252
252
|
DimensionValueType: DimensionValueType | undefined;
|
|
253
253
|
}
|
|
@@ -282,139 +282,139 @@ export declare const ScalarMeasureValueType: {
|
|
|
282
282
|
*/
|
|
283
283
|
export type ScalarMeasureValueType = (typeof ScalarMeasureValueType)[keyof typeof ScalarMeasureValueType];
|
|
284
284
|
/**
|
|
285
|
-
* @public
|
|
286
285
|
* <p>Attribute mapping for MULTI value measures.</p>
|
|
286
|
+
* @public
|
|
287
287
|
*/
|
|
288
288
|
export interface MultiMeasureAttributeMapping {
|
|
289
289
|
/**
|
|
290
|
-
* @public
|
|
291
290
|
* <p>Source column from where the attribute value is to be read.</p>
|
|
291
|
+
* @public
|
|
292
292
|
*/
|
|
293
293
|
SourceColumn: string | undefined;
|
|
294
294
|
/**
|
|
295
|
-
* @public
|
|
296
295
|
* <p>Custom name to be used for attribute name in derived table. If not provided, source
|
|
297
296
|
* column name would be used.</p>
|
|
297
|
+
* @public
|
|
298
298
|
*/
|
|
299
299
|
TargetMultiMeasureAttributeName?: string;
|
|
300
300
|
/**
|
|
301
|
-
* @public
|
|
302
301
|
* <p>Type of the attribute to be read from the source column.</p>
|
|
302
|
+
* @public
|
|
303
303
|
*/
|
|
304
304
|
MeasureValueType: ScalarMeasureValueType | undefined;
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
|
-
* @public
|
|
308
307
|
* <p>MixedMeasureMappings are mappings that can be used to ingest data into a mixture of
|
|
309
308
|
* narrow and multi measures in the derived table.</p>
|
|
309
|
+
* @public
|
|
310
310
|
*/
|
|
311
311
|
export interface MixedMeasureMapping {
|
|
312
312
|
/**
|
|
313
|
-
* @public
|
|
314
313
|
* <p>Refers to the value of measure_name in a result row. This field is required if
|
|
315
314
|
* MeasureNameColumn is provided.</p>
|
|
315
|
+
* @public
|
|
316
316
|
*/
|
|
317
317
|
MeasureName?: string;
|
|
318
318
|
/**
|
|
319
|
-
* @public
|
|
320
319
|
* <p>This field refers to the source column from which measure-value is to be read for
|
|
321
320
|
* result materialization.</p>
|
|
321
|
+
* @public
|
|
322
322
|
*/
|
|
323
323
|
SourceColumn?: string;
|
|
324
324
|
/**
|
|
325
|
-
* @public
|
|
326
325
|
* <p>Target measure name to be used. If not provided, the target measure name by default
|
|
327
326
|
* would be measure-name if provided, or sourceColumn otherwise. </p>
|
|
327
|
+
* @public
|
|
328
328
|
*/
|
|
329
329
|
TargetMeasureName?: string;
|
|
330
330
|
/**
|
|
331
|
-
* @public
|
|
332
331
|
* <p>Type of the value that is to be read from sourceColumn. If the mapping is for MULTI,
|
|
333
332
|
* use MeasureValueType.MULTI.</p>
|
|
333
|
+
* @public
|
|
334
334
|
*/
|
|
335
335
|
MeasureValueType: MeasureValueType | undefined;
|
|
336
336
|
/**
|
|
337
|
-
* @public
|
|
338
337
|
* <p>Required when measureValueType is MULTI. Attribute mappings for MULTI value
|
|
339
338
|
* measures.</p>
|
|
339
|
+
* @public
|
|
340
340
|
*/
|
|
341
341
|
MultiMeasureAttributeMappings?: MultiMeasureAttributeMapping[];
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
|
-
* @public
|
|
345
344
|
* <p>Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided.
|
|
346
345
|
* MultiMeasureMappings can be used to ingest data as multi measures in the derived
|
|
347
346
|
* table.</p>
|
|
347
|
+
* @public
|
|
348
348
|
*/
|
|
349
349
|
export interface MultiMeasureMappings {
|
|
350
350
|
/**
|
|
351
|
-
* @public
|
|
352
351
|
* <p>The name of the target multi-measure name in the derived table. This input is required
|
|
353
352
|
* when measureNameColumn is not provided. If MeasureNameColumn is provided, then value
|
|
354
353
|
* from that column will be used as multi-measure name.</p>
|
|
354
|
+
* @public
|
|
355
355
|
*/
|
|
356
356
|
TargetMultiMeasureName?: string;
|
|
357
357
|
/**
|
|
358
|
-
* @public
|
|
359
358
|
* <p>Required. Attribute mappings to be used for mapping query results to ingest data for
|
|
360
359
|
* multi-measure attributes.</p>
|
|
360
|
+
* @public
|
|
361
361
|
*/
|
|
362
362
|
MultiMeasureAttributeMappings: MultiMeasureAttributeMapping[] | undefined;
|
|
363
363
|
}
|
|
364
364
|
/**
|
|
365
|
-
* @public
|
|
366
365
|
* <p> Configuration to write data into Timestream database and table. This configuration
|
|
367
366
|
* allows the user to map the query result select columns into the destination table
|
|
368
367
|
* columns. </p>
|
|
368
|
+
* @public
|
|
369
369
|
*/
|
|
370
370
|
export interface TimestreamConfiguration {
|
|
371
371
|
/**
|
|
372
|
-
* @public
|
|
373
372
|
* <p>Name of Timestream database to which the query result will be written.</p>
|
|
373
|
+
* @public
|
|
374
374
|
*/
|
|
375
375
|
DatabaseName: string | undefined;
|
|
376
376
|
/**
|
|
377
|
+
* <p>Name of Timestream table that the query result will be written to. The table should be
|
|
378
|
+
* within the same database that is provided in Timestream configuration.</p>
|
|
377
379
|
* @public
|
|
378
|
-
* <p>Name of Timestream table that the query result will be written to. The table should
|
|
379
|
-
* be within the same database that is provided in Timestream configuration.</p>
|
|
380
380
|
*/
|
|
381
381
|
TableName: string | undefined;
|
|
382
382
|
/**
|
|
383
|
-
* @public
|
|
384
383
|
* <p>Column from query result that should be used as the time column in destination table.
|
|
385
384
|
* Column type for this should be TIMESTAMP.</p>
|
|
385
|
+
* @public
|
|
386
386
|
*/
|
|
387
387
|
TimeColumn: string | undefined;
|
|
388
388
|
/**
|
|
389
|
-
* @public
|
|
390
389
|
* <p> This is to allow mapping column(s) from the query result to the dimension in the
|
|
391
390
|
* destination table. </p>
|
|
391
|
+
* @public
|
|
392
392
|
*/
|
|
393
393
|
DimensionMappings: DimensionMapping[] | undefined;
|
|
394
394
|
/**
|
|
395
|
-
* @public
|
|
396
395
|
* <p>Multi-measure mappings.</p>
|
|
396
|
+
* @public
|
|
397
397
|
*/
|
|
398
398
|
MultiMeasureMappings?: MultiMeasureMappings;
|
|
399
399
|
/**
|
|
400
|
-
* @public
|
|
401
400
|
* <p>Specifies how to map measures to multi-measure records.</p>
|
|
401
|
+
* @public
|
|
402
402
|
*/
|
|
403
403
|
MixedMeasureMappings?: MixedMeasureMapping[];
|
|
404
404
|
/**
|
|
405
|
-
* @public
|
|
406
405
|
* <p>Name of the measure column.</p>
|
|
406
|
+
* @public
|
|
407
407
|
*/
|
|
408
408
|
MeasureNameColumn?: string;
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
-
* @public
|
|
412
411
|
* <p>Configuration used for writing the output of a query.</p>
|
|
412
|
+
* @public
|
|
413
413
|
*/
|
|
414
414
|
export interface TargetConfiguration {
|
|
415
415
|
/**
|
|
416
|
-
* @public
|
|
417
416
|
* <p>Configuration needed to write data into the Timestream database and table.</p>
|
|
417
|
+
* @public
|
|
418
418
|
*/
|
|
419
419
|
TimestreamConfiguration: TimestreamConfiguration | undefined;
|
|
420
420
|
}
|
|
@@ -423,42 +423,44 @@ export interface TargetConfiguration {
|
|
|
423
423
|
*/
|
|
424
424
|
export interface CreateScheduledQueryRequest {
|
|
425
425
|
/**
|
|
426
|
-
* @public
|
|
427
426
|
* <p>Name of the scheduled query.</p>
|
|
427
|
+
* @public
|
|
428
428
|
*/
|
|
429
429
|
Name: string | undefined;
|
|
430
430
|
/**
|
|
431
|
+
* <p>The query string to run. Parameter names can be specified in the query string
|
|
432
|
+
* <code>@</code> character followed by an identifier. The named Parameter
|
|
433
|
+
* <code>@scheduled_runtime</code> is reserved and can be used in the query to get the
|
|
434
|
+
* time at which the query is scheduled to run.</p>
|
|
435
|
+
* <p>The timestamp calculated according to the ScheduleConfiguration parameter, will be the
|
|
436
|
+
* value of <code>@scheduled_runtime</code> paramater for each query run. For example,
|
|
437
|
+
* consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this
|
|
438
|
+
* instance, the <code>@scheduled_runtime</code> parameter is initialized to the timestamp
|
|
439
|
+
* 2021-12-01 00:00:00 when invoking the query.</p>
|
|
431
440
|
* @public
|
|
432
|
-
* <p>The query string to run. Parameter
|
|
433
|
-
* names can be specified in the query string <code>@</code> character followed by an
|
|
434
|
-
* identifier. The named Parameter <code>@scheduled_runtime</code> is reserved and can be used in the query to get the time at which the query is scheduled to run.</p>
|
|
435
|
-
* <p>The timestamp calculated according to the ScheduleConfiguration parameter, will be the value of <code>@scheduled_runtime</code> paramater for each query run.
|
|
436
|
-
* For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the <code>@scheduled_runtime</code> parameter is
|
|
437
|
-
* initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.</p>
|
|
438
441
|
*/
|
|
439
442
|
QueryString: string | undefined;
|
|
440
443
|
/**
|
|
441
|
-
* @public
|
|
442
444
|
* <p>The schedule configuration for the query.</p>
|
|
445
|
+
* @public
|
|
443
446
|
*/
|
|
444
447
|
ScheduleConfiguration: ScheduleConfiguration | undefined;
|
|
445
448
|
/**
|
|
446
|
-
* @public
|
|
447
449
|
* <p>Notification configuration for the scheduled query. A notification is sent by
|
|
448
|
-
* Timestream when a query run finishes, when the state is updated or when you delete it.
|
|
450
|
+
* Timestream when a query run finishes, when the state is updated or when you delete it.
|
|
451
|
+
* </p>
|
|
452
|
+
* @public
|
|
449
453
|
*/
|
|
450
454
|
NotificationConfiguration: NotificationConfiguration | undefined;
|
|
451
455
|
/**
|
|
452
|
-
* @public
|
|
453
456
|
* <p>Configuration used for writing the result of a query.</p>
|
|
457
|
+
* @public
|
|
454
458
|
*/
|
|
455
459
|
TargetConfiguration?: TargetConfiguration;
|
|
456
460
|
/**
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
* </p>
|
|
461
|
+
* <p>Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words,
|
|
462
|
+
* making the same request repeatedly will produce the same result. Making multiple
|
|
463
|
+
* identical CreateScheduledQuery requests has the same effect as making a single request. </p>
|
|
462
464
|
* <ul>
|
|
463
465
|
* <li>
|
|
464
466
|
* <p> If CreateScheduledQuery is called without a <code>ClientToken</code>, the
|
|
@@ -469,31 +471,36 @@ export interface CreateScheduledQueryRequest {
|
|
|
469
471
|
* as a new request. </p>
|
|
470
472
|
* </li>
|
|
471
473
|
* </ul>
|
|
474
|
+
* @public
|
|
472
475
|
*/
|
|
473
476
|
ClientToken?: string;
|
|
474
477
|
/**
|
|
478
|
+
* <p>The ARN for the IAM role that Timestream will assume when running the scheduled query.
|
|
479
|
+
* </p>
|
|
475
480
|
* @public
|
|
476
|
-
* <p>The ARN for the IAM role that Timestream will assume when running the scheduled query. </p>
|
|
477
481
|
*/
|
|
478
482
|
ScheduledQueryExecutionRoleArn: string | undefined;
|
|
479
483
|
/**
|
|
480
|
-
* @public
|
|
481
484
|
* <p>A list of key-value pairs to label the scheduled query.</p>
|
|
485
|
+
* @public
|
|
482
486
|
*/
|
|
483
487
|
Tags?: Tag[];
|
|
484
488
|
/**
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
* key
|
|
488
|
-
*
|
|
489
|
-
*
|
|
489
|
+
* <p>The Amazon KMS key used to encrypt the scheduled query resource, at-rest. If the
|
|
490
|
+
* Amazon KMS key is not specified, the scheduled query resource will be encrypted with a
|
|
491
|
+
* Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias
|
|
492
|
+
* name, or alias ARN. When using an alias name, prefix the name with
|
|
493
|
+
* <i>alias/</i>
|
|
490
494
|
* </p>
|
|
491
|
-
* <p>If ErrorReportConfiguration uses <code>SSE_KMS</code> as encryption type, the same
|
|
495
|
+
* <p>If ErrorReportConfiguration uses <code>SSE_KMS</code> as encryption type, the same
|
|
496
|
+
* KmsKeyId is used to encrypt the error report at rest.</p>
|
|
497
|
+
* @public
|
|
492
498
|
*/
|
|
493
499
|
KmsKeyId?: string;
|
|
494
500
|
/**
|
|
501
|
+
* <p>Configuration for error reporting. Error reports will be generated when a problem is
|
|
502
|
+
* encountered when writing the query results. </p>
|
|
495
503
|
* @public
|
|
496
|
-
* <p>Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results. </p>
|
|
497
504
|
*/
|
|
498
505
|
ErrorReportConfiguration: ErrorReportConfiguration | undefined;
|
|
499
506
|
}
|
|
@@ -502,14 +509,14 @@ export interface CreateScheduledQueryRequest {
|
|
|
502
509
|
*/
|
|
503
510
|
export interface CreateScheduledQueryResponse {
|
|
504
511
|
/**
|
|
505
|
-
* @public
|
|
506
512
|
* <p>ARN for the created scheduled query.</p>
|
|
513
|
+
* @public
|
|
507
514
|
*/
|
|
508
515
|
Arn: string | undefined;
|
|
509
516
|
}
|
|
510
517
|
/**
|
|
511
|
-
* @public
|
|
512
518
|
* <p>You have exceeded the service quota.</p>
|
|
519
|
+
* @public
|
|
513
520
|
*/
|
|
514
521
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
515
522
|
readonly name: "ServiceQuotaExceededException";
|
|
@@ -525,22 +532,22 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
525
532
|
*/
|
|
526
533
|
export interface DeleteScheduledQueryRequest {
|
|
527
534
|
/**
|
|
528
|
-
* @public
|
|
529
535
|
* <p>The ARN of the scheduled query. </p>
|
|
536
|
+
* @public
|
|
530
537
|
*/
|
|
531
538
|
ScheduledQueryArn: string | undefined;
|
|
532
539
|
}
|
|
533
540
|
/**
|
|
534
|
-
* @public
|
|
535
541
|
* <p>The requested resource could not be found.</p>
|
|
542
|
+
* @public
|
|
536
543
|
*/
|
|
537
544
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
538
545
|
readonly name: "ResourceNotFoundException";
|
|
539
546
|
readonly $fault: "client";
|
|
540
547
|
Message?: string;
|
|
541
548
|
/**
|
|
542
|
-
* @public
|
|
543
549
|
* <p>The ARN of the scheduled query.</p>
|
|
550
|
+
* @public
|
|
544
551
|
*/
|
|
545
552
|
ScheduledQueryArn?: string;
|
|
546
553
|
/**
|
|
@@ -554,19 +561,19 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
554
561
|
export interface DescribeEndpointsRequest {
|
|
555
562
|
}
|
|
556
563
|
/**
|
|
557
|
-
* @public
|
|
558
564
|
* <p>Represents an available endpoint against which to make API calls against, as well as
|
|
559
565
|
* the TTL for that endpoint.</p>
|
|
566
|
+
* @public
|
|
560
567
|
*/
|
|
561
568
|
export interface Endpoint {
|
|
562
569
|
/**
|
|
563
|
-
* @public
|
|
564
570
|
* <p>An endpoint address.</p>
|
|
571
|
+
* @public
|
|
565
572
|
*/
|
|
566
573
|
Address: string | undefined;
|
|
567
574
|
/**
|
|
568
|
-
* @public
|
|
569
575
|
* <p>The TTL for the endpoint, in minutes.</p>
|
|
576
|
+
* @public
|
|
570
577
|
*/
|
|
571
578
|
CachePeriodInMinutes: number | undefined;
|
|
572
579
|
}
|
|
@@ -575,9 +582,9 @@ export interface Endpoint {
|
|
|
575
582
|
*/
|
|
576
583
|
export interface DescribeEndpointsResponse {
|
|
577
584
|
/**
|
|
578
|
-
* @public
|
|
579
585
|
* <p>An <code>Endpoints</code> object is returned when a <code>DescribeEndpoints</code>
|
|
580
586
|
* request is made.</p>
|
|
587
|
+
* @public
|
|
581
588
|
*/
|
|
582
589
|
Endpoints: Endpoint[] | undefined;
|
|
583
590
|
}
|
|
@@ -586,68 +593,69 @@ export interface DescribeEndpointsResponse {
|
|
|
586
593
|
*/
|
|
587
594
|
export interface DescribeScheduledQueryRequest {
|
|
588
595
|
/**
|
|
589
|
-
* @public
|
|
590
596
|
* <p>The ARN of the scheduled query.</p>
|
|
597
|
+
* @public
|
|
591
598
|
*/
|
|
592
599
|
ScheduledQueryArn: string | undefined;
|
|
593
600
|
}
|
|
594
601
|
/**
|
|
595
|
-
* @public
|
|
596
602
|
* <p> S3 report location for the scheduled query run.</p>
|
|
603
|
+
* @public
|
|
597
604
|
*/
|
|
598
605
|
export interface S3ReportLocation {
|
|
599
606
|
/**
|
|
600
|
-
* @public
|
|
601
607
|
* <p> S3 bucket name. </p>
|
|
608
|
+
* @public
|
|
602
609
|
*/
|
|
603
610
|
BucketName?: string;
|
|
604
611
|
/**
|
|
605
|
-
* @public
|
|
606
612
|
* <p>S3 key. </p>
|
|
613
|
+
* @public
|
|
607
614
|
*/
|
|
608
615
|
ObjectKey?: string;
|
|
609
616
|
}
|
|
610
617
|
/**
|
|
611
|
-
* @public
|
|
612
618
|
* <p>This contains the location of the error report for a single scheduled query call.
|
|
613
619
|
* </p>
|
|
620
|
+
* @public
|
|
614
621
|
*/
|
|
615
622
|
export interface ErrorReportLocation {
|
|
616
623
|
/**
|
|
617
|
-
* @public
|
|
618
624
|
* <p>The S3 location where error reports are written.</p>
|
|
625
|
+
* @public
|
|
619
626
|
*/
|
|
620
627
|
S3ReportLocation?: S3ReportLocation;
|
|
621
628
|
}
|
|
622
629
|
/**
|
|
623
|
-
* @public
|
|
624
630
|
* <p>Statistics for a single scheduled query run.</p>
|
|
631
|
+
* @public
|
|
625
632
|
*/
|
|
626
633
|
export interface ExecutionStats {
|
|
627
634
|
/**
|
|
635
|
+
* <p>Total time, measured in milliseconds, that was needed for the scheduled query run to
|
|
636
|
+
* complete.</p>
|
|
628
637
|
* @public
|
|
629
|
-
* <p>Total time, measured in milliseconds, that was needed for the scheduled query run to complete.</p>
|
|
630
638
|
*/
|
|
631
639
|
ExecutionTimeInMillis?: number;
|
|
632
640
|
/**
|
|
633
|
-
* @public
|
|
634
641
|
* <p>Data writes metered for records ingested in a single scheduled query run.</p>
|
|
642
|
+
* @public
|
|
635
643
|
*/
|
|
636
644
|
DataWrites?: number;
|
|
637
645
|
/**
|
|
638
|
-
* @public
|
|
639
646
|
* <p>Bytes metered for a single scheduled query run.</p>
|
|
647
|
+
* @public
|
|
640
648
|
*/
|
|
641
649
|
BytesMetered?: number;
|
|
642
650
|
/**
|
|
643
|
-
* @public
|
|
644
651
|
* <p>The number of records ingested for a single scheduled query run. </p>
|
|
652
|
+
* @public
|
|
645
653
|
*/
|
|
646
654
|
RecordsIngested?: number;
|
|
647
655
|
/**
|
|
648
|
-
* @public
|
|
649
656
|
* <p>Number of rows present in the output from running a query before ingestion to
|
|
650
657
|
* destination data source.</p>
|
|
658
|
+
* @public
|
|
651
659
|
*/
|
|
652
660
|
QueryResultRows?: number;
|
|
653
661
|
}
|
|
@@ -666,40 +674,41 @@ export declare const ScheduledQueryRunStatus: {
|
|
|
666
674
|
*/
|
|
667
675
|
export type ScheduledQueryRunStatus = (typeof ScheduledQueryRunStatus)[keyof typeof ScheduledQueryRunStatus];
|
|
668
676
|
/**
|
|
669
|
-
* @public
|
|
670
677
|
* <p>Run summary for the scheduled query</p>
|
|
678
|
+
* @public
|
|
671
679
|
*/
|
|
672
680
|
export interface ScheduledQueryRunSummary {
|
|
673
681
|
/**
|
|
674
|
-
* @public
|
|
675
682
|
* <p>InvocationTime for this run. This is the time at which the query is scheduled to run.
|
|
676
|
-
* Parameter <code>@scheduled_runtime</code> can be used in the query to get the value.
|
|
683
|
+
* Parameter <code>@scheduled_runtime</code> can be used in the query to get the value.
|
|
684
|
+
* </p>
|
|
685
|
+
* @public
|
|
677
686
|
*/
|
|
678
687
|
InvocationTime?: Date;
|
|
679
688
|
/**
|
|
680
|
-
* @public
|
|
681
689
|
* <p>The actual time when the query was run.</p>
|
|
690
|
+
* @public
|
|
682
691
|
*/
|
|
683
692
|
TriggerTime?: Date;
|
|
684
693
|
/**
|
|
685
|
-
* @public
|
|
686
694
|
* <p>The status of a scheduled query run.</p>
|
|
695
|
+
* @public
|
|
687
696
|
*/
|
|
688
697
|
RunStatus?: ScheduledQueryRunStatus;
|
|
689
698
|
/**
|
|
690
|
-
* @public
|
|
691
699
|
* <p>Runtime statistics for a scheduled run.</p>
|
|
700
|
+
* @public
|
|
692
701
|
*/
|
|
693
702
|
ExecutionStats?: ExecutionStats;
|
|
694
703
|
/**
|
|
695
|
-
* @public
|
|
696
704
|
* <p>S3 location for error report.</p>
|
|
705
|
+
* @public
|
|
697
706
|
*/
|
|
698
707
|
ErrorReportLocation?: ErrorReportLocation;
|
|
699
708
|
/**
|
|
700
|
-
* @public
|
|
701
709
|
* <p>Error message for the scheduled query in case of failure. You might have to look at
|
|
702
710
|
* the error report to get more detailed error reasons. </p>
|
|
711
|
+
* @public
|
|
703
712
|
*/
|
|
704
713
|
FailureReason?: string;
|
|
705
714
|
}
|
|
@@ -716,83 +725,83 @@ export declare const ScheduledQueryState: {
|
|
|
716
725
|
*/
|
|
717
726
|
export type ScheduledQueryState = (typeof ScheduledQueryState)[keyof typeof ScheduledQueryState];
|
|
718
727
|
/**
|
|
719
|
-
* @public
|
|
720
728
|
* <p>Structure that describes scheduled query.</p>
|
|
729
|
+
* @public
|
|
721
730
|
*/
|
|
722
731
|
export interface ScheduledQueryDescription {
|
|
723
732
|
/**
|
|
724
|
-
* @public
|
|
725
733
|
* <p>Scheduled query ARN.</p>
|
|
734
|
+
* @public
|
|
726
735
|
*/
|
|
727
736
|
Arn: string | undefined;
|
|
728
737
|
/**
|
|
729
|
-
* @public
|
|
730
738
|
* <p>Name of the scheduled query.</p>
|
|
739
|
+
* @public
|
|
731
740
|
*/
|
|
732
741
|
Name: string | undefined;
|
|
733
742
|
/**
|
|
734
|
-
* @public
|
|
735
743
|
* <p>The query to be run.</p>
|
|
744
|
+
* @public
|
|
736
745
|
*/
|
|
737
746
|
QueryString: string | undefined;
|
|
738
747
|
/**
|
|
739
|
-
* @public
|
|
740
748
|
* <p>Creation time of the scheduled query.</p>
|
|
749
|
+
* @public
|
|
741
750
|
*/
|
|
742
751
|
CreationTime?: Date;
|
|
743
752
|
/**
|
|
744
|
-
* @public
|
|
745
753
|
* <p>State of the scheduled query. </p>
|
|
754
|
+
* @public
|
|
746
755
|
*/
|
|
747
756
|
State: ScheduledQueryState | undefined;
|
|
748
757
|
/**
|
|
749
|
-
* @public
|
|
750
758
|
* <p>Last time the query was run.</p>
|
|
759
|
+
* @public
|
|
751
760
|
*/
|
|
752
761
|
PreviousInvocationTime?: Date;
|
|
753
762
|
/**
|
|
754
|
-
* @public
|
|
755
763
|
* <p>The next time the scheduled query is scheduled to run.</p>
|
|
764
|
+
* @public
|
|
756
765
|
*/
|
|
757
766
|
NextInvocationTime?: Date;
|
|
758
767
|
/**
|
|
759
|
-
* @public
|
|
760
768
|
* <p>Schedule configuration.</p>
|
|
769
|
+
* @public
|
|
761
770
|
*/
|
|
762
771
|
ScheduleConfiguration: ScheduleConfiguration | undefined;
|
|
763
772
|
/**
|
|
764
|
-
* @public
|
|
765
773
|
* <p>Notification configuration.</p>
|
|
774
|
+
* @public
|
|
766
775
|
*/
|
|
767
776
|
NotificationConfiguration: NotificationConfiguration | undefined;
|
|
768
777
|
/**
|
|
769
|
-
* @public
|
|
770
778
|
* <p>Scheduled query target store configuration.</p>
|
|
779
|
+
* @public
|
|
771
780
|
*/
|
|
772
781
|
TargetConfiguration?: TargetConfiguration;
|
|
773
782
|
/**
|
|
774
|
-
* @public
|
|
775
783
|
* <p>IAM role that Timestream uses to run the schedule query.</p>
|
|
784
|
+
* @public
|
|
776
785
|
*/
|
|
777
786
|
ScheduledQueryExecutionRoleArn?: string;
|
|
778
787
|
/**
|
|
779
|
-
* @public
|
|
780
788
|
* <p>A customer provided KMS key used to encrypt the scheduled query resource.</p>
|
|
789
|
+
* @public
|
|
781
790
|
*/
|
|
782
791
|
KmsKeyId?: string;
|
|
783
792
|
/**
|
|
784
|
-
* @public
|
|
785
793
|
* <p>Error-reporting configuration for the scheduled query.</p>
|
|
794
|
+
* @public
|
|
786
795
|
*/
|
|
787
796
|
ErrorReportConfiguration?: ErrorReportConfiguration;
|
|
788
797
|
/**
|
|
789
|
-
* @public
|
|
790
798
|
* <p>Runtime summary for the last scheduled query run. </p>
|
|
799
|
+
* @public
|
|
791
800
|
*/
|
|
792
801
|
LastRunSummary?: ScheduledQueryRunSummary;
|
|
793
802
|
/**
|
|
794
|
-
* @public
|
|
795
803
|
* <p>Runtime summary for the last five failed scheduled query runs.</p>
|
|
804
|
+
* @public
|
|
796
805
|
*/
|
|
797
806
|
RecentlyFailedRuns?: ScheduledQueryRunSummary[];
|
|
798
807
|
}
|
|
@@ -801,8 +810,8 @@ export interface ScheduledQueryDescription {
|
|
|
801
810
|
*/
|
|
802
811
|
export interface DescribeScheduledQueryResponse {
|
|
803
812
|
/**
|
|
804
|
-
* @public
|
|
805
813
|
* <p>The scheduled query.</p>
|
|
814
|
+
* @public
|
|
806
815
|
*/
|
|
807
816
|
ScheduledQuery: ScheduledQueryDescription | undefined;
|
|
808
817
|
}
|
|
@@ -811,18 +820,19 @@ export interface DescribeScheduledQueryResponse {
|
|
|
811
820
|
*/
|
|
812
821
|
export interface ExecuteScheduledQueryRequest {
|
|
813
822
|
/**
|
|
814
|
-
* @public
|
|
815
823
|
* <p>ARN of the scheduled query.</p>
|
|
824
|
+
* @public
|
|
816
825
|
*/
|
|
817
826
|
ScheduledQueryArn: string | undefined;
|
|
818
827
|
/**
|
|
828
|
+
* <p>The timestamp in UTC. Query will be run as if it was invoked at this timestamp.
|
|
829
|
+
* </p>
|
|
819
830
|
* @public
|
|
820
|
-
* <p>The timestamp in UTC. Query will be run as if it was invoked at this timestamp. </p>
|
|
821
831
|
*/
|
|
822
832
|
InvocationTime: Date | undefined;
|
|
823
833
|
/**
|
|
824
|
-
* @public
|
|
825
834
|
* <p>Not used. </p>
|
|
835
|
+
* @public
|
|
826
836
|
*/
|
|
827
837
|
ClientToken?: string;
|
|
828
838
|
}
|
|
@@ -831,95 +841,95 @@ export interface ExecuteScheduledQueryRequest {
|
|
|
831
841
|
*/
|
|
832
842
|
export interface ListScheduledQueriesRequest {
|
|
833
843
|
/**
|
|
834
|
-
* @public
|
|
835
844
|
* <p>The maximum number of items to return in the output. If the total number of items
|
|
836
845
|
* available is more than the value specified, a <code>NextToken</code> is provided in the
|
|
837
846
|
* output. To resume pagination, provide the <code>NextToken</code> value as the argument
|
|
838
847
|
* to the subsequent call to <code>ListScheduledQueriesRequest</code>.</p>
|
|
848
|
+
* @public
|
|
839
849
|
*/
|
|
840
850
|
MaxResults?: number;
|
|
841
851
|
/**
|
|
842
|
-
* @public
|
|
843
852
|
* <p> A pagination token to resume pagination.</p>
|
|
853
|
+
* @public
|
|
844
854
|
*/
|
|
845
855
|
NextToken?: string;
|
|
846
856
|
}
|
|
847
857
|
/**
|
|
848
|
-
* @public
|
|
849
858
|
* <p>Destination for scheduled query.</p>
|
|
859
|
+
* @public
|
|
850
860
|
*/
|
|
851
861
|
export interface TimestreamDestination {
|
|
852
862
|
/**
|
|
853
|
-
* @public
|
|
854
863
|
* <p>Timestream database name. </p>
|
|
864
|
+
* @public
|
|
855
865
|
*/
|
|
856
866
|
DatabaseName?: string;
|
|
857
867
|
/**
|
|
858
|
-
* @public
|
|
859
868
|
* <p>Timestream table name. </p>
|
|
869
|
+
* @public
|
|
860
870
|
*/
|
|
861
871
|
TableName?: string;
|
|
862
872
|
}
|
|
863
873
|
/**
|
|
864
|
-
* @public
|
|
865
874
|
* <p>Destination details to write data for a target data source. Current supported data
|
|
866
875
|
* source is Timestream.</p>
|
|
876
|
+
* @public
|
|
867
877
|
*/
|
|
868
878
|
export interface TargetDestination {
|
|
869
879
|
/**
|
|
870
|
-
* @public
|
|
871
880
|
* <p>Query result destination details for Timestream data source.</p>
|
|
881
|
+
* @public
|
|
872
882
|
*/
|
|
873
883
|
TimestreamDestination?: TimestreamDestination;
|
|
874
884
|
}
|
|
875
885
|
/**
|
|
876
|
-
* @public
|
|
877
886
|
* <p>Scheduled Query</p>
|
|
887
|
+
* @public
|
|
878
888
|
*/
|
|
879
889
|
export interface ScheduledQuery {
|
|
880
890
|
/**
|
|
881
|
-
* @public
|
|
882
891
|
* <p>The Amazon Resource Name.</p>
|
|
892
|
+
* @public
|
|
883
893
|
*/
|
|
884
894
|
Arn: string | undefined;
|
|
885
895
|
/**
|
|
886
|
-
* @public
|
|
887
896
|
* <p>The name of the scheduled query.</p>
|
|
897
|
+
* @public
|
|
888
898
|
*/
|
|
889
899
|
Name: string | undefined;
|
|
890
900
|
/**
|
|
891
|
-
* @public
|
|
892
901
|
* <p>The creation time of the scheduled query.</p>
|
|
902
|
+
* @public
|
|
893
903
|
*/
|
|
894
904
|
CreationTime?: Date;
|
|
895
905
|
/**
|
|
896
|
-
* @public
|
|
897
906
|
* <p>State of scheduled query. </p>
|
|
907
|
+
* @public
|
|
898
908
|
*/
|
|
899
909
|
State: ScheduledQueryState | undefined;
|
|
900
910
|
/**
|
|
901
|
-
* @public
|
|
902
911
|
* <p>The last time the scheduled query was run.</p>
|
|
912
|
+
* @public
|
|
903
913
|
*/
|
|
904
914
|
PreviousInvocationTime?: Date;
|
|
905
915
|
/**
|
|
906
|
-
* @public
|
|
907
916
|
* <p>The next time the scheduled query is to be run.</p>
|
|
917
|
+
* @public
|
|
908
918
|
*/
|
|
909
919
|
NextInvocationTime?: Date;
|
|
910
920
|
/**
|
|
911
|
-
* @public
|
|
912
921
|
* <p>Configuration for scheduled query error reporting.</p>
|
|
922
|
+
* @public
|
|
913
923
|
*/
|
|
914
924
|
ErrorReportConfiguration?: ErrorReportConfiguration;
|
|
915
925
|
/**
|
|
916
|
-
* @public
|
|
917
926
|
* <p>Target data source where final scheduled query result will be written.</p>
|
|
927
|
+
* @public
|
|
918
928
|
*/
|
|
919
929
|
TargetDestination?: TargetDestination;
|
|
920
930
|
/**
|
|
921
|
-
* @public
|
|
922
931
|
* <p>Status of the last scheduled query run.</p>
|
|
932
|
+
* @public
|
|
923
933
|
*/
|
|
924
934
|
LastRunStatus?: ScheduledQueryRunStatus;
|
|
925
935
|
}
|
|
@@ -928,14 +938,14 @@ export interface ScheduledQuery {
|
|
|
928
938
|
*/
|
|
929
939
|
export interface ListScheduledQueriesResponse {
|
|
930
940
|
/**
|
|
931
|
-
* @public
|
|
932
941
|
* <p>A list of scheduled queries.</p>
|
|
942
|
+
* @public
|
|
933
943
|
*/
|
|
934
944
|
ScheduledQueries: ScheduledQuery[] | undefined;
|
|
935
945
|
/**
|
|
936
|
-
* @public
|
|
937
946
|
* <p>A token to specify where to start paginating. This is the NextToken from a previously
|
|
938
947
|
* truncated response.</p>
|
|
948
|
+
* @public
|
|
939
949
|
*/
|
|
940
950
|
NextToken?: string;
|
|
941
951
|
}
|
|
@@ -944,19 +954,19 @@ export interface ListScheduledQueriesResponse {
|
|
|
944
954
|
*/
|
|
945
955
|
export interface ListTagsForResourceRequest {
|
|
946
956
|
/**
|
|
947
|
-
* @public
|
|
948
957
|
* <p>The Timestream resource with tags to be listed. This value is an Amazon Resource Name
|
|
949
958
|
* (ARN).</p>
|
|
959
|
+
* @public
|
|
950
960
|
*/
|
|
951
961
|
ResourceARN: string | undefined;
|
|
952
962
|
/**
|
|
953
|
-
* @public
|
|
954
963
|
* <p>The maximum number of tags to return.</p>
|
|
964
|
+
* @public
|
|
955
965
|
*/
|
|
956
966
|
MaxResults?: number;
|
|
957
967
|
/**
|
|
958
|
-
* @public
|
|
959
968
|
* <p>A pagination token to resume pagination.</p>
|
|
969
|
+
* @public
|
|
960
970
|
*/
|
|
961
971
|
NextToken?: string;
|
|
962
972
|
}
|
|
@@ -965,14 +975,14 @@ export interface ListTagsForResourceRequest {
|
|
|
965
975
|
*/
|
|
966
976
|
export interface ListTagsForResourceResponse {
|
|
967
977
|
/**
|
|
968
|
-
* @public
|
|
969
978
|
* <p>The tags currently associated with the Timestream resource. </p>
|
|
979
|
+
* @public
|
|
970
980
|
*/
|
|
971
981
|
Tags: Tag[] | undefined;
|
|
972
982
|
/**
|
|
973
|
-
* @public
|
|
974
983
|
* <p>A pagination token to resume pagination with a subsequent call to
|
|
975
984
|
* <code>ListTagsForResourceResponse</code>.</p>
|
|
985
|
+
* @public
|
|
976
986
|
*/
|
|
977
987
|
NextToken?: string;
|
|
978
988
|
}
|
|
@@ -981,24 +991,24 @@ export interface ListTagsForResourceResponse {
|
|
|
981
991
|
*/
|
|
982
992
|
export interface PrepareQueryRequest {
|
|
983
993
|
/**
|
|
984
|
-
* @public
|
|
985
994
|
* <p>The Timestream query string that you want to use as a prepared statement. Parameter
|
|
986
995
|
* names can be specified in the query string <code>@</code> character followed by an
|
|
987
996
|
* identifier. </p>
|
|
997
|
+
* @public
|
|
988
998
|
*/
|
|
989
999
|
QueryString: string | undefined;
|
|
990
1000
|
/**
|
|
991
|
-
* @public
|
|
992
1001
|
* <p>By setting this value to <code>true</code>, Timestream will only validate that the
|
|
993
1002
|
* query string is a valid Timestream query, and not store the prepared query for later
|
|
994
1003
|
* use.</p>
|
|
1004
|
+
* @public
|
|
995
1005
|
*/
|
|
996
1006
|
ValidateOnly?: boolean;
|
|
997
1007
|
}
|
|
998
1008
|
/**
|
|
999
|
-
* @public
|
|
1000
1009
|
* <p>
|
|
1001
1010
|
* Timestream was unable to run the query successfully. </p>
|
|
1011
|
+
* @public
|
|
1002
1012
|
*/
|
|
1003
1013
|
export declare class QueryExecutionException extends __BaseException {
|
|
1004
1014
|
readonly name: "QueryExecutionException";
|
|
@@ -1014,12 +1024,11 @@ export declare class QueryExecutionException extends __BaseException {
|
|
|
1014
1024
|
*/
|
|
1015
1025
|
export interface QueryRequest {
|
|
1016
1026
|
/**
|
|
1017
|
-
* @public
|
|
1018
1027
|
* <p> The query to be run by Timestream. </p>
|
|
1028
|
+
* @public
|
|
1019
1029
|
*/
|
|
1020
1030
|
QueryString: string | undefined;
|
|
1021
1031
|
/**
|
|
1022
|
-
* @public
|
|
1023
1032
|
* <p> Unique, case-sensitive string of up to 64 ASCII characters specified when a
|
|
1024
1033
|
* <code>Query</code> request is made. Providing a <code>ClientToken</code> makes the
|
|
1025
1034
|
* call to <code>Query</code>
|
|
@@ -1047,10 +1056,10 @@ export interface QueryRequest {
|
|
|
1047
1056
|
* as a new request. </p>
|
|
1048
1057
|
* </li>
|
|
1049
1058
|
* </ul>
|
|
1059
|
+
* @public
|
|
1050
1060
|
*/
|
|
1051
1061
|
ClientToken?: string;
|
|
1052
1062
|
/**
|
|
1053
|
-
* @public
|
|
1054
1063
|
* <p> A pagination token used to return a set of results. When the <code>Query</code> API
|
|
1055
1064
|
* is invoked using <code>NextToken</code>, that particular invocation is assumed to be a
|
|
1056
1065
|
* subsequent invocation of a prior call to <code>Query</code>, and a result set is
|
|
@@ -1090,10 +1099,10 @@ export interface QueryRequest {
|
|
|
1090
1099
|
* pagination token</code> error. </p>
|
|
1091
1100
|
* </li>
|
|
1092
1101
|
* </ul>
|
|
1102
|
+
* @public
|
|
1093
1103
|
*/
|
|
1094
1104
|
NextToken?: string;
|
|
1095
1105
|
/**
|
|
1096
|
-
* @public
|
|
1097
1106
|
* <p> The total number of rows to be returned in the <code>Query</code> output. The initial
|
|
1098
1107
|
* run of <code>Query</code> with a <code>MaxRows</code> value specified will return the
|
|
1099
1108
|
* result set of the query in two cases: </p>
|
|
@@ -1114,32 +1123,33 @@ export interface QueryRequest {
|
|
|
1114
1123
|
* fewer rows to keep the response size from exceeding the 1 MB limit. If
|
|
1115
1124
|
* <code>MaxRows</code> is not provided, Timestream will send the necessary
|
|
1116
1125
|
* number of rows to meet the 1 MB limit.</p>
|
|
1126
|
+
* @public
|
|
1117
1127
|
*/
|
|
1118
1128
|
MaxRows?: number;
|
|
1119
1129
|
}
|
|
1120
1130
|
/**
|
|
1121
|
-
* @public
|
|
1122
1131
|
* <p>Information about the status of the query, including progress and bytes
|
|
1123
1132
|
* scanned.</p>
|
|
1133
|
+
* @public
|
|
1124
1134
|
*/
|
|
1125
1135
|
export interface QueryStatus {
|
|
1126
1136
|
/**
|
|
1127
|
-
* @public
|
|
1128
1137
|
* <p>The progress of the query, expressed as a percentage.</p>
|
|
1138
|
+
* @public
|
|
1129
1139
|
*/
|
|
1130
1140
|
ProgressPercentage?: number;
|
|
1131
1141
|
/**
|
|
1132
|
-
* @public
|
|
1133
1142
|
* <p>The amount of data scanned by the query in bytes. This is a cumulative sum and
|
|
1134
1143
|
* represents the total amount of bytes scanned since the query was started. </p>
|
|
1144
|
+
* @public
|
|
1135
1145
|
*/
|
|
1136
1146
|
CumulativeBytesScanned?: number;
|
|
1137
1147
|
/**
|
|
1138
|
-
* @public
|
|
1139
1148
|
* <p>The amount of data scanned by the query in bytes that you will be charged for. This is
|
|
1140
1149
|
* a cumulative sum and represents the total amount of data that you will be charged for
|
|
1141
1150
|
* since the query was started. The charge is applied only once and is either applied when
|
|
1142
1151
|
* the query completes running or when the query is cancelled. </p>
|
|
1152
|
+
* @public
|
|
1143
1153
|
*/
|
|
1144
1154
|
CumulativeBytesMetered?: number;
|
|
1145
1155
|
}
|
|
@@ -1148,14 +1158,14 @@ export interface QueryStatus {
|
|
|
1148
1158
|
*/
|
|
1149
1159
|
export interface TagResourceRequest {
|
|
1150
1160
|
/**
|
|
1151
|
-
* @public
|
|
1152
1161
|
* <p>Identifies the Timestream resource to which tags should be added. This value is an
|
|
1153
1162
|
* Amazon Resource Name (ARN).</p>
|
|
1163
|
+
* @public
|
|
1154
1164
|
*/
|
|
1155
1165
|
ResourceARN: string | undefined;
|
|
1156
1166
|
/**
|
|
1157
|
-
* @public
|
|
1158
1167
|
* <p>The tags to be assigned to the Timestream resource.</p>
|
|
1168
|
+
* @public
|
|
1159
1169
|
*/
|
|
1160
1170
|
Tags: Tag[] | undefined;
|
|
1161
1171
|
}
|
|
@@ -1169,15 +1179,15 @@ export interface TagResourceResponse {
|
|
|
1169
1179
|
*/
|
|
1170
1180
|
export interface UntagResourceRequest {
|
|
1171
1181
|
/**
|
|
1172
|
-
* @public
|
|
1173
1182
|
* <p>The Timestream resource that the tags will be removed from. This value is an Amazon
|
|
1174
1183
|
* Resource Name (ARN). </p>
|
|
1184
|
+
* @public
|
|
1175
1185
|
*/
|
|
1176
1186
|
ResourceARN: string | undefined;
|
|
1177
1187
|
/**
|
|
1178
|
-
* @public
|
|
1179
1188
|
* <p>A list of tags keys. Existing tags of the resource whose keys are members of this list
|
|
1180
1189
|
* will be removed from the Timestream resource. </p>
|
|
1190
|
+
* @public
|
|
1181
1191
|
*/
|
|
1182
1192
|
TagKeys: string[] | undefined;
|
|
1183
1193
|
}
|
|
@@ -1191,178 +1201,179 @@ export interface UntagResourceResponse {
|
|
|
1191
1201
|
*/
|
|
1192
1202
|
export interface UpdateScheduledQueryRequest {
|
|
1193
1203
|
/**
|
|
1194
|
-
* @public
|
|
1195
1204
|
* <p>ARN of the scheuled query.</p>
|
|
1205
|
+
* @public
|
|
1196
1206
|
*/
|
|
1197
1207
|
ScheduledQueryArn: string | undefined;
|
|
1198
1208
|
/**
|
|
1199
|
-
* @public
|
|
1200
1209
|
* <p>State of the scheduled query. </p>
|
|
1210
|
+
* @public
|
|
1201
1211
|
*/
|
|
1202
1212
|
State: ScheduledQueryState | undefined;
|
|
1203
1213
|
}
|
|
1204
1214
|
/**
|
|
1205
|
-
* @public
|
|
1206
1215
|
* <p> Contains the metadata for query results such as the column names, data types, and
|
|
1207
1216
|
* other attributes. </p>
|
|
1217
|
+
* @public
|
|
1208
1218
|
*/
|
|
1209
1219
|
export interface ColumnInfo {
|
|
1210
1220
|
/**
|
|
1211
|
-
* @public
|
|
1212
1221
|
* <p> The name of the result set column. The name of the result set is available for
|
|
1213
1222
|
* columns of all data types except for arrays. </p>
|
|
1223
|
+
* @public
|
|
1214
1224
|
*/
|
|
1215
1225
|
Name?: string;
|
|
1216
1226
|
/**
|
|
1217
|
-
* @public
|
|
1218
1227
|
* <p>The data type of the result set column. The data type can be a scalar or complex.
|
|
1219
1228
|
* Scalar data types are integers, strings, doubles, Booleans, and others. Complex data
|
|
1220
1229
|
* types are types such as arrays, rows, and others. </p>
|
|
1230
|
+
* @public
|
|
1221
1231
|
*/
|
|
1222
1232
|
Type: Type | undefined;
|
|
1223
1233
|
}
|
|
1224
1234
|
/**
|
|
1225
|
-
* @public
|
|
1226
1235
|
* <p>Contains the data type of a column in a query result set. The data type can be scalar
|
|
1227
1236
|
* or complex. The supported scalar data types are integers, Boolean, string, double,
|
|
1228
1237
|
* timestamp, date, time, and intervals. The supported complex data types are arrays, rows,
|
|
1229
1238
|
* and timeseries.</p>
|
|
1239
|
+
* @public
|
|
1230
1240
|
*/
|
|
1231
1241
|
export interface Type {
|
|
1232
1242
|
/**
|
|
1233
|
-
* @public
|
|
1234
1243
|
* <p>Indicates if the column is of type string, integer, Boolean, double, timestamp, date,
|
|
1235
|
-
* time.
|
|
1244
|
+
* time. For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/supported-data-types.html">Supported data
|
|
1245
|
+
* types</a>.</p>
|
|
1246
|
+
* @public
|
|
1236
1247
|
*/
|
|
1237
1248
|
ScalarType?: ScalarType;
|
|
1238
1249
|
/**
|
|
1239
|
-
* @public
|
|
1240
1250
|
* <p>Indicates if the column is an array.</p>
|
|
1251
|
+
* @public
|
|
1241
1252
|
*/
|
|
1242
1253
|
ArrayColumnInfo?: ColumnInfo;
|
|
1243
1254
|
/**
|
|
1244
|
-
* @public
|
|
1245
1255
|
* <p>Indicates if the column is a timeseries data type.</p>
|
|
1256
|
+
* @public
|
|
1246
1257
|
*/
|
|
1247
1258
|
TimeSeriesMeasureValueColumnInfo?: ColumnInfo;
|
|
1248
1259
|
/**
|
|
1249
|
-
* @public
|
|
1250
1260
|
* <p>Indicates if the column is a row.</p>
|
|
1261
|
+
* @public
|
|
1251
1262
|
*/
|
|
1252
1263
|
RowColumnInfo?: ColumnInfo[];
|
|
1253
1264
|
}
|
|
1254
1265
|
/**
|
|
1255
|
-
* @public
|
|
1256
1266
|
* <p> Datum represents a single data point in a query result. </p>
|
|
1267
|
+
* @public
|
|
1257
1268
|
*/
|
|
1258
1269
|
export interface Datum {
|
|
1259
1270
|
/**
|
|
1260
|
-
* @public
|
|
1261
1271
|
* <p> Indicates if the data point is a scalar value such as integer, string, double, or
|
|
1262
1272
|
* Boolean. </p>
|
|
1273
|
+
* @public
|
|
1263
1274
|
*/
|
|
1264
1275
|
ScalarValue?: string;
|
|
1265
1276
|
/**
|
|
1266
|
-
* @public
|
|
1267
1277
|
* <p> Indicates if the data point is a timeseries data type. </p>
|
|
1278
|
+
* @public
|
|
1268
1279
|
*/
|
|
1269
1280
|
TimeSeriesValue?: TimeSeriesDataPoint[];
|
|
1270
1281
|
/**
|
|
1271
|
-
* @public
|
|
1272
1282
|
* <p> Indicates if the data point is an array. </p>
|
|
1283
|
+
* @public
|
|
1273
1284
|
*/
|
|
1274
1285
|
ArrayValue?: Datum[];
|
|
1275
1286
|
/**
|
|
1276
|
-
* @public
|
|
1277
1287
|
* <p> Indicates if the data point is a row. </p>
|
|
1288
|
+
* @public
|
|
1278
1289
|
*/
|
|
1279
1290
|
RowValue?: Row;
|
|
1280
1291
|
/**
|
|
1281
|
-
* @public
|
|
1282
1292
|
* <p> Indicates if the data point is null. </p>
|
|
1293
|
+
* @public
|
|
1283
1294
|
*/
|
|
1284
1295
|
NullValue?: boolean;
|
|
1285
1296
|
}
|
|
1286
1297
|
/**
|
|
1287
|
-
* @public
|
|
1288
1298
|
* <p>Mapping for named parameters.</p>
|
|
1299
|
+
* @public
|
|
1289
1300
|
*/
|
|
1290
1301
|
export interface ParameterMapping {
|
|
1291
1302
|
/**
|
|
1292
|
-
* @public
|
|
1293
1303
|
* <p>Parameter name.</p>
|
|
1304
|
+
* @public
|
|
1294
1305
|
*/
|
|
1295
1306
|
Name: string | undefined;
|
|
1296
1307
|
/**
|
|
1297
|
-
* @public
|
|
1298
1308
|
* <p>Contains the data type of a column in a query result set. The data type can be scalar
|
|
1299
1309
|
* or complex. The supported scalar data types are integers, Boolean, string, double,
|
|
1300
1310
|
* timestamp, date, time, and intervals. The supported complex data types are arrays, rows,
|
|
1301
1311
|
* and timeseries.</p>
|
|
1312
|
+
* @public
|
|
1302
1313
|
*/
|
|
1303
1314
|
Type: Type | undefined;
|
|
1304
1315
|
}
|
|
1305
1316
|
/**
|
|
1306
|
-
* @public
|
|
1307
1317
|
* <p>Details of the column that is returned by the query. </p>
|
|
1318
|
+
* @public
|
|
1308
1319
|
*/
|
|
1309
1320
|
export interface SelectColumn {
|
|
1310
1321
|
/**
|
|
1311
|
-
* @public
|
|
1312
1322
|
* <p>Name of the column.</p>
|
|
1323
|
+
* @public
|
|
1313
1324
|
*/
|
|
1314
1325
|
Name?: string;
|
|
1315
1326
|
/**
|
|
1316
|
-
* @public
|
|
1317
1327
|
* <p>Contains the data type of a column in a query result set. The data type can be scalar
|
|
1318
1328
|
* or complex. The supported scalar data types are integers, Boolean, string, double,
|
|
1319
1329
|
* timestamp, date, time, and intervals. The supported complex data types are arrays, rows,
|
|
1320
1330
|
* and timeseries.</p>
|
|
1331
|
+
* @public
|
|
1321
1332
|
*/
|
|
1322
1333
|
Type?: Type;
|
|
1323
1334
|
/**
|
|
1324
|
-
* @public
|
|
1325
1335
|
* <p> Database that has this column.</p>
|
|
1336
|
+
* @public
|
|
1326
1337
|
*/
|
|
1327
1338
|
DatabaseName?: string;
|
|
1328
1339
|
/**
|
|
1329
|
-
* @public
|
|
1330
1340
|
* <p>Table within the database that has this column. </p>
|
|
1341
|
+
* @public
|
|
1331
1342
|
*/
|
|
1332
1343
|
TableName?: string;
|
|
1333
1344
|
/**
|
|
1334
|
-
* @public
|
|
1335
1345
|
* <p>True, if the column name was aliased by the query. False otherwise.</p>
|
|
1346
|
+
* @public
|
|
1336
1347
|
*/
|
|
1337
1348
|
Aliased?: boolean;
|
|
1338
1349
|
}
|
|
1339
1350
|
/**
|
|
1340
|
-
* @public
|
|
1341
1351
|
* <p>The timeseries data type represents the values of a measure over time. A time series
|
|
1342
1352
|
* is an array of rows of timestamps and measure values, with rows sorted in ascending
|
|
1343
1353
|
* order of time. A TimeSeriesDataPoint is a single data point in the time series. It
|
|
1344
1354
|
* represents a tuple of (time, measure value) in a time series. </p>
|
|
1355
|
+
* @public
|
|
1345
1356
|
*/
|
|
1346
1357
|
export interface TimeSeriesDataPoint {
|
|
1347
1358
|
/**
|
|
1348
|
-
* @public
|
|
1349
1359
|
* <p>The timestamp when the measure value was collected.</p>
|
|
1360
|
+
* @public
|
|
1350
1361
|
*/
|
|
1351
1362
|
Time: string | undefined;
|
|
1352
1363
|
/**
|
|
1353
|
-
* @public
|
|
1354
1364
|
* <p>The measure value for the data point.</p>
|
|
1365
|
+
* @public
|
|
1355
1366
|
*/
|
|
1356
1367
|
Value: Datum | undefined;
|
|
1357
1368
|
}
|
|
1358
1369
|
/**
|
|
1359
|
-
* @public
|
|
1360
1370
|
* <p>Represents a single row in the query results.</p>
|
|
1371
|
+
* @public
|
|
1361
1372
|
*/
|
|
1362
1373
|
export interface Row {
|
|
1363
1374
|
/**
|
|
1364
|
-
* @public
|
|
1365
1375
|
* <p>List of data points in a single row of the result set.</p>
|
|
1376
|
+
* @public
|
|
1366
1377
|
*/
|
|
1367
1378
|
Data: Datum[] | undefined;
|
|
1368
1379
|
}
|
|
@@ -1371,30 +1382,30 @@ export interface Row {
|
|
|
1371
1382
|
*/
|
|
1372
1383
|
export interface QueryResponse {
|
|
1373
1384
|
/**
|
|
1374
|
-
* @public
|
|
1375
1385
|
* <p> A unique ID for the given query. </p>
|
|
1386
|
+
* @public
|
|
1376
1387
|
*/
|
|
1377
1388
|
QueryId: string | undefined;
|
|
1378
1389
|
/**
|
|
1379
|
-
* @public
|
|
1380
1390
|
* <p> A pagination token that can be used again on a <code>Query</code> call to get the
|
|
1381
1391
|
* next set of results. </p>
|
|
1392
|
+
* @public
|
|
1382
1393
|
*/
|
|
1383
1394
|
NextToken?: string;
|
|
1384
1395
|
/**
|
|
1385
|
-
* @public
|
|
1386
1396
|
* <p> The result set rows returned by the query. </p>
|
|
1397
|
+
* @public
|
|
1387
1398
|
*/
|
|
1388
1399
|
Rows: Row[] | undefined;
|
|
1389
1400
|
/**
|
|
1390
|
-
* @public
|
|
1391
1401
|
* <p> The column data types of the returned result set. </p>
|
|
1402
|
+
* @public
|
|
1392
1403
|
*/
|
|
1393
1404
|
ColumnInfo: ColumnInfo[] | undefined;
|
|
1394
1405
|
/**
|
|
1395
|
-
* @public
|
|
1396
1406
|
* <p>Information about the status of the query, including progress and bytes
|
|
1397
1407
|
* scanned.</p>
|
|
1408
|
+
* @public
|
|
1398
1409
|
*/
|
|
1399
1410
|
QueryStatus?: QueryStatus;
|
|
1400
1411
|
}
|
|
@@ -1403,18 +1414,18 @@ export interface QueryResponse {
|
|
|
1403
1414
|
*/
|
|
1404
1415
|
export interface PrepareQueryResponse {
|
|
1405
1416
|
/**
|
|
1406
|
-
* @public
|
|
1407
1417
|
* <p>The query string that you want prepare.</p>
|
|
1418
|
+
* @public
|
|
1408
1419
|
*/
|
|
1409
1420
|
QueryString: string | undefined;
|
|
1410
1421
|
/**
|
|
1411
|
-
* @public
|
|
1412
1422
|
* <p>A list of SELECT clause columns of the submitted query string. </p>
|
|
1423
|
+
* @public
|
|
1413
1424
|
*/
|
|
1414
1425
|
Columns: SelectColumn[] | undefined;
|
|
1415
1426
|
/**
|
|
1416
|
-
* @public
|
|
1417
1427
|
* <p>A list of parameters used in the submitted query string. </p>
|
|
1428
|
+
* @public
|
|
1418
1429
|
*/
|
|
1419
1430
|
Parameters: ParameterMapping[] | undefined;
|
|
1420
1431
|
}
|