AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Adds a source identifier to an existing event notification subscription.
For .NET Core this operation is only available in asynchronous form. Please refer to AddSourceIdentifierToSubscriptionAsync.
Namespace: Amazon.Neptune
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z
public abstract AddSourceIdentifierToSubscriptionResponse AddSourceIdentifierToSubscription( AddSourceIdentifierToSubscriptionRequest request )
Container for the necessary parameters to execute the AddSourceIdentifierToSubscription service method.
Exception | Condition |
---|---|
SourceNotFoundException | The source could not be found. |
SubscriptionNotFoundException | The designated subscription could not be found. |
This example add a source identifier to an event notification subscription.
var response = client.AddSourceIdentifierToSubscription(new AddSourceIdentifierToSubscriptionRequest { SourceIdentifier = "mymysqlinstance", SubscriptionName = "mymysqleventsubscription" }); EventSubscription eventSubscription = response.EventSubscription;
.NET Framework:
Supported in: 4.5, 4.0, 3.5