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

	if args.Delay == nil {
		return nil, errors.New("invalid value for required argument 'Delay'")
	}
	if args.MaxRetries == nil {
		return nil, errors.New("invalid value for required argument 'MaxRetries'")
	}
	if args.Timeout == nil {
		return nil, errors.New("invalid value for required argument 'Timeout'")
	}
	if args.Type == nil {
		return nil, errors.New("invalid value for required argument 'Type'")
	}
	var resource MonitorV1
	err := ctx.RegisterResource("openstack:loadbalancer/monitorV1:MonitorV1", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewMonitorV1 registers a new resource with the given unique name, arguments, and options.
NewMonitorV1 registers a new resource with the given unique name, arguments, and options.
// NewMonitorV1 registers a new resource with the given unique name arguments and options .
func NewMonitorV1(ctx *pulumi.Context,
	name string, args *MonitorV1Args, opts ...pulumi.ResourceOption) (*MonitorV1, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Delay == nil {
		return nil, errors.New("invalid value for required argument 'Delay'")
	}
	if args.MaxRetries == nil {
		return nil, errors.New("invalid value for required argument 'MaxRetries'")
	}
	if args.Timeout == nil {
		return nil, errors.New("invalid value for required argument 'Timeout'")
	}
	if args.Type == nil {
		return nil, errors.New("invalid value for required argument 'Type'")
	}
	var resource MonitorV1
	err := ctx.RegisterResource("openstack:loadbalancer/monitorV1:MonitorV1", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewMonitorV1 ( ctx * pulumi . Context , name string , args * MonitorV1Args , opts ... pulumi . ResourceOption ) ( * MonitorV1 , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Delay == nil { return nil , errors . New ( " " ) } if args . MaxRetries == nil { return nil , errors . New ( " " ) } if args . Timeout == nil { return nil , errors . New ( " " ) } if args . Type == nil { return nil , errors . New ( " " ) } var resource MonitorV1 err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewMonitorV1 registers a new resource with the given unique name, arguments, and options.
NewMonitorV1 registers a new resource with the given unique name arguments and options .