LinkedAccount

sealed class LinkedAccount

Represents different linkedAccounts that can be linked to an embedded wallet. This union supports multiple linkedAccount approaches: email, SMS, JWT, and OAuth2.

Inheritors

Types

Link copied to clipboard

Developer JWT linkedAccount with key ID and subject

Link copied to clipboard
data class Email(val value: LinkedAccountEmail) : LinkedAccount

Email-based linkedAccount

Link copied to clipboard
data class OAuth2(val value: LinkedAccountOAuth2) : LinkedAccount

OAuth2 provider linkedAccount (Google, Apple, X, Telegram, GitHub)

Link copied to clipboard
Link copied to clipboard
data class Sms(val value: LinkedAccountSms) : LinkedAccount

SMS-based linkedAccount using phone number

Functions

Link copied to clipboard
Link copied to clipboard

Casts this LinkedAccount as a Email and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.LinkedAccountEmail value. Throws an exception if the LinkedAccount is not a Email.

Link copied to clipboard
Link copied to clipboard

Casts this LinkedAccount as a OAuth2 and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.LinkedAccountOAuth2 value. Throws an exception if the LinkedAccount is not a OAuth2.

Link copied to clipboard
Link copied to clipboard

Casts this LinkedAccount as a Sms and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.LinkedAccountSms value. Throws an exception if the LinkedAccount is not a Sms.

Link copied to clipboard

Casts this LinkedAccount as a Sms and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.LinkedAccountSms value. Returns null if the LinkedAccount is not a Sms.