get_table_objects
¶
get_table_objects(
database_name: NameString,
table_name: NameString,
*,
config_overrides: Optional[LakeFormationClientConfig] = 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/lake_formation.py
2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 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 | |