Skip to content

iter_describe_table_restore_status async

iter_describe_table_restore_status(
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    cluster_identifier: Optional[String] = None,
    table_restore_request_id: Optional[String] = None,
    max_records: Optional[IntegerOptional] = None,
    marker: Optional[String] = None,
) -> AsyncIterator[TableRestoreStatus]
Source code in docs_src/capo_redshift/_services/async_redshift.py
async def iter_describe_table_restore_status(
    self,
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    cluster_identifier: Optional["capo_redshift.types.string.String"] = None,
    table_restore_request_id: Optional["capo_redshift.types.string.String"] = None,
    max_records: Optional[
        "capo_redshift.types.integer_optional.IntegerOptional"
    ] = None,
    marker: Optional["capo_redshift.types.string.String"] = None,
) -> "AsyncIterator[capo_redshift.types.table_restore_status.TableRestoreStatus]":
    _token = marker
    while True:
        _response = await self.describe_table_restore_status(
            config_overrides=config_overrides,
            cluster_identifier=cluster_identifier,
            table_restore_request_id=table_restore_request_id,
            max_records=max_records,
            marker=_token,
        )
        _page = _resolve_path(_response, ("table_restore_status_details",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token:
            break