Skip to main content

ml_endpoints

Creates, updates, deletes, gets or lists a ml_endpoints resource.

Overview

Nameml_endpoints
TypeResource
Idaws.neptunedata.ml_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the inference endpoint.
endpointobjectThe endpoint definition.
endpoint_configobjectContains a Neptune ML configuration.
statusstringThe status of the inference endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ml_endpointselectid, regionneptuneIamRoleArnRetrieves details about an inference endpoint. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetMLEndpointStatus IAM action in that cluster.
list_ml_endpointsselectregionmaxItems, neptuneIamRoleArnLists existing inference endpoints. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ListMLEndpoints IAM action in that cluster.
create_ml_endpointinsertregionCreates a new Neptune ML inference endpoint that lets you query one specific model that the model-training process constructed. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:CreateMLEndpoint IAM action in that cluster.
delete_ml_endpointdeleteid, regionneptuneIamRoleArn, cleanCancels the creation of a Neptune ML inference endpoint. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:DeleteMLEndpoint IAM action in that cluster.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier of the inference endpoint.
regionstringAWS region (default: us-east-1)
cleanbooleanIf this flag is set to TRUE, all Neptune ML S3 artifacts should be deleted when the job is stopped. The default is FALSE.
maxItemsintegerThe maximum number of items to return (from 1 to 1024; the default is 10.
neptuneIamRoleArnstringThe ARN of an IAM role providing Neptune access to SageMaker and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will be thrown.

SELECT examples

Retrieves details about an inference endpoint. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetMLEndpointStatus IAM action in that cluster.

SELECT
id,
endpoint,
endpoint_config,
status
FROM aws.neptunedata.ml_endpoints
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND neptuneIamRoleArn = '{{ neptuneIamRoleArn }}'
;

INSERT examples

Creates a new Neptune ML inference endpoint that lets you query one specific model that the model-training process constructed. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:CreateMLEndpoint IAM action in that cluster.

INSERT INTO aws.neptunedata.ml_endpoints (
id,
mlModelTrainingJobId,
mlModelTransformJobId,
update,
neptuneIamRoleArn,
modelName,
instanceType,
instanceCount,
volumeEncryptionKMSKey,
region
)
SELECT
'{{ id }}',
'{{ mlModelTrainingJobId }}',
'{{ mlModelTransformJobId }}',
{{ update }},
'{{ neptuneIamRoleArn }}',
'{{ modelName }}',
'{{ instanceType }}',
{{ instanceCount }},
'{{ volumeEncryptionKMSKey }}',
'{{ region }}'
RETURNING
id,
arn,
creation_time_in_millis
;

DELETE examples

Cancels the creation of a Neptune ML inference endpoint. See Managing inference endpoints using the endpoints command. When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:DeleteMLEndpoint IAM action in that cluster.

DELETE FROM aws.neptunedata.ml_endpoints
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND neptuneIamRoleArn = '{{ neptuneIamRoleArn }}'
AND clean = '{{ clean }}'
;