Module Values.ExecuteQueryInputSource

Execute an openCypher query. When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached that allows one of the following IAM actions in that cluster, depending on the query: neptune-graph:ReadDataViaQuery neptune-graph:WriteDataViaQuery neptune-graph:DeleteDataViaQuery

Sourcetype nonrec t = {
  1. graphIdentifier : GraphIdentifier.t;
    (*

    The unique identifier of the Neptune Analytics graph.

    *)
  2. queryString : String_.t;
    (*

    The query string to be executed.

    *)
  3. language : QueryLanguage.t;
    (*

    The query language the query is written in. Currently only openCypher is supported.

    *)
  4. parameters : DocumentValuedMap.t option;
    (*

    The data parameters the query can use in JSON format. For example: {"name": "john", "age": 20}. (optional)

    *)
  5. planCache : PlanCacheType.t option;
    (*

    Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both READ and UPDATE queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.

    *)
  6. explainMode : ExplainMode.t option;
    (*

    The explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.

    *)
  7. queryTimeoutMilliseconds : Integer.t option;
    (*

    Specifies the query timeout duration, in milliseconds. (optional)

    *)
}
Sourceval context_ : string
Sourceval make : ?parameters:??? -> ?planCache:??? -> ?explainMode:??? -> ?queryTimeoutMilliseconds:??? -> graphIdentifier:GraphIdentifier.t -> queryString:String_.t -> language:QueryLanguage.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `Map of ([> `String of String_.t ] * [> `Structure of 'a list ]) list | `String of GraphIdentifier.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t