Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb0a2cf

Browse files
troyswansonrubenfonseca
authored andcommittedDec 19, 2023
Add overload signatures for get_parameters function
1 parent 268e12d commit bb0a2cf

File tree

1 file changed

+42
-0
lines changed
  • aws_lambda_powertools/utilities/parameters

1 file changed

+42
-0
lines changed
 

‎aws_lambda_powertools/utilities/parameters/ssm.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,48 @@ def get_parameter(
661661
)
662662

663663

664+
@overload
665+
def get_parameters(
666+
path: str,
667+
transform: None = None,
668+
recursive: bool = True,
669+
decrypt: Optional[bool] = None,
670+
force_fetch: bool = False,
671+
max_age: Optional[int] = None,
672+
raise_on_transform_error: bool = False,
673+
**sdk_options,
674+
) -> Dict[str, str]:
675+
...
676+
677+
678+
@overload
679+
def get_parameters(
680+
path: str,
681+
transform: Literal["json"],
682+
recursive: bool = True,
683+
decrypt: Optional[bool] = None,
684+
force_fetch: bool = False,
685+
max_age: Optional[int] = None,
686+
raise_on_transform_error: bool = False,
687+
**sdk_options,
688+
) -> Dict[str, dict]:
689+
...
690+
691+
692+
@overload
693+
def get_parameters(
694+
path: str,
695+
transform: Literal["binary"],
696+
recursive: bool = True,
697+
decrypt: Optional[bool] = None,
698+
force_fetch: bool = False,
699+
max_age: Optional[int] = None,
700+
raise_on_transform_error: bool = False,
701+
**sdk_options,
702+
) -> Dict[str, bytes]:
703+
...
704+
705+
664706
def get_parameters(
665707
path: str,
666708
transform: Optional[str] = None,

0 commit comments

Comments
 (0)
Please sign in to comment.