def iter_list_log_pattern_sets(
self,
resource_group_name: "capo_application_insights.types.resource_group_name.ResourceGroupName",
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = None,
max_results: Optional[
"capo_application_insights.types.max_entities.MaxEntities"
] = None,
next_token: Optional[
"capo_application_insights.types.pagination_token.PaginationToken"
] = None,
account_id: Optional[
"capo_application_insights.types.account_id.AccountId"
] = None,
) -> "Iterator[capo_application_insights.types.list_log_pattern_sets_response.ListLogPatternSetsResponse]":
_token = next_token
while True:
_response = self.list_log_pattern_sets(
resource_group_name,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
account_id=account_id,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break