modifyEventSubscription
inline suspend fun RdsClient.modifyEventSubscription(crossinline block: ModifyEventSubscriptionRequest.Builder.() -> Unit): ModifyEventSubscriptionResponse
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.
Samples
fun main() {
//sampleStart
// The following example turns off the specified event subscription, so that it no longer publishes
// notifications to the specified Amazon Simple Notification Service topic.
val resp = rdsClient.modifyEventSubscription {
subscriptionName = "my-instance-events"
enabled = false
}
//sampleEnd
}