Skip to content

iter_describe_custom_key_stores async

iter_describe_custom_key_stores(
    *,
    config_overrides: Optional[AsyncKMSClientConfig] = None,
    custom_key_store_id: Optional[CustomKeyStoreIdType] = None,
    custom_key_store_name: Optional[CustomKeyStoreNameType] = None,
    limit: Optional[LimitType] = None,
    marker: Optional[MarkerType] = None,
) -> AsyncIterator[CustomKeyStoresListEntry]
Source code in docs_src/capo_kms/_services/async_kms.py
async def iter_describe_custom_key_stores(
    self,
    *,
    config_overrides: Optional[AsyncKMSClientConfig] = None,
    custom_key_store_id: Optional[
        "capo_kms.types.custom_key_store_id_type.CustomKeyStoreIdType"
    ] = None,
    custom_key_store_name: Optional[
        "capo_kms.types.custom_key_store_name_type.CustomKeyStoreNameType"
    ] = None,
    limit: Optional["capo_kms.types.limit_type.LimitType"] = None,
    marker: Optional["capo_kms.types.marker_type.MarkerType"] = None,
) -> "AsyncIterator[capo_kms.types.custom_key_stores_list_entry.CustomKeyStoresListEntry]":
    _token = marker
    while True:
        _response = await self.describe_custom_key_stores(
            config_overrides=config_overrides,
            custom_key_store_id=custom_key_store_id,
            custom_key_store_name=custom_key_store_name,
            limit=limit,
            marker=_token,
        )
        _page = _resolve_path(_response, ("custom_key_stores",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_marker",))
        if not _token:
            break