startActivityStream

Starts a database activity stream to monitor activity on the database. 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

// The following example starts an asynchronous activity stream to monitor an Aurora cluster named my
// pg cluster.
val resp = rdsClient.startActivityStream {
    resourceArn = "arn:aws:rds:us-east-1:1234567890123:cluster:my-pg-cluster"
    mode = ActivityStreamMode.fromValue("async")
    kmsKeyId = "arn:aws:kms:us-east-1:1234567890123:key/a12c345d-6ef7-890g-h123-456i789jk0l1"
    applyImmediately = true
}