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__ = [
      'GetApiIssueCommentResult',
      'AwaitableGetApiIssueCommentResult',
      'get_api_issue_comment',
  ]
  
  @pulumi.output_type
  class GetApiIssueCommentResult:
      """
      Issue Comment Contract details.
      """
      def __init__(__self__, created_date=None, name=None, text=None, type=None, user_id=None):
          if created_date and not isinstance(created_date, str):
              raise TypeError("Expected argument 'created_date' to be a str")
          pulumi.set(__self__, "created_date", created_date)
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if text and not isinstance(text, str):
              raise TypeError("Expected argument 'text' to be a str")
          pulumi.set(__self__, "text", text)
          if type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
          if user_id and not isinstance(user_id, str):
              raise TypeError("Expected argument 'user_id' to be a str")
          pulumi.set(__self__, "user_id", user_id)
  
      @property
      @pulumi.getter(name="createdDate")
      def created_date(self) -> Optional[str]:
          """
          Date and time when the comment was created.
          """
          return pulumi.get(self, "created_date")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          Resource name.
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter
      def text(self) -> str:
          """
          Comment text.
          """
          return pulumi.get(self, "text")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          Resource type for API Management resource.
          """
          return pulumi.get(self, "type")
  
      @property
      @pulumi.getter(name="userId")
      def user_id(self) -> str:
          """
          A resource identifier for the user who left the comment.
          """
          return pulumi.get(self, "user_id")
  
  
  class AwaitableGetApiIssueCommentResult(GetApiIssueCommentResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetApiIssueCommentResult(
              created_date=self.created_date,
              name=self.name,
              text=self.text,
              type=self.type,
              user_id=self.user_id)
  
  
  def get_api_issue_comment(api_id: Optional[str] = None,
                            comment_id: Optional[str] = None,
                            issue_id: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            service_name: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApiIssueCommentResult:
      """
      Use this data source to access information about an existing resource.
  
      :param str api_id: API identifier. Must be unique in the current API Management service instance.
      :param str comment_id: Comment identifier within an Issue. Must be unique in the current Issue.
      :param str issue_id: Issue identifier. Must be unique in the current API Management service instance.
      :param str resource_group_name: The name of the resource group.
      :param str service_name: The name of the API Management service.
      """
      __args__ = dict()
      __args__['apiId'] = api_id
      __args__['commentId'] = comment_id
      __args__['issueId'] = issue_id
      __args__['resourceGroupName'] = resource_group_name
      __args__['serviceName'] = service_name
      if opts is None:
          opts = pulumi.InvokeOptions()
      if opts.version is None:
          opts.version = _utilities.get_version()
      __ret__ = pulumi.runtime.invoke('azure-nextgen:apimanagement/v20200601preview:getApiIssueComment', __args__, opts=opts, typ=GetApiIssueCommentResult).value
  
      return AwaitableGetApiIssueCommentResult(
          created_date=__ret__.created_date,
          name=__ret__.name,
          text=__ret__.text,
          type=__ret__.type,
          user_id=__ret__.user_id)
  