async def iter_list_association_versions(
self,
association_id: "capo_ssm.types.association_id.AssociationId",
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
max_results: Optional["capo_ssm.types.max_results.MaxResults"] = None,
next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
) -> (
"AsyncIterator[capo_ssm.types.association_version_info.AssociationVersionInfo]"
):
_token = next_token
while True:
_response = await self.list_association_versions(
association_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("association_versions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break