Skip to content

iter_list_blueprints

iter_list_blueprints(
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    blueprint_arn: Optional[BlueprintArn] = None,
    resource_owner: Optional[ResourceOwner] = None,
    blueprint_stage_filter: Optional[BlueprintStageFilter] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    project_filter: Optional[DataAutomationProjectFilter] = None,
) -> Iterator[BlueprintSummary]
Source code in docs_src/capo_bedrock_data_automation/_services/bedrock_data_automation.py
def iter_list_blueprints(
    self,
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    blueprint_arn: Optional[
        "capo_bedrock_data_automation.types.blueprint_arn.BlueprintArn"
    ] = None,
    resource_owner: Optional[
        "capo_bedrock_data_automation.types.resource_owner.ResourceOwner"
    ] = None,
    blueprint_stage_filter: Optional[
        "capo_bedrock_data_automation.types.blueprint_stage_filter.BlueprintStageFilter"
    ] = 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_filter: Optional[
        "capo_bedrock_data_automation.types.data_automation_project_filter.DataAutomationProjectFilter"
    ] = None,
) -> "Iterator[capo_bedrock_data_automation.types.blueprint_summary.BlueprintSummary]":
    _token = next_token
    while True:
        _response = self.list_blueprints(
            config_overrides=config_overrides,
            blueprint_arn=blueprint_arn,
            resource_owner=resource_owner,
            blueprint_stage_filter=blueprint_stage_filter,
            max_results=max_results,
            next_token=_token,
            project_filter=project_filter,
        )
        _page = _resolve_path(_response, ("blueprints",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break