modify_event_subscription
¶
modify_event_subscription(
*,
config_overrides: Optional[DocDBClientConfig] = 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/doc_db.py
3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 | |