Skip to content

iter_describe_addresses_attribute

iter_describe_addresses_attribute(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    allocation_ids: Optional[AllocationIds] = None,
    attribute: Optional[AddressAttributeName] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[AddressMaxResults] = None,
    dry_run: Optional[Boolean] = None,
) -> Iterator[AddressAttribute]
Source code in docs_src/capo_ec2/_services/ec2.py
def iter_describe_addresses_attribute(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    allocation_ids: Optional["capo_ec2.types.allocation_ids.AllocationIds"] = None,
    attribute: Optional[
        "capo_ec2.types.address_attribute_name.AddressAttributeName"
    ] = None,
    next_token: Optional["capo_ec2.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_ec2.types.address_max_results.AddressMaxResults"
    ] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "Iterator[capo_ec2.types.address_attribute.AddressAttribute]":
    _token = next_token
    while True:
        _response = self.describe_addresses_attribute(
            config_overrides=config_overrides,
            allocation_ids=allocation_ids,
            attribute=attribute,
            next_token=_token,
            max_results=max_results,
            dry_run=dry_run,
        )
        _page = _resolve_path(_response, ("addresses",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break