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.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreateEventSubscription and EndCreateEventSubscription.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public virtual Task<CreateEventSubscriptionResponse> CreateEventSubscriptionAsync( CreateEventSubscriptionRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the CreateEventSubscription service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
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. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer