Skip to content

iter_list_service_network_resource_associations

iter_list_service_network_resource_associations(
    *,
    config_overrides: Optional[VPCLatticeClientConfig] = None,
    service_network_identifier: Optional[ServiceNetworkIdentifier] = None,
    resource_configuration_identifier: Optional[ResourceConfigurationIdentifier] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    include_children: Optional[bool] = None,
) -> Iterator[ServiceNetworkResourceAssociationSummary]
Source code in docs_src/capo_vpc_lattice/_services/vpc_lattice.py
def iter_list_service_network_resource_associations(
    self,
    *,
    config_overrides: Optional[VPCLatticeClientConfig] = None,
    service_network_identifier: Optional[
        "capo_vpc_lattice.types.service_network_identifier.ServiceNetworkIdentifier"
    ] = None,
    resource_configuration_identifier: Optional[
        "capo_vpc_lattice.types.resource_configuration_identifier.ResourceConfigurationIdentifier"
    ] = None,
    max_results: Optional["capo_vpc_lattice.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_vpc_lattice.types.next_token.NextToken"] = None,
    include_children: Optional[bool] = None,
) -> "Iterator[capo_vpc_lattice.types.service_network_resource_association_summary.ServiceNetworkResourceAssociationSummary]":
    _token = next_token
    while True:
        _response = self.list_service_network_resource_associations(
            config_overrides=config_overrides,
            service_network_identifier=service_network_identifier,
            resource_configuration_identifier=resource_configuration_identifier,
            max_results=max_results,
            next_token=_token,
            include_children=include_children,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break