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
  from . import outputs
  
  __all__ = [
      'GetIncidentCommentResult',
      'AwaitableGetIncidentCommentResult',
      'get_incident_comment',
  ]
  
  @pulumi.output_type
  class GetIncidentCommentResult:
      """
      Represents an incident comment
      """
      def __init__(__self__, author=None, created_time_utc=None, etag=None, last_modified_time_utc=None, message=None, name=None, type=None):
          if author and not isinstance(author, dict):
              raise TypeError("Expected argument 'author' to be a dict")
          pulumi.set(__self__, "author", author)
          if created_time_utc and not isinstance(created_time_utc, str):
              raise TypeError("Expected argument 'created_time_utc' to be a str")
          pulumi.set(__self__, "created_time_utc", created_time_utc)
          if etag and not isinstance(etag, str):
              raise TypeError("Expected argument 'etag' to be a str")
          pulumi.set(__self__, "etag", etag)
          if last_modified_time_utc and not isinstance(last_modified_time_utc, str):
              raise TypeError("Expected argument 'last_modified_time_utc' to be a str")
          pulumi.set(__self__, "last_modified_time_utc", last_modified_time_utc)
          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 type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter
      def author(self) -> 'outputs.ClientInfoResponse':
          """
          Describes the client that created the comment
          """
          return pulumi.get(self, "author")
  
      @property
      @pulumi.getter(name="createdTimeUtc")
      def created_time_utc(self) -> str:
          """
          The time the comment was created
          """
          return pulumi.get(self, "created_time_utc")
  
      @property
      @pulumi.getter
      def etag(self) -> Optional[str]:
          """
          Etag of the azure resource
          """
          return pulumi.get(self, "etag")
  
      @property
      @pulumi.getter(name="lastModifiedTimeUtc")
      def last_modified_time_utc(self) -> str:
          """
          The time the comment was updated
          """
          return pulumi.get(self, "last_modified_time_utc")
  
      @property
      @pulumi.getter
      def message(self) -> str:
          """
          The comment message
          """
          return pulumi.get(self, "message")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          Azure resource name
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          Azure resource type
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetIncidentCommentResult(GetIncidentCommentResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetIncidentCommentResult(
              author=self.author,
              created_time_utc=self.created_time_utc,
              etag=self.etag,
              last_modified_time_utc=self.last_modified_time_utc,
              message=self.message,
              name=self.name,
              type=self.type)
  
  
  def get_incident_comment(incident_comment_id: Optional[str] = None,
                           incident_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) -> AwaitableGetIncidentCommentResult:
      """
      Use this data source to access information about an existing resource.
  
      :param str incident_comment_id: Incident comment ID
      :param str incident_id: Incident 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__['incidentCommentId'] = incident_comment_id
      __args__['incidentId'] = incident_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-nextgen:securityinsights/v20190101preview:getIncidentComment', __args__, opts=opts, typ=GetIncidentCommentResult).value
  
      return AwaitableGetIncidentCommentResult(
          author=__ret__.author,
          created_time_utc=__ret__.created_time_utc,
          etag=__ret__.etag,
          last_modified_time_utc=__ret__.last_modified_time_utc,
          message=__ret__.message,
          name=__ret__.name,
          type=__ret__.type)
  