Updating a custom Hook
Updating a custom Hook allows revisions in the Hook to be made available in the CloudFormation registry.
To update a custom Hook, submit your revisions to the CloudFormation registry through the CloudFormation CLI submit operation.
$cfn submit
To specify the default version of your Hook in your account, use the set-type-default-version command and specify the type, type name, and version ID.
$aws cloudformation set-type-default-version \ --typeHOOK\ --type-nameMyCompany::Testing::MyTestHook\ --version-id00000003
To retrieve information about the versions of a Hook, use list-type-versions.
$aws cloudformation list-type-versions \ --typeHOOK\ --type-name "MyCompany::Testing::MyTestHook"