Rule

sealed class Rule

Top-level rule definition. {@code telemetryRule} members are optional at the Smithy level to support PATCH semantics on UpdateAlert (send only the sub-blocks you want to change). On CreateAlert, presence is enforced by the service-side validator.

Inheritors

Types

Link copied to clipboard
object SdkUnknown : Rule
Link copied to clipboard
data class TelemetryRule(val value: TelemetryRule) : Rule

The telemetry-based rule definition.

Functions

Link copied to clipboard

Casts this Rule as a TelemetryRule and retrieves its aws.sdk.kotlin.services.cloudwatchomni.model.TelemetryRule value. Throws an exception if the Rule is not a TelemetryRule.

Link copied to clipboard

Casts this Rule as a TelemetryRule and retrieves its aws.sdk.kotlin.services.cloudwatchomni.model.TelemetryRule value. Returns null if the Rule is not a TelemetryRule.