CmdID

CmdID / aws / aws dms

aws dms modify-event-subscription

Modifies an existing DMS event notification subscription. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To modify an event subscription

The following modify-event-subscription example changes the source type of an event subscription.

aws dms modify-event-subscription --subscription-name "my-dms-events" --source-type replication-taskIdentify
--subscription-nameThe name of the DMS event notification subscription to be modified.
--source-typeThe type of DMS resource that generates the events you want to subscribe to.
Its output
{
    "EventSubscription": {
        "CustomerAwsId": "123456789012",
        "CustSubscriptionId": "my-dms-events",
        "SnsTopicArn": "arn:aws:sns:us-west-2:123456789012:my-sns-topic",
        "Status": "modifying",
        "SubscriptionCreationTime": "2020-05-29 17:04:40.262",
        "SourceType": "replication-task",
        "Enabled": true
    }
}

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

Options

5 in the AWS CLI reference
--enabledA Boolean value; set to true to activate the subscription.
--event-categoriesA list of event categories for a source type that you want to subscribe to.
--sns-topic-arnThe Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification.
--source-typeThe type of DMS resource that generates the events you want to subscribe to.
--subscription-nameThe name of the DMS event notification subscription to be modified.