

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

# 變更或停用通知
<a name="how-to-repository-email-console-edit"></a>

您可以使用 AWS CodeCommit 主控台來變更 2019 年 11 月 5 日之前建立的通知設定方式，包括傳送電子郵件給使用者的事件類型，以及用於傳送儲存庫相關電子郵件的 Amazon SNS 主題。您也可以使用 CodeCommit 主控台來管理訂閱主題的電子郵件地址和端點清單，或停用通知。<a name="how-to-repository-email-change-console"></a>

**變更通知設定**

1. 在 https：//[https://console.aws.amazon.com/codesuite/codecommit/home](https://console.aws.amazon.com/codesuite/codecommit/home) 開啟 CodeCommit 主控台。

1. 在 **Repositories (儲存庫)** 中，選擇您要設定 2019 年 11 月 5 日前建立之通知所在的儲存庫名稱。

1. 在導覽窗格中，選擇 **Settings (設定)**，然後選擇 **Notifications (通知)**。如果有橫幅通知您有通知而非通知規則，請選擇 **Manage existing notifications (管理現有通知**)。

1. 選擇**編輯**。

1. 進行變更，然後選擇 **Save ** (儲存變更)。

停用通知是暫時防止使用者接收有關儲存庫事件之電子郵件的一個簡單方法。

若要永久刪除 2019 年 11 月 5 日之前建立的通知，請依照 [刪除通知](how-to-repository-email-delete.md) 中的步驟進行操作。<a name="how-to-repository-email-disable-console"></a>

**若要關閉通知**

1. 在 https：//[https://console.aws.amazon.com/codesuite/codecommit/home](https://console.aws.amazon.com/codesuite/codecommit/home) 開啟 CodeCommit 主控台。

1. 在 **Repositories (儲存庫)** 中，選擇您要停用通知所在儲存庫的名稱。

1. 在導覽窗格中，選擇 **Settings (設定)**，然後選擇 **Notifications (通知)**。選擇 **Manage existing notifications (管理現有通知)**。

1. 選擇 **Edit (編輯)**, 然後在 **Event status (事件狀態)** 中使用滑桿來關閉 **Enable notifications (啟用通知)**。選擇**儲存**。

1. 事件狀態會變更為 **Disabled (已停用)**。不會傳送關於事件的電子郵件。當您停用通知時，會自動停用儲存庫的 CloudWatch Events 規則。請勿在 CloudWatch Events 主控台中手動變更其狀態。