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
12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 | |