modify_event_subscription
async
¶
modify_event_subscription(
subscription_name: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = 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/async_database_migration_service.py
7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 | |