def iter_describe_ipam_pool_allocations(
self,
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
ipam_pool_allocation_ids: Optional[
"capo_ec2.types.value_string_list.ValueStringList"
] = None,
filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
max_results: Optional[
"capo_ec2.types.describe_ipam_pool_allocations_max_results.DescribeIpamPoolAllocationsMaxResults"
] = None,
next_token: Optional["capo_ec2.types.next_token.NextToken"] = None,
) -> "Iterator[capo_ec2.types.ipam_pool_allocation.IpamPoolAllocation]":
_token = next_token
while True:
_response = self.describe_ipam_pool_allocations(
config_overrides=config_overrides,
dry_run=dry_run,
ipam_pool_allocation_ids=ipam_pool_allocation_ids,
filters=filters,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("ipam_pool_allocations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break