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__ = [
      'GetPrivateEndpointConnectionResult',
      'AwaitableGetPrivateEndpointConnectionResult',
      'get_private_endpoint_connection',
  ]
  
  @pulumi.output_type
  class GetPrivateEndpointConnectionResult:
      """
      A private endpoint connection
      """
      def __init__(__self__, name=None, private_endpoint=None, private_link_service_connection_state=None, provisioning_state=None, type=None):
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if private_endpoint and not isinstance(private_endpoint, dict):
              raise TypeError("Expected argument 'private_endpoint' to be a dict")
          pulumi.set(__self__, "private_endpoint", private_endpoint)
          if private_link_service_connection_state and not isinstance(private_link_service_connection_state, dict):
              raise TypeError("Expected argument 'private_link_service_connection_state' to be a dict")
          pulumi.set(__self__, "private_link_service_connection_state", private_link_service_connection_state)
          if provisioning_state and not isinstance(provisioning_state, str):
              raise TypeError("Expected argument 'provisioning_state' to be a str")
          pulumi.set(__self__, "provisioning_state", provisioning_state)
          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 name(self) -> str:
          """
          The name of the resource
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="privateEndpoint")
      def private_endpoint(self) -> Optional['outputs.PrivateEndpointPropertyResponse']:
          """
          Private endpoint which the connection belongs to.
          """
          return pulumi.get(self, "private_endpoint")
  
      @property
      @pulumi.getter(name="privateLinkServiceConnectionState")
      def private_link_service_connection_state(self) -> Optional['outputs.PrivateLinkServiceConnectionStatePropertyResponse']:
          """
          Connection state of the private endpoint connection.
          """
          return pulumi.get(self, "private_link_service_connection_state")
  
      @property
      @pulumi.getter(name="provisioningState")
      def provisioning_state(self) -> str:
          """
          State of the private endpoint connection.
          """
          return pulumi.get(self, "provisioning_state")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetPrivateEndpointConnectionResult(GetPrivateEndpointConnectionResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetPrivateEndpointConnectionResult(
              name=self.name,
              private_endpoint=self.private_endpoint,
              private_link_service_connection_state=self.private_link_service_connection_state,
              provisioning_state=self.provisioning_state,
              type=self.type)
  
  
  def get_private_endpoint_connection(private_endpoint_connection_name: Optional[str] = None,
                                      resource_group_name: Optional[str] = None,
                                      scope_name: Optional[str] = None,
                                      opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPrivateEndpointConnectionResult:
      """
      Use this data source to access information about an existing resource.
  
      :param str private_endpoint_connection_name: The name of the private endpoint connection.
      :param str resource_group_name: The name of the resource group.
      :param str scope_name: The name of the Azure Arc PrivateLinkScope resource.
      """
      __args__ = dict()
      __args__['privateEndpointConnectionName'] = private_endpoint_connection_name
      __args__['resourceGroupName'] = resource_group_name
      __args__['scopeName'] = scope_name
      if opts is None:
          opts = pulumi.InvokeOptions()
      if opts.version is None:
          opts.version = _utilities.get_version()
      __ret__ = pulumi.runtime.invoke('azure-nextgen:hybridcompute/v20200815preview:getPrivateEndpointConnection', __args__, opts=opts, typ=GetPrivateEndpointConnectionResult).value
  
      return AwaitableGetPrivateEndpointConnectionResult(
          name=__ret__.name,
          private_endpoint=__ret__.private_endpoint,
          private_link_service_connection_state=__ret__.private_link_service_connection_state,
          provisioning_state=__ret__.provisioning_state,
          type=__ret__.type)
  