

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

# 編輯自訂端點
<a name="aurora-endpoint-editing"></a>

您可以編輯自訂端點的屬性，以變更與該端點相關聯的資料庫執行個體。您也可以變更靜態清單和排除清單之間的端點。如果需要這些端點屬性的詳細資訊，請參閱 [自訂端點的成員資格規則](Aurora.Endpoints.Custom.Considerations.md#Aurora.Endpoints.Custom.Membership) 文件。

您可以在編輯動作的變更進行中時繼續連線至或使用自訂端點。

## 主控台
<a name="aurora-edit-endpoint.console"></a>

若要使用AWS 管理主控台編輯自訂端點，您可以在叢集詳細資訊頁面上選取端點，或是帶出端點的詳細資訊頁面，並選擇 **Edit (編輯)** 動作。

![\[編輯自訂端點。\]](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/AuroraUserGuide/images/AuroraEditCustomEndpoint.png)


## AWS CLI
<a name="aurora-edit-endpoint.cli"></a>

若要使用 AWS CLI 編輯自訂端點，請執行 [modify-db-cluster-endpoint](https://docs.aws.amazon.com/cli/latest/reference/rds/modify-db-cluster-endpoint.html) 命令。

下列命令會變更套用至自訂端點的資料庫執行個體集，並選擇性地在靜態或排除清單的行為之間切換。`--static-members` 和 `--excluded-members` 參數會採用以空格分隔的資料庫執行個體識別符清單。

對於 Linux、macOS 或 Unix：

```
aws rds modify-db-cluster-endpoint --db-cluster-endpoint-identifier my-custom-endpoint \
  --static-members db-instance-id-1 db-instance-id-2 db-instance-id-3 \
  --region region_name

aws rds modify-db-cluster-endpoint --db-cluster-endpoint-identifier my-custom-endpoint \
  --excluded-members db-instance-id-4 db-instance-id-5 \
  --region region_name
```

在 Windows 中：

```
aws rds modify-db-cluster-endpoint --db-cluster-endpoint-identifier my-custom-endpoint ^
  --static-members db-instance-id-1 db-instance-id-2 db-instance-id-3 ^
  --region region_name

aws rds modify-db-cluster-endpoint --db-cluster-endpoint-identifier my-custom-endpoint ^
  --excluded-members db-instance-id-4 db-instance-id-5 ^
  --region region_name
```

## RDS API
<a name="aurora-edit-endpoint.api"></a>

若要使用 RDS API 編輯自訂端點，請執行 [ModifyDBClusterEndpoint.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBClusterEndpoint.html.html) 操作。