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

	if args.LoadBalancerFrontendIpConfigurationIds == nil {
		return nil, errors.New("invalid value for required argument 'LoadBalancerFrontendIpConfigurationIds'")
	}
	if args.NatIpConfigurations == nil {
		return nil, errors.New("invalid value for required argument 'NatIpConfigurations'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	var resource LinkService
	err := ctx.RegisterResource("azure:privatedns/linkService:LinkService", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewLinkService registers a new resource with the given unique name, arguments, and options.
NewLinkService registers a new resource with the given unique name, arguments, and options.
// NewLinkService registers a new resource with the given unique name arguments and options .
func NewLinkService(ctx *pulumi.Context,
	name string, args *LinkServiceArgs, opts ...pulumi.ResourceOption) (*LinkService, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.LoadBalancerFrontendIpConfigurationIds == nil {
		return nil, errors.New("invalid value for required argument 'LoadBalancerFrontendIpConfigurationIds'")
	}
	if args.NatIpConfigurations == nil {
		return nil, errors.New("invalid value for required argument 'NatIpConfigurations'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	var resource LinkService
	err := ctx.RegisterResource("azure:privatedns/linkService:LinkService", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewLinkService ( ctx * pulumi . Context , name string , args * LinkServiceArgs , opts ... pulumi . ResourceOption ) ( * LinkService , error ) { if args == nil { return nil , errors . New ( " " ) } if args . LoadBalancerFrontendIpConfigurationIds == nil { return nil , errors . New ( " " ) } if args . NatIpConfigurations == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } var resource LinkService err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewLinkService registers a new resource with the given unique name, arguments, and options.
NewLinkService registers a new resource with the given unique name arguments and options .