It looks like this uses a new, not yet documented, top level attribute in a template: Hook.
At least, I haven't found any documentation for it other than the template they say to copy in the linked user guide for this feature. Definitely not supported in CDK.