getAlert

abstract suspend fun getAlert(input: GetAlertRequest): GetAlertResponse

Retrieves a single alert by its identifier. Use ListAlerts to enumerate alerts in the space.

Samples

// The following example retrieves an alert by its identifier, including the live evaluation state that
// CreateAlert does not report. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.getAlert {
    spaceId = "a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d"
    alertId = "c3d4e5f67a8b4c9d8e0f1a2b3c4d5e6f"
}