Target

sealed class Target

The target account, organizational unit, or the root that is associated with an Security Hub configuration. The configuration can be a configuration policy or self-managed behavior.

Inheritors

Types

Link copied to clipboard
data class AccountId(val value: String) : Target

The Amazon Web Services account ID of the target account.

Link copied to clipboard
data class OrganizationalUnitId(val value: String) : Target

The organizational unit ID of the target organizational unit.

Link copied to clipboard
data class RootId(val value: String) : Target

The ID of the organization root.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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