asOAuth2
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.
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.