

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# AWS Control Tower 像 Hook 一样的主动控制
<a name="proactive-controls-hooks"></a>

 AWS Control Tower 控制目录提供了预先构建的合规性规则（主动控制），您可以将其作为 Hook 来实现。这种方法可以节省设置时间，并帮助您根据组织中的 AWS 最佳实践验证资源配置，而无需编写代码。

主动控制会在部署之前评估 AWS 资源，防止创建不合规的资源，而不是在以后发现问题。他们根据既定的安全、运营和治理标准检查配置。

要开始使用，只需在所需的账户和区域中激活基于控制的主动挂钩即可。然后，这些 Hook 将评估特定的目标类型，以确保符合您选择的控件。

有关可用主动控制的更多信息，请参阅[AWS Control Tower 控制目录](https://docs.aws.amazon.com/controltower/latest/controlreference/controls-reference.html)。

**Topics**
+ [AWS CLI 用于使用 Hook 的命令](#commonly-used-commands-proactive-controls-hooks)
+ [在您的账户中激活基于主动控制的 Hook](proactive-controls-hooks-activate-hooks.md)
+ [删除账户中基于主动控制的 Hook](proactive-controls-hooks-delete-hooks.md)

## AWS CLI 用于使用 Hook 的命令
<a name="commonly-used-commands-proactive-controls-hooks"></a>

使用基于主动控制的 Hook 的 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)启动基于主动控制的 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)指定要应用于账户中基于主动控制的 Hook 的控件。
+ [https://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-types.html](https://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-types.html)列出你账户中的 Hook。
+ [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)从您的账户中移除之前激活的 Hook。