async def iter_list_workload_deployment_patterns(
self,
workload_name: "capo_launch_wizard.types.workload_name.WorkloadName",
*,
config_overrides: Optional[AsyncLaunchWizardClientConfig] = None,
max_results: Optional[
"capo_launch_wizard.types.max_workload_deployment_pattern_results.MaxWorkloadDeploymentPatternResults"
] = None,
next_token: Optional["capo_launch_wizard.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_launch_wizard.types.workload_deployment_pattern_data_summary.WorkloadDeploymentPatternDataSummary]":
_token = next_token
while True:
_response = await self.list_workload_deployment_patterns(
workload_name,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("workload_deployment_patterns",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break