AWS SDK Version 3 for .NET
API Reference

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.

Container for the parameters to the ModifyEventSubscription operation. Modifies an existing event notification subscription. Note that you can't modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType by using the DescribeEventCategories action.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Neptune.AmazonNeptuneRequest
      Amazon.Neptune.Model.ModifyEventSubscriptionRequest

Namespace: Amazon.Neptune.Model
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z

Syntax

C#
public class ModifyEventSubscriptionRequest : AmazonNeptuneRequest
         IAmazonWebServiceRequest

The ModifyEventSubscriptionRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Enabled System.Boolean

Gets and sets the property Enabled.

A Boolean value; set to true to activate the subscription.

Public Property EventCategories System.Collections.Generic.List<System.String>

Gets and sets the property EventCategories.

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType by using the DescribeEventCategories action.

Public Property SnsTopicArn System.String

Gets and sets the property SnsTopicArn.

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

Public Property SourceType System.String

Gets and sets the property SourceType.

The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

Public Property SubscriptionName System.String

Gets and sets the property SubscriptionName.

The name of the event notification subscription.

Examples

This example changes the specified setting for the specified event notification subscription.

To change event notification subscription settings


var response = client.ModifyEventSubscription(new ModifyEventSubscriptionRequest 
{
    Enabled = true,
    EventCategories = new List<string> {
        "deletion",
        "low storage"
    },
    SourceType = "db-instance",
    SubscriptionName = "mymysqleventsubscription"
});

EventSubscription eventSubscription = response.EventSubscription;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5