async def iter_get_anomaly_subscriptions(
self,
*,
config_overrides: Optional[AsyncCostExplorerClientConfig] = None,
subscription_arn_list: Optional[
"capo_cost_explorer.types.values.Values"
] = None,
monitor_arn: Optional[
"capo_cost_explorer.types.generic_string.GenericString"
] = None,
next_page_token: Optional[
"capo_cost_explorer.types.next_page_token.NextPageToken"
] = None,
max_results: Optional["capo_cost_explorer.types.page_size.PageSize"] = None,
) -> "AsyncIterator[capo_cost_explorer.types.anomaly_subscription.AnomalySubscription]":
_token = next_page_token
while True:
_response = await self.get_anomaly_subscriptions(
config_overrides=config_overrides,
subscription_arn_list=subscription_arn_list,
monitor_arn=monitor_arn,
next_page_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("anomaly_subscriptions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_page_token",))
if not _token:
break