

# Amazon RDS イベント通知サブスクリプションからのソース識別子の削除
<a name="USER_Events.RemovingSource"></a>

そのソースのイベントの通知を今後は受け取らない場合、サブスクリプションからソース識別子 (イベントを生成する Amazon RDS ソース) を削除できます。

## コンソール
<a name="USER_Events.RemovingSource.Console"></a>

Amazon RDS コンソールを使用し、サブスクリプションを変更するときに選択または選択解除することで、ソース識別子を簡単に追加または削除できます。詳細については、「[Amazon RDS イベント通知サブスクリプションを変更する](USER_Events.Modifying.md)」を参照してください。

## AWS CLI
<a name="USER_Events.RemovingSource.CLI"></a>

Amazon RDS イベント通知サブスクリプションからソース識別子を削除するには、AWS CLI の [https://docs.aws.amazon.com/cli/latest/reference/rds/remove-source-identifier-from-subscription.html](https://docs.aws.amazon.com/cli/latest/reference/rds/remove-source-identifier-from-subscription.html) コマンドを使用します。以下の必須パラメータを含めます。
+ `--subscription-name`
+ `--source-identifier`

**Example**  
次の例は、ソース識別子 `mysqldb` を `myrdseventsubscription` サブスクリプションから削除します。  
Linux、macOS、Unix の場合:  

```
aws rds remove-source-identifier-from-subscription \
    --subscription-name myrdseventsubscription \
    --source-identifier mysqldb
```
Windows の場合:  

```
aws rds remove-source-identifier-from-subscription ^
    --subscription-name myrdseventsubscription ^
    --source-identifier mysqldb
```

## API
<a name="USER_Events.RemovingSource.API"></a>

Amazon RDS イベント通知サブスクリプションからソース識別子を削除するには、Amazon RDS API [https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RemoveSourceIdentifierFromSubscription.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RemoveSourceIdentifierFromSubscription.html) コマンドを使用します。以下の必須パラメータを含めます。
+ `SubscriptionName`
+ `SourceIdentifier`