code: func (s *DescribeAlarmsInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "DescribeAlarmsInput"}
  	if s.ActionPrefix != nil && len(*s.ActionPrefix) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("ActionPrefix", 1))
  	}
  	if s.AlarmNamePrefix != nil && len(*s.AlarmNamePrefix) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("AlarmNamePrefix", 1))
  	}
  	if s.MaxRecords != nil && *s.MaxRecords < 1 {
  		invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.