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.

Adds a source identifier to an existing event notification subscription.

Note:

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

Syntax

C#
public abstract AddSourceIdentifierToSubscriptionResponse AddSourceIdentifierToSubscription(
         AddSourceIdentifierToSubscriptionRequest request
)
Parameters
request
Type: Amazon.Neptune.Model.AddSourceIdentifierToSubscriptionRequest

Container for the necessary parameters to execute the AddSourceIdentifierToSubscription service method.

Return Value
The response from the AddSourceIdentifierToSubscription service method, as returned by Neptune.

Exceptions

ExceptionCondition
SourceNotFoundException The source could not be found.
SubscriptionNotFoundException The designated subscription could not be found.

Examples

This example add a source identifier to an event notification subscription.

To add a source identifier to an event notification subscription


var response = client.AddSourceIdentifierToSubscription(new AddSourceIdentifierToSubscriptionRequest 
{
    SourceIdentifier = "mymysqlinstance",
    SubscriptionName = "mymysqleventsubscription"
});

EventSubscription eventSubscription = response.EventSubscription;

            

Version Information

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

See Also