# 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
from ._inputs import *

__all__ = [
    'GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult',
    'AwaitableGetEnvironmentsDefaultWorkspaceBaseEnvironmentResult',
    'get_environments_default_workspace_base_environment',
    'get_environments_default_workspace_base_environment_output',
]

@pulumi.output_type
class GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult:
    """
    A collection of values returned by getEnvironmentsDefaultWorkspaceBaseEnvironment.
    """
    def __init__(__self__, cpu_workspace_base_environment=None, gpu_workspace_base_environment=None, id=None, name=None, provider_config=None):
        if cpu_workspace_base_environment and not isinstance(cpu_workspace_base_environment, str):
            raise TypeError("Expected argument 'cpu_workspace_base_environment' to be a str")
        pulumi.set(__self__, "cpu_workspace_base_environment", cpu_workspace_base_environment)
        if gpu_workspace_base_environment and not isinstance(gpu_workspace_base_environment, str):
            raise TypeError("Expected argument 'gpu_workspace_base_environment' to be a str")
        pulumi.set(__self__, "gpu_workspace_base_environment", gpu_workspace_base_environment)
        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)
        if provider_config and not isinstance(provider_config, dict):
            raise TypeError("Expected argument 'provider_config' to be a dict")
        pulumi.set(__self__, "provider_config", provider_config)

    @_builtins.property
    @pulumi.getter(name="cpuWorkspaceBaseEnvironment")
    def cpu_workspace_base_environment(self) -> _builtins.str:
        """
        (string) - The default workspace base environment for CPU compute.
        Format: workspace-base-environments/{workspace_base_environment}
        """
        return pulumi.get(self, "cpu_workspace_base_environment")

    @_builtins.property
    @pulumi.getter(name="gpuWorkspaceBaseEnvironment")
    def gpu_workspace_base_environment(self) -> _builtins.str:
        """
        (string) - The default workspace base environment for GPU compute.
        Format: workspace-base-environments/{workspace_base_environment}
        """
        return pulumi.get(self, "gpu_workspace_base_environment")

    @_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
    def name(self) -> _builtins.str:
        """
        (string) - The resource name of this singleton resource.
        Format: default-workspace-base-environment
        """
        return pulumi.get(self, "name")

    @_builtins.property
    @pulumi.getter(name="providerConfig")
    def provider_config(self) -> Optional['outputs.GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigResult']:
        return pulumi.get(self, "provider_config")


class AwaitableGetEnvironmentsDefaultWorkspaceBaseEnvironmentResult(GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult(
            cpu_workspace_base_environment=self.cpu_workspace_base_environment,
            gpu_workspace_base_environment=self.gpu_workspace_base_environment,
            id=self.id,
            name=self.name,
            provider_config=self.provider_config)


def get_environments_default_workspace_base_environment(name: Optional[_builtins.str] = None,
                                                        provider_config: Optional[Union['GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgsDict']] = None,
                                                        opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentsDefaultWorkspaceBaseEnvironmentResult:
    """
    [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)

    This data source retrieves the current default Workspace Base Environment configuration for the workspace.


    :param _builtins.str name: The resource name of this singleton resource.
           Format: default-workspace-base-environment
    :param Union['GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider.
    """
    __args__ = dict()
    __args__['name'] = name
    __args__['providerConfig'] = provider_config
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('databricks:index/getEnvironmentsDefaultWorkspaceBaseEnvironment:getEnvironmentsDefaultWorkspaceBaseEnvironment', __args__, opts=opts, typ=GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult).value

    return AwaitableGetEnvironmentsDefaultWorkspaceBaseEnvironmentResult(
        cpu_workspace_base_environment=pulumi.get(__ret__, 'cpu_workspace_base_environment'),
        gpu_workspace_base_environment=pulumi.get(__ret__, 'gpu_workspace_base_environment'),
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        provider_config=pulumi.get(__ret__, 'provider_config'))
def get_environments_default_workspace_base_environment_output(name: Optional[pulumi.Input[_builtins.str]] = None,
                                                               provider_config: Optional[pulumi.Input[Optional[Union['GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgsDict']]]] = None,
                                                               opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult]:
    """
    [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)

    This data source retrieves the current default Workspace Base Environment configuration for the workspace.


    :param _builtins.str name: The resource name of this singleton resource.
           Format: default-workspace-base-environment
    :param Union['GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgsDict'] provider_config: Configure the provider for management through account provider.
    """
    __args__ = dict()
    __args__['name'] = name
    __args__['providerConfig'] = provider_config
    opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke_output('databricks:index/getEnvironmentsDefaultWorkspaceBaseEnvironment:getEnvironmentsDefaultWorkspaceBaseEnvironment', __args__, opts=opts, typ=GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult)
    return __ret__.apply(lambda __response__: GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult(
        cpu_workspace_base_environment=pulumi.get(__response__, 'cpu_workspace_base_environment'),
        gpu_workspace_base_environment=pulumi.get(__response__, 'gpu_workspace_base_environment'),
        id=pulumi.get(__response__, 'id'),
        name=pulumi.get(__response__, 'name'),
        provider_config=pulumi.get(__response__, 'provider_config')))
