Skip to content

iter_list_replication_findings

iter_list_replication_findings(
    instance_id: InstanceIdOrArn,
    resource_type: ReplicationFindingResourceType,
    *,
    config_overrides: Optional[ConnectClientConfig] = None,
    max_results: Optional[MaxResult100] = None,
    next_token: Optional[LargeNextToken] = None,
) -> Iterator[ReplicationFinding]
Source code in docs_src/capo_connect/_services/connect.py
def iter_list_replication_findings(
    self,
    instance_id: "capo_connect.types.instance_id_or_arn.InstanceIdOrArn",
    resource_type: "capo_connect.types.replication_finding_resource_type.ReplicationFindingResourceType",
    *,
    config_overrides: Optional[ConnectClientConfig] = None,
    max_results: Optional["capo_connect.types.max_result100.MaxResult100"] = None,
    next_token: Optional[
        "capo_connect.types.large_next_token.LargeNextToken"
    ] = None,
) -> "Iterator[capo_connect.types.replication_finding.ReplicationFinding]":
    _token = next_token
    while True:
        _response = self.list_replication_findings(
            instance_id,
            resource_type,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("replication_findings_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break