describeEvents

Returns events related to DB instances, DB clusters, DB parameter groups, DB security groups, DB snapshots, DB cluster snapshots, and RDS Proxies for the past 14 days. Events specific to a particular DB instance, DB cluster, DB parameter group, DB security group, DB snapshot, DB cluster snapshot group, or RDS Proxy can be obtained by providing the name as a parameter.

For more information on working with events, see Monitoring Amazon RDS events in the Amazon RDS User Guide and Monitoring Amazon Aurora events in the Amazon Aurora User Guide.

By default, RDS returns events that were generated in the past hour.

Samples


fun main() { 
   //sampleStart 
   // The following retrieves details for the events that have occurred for the specified DB instance.
val resp = rdsClient.describeEvents {
    sourceIdentifier = "test-instance"
    sourceType = SourceType.fromValue("db-instance")
} 
   //sampleEnd
}