def iter_list_audit_suppressions(
self,
*,
config_overrides: Optional[IoTClientConfig] = None,
check_name: Optional["capo_iot.types.audit_check_name.AuditCheckName"] = None,
resource_identifier: Optional[
"capo_iot.types.resource_identifier.ResourceIdentifier"
] = None,
ascending_order: Optional[
"capo_iot.types.ascending_order.AscendingOrder"
] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
max_results: Optional["capo_iot.types.max_results.MaxResults"] = None,
) -> "Iterator[capo_iot.types.audit_suppression.AuditSuppression]":
_token = next_token
while True:
_response = self.list_audit_suppressions(
config_overrides=config_overrides,
check_name=check_name,
resource_identifier=resource_identifier,
ascending_order=ascending_order,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("suppressions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break