search_tables
async
¶
search_tables(
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
next_token: Optional[Token] = None,
filters: Optional[SearchPropertyPredicates] = None,
search_text: Optional[ValueString] = None,
sort_criteria: Optional[SortCriteria] = None,
max_results: Optional[PageSize] = None,
resource_share_type: Optional[ResourceShareType] = None,
include_status_details: Optional[BooleanNullable] = None,
) -> SearchTablesResponse
Searches a set of tables based on properties in the table metadata as well as on the parent database. You can search against text or filter conditions.
You can only get tables that you have access to based on the security policies defined in Lake Formation. You need at least a read-only access to the table for it to be returned. If you do not have access to all the columns in the table, these columns will not be searched against when returning the list of tables back to you. If you have access to the columns but not the data in the columns, those columns and the associated metadata for those columns will be included in the search.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –A unique identifier, consisting of
account_id. -
next_token(Optional[Token], default:None) –A continuation token, included if this is a continuation call.
-
filters(Optional[SearchPropertyPredicates], default:None) –A list of key-value pairs, and a comparator used to filter the search results. Returns all entities matching the predicate.
The
Comparatormember of thePropertyPredicatestruct is used only for time fields, and can be omitted for other field types. Also, when comparing string values, such as whenKey=Name, a fuzzy match algorithm is used. TheKeyfield (for example, the value of theNamefield) is split on certain punctuation characters, for example, -, :, #, etc. into tokens. Then each token is exact-match compared with theValuemember ofPropertyPredicate. For example, ifKey=NameandValue=link, tables namedcustomer-linkandxx-link-yyare returned, butxxlinkyyis not returned. -
search_text(Optional[ValueString], default:None) –A string used for a text search.
Specifying a value in quotes filters based on an exact match to the value.
-
sort_criteria(Optional[SortCriteria], default:None) –A list of criteria for sorting the results by a field name, in an ascending or descending order.
-
max_results(Optional[PageSize], default:None) –The maximum number of tables to return in a single response.
-
resource_share_type(Optional[ResourceShareType], default:None) –Allows you to specify that you want to search the tables shared with your account. The allowable values are
FOREIGNorALL.-
If set to
FOREIGN, will search the tables shared with your account. -
If set to
ALL, will search the tables shared with your account, as well as the tables in yor local account.
-
-
include_status_details(Optional[BooleanNullable], default:None) –Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
Raises:
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 | |