@aws-sdk/client-neptune-graph 3.474.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/LICENSE +201 -0
- package/README.md +383 -0
- package/dist-cjs/NeptuneGraph.js +55 -0
- package/dist-cjs/NeptuneGraphClient.js +43 -0
- package/dist-cjs/commands/CancelImportTaskCommand.js +52 -0
- package/dist-cjs/commands/CreateGraphCommand.js +52 -0
- package/dist-cjs/commands/CreateGraphSnapshotCommand.js +52 -0
- package/dist-cjs/commands/CreateGraphUsingImportTaskCommand.js +52 -0
- package/dist-cjs/commands/CreatePrivateGraphEndpointCommand.js +52 -0
- package/dist-cjs/commands/DeleteGraphCommand.js +52 -0
- package/dist-cjs/commands/DeleteGraphSnapshotCommand.js +52 -0
- package/dist-cjs/commands/DeletePrivateGraphEndpointCommand.js +52 -0
- package/dist-cjs/commands/GetGraphCommand.js +52 -0
- package/dist-cjs/commands/GetGraphSnapshotCommand.js +52 -0
- package/dist-cjs/commands/GetImportTaskCommand.js +52 -0
- package/dist-cjs/commands/GetPrivateGraphEndpointCommand.js +52 -0
- package/dist-cjs/commands/ListGraphSnapshotsCommand.js +52 -0
- package/dist-cjs/commands/ListGraphsCommand.js +52 -0
- package/dist-cjs/commands/ListImportTasksCommand.js +52 -0
- package/dist-cjs/commands/ListPrivateGraphEndpointsCommand.js +52 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +52 -0
- package/dist-cjs/commands/ResetGraphCommand.js +52 -0
- package/dist-cjs/commands/RestoreGraphFromSnapshotCommand.js +52 -0
- package/dist-cjs/commands/TagResourceCommand.js +52 -0
- package/dist-cjs/commands/UntagResourceCommand.js +52 -0
- package/dist-cjs/commands/UpdateGraphCommand.js +52 -0
- package/dist-cjs/commands/index.js +25 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/NeptuneGraphServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +149 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListGraphSnapshotsPaginator.js +29 -0
- package/dist-cjs/pagination/ListGraphsPaginator.js +29 -0
- package/dist-cjs/pagination/ListImportTasksPaginator.js +29 -0
- package/dist-cjs/pagination/ListPrivateGraphEndpointsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1763 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/NeptuneGraph.js +51 -0
- package/dist-es/NeptuneGraphClient.js +39 -0
- package/dist-es/commands/CancelImportTaskCommand.js +48 -0
- package/dist-es/commands/CreateGraphCommand.js +48 -0
- package/dist-es/commands/CreateGraphSnapshotCommand.js +48 -0
- package/dist-es/commands/CreateGraphUsingImportTaskCommand.js +48 -0
- package/dist-es/commands/CreatePrivateGraphEndpointCommand.js +48 -0
- package/dist-es/commands/DeleteGraphCommand.js +48 -0
- package/dist-es/commands/DeleteGraphSnapshotCommand.js +48 -0
- package/dist-es/commands/DeletePrivateGraphEndpointCommand.js +48 -0
- package/dist-es/commands/GetGraphCommand.js +48 -0
- package/dist-es/commands/GetGraphSnapshotCommand.js +48 -0
- package/dist-es/commands/GetImportTaskCommand.js +48 -0
- package/dist-es/commands/GetPrivateGraphEndpointCommand.js +48 -0
- package/dist-es/commands/ListGraphSnapshotsCommand.js +48 -0
- package/dist-es/commands/ListGraphsCommand.js +48 -0
- package/dist-es/commands/ListImportTasksCommand.js +48 -0
- package/dist-es/commands/ListPrivateGraphEndpointsCommand.js +48 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +48 -0
- package/dist-es/commands/ResetGraphCommand.js +48 -0
- package/dist-es/commands/RestoreGraphFromSnapshotCommand.js +48 -0
- package/dist-es/commands/TagResourceCommand.js +48 -0
- package/dist-es/commands/UntagResourceCommand.js +48 -0
- package/dist-es/commands/UpdateGraphCommand.js +48 -0
- package/dist-es/commands/index.js +22 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/NeptuneGraphServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +140 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListGraphSnapshotsPaginator.js +25 -0
- package/dist-es/pagination/ListGraphsPaginator.js +25 -0
- package/dist-es/pagination/ListImportTasksPaginator.js +25 -0
- package/dist-es/pagination/ListPrivateGraphEndpointsPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +1716 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/NeptuneGraph.d.ts +166 -0
- package/dist-types/NeptuneGraphClient.d.ts +193 -0
- package/dist-types/commands/CancelImportTaskCommand.d.ts +93 -0
- package/dist-types/commands/CreateGraphCommand.d.ts +115 -0
- package/dist-types/commands/CreateGraphSnapshotCommand.d.ts +101 -0
- package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +129 -0
- package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +104 -0
- package/dist-types/commands/DeleteGraphCommand.d.ts +105 -0
- package/dist-types/commands/DeleteGraphSnapshotCommand.d.ts +94 -0
- package/dist-types/commands/DeletePrivateGraphEndpointCommand.d.ts +94 -0
- package/dist-types/commands/GetGraphCommand.d.ts +101 -0
- package/dist-types/commands/GetGraphSnapshotCommand.d.ts +91 -0
- package/dist-types/commands/GetImportTaskCommand.d.ts +110 -0
- package/dist-types/commands/GetPrivateGraphEndpointCommand.d.ts +91 -0
- package/dist-types/commands/ListGraphSnapshotsCommand.d.ts +98 -0
- package/dist-types/commands/ListGraphsCommand.d.ts +97 -0
- package/dist-types/commands/ListImportTasksCommand.d.ts +96 -0
- package/dist-types/commands/ListPrivateGraphEndpointsCommand.d.ts +97 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +87 -0
- package/dist-types/commands/ResetGraphCommand.d.ts +105 -0
- package/dist-types/commands/RestoreGraphFromSnapshotCommand.d.ts +115 -0
- package/dist-types/commands/TagResourceCommand.d.ts +86 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +86 -0
- package/dist-types/commands/UpdateGraphCommand.d.ts +107 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +23 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/NeptuneGraphServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2021 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListGraphSnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGraphsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImportTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPrivateGraphEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +200 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/NeptuneGraph.d.ts +381 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +251 -0
- package/dist-types/ts3.4/commands/CancelImportTaskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateGraphSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateGraphUsingImportTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreatePrivateGraphEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteGraphSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeletePrivateGraphEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetGraphSnapshotCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetImportTaskCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPrivateGraphEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListGraphSnapshotsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListGraphsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListImportTasksCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPrivateGraphEndpointsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ResetGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/RestoreGraphFromSnapshotCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/NeptuneGraphServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +494 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListGraphSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGraphsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPrivateGraphEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +269 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +100 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateGraphCommand, se_UpdateGraphCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateGraphCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateGraphCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "NeptuneGraphClient";
|
|
27
|
+
const commandName = "UpdateGraphCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "AmazonNeptuneGraph",
|
|
36
|
+
operation: "UpdateGraph",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_UpdateGraphCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_UpdateGraphCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./CancelImportTaskCommand";
|
|
2
|
+
export * from "./CreateGraphCommand";
|
|
3
|
+
export * from "./CreateGraphSnapshotCommand";
|
|
4
|
+
export * from "./CreateGraphUsingImportTaskCommand";
|
|
5
|
+
export * from "./CreatePrivateGraphEndpointCommand";
|
|
6
|
+
export * from "./DeleteGraphCommand";
|
|
7
|
+
export * from "./DeleteGraphSnapshotCommand";
|
|
8
|
+
export * from "./DeletePrivateGraphEndpointCommand";
|
|
9
|
+
export * from "./GetGraphCommand";
|
|
10
|
+
export * from "./GetGraphSnapshotCommand";
|
|
11
|
+
export * from "./GetImportTaskCommand";
|
|
12
|
+
export * from "./GetPrivateGraphEndpointCommand";
|
|
13
|
+
export * from "./ListGraphSnapshotsCommand";
|
|
14
|
+
export * from "./ListGraphsCommand";
|
|
15
|
+
export * from "./ListImportTasksCommand";
|
|
16
|
+
export * from "./ListPrivateGraphEndpointsCommand";
|
|
17
|
+
export * from "./ListTagsForResourceCommand";
|
|
18
|
+
export * from "./ResetGraphCommand";
|
|
19
|
+
export * from "./RestoreGraphFromSnapshotCommand";
|
|
20
|
+
export * from "./TagResourceCommand";
|
|
21
|
+
export * from "./UntagResourceCommand";
|
|
22
|
+
export * from "./UpdateGraphCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const w = "required", x = "type", y = "fn", z = "argv", A = "ref";
|
|
2
|
+
const a = true, b = "String", c = "isSet", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [w]: false, [x]: b }, i = { [w]: true, "default": false, [x]: "Boolean" }, j = { [A]: "Endpoint" }, k = { [y]: "booleanEquals", [z]: [{ [A]: "UseFIPS" }, true] }, l = { [y]: "booleanEquals", [z]: [{ [A]: "UseDualStack" }, true] }, m = {}, n = { [y]: "booleanEquals", [z]: [true, { [y]: "getAttr", [z]: [{ [A]: g }, "supportsFIPS"] }] }, o = { [y]: "booleanEquals", [z]: [true, { [y]: "getAttr", [z]: [{ [A]: g }, "supportsDualStack"] }] }, p = { "conditions": [{ [y]: "stringEquals", [z]: [{ [A]: "ApiType" }, "DataPlane"] }], [d]: "Invalid Configuration: fips endpoint is not supported for this API", [x]: d }, q = { [d]: "Invalid Configuration: Unknown ApiType", [x]: d }, r = [k], s = [l], t = [{ [A]: "Region" }], u = [{ [y]: "stringEquals", [z]: [{ [A]: "ApiType" }, "ControlPlane"] }], v = [{ [y]: "stringEquals", [z]: [{ [A]: "ApiType" }, "DataPlane"] }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseFIPS: i, UseDualStack: i, Endpoint: h, ApiType: { [w]: a, [x]: b } }, rules: [{ conditions: [{ [y]: c, [z]: [j] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [x]: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [x]: d }, { endpoint: { url: j, properties: m, headers: m }, [x]: e }], [x]: f }, { conditions: [{ [y]: c, [z]: t }], rules: [{ conditions: [{ [y]: "aws.partition", [z]: t, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [n, o], rules: [{ conditions: u, endpoint: { url: "https://neptune-graph-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, [x]: e }, p, q], [x]: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [x]: d }], [x]: f }, { conditions: r, rules: [{ conditions: [n], rules: [{ conditions: u, endpoint: { url: "https://neptune-graph-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, [x]: e }, p, q], [x]: f }, { error: "FIPS is enabled but this partition does not support FIPS", [x]: d }], [x]: f }, { conditions: s, rules: [{ conditions: [o], rules: [{ conditions: u, endpoint: { url: "https://neptune-graph.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, [x]: e }, { conditions: v, endpoint: { url: "https://neptune-graph.{Region}.on.aws", properties: m, headers: m }, [x]: e }, q], [x]: f }, { error: "DualStack is enabled but this partition does not support DualStack", [x]: d }], [x]: f }, { conditions: u, endpoint: { url: "https://neptune-graph.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, [x]: e }, { conditions: v, endpoint: { url: "https://{Region}.neptune-graph.{PartitionResult#dnsSuffix}", properties: m, headers: m }, [x]: e }, q], [x]: f }], [x]: f }, { error: "Invalid Configuration: Missing Region", [x]: d }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./NeptuneGraphClient";
|
|
2
|
+
export * from "./NeptuneGraph";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
import "@aws-sdk/util-endpoints";
|
|
7
|
+
export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class NeptuneGraphServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, NeptuneGraphServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { NeptuneGraphServiceException as __BaseException } from "./NeptuneGraphServiceException";
|
|
2
|
+
export const ConflictExceptionReason = {
|
|
3
|
+
CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
|
|
4
|
+
};
|
|
5
|
+
export class ConflictException extends __BaseException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "ConflictException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "ConflictException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
15
|
+
this.reason = opts.reason;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export const GraphStatus = {
|
|
19
|
+
AVAILABLE: "AVAILABLE",
|
|
20
|
+
CREATING: "CREATING",
|
|
21
|
+
DELETING: "DELETING",
|
|
22
|
+
FAILED: "FAILED",
|
|
23
|
+
RESETTING: "RESETTING",
|
|
24
|
+
SNAPSHOTTING: "SNAPSHOTTING",
|
|
25
|
+
UPDATING: "UPDATING",
|
|
26
|
+
};
|
|
27
|
+
export class InternalServerException extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "InternalServerException",
|
|
31
|
+
$fault: "server",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "InternalServerException";
|
|
35
|
+
this.$fault = "server";
|
|
36
|
+
this.$retryable = {};
|
|
37
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "ServiceQuotaExceededException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
this.name = "ServiceQuotaExceededException";
|
|
48
|
+
this.$fault = "client";
|
|
49
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
50
|
+
this.resourceId = opts.resourceId;
|
|
51
|
+
this.resourceType = opts.resourceType;
|
|
52
|
+
this.serviceCode = opts.serviceCode;
|
|
53
|
+
this.quotaCode = opts.quotaCode;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class ThrottlingException extends __BaseException {
|
|
57
|
+
constructor(opts) {
|
|
58
|
+
super({
|
|
59
|
+
name: "ThrottlingException",
|
|
60
|
+
$fault: "client",
|
|
61
|
+
...opts,
|
|
62
|
+
});
|
|
63
|
+
this.name = "ThrottlingException";
|
|
64
|
+
this.$fault = "client";
|
|
65
|
+
this.$retryable = {
|
|
66
|
+
throttling: true,
|
|
67
|
+
};
|
|
68
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export const ValidationExceptionReason = {
|
|
72
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
73
|
+
CONSTRAINT_VIOLATION: "CONSTRAINT_VIOLATION",
|
|
74
|
+
ILLEGAL_ARGUMENT: "ILLEGAL_ARGUMENT",
|
|
75
|
+
MALFORMED_QUERY: "MALFORMED_QUERY",
|
|
76
|
+
QUERY_CANCELLED: "QUERY_CANCELLED",
|
|
77
|
+
QUERY_TOO_LARGE: "QUERY_TOO_LARGE",
|
|
78
|
+
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION",
|
|
79
|
+
};
|
|
80
|
+
export class ValidationException extends __BaseException {
|
|
81
|
+
constructor(opts) {
|
|
82
|
+
super({
|
|
83
|
+
name: "ValidationException",
|
|
84
|
+
$fault: "client",
|
|
85
|
+
...opts,
|
|
86
|
+
});
|
|
87
|
+
this.name = "ValidationException";
|
|
88
|
+
this.$fault = "client";
|
|
89
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
90
|
+
this.reason = opts.reason;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
94
|
+
constructor(opts) {
|
|
95
|
+
super({
|
|
96
|
+
name: "ResourceNotFoundException",
|
|
97
|
+
$fault: "client",
|
|
98
|
+
...opts,
|
|
99
|
+
});
|
|
100
|
+
this.name = "ResourceNotFoundException";
|
|
101
|
+
this.$fault = "client";
|
|
102
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export const PrivateGraphEndpointStatus = {
|
|
106
|
+
AVAILABLE: "AVAILABLE",
|
|
107
|
+
CREATING: "CREATING",
|
|
108
|
+
DELETING: "DELETING",
|
|
109
|
+
FAILED: "FAILED",
|
|
110
|
+
};
|
|
111
|
+
export const SnapshotStatus = {
|
|
112
|
+
AVAILABLE: "AVAILABLE",
|
|
113
|
+
CREATING: "CREATING",
|
|
114
|
+
DELETING: "DELETING",
|
|
115
|
+
FAILED: "FAILED",
|
|
116
|
+
};
|
|
117
|
+
export const Format = {
|
|
118
|
+
CSV: "CSV",
|
|
119
|
+
OPEN_CYPHER: "OPEN_CYPHER",
|
|
120
|
+
};
|
|
121
|
+
export const ImportTaskStatus = {
|
|
122
|
+
ANALYZING_DATA: "ANALYZING_DATA",
|
|
123
|
+
CANCELLED: "CANCELLED",
|
|
124
|
+
CANCELLING: "CANCELLING",
|
|
125
|
+
EXPORTING: "EXPORTING",
|
|
126
|
+
FAILED: "FAILED",
|
|
127
|
+
IMPORTING: "IMPORTING",
|
|
128
|
+
INITIALIZING: "INITIALIZING",
|
|
129
|
+
REPROVISIONING: "REPROVISIONING",
|
|
130
|
+
ROLLING_BACK: "ROLLING_BACK",
|
|
131
|
+
SUCCEEDED: "SUCCEEDED",
|
|
132
|
+
};
|
|
133
|
+
export var ImportOptions;
|
|
134
|
+
(function (ImportOptions) {
|
|
135
|
+
ImportOptions.visit = (value, visitor) => {
|
|
136
|
+
if (value.neptune !== undefined)
|
|
137
|
+
return visitor.neptune(value.neptune);
|
|
138
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
139
|
+
};
|
|
140
|
+
})(ImportOptions || (ImportOptions = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListGraphSnapshotsCommand, } from "../commands/ListGraphSnapshotsCommand";
|
|
2
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListGraphSnapshotsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListGraphSnapshots(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof NeptuneGraphClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListGraphsCommand } from "../commands/ListGraphsCommand";
|
|
2
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListGraphsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListGraphs(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof NeptuneGraphClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListImportTasksCommand, } from "../commands/ListImportTasksCommand";
|
|
2
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListImportTasksCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListImportTasks(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof NeptuneGraphClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListPrivateGraphEndpointsCommand, } from "../commands/ListPrivateGraphEndpointsCommand";
|
|
2
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPrivateGraphEndpointsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPrivateGraphEndpoints(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof NeptuneGraphClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|