Skip to content

Commit 4277a53

Browse files
ran-isenbergRan Isenberg
and
Ran Isenberg
authored
fix(parameters): appconfig internal _get docstrings (aws-powertools#934)
Co-authored-by: Ran Isenberg <[email protected]>
1 parent 3e4e1ab commit 4277a53

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

aws_lambda_powertools/utilities/parameters/appconfig.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,8 @@ def _get(self, name: str, **sdk_options) -> str:
9292
----------
9393
name: str
9494
Name of the configuration
95-
environment: str
96-
Environment of the configuration
9795
sdk_options: dict, optional
98-
Dictionary of options that will be passed to the Parameter Store get_parameter API call
96+
Dictionary of options that will be passed to the client's get_configuration API call
9997
"""
10098

10199
sdk_options["Configuration"] = name
@@ -140,7 +138,7 @@ def get_app_config(
140138
max_age: int
141139
Maximum age of the cached value
142140
sdk_options: dict, optional
143-
Dictionary of options that will be passed to the Parameter Store get_parameter API call
141+
Dictionary of options that will be passed to the boto client get_configuration API call
144142
145143
Raises
146144
------
@@ -163,7 +161,7 @@ def get_app_config(
163161
164162
**Retrieves a configuration value and decodes it using a JSON decoder**
165163
166-
>>> from aws_lambda_powertools.utilities.parameters import get_parameter
164+
>>> from aws_lambda_powertools.utilities.parameters import get_app_config
167165
>>>
168166
>>> value = get_app_config("my_config", environment="my_env", application="my_env", transform='json')
169167
>>>

0 commit comments

Comments
 (0)