async def iter_list_resource_profile_artifacts(
self,
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = None,
next_token: Optional["capo_macie2.types.__string.__string"] = None,
resource_arn: Optional["capo_macie2.types.__string.__string"] = None,
) -> "AsyncIterator[capo_macie2.types.resource_profile_artifact.ResourceProfileArtifact]":
_token = next_token
while True:
_response = await self.list_resource_profile_artifacts(
config_overrides=config_overrides,
next_token=_token,
resource_arn=resource_arn,
)
_page = _resolve_path(_response, ("artifacts",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break