Skip to main content

gremlin_query_status

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

Overview

Namegremlin_query_status
TypeResource
Idaws.neptunedata.gremlin_query_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
query_eval_statsobjectThe evaluation status of the Gremlin query.
query_idstringThe ID of the query for which status is being returned.
query_stringstringThe Gremlin query string.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_gremlin_query_statusselectquery_id, regionGets the status of a specified Gremlin query. 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:GetQueryStatus IAM action in that cluster. Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).

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
query_idstringThe unique identifier that identifies the Gremlin query.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the status of a specified Gremlin query. 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:GetQueryStatus IAM action in that cluster. Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).

SELECT
query_eval_stats,
query_id,
query_string
FROM aws.neptunedata.gremlin_query_status
WHERE query_id = '{{ query_id }}' -- required
AND region = '{{ region }}' -- required
;