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

	if args.Inputs == nil {
		return nil, errors.New("invalid value for required argument 'Inputs'")
	}
	if args.Output == nil {
		return nil, errors.New("invalid value for required argument 'Output'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.Script == nil {
		return nil, errors.New("invalid value for required argument 'Script'")
	}
	if args.StreamAnalyticsJobName == nil {
		return nil, errors.New("invalid value for required argument 'StreamAnalyticsJobName'")
	}
	var resource FunctionJavaScriptUDF
	err := ctx.RegisterResource("azure:streamanalytics/functionJavaScriptUDF:FunctionJavaScriptUDF", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewFunctionJavaScriptUDF registers a new resource with the given unique name, arguments, and options.
NewFunctionJavaScriptUDF registers a new resource with the given unique name, arguments, and options.
// NewFunctionJavaScriptUDF registers a new resource with the given unique name arguments and options .
func NewFunctionJavaScriptUDF(ctx *pulumi.Context,
	name string, args *FunctionJavaScriptUDFArgs, opts ...pulumi.ResourceOption) (*FunctionJavaScriptUDF, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Inputs == nil {
		return nil, errors.New("invalid value for required argument 'Inputs'")
	}
	if args.Output == nil {
		return nil, errors.New("invalid value for required argument 'Output'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.Script == nil {
		return nil, errors.New("invalid value for required argument 'Script'")
	}
	if args.StreamAnalyticsJobName == nil {
		return nil, errors.New("invalid value for required argument 'StreamAnalyticsJobName'")
	}
	var resource FunctionJavaScriptUDF
	err := ctx.RegisterResource("azure:streamanalytics/functionJavaScriptUDF:FunctionJavaScriptUDF", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewFunctionJavaScriptUDF ( ctx * pulumi . Context , name string , args * FunctionJavaScriptUDFArgs , opts ... pulumi . ResourceOption ) ( * FunctionJavaScriptUDF , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Inputs == nil { return nil , errors . New ( " " ) } if args . Output == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . Script == nil { return nil , errors . New ( " " ) } if args . StreamAnalyticsJobName == nil { return nil , errors . New ( " " ) } var resource FunctionJavaScriptUDF err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewFunctionJavaScriptUDF registers a new resource with the given unique name, arguments, and options.
NewFunctionJavaScriptUDF registers a new resource with the given unique name arguments and options .