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 String
Required - A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests.final String
model()
Required - The base model ID or an ARN to a custom model based on a foundational model.static AmazonBedrockServiceSettings
final String
provider()
The model provider for your deployment.final RateLimitSetting
This setting helps to minimize the number of rate limit errors returned from Watsonx.final String
region()
Required - The region that your model or ARN is deployed in.final String
Required - A valid AWS secret key that is paired with theaccess_key
.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupAmazonBedrockServiceSettingsDeserializer
(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_embedding
andcompletion
task typesanthropic
- available forcompletion
task type onlyai21labs
- available forcompletion
task type onlycohere
- available fortext_embedding
andcompletion
task typesmeta
- available forcompletion
task type onlymistral
- available forcompletion
task 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, thewatsonxai
service 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAmazonBedrockServiceSettingsDeserializer
protected static void setupAmazonBedrockServiceSettingsDeserializer(ObjectDeserializer<AmazonBedrockServiceSettings.Builder> op)
-