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

	if args.JobAgentId == nil {
		return nil, errors.New("invalid value for required argument 'JobAgentId'")
	}
	if args.Password == nil {
		return nil, errors.New("invalid value for required argument 'Password'")
	}
	if args.Username == nil {
		return nil, errors.New("invalid value for required argument 'Username'")
	}
	var resource JobCredential
	err := ctx.RegisterResource("azure:mssql/jobCredential:JobCredential", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewJobCredential registers a new resource with the given unique name, arguments, and options.
NewJobCredential registers a new resource with the given unique name, arguments, and options.
// NewJobCredential registers a new resource with the given unique name arguments and options .
func NewJobCredential(ctx *pulumi.Context,
	name string, args *JobCredentialArgs, opts ...pulumi.ResourceOption) (*JobCredential, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.JobAgentId == nil {
		return nil, errors.New("invalid value for required argument 'JobAgentId'")
	}
	if args.Password == nil {
		return nil, errors.New("invalid value for required argument 'Password'")
	}
	if args.Username == nil {
		return nil, errors.New("invalid value for required argument 'Username'")
	}
	var resource JobCredential
	err := ctx.RegisterResource("azure:mssql/jobCredential:JobCredential", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewJobCredential ( ctx * pulumi . Context , name string , args * JobCredentialArgs , opts ... pulumi . ResourceOption ) ( * JobCredential , error ) { if args == nil { return nil , errors . New ( " " ) } if args . JobAgentId == nil { return nil , errors . New ( " " ) } if args . Password == nil { return nil , errors . New ( " " ) } if args . Username == nil { return nil , errors . New ( " " ) } var resource JobCredential err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewJobCredential registers a new resource with the given unique name, arguments, and options.
NewJobCredential registers a new resource with the given unique name arguments and options .