def iter_list_rule_executions(
self,
pipeline_name: "capo_codepipeline.types.pipeline_name.PipelineName",
*,
config_overrides: Optional[CodePipelineClientConfig] = None,
filter: Optional[
"capo_codepipeline.types.rule_execution_filter.RuleExecutionFilter"
] = None,
max_results: Optional["capo_codepipeline.types.max_results.MaxResults"] = None,
next_token: Optional["capo_codepipeline.types.next_token.NextToken"] = None,
) -> "Iterator[capo_codepipeline.types.rule_execution_detail.RuleExecutionDetail]":
_token = next_token
while True:
_response = self.list_rule_executions(
pipeline_name,
config_overrides=config_overrides,
filter=filter,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("rule_execution_details",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break