def METHOD_NAME(environment_name: Optional[str] = None,
                                                                     function_app_name: Optional[str] = None,
                                                                     name: Optional[str] = None,
                                                                     resource_group_name: Optional[str] = None,
                                                                     opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStaticSiteUserProvidedFunctionAppForStaticSiteBuildResult:
    """
    Description for Gets the details of the user provided function app registered with a static site build
    Azure REST API version: 2022-09-01.
    :param str environment_name: The stage site identifier.
    :param str function_app_name: Name of the function app registered with the static site build.
    :param str name: Name of the static site.
    :param str resource_group_name: Name of the resource group to which the resource belongs.
    """
    __args__ = dict()
    __args__['environmentName'] = environment_name
    __args__['functionAppName'] = function_app_name
    __args__['name'] = name
    __args__['resourceGroupName'] = resource_group_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:web:getStaticSiteUserProvidedFunctionAppForStaticSiteBuild', __args__, opts=opts, typ=GetStaticSiteUserProvidedFunctionAppForStaticSiteBuildResult).value
    return AwaitableGetStaticSiteUserProvidedFunctionAppForStaticSiteBuildResult(
        created_on=pulumi.get(__ret__, 'created_on'),
        function_app_region=pulumi.get(__ret__, 'function_app_region'),
        function_app_resource_id=pulumi.get(__ret__, 'function_app_resource_id'),
        id=pulumi.get(__ret__, 'id'),
        kind=pulumi.get(__ret__, 'kind'),
        name=pulumi.get(__ret__, 'name'),
        type=pulumi.get(__ret__, 'type'))