Class AmazonSageMakerServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.AmazonSageMakerServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AmazonSageMakerServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AmazonSageMakerServiceSettings>Json deserializer forAmazonSageMakerServiceSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - A valid AWS access key that has permissions to use Amazon SageMaker and access to models for invoking requests.final AmazonSageMakerApiapi()Required - The API format to use when calling SageMaker.final IntegerThe maximum number of inputs in each batch.final IntegerThe number of dimensions returned by the text embedding models.final StringRequired - The name of the SageMaker endpoint.final StringThe inference component to directly invoke when calling a multi-component endpoint.of(Function<AmazonSageMakerServiceSettings.Builder, ObjectBuilder<AmazonSageMakerServiceSettings>> fn) final Stringregion()Required - The region that your endpoint or Amazon Resource Name (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 voidsetupAmazonSageMakerServiceSettingsDeserializer(ObjectDeserializer<AmazonSageMakerServiceSettings.Builder> op) final StringThe container to directly invoke when calling a multi-container endpoint.final StringThe model ID when calling a multi-model endpoint.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAmazonSageMakerServiceSettings
-
-
Method Details
-
of
-
accessKey
Required - A valid AWS access key that has permissions to use Amazon SageMaker and access to models for invoking requests.API name:
access_key -
endpointName
Required - The name of the SageMaker endpoint.API name:
endpoint_name -
api
Required - The API format to use when calling SageMaker. Elasticsearch will convert the POST _inference request to this data format when invoking the SageMaker endpoint.API name:
api -
region
Required - The region that your endpoint or Amazon Resource Name (ARN) is deployed in. The list of available regions per model can be found in the Amazon SageMaker documentation.API name:
region -
secretKey
Required - A valid AWS secret key that is paired with theaccess_key. For information about creating and managing access and secret keys, refer to the AWS documentation.API name:
secret_key -
targetModel
The model ID when calling a multi-model endpoint.API name:
target_model -
targetContainerHostname
The container to directly invoke when calling a multi-container endpoint.API name:
target_container_hostname -
inferenceComponentName
The inference component to directly invoke when calling a multi-component endpoint.API name:
inference_component_name -
batchSize
The maximum number of inputs in each batch. This value is used by inference ingestion pipelines when processing semantic values. It correlates to the number of times the SageMaker endpoint is invoked (one per batch of input).API name:
batch_size -
dimensions
The number of dimensions returned by the text embedding models. If this value is not provided, then it is guessed by making invoking the endpoint for thetext_embeddingtask.API name:
dimensions -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAmazonSageMakerServiceSettingsDeserializer
protected static void setupAmazonSageMakerServiceSettingsDeserializer(ObjectDeserializer<AmazonSageMakerServiceSettings.Builder> op)
-