Skip to content

iter_describe_db_proxy_target_groups async

iter_describe_db_proxy_target_groups(
    *,
    config_overrides: Optional[AsyncRDSClientConfig] = None,
    db_proxy_name: Optional[DBProxyName] = None,
    target_group_name: Optional[DBProxyTargetGroupName] = None,
    filters: Optional[FilterList] = None,
    marker: Optional[String] = None,
    max_records: Optional[MaxRecords] = None,
) -> AsyncIterator[DBProxyTargetGroup]
Source code in docs_src/capo_rds/_services/async_rds.py
async def iter_describe_db_proxy_target_groups(
    self,
    *,
    config_overrides: Optional[AsyncRDSClientConfig] = None,
    db_proxy_name: Optional["capo_rds.types.db_proxy_name.DBProxyName"] = None,
    target_group_name: Optional[
        "capo_rds.types.db_proxy_target_group_name.DBProxyTargetGroupName"
    ] = None,
    filters: Optional["capo_rds.types.filter_list.FilterList"] = None,
    marker: Optional["capo_rds.types.string.String"] = None,
    max_records: Optional["capo_rds.types.max_records.MaxRecords"] = None,
) -> "AsyncIterator[capo_rds.types.db_proxy_target_group.DBProxyTargetGroup]":
    _token = marker
    while True:
        _response = await self.describe_db_proxy_target_groups(
            config_overrides=config_overrides,
            db_proxy_name=db_proxy_name,
            target_group_name=target_group_name,
            filters=filters,
            marker=_token,
            max_records=max_records,
        )
        _page = _resolve_path(_response, ("target_groups",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token:
            break