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.
Deletes an event notification subscription.
For .NET Core this operation is only available in asynchronous form. Please refer to DeleteEventSubscriptionAsync.
Namespace: Amazon.Neptune
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z
public virtual DeleteEventSubscriptionResponse DeleteEventSubscription( DeleteEventSubscriptionRequest request )
Container for the necessary parameters to execute the DeleteEventSubscription service method.
Exception | Condition |
---|---|
InvalidEventSubscriptionStateException | The event subscription is in an invalid state. |
SubscriptionNotFoundException | The designated subscription could not be found. |
This example deletes the specified DB event subscription.
var response = client.DeleteEventSubscription(new DeleteEventSubscriptionRequest { SubscriptionName = "myeventsubscription" }); EventSubscription eventSubscription = response.EventSubscription;
.NET Framework:
Supported in: 4.5 and newer, 3.5