agent/taskresource/ssmsecret/ssmsecret.go
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()
}
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()
}
func ( secret * SSMSecretResource ) ApplyTransition ( nextState resourcestatus . ResourceStatus ) error { transitionFunc , ok := secret . resourceStatusToTransitionFunction [ nextState ] if ! ok { return errors . Errorf ( " " , secret . GetName ( ) , secret . StatusString ( nextState ) ) } return transitionFunc ( ) }
// ApplyTransition calls the function required to move to the specified status
ApplyTransition calls the function required to move to the specified status