modify_event_subscription
¶
modify_event_subscription(
*,
config_overrides: Optional[RDSClientConfig] = 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 RDS event notification subscription. 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 source type (SourceType) in Events in the Amazon RDS User Guide or by using the DescribeEventCategories operation.
Parameters:
-
subscription_name(Optional[String], default:None) –The name of the RDS 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. For RDS Proxy events, specify
db-proxy. If this value isn't specified, all events are returned.Valid Values:
db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment -
event_categories(Optional[EventCategoriesList], default:None) –A list of event categories for a source type (
SourceType) that you want to subscribe to. You can see a list of the categories for a given source type in Events in the Amazon RDS User Guide or by using theDescribeEventCategoriesoperation. -
enabled(Optional[BooleanOptional], default:None) –Specifies whether to activate the subscription.
Raises:
-
EventSubscriptionQuotaExceededFault–You have reached the maximum number of event subscriptions.
-
SNSInvalidTopicFault–SNS has responded that there is a problem with the SNS topic specified.
-
SNSNoAuthorizationFault–You do not have permission to publish to the SNS topic ARN.
-
SNSTopicArnNotFoundFault–The SNS topic ARN does not exist.
-
SubscriptionCategoryNotFoundFault–The supplied category does not exist.
-
SubscriptionNotFoundFault–The subscription name does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To modify an event subscription The following example turns off the specified event subscription, so that it no longer publishes notifications to the specified Amazon Simple Notification Service topic.
Source code in docs_src/capo_rds/_services/rds.py
11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 | |