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.
Namespace: Amazon.Neptune.Model
Assembly: AWSSDK.Neptune.dll
Version: 3.x.y.z
public class ModifyEventSubscriptionRequest : AmazonNeptuneRequest IAmazonWebServiceRequest
The ModifyEventSubscriptionRequest type exposes the following members
Name | Description | |
---|---|---|
ModifyEventSubscriptionRequest() |
Name | Type | Description | |
---|---|---|---|
Enabled | System.Boolean |
Gets and sets the property Enabled. A Boolean value; set to true to activate the subscription. |
|
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. |
|
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. |
|
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 |
|
SubscriptionName | System.String |
Gets and sets the property SubscriptionName. The name of the event notification subscription. |
This example changes the specified setting for the specified event notification subscription.
var response = client.ModifyEventSubscription(new ModifyEventSubscriptionRequest { Enabled = true, EventCategories = new List<string> { "deletion", "low storage" }, SourceType = "db-instance", SubscriptionName = "mymysqleventsubscription" }); EventSubscription eventSubscription = response.EventSubscription;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5