@@ -188,7 +188,7 @@ def _get_multiple(self, path: str, decrypt: bool = False, recursive: bool = Fals
188
188
189
189
190
190
def get_parameter (
191
- name : str , transform : Optional [str ] = None , decrypt : bool = False , ** sdk_options
191
+ name : str , transform : Optional [str ] = None , decrypt : bool = False , force_update : bool = False , ** sdk_options
192
192
) -> Union [str , list , dict , bytes ]:
193
193
"""
194
194
Retrieve a parameter value from AWS Systems Manager (SSM) Parameter Store
@@ -201,6 +201,8 @@ def get_parameter(
201
201
Transforms the content from a JSON object ('json') or base64 binary string ('binary')
202
202
decrypt: bool, optional
203
203
If the parameter values should be decrypted
204
+ force_update: bool, optional
205
+ Force update even before a cached item has expired
204
206
sdk_options: dict, optional
205
207
Dictionary of options that will be passed to the Parameter Store get_parameter API call
206
208
@@ -240,7 +242,7 @@ def get_parameter(
240
242
# Add to `decrypt` sdk_options to we can have an explicit option for this
241
243
sdk_options ["decrypt" ] = decrypt
242
244
243
- return DEFAULT_PROVIDERS ["ssm" ].get (name , transform = transform , ** sdk_options )
245
+ return DEFAULT_PROVIDERS ["ssm" ].get (name , transform = transform , force_update = force_update , ** sdk_options )
244
246
245
247
246
248
def get_parameters (
0 commit comments