code: func (secret *SSMSecretResource) ApplyTransition(nextState resourcestatus.ResourceStatus) error {
  	transitionFunc, ok := secret.resourceStatusToTransitionFunction[nextState]
  	if !ok {
  		return errors.Errorf("resource [%s]: transition to %s impossible", secret.GetName(),
  			secret.StatusString(nextState))
  	}
  	return transitionFunc()
  }
docs: // ApplyTransition calls the function required to move to the specified status