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, overload
  from ... import _utilities
  from . import outputs
  
  __all__ = [
      'GetMCASDataConnectorResult',
      'AwaitableGetMCASDataConnectorResult',
      'get_mcas_data_connector',
  ]
  
  @pulumi.output_type
  class GetMCASDataConnectorResult:
      """
      Represents MCAS (Microsoft Cloud App Security) data connector.
      """
      def __init__(__self__, data_types=None, etag=None, id=None, kind=None, name=None, tenant_id=None, type=None):
          if data_types and not isinstance(data_types, dict):
              raise TypeError("Expected argument 'data_types' to be a dict")
          pulumi.set(__self__, "data_types", data_types)
          if etag and not isinstance(etag, str):
              raise TypeError("Expected argument 'etag' to be a str")
          pulumi.set(__self__, "etag", etag)
          if id and not isinstance(id, str):
              raise TypeError("Expected argument 'id' to be a str")
          pulumi.set(__self__, "id", id)
          if kind and not isinstance(kind, str):
              raise TypeError("Expected argument 'kind' to be a str")
          pulumi.set(__self__, "kind", kind)
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if tenant_id and not isinstance(tenant_id, str):
              raise TypeError("Expected argument 'tenant_id' to be a str")
          pulumi.set(__self__, "tenant_id", tenant_id)
          if type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter(name="dataTypes")
      def data_types(self) -> 'outputs.MCASDataConnectorDataTypesResponse':
          """
          The available data types for the connector.
          """
          return pulumi.get(self, "data_types")
  
      @property
      @pulumi.getter
      def etag(self) -> Optional[str]:
          """
          Etag of the azure resource
          """
          return pulumi.get(self, "etag")
  
      @property
      @pulumi.getter
      def id(self) -> str:
          """
          Azure resource Id
          """
          return pulumi.get(self, "id")
  
      @property
      @pulumi.getter
      def kind(self) -> str:
          """
  
          Expected value is 'MicrosoftCloudAppSecurity'.
          """
          return pulumi.get(self, "kind")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          Azure resource name
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="tenantId")
      def tenant_id(self) -> str:
          """
          The tenant id to connect to, and get the data from.
          """
          return pulumi.get(self, "tenant_id")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          Azure resource type
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetMCASDataConnectorResult(GetMCASDataConnectorResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetMCASDataConnectorResult(
              data_types=self.data_types,
              etag=self.etag,
              id=self.id,
              kind=self.kind,
              name=self.name,
              tenant_id=self.tenant_id,
              type=self.type)
  
  
  def get_mcas_data_connector(data_connector_id: Optional[str] = None,
                              operational_insights_resource_provider: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              workspace_name: Optional[str] = None,
                              opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMCASDataConnectorResult:
      """
      Represents MCAS (Microsoft Cloud App Security) data connector.
  
  
      :param str data_connector_id: Connector ID
      :param str operational_insights_resource_provider: The namespace of workspaces resource provider- Microsoft.OperationalInsights.
      :param str resource_group_name: The name of the resource group within the user's subscription. The name is case insensitive.
      :param str workspace_name: The name of the workspace.
      """
      __args__ = dict()
      __args__['dataConnectorId'] = data_connector_id
      __args__['operationalInsightsResourceProvider'] = operational_insights_resource_provider
      __args__['resourceGroupName'] = resource_group_name
      __args__['workspaceName'] = workspace_name
      if opts is None:
          opts = pulumi.InvokeOptions()
      if opts.version is None:
          opts.version = _utilities.get_version()
      __ret__ = pulumi.runtime.invoke('azure-native:securityinsights/v20190101preview:getMCASDataConnector', __args__, opts=opts, typ=GetMCASDataConnectorResult).value
  
      return AwaitableGetMCASDataConnectorResult(
          data_types=__ret__.data_types,
          etag=__ret__.etag,
          id=__ret__.id,
          kind=__ret__.kind,
          name=__ret__.name,
          tenant_id=__ret__.tenant_id,
          type=__ret__.type)
  