Skip to content

Commit f5cfcc2

Browse files
committed
chore: add missing 'auto' case
1 parent b2b5ec4 commit f5cfcc2

File tree

1 file changed

+28
-2
lines changed
  • aws_lambda_powertools/utilities/parameters

1 file changed

+28
-2
lines changed

aws_lambda_powertools/utilities/parameters/ssm.py

+28-2
Original file line numberDiff line numberDiff line change
@@ -577,13 +577,25 @@ def get_parameter(
577577
force_fetch: bool = False,
578578
max_age: Optional[int] = None,
579579
**sdk_options,
580+
) -> Union[str, dict, bytes]:
581+
...
582+
583+
584+
@overload
585+
def get_parameter(
586+
name: str,
587+
transform: Literal["auto"],
588+
decrypt: Optional[bool] = None,
589+
force_fetch: bool = False,
590+
max_age: Optional[int] = None,
591+
**sdk_options,
580592
) -> bytes:
581593
...
582594

583595

584596
def get_parameter(
585597
name: str,
586-
transform: Optional[Literal["json", "binary"]] = None,
598+
transform: Optional[Literal["json", "binary", "auto"]] = None,
587599
decrypt: Optional[bool] = None,
588600
force_fetch: bool = False,
589601
max_age: Optional[int] = None,
@@ -703,9 +715,23 @@ def get_parameters(
703715
...
704716

705717

718+
@overload
719+
def get_parameters(
720+
path: str,
721+
transform: Literal["auto"],
722+
recursive: bool = True,
723+
decrypt: Optional[bool] = None,
724+
force_fetch: bool = False,
725+
max_age: Optional[int] = None,
726+
raise_on_transform_error: bool = False,
727+
**sdk_options,
728+
) -> Union[Dict[str, bytes], Dict[str, dict], Dict[str, str]]:
729+
...
730+
731+
706732
def get_parameters(
707733
path: str,
708-
transform: Optional[Literal["json", "binary"]] = None,
734+
transform: Optional[Literal["json", "binary", "auto"]] = None,
709735
recursive: bool = True,
710736
decrypt: Optional[bool] = None,
711737
force_fetch: bool = False,

0 commit comments

Comments
 (0)