Adds a new type of hook which is triggered before resource deletion.
We provide hooks for pre-create and pre-update, but not for pre-delete. Such a hook would allow users to make specific actions when a resource is deleted, like deregistration with external systems, and will provide the ability to validate deletion of critical elements.
The hook will be mirrored strictly on pre-create, such as it’s called only on resource deletion and not resource replacement. This part will be handled in a future spec.
This will look like this:
resource_registry: resources: my_server: hooks: pre-delete my_database: hooks: [pre-create, pre-delete]