// NewCacheNfsTarget registers a new resource with the given unique name, arguments, and options.
NewCacheNfsTarget registers a new resource with the given unique name, arguments, and options.
// NewCacheNfsTarget registers a new resource with the given unique name arguments and options .
func NewCacheNfsTarget(ctx *pulumi.Context,
	name string, args *CacheNfsTargetArgs, opts ...pulumi.ResourceOption) (*CacheNfsTarget, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.CacheName == nil {
		return nil, errors.New("invalid value for required argument 'CacheName'")
	}
	if args.NamespaceJunctions == nil {
		return nil, errors.New("invalid value for required argument 'NamespaceJunctions'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.TargetHostName == nil {
		return nil, errors.New("invalid value for required argument 'TargetHostName'")
	}
	if args.UsageModel == nil {
		return nil, errors.New("invalid value for required argument 'UsageModel'")
	}
	var resource CacheNfsTarget
	err := ctx.RegisterResource("azure:hpc/cacheNfsTarget:CacheNfsTarget", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewCacheNfsTarget ( ctx * pulumi . Context , name string , args * CacheNfsTargetArgs , opts ... pulumi . ResourceOption ) ( * CacheNfsTarget , error ) { if args == nil { return nil , errors . New ( " " ) } if args . CacheName == nil { return nil , errors . New ( " " ) } if args . NamespaceJunctions == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . TargetHostName == nil { return nil , errors . New ( " " ) } if args . UsageModel == nil { return nil , errors . New ( " " ) } var resource CacheNfsTarget err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewCacheNfsTarget registers a new resource with the given unique name, arguments, and options.
NewCacheNfsTarget registers a new resource with the given unique name arguments and options .