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.
Removes a source identifier from an existing event notification subscription.
For .NET Core this operation is only available in asynchronous form. Please refer to RemoveSourceIdentifierFromSubscriptionAsync.
Namespace: Amazon.Neptune
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z
public virtual RemoveSourceIdentifierFromSubscriptionResponse RemoveSourceIdentifierFromSubscription( RemoveSourceIdentifierFromSubscriptionRequest request )
Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription service method.
Exception | Condition |
---|---|
SourceNotFoundException | The source could not be found. |
SubscriptionNotFoundException | The designated subscription could not be found. |
This example removes the specified source identifier from the specified DB event subscription.
var response = client.RemoveSourceIdentifierFromSubscription(new RemoveSourceIdentifierFromSubscriptionRequest { SourceIdentifier = "mymysqlinstance", SubscriptionName = "myeventsubscription" }); EventSubscription eventSubscription = response.EventSubscription;
.NET Framework:
Supported in: 4.5 and newer, 3.5