docs: func (s *IpPermission) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "IpPermission"}
  	if s.FromPort == nil {
  		invalidParams.Add(request.NewErrParamRequired("FromPort"))
  	}
  	if s.FromPort != nil && *s.FromPort < 1 {
  		invalidParams.Add(request.NewErrParamMinValue("FromPort", 1))
  	}
  	if s.IpRange == nil {
  		invalidParams.Add(request.NewErrParamRequired("IpRange"))
  	}
  	if s.Protocol == nil {
  		invalidParams.Add(request.NewErrParamRequired("Protocol"))
  	}
  	if s.ToPort == nil {
  		invalidParams.Add(request.NewErrParamRequired("ToPort"))
  	}
  	if s.ToPort != nil && *s.ToPort < 1 {
  		invalidParams.Add(request.NewErrParamMinValue("ToPort", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }