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

import builtins as _builtins
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from . import _utilities
from . import outputs

__all__ = [
    'GetOnlineStoresResult',
    'AwaitableGetOnlineStoresResult',
    'get_online_stores',
    'get_online_stores_output',
]

@pulumi.output_type
class GetOnlineStoresResult:
    """
    A collection of values returned by getOnlineStores.
    """
    def __init__(__self__, id=None, online_stores=None):
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if online_stores and not isinstance(online_stores, list):
            raise TypeError("Expected argument 'online_stores' to be a list")
        pulumi.set(__self__, "online_stores", online_stores)

    @_builtins.property
    @pulumi.getter
    def id(self) -> _builtins.str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")

    @_builtins.property
    @pulumi.getter(name="onlineStores")
    def online_stores(self) -> Sequence['outputs.GetOnlineStoresOnlineStoreResult']:
        return pulumi.get(self, "online_stores")


class AwaitableGetOnlineStoresResult(GetOnlineStoresResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetOnlineStoresResult(
            id=self.id,
            online_stores=self.online_stores)


def get_online_stores(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOnlineStoresResult:
    """
    Use this data source to access information about an existing resource.
    """
    __args__ = dict()
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('databricks:index/getOnlineStores:getOnlineStores', __args__, opts=opts, typ=GetOnlineStoresResult).value

    return AwaitableGetOnlineStoresResult(
        id=pulumi.get(__ret__, 'id'),
        online_stores=pulumi.get(__ret__, 'online_stores'))
def get_online_stores_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOnlineStoresResult]:
    """
    Use this data source to access information about an existing resource.
    """
    __args__ = dict()
    opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke_output('databricks:index/getOnlineStores:getOnlineStores', __args__, opts=opts, typ=GetOnlineStoresResult)
    return __ret__.apply(lambda __response__: GetOnlineStoresResult(
        id=pulumi.get(__response__, 'id'),
        online_stores=pulumi.get(__response__, 'online_stores')))
