code: func (s *Service) CreateTelegrafConfig(ctx context.Context, tc *platform.TelegrafConfig, userID platform.ID) error {
  	op := OpPrefix + platform.OpCreateTelegrafConfig
  	tc.ID = s.IDGenerator.ID()
  
  	pErr := s.putTelegrafConfig(ctx, tc)
  	if pErr != nil {
  		pErr.Op = op
  		return pErr
  	}
  
  	urm := &platform.UserResourceMapping{
  		ResourceID: tc.ID,
  		UserID:     userID,
  		UserType:   platform.Owner,
  		Resource:   platform.TelegrafsResource,
  	}
  	if err := s.CreateUserResourceMapping(ctx, urm); err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // CreateTelegrafConfig creates a new telegraf config and sets b.ID with the new identifier.