in src/lib.go [11:32]
func GetCompositeActionType(actions *tfjson.Actions) ChangeAction {
switch {
case actions.NoOp():
return NoOp
case actions.Create():
return Create
case actions.Read():
return Read
case actions.Update():
return Update
case actions.Delete():
return Delete
case actions.CreateBeforeDestroy():
return CreateBeforeDestroy
case actions.DestroyBeforeCreate():
return DestroyBeforeCreate
case actions.Replace():
return Replace
default:
panic("detected a non-existent Action")
}
}