modify_event_subscription
¶
modify_event_subscription(
*,
config_overrides: Optional[NeptuneClientConfig] = 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 event notification subscription. Note that you can't modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.
You can see a list of the event categories for a given SourceType by using the DescribeEventCategories action.
Parameters:
-
subscription_name(Optional[String], default:None) –The name of the 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 a DB instance, you would 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 | db-snapshot
-
event_categories(Optional[EventCategoriesList], default:None) –A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType by using the DescribeEventCategories action.
-
enabled(Optional[BooleanOptional], default:None) –A Boolean value; set to true to activate the subscription.
Raises:
-
EventSubscriptionQuotaExceededFault–You have exceeded the number of events you can subscribe to.
-
SNSInvalidTopicFault–The SNS topic is invalid.
-
SNSNoAuthorizationFault–There is no SNS authorization.
-
SNSTopicArnNotFoundFault–The ARN of the SNS topic could not be found.
-
SubscriptionCategoryNotFoundFault–The designated subscription category could not be found.
-
SubscriptionNotFoundFault–The designated subscription could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune/_services/neptune.py
4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 | |