stopActivityStream
inline suspend fun RdsClient.stopActivityStream(crossinline block: StopActivityStreamRequest.Builder.() -> Unit): StopActivityStreamResponse
Stops a database activity stream that was started using the Amazon Web Services console, the start-activity-stream
CLI command, or the StartActivityStream
operation.
For more information, see Monitoring Amazon Aurora with Database Activity Streams in the Amazon Aurora User Guide or Monitoring Amazon RDS with Database Activity Streams in the Amazon RDS User Guide.
Samples
fun main() {
//sampleStart
// The following example stops an activity stream in an Aurora cluster named my pg cluster.
val resp = rdsClient.stopActivityStream {
resourceArn = "arn:aws:rds:us-east-1:1234567890123:cluster:my-pg-cluster"
applyImmediately = true
}
//sampleEnd
}