Skip to content

Commit f9043f4

Browse files
Addressing Heitor's feedback
1 parent 6c23710 commit f9043f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aws_lambda_powertools/utilities/parameters/appconfig.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def __init__(
9999
self.current_version = ""
100100

101101
self._next_token: Dict[str, str] = {} # nosec - token for get_latest_configuration executions
102+
# Dict to store the recently retrieved value for a specific configuration.
102103
self.last_returned_value: Dict[str, str] = {}
103104

104105
def _get(self, name: str, **sdk_options) -> str:
@@ -127,7 +128,8 @@ def _get(self, name: str, **sdk_options) -> str:
127128
self._next_token[name] = response["NextPollConfigurationToken"]
128129

129130
# The return of get_latest_configuration can be null because this value is supposed to be cached
130-
# on the customer side. We created a dict with the last returned value for the specific configuration
131+
# on the customer side.
132+
# We created dict that stores the most recently retrieved value for a specific configuration.
131133
# See https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/appconfigdata/client/get_latest_configuration.html
132134
if return_value:
133135
self.last_returned_value[name] = return_value

0 commit comments

Comments
 (0)