Skip to content

iter_list_resource_endpoint_associations async

iter_list_resource_endpoint_associations(
    resource_configuration_identifier: ResourceConfigurationIdentifier,
    *,
    config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
    resource_endpoint_association_identifier: Optional[
        ResourceEndpointAssociationIdentifier
    ] = None,
    vpc_endpoint_id: Optional[VpcEndpointId] = None,
    vpc_endpoint_owner: Optional[VpcEndpointOwner] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ResourceEndpointAssociationSummary]
Source code in docs_src/capo_vpc_lattice/_services/async_vpc_lattice.py
async def iter_list_resource_endpoint_associations(
    self,
    resource_configuration_identifier: "capo_vpc_lattice.types.resource_configuration_identifier.ResourceConfigurationIdentifier",
    *,
    config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
    resource_endpoint_association_identifier: Optional[
        "capo_vpc_lattice.types.resource_endpoint_association_identifier.ResourceEndpointAssociationIdentifier"
    ] = None,
    vpc_endpoint_id: Optional[
        "capo_vpc_lattice.types.vpc_endpoint_id.VpcEndpointId"
    ] = None,
    vpc_endpoint_owner: Optional[
        "capo_vpc_lattice.types.vpc_endpoint_owner.VpcEndpointOwner"
    ] = None,
    max_results: Optional["capo_vpc_lattice.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_vpc_lattice.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_vpc_lattice.types.resource_endpoint_association_summary.ResourceEndpointAssociationSummary]":
    _token = next_token
    while True:
        _response = await self.list_resource_endpoint_associations(
            resource_configuration_identifier,
            config_overrides=config_overrides,
            resource_endpoint_association_identifier=resource_endpoint_association_identifier,
            vpc_endpoint_id=vpc_endpoint_id,
            vpc_endpoint_owner=vpc_endpoint_owner,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break