LinkedAccount

sealed class LinkedAccount

Represents different linked accounts that can be linked to an embedded wallet. Supports email, SMS, JWT, and OAuth2 approaches.

Inheritors

Types

Link copied to clipboard

Developer JWT linked account with key ID and subject.

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

Email-based linked account.

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

OAuth2 provider linked account (Google, Apple, X, Telegram, GitHub).

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

SMS-based linked account 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.