aws_ddk_core.config.JSONConfigStrategy¶
- class aws_ddk_core.config.JSONConfigStrategy(path: str = './ddk.json')¶
Read config from ddk.json in the root of the repo.
Can be used to read from any JSON file by specifying a different path.
- __init__(path: str = './ddk.json') None ¶
Load the JSON file in the given path.
- Parameters
path (str) – Path to the JSON config, ‘./ddk.json’ by default
Methods
__init__
([path])Load the JSON file in the given path.
get_config
(key)Get config by key.
- get_config(key: str) Any ¶
Get config by key.
- Parameters
key (str) – Key
- Returns
config – Dictionary that contains the configuration
- Return type
Any