text: # coding=utf-8
  # *** WARNING: this file was generated by the Pulumi SDK Generator. ***
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
  
  import warnings
  import pulumi
  import pulumi.runtime
  from typing import Any, Mapping, Optional, Sequence, Union
  from .. import _utilities, _tables
  
  __all__ = [
      'GetWorkloadClassifierResult',
      'AwaitableGetWorkloadClassifierResult',
      'get_workload_classifier',
  ]
  
  @pulumi.output_type
  class GetWorkloadClassifierResult:
      """
      Workload classifier operations for a data warehouse
      """
      def __init__(__self__, context=None, end_time=None, id=None, importance=None, label=None, member_name=None, name=None, start_time=None, type=None):
          if context and not isinstance(context, str):
              raise TypeError("Expected argument 'context' to be a str")
          pulumi.set(__self__, "context", context)
          if end_time and not isinstance(end_time, str):
              raise TypeError("Expected argument 'end_time' to be a str")
          pulumi.set(__self__, "end_time", end_time)
          if id and not isinstance(id, str):
              raise TypeError("Expected argument 'id' to be a str")
          pulumi.set(__self__, "id", id)
          if importance and not isinstance(importance, str):
              raise TypeError("Expected argument 'importance' to be a str")
          pulumi.set(__self__, "importance", importance)
          if label and not isinstance(label, str):
              raise TypeError("Expected argument 'label' to be a str")
          pulumi.set(__self__, "label", label)
          if member_name and not isinstance(member_name, str):
              raise TypeError("Expected argument 'member_name' to be a str")
          pulumi.set(__self__, "member_name", member_name)
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if start_time and not isinstance(start_time, str):
              raise TypeError("Expected argument 'start_time' to be a str")
          pulumi.set(__self__, "start_time", start_time)
          if type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter
      def context(self) -> Optional[str]:
          """
          The workload classifier context.
          """
          return pulumi.get(self, "context")
  
      @property
      @pulumi.getter(name="endTime")
      def end_time(self) -> Optional[str]:
          """
          The workload classifier end time for classification.
          """
          return pulumi.get(self, "end_time")
  
      @property
      @pulumi.getter
      def id(self) -> str:
          """
          Resource ID.
          """
          return pulumi.get(self, "id")
  
      @property
      @pulumi.getter
      def importance(self) -> Optional[str]:
          """
          The workload classifier importance.
          """
          return pulumi.get(self, "importance")
  
      @property
      @pulumi.getter
      def label(self) -> Optional[str]:
          """
          The workload classifier label.
          """
          return pulumi.get(self, "label")
  
      @property
      @pulumi.getter(name="memberName")
      def member_name(self) -> str:
          """
          The workload classifier member name.
          """
          return pulumi.get(self, "member_name")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          Resource name.
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="startTime")
      def start_time(self) -> Optional[str]:
          """
          The workload classifier start time for classification.
          """
          return pulumi.get(self, "start_time")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          Resource type.
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetWorkloadClassifierResult(GetWorkloadClassifierResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetWorkloadClassifierResult(
              context=self.context,
              end_time=self.end_time,
              id=self.id,
              importance=self.importance,
              label=self.label,
              member_name=self.member_name,
              name=self.name,
              start_time=self.start_time,
              type=self.type)
  
  
  def get_workload_classifier(database_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              server_name: Optional[str] = None,
                              workload_classifier_name: Optional[str] = None,
                              workload_group_name: Optional[str] = None,
                              opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWorkloadClassifierResult:
      """
      Workload classifier operations for a data warehouse
      API Version: 2020-08-01-preview.
  
  
      :param str database_name: The name of the database.
      :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      :param str server_name: The name of the server.
      :param str workload_classifier_name: The name of the workload classifier.
      :param str workload_group_name: The name of the workload group from which to receive the classifier from.
      """
      __args__ = dict()
      __args__['databaseName'] = database_name
      __args__['resourceGroupName'] = resource_group_name
      __args__['serverName'] = server_name
      __args__['workloadClassifierName'] = workload_classifier_name
      __args__['workloadGroupName'] = workload_group_name
      if opts is None:
          opts = pulumi.InvokeOptions()
      if opts.version is None:
          opts.version = _utilities.get_version()
      __ret__ = pulumi.runtime.invoke('azure-native:sql:getWorkloadClassifier', __args__, opts=opts, typ=GetWorkloadClassifierResult).value
  
      return AwaitableGetWorkloadClassifierResult(
          context=__ret__.context,
          end_time=__ret__.end_time,
          id=__ret__.id,
          importance=__ret__.importance,
          label=__ret__.label,
          member_name=__ret__.member_name,
          name=__ret__.name,
          start_time=__ret__.start_time,
          type=__ret__.type)
  