Interface BedrockProvider<E extends Client>

Type Parameters:
E - the exact client type the provider builds
All Superinterfaces:
ClientProvider<E>
All Known Implementing Classes:
AnthropicBedrockMantleProvider, AnthropicBedrockProvider, BedrockCohereEmbeddingsProvider, BedrockConverseProvider

public interface BedrockProvider<E extends Client> extends ClientProvider<E>
What every Bedrock-hosted provider says about its credentials, whichever client family it builds: the AWS key pair under BedrockClients.SECRET_ID, or the identity the process runs under when role-based auth is on. One answer for the four Bedrock surfaces (native Anthropic, Mantle, Converse, Cohere embeddings) so a deployment cannot be configured for one and not another.
Since:
0.1 (2026-09-11)
Author:
Andrey Santrosyan
  • Method Details

    • credentialId

      default String credentialId()
      Description copied from interface: ClientProvider
      The id of the credential this provider's clients are constructed around, in the deployment's Secrets store: the one ClientProvider.createClient(ModelSpec) would fail without.
      Specified by:
      credentialId in interface ClientProvider<E extends Client>
    • credentialShapes

      default List<CredentialShape> credentialShapes()
      Two credentials, as AWS names them: the key pair and the region.
      Specified by:
      credentialShapes in interface ClientProvider<E extends Client>
    • platform

      default String platform()
      One platform for all four surfaces: a model disabled on base Bedrock is disabled on Mantle and Converse too.
      Specified by:
      platform in interface ClientProvider<E extends Client>
    • identityOf

      default String identityOf(String wireModelId)
      Every Bedrock surface lists every vendor, and a model must have one identity whichever surface listed it: Claude ids the Anthropic way, the rest the generic way.
      Specified by:
      identityOf in interface ClientProvider<E extends Client>
    • configured

      default boolean configured()
      Description copied from interface: ClientProvider
      Whether this deployment holds what ClientProvider.createClient(ModelSpec) needs. A local question - the store is consulted, no provider is called - so a picker may ask it for every catalog entry at first resolution.
      Specified by:
      configured in interface ClientProvider<E extends Client>
    • describeCredential

      default String describeCredential()
      Description copied from interface: ClientProvider
      How a person provides what ClientProvider.configured() checks, in words a refusal can carry (Secrets.describe(String) for the store in use).
      Specified by:
      describeCredential in interface ClientProvider<E extends Client>
    • connectionFacts

      default Map<String,String> connectionFacts()
      The region every Bedrock call goes to. Bedrock is regional and the catalog's us. and global. profile ids resolve against this region's endpoint, so a wrong region fails every call with a 400 that names neither - this fact is how a status surface makes that visible before the first call. When no region is configured anywhere, the AWS chain's own refusal is the fact: it names what it looked for, and hiding it would leave the row blank exactly when a person needs it.
      Specified by:
      connectionFacts in interface ClientProvider<E extends Client>