def iter_get_aggregate_compliance_details_by_config_rule(
self,
configuration_aggregator_name: "capo_config_service.types.configuration_aggregator_name.ConfigurationAggregatorName",
config_rule_name: "capo_config_service.types.config_rule_name.ConfigRuleName",
account_id: "capo_config_service.types.account_id.AccountId",
aws_region: "capo_config_service.types.aws_region.AwsRegion",
*,
config_overrides: Optional[ConfigServiceClientConfig] = None,
compliance_type: Optional[
"capo_config_service.types.compliance_type.ComplianceType"
] = None,
limit: Optional["capo_config_service.types.limit.Limit"] = None,
next_token: Optional["capo_config_service.types.next_token.NextToken"] = None,
) -> "Iterator[capo_config_service.types.aggregate_evaluation_result.AggregateEvaluationResult]":
_token = next_token
while True:
_response = self.get_aggregate_compliance_details_by_config_rule(
configuration_aggregator_name,
config_rule_name,
account_id,
aws_region,
config_overrides=config_overrides,
compliance_type=compliance_type,
limit=limit,
next_token=_token,
)
_page = _resolve_path(_response, ("aggregate_evaluation_results",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break