# 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__ = [
    'GetEnvironmentsWorkspaceBaseEnvironmentResult',
    'AwaitableGetEnvironmentsWorkspaceBaseEnvironmentResult',
    'get_environments_workspace_base_environment',
    'get_environments_workspace_base_environment_output',
]

@pulumi.output_type
class GetEnvironmentsWorkspaceBaseEnvironmentResult:
    """
    A collection of values returned by getEnvironmentsWorkspaceBaseEnvironment.
    """
    def __init__(__self__, base_environment_type=None, create_time=None, creator_user_id=None, display_name=None, effective_base_environment_type=None, filepath=None, id=None, is_default=None, last_updated_user_id=None, message=None, name=None, provider_config=None, status=None, update_time=None):
        if base_environment_type and not isinstance(base_environment_type, str):
            raise TypeError("Expected argument 'base_environment_type' to be a str")
        pulumi.set(__self__, "base_environment_type", base_environment_type)
        if create_time and not isinstance(create_time, str):
            raise TypeError("Expected argument 'create_time' to be a str")
        pulumi.set(__self__, "create_time", create_time)
        if creator_user_id and not isinstance(creator_user_id, str):
            raise TypeError("Expected argument 'creator_user_id' to be a str")
        pulumi.set(__self__, "creator_user_id", creator_user_id)
        if display_name and not isinstance(display_name, str):
            raise TypeError("Expected argument 'display_name' to be a str")
        pulumi.set(__self__, "display_name", display_name)
        if effective_base_environment_type and not isinstance(effective_base_environment_type, str):
            raise TypeError("Expected argument 'effective_base_environment_type' to be a str")
        pulumi.set(__self__, "effective_base_environment_type", effective_base_environment_type)
        if filepath and not isinstance(filepath, str):
            raise TypeError("Expected argument 'filepath' to be a str")
        pulumi.set(__self__, "filepath", filepath)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if is_default and not isinstance(is_default, bool):
            raise TypeError("Expected argument 'is_default' to be a bool")
        pulumi.set(__self__, "is_default", is_default)
        if last_updated_user_id and not isinstance(last_updated_user_id, str):
            raise TypeError("Expected argument 'last_updated_user_id' to be a str")
        pulumi.set(__self__, "last_updated_user_id", last_updated_user_id)
        if message and not isinstance(message, str):
            raise TypeError("Expected argument 'message' to be a str")
        pulumi.set(__self__, "message", message)
        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)
        if status and not isinstance(status, str):
            raise TypeError("Expected argument 'status' to be a str")
        pulumi.set(__self__, "status", status)
        if update_time and not isinstance(update_time, str):
            raise TypeError("Expected argument 'update_time' to be a str")
        pulumi.set(__self__, "update_time", update_time)

    @_builtins.property
    @pulumi.getter(name="baseEnvironmentType")
    def base_environment_type(self) -> _builtins.str:
        """
        (string) - The type of base environment (CPU or GPU). Possible values are: `CPU`, `GPU`
        """
        return pulumi.get(self, "base_environment_type")

    @_builtins.property
    @pulumi.getter(name="createTime")
    def create_time(self) -> _builtins.str:
        """
        (string) - Timestamp when the environment was created
        """
        return pulumi.get(self, "create_time")

    @_builtins.property
    @pulumi.getter(name="creatorUserId")
    def creator_user_id(self) -> _builtins.str:
        """
        (string) - User ID of the creator
        """
        return pulumi.get(self, "creator_user_id")

    @_builtins.property
    @pulumi.getter(name="displayName")
    def display_name(self) -> _builtins.str:
        """
        (string) - Human-readable display name for the workspace base environment
        """
        return pulumi.get(self, "display_name")

    @_builtins.property
    @pulumi.getter(name="effectiveBaseEnvironmentType")
    def effective_base_environment_type(self) -> _builtins.str:
        return pulumi.get(self, "effective_base_environment_type")

    @_builtins.property
    @pulumi.getter
    def filepath(self) -> _builtins.str:
        """
        (string) - The WSFS or UC Volumes path to the environment YAML file
        """
        return pulumi.get(self, "filepath")

    @_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="isDefault")
    def is_default(self) -> _builtins.bool:
        """
        (boolean) - Whether this is the default environment for the workspace
        """
        return pulumi.get(self, "is_default")

    @_builtins.property
    @pulumi.getter(name="lastUpdatedUserId")
    def last_updated_user_id(self) -> _builtins.str:
        """
        (string) - User ID of the last user who updated the environment
        """
        return pulumi.get(self, "last_updated_user_id")

    @_builtins.property
    @pulumi.getter
    def message(self) -> _builtins.str:
        """
        (string) - Status message providing additional details about the environment status
        """
        return pulumi.get(self, "message")

    @_builtins.property
    @pulumi.getter
    def name(self) -> _builtins.str:
        """
        (string) - The resource name of the workspace base environment.
        Format: workspace-base-environments/{workspace-base-environment}
        """
        return pulumi.get(self, "name")

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

    @_builtins.property
    @pulumi.getter
    def status(self) -> _builtins.str:
        """
        (string) - The status of the materialized workspace base environment. Possible values are: `CREATED`, `EXPIRED`, `FAILED`, `INVALID`, `PENDING`, `REFRESHING`
        """
        return pulumi.get(self, "status")

    @_builtins.property
    @pulumi.getter(name="updateTime")
    def update_time(self) -> _builtins.str:
        """
        (string) - Timestamp when the environment was last updated
        """
        return pulumi.get(self, "update_time")


class AwaitableGetEnvironmentsWorkspaceBaseEnvironmentResult(GetEnvironmentsWorkspaceBaseEnvironmentResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetEnvironmentsWorkspaceBaseEnvironmentResult(
            base_environment_type=self.base_environment_type,
            create_time=self.create_time,
            creator_user_id=self.creator_user_id,
            display_name=self.display_name,
            effective_base_environment_type=self.effective_base_environment_type,
            filepath=self.filepath,
            id=self.id,
            is_default=self.is_default,
            last_updated_user_id=self.last_updated_user_id,
            message=self.message,
            name=self.name,
            provider_config=self.provider_config,
            status=self.status,
            update_time=self.update_time)


def get_environments_workspace_base_environment(name: Optional[_builtins.str] = None,
                                                provider_config: Optional[Union['GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgsDict']] = None,
                                                opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEnvironmentsWorkspaceBaseEnvironmentResult:
    """
    [![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 a single Workspace Base Environment by its resource name.


    :param _builtins.str name: The resource name of the workspace base environment.
           Format: workspace-base-environments/{workspace-base-environment}
    :param Union['GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgsDict'] 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/getEnvironmentsWorkspaceBaseEnvironment:getEnvironmentsWorkspaceBaseEnvironment', __args__, opts=opts, typ=GetEnvironmentsWorkspaceBaseEnvironmentResult).value

    return AwaitableGetEnvironmentsWorkspaceBaseEnvironmentResult(
        base_environment_type=pulumi.get(__ret__, 'base_environment_type'),
        create_time=pulumi.get(__ret__, 'create_time'),
        creator_user_id=pulumi.get(__ret__, 'creator_user_id'),
        display_name=pulumi.get(__ret__, 'display_name'),
        effective_base_environment_type=pulumi.get(__ret__, 'effective_base_environment_type'),
        filepath=pulumi.get(__ret__, 'filepath'),
        id=pulumi.get(__ret__, 'id'),
        is_default=pulumi.get(__ret__, 'is_default'),
        last_updated_user_id=pulumi.get(__ret__, 'last_updated_user_id'),
        message=pulumi.get(__ret__, 'message'),
        name=pulumi.get(__ret__, 'name'),
        provider_config=pulumi.get(__ret__, 'provider_config'),
        status=pulumi.get(__ret__, 'status'),
        update_time=pulumi.get(__ret__, 'update_time'))
def get_environments_workspace_base_environment_output(name: Optional[pulumi.Input[_builtins.str]] = None,
                                                       provider_config: Optional[pulumi.Input[Optional[Union['GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgsDict']]]] = None,
                                                       opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEnvironmentsWorkspaceBaseEnvironmentResult]:
    """
    [![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 a single Workspace Base Environment by its resource name.


    :param _builtins.str name: The resource name of the workspace base environment.
           Format: workspace-base-environments/{workspace-base-environment}
    :param Union['GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgs', 'GetEnvironmentsWorkspaceBaseEnvironmentProviderConfigArgsDict'] 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/getEnvironmentsWorkspaceBaseEnvironment:getEnvironmentsWorkspaceBaseEnvironment', __args__, opts=opts, typ=GetEnvironmentsWorkspaceBaseEnvironmentResult)
    return __ret__.apply(lambda __response__: GetEnvironmentsWorkspaceBaseEnvironmentResult(
        base_environment_type=pulumi.get(__response__, 'base_environment_type'),
        create_time=pulumi.get(__response__, 'create_time'),
        creator_user_id=pulumi.get(__response__, 'creator_user_id'),
        display_name=pulumi.get(__response__, 'display_name'),
        effective_base_environment_type=pulumi.get(__response__, 'effective_base_environment_type'),
        filepath=pulumi.get(__response__, 'filepath'),
        id=pulumi.get(__response__, 'id'),
        is_default=pulumi.get(__response__, 'is_default'),
        last_updated_user_id=pulumi.get(__response__, 'last_updated_user_id'),
        message=pulumi.get(__response__, 'message'),
        name=pulumi.get(__response__, 'name'),
        provider_config=pulumi.get(__response__, 'provider_config'),
        status=pulumi.get(__response__, 'status'),
        update_time=pulumi.get(__response__, 'update_time')))
