async def iter_validate_cloud_connector(
self,
cloud_connector_id: "capo_ssm.types.cloud_connector_id.CloudConnectorId",
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
max_results: Optional[
"capo_ssm.types.validate_cloud_connector_max_results.ValidateCloudConnectorMaxResults"
] = None,
next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_ssm.types.validation_finding.ValidationFinding]":
_token = next_token
while True:
_response = await self.validate_cloud_connector(
cloud_connector_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("validation_findings",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break