get_table_objects
async
¶
get_table_objects(
database_name: NameString,
table_name: NameString,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
transaction_id: Optional[TransactionIdString] = None,
query_as_of_time: Optional[Timestamp] = None,
partition_predicate: Optional[PredicateString] = None,
max_results: Optional[PageSize] = None,
next_token: Optional[TokenString] = None,
) -> GetTableObjectsResponse
Returns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The catalog containing the governed table. Defaults to the caller’s account.
-
database_name(NameString) –The database containing the governed table.
-
table_name(NameString) –The governed table for which to retrieve objects.
-
transaction_id(Optional[TransactionIdString], default:None) –The transaction ID at which to read the governed table contents. If this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with
QueryAsOfTime. -
query_as_of_time(Optional[Timestamp], default:None) –The time as of when to read the governed table contents. If not set, the most recent transaction commit time is used. Cannot be specified along with
TransactionId. -
partition_predicate(Optional[PredicateString], default:None) –A predicate to filter the objects returned based on the partition keys defined in the governed table.
-
The comparison operators supported are: =, >, <, >=, <=
-
The logical operators supported are: AND
-
The data types supported are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss"), string and decimal.
-
-
max_results(Optional[PageSize], default:None) –Specifies how many values to return in a page.
-
next_token(Optional[TokenString], default:None) –A continuation token if this is not the first call to retrieve these objects.
Raises:
-
EntityNotFoundException–A specified entity does not exist.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNotReadyException–Contains details about an error related to a resource which is not ready for a transaction.
-
TransactionCanceledException–Contains details about an error related to a transaction that was cancelled.
-
TransactionCommittedException–Contains details about an error where the specified transaction has already been committed and cannot be used for
UpdateTableObjects. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 | |