Bug: docs say recursive defaults to True for get_multiple, but SSMProvider uses False
Expected Behaviour
The docs table and the code agree on the default of recursive.
Current Behaviour
docs/utilities/parameters.md (SSM options table) lists recursive | True | For get_multiple() only. SSMProvider.get_multiple defaults to recursive=False (ssm.py:144) and sends Recursive=False, while the high-level get_parameters() defaults to True (ssm.py:936). So the documented default is wrong for the provider, and the provider and the function disagree.
Code snippet
from aws_lambda_powertools.utilities.parameters import SSMProvider, get_parameters
import inspect
print(inspect.signature(SSMProvider.get_multiple).parameters["recursive"].default) # False
print(inspect.signature(get_parameters).parameters["recursive"].default) # True
Possible Solution
Fix the docs table to say the provider defaults to False and get_parameters() to True. Do not change the provider default, that would be a breaking change.
Steps to Reproduce
Run the snippet above (it uses botocore.stub.Stubber, no AWS access needed).
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.13
Packaging format used
PyPi
Debugging logs
[!WARNING] This issue is ready to be picked up, by humans or by agents. If you want it, comment here first so we can assign it to you, and please take only one or two issues at a time so others can join in too. The reproduction above runs locally without AWS access. Thanks!
Thanks for the detailed write-up - picking this up.
I'll update the SSM options table in docs/utilities/parameters.md so recursive documents the real default per entry point: False for SSMProvider.get_multiple() and True for the module-level get_parameters(). Leaving the provider default as-is to avoid the breaking change you called out.
Hey @SuellenQwQ pls go ahead.
[!warning] This issue is now closed. Please be mindful that future comments are hard for our team to see. If you need more assistance, please either reopen the issue, or open a new issue referencing this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
This is now released under 3.39.0 version!