EventReference

sealed class EventReference

An item referenced in a TimelineEvent that is involved in or somehow associated with an incident. You can specify an Amazon Resource Name (ARN) for an Amazon Web Services resource or a RelatedItem ID.

Inheritors

Types

Link copied to clipboard
data class RelatedItemId(val value: String) : EventReference

The ID of a RelatedItem referenced in a TimelineEvent.

Link copied to clipboard
data class Resource(val value: String) : EventReference

The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a TimelineEvent.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this EventReference as a RelatedItemId and retrieves its kotlin.String value. Throws an exception if the EventReference is not a RelatedItemId.

Link copied to clipboard

Casts this EventReference as a RelatedItemId and retrieves its kotlin.String value. Returns null if the EventReference is not a RelatedItemId.

Link copied to clipboard

Casts this EventReference as a Resource and retrieves its kotlin.String value. Throws an exception if the EventReference is not a Resource.

Link copied to clipboard

Casts this EventReference as a Resource and retrieves its kotlin.String value. Returns null if the EventReference is not a Resource.