@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,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeptuneGraphServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./NeptuneGraphClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./NeptuneGraph"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
10
|
+
require("@aws-sdk/util-endpoints");
|
|
11
|
+
var NeptuneGraphServiceException_1 = require("./models/NeptuneGraphServiceException");
|
|
12
|
+
Object.defineProperty(exports, "NeptuneGraphServiceException", { enumerable: true, get: function () { return NeptuneGraphServiceException_1.NeptuneGraphServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeptuneGraphServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class NeptuneGraphServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, NeptuneGraphServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.NeptuneGraphServiceException = NeptuneGraphServiceException;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImportOptions = exports.ImportTaskStatus = exports.Format = exports.SnapshotStatus = exports.PrivateGraphEndpointStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.GraphStatus = exports.ConflictException = exports.ConflictExceptionReason = void 0;
|
|
4
|
+
const NeptuneGraphServiceException_1 = require("./NeptuneGraphServiceException");
|
|
5
|
+
exports.ConflictExceptionReason = {
|
|
6
|
+
CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",
|
|
7
|
+
};
|
|
8
|
+
class ConflictException extends NeptuneGraphServiceException_1.NeptuneGraphServiceException {
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "ConflictException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
this.name = "ConflictException";
|
|
16
|
+
this.$fault = "client";
|
|
17
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
18
|
+
this.reason = opts.reason;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ConflictException = ConflictException;
|
|
22
|
+
exports.GraphStatus = {
|
|
23
|
+
AVAILABLE: "AVAILABLE",
|
|
24
|
+
CREATING: "CREATING",
|
|
25
|
+
DELETING: "DELETING",
|
|
26
|
+
FAILED: "FAILED",
|
|
27
|
+
RESETTING: "RESETTING",
|
|
28
|
+
SNAPSHOTTING: "SNAPSHOTTING",
|
|
29
|
+
UPDATING: "UPDATING",
|
|
30
|
+
};
|
|
31
|
+
class InternalServerException extends NeptuneGraphServiceException_1.NeptuneGraphServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "InternalServerException",
|
|
35
|
+
$fault: "server",
|
|
36
|
+
...opts,
|
|
37
|
+
});
|
|
38
|
+
this.name = "InternalServerException";
|
|
39
|
+
this.$fault = "server";
|
|
40
|
+
this.$retryable = {};
|
|
41
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerException = InternalServerException;
|
|
45
|
+
class ServiceQuotaExceededException extends NeptuneGraphServiceException_1.NeptuneGraphServiceException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "ServiceQuotaExceededException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "ServiceQuotaExceededException";
|
|
53
|
+
this.$fault = "client";
|
|
54
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
55
|
+
this.resourceId = opts.resourceId;
|
|
56
|
+
this.resourceType = opts.resourceType;
|
|
57
|
+
this.serviceCode = opts.serviceCode;
|
|
58
|
+
this.quotaCode = opts.quotaCode;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
62
|
+
class ThrottlingException extends NeptuneGraphServiceException_1.NeptuneGraphServiceException {
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "ThrottlingException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
this.name = "ThrottlingException";
|
|
70
|
+
this.$fault = "client";
|
|
71
|
+
this.$retryable = {
|
|
72
|
+
throttling: true,
|
|
73
|
+
};
|
|
74
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.ThrottlingException = ThrottlingException;
|
|
78
|
+
exports.ValidationExceptionReason = {
|
|
79
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
80
|
+
CONSTRAINT_VIOLATION: "CONSTRAINT_VIOLATION",
|
|
81
|
+
ILLEGAL_ARGUMENT: "ILLEGAL_ARGUMENT",
|
|
82
|
+
MALFORMED_QUERY: "MALFORMED_QUERY",
|
|
83
|
+
QUERY_CANCELLED: "QUERY_CANCELLED",
|
|
84
|
+
QUERY_TOO_LARGE: "QUERY_TOO_LARGE",
|
|
85
|
+
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION",
|
|
86
|
+
};
|
|
87
|
+
class ValidationException extends NeptuneGraphServiceException_1.NeptuneGraphServiceException {
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "ValidationException",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts,
|
|
93
|
+
});
|
|
94
|
+
this.name = "ValidationException";
|
|
95
|
+
this.$fault = "client";
|
|
96
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
97
|
+
this.reason = opts.reason;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.ValidationException = ValidationException;
|
|
101
|
+
class ResourceNotFoundException extends NeptuneGraphServiceException_1.NeptuneGraphServiceException {
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "ResourceNotFoundException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts,
|
|
107
|
+
});
|
|
108
|
+
this.name = "ResourceNotFoundException";
|
|
109
|
+
this.$fault = "client";
|
|
110
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
114
|
+
exports.PrivateGraphEndpointStatus = {
|
|
115
|
+
AVAILABLE: "AVAILABLE",
|
|
116
|
+
CREATING: "CREATING",
|
|
117
|
+
DELETING: "DELETING",
|
|
118
|
+
FAILED: "FAILED",
|
|
119
|
+
};
|
|
120
|
+
exports.SnapshotStatus = {
|
|
121
|
+
AVAILABLE: "AVAILABLE",
|
|
122
|
+
CREATING: "CREATING",
|
|
123
|
+
DELETING: "DELETING",
|
|
124
|
+
FAILED: "FAILED",
|
|
125
|
+
};
|
|
126
|
+
exports.Format = {
|
|
127
|
+
CSV: "CSV",
|
|
128
|
+
OPEN_CYPHER: "OPEN_CYPHER",
|
|
129
|
+
};
|
|
130
|
+
exports.ImportTaskStatus = {
|
|
131
|
+
ANALYZING_DATA: "ANALYZING_DATA",
|
|
132
|
+
CANCELLED: "CANCELLED",
|
|
133
|
+
CANCELLING: "CANCELLING",
|
|
134
|
+
EXPORTING: "EXPORTING",
|
|
135
|
+
FAILED: "FAILED",
|
|
136
|
+
IMPORTING: "IMPORTING",
|
|
137
|
+
INITIALIZING: "INITIALIZING",
|
|
138
|
+
REPROVISIONING: "REPROVISIONING",
|
|
139
|
+
ROLLING_BACK: "ROLLING_BACK",
|
|
140
|
+
SUCCEEDED: "SUCCEEDED",
|
|
141
|
+
};
|
|
142
|
+
var ImportOptions;
|
|
143
|
+
(function (ImportOptions) {
|
|
144
|
+
ImportOptions.visit = (value, visitor) => {
|
|
145
|
+
if (value.neptune !== undefined)
|
|
146
|
+
return visitor.neptune(value.neptune);
|
|
147
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
148
|
+
};
|
|
149
|
+
})(ImportOptions = exports.ImportOptions || (exports.ImportOptions = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListGraphSnapshots = void 0;
|
|
4
|
+
const ListGraphSnapshotsCommand_1 = require("../commands/ListGraphSnapshotsCommand");
|
|
5
|
+
const NeptuneGraphClient_1 = require("../NeptuneGraphClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListGraphSnapshotsCommand_1.ListGraphSnapshotsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListGraphSnapshots(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof NeptuneGraphClient_1.NeptuneGraphClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListGraphSnapshots = paginateListGraphSnapshots;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListGraphs = void 0;
|
|
4
|
+
const ListGraphsCommand_1 = require("../commands/ListGraphsCommand");
|
|
5
|
+
const NeptuneGraphClient_1 = require("../NeptuneGraphClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListGraphsCommand_1.ListGraphsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListGraphs(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof NeptuneGraphClient_1.NeptuneGraphClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListGraphs = paginateListGraphs;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListImportTasks = void 0;
|
|
4
|
+
const ListImportTasksCommand_1 = require("../commands/ListImportTasksCommand");
|
|
5
|
+
const NeptuneGraphClient_1 = require("../NeptuneGraphClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListImportTasksCommand_1.ListImportTasksCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListImportTasks(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof NeptuneGraphClient_1.NeptuneGraphClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListImportTasks = paginateListImportTasks;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListPrivateGraphEndpoints = void 0;
|
|
4
|
+
const ListPrivateGraphEndpointsCommand_1 = require("../commands/ListPrivateGraphEndpointsCommand");
|
|
5
|
+
const NeptuneGraphClient_1 = require("../NeptuneGraphClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListPrivateGraphEndpointsCommand_1.ListPrivateGraphEndpointsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListPrivateGraphEndpoints(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof NeptuneGraphClient_1.NeptuneGraphClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListPrivateGraphEndpoints = paginateListPrivateGraphEndpoints;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListGraphSnapshotsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListGraphsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListImportTasksPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListPrivateGraphEndpointsPaginator"), exports);
|