docs: func (s *CreateUserDefinedFunctionInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "CreateUserDefinedFunctionInput"}
  	if s.CatalogId != nil && len(*s.CatalogId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("CatalogId", 1))
  	}
  	if s.DatabaseName == nil {
  		invalidParams.Add(request.NewErrParamRequired("DatabaseName"))
  	}
  	if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1))
  	}
  	if s.FunctionInput == nil {
  		invalidParams.Add(request.NewErrParamRequired("FunctionInput"))
  	}
  	if s.FunctionInput != nil {
  		if err := s.FunctionInput.Validate(); err != nil {
  			invalidParams.AddNested("FunctionInput", err.(request.ErrInvalidParams))
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }