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

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