code: func (s *RunTaskInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "RunTaskInput"}
  	if s.TaskDefinition == nil {
  		invalidParams.Add(request.NewErrParamRequired("TaskDefinition"))
  	}
  	if s.NetworkConfiguration != nil {
  		if err := s.NetworkConfiguration.Validate(); err != nil {
  			invalidParams.AddNested("NetworkConfiguration", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.Overrides != nil {
  		if err := s.Overrides.Validate(); err != nil {
  			invalidParams.AddNested("Overrides", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.Tags != nil {
  		for i, v := range s.Tags {
  			if v == nil {
  				continue
  			}
  			if err := v.Validate(); err != nil {
  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  			}
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.