code: func (s *CreateNamedQueryInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "CreateNamedQueryInput"}
  	if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 32 {
  		invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 32))
  	}
  	if s.Database == nil {
  		invalidParams.Add(request.NewErrParamRequired("Database"))
  	}
  	if s.Database != nil && len(*s.Database) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("Database", 1))
  	}
  	if s.Description != nil && len(*s.Description) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  	}
  	if s.Name == nil {
  		invalidParams.Add(request.NewErrParamRequired("Name"))
  	}
  	if s.Name != nil && len(*s.Name) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  	}
  	if s.QueryString == nil {
  		invalidParams.Add(request.NewErrParamRequired("QueryString"))
  	}
  	if s.QueryString != nil && len(*s.QueryString) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("QueryString", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.