Skip to content

iter_list_data_automation_projects async

iter_list_data_automation_projects(
    *,
    config_overrides: Optional[AsyncBedrockDataAutomationClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    project_stage_filter: Optional[DataAutomationProjectStageFilter] = None,
    blueprint_filter: Optional[BlueprintFilter] = None,
    resource_owner: Optional[ResourceOwner] = None,
    library_filter: Optional[DataAutomationLibraryFilter] = None,
) -> AsyncIterator[DataAutomationProjectSummary]
Source code in docs_src/capo_bedrock_data_automation/_services/async_bedrock_data_automation.py
async def iter_list_data_automation_projects(
    self,
    *,
    config_overrides: Optional[AsyncBedrockDataAutomationClientConfig] = None,
    max_results: Optional[
        "capo_bedrock_data_automation.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_bedrock_data_automation.types.next_token.NextToken"
    ] = None,
    project_stage_filter: Optional[
        "capo_bedrock_data_automation.types.data_automation_project_stage_filter.DataAutomationProjectStageFilter"
    ] = None,
    blueprint_filter: Optional[
        "capo_bedrock_data_automation.types.blueprint_filter.BlueprintFilter"
    ] = None,
    resource_owner: Optional[
        "capo_bedrock_data_automation.types.resource_owner.ResourceOwner"
    ] = None,
    library_filter: Optional[
        "capo_bedrock_data_automation.types.data_automation_library_filter.DataAutomationLibraryFilter"
    ] = None,
) -> "AsyncIterator[capo_bedrock_data_automation.types.data_automation_project_summary.DataAutomationProjectSummary]":
    _token = next_token
    while True:
        _response = await self.list_data_automation_projects(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            project_stage_filter=project_stage_filter,
            blueprint_filter=blueprint_filter,
            resource_owner=resource_owner,
            library_filter=library_filter,
        )
        _page = _resolve_path(_response, ("projects",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break