

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

# 在 Amazon SES 中管理組態集
<a name="managing-configuration-sets"></a>

您可以使用 SES 主控台、Amazon SES API v2 和 Amazon SES CLI v2 來建立、檢視、更新和刪除 Amazon SES 組態集。組態集也可以指派給已驗證身分，作為其預設組態集，每次透過此身分傳送電子郵件時都會套用。

**Topics**
+ [檢視、編輯及刪除組態集 (主控台)](#console-detail-configuration-sets)
+ [列出組態集 (AWS CLI)](#cli-list-configuration-sets)
+ [取得組態集詳細資訊 (AWS CLI)](#cli-get-configuration-set)
+ [刪除組態集 (AWS CLI)](#cli-delete-configuration-set)
+ [停止從組態集傳送電子郵件 (AWS CLI)](#cli-configuration-set-stop-sending)
+ [了解預設組態集](#default-config-sets)
+ [建立 Amazon SES 事件目的地](event-destinations-manage.md)
+ [在 Amazon SES 中指派 IP 集區](managing-ip-pools.md)
+ [設定自訂網域來處理開啟與點按追蹤](configure-custom-open-click-domains.md)

## 檢視、編輯及刪除組態集 (主控台)
<a name="console-detail-configuration-sets"></a><a name="proc-access-exist-config-set"></a>

**存取現有的組態集的詳細資訊頁面**

1. 登入 AWS 管理主控台 ，並在 [https://console.aws.amazon.com/ses/](https://console.aws.amazon.com/ses/)：// 開啟 Amazon SES 主控台。

1. 在導覽窗格中的 **Configuration** (組態) 下，選擇 **Configuration sets** (組態集)。

1. 從組態集清單中選擇**名稱**，以在**概觀**索引標籤中開啟其詳細資訊頁面，您可以在其中檢視、編輯或停用已選取的選項。選取**事件目的地**選項的標籤，即可完成相同的操作。如需每個選項及其欄位的詳細資訊，請參閱 中的相關章節[建立組態集合 (主控台)](creating-configuration-sets.md#config-sets-create-console)。

1. 在每個組態集的詳細資訊頁面頂端，可從**概觀**或**事件目的地**索引標籤中看到下列選項：
   + **Delete (刪除)** - 此按鈕會刪除您的組態集。
   + **Disable sending (停用傳送)** - 此按鈕將停止從您的組態集傳送電子郵件。

## 列出組態集 (AWS CLI)
<a name="cli-list-configuration-sets"></a>

您可以使用 中的 **list-configuration-sets**命令 AWS CLI 來產生與目前區域中您的帳戶相關聯的所有組態集清單，如下所示：

```
aws sesv2 list-configuration-sets
```

## 取得組態集詳細資訊 (AWS CLI)
<a name="cli-get-configuration-set"></a>

您可以使用 中的 **get-configuration-set**命令 AWS CLI 來取得特定組態集的詳細資訊，如下所示：

```
aws sesv2 get-configuration-set --configuration-set-name {{name}}
```

## 刪除組態集 (AWS CLI)
<a name="cli-delete-configuration-set"></a>

您可以使用 中的 **delete-configuration-set**命令 AWS CLI 來刪除特定組態設定，如下所示：

```
aws sesv2 delete-configuration-set --configuration-set-name {{name}}
```

## 停止從組態集傳送電子郵件 (AWS CLI)
<a name="cli-configuration-set-stop-sending"></a>

您可以使用 中的 **put-configuration-set-sending-options**命令 AWS CLI 來停止從特定組態集傳送電子郵件，如下所示：

```
aws sesv2 put-configuration-set-sending-options --configuration-set-name {{name}} --no-sending-enabled
```

若要開始再次傳送，請使用 `--sending-enabled` 選項執行相同命令，如下所示：

```
aws sesv2 put-configuration-set-sending-options --configuration-set-name {{name}} --sending-enabled
```

## 了解預設組態集
<a name="default-config-sets"></a>

本節說明將組態集指派為已驗證身分所使用之預設值的概念，協助您了解其優點和使用案例。

預設組態集的規則，會自動套用至您從與該組態集相關聯的電子郵件身分傳送的所有郵件。您可以在建立身分時，將預設組態集套用至電子郵件地址和網域身分，或在後續編輯身分時進行套用。

**Default configuration set considerations (預設組態集考量事項)**
+ 必須先建立組態集，才能為組態集與身分建立關聯。
+ 只有在身分已通過驗證的情況下，才會套用預設組態集。
+ 一個電子郵件身分一次只能與一個組態集建立關聯。不過，您可以將相同組態集套用到多個身分。
+ 電子郵件地址層級的預設組態集會覆寫網域層級的預設組態集。例如，與 *joe@example.com* 相關聯的預設組態集，會覆寫 *example.com* 網域的組態集。
+ 網域層級的預設組態會套用至該網域的所有電子郵件地址 (除非您驗證該網域的特定地址)。
+ 如果您刪除指定為身分預設組態集的組態集，然後嘗試透過該身分傳送電子郵件，那麼您對 Amazon SES 的呼叫會失敗，並顯示「錯誤的請求」錯誤。
+ 無法將預設組態集指派給[委派寄件者](sending-authorization-overview.md)正在使用的已驗證身分。
+ 如何指定作為身分之預設組態集的現有組態集實際上是已驗證身分的一項功能，因此身分工作流程中會相應地提供指示：
  + **在建立身分時指定預設組態集** - 請遵循[網域身分預設組態集](creating-identities.md#verified-domain-identity-default-config-set)或[電子郵件身分預設組態集](creating-identities.md#verified-email-identity-default-config-set) (位於[在 Amazon SES 中建立和驗證身分](creating-identities.md)章節) 的選用步驟 6 中提供的指示。
  + **指定現有身分的預設組態集** - 請遵循[使用主控台編輯身分](edit-verified-domain.md)中的步驟，以及步驟 5 的這些細節：

    1. 選擇 **Configuration set** (組態集) 索引標籤。

    1. 選擇 **Default configuration set** (預設組態集) 容器中的 **Edit** (編輯)。

    1. 選取清單方塊，然後選擇要作為預設值的現有組態集。

    1. 繼續遵循[使用主控台編輯身分](edit-verified-domain.md)中的後續步驟。

**注意**  
如果您指派為預設值的組態集已啟用評價指標，則使用預設組態集傳送的任何郵件都會產生額外費用，請參閱 [ CloudWatch 的每個指標價格](event-publishing-add-event-destination-cloudwatch.md#cw-add-pricing)。