將來源識別碼新增至 Amazon RDS 事件通知訂閱 - Amazon Aurora

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

將來源識別碼新增至 Amazon RDS 事件通知訂閱

您可以將來源識別碼 (產生事件的 Amazon RDS 來源) 新增至現有訂閱。

您可以在修改訂閱時選取或取消選取來源識別碼,使用 Amazon RDS 主控台輕鬆新增或移除來源識別碼。如需詳細資訊,請參閱修改 Amazon RDS 事件通知訂閱

若要將來源識別碼新增至 Amazon RDS 事件通知訂閱,請使用 AWS CLI add-source-identifier-to-subscription指令。包含下列必要參數:

  • --subscription-name

  • --source-identifier

範例

下列範例將來源識別碼 mysqldb 新增至 myrdseventsubscription 訂閱。

對於LinuxmacOS、或Unix:

aws rds add-source-identifier-to-subscription \ --subscription-name myrdseventsubscription \ --source-identifier mysqldb

在 Windows 中:

aws rds add-source-identifier-to-subscription ^ --subscription-name myrdseventsubscription ^ --source-identifier mysqldb

要將源標識符添加到 Amazon RDS 事件通知訂閱,請致電 Amazon RDS API AddSourceIdentifierToSubscription。包含下列必要參數:

  • SubscriptionName

  • SourceIdentifier