async def iter_get_estimated_water_allocation(
self,
time_period: "capo_sustainability.types.time_period.TimePeriod",
*,
config_overrides: Optional[AsyncSustainabilityClientConfig] = None,
group_by: Optional[
"capo_sustainability.types.dimension_list.DimensionList"
] = None,
filter_by: Optional[
"capo_sustainability.types.filter_expression.FilterExpression"
] = None,
allocation_types: Optional[
"capo_sustainability.types.water_allocation_type_list.WaterAllocationTypeList"
] = None,
granularity: Optional[
"capo_sustainability.types.time_granularity.TimeGranularity"
] = None,
max_results: Optional[
"capo_sustainability.types.max_results.MaxResults"
] = None,
next_token: Optional["capo_sustainability.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_sustainability.types.estimated_water_allocation.EstimatedWaterAllocation]":
_token = next_token
while True:
_response = await self.get_estimated_water_allocation(
time_period,
config_overrides=config_overrides,
group_by=group_by,
filter_by=filter_by,
allocation_types=allocation_types,
granularity=granularity,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("results",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break