@aws-sdk/client-neptune-graph 3.511.0 → 3.512.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +13 -0
- package/dist-es/protocols/Aws_restJson1.js +13 -0
- package/dist-types/commands/ExecuteQueryCommand.d.ts +18 -0
- package/dist-types/commands/GetQueryCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +11 -6
- package/dist-types/ts3.4/models/models_0.d.ts +5 -1
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -617,6 +617,7 @@ var se_ExecuteQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
617
617
|
(0, import_smithy_client.take)(input, {
|
|
618
618
|
explain: [, , `explainMode`],
|
|
619
619
|
language: [],
|
|
620
|
+
parameters: (_) => se_DocumentValuedMap(_, context),
|
|
620
621
|
planCache: [],
|
|
621
622
|
query: [, , `queryString`],
|
|
622
623
|
queryTimeoutMilliseconds: []
|
|
@@ -1550,6 +1551,18 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1550
1551
|
});
|
|
1551
1552
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1552
1553
|
}, "de_ValidationExceptionRes");
|
|
1554
|
+
var se_DocumentValuedMap = /* @__PURE__ */ __name((input, context) => {
|
|
1555
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1556
|
+
if (value === null) {
|
|
1557
|
+
return acc;
|
|
1558
|
+
}
|
|
1559
|
+
acc[key] = se_Document(value, context);
|
|
1560
|
+
return acc;
|
|
1561
|
+
}, {});
|
|
1562
|
+
}, "se_DocumentValuedMap");
|
|
1563
|
+
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1564
|
+
return input;
|
|
1565
|
+
}, "se_Document");
|
|
1553
1566
|
var de_GraphSnapshotSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1554
1567
|
return (0, import_smithy_client.take)(output, {
|
|
1555
1568
|
arn: import_smithy_client.expectString,
|
|
@@ -155,6 +155,7 @@ export const se_ExecuteQueryCommand = async (input, context) => {
|
|
|
155
155
|
body = JSON.stringify(take(input, {
|
|
156
156
|
explain: [, , `explainMode`],
|
|
157
157
|
language: [],
|
|
158
|
+
parameters: (_) => se_DocumentValuedMap(_, context),
|
|
158
159
|
planCache: [],
|
|
159
160
|
query: [, , `queryString`],
|
|
160
161
|
queryTimeoutMilliseconds: [],
|
|
@@ -1079,6 +1080,18 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1079
1080
|
});
|
|
1080
1081
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1081
1082
|
};
|
|
1083
|
+
const se_DocumentValuedMap = (input, context) => {
|
|
1084
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1085
|
+
if (value === null) {
|
|
1086
|
+
return acc;
|
|
1087
|
+
}
|
|
1088
|
+
acc[key] = se_Document(value, context);
|
|
1089
|
+
return acc;
|
|
1090
|
+
}, {});
|
|
1091
|
+
};
|
|
1092
|
+
const se_Document = (input, context) => {
|
|
1093
|
+
return input;
|
|
1094
|
+
};
|
|
1082
1095
|
const de_GraphSnapshotSummary = (output, context) => {
|
|
1083
1096
|
return take(output, {
|
|
1084
1097
|
arn: __expectString,
|
|
@@ -29,6 +29,21 @@ declare const ExecuteQueryCommand_base: {
|
|
|
29
29
|
* @public
|
|
30
30
|
* <p>Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a
|
|
31
31
|
* parameterized query call, you can use an HTTP request. </p>
|
|
32
|
+
* <p>
|
|
33
|
+
* When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached
|
|
34
|
+
* that allows one of the following IAM actions in that cluster, depending on the query:
|
|
35
|
+
* </p>
|
|
36
|
+
* <ul>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>neptune-graph:ReadDataViaQuery</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* <li>
|
|
41
|
+
* <p>neptune-graph:WriteDataViaQuery</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>neptune-graph:DeleteDataViaQuery</p>
|
|
45
|
+
* </li>
|
|
46
|
+
* </ul>
|
|
32
47
|
* <note>
|
|
33
48
|
* <p>
|
|
34
49
|
* Non-parametrized queries are not considered for plan caching. You can force plan caching with
|
|
@@ -46,6 +61,9 @@ declare const ExecuteQueryCommand_base: {
|
|
|
46
61
|
* graphIdentifier: "STRING_VALUE", // required
|
|
47
62
|
* queryString: "STRING_VALUE", // required
|
|
48
63
|
* language: "OPEN_CYPHER", // required
|
|
64
|
+
* parameters: { // DocumentValuedMap
|
|
65
|
+
* "<keys>": "DOCUMENT_VALUE",
|
|
66
|
+
* },
|
|
49
67
|
* planCache: "ENABLED" || "DISABLED" || "AUTO",
|
|
50
68
|
* explainMode: "STATIC" || "DETAILS",
|
|
51
69
|
* queryTimeoutMilliseconds: Number("int"),
|
|
@@ -27,6 +27,12 @@ declare const GetQueryCommand_base: {
|
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
29
|
* <p>Retrieves the status of a specified query.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>
|
|
32
|
+
* When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have the
|
|
33
|
+
* <code>neptune-graph:GetQueryStatus</code> IAM action attached.
|
|
34
|
+
* </p>
|
|
35
|
+
* </note>
|
|
30
36
|
* @example
|
|
31
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
38
|
* ```javascript
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { StreamingBlobTypes } from "@smithy/types";
|
|
2
|
+
import { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
3
3
|
import { NeptuneGraphServiceException as __BaseException } from "./NeptuneGraphServiceException";
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
@@ -185,6 +185,11 @@ export interface ExecuteQueryInput {
|
|
|
185
185
|
* <p>The query language the query is written in. Currently only openCypher is supported.</p>
|
|
186
186
|
*/
|
|
187
187
|
language: QueryLanguage | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* <p>The data parameters the query can use in JSON format. For example: \{"name": "john", "age": 20\}. (optional) </p>
|
|
191
|
+
*/
|
|
192
|
+
parameters?: Record<string, __DocumentType>;
|
|
188
193
|
/**
|
|
189
194
|
* @public
|
|
190
195
|
* <p>Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query.
|
|
@@ -498,7 +503,7 @@ export interface CreateGraphInput {
|
|
|
498
503
|
tags?: Record<string, string>;
|
|
499
504
|
/**
|
|
500
505
|
* @public
|
|
501
|
-
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
|
|
506
|
+
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
|
|
502
507
|
* (<code>true</code> to enable, or <code>false</code> to disable.</p>
|
|
503
508
|
*/
|
|
504
509
|
publicConnectivity?: boolean;
|
|
@@ -596,7 +601,7 @@ export interface CreateGraphOutput {
|
|
|
596
601
|
endpoint?: string;
|
|
597
602
|
/**
|
|
598
603
|
* @public
|
|
599
|
-
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.</p>
|
|
604
|
+
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.</p>
|
|
600
605
|
*/
|
|
601
606
|
publicConnectivity?: boolean;
|
|
602
607
|
/**
|
|
@@ -1086,7 +1091,7 @@ export interface RestoreGraphFromSnapshotInput {
|
|
|
1086
1091
|
replicaCount?: number;
|
|
1087
1092
|
/**
|
|
1088
1093
|
* @public
|
|
1089
|
-
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
|
|
1094
|
+
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
|
|
1090
1095
|
* (<code>true</code> to enable, or <code>false</code> to disable).</p>
|
|
1091
1096
|
*/
|
|
1092
1097
|
publicConnectivity?: boolean;
|
|
@@ -1182,7 +1187,7 @@ export interface UpdateGraphInput {
|
|
|
1182
1187
|
graphIdentifier: string | undefined;
|
|
1183
1188
|
/**
|
|
1184
1189
|
* @public
|
|
1185
|
-
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
|
|
1190
|
+
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
|
|
1186
1191
|
* (<code>true</code> to enable, or <code>false</code> to disable.</p>
|
|
1187
1192
|
*/
|
|
1188
1193
|
publicConnectivity?: boolean;
|
|
@@ -2062,7 +2067,7 @@ export interface CreateGraphUsingImportTaskInput {
|
|
|
2062
2067
|
tags?: Record<string, string>;
|
|
2063
2068
|
/**
|
|
2064
2069
|
* @public
|
|
2065
|
-
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
|
|
2070
|
+
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
|
|
2066
2071
|
* (<code>true</code> to enable, or <code>false</code> to disable).</p>
|
|
2067
2072
|
*/
|
|
2068
2073
|
publicConnectivity?: boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DocumentType as __DocumentType,
|
|
4
|
+
StreamingBlobTypes,
|
|
5
|
+
} from "@smithy/types";
|
|
3
6
|
import { NeptuneGraphServiceException as __BaseException } from "./NeptuneGraphServiceException";
|
|
4
7
|
export declare class AccessDeniedException extends __BaseException {
|
|
5
8
|
readonly name: "AccessDeniedException";
|
|
@@ -86,6 +89,7 @@ export interface ExecuteQueryInput {
|
|
|
86
89
|
graphIdentifier: string | undefined;
|
|
87
90
|
queryString: string | undefined;
|
|
88
91
|
language: QueryLanguage | undefined;
|
|
92
|
+
parameters?: Record<string, __DocumentType>;
|
|
89
93
|
planCache?: PlanCacheType;
|
|
90
94
|
explainMode?: ExplainMode;
|
|
91
95
|
queryTimeoutMilliseconds?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-neptune-graph",
|
|
3
3
|
"description": "AWS SDK for JavaScript Neptune Graph Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.512.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-neptune-graph",
|