def METHOD_NAME(
    self,
    path: str,
    with_decryption: bool = True,
    recursive: bool = True
) -> list[ParameterTypeDef]:
    parameters: List[ParameterTypeDef] = []
    next_token = ''
    while True:
        response = self.client.get_parameters_by_path(
            Path=path,
            WithDecryption=with_decryption,
            Recursive=recursive,
            NextToken=next_token
        )
        parameters.extend(response['Parameters'])
        if 'NextToken' in response:
            next_token = response['NextToken']
        else:
            break
    return parameters