powertools-lambda-python icon indicating copy to clipboard operation
powertools-lambda-python copied to clipboard

Bug: docs say recursive defaults to True for get_multiple, but SSMProvider uses False

Open leandrodamascena opened this issue 1 month ago • 4 comments

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!

leandrodamascena avatar Oct 18 '26 11:10 leandrodamascena

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.

SuellenQwQ avatar Oct 18 '26 13:10 SuellenQwQ

Hey @SuellenQwQ pls go ahead.

leandrodamascena avatar Oct 18 '26 16:10 leandrodamascena

[!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!

github-actions[bot] avatar Nov 03 '26 13:11 github-actions[bot]