modify_event_subscription
async
¶
modify_event_subscription(
*,
config_overrides: Optional[AsyncNeptuneClientConfig] = 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/async_neptune.py
4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 | |