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
18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 | |