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