本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
將來源識別符從 Amazon RDS 事件通知訂閱中移除
如果您不再希望收到某個來源的事件通知,您可以從訂閱中移除該來源識別碼 (產生事件的 Amazon RDS 來源)。
您可以在修改訂閱時,使用 Amazon RDS 主控台選取或取消選取來源識別碼,以輕鬆地新增或移除來源識別碼。如需更多詳細資訊,請參閱 修改 Amazon RDS 事件通知訂閱。
使用 AWS CLI remove-source-identifier-from-subscription
命令將來源識別碼從 Amazon RDS 事件通知訂閱中移除。包含下列必要參數:
-
--subscription-name
-
--source-identifier
範例
下列範例將來源識別碼 mysqldb
從 myrdseventsubscription
訂閱中移除。
對於LinuxmacOS、或Unix:
aws rds remove-source-identifier-from-subscription \ --subscription-name
myrdseventsubscription
\ --source-identifiermysqldb
在Windows中:
aws rds remove-source-identifier-from-subscription ^ --subscription-name
myrdseventsubscription
^ --source-identifiermysqldb
使用 Amazon RDS API RemoveSourceIdentifierFromSubscription
命令將來源識別碼從 Amazon RDS 事件通知訂閱中移除。包含下列必要參數:
-
SubscriptionName
-
SourceIdentifier