# 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

__all__ = [
    'GetCloudBrowserIsolationRegionResult',
    'AwaitableGetCloudBrowserIsolationRegionResult',
    'get_cloud_browser_isolation_region',
    'get_cloud_browser_isolation_region_output',
]

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

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        (string) - ID information of the CBI region
        """
        return pulumi.get(self, "id")

    @property
    @pulumi.getter
    def name(self) -> str:
        """
        (string) - Name of the CBI region
        """
        return pulumi.get(self, "name")


class AwaitableGetCloudBrowserIsolationRegionResult(GetCloudBrowserIsolationRegionResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetCloudBrowserIsolationRegionResult(
            id=self.id,
            name=self.name)


def get_cloud_browser_isolation_region(id: Optional[str] = None,
                                       name: Optional[str] = None,
                                       opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudBrowserIsolationRegionResult:
    """
    Use the **zpa_cloud_browser_isolation_region** data source to get information about Cloud Browser Isolation regions such as ID and Name. This data source information is required as part of the attribute `region_ids` when creating an Cloud Browser Isolation External Profile ``CloudBrowserIsolationExternalProfile``

    ## Example Usage

    ```python
    import pulumi
    import pulumi_zpa as zpa

    this = zpa.get_cloud_browser_isolation_region(name="Singapore")
    ```


    :param str id: The id of the CBI region to be exported.
    :param str name: The name of the CBI region to be exported.
    """
    __args__ = dict()
    __args__['id'] = id
    __args__['name'] = name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('zpa:index/getCloudBrowserIsolationRegion:getCloudBrowserIsolationRegion', __args__, opts=opts, typ=GetCloudBrowserIsolationRegionResult).value

    return AwaitableGetCloudBrowserIsolationRegionResult(
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'))


@_utilities.lift_output_func(get_cloud_browser_isolation_region)
def get_cloud_browser_isolation_region_output(id: Optional[pulumi.Input[Optional[str]]] = None,
                                              name: Optional[pulumi.Input[Optional[str]]] = None,
                                              opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudBrowserIsolationRegionResult]:
    """
    Use the **zpa_cloud_browser_isolation_region** data source to get information about Cloud Browser Isolation regions such as ID and Name. This data source information is required as part of the attribute `region_ids` when creating an Cloud Browser Isolation External Profile ``CloudBrowserIsolationExternalProfile``

    ## Example Usage

    ```python
    import pulumi
    import pulumi_zpa as zpa

    this = zpa.get_cloud_browser_isolation_region(name="Singapore")
    ```


    :param str id: The id of the CBI region to be exported.
    :param str name: The name of the CBI region to be exported.
    """
    ...
