Skip to content

iter_get_ipam_pool_allocations

iter_get_ipam_pool_allocations(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    ipam_pool_id: Optional[IpamPoolId] = None,
    ipam_pool_allocation_id: Optional[IpamPoolAllocationId] = None,
    filters: Optional[FilterList] = None,
    max_results: Optional[GetIpamPoolAllocationsMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[IpamPoolAllocation]
Source code in docs_src/capo_ec2/_services/ec2.py
def iter_get_ipam_pool_allocations(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    ipam_pool_id: Optional["capo_ec2.types.ipam_pool_id.IpamPoolId"] = None,
    ipam_pool_allocation_id: Optional[
        "capo_ec2.types.ipam_pool_allocation_id.IpamPoolAllocationId"
    ] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
    max_results: Optional[
        "capo_ec2.types.get_ipam_pool_allocations_max_results.GetIpamPoolAllocationsMaxResults"
    ] = 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.get_ipam_pool_allocations(
            config_overrides=config_overrides,
            dry_run=dry_run,
            ipam_pool_id=ipam_pool_id,
            ipam_pool_allocation_id=ipam_pool_allocation_id,
            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