-
Notifications
You must be signed in to change notification settings - Fork 421
Docs: Incorrect example for SSMProvider.get_multiple #2749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @bram-tv! Thanks so much for raising this issue! We strive to keep our documentation and docstring as up-to-date as possible, but sometimes we miss something, like this case. This case is the docstring of the method and we can update it to make it clearer for our customers. Do you think it's worth putting something like: "considering the path /my/path/prefix/ which has the parameters a, b and c...?" This way it makes the example more explicit for the user that we remove the path. Do you have bandwidth to send a PR to fix this? Thanks! |
@leandrodamascena taking this one FYI |
Apologies for the delay @bram-tv but we've got a PR now. Besides API docs, I've also improved the User Guide docs with more details and examples too (including comments in the code snippet provided). Can't thank you enough for taking the time in helping us improve the docs. ![]() ![]() |
Now in stage (prod after our release this week): https://docs.powertools.aws.dev/lambda/python/stage/api/utilities/parameters/index.html#aws_lambda_powertools.utilities.parameters.get_parameters User-guide docs: https://docs.powertools.aws.dev/lambda/python/stage/utilities/parameters/#fetching-parameters |
|
This is now released under 2.22.0 version! |
What were you searching in the docs?
Documentation for the
get_multiple
call of the SSMProvider.Is this related to an existing documentation section?
https://docs.powertools.aws.dev/lambda/python/latest/api/utilities/parameters/ssm.html
How can we improve?
The examples listed under:
do not appear to be correct.
Taking the first example:
This shows that
/my/path/prefix/
is part of thekey
name but that is not (or no longer the case).Looking at the code:
powertools-lambda-python/aws_lambda_powertools/utilities/parameters/ssm.py
Line 215 in 2c44207
It always removes the
path
from thename
.Got a suggestion in mind?
Updates the example to:
Acknowledgment
The text was updated successfully, but these errors were encountered: