# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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
from . import outputs

__all__ = [
    'GetClusterReplicasResult',
    'AwaitableGetClusterReplicasResult',
    'get_cluster_replicas',
    'get_cluster_replicas_output',
]

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

    @property
    @pulumi.getter(name="clusterReplicas")
    def cluster_replicas(self) -> Sequence['outputs.GetClusterReplicasClusterReplicaResult']:
        """
        The cluster replicas in the account
        """
        return pulumi.get(self, "cluster_replicas")

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

    @property
    @pulumi.getter
    def region(self) -> str:
        """
        The region in which the resource is located.
        """
        return pulumi.get(self, "region")


class AwaitableGetClusterReplicasResult(GetClusterReplicasResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetClusterReplicasResult(
            cluster_replicas=self.cluster_replicas,
            id=self.id,
            region=self.region)


def get_cluster_replicas(region: Optional[str] = None,
                         opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClusterReplicasResult:
    """
    ## Example Usage

    ```python
    import pulumi
    import pulumi_materialize as materialize

    all = materialize.get_cluster_replicas()
    ```


    :param str region: The region in which the resource is located.
    """
    __args__ = dict()
    __args__['region'] = region
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('materialize:index/getClusterReplicas:GetClusterReplicas', __args__, opts=opts, typ=GetClusterReplicasResult).value

    return AwaitableGetClusterReplicasResult(
        cluster_replicas=pulumi.get(__ret__, 'cluster_replicas'),
        id=pulumi.get(__ret__, 'id'),
        region=pulumi.get(__ret__, 'region'))


@_utilities.lift_output_func(get_cluster_replicas)
def get_cluster_replicas_output(region: Optional[pulumi.Input[Optional[str]]] = None,
                                opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterReplicasResult]:
    """
    ## Example Usage

    ```python
    import pulumi
    import pulumi_materialize as materialize

    all = materialize.get_cluster_replicas()
    ```


    :param str region: The region in which the resource is located.
    """
    ...
