// NewCache registers a new resource with the given unique name, arguments, and options.
NewCache registers a new resource with the given unique name, arguments, and options.
// NewCache registers a new resource with the given unique name arguments and options .
func NewCache(ctx *pulumi.Context,
	name string, args *CacheArgs, opts ...pulumi.ResourceOption) (*Cache, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.CacheSizeInGb == nil {
		return nil, errors.New("invalid value for required argument 'CacheSizeInGb'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.SkuName == nil {
		return nil, errors.New("invalid value for required argument 'SkuName'")
	}
	if args.SubnetId == nil {
		return nil, errors.New("invalid value for required argument 'SubnetId'")
	}
	var resource Cache
	err := ctx.RegisterResource("azure:hpc/cache:Cache", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewCache ( ctx * pulumi . Context , name string , args * CacheArgs , opts ... pulumi . ResourceOption ) ( * Cache , error ) { if args == nil { return nil , errors . New ( " " ) } if args . CacheSizeInGb == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . SkuName == nil { return nil , errors . New ( " " ) } if args . SubnetId == nil { return nil , errors . New ( " " ) } var resource Cache err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewCache registers a new resource with the given unique name, arguments, and options.
NewCache registers a new resource with the given unique name arguments and options .