updateView
Updates an existing view's definition and/or description. Only the fields you provide are changed. Managed views cannot be updated.
Samples
// The following example changes only the definition the omitted description is left unchanged. Managed
// views cannot be updated. The response carries the view s effective configuration. Payloads are shown as
// JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.updateView {
name = "view.service_errors"
definition = "SELECT resource['attributes']['service.name'] AS service, COUNT(*) AS error_count FROM \"logs.default\" WHERE status['code'] IN ('2', 'ERROR') GROUP BY service"
}Content copied to clipboard