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
2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 | |