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
3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 | |