code: func (task *Task) getSSMSecretsResource() ([]taskresource.TaskResource, bool) {
  	task.lock.RLock()
  	defer task.lock.RUnlock()
  
  	res, ok := task.ResourcesMapUnsafe[ssmsecret.ResourceName]
  	return res, ok
  }
docs: // getSSMSecretsResource retrieves ssmsecret resource from resource map