modify_event_subscription
¶
modify_event_subscription(
subscription_name: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
sns_topic_arn: Optional[String] = None,
source_type: Optional[String] = None,
event_categories: Optional[EventCategoriesList] = None,
enabled: Optional[BooleanOptional] = None,
) -> ModifyEventSubscriptionResponse
Modifies an existing DMS event notification subscription.
Parameters:
-
subscription_name(String) –The name of the DMS event notification subscription to be modified.
-
sns_topic_arn(Optional[String], default:None) –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.
-
source_type(Optional[String], default:None) –The type of DMS resource that generates the events you want to subscribe to.
Valid values: replication-instance | replication-task
-
event_categories(Optional[EventCategoriesList], default:None) –A list of event categories for a source type that you want to subscribe to. Use the
DescribeEventCategoriesaction to see a list of event categories. -
enabled(Optional[BooleanOptional], default:None) –A Boolean value; set to true to activate the subscription.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
KMSAccessDeniedFault–The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.
-
KMSDisabledFault–The specified KMS key isn't enabled.
-
KMSInvalidStateFault–The state of the specified KMS resource isn't valid for this request.
-
KMSNotFoundFault–The specified KMS entity or resource can't be found.
-
KMSThrottlingFault–This request triggered KMS request throttling.
-
ResourceNotFoundFault–The resource could not be found.
-
ResourceQuotaExceededFault–The quota for this resource quota has been exceeded.
-
SNSInvalidTopicFault–The SNS topic is invalid.
-
SNSNoAuthorizationFault–You are not authorized for the SNS subscription.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 | |