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

	if args.Datastore == nil {
		return nil, errors.New("invalid value for required argument 'Datastore'")
	}
	if args.Size == nil {
		return nil, errors.New("invalid value for required argument 'Size'")
	}
	var resource Instance
	err := ctx.RegisterResource("openstack:database/instance:Instance", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewInstance registers a new resource with the given unique name, arguments, and options.
NewInstance registers a new resource with the given unique name, arguments, and options.
// NewInstance registers a new resource with the given unique name arguments and options .
func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Datastore == nil {
		return nil, errors.New("invalid value for required argument 'Datastore'")
	}
	if args.Size == nil {
		return nil, errors.New("invalid value for required argument 'Size'")
	}
	var resource Instance
	err := ctx.RegisterResource("openstack:database/instance:Instance", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewInstance ( ctx * pulumi . Context , name string , args * InstanceArgs , opts ... pulumi . ResourceOption ) ( * Instance , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Datastore == nil { return nil , errors . New ( " " ) } if args . Size == nil { return nil , errors . New ( " " ) } var resource Instance err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewInstance registers a new resource with the given unique name, arguments, and options.
NewInstance registers a new resource with the given unique name arguments and options .