def iter_get_compliance_details_by_resource(
self,
*,
config_overrides: Optional[ConfigServiceClientConfig] = None,
resource_type: Optional[
"capo_config_service.types.string_with_char_limit256.StringWithCharLimit256"
] = None,
resource_id: Optional[
"capo_config_service.types.base_resource_id.BaseResourceId"
] = None,
compliance_types: Optional[
"capo_config_service.types.compliance_types.ComplianceTypes"
] = None,
next_token: Optional["capo_config_service.types.string.String"] = None,
resource_evaluation_id: Optional[
"capo_config_service.types.resource_evaluation_id.ResourceEvaluationId"
] = None,
) -> "Iterator[capo_config_service.types.evaluation_result.EvaluationResult]":
_token = next_token
while True:
_response = self.get_compliance_details_by_resource(
config_overrides=config_overrides,
resource_type=resource_type,
resource_id=resource_id,
compliance_types=compliance_types,
next_token=_token,
resource_evaluation_id=resource_evaluation_id,
)
_page = _resolve_path(_response, ("evaluation_results",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break