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

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

__all__ = [
    'PowResult',
    'AwaitablePowResult',
    'pow',
    'pow_output',
]

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

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


class AwaitablePowResult(PowResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return PowResult(
            result=self.result)


def pow(base: Optional[float] = None,
        exponent: Optional[float] = None,
        opts: Optional[pulumi.InvokeOptions] = None) -> AwaitablePowResult:
    """
    Returns the base input raised to the power of the exponent.
    """
    __args__ = dict()
    __args__['base'] = base
    __args__['exponent'] = exponent
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('std:index:pow', __args__, opts=opts, typ=PowResult).value

    return AwaitablePowResult(
        result=__ret__.result)


@_utilities.lift_output_func(pow)
def pow_output(base: Optional[pulumi.Input[float]] = None,
               exponent: Optional[pulumi.Input[float]] = None,
               opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[PowResult]:
    """
    Returns the base input raised to the power of the exponent.
    """
    ...
