

# カスタムエンドポイントの編集
<a name="aurora-endpoint-editing"></a>

カスタムエンドポイントのプロパティを編集して、エンドポイントに関連付けられている DB インスタンスを変更できます。静的リストと除外リストの間でエンドポイントを変更することもできます。これらのエンドポイントプロパティの詳細については、「[カスタムエンドポイントのメンバーシップルール](Aurora.Endpoints.Custom.Considerations.md#Aurora.Endpoints.Custom.Membership)」を参照してください。

編集アクションによる変更の進行中も、カスタムエンドポイントへの接続やカスタムエンドポイントの使用を続行できます。

## コンソール
<a name="aurora-edit-endpoint.console"></a>

AWS マネジメントコンソール でカスタムエンドポイントを編集するには、クラスターの詳細ページでエンドポイントを選択するか、エンドポイントの詳細ページを表示して、[**編集**] アクションを選択します。

![カスタムエンドポイントの編集。](http://docs.aws.amazon.com/ja_jp/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) コマンドを実行します。

以下のコマンドは、カスタムエンドポイントに適用される DB インスタンスのセットを変更し、必要に応じて静的リストまたは除外リストの動作間を切り替えます。`--static-members` パラメータと `--excluded-members` パラメータは、スペースで区切られた DB インスタンス識別子のリストを使用します。

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) オペレーションを実行します。