modify_event_subscription
async
¶
modify_event_subscription(
*,
config_overrides: Optional[AsyncDocDBClientConfig] = None,
subscription_name: Optional[String] = None,
sns_topic_arn: Optional[String] = None,
source_type: Optional[String] = None,
event_categories: Optional[EventCategoriesList] = None,
enabled: Optional[BooleanOptional] = None,
) -> ModifyEventSubscriptionResult
Modifies an existing Amazon DocumentDB event notification subscription.
Parameters:
-
subscription_name(Optional[String], default:None) –The name of the Amazon DocumentDB event notification subscription.
-
sns_topic_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the 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 source that is generating the events. For example, if you want to be notified of events generated by an instance, set this parameter to
db-instance. If this value is not specified, all events are returned.Valid values:
db-instance,db-parameter-group,db-security-group -
event_categories(Optional[EventCategoriesList], default:None) –A list of event categories for a
SourceTypethat you want to subscribe to. -
enabled(Optional[BooleanOptional], default:None) –A Boolean value; set to
trueto activate the subscription.
Raises:
-
EventSubscriptionQuotaExceededFault–You have reached the maximum number of event subscriptions.
-
SNSInvalidTopicFault–Amazon SNS has responded that there is a problem with the specified topic.
-
SNSNoAuthorizationFault–You do not have permission to publish to the SNS topic Amazon Resource Name (ARN).
-
SNSTopicArnNotFoundFault–The SNS topic Amazon Resource Name (ARN) does not exist.
-
SubscriptionCategoryNotFoundFault–The provided category does not exist.
-
SubscriptionNotFoundFault–The subscription name does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_docdb/_services/async_doc_db.py
3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 | |