From c3e08ab8d32491006abb2252d774d607b7efaf7f Mon Sep 17 00:00:00 2001 From: mjsqu Date: Fri, 29 Sep 2023 15:58:31 +1300 Subject: [PATCH] Change describe_parameters to get_parameters_by_path --- pychamber/utils/ssm_parameter_store.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pychamber/utils/ssm_parameter_store.py b/pychamber/utils/ssm_parameter_store.py index e98fe9b..1affe16 100644 --- a/pychamber/utils/ssm_parameter_store.py +++ b/pychamber/utils/ssm_parameter_store.py @@ -60,11 +60,11 @@ def refresh(self): self._keys = {} self._substores = {} - paginator = self._client.get_paginator('describe_parameters') + paginator = self._client.get_paginator('get_parameters_by_path') pager = paginator.paginate( - ParameterFilters=[ - dict(Key="Path", Option="Recursive", Values=[self._prefix]) - ] + Path=self._prefix, + WithDecryption=True, + PaginationConfig={'PageSize': 10}, ) for page in pager: