# 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__ = [
    'StartswithResult',
    'AwaitableStartswithResult',
    'startswith',
    'startswith_output',
]

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

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


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


def startswith(input: Optional[str] = None,
               prefix: Optional[str] = None,
               opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableStartswithResult:
    """
    Determines if the input string starts with the suffix.
    """
    __args__ = dict()
    __args__['input'] = input
    __args__['prefix'] = prefix
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('std:index:startswith', __args__, opts=opts, typ=StartswithResult).value

    return AwaitableStartswithResult(
        result=__ret__.result)


@_utilities.lift_output_func(startswith)
def startswith_output(input: Optional[pulumi.Input[str]] = None,
                      prefix: Optional[pulumi.Input[str]] = None,
                      opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[StartswithResult]:
    """
    Determines if the input string starts with the suffix.
    """
    ...
