Timestream query
async_boto.clients.timestream_query
logger
module-attribute
logger = getLogger(__name__)
T
module-attribute
T = TypeVar('T', bound=BaseModel)
AsyncTimestreamQueryClient
AsyncTimestreamQueryClient(aws_session)
Bases: BaseClient
Source code in async_boto/clients/timestream_query.py
73 74 75 76 77 | |
describe_endpoints
async
describe_endpoints()
Source code in async_boto/clients/timestream_query.py
95 96 97 98 99 100 101 102 103 104 | |
cancel_query
async
cancel_query(request)
Source code in async_boto/clients/timestream_query.py
106 107 108 109 110 111 112 113 114 | |
create_scheduled_query
async
create_scheduled_query(request)
Source code in async_boto/clients/timestream_query.py
116 117 118 119 120 121 122 123 124 125 126 | |
delete_scheduled_query
async
delete_scheduled_query(request)
Source code in async_boto/clients/timestream_query.py
128 129 130 131 132 133 134 135 136 137 138 | |
describe_account_settings
async
describe_account_settings(request)
Describe the settings for your Timestream account.
This method retrieves account-specific settings, including the query pricing model and the maximum Timestream Compute Units (TCUs) configured for query workloads.
Notes
- You are charged only for the duration of compute units used for your workloads.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object for describing account settings. |
| RETURNS | DESCRIPTION |
|---|---|
DescribeAccountSettingsResponse
|
A response containing the account settings, including: - QueryPricingModel: The pricing model for queries - MaxQueryTCUs: Maximum TCUs configured for query workloads |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error retrieving the account settings. |
Source code in async_boto/clients/timestream_query.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
describe_scheduled_query
async
describe_scheduled_query(request)
Provides detailed information about a scheduled query.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing details for the scheduled query to describe. |
| RETURNS | DESCRIPTION |
|---|---|
DescribeScheduledQueryResponse
|
A response object with detailed information about the specified scheduled query. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error retrieving the scheduled query information. |
Source code in async_boto/clients/timestream_query.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
execute_scheduled_query
async
execute_scheduled_query(request)
Manually run a scheduled query.
This method allows manual execution of a scheduled query. When QueryInsights is enabled, the method also returns insights and metrics related to the executed query as part of an Amazon SNS notification.
Notes
- QueryInsights can help with performance tuning of your query.
- For detailed information about QueryInsights, refer to the Amazon Timestream documentation on optimizing queries.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing details for executing the scheduled query. |
| RETURNS | DESCRIPTION |
|---|---|
ExecuteScheduledQueryResponse
|
A response object with the results of the executed scheduled query, and potentially including query insights if enabled. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error executing the scheduled query. |
Source code in async_boto/clients/timestream_query.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
list_scheduled_queries
async
list_scheduled_queries(request)
Retrieve a list of all scheduled queries in the current Amazon account and Region.
Notes
- This method is eventually consistent, meaning the returned list may not immediately reflect all recent changes to scheduled queries.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object for listing scheduled queries. |
| RETURNS | DESCRIPTION |
|---|---|
ListScheduledQueriesResponse
|
A response object containing the list of scheduled queries. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error retrieving the list of scheduled queries. |
Source code in async_boto/clients/timestream_query.py
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | |
list_tags_for_resource
async
list_tags_for_resource(request)
List all tags associated with a Timestream query resource.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the resource for which to list tags. |
| RETURNS | DESCRIPTION |
|---|---|
ListTagsForResourceResponse
|
A response object containing the list of tags for the specified resource. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error retrieving the tags for the resource. |
Source code in async_boto/clients/timestream_query.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | |
prepare_query
async
prepare_query(request)
Submit a query with parameters to be stored by Timestream for later running.
Notes
- This is a synchronous operation.
- Timestream currently only supports using this operation with
ValidateOnlyset totrue.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the query to be prepared.
The
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
PrepareQueryResponse
|
A response object containing the result of the query preparation. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error preparing the query. |
Warnings
Ensure that the ValidateOnly parameter is set to true as
Timestream currently only supports validation mode.
Source code in async_boto/clients/timestream_query.py
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | |
query
async
query(request)
Run a synchronous query against Amazon Timestream data.
Notes
- Supports QueryInsights for performance tuning when enabled.
- Strict usage constraints and limitations apply:
- Maximum 1 query per second (QPS) with QueryInsights enabled
- Query timeout is 60 seconds
- Idempotency window of 5 minutes for client tokens
- Maximum row size (including metadata) is 1 MB
Warnings
Query will fail under the following conditions: - Submitting a query with the same client token outside the 5-minute idempotency window - Changing parameters while using the same client token within the idempotency window - Row size (including query metadata) exceeding 1 MB - IAM principal mismatch between query initiator and result reader - Different query strings for query initiator and result reader
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the query to be executed.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
QueryResponse
|
A response object containing the query results and potentially QueryInsights if enabled. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error executing the query or if any of the specified conditions are violated. |
Source code in async_boto/clients/timestream_query.py
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 | |
tag_resource
async
tag_resource(request)
Associate a set of tags with a Timestream resource.
Notes
- Tagged resources can be activated for cost allocation tracking.
- Tags will appear on the Billing and Cost Management console.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the resource and tags to be associated.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TagResourceResponse
|
A response object indicating the result of the tagging operation. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error associating tags with the resource. |
Source code in async_boto/clients/timestream_query.py
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | |
untag_resource
async
untag_resource(request)
Remove the association of tags from a Timestream query resource.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the resource and tags to be removed.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
UntagResourceResponse
|
A response object indicating the result of the untagging operation. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error removing tags from the resource. |
Source code in async_boto/clients/timestream_query.py
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 | |
update_account_settings
async
update_account_settings(request)
Update account settings for Timestream query pricing and compute units.
Notes
- Transitions the account to use Timestream Compute Units (TCUs) for query pricing.
- Modifies the maximum query compute units configuration.
- Reducing MaxQueryTCU may take up to 24 hours to become effective.
- Once transitioned to TCUs, you cannot revert to bytes scanned pricing.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the updated account settings. |
| RETURNS | DESCRIPTION |
|---|---|
UpdateAccountSettingsResponse
|
A response object indicating the result of the account settings update. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error updating the account settings. |
Warnings
Changes to MaxQueryTCU may have a delayed implementation of up to 24 hours.
Source code in async_boto/clients/timestream_query.py
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 | |
update_scheduled_query
async
update_scheduled_query(request)
Update a scheduled query.
| PARAMETER | DESCRIPTION |
|---|---|
request
|
The request object containing the details for updating the scheduled query. |
| RETURNS | DESCRIPTION |
|---|---|
UpdateScheduledQueryResponse
|
A response object indicating the result of the scheduled query update. |
| RAISES | DESCRIPTION |
|---|---|
Exception
|
If there is an error updating the scheduled query. |
Source code in async_boto/clients/timestream_query.py
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | |
paginate
async
paginate(method_name, request)
Source code in async_boto/core/base_client.py
255 256 257 258 259 260 261 262 263 | |