deleteView

abstract suspend fun deleteView(input: DeleteViewRequest): DeleteViewResponse

Deletes the specified view. Queries that reference the view fail after it is deleted. Managed views cannot be deleted.

Samples

// The following example deletes a view. The response body is empty. Queries that reference the view
// fail after it is deleted. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.deleteView {
    name = "view.service_errors"
}