

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Guard 勾點
<a name="guard-hooks"></a>

若要在帳戶中使用 AWS CloudFormation Guard 勾點，您必須為要使用該勾點的帳戶和區域*啟用* 勾點。啟用勾點可在啟用勾點的帳戶和區域中的堆疊操作中使用。

當您啟用 Guard Hook 時，CloudFormation 會在您帳戶的登錄檔中為已啟用的 Hook 建立項目，做為私有 Hook。這可讓您設定勾點包含的任何組態屬性。組態屬性會定義如何為指定 AWS 帳戶 和 區域設定勾點。

**Topics**
+ [AWS CLI 使用 Guard Hooks 的 命令](#commonly-used-commands-guard-hooks)
+ [撰寫 Guard 規則來評估 Guard Hooks 的資源](guard-hooks-write-rules.md)
+ [準備建立 Guard Hook](guard-hooks-prepare-to-create-hook.md)
+ [在您的帳戶中啟用 Guard Hook](guard-hooks-activate-hooks.md)
+ [檢視您帳戶中 Guard Hooks 的日誌](guard-hooks-view-logs.md)
+ [刪除您帳戶中的 Guard Hook](guard-hooks-delete-hooks.md)

## AWS CLI 使用 Guard Hooks 的 命令
<a name="commonly-used-commands-guard-hooks"></a>

使用 Guard Hooks 的 AWS CLI 命令包括：
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/activate-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/activate-type.html) 啟動 Guard Hook 的啟用程序。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/set-type-configuration.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/set-type-configuration.html) 指定帳戶中勾點的組態資料。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-types.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-types.html) 列出您帳戶中的勾點。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-type.html) 傳回特定 Hook 或特定 Hook 版本的詳細資訊，包括目前的組態資料。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/deactivate-type.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/deactivate-type.html) 從您的帳戶中移除先前啟用的勾點。