func NewManagedPrivateEndpoint(ctx *pulumi.Context,
	name string, args *ManagedPrivateEndpointArgs, opts ...pulumi.ResourceOption) (*ManagedPrivateEndpoint, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.SubresourceName == nil {
		return nil, errors.New("invalid value for required argument 'SubresourceName'")
	}
	if args.SynapseWorkspaceId == nil {
		return nil, errors.New("invalid value for required argument 'SynapseWorkspaceId'")
	}
	if args.TargetResourceId == nil {
		return nil, errors.New("invalid value for required argument 'TargetResourceId'")
	}
	var resource ManagedPrivateEndpoint
	err := ctx.RegisterResource("azure:synapse/managedPrivateEndpoint:ManagedPrivateEndpoint", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewManagedPrivateEndpoint registers a new resource with the given unique name, arguments, and options.
NewManagedPrivateEndpoint registers a new resource with the given unique name, arguments, and options.
// NewManagedPrivateEndpoint registers a new resource with the given unique name arguments and options .
func NewManagedPrivateEndpoint(ctx *pulumi.Context,
	name string, args *ManagedPrivateEndpointArgs, opts ...pulumi.ResourceOption) (*ManagedPrivateEndpoint, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.SubresourceName == nil {
		return nil, errors.New("invalid value for required argument 'SubresourceName'")
	}
	if args.SynapseWorkspaceId == nil {
		return nil, errors.New("invalid value for required argument 'SynapseWorkspaceId'")
	}
	if args.TargetResourceId == nil {
		return nil, errors.New("invalid value for required argument 'TargetResourceId'")
	}
	var resource ManagedPrivateEndpoint
	err := ctx.RegisterResource("azure:synapse/managedPrivateEndpoint:ManagedPrivateEndpoint", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewManagedPrivateEndpoint ( ctx * pulumi . Context , name string , args * ManagedPrivateEndpointArgs , opts ... pulumi . ResourceOption ) ( * ManagedPrivateEndpoint , error ) { if args == nil { return nil , errors . New ( " " ) } if args . SubresourceName == nil { return nil , errors . New ( " " ) } if args . SynapseWorkspaceId == nil { return nil , errors . New ( " " ) } if args . TargetResourceId == nil { return nil , errors . New ( " " ) } var resource ManagedPrivateEndpoint err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewManagedPrivateEndpoint registers a new resource with the given unique name, arguments, and options.
NewManagedPrivateEndpoint registers a new resource with the given unique name arguments and options .