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.

Creates an DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you specify both the SourceType and SourceIds, such as SourceType = replication-instance and SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for the specified source. If you specify a SourceType but don't specify a SourceIdentifier, you receive notice of the events for that source type for all your DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all DMS sources belonging to your customer account.

For more information about DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateEventSubscriptionAsync.

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

Syntax

C#
public abstract CreateEventSubscriptionResponse CreateEventSubscription(
         CreateEventSubscriptionRequest request
)

Parameters

request
Type: Amazon.DatabaseMigrationService.Model.CreateEventSubscriptionRequest

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

Return Value


The response from the CreateEventSubscription service method, as returned by DatabaseMigrationService.

Exceptions

ExceptionCondition
KMSAccessDeniedException The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.
KMSDisabledException The specified KMS key isn't enabled.
KMSInvalidStateException The state of the specified KMS resource isn't valid for this request.
KMSNotFoundException The specified KMS entity or resource can't be found.
KMSThrottlingException This request triggered KMS request throttling.
ResourceAlreadyExistsException The resource you are attempting to create already exists.
ResourceNotFoundException The resource could not be found.
ResourceQuotaExceededException The quota for this resource quota has been exceeded.
SNSInvalidTopicException The SNS topic is invalid.
SNSNoAuthorizationException You are not authorized for the SNS subscription.

Version Information

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

See Also