modify_event_subscription
async
¶
modify_event_subscription(
*,
config_overrides: Optional[AsyncRDSClientConfig] = 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/async_rds.py
12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 | |