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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AmazonBedrockServiceSettings>Json deserializer forAmazonBedrockServiceSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests.final Stringmodel()Required - The base model ID or an ARN to a custom model based on a foundational model.static AmazonBedrockServiceSettingsfinal Stringprovider()The model provider for your deployment.final RateLimitSettingThis setting helps to minimize the number of rate limit errors returned from Watsonx.final Stringregion()Required - The region that your model or ARN is deployed in.final StringRequired - A valid AWS secret key that is paired with theaccess_key.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupAmazonBedrockServiceSettingsDeserializer(ObjectDeserializer<AmazonBedrockServiceSettings.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAmazonBedrockServiceSettings
-
-
Method Details
-
of
-
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
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
The model provider for your deployment. Note that some providers may support only certain task types. Supported providers include:amazontitan- available fortext_embeddingandcompletiontask typesanthropic- available forcompletiontask type onlyai21labs- available forcompletiontask type onlycohere- available fortext_embeddingandcompletiontask typesmeta- available forcompletiontask type onlymistral- available forcompletiontask type only
API name:
provider -
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
This setting helps to minimize the number of rate limit errors returned from Watsonx. By default, thewatsonxaiservice sets the number of requests allowed per minute to 120.API name:
rate_limit -
secretKey
Required - A valid AWS secret key that is paired with theaccess_key. For informationg about creating and managing access and secret keys, refer to the AWS documentation.API name:
secret_key -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAmazonBedrockServiceSettingsDeserializer
protected static void setupAmazonBedrockServiceSettingsDeserializer(ObjectDeserializer<AmazonBedrockServiceSettings.Builder> op)
-