describeEvents
abstract suspend fun describeEvents(input: DescribeEventsRequest = DescribeEventsRequest { }): DescribeEventsResponse
Returns events related to clusters, cache security groups, and cache parameter groups. You can obtain events specific to a particular cluster, cache security group, or cache parameter group by providing the name as a parameter.
By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary.
Samples
import aws.sdk.kotlin.services.elasticache.model.SourceType
fun main() {
//sampleStart
// Describes all the cache cluster events for the past 120 minutes.
val resp = elastiCacheClient.describeEvents {
sourceType = SourceType.fromValue("cache-cluster")
duration = 360
}
//sampleEnd
}
import aws.sdk.kotlin.services.elasticache.model.SourceType
fun main() {
//sampleStart
// Describes all the replication group events from 3 00P to 5 00P on November 11, 2016.
val resp = elastiCacheClient.describeEvents {
startTime = "2016-12-22T15:00:00.000Z"
}
//sampleEnd
}