def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, factory_name: Optional[pulumi.Input[str]]=None, private_endpoint_connection_name: Optional[pulumi.Input[str]]=None, properties: Optional[pulumi.Input[pulumi.InputType['PrivateLinkConnectionApprovalRequestArgs']]]=None, resource_group_name: Optional[pulumi.Input[str]]=None, __props__=None):
    if (opts is None):
        opts = pulumi.ResourceOptions()
    if (not isinstance(opts, pulumi.ResourceOptions)):
        raise TypeError('Expected resource options to be a ResourceOptions instance')
    if (opts.version is None):
        opts.version = _utilities.get_version()
    if (opts.id is None):
        if (__props__ is not None):
            raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
        __props__ = PrivateEndpointConnectionArgs.__new__(PrivateEndpointConnectionArgs)
        if ((factory_name is None) and (not opts.urn)):
            raise TypeError("Missing required property 'factory_name'")
        __props__.__dict__['factory_name'] = factory_name
        __props__.__dict__['private_endpoint_connection_name'] = private_endpoint_connection_name
        __props__.__dict__['properties'] = properties
        if ((resource_group_name is None) and (not opts.urn)):
            raise TypeError("Missing required property 'resource_group_name'")
        __props__.__dict__['resource_group_name'] = resource_group_name
        __props__.__dict__['etag'] = None
        __props__.__dict__['name'] = None
        __props__.__dict__['type'] = None
    alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_='azure-nextgen:datafactory:PrivateEndpointConnection'), pulumi.Alias(type_='azure-native:datafactory/v20180601:PrivateEndpointConnection'), pulumi.Alias(type_='azure-nextgen:datafactory/v20180601:PrivateEndpointConnection')])
    opts = pulumi.ResourceOptions.merge(opts, alias_opts)
    super(PrivateEndpointConnection, __self__).__init__('azure-native:datafactory:PrivateEndpointConnection', resource_name, __props__, opts)
def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, factory_name: Optional[pulumi.Input[str]]=None, private_endpoint_connection_name: Optional[pulumi.Input[str]]=None, properties: Optional[pulumi.Input[pulumi.InputType['PrivateLinkConnectionApprovalRequestArgs']]]=None, resource_group_name: Optional[pulumi.Input[str]]=None, __props__=None):
    if (opts is None):
        opts = pulumi.ResourceOptions()
    if (not isinstance(opts, pulumi.ResourceOptions)):
        raise TypeError('Expected resource options to be a ResourceOptions instance')
    if (opts.version is None):
        opts.version = _utilities.get_version()
    if (opts.id is None):
        if (__props__ is not None):
            raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
        __props__ = PrivateEndpointConnectionArgs.__new__(PrivateEndpointConnectionArgs)
        if ((factory_name is None) and (not opts.urn)):
            raise TypeError("Missing required property 'factory_name'")
        __props__.__dict__['factory_name'] = factory_name
        __props__.__dict__['private_endpoint_connection_name'] = private_endpoint_connection_name
        __props__.__dict__['properties'] = properties
        if ((resource_group_name is None) and (not opts.urn)):
            raise TypeError("Missing required property 'resource_group_name'")
        __props__.__dict__['resource_group_name'] = resource_group_name
        __props__.__dict__['etag'] = None
        __props__.__dict__['name'] = None
        __props__.__dict__['type'] = None
    alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_='azure-nextgen:datafactory:PrivateEndpointConnection'), pulumi.Alias(type_='azure-native:datafactory/v20180601:PrivateEndpointConnection'), pulumi.Alias(type_='azure-nextgen:datafactory/v20180601:PrivateEndpointConnection')])
    opts = pulumi.ResourceOptions.merge(opts, alias_opts)
    super(PrivateEndpointConnection, __self__).__init__('azure-native:datafactory:PrivateEndpointConnection', resource_name, __props__, opts)