def iter_list_resources_in_protection_group(
self,
protection_group_id: "capo_shield.types.protection_group_id.ProtectionGroupId",
*,
config_overrides: Optional[ShieldClientConfig] = None,
next_token: Optional["capo_shield.types.token.Token"] = None,
max_results: Optional["capo_shield.types.max_results.MaxResults"] = None,
) -> "Iterator[capo_shield.types.list_resources_in_protection_group_response.ListResourcesInProtectionGroupResponse]":
_token = next_token
while True:
_response = self.list_resources_in_protection_group(
protection_group_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break