def iter_list_key_policies(
self,
key_id: "capo_kms.types.key_id_type.KeyIdType",
*,
config_overrides: Optional[KMSClientConfig] = None,
limit: Optional["capo_kms.types.limit_type.LimitType"] = None,
marker: Optional["capo_kms.types.marker_type.MarkerType"] = None,
) -> "Iterator[capo_kms.types.policy_name_type.PolicyNameType]":
_token = marker
while True:
_response = self.list_key_policies(
key_id,
config_overrides=config_overrides,
limit=limit,
marker=_token,
)
_page = _resolve_path(_response, ("policy_names",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_marker",))
if not _token:
break