DatabaseMigrationService.Client.
modify_event_subscription
(**kwargs)¶Modifies an existing DMS event notification subscription.
See also: AWS API Documentation
Request Syntax
response = client.modify_event_subscription(
SubscriptionName='string',
SnsTopicArn='string',
SourceType='string',
EventCategories=[
'string',
],
Enabled=True|False
)
[REQUIRED]
The name of the DMS event notification subscription to be modified.
The type of DMS resource that generates the events you want to subscribe to.
Valid values: replication-instance | replication-task
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.
dict
Response Syntax
{
'EventSubscription': {
'CustomerAwsId': 'string',
'CustSubscriptionId': 'string',
'SnsTopicArn': 'string',
'Status': 'string',
'SubscriptionCreationTime': 'string',
'SourceType': 'string',
'SourceIdsList': [
'string',
],
'EventCategoriesList': [
'string',
],
'Enabled': True|False
}
}
Response Structure
(dict) --
EventSubscription (dict) --
The modified event subscription.
CustomerAwsId (string) --
The Amazon Web Services customer account associated with the DMS event notification subscription.
CustSubscriptionId (string) --
The DMS event notification subscription Id.
SnsTopicArn (string) --
The topic ARN of the DMS event notification subscription.
Status (string) --
The status of the DMS event notification subscription.
Constraints:
Can be one of the following: creating | modifying | deleting | active | no-permission | topic-not-exist
The status "no-permission" indicates that DMS no longer has permission to post to the SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
SubscriptionCreationTime (string) --
The time the DMS event notification subscription was created.
SourceType (string) --
The type of DMS resource that generates events.
Valid values: replication-instance | replication-server | security-group | replication-task
SourceIdsList (list) --
A list of source Ids for the event subscription.
EventCategoriesList (list) --
A lists of event categories.
Enabled (boolean) --
Boolean value that indicates if the event subscription is enabled.
Exceptions
DatabaseMigrationService.Client.exceptions.ResourceQuotaExceededFault
DatabaseMigrationService.Client.exceptions.ResourceNotFoundFault
DatabaseMigrationService.Client.exceptions.SNSInvalidTopicFault
DatabaseMigrationService.Client.exceptions.SNSNoAuthorizationFault
DatabaseMigrationService.Client.exceptions.KMSAccessDeniedFault
DatabaseMigrationService.Client.exceptions.KMSDisabledFault
DatabaseMigrationService.Client.exceptions.KMSInvalidStateFault
DatabaseMigrationService.Client.exceptions.KMSNotFoundFault
DatabaseMigrationService.Client.exceptions.KMSThrottlingFault