Class BedrockMantleBackend.Builder

  • All Implemented Interfaces:

    
    public final class BedrockMantleBackend.Builder
    
                        

    A builder for a BedrockMantleBackend used to connect an Anthropic client to the Bedrock Mantle backend service.

    The AWS credentials and region can be extracted from the environment and set on the builder by calling fromEnv before calling build to create the BedrockMantleBackend. Alternatively, set the AWS credentials and region explicitly via awsCredentials and region before calling build. A custom AWS credentials provider can be passed to fromEnv or awsCredentialsProvider.

    You should set either the AWS credentials provider or the API key, but not both. If both are set, an error will occur.