forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.py
24 lines (19 loc) · 721 Bytes
/
base.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from abc import ABC, abstractmethod
from typing import Any, Dict
class StoreProvider(ABC):
def __init__(self, configuration_name: str, cache_seconds: int):
self.name = configuration_name
self._cache_seconds = cache_seconds
@abstractmethod
def get_json_configuration(self) -> Dict[str, Any]:
"""Get configuration string from any configuration storing application and return the parsed JSON dictionary
Raises
------
ConfigurationError
Any error that can occur during schema fetch or JSON parse
Returns
-------
Dict[str, Any]
parsed JSON dictionary
"""
return NotImplemented # pragma: no cover