ModifyEventSubscription - Amazon Database Migration Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Modifies an existing Amazon DMS event notification subscription.

Request Syntax

{ "Enabled": boolean, "EventCategories": [ "string" ], "SnsTopicArn": "string", "SourceType": "string", "SubscriptionName": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.


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

Type: Boolean

Required: No


A list of event categories for a source type that you want to subscribe to. Use the DescribeEventCategories action to see a list of event categories.

Type: Array of strings

Required: No


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

Type: String

Required: No


The type of Amazon DMS resource that generates the events you want to subscribe to.

Valid values: replication-instance | replication-task

Type: String

Required: No


The name of the Amazon DMS event notification subscription to be modified.

Type: String

Required: Yes

Response Syntax

{ "EventSubscription": { "CustomerAwsId": "string", "CustSubscriptionId": "string", "Enabled": boolean, "EventCategoriesList": [ "string" ], "SnsTopicArn": "string", "SourceIdsList": [ "string" ], "SourceType": "string", "Status": "string", "SubscriptionCreationTime": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


The modified event subscription.

Type: EventSubscription object


For information about the errors that are common to all actions, see Common Errors.


The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.

HTTP Status Code: 400


The specified KMS key isn't enabled.

HTTP Status Code: 400


The state of the specified Amazon KMS resource isn't valid for this request.

HTTP Status Code: 400


The specified Amazon KMS entity or resource can't be found.

HTTP Status Code: 400


This request triggered Amazon KMS request throttling.

HTTP Status Code: 400


The resource could not be found.

HTTP Status Code: 400


The quota for this resource quota has been exceeded.

HTTP Status Code: 400


The SNS topic is invalid.

HTTP Status Code: 400


You are not authorized for the SNS subscription.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: