Skip to content

Commit dbf5837

Browse files
author
AWS
committed
Amazon Neptune Graph Update: Adding a new option "parameters" for data plane api ExecuteQuery to support running parameterized query via SDK.
1 parent 3c8d740 commit dbf5837

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Neptune Graph",
4+
"contributor": "",
5+
"description": "Adding a new option \"parameters\" for data plane api ExecuteQuery to support running parameterized query via SDK."
6+
}

services/neptunegraph/src/main/resources/codegen-resources/service-2.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
{"shape":"AccessDeniedException"},
226226
{"shape":"InternalServerException"}
227227
],
228-
"documentation":"<p>Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a parameterized query call, you can use an HTTP request. </p> <note> <p> Non-parametrized queries are not considered for plan caching. You can force plan caching with <code>planCache=enabled</code>. The plan cache will be reused only for the same exact query. Slight variations in the query will not be able to reuse the query plan cache. </p> </note>",
228+
"documentation":"<p>Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a parameterized query call, you can use an HTTP request. </p> <p> 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: </p> <ul> <li> <p>neptune-graph:ReadDataViaQuery</p> </li> <li> <p>neptune-graph:WriteDataViaQuery</p> </li> <li> <p>neptune-graph:DeleteDataViaQuery</p> </li> </ul> <note> <p> Non-parametrized queries are not considered for plan caching. You can force plan caching with <code>planCache=enabled</code>. The plan cache will be reused only for the same exact query. Slight variations in the query will not be able to reuse the query plan cache. </p> </note>",
229229
"endpoint":{
230230
"hostPrefix":"{graphIdentifier}."
231231
},
@@ -353,7 +353,7 @@
353353
{"shape":"InternalServerException"},
354354
{"shape":"ResourceNotFoundException"}
355355
],
356-
"documentation":"<p>Retrieves the status of a specified query.</p>",
356+
"documentation":"<p>Retrieves the status of a specified query.</p> <note> <p> When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have the <code>neptune-graph:GetQueryStatus</code> IAM action attached. </p> </note>",
357357
"endpoint":{
358358
"hostPrefix":"{graphIdentifier}."
359359
},
@@ -727,7 +727,7 @@
727727
},
728728
"publicConnectivity":{
729729
"shape":"Boolean",
730-
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>"
730+
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>"
731731
},
732732
"kmsKeyIdentifier":{
733733
"shape":"KmsKeyArn",
@@ -793,7 +793,7 @@
793793
},
794794
"publicConnectivity":{
795795
"shape":"Boolean",
796-
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.</p>"
796+
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.</p>"
797797
},
798798
"vectorSearchConfiguration":{
799799
"shape":"VectorSearchConfiguration",
@@ -898,7 +898,7 @@
898898
},
899899
"publicConnectivity":{
900900
"shape":"Boolean",
901-
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable).</p>"
901+
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable).</p>"
902902
},
903903
"kmsKeyIdentifier":{
904904
"shape":"KmsKeyArn",
@@ -1220,6 +1220,17 @@
12201220
}
12211221
}
12221222
},
1223+
"Document":{
1224+
"type":"structure",
1225+
"members":{
1226+
},
1227+
"document":true
1228+
},
1229+
"DocumentValuedMap":{
1230+
"type":"map",
1231+
"key":{"shape":"String"},
1232+
"value":{"shape":"Document"}
1233+
},
12231234
"EdgeLabels":{
12241235
"type":"list",
12251236
"member":{"shape":"String"}
@@ -1270,6 +1281,10 @@
12701281
"shape":"QueryLanguage",
12711282
"documentation":"<p>The query language the query is written in. Currently only openCypher is supported.</p>"
12721283
},
1284+
"parameters":{
1285+
"shape":"DocumentValuedMap",
1286+
"documentation":"<p>The data parameters the query can use in JSON format. For example: {\"name\": \"john\", \"age\": 20}. (optional) </p>"
1287+
},
12731288
"planCache":{
12741289
"shape":"PlanCacheType",
12751290
"documentation":"<p>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 <code>READ</code> and <code>UPDATE</code> queries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.</p>"
@@ -2505,7 +2520,7 @@
25052520
},
25062521
"publicConnectivity":{
25072522
"shape":"Boolean",
2508-
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable).</p>"
2523+
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable).</p>"
25092524
}
25102525
}
25112526
},
@@ -2795,7 +2810,7 @@
27952810
},
27962811
"publicConnectivity":{
27972812
"shape":"Boolean",
2798-
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>"
2813+
"documentation":"<p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable.</p>"
27992814
},
28002815
"provisionedMemory":{
28012816
"shape":"ProvisionedMemory",

0 commit comments

Comments
 (0)