Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Guard Hooks

Focus mode
Guard Hooks - AWS CloudFormation

To use an AWS CloudFormation Guard Hook in your account, you must activate the Hook for the account and Region where you want to use it. Activating a Hook makes it usable in stack operations in the account and Region where it's activated.

When you activate a Guard Hook, CloudFormation creates an entry in your account's registry for the activated Hook as a private Hook. This allows you to set any configuration properties the Hook includes. Configuration properties define how the Hook is configured for a given AWS account and Region.

AWS CLI commands for working with Guard Hooks

The AWS CLI commands for working with Guard Hooks include:

  • activate-type to start the activation process for a Guard Hook.

  • set-type-configuration to specify the configuration data for a Hook in your account.

  • list-types to list the Hooks in your account.

  • describe-type to return detailed information about a specific Hook or specific Hook version, including current configuration data.

  • deactivate-type to remove a previously activated Hook from your account.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.