# coding=utf-8
# *** WARNING: this file was generated by test. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = [
    'FuncWithDictParamResult',
    'AwaitableFuncWithDictParamResult',
    'func_with_dict_param',
    'func_with_dict_param_output',
]

@pulumi.output_type
class FuncWithDictParamResult:
    def __init__(__self__, r=None):
        if r and not isinstance(r, str):
            raise TypeError("Expected argument 'r' to be a str")
        pulumi.set(__self__, "r", r)

    @property
    @pulumi.getter
    def r(self) -> str:
        return pulumi.get(self, "r")


class AwaitableFuncWithDictParamResult(FuncWithDictParamResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return FuncWithDictParamResult(
            r=self.r)


def func_with_dict_param(a: Optional[Mapping[str, str]] = None,
                         b: Optional[str] = None,
                         opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableFuncWithDictParamResult:
    """
    Check codegen of functions with a Dict<str,str> parameter.
    """
    __args__ = dict()
    __args__['a'] = a
    __args__['b'] = b
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('mypkg::funcWithDictParam', __args__, opts=opts, typ=FuncWithDictParamResult).value

    return AwaitableFuncWithDictParamResult(
        r=__ret__.r)


@_utilities.lift_output_func(func_with_dict_param)
def func_with_dict_param_output(a: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
                                b: Optional[pulumi.Input[Optional[str]]] = None,
                                opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[FuncWithDictParamResult]:
    """
    Check codegen of functions with a Dict<str,str> parameter.
    """
    ...
