theHall
theHall

Reputation: 43

Connecting sagemaker using java sdk

Can anyone tell me how to connect to sagemaker using aws java sdk and invoke a endpoint which is arleady created using jupyter notebook?

Link -https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/sagemaker/AmazonSageMaker.html#createNotebookInstance-com.amazonaws.services.sagemaker.model.CreateNotebookInstanceRequest-

Upvotes: 0

Views: 1630

Answers (1)

Aaron
Aaron

Reputation: 101

You can use the AmazonSageMakerRuntimeClientBuilder to create a client and then use that client to call invokeEndpoint.

At a minimum, your InvokeEndpointRequest will need to have the endpointName and body set, but you should also specify the contentType and accept, as many models require that information.

Upvotes: 2

Related Questions