2121class MongoDBConfiguration :
2222
2323 uri : AnyStr
24+ database : AnyStr
25+ collection : AnyStr
2426 max_page_size : AnyStr
2527
2628
@@ -67,7 +69,7 @@ def __init__(self, scope: core.Construct, id_: str,
6769 lambda_geocode_property = lambda_ .Function (
6870 self ,
6971 'GeocodeProperty' ,
70- code = lambda_ .AssetCode ('stack/lambda/geocode_property/1.0.1 /python/geocode_property' ),
72+ code = lambda_ .AssetCode ('stack/lambda/geocode_property/1.1.0 /python/geocode_property' ),
7173 timeout = core .Duration .seconds (15 ),
7274 description = '' ,
7375 function_name = 'GeocodeProperty' ,
@@ -83,7 +85,7 @@ def __init__(self, scope: core.Construct, id_: str,
8385 lambda_fetch_properties = lambda_ .Function (
8486 self ,
8587 'FetchProperties' ,
86- code = lambda_ .AssetCode ('stack/lambda/fetch_properties/1.0.1 /python/fetch_properties' ),
88+ code = lambda_ .AssetCode ('stack/lambda/fetch_properties/1.1.0 /python/fetch_properties' ),
8789 timeout = core .Duration .seconds (10 ),
8890 description = '' ,
8991 function_name = 'FetchProperties' ,
@@ -110,7 +112,7 @@ def __init__(self, scope: core.Construct, id_: str,
110112 layer_geocode_property = lambda_ .LayerVersion (
111113 self ,
112114 'GeocodePropertyLibs' ,
113- code = lambda_ .Code .from_asset ('stack/lambda/geocode_property/1.0.1 /' ),
115+ code = lambda_ .Code .from_asset ('stack/lambda/geocode_property/1.1.0 /' ),
114116 description = '' ,
115117 layer_version_name = 'GeocodePropertyLibs' ,
116118 compatible_runtimes = [DEFAULT_LAMBDA_RUNTIME ]
@@ -119,7 +121,7 @@ def __init__(self, scope: core.Construct, id_: str,
119121 layer_fetch_properties = lambda_ .LayerVersion (
120122 self ,
121123 'FetchPropertiesLibs' ,
122- code = lambda_ .Code .from_asset ('stack/lambda/fetch_properties/1.0.1 /' ),
124+ code = lambda_ .Code .from_asset ('stack/lambda/fetch_properties/1.1.0 /' ),
123125 description = '' ,
124126 layer_version_name = 'FetchPropertiesLibs' ,
125127 compatible_runtimes = [DEFAULT_LAMBDA_RUNTIME ]
@@ -181,10 +183,14 @@ def __init__(self, scope: core.Construct, id_: str,
181183 # ENVIRONMENT VARIABLES
182184
183185 lambda_geocode_property .add_environment (key = 'MONGODB_URI' , value = mongodb_config .uri )
186+ lambda_geocode_property .add_environment (key = 'MONGODB_DATABASE' , value = mongodb_config .database )
187+ lambda_geocode_property .add_environment (key = 'MONGODB_COLLECTION' , value = mongodb_config .collection )
184188 lambda_geocode_property .add_environment (
185189 key = 'API_ACCESS_TOKEN_GEOCODING' , value = access_keys_config .geocoding
186190 )
187191 lambda_fetch_properties .add_environment (key = 'MONGODB_URI' , value = mongodb_config .uri )
192+ lambda_fetch_properties .add_environment (key = 'MONGODB_DATABASE' , value = mongodb_config .database )
193+ lambda_fetch_properties .add_environment (key = 'MONGODB_COLLECTION' , value = mongodb_config .collection )
188194 lambda_fetch_properties .add_environment (key = 'MONGODB_MAX_PAGE_SIZE' , value = mongodb_config .max_page_size )
189195
190196 # EXPOSED ENTITIES
0 commit comments