Class BedrockBackend

  • All Implemented Interfaces:
    com.anthropic.backends.Backend

    
    public final class BedrockBackend
     implements Backend
                        

    The Amazon Bedrock backend that manages the AWS credentials required to access an Anthropic AI model on the Bedrock service and adapts requests and responses to Bedrock's requirements.

    Amazon Bedrock requires cryptographically-signed requests using credentials issued by AWS. These can be provided via system properties, environment variables, or other AWS facilities. They can be resolved automatically by the default AWS provider chains by calling Builder.fromEnv. Alternatively, the AWS credentials and region can be resolved independently and passed to Builder.awsCredentials and Builder.region should an alternative method of resolution be required.

    See the Amazon Bedrock and AWS documentation for details on how to configure AWS credentials.