UserIdentifier

sealed class UserIdentifier

A structure that contains information to identify a user.

Inheritors

Types

Link copied to clipboard
data class Email(val value: String) : UserIdentifier

The email address of the user that you want to get identity context for.

Link copied to clipboard
Link copied to clipboard
data class UserArn(val value: String) : UserIdentifier

The Amazon Resource Name (ARN) of the user that you want to get identity context for.

Link copied to clipboard
data class UserName(val value: String) : UserIdentifier

The name of the user that you want to get identity context for.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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