Class AmazonBedrockServiceSettings

java.lang.Object
co.elastic.clients.elasticsearch.inference.AmazonBedrockServiceSettings
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class AmazonBedrockServiceSettings extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • accessKey

      public final String accessKey()
      Required - A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests.

      API name: access_key

    • model

      public final String model()
      Required - The base model ID or an ARN to a custom model based on a foundational model. The base model IDs can be found in the Amazon Bedrock documentation. Note that the model ID must be available for the provider chosen and your IAM user must have access to the model.

      API name: model

    • provider

      @Nullable public final String provider()
      The model provider for your deployment. Note that some providers may support only certain task types. Supported providers include:
      • amazontitan - available for text_embedding and completion task types
      • anthropic - available for completion task type only
      • ai21labs - available for completion task type only
      • cohere - available for text_embedding and completion task types
      • meta - available for completion task type only
      • mistral - available for completion task type only

      API name: provider

    • region

      public final String region()
      Required - The region that your model or ARN is deployed in. The list of available regions per model can be found in the Amazon Bedrock documentation.

      API name: region

    • rateLimit

      @Nullable public final RateLimitSetting rateLimit()
      This setting helps to minimize the number of rate limit errors returned from Watsonx. By default, the watsonxai service sets the number of requests allowed per minute to 120.

      API name: rate_limit

    • secretKey

      public final String secretKey()
      Required - A valid AWS secret key that is paired with the access_key. For informationg about creating and managing access and secret keys, refer to the AWS documentation.

      API name: secret_key

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupAmazonBedrockServiceSettingsDeserializer

      protected static void setupAmazonBedrockServiceSettingsDeserializer(ObjectDeserializer<AmazonBedrockServiceSettings.Builder> op)