docs: func (s *ConfigRule) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "ConfigRule"}
  	if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1))
  	}
  	if s.CreatedBy != nil && len(*s.CreatedBy) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("CreatedBy", 1))
  	}
  	if s.InputParameters != nil && len(*s.InputParameters) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("InputParameters", 1))
  	}
  	if s.Source == nil {
  		invalidParams.Add(request.NewErrParamRequired("Source"))
  	}
  	if s.Scope != nil {
  		if err := s.Scope.Validate(); err != nil {
  			invalidParams.AddNested("Scope", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.Source != nil {
  		if err := s.Source.Validate(); err != nil {
  			invalidParams.AddNested("Source", err.(request.ErrInvalidParams))
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }