def iter_get_table_objects(
self,
database_name: "capo_lakeformation.types.name_string.NameString",
table_name: "capo_lakeformation.types.name_string.NameString",
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
catalog_id: Optional[
"capo_lakeformation.types.catalog_id_string.CatalogIdString"
] = None,
transaction_id: Optional[
"capo_lakeformation.types.transaction_id_string.TransactionIdString"
] = None,
query_as_of_time: Optional[
"capo_lakeformation.types.timestamp.Timestamp"
] = None,
partition_predicate: Optional[
"capo_lakeformation.types.predicate_string.PredicateString"
] = None,
max_results: Optional["capo_lakeformation.types.page_size.PageSize"] = None,
next_token: Optional[
"capo_lakeformation.types.token_string.TokenString"
] = None,
) -> "Iterator[capo_lakeformation.types.get_table_objects_response.GetTableObjectsResponse]":
_token = next_token
while True:
_response = self.get_table_objects(
database_name,
table_name,
config_overrides=config_overrides,
catalog_id=catalog_id,
transaction_id=transaction_id,
query_as_of_time=query_as_of_time,
partition_predicate=partition_predicate,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break