@aws-sdk/client-neptune-graph 3.490.0 → 3.495.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/NeptuneGraph.js +1 -55
- package/dist-cjs/NeptuneGraphClient.js +1 -43
- package/dist-cjs/commands/CancelImportTaskCommand.js +1 -29
- package/dist-cjs/commands/CreateGraphCommand.js +1 -29
- package/dist-cjs/commands/CreateGraphSnapshotCommand.js +1 -29
- package/dist-cjs/commands/CreateGraphUsingImportTaskCommand.js +1 -29
- package/dist-cjs/commands/CreatePrivateGraphEndpointCommand.js +1 -29
- package/dist-cjs/commands/DeleteGraphCommand.js +1 -29
- package/dist-cjs/commands/DeleteGraphSnapshotCommand.js +1 -29
- package/dist-cjs/commands/DeletePrivateGraphEndpointCommand.js +1 -29
- package/dist-cjs/commands/GetGraphCommand.js +1 -29
- package/dist-cjs/commands/GetGraphSnapshotCommand.js +1 -29
- package/dist-cjs/commands/GetImportTaskCommand.js +1 -29
- package/dist-cjs/commands/GetPrivateGraphEndpointCommand.js +1 -29
- package/dist-cjs/commands/ListGraphSnapshotsCommand.js +1 -29
- package/dist-cjs/commands/ListGraphsCommand.js +1 -29
- package/dist-cjs/commands/ListImportTasksCommand.js +1 -29
- package/dist-cjs/commands/ListPrivateGraphEndpointsCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/ResetGraphCommand.js +1 -29
- package/dist-cjs/commands/RestoreGraphFromSnapshotCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateGraphCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -25
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2794 -12
- package/dist-cjs/models/NeptuneGraphServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -149
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListGraphSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/ListGraphsPaginator.js +1 -7
- package/dist-cjs/pagination/ListImportTasksPaginator.js +1 -7
- package/dist-cjs/pagination/ListPrivateGraphEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1606
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -11
- package/dist-cjs/waiters/waitForGraphAvailable.js +1 -54
- package/dist-cjs/waiters/waitForGraphDeleted.js +1 -39
- package/dist-cjs/waiters/waitForGraphSnapshotAvailable.js +1 -54
- package/dist-cjs/waiters/waitForGraphSnapshotDeleted.js +1 -39
- package/dist-cjs/waiters/waitForImportTaskCancelled.js +1 -45
- package/dist-cjs/waiters/waitForImportTaskSuccessful.js +1 -72
- package/dist-cjs/waiters/waitForPrivateGraphEndpointAvailable.js +1 -54
- package/dist-cjs/waiters/waitForPrivateGraphEndpointDeleted.js +1 -39
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,2795 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
CancelImportTaskCommand: () => CancelImportTaskCommand,
|
|
25
|
+
ConflictException: () => ConflictException,
|
|
26
|
+
ConflictExceptionReason: () => ConflictExceptionReason,
|
|
27
|
+
CreateGraphCommand: () => CreateGraphCommand,
|
|
28
|
+
CreateGraphSnapshotCommand: () => CreateGraphSnapshotCommand,
|
|
29
|
+
CreateGraphUsingImportTaskCommand: () => CreateGraphUsingImportTaskCommand,
|
|
30
|
+
CreatePrivateGraphEndpointCommand: () => CreatePrivateGraphEndpointCommand,
|
|
31
|
+
DeleteGraphCommand: () => DeleteGraphCommand,
|
|
32
|
+
DeleteGraphSnapshotCommand: () => DeleteGraphSnapshotCommand,
|
|
33
|
+
DeletePrivateGraphEndpointCommand: () => DeletePrivateGraphEndpointCommand,
|
|
34
|
+
Format: () => Format,
|
|
35
|
+
GetGraphCommand: () => GetGraphCommand,
|
|
36
|
+
GetGraphSnapshotCommand: () => GetGraphSnapshotCommand,
|
|
37
|
+
GetImportTaskCommand: () => GetImportTaskCommand,
|
|
38
|
+
GetPrivateGraphEndpointCommand: () => GetPrivateGraphEndpointCommand,
|
|
39
|
+
GraphStatus: () => GraphStatus,
|
|
40
|
+
ImportOptions: () => ImportOptions,
|
|
41
|
+
ImportTaskStatus: () => ImportTaskStatus,
|
|
42
|
+
InternalServerException: () => InternalServerException,
|
|
43
|
+
ListGraphSnapshotsCommand: () => ListGraphSnapshotsCommand,
|
|
44
|
+
ListGraphsCommand: () => ListGraphsCommand,
|
|
45
|
+
ListImportTasksCommand: () => ListImportTasksCommand,
|
|
46
|
+
ListPrivateGraphEndpointsCommand: () => ListPrivateGraphEndpointsCommand,
|
|
47
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
48
|
+
NeptuneGraph: () => NeptuneGraph,
|
|
49
|
+
NeptuneGraphClient: () => NeptuneGraphClient,
|
|
50
|
+
NeptuneGraphServiceException: () => NeptuneGraphServiceException,
|
|
51
|
+
PrivateGraphEndpointStatus: () => PrivateGraphEndpointStatus,
|
|
52
|
+
ResetGraphCommand: () => ResetGraphCommand,
|
|
53
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
54
|
+
RestoreGraphFromSnapshotCommand: () => RestoreGraphFromSnapshotCommand,
|
|
55
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
56
|
+
SnapshotStatus: () => SnapshotStatus,
|
|
57
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
58
|
+
ThrottlingException: () => ThrottlingException,
|
|
59
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
60
|
+
UpdateGraphCommand: () => UpdateGraphCommand,
|
|
61
|
+
ValidationException: () => ValidationException,
|
|
62
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
63
|
+
__Client: () => import_smithy_client.Client,
|
|
64
|
+
paginateListGraphSnapshots: () => paginateListGraphSnapshots,
|
|
65
|
+
paginateListGraphs: () => paginateListGraphs,
|
|
66
|
+
paginateListImportTasks: () => paginateListImportTasks,
|
|
67
|
+
paginateListPrivateGraphEndpoints: () => paginateListPrivateGraphEndpoints,
|
|
68
|
+
waitForGraphAvailable: () => waitForGraphAvailable,
|
|
69
|
+
waitForGraphDeleted: () => waitForGraphDeleted,
|
|
70
|
+
waitForGraphSnapshotAvailable: () => waitForGraphSnapshotAvailable,
|
|
71
|
+
waitForGraphSnapshotDeleted: () => waitForGraphSnapshotDeleted,
|
|
72
|
+
waitForImportTaskCancelled: () => waitForImportTaskCancelled,
|
|
73
|
+
waitForImportTaskSuccessful: () => waitForImportTaskSuccessful,
|
|
74
|
+
waitForPrivateGraphEndpointAvailable: () => waitForPrivateGraphEndpointAvailable,
|
|
75
|
+
waitForPrivateGraphEndpointDeleted: () => waitForPrivateGraphEndpointDeleted,
|
|
76
|
+
waitUntilGraphAvailable: () => waitUntilGraphAvailable,
|
|
77
|
+
waitUntilGraphDeleted: () => waitUntilGraphDeleted,
|
|
78
|
+
waitUntilGraphSnapshotAvailable: () => waitUntilGraphSnapshotAvailable,
|
|
79
|
+
waitUntilGraphSnapshotDeleted: () => waitUntilGraphSnapshotDeleted,
|
|
80
|
+
waitUntilImportTaskCancelled: () => waitUntilImportTaskCancelled,
|
|
81
|
+
waitUntilImportTaskSuccessful: () => waitUntilImportTaskSuccessful,
|
|
82
|
+
waitUntilPrivateGraphEndpointAvailable: () => waitUntilPrivateGraphEndpointAvailable,
|
|
83
|
+
waitUntilPrivateGraphEndpointDeleted: () => waitUntilPrivateGraphEndpointDeleted
|
|
84
|
+
});
|
|
85
|
+
module.exports = __toCommonJS(src_exports);
|
|
86
|
+
|
|
87
|
+
// src/NeptuneGraphClient.ts
|
|
88
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
89
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
90
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
91
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
92
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
93
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
94
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
95
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
96
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
// src/endpoint/EndpointParameters.ts
|
|
100
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
101
|
+
return {
|
|
102
|
+
...options,
|
|
103
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
104
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
105
|
+
defaultSigningName: "neptune-graph"
|
|
106
|
+
};
|
|
107
|
+
}, "resolveClientEndpointParameters");
|
|
108
|
+
var commonParams = {
|
|
109
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
110
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
111
|
+
Region: { type: "builtInParams", name: "region" },
|
|
112
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// src/NeptuneGraphClient.ts
|
|
116
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
117
|
+
|
|
118
|
+
// src/runtimeExtensions.ts
|
|
119
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
120
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
121
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
122
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
123
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
124
|
+
const extensionConfiguration = {
|
|
125
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
126
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
127
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
128
|
+
};
|
|
129
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
130
|
+
return {
|
|
131
|
+
...runtimeConfig,
|
|
132
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
133
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
134
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
135
|
+
};
|
|
136
|
+
}, "resolveRuntimeExtensions");
|
|
137
|
+
|
|
138
|
+
// src/NeptuneGraphClient.ts
|
|
139
|
+
var _NeptuneGraphClient = class _NeptuneGraphClient extends import_smithy_client.Client {
|
|
140
|
+
constructor(...[configuration]) {
|
|
141
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
142
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
143
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
144
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
145
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
146
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
147
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
148
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
149
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
150
|
+
super(_config_8);
|
|
151
|
+
this.config = _config_8;
|
|
152
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
153
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
154
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
155
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
156
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
158
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
162
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
163
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
164
|
+
*/
|
|
165
|
+
destroy() {
|
|
166
|
+
super.destroy();
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
__name(_NeptuneGraphClient, "NeptuneGraphClient");
|
|
170
|
+
var NeptuneGraphClient = _NeptuneGraphClient;
|
|
171
|
+
|
|
172
|
+
// src/NeptuneGraph.ts
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
// src/commands/CancelImportTaskCommand.ts
|
|
176
|
+
|
|
177
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
178
|
+
|
|
179
|
+
var import_types = require("@smithy/types");
|
|
180
|
+
|
|
181
|
+
// src/protocols/Aws_restJson1.ts
|
|
182
|
+
var import_core = require("@aws-sdk/core");
|
|
183
|
+
var import_core2 = require("@smithy/core");
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
// src/models/NeptuneGraphServiceException.ts
|
|
187
|
+
|
|
188
|
+
var _NeptuneGraphServiceException = class _NeptuneGraphServiceException extends import_smithy_client.ServiceException {
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
constructor(options) {
|
|
193
|
+
super(options);
|
|
194
|
+
Object.setPrototypeOf(this, _NeptuneGraphServiceException.prototype);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
__name(_NeptuneGraphServiceException, "NeptuneGraphServiceException");
|
|
198
|
+
var NeptuneGraphServiceException = _NeptuneGraphServiceException;
|
|
199
|
+
|
|
200
|
+
// src/models/models_0.ts
|
|
201
|
+
var ConflictExceptionReason = {
|
|
202
|
+
CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"
|
|
203
|
+
};
|
|
204
|
+
var _ConflictException = class _ConflictException extends NeptuneGraphServiceException {
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "ConflictException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts
|
|
213
|
+
});
|
|
214
|
+
this.name = "ConflictException";
|
|
215
|
+
this.$fault = "client";
|
|
216
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
217
|
+
this.reason = opts.reason;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
__name(_ConflictException, "ConflictException");
|
|
221
|
+
var ConflictException = _ConflictException;
|
|
222
|
+
var GraphStatus = {
|
|
223
|
+
AVAILABLE: "AVAILABLE",
|
|
224
|
+
CREATING: "CREATING",
|
|
225
|
+
DELETING: "DELETING",
|
|
226
|
+
FAILED: "FAILED",
|
|
227
|
+
RESETTING: "RESETTING",
|
|
228
|
+
SNAPSHOTTING: "SNAPSHOTTING",
|
|
229
|
+
UPDATING: "UPDATING"
|
|
230
|
+
};
|
|
231
|
+
var _InternalServerException = class _InternalServerException extends NeptuneGraphServiceException {
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "InternalServerException",
|
|
238
|
+
$fault: "server",
|
|
239
|
+
...opts
|
|
240
|
+
});
|
|
241
|
+
this.name = "InternalServerException";
|
|
242
|
+
this.$fault = "server";
|
|
243
|
+
this.$retryable = {};
|
|
244
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
__name(_InternalServerException, "InternalServerException");
|
|
248
|
+
var InternalServerException = _InternalServerException;
|
|
249
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NeptuneGraphServiceException {
|
|
250
|
+
/**
|
|
251
|
+
* @internal
|
|
252
|
+
*/
|
|
253
|
+
constructor(opts) {
|
|
254
|
+
super({
|
|
255
|
+
name: "ServiceQuotaExceededException",
|
|
256
|
+
$fault: "client",
|
|
257
|
+
...opts
|
|
258
|
+
});
|
|
259
|
+
this.name = "ServiceQuotaExceededException";
|
|
260
|
+
this.$fault = "client";
|
|
261
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
262
|
+
this.resourceId = opts.resourceId;
|
|
263
|
+
this.resourceType = opts.resourceType;
|
|
264
|
+
this.serviceCode = opts.serviceCode;
|
|
265
|
+
this.quotaCode = opts.quotaCode;
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
269
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
270
|
+
var _ThrottlingException = class _ThrottlingException extends NeptuneGraphServiceException {
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
constructor(opts) {
|
|
275
|
+
super({
|
|
276
|
+
name: "ThrottlingException",
|
|
277
|
+
$fault: "client",
|
|
278
|
+
...opts
|
|
279
|
+
});
|
|
280
|
+
this.name = "ThrottlingException";
|
|
281
|
+
this.$fault = "client";
|
|
282
|
+
this.$retryable = {
|
|
283
|
+
throttling: true
|
|
284
|
+
};
|
|
285
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
289
|
+
var ThrottlingException = _ThrottlingException;
|
|
290
|
+
var ValidationExceptionReason = {
|
|
291
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
292
|
+
CONSTRAINT_VIOLATION: "CONSTRAINT_VIOLATION",
|
|
293
|
+
ILLEGAL_ARGUMENT: "ILLEGAL_ARGUMENT",
|
|
294
|
+
MALFORMED_QUERY: "MALFORMED_QUERY",
|
|
295
|
+
QUERY_CANCELLED: "QUERY_CANCELLED",
|
|
296
|
+
QUERY_TOO_LARGE: "QUERY_TOO_LARGE",
|
|
297
|
+
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION"
|
|
298
|
+
};
|
|
299
|
+
var _ValidationException = class _ValidationException extends NeptuneGraphServiceException {
|
|
300
|
+
/**
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
super({
|
|
305
|
+
name: "ValidationException",
|
|
306
|
+
$fault: "client",
|
|
307
|
+
...opts
|
|
308
|
+
});
|
|
309
|
+
this.name = "ValidationException";
|
|
310
|
+
this.$fault = "client";
|
|
311
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
312
|
+
this.reason = opts.reason;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
__name(_ValidationException, "ValidationException");
|
|
316
|
+
var ValidationException = _ValidationException;
|
|
317
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends NeptuneGraphServiceException {
|
|
318
|
+
/**
|
|
319
|
+
* @internal
|
|
320
|
+
*/
|
|
321
|
+
constructor(opts) {
|
|
322
|
+
super({
|
|
323
|
+
name: "ResourceNotFoundException",
|
|
324
|
+
$fault: "client",
|
|
325
|
+
...opts
|
|
326
|
+
});
|
|
327
|
+
this.name = "ResourceNotFoundException";
|
|
328
|
+
this.$fault = "client";
|
|
329
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
333
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
334
|
+
var PrivateGraphEndpointStatus = {
|
|
335
|
+
AVAILABLE: "AVAILABLE",
|
|
336
|
+
CREATING: "CREATING",
|
|
337
|
+
DELETING: "DELETING",
|
|
338
|
+
FAILED: "FAILED"
|
|
339
|
+
};
|
|
340
|
+
var SnapshotStatus = {
|
|
341
|
+
AVAILABLE: "AVAILABLE",
|
|
342
|
+
CREATING: "CREATING",
|
|
343
|
+
DELETING: "DELETING",
|
|
344
|
+
FAILED: "FAILED"
|
|
345
|
+
};
|
|
346
|
+
var Format = {
|
|
347
|
+
CSV: "CSV",
|
|
348
|
+
OPEN_CYPHER: "OPEN_CYPHER"
|
|
349
|
+
};
|
|
350
|
+
var ImportTaskStatus = {
|
|
351
|
+
ANALYZING_DATA: "ANALYZING_DATA",
|
|
352
|
+
CANCELLED: "CANCELLED",
|
|
353
|
+
CANCELLING: "CANCELLING",
|
|
354
|
+
EXPORTING: "EXPORTING",
|
|
355
|
+
FAILED: "FAILED",
|
|
356
|
+
IMPORTING: "IMPORTING",
|
|
357
|
+
INITIALIZING: "INITIALIZING",
|
|
358
|
+
REPROVISIONING: "REPROVISIONING",
|
|
359
|
+
ROLLING_BACK: "ROLLING_BACK",
|
|
360
|
+
SUCCEEDED: "SUCCEEDED"
|
|
361
|
+
};
|
|
362
|
+
var ImportOptions;
|
|
363
|
+
((ImportOptions3) => {
|
|
364
|
+
ImportOptions3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
365
|
+
if (value.neptune !== void 0)
|
|
366
|
+
return visitor.neptune(value.neptune);
|
|
367
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
368
|
+
}, "visit");
|
|
369
|
+
})(ImportOptions || (ImportOptions = {}));
|
|
370
|
+
|
|
371
|
+
// src/protocols/Aws_restJson1.ts
|
|
372
|
+
var se_CancelImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
373
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
374
|
+
const headers = {};
|
|
375
|
+
b.bp("/importtasks/{taskIdentifier}");
|
|
376
|
+
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
377
|
+
let body;
|
|
378
|
+
b.m("DELETE").h(headers).b(body);
|
|
379
|
+
return b.build();
|
|
380
|
+
}, "se_CancelImportTaskCommand");
|
|
381
|
+
var se_CreateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
382
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
383
|
+
const headers = {
|
|
384
|
+
"content-type": "application/json"
|
|
385
|
+
};
|
|
386
|
+
b.bp("/graphs");
|
|
387
|
+
let body;
|
|
388
|
+
body = JSON.stringify(
|
|
389
|
+
(0, import_smithy_client.take)(input, {
|
|
390
|
+
deletionProtection: [],
|
|
391
|
+
graphName: [],
|
|
392
|
+
kmsKeyIdentifier: [],
|
|
393
|
+
provisionedMemory: [],
|
|
394
|
+
publicConnectivity: [],
|
|
395
|
+
replicaCount: [],
|
|
396
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
397
|
+
vectorSearchConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
398
|
+
})
|
|
399
|
+
);
|
|
400
|
+
b.m("POST").h(headers).b(body);
|
|
401
|
+
return b.build();
|
|
402
|
+
}, "se_CreateGraphCommand");
|
|
403
|
+
var se_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
404
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
405
|
+
const headers = {
|
|
406
|
+
"content-type": "application/json"
|
|
407
|
+
};
|
|
408
|
+
b.bp("/snapshots");
|
|
409
|
+
let body;
|
|
410
|
+
body = JSON.stringify(
|
|
411
|
+
(0, import_smithy_client.take)(input, {
|
|
412
|
+
graphIdentifier: [],
|
|
413
|
+
snapshotName: [],
|
|
414
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
415
|
+
})
|
|
416
|
+
);
|
|
417
|
+
b.m("POST").h(headers).b(body);
|
|
418
|
+
return b.build();
|
|
419
|
+
}, "se_CreateGraphSnapshotCommand");
|
|
420
|
+
var se_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
421
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
422
|
+
const headers = {
|
|
423
|
+
"content-type": "application/json"
|
|
424
|
+
};
|
|
425
|
+
b.bp("/importtasks");
|
|
426
|
+
let body;
|
|
427
|
+
body = JSON.stringify(
|
|
428
|
+
(0, import_smithy_client.take)(input, {
|
|
429
|
+
deletionProtection: [],
|
|
430
|
+
failOnError: [],
|
|
431
|
+
format: [],
|
|
432
|
+
graphName: [],
|
|
433
|
+
importOptions: (_) => (0, import_smithy_client._json)(_),
|
|
434
|
+
kmsKeyIdentifier: [],
|
|
435
|
+
maxProvisionedMemory: [],
|
|
436
|
+
minProvisionedMemory: [],
|
|
437
|
+
publicConnectivity: [],
|
|
438
|
+
replicaCount: [],
|
|
439
|
+
roleArn: [],
|
|
440
|
+
source: [],
|
|
441
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
442
|
+
vectorSearchConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
443
|
+
})
|
|
444
|
+
);
|
|
445
|
+
b.m("POST").h(headers).b(body);
|
|
446
|
+
return b.build();
|
|
447
|
+
}, "se_CreateGraphUsingImportTaskCommand");
|
|
448
|
+
var se_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
449
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
450
|
+
const headers = {
|
|
451
|
+
"content-type": "application/json"
|
|
452
|
+
};
|
|
453
|
+
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
454
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
455
|
+
let body;
|
|
456
|
+
body = JSON.stringify(
|
|
457
|
+
(0, import_smithy_client.take)(input, {
|
|
458
|
+
subnetIds: (_) => (0, import_smithy_client._json)(_),
|
|
459
|
+
vpcId: [],
|
|
460
|
+
vpcSecurityGroupIds: (_) => (0, import_smithy_client._json)(_)
|
|
461
|
+
})
|
|
462
|
+
);
|
|
463
|
+
b.m("POST").h(headers).b(body);
|
|
464
|
+
return b.build();
|
|
465
|
+
}, "se_CreatePrivateGraphEndpointCommand");
|
|
466
|
+
var se_DeleteGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
467
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
468
|
+
const headers = {};
|
|
469
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
470
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
471
|
+
const query = (0, import_smithy_client.map)({
|
|
472
|
+
[_sS]: [(0, import_smithy_client.expectNonNull)(input.skipSnapshot, `skipSnapshot`) != null, () => input[_sS].toString()]
|
|
473
|
+
});
|
|
474
|
+
let body;
|
|
475
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
476
|
+
return b.build();
|
|
477
|
+
}, "se_DeleteGraphCommand");
|
|
478
|
+
var se_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
479
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
480
|
+
const headers = {};
|
|
481
|
+
b.bp("/snapshots/{snapshotIdentifier}");
|
|
482
|
+
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
483
|
+
let body;
|
|
484
|
+
b.m("DELETE").h(headers).b(body);
|
|
485
|
+
return b.build();
|
|
486
|
+
}, "se_DeleteGraphSnapshotCommand");
|
|
487
|
+
var se_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
489
|
+
const headers = {};
|
|
490
|
+
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
491
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
492
|
+
b.p("vpcId", () => input.vpcId, "{vpcId}", false);
|
|
493
|
+
let body;
|
|
494
|
+
b.m("DELETE").h(headers).b(body);
|
|
495
|
+
return b.build();
|
|
496
|
+
}, "se_DeletePrivateGraphEndpointCommand");
|
|
497
|
+
var se_GetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
498
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
499
|
+
const headers = {};
|
|
500
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
501
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
502
|
+
let body;
|
|
503
|
+
b.m("GET").h(headers).b(body);
|
|
504
|
+
return b.build();
|
|
505
|
+
}, "se_GetGraphCommand");
|
|
506
|
+
var se_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
507
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
508
|
+
const headers = {};
|
|
509
|
+
b.bp("/snapshots/{snapshotIdentifier}");
|
|
510
|
+
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
511
|
+
let body;
|
|
512
|
+
b.m("GET").h(headers).b(body);
|
|
513
|
+
return b.build();
|
|
514
|
+
}, "se_GetGraphSnapshotCommand");
|
|
515
|
+
var se_GetImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
516
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
517
|
+
const headers = {};
|
|
518
|
+
b.bp("/importtasks/{taskIdentifier}");
|
|
519
|
+
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
520
|
+
let body;
|
|
521
|
+
b.m("GET").h(headers).b(body);
|
|
522
|
+
return b.build();
|
|
523
|
+
}, "se_GetImportTaskCommand");
|
|
524
|
+
var se_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
525
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
526
|
+
const headers = {};
|
|
527
|
+
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
528
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
529
|
+
b.p("vpcId", () => input.vpcId, "{vpcId}", false);
|
|
530
|
+
let body;
|
|
531
|
+
b.m("GET").h(headers).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
}, "se_GetPrivateGraphEndpointCommand");
|
|
534
|
+
var se_ListGraphsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
536
|
+
const headers = {};
|
|
537
|
+
b.bp("/graphs");
|
|
538
|
+
const query = (0, import_smithy_client.map)({
|
|
539
|
+
[_nT]: [, input[_nT]],
|
|
540
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
541
|
+
});
|
|
542
|
+
let body;
|
|
543
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
544
|
+
return b.build();
|
|
545
|
+
}, "se_ListGraphsCommand");
|
|
546
|
+
var se_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
547
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
548
|
+
const headers = {};
|
|
549
|
+
b.bp("/snapshots");
|
|
550
|
+
const query = (0, import_smithy_client.map)({
|
|
551
|
+
[_gI]: [, input[_gI]],
|
|
552
|
+
[_nT]: [, input[_nT]],
|
|
553
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
554
|
+
});
|
|
555
|
+
let body;
|
|
556
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
557
|
+
return b.build();
|
|
558
|
+
}, "se_ListGraphSnapshotsCommand");
|
|
559
|
+
var se_ListImportTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
560
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
561
|
+
const headers = {};
|
|
562
|
+
b.bp("/importtasks");
|
|
563
|
+
const query = (0, import_smithy_client.map)({
|
|
564
|
+
[_nT]: [, input[_nT]],
|
|
565
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
566
|
+
});
|
|
567
|
+
let body;
|
|
568
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
569
|
+
return b.build();
|
|
570
|
+
}, "se_ListImportTasksCommand");
|
|
571
|
+
var se_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
572
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
573
|
+
const headers = {};
|
|
574
|
+
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
575
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
576
|
+
const query = (0, import_smithy_client.map)({
|
|
577
|
+
[_nT]: [, input[_nT]],
|
|
578
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
579
|
+
});
|
|
580
|
+
let body;
|
|
581
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
582
|
+
return b.build();
|
|
583
|
+
}, "se_ListPrivateGraphEndpointsCommand");
|
|
584
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
585
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
586
|
+
const headers = {};
|
|
587
|
+
b.bp("/tags/{resourceArn}");
|
|
588
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
589
|
+
let body;
|
|
590
|
+
b.m("GET").h(headers).b(body);
|
|
591
|
+
return b.build();
|
|
592
|
+
}, "se_ListTagsForResourceCommand");
|
|
593
|
+
var se_ResetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
594
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
595
|
+
const headers = {
|
|
596
|
+
"content-type": "application/json"
|
|
597
|
+
};
|
|
598
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
599
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
600
|
+
let body;
|
|
601
|
+
body = JSON.stringify(
|
|
602
|
+
(0, import_smithy_client.take)(input, {
|
|
603
|
+
skipSnapshot: []
|
|
604
|
+
})
|
|
605
|
+
);
|
|
606
|
+
b.m("PUT").h(headers).b(body);
|
|
607
|
+
return b.build();
|
|
608
|
+
}, "se_ResetGraphCommand");
|
|
609
|
+
var se_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
610
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
611
|
+
const headers = {
|
|
612
|
+
"content-type": "application/json"
|
|
613
|
+
};
|
|
614
|
+
b.bp("/snapshots/{snapshotIdentifier}/restore");
|
|
615
|
+
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
616
|
+
let body;
|
|
617
|
+
body = JSON.stringify(
|
|
618
|
+
(0, import_smithy_client.take)(input, {
|
|
619
|
+
deletionProtection: [],
|
|
620
|
+
graphName: [],
|
|
621
|
+
provisionedMemory: [],
|
|
622
|
+
publicConnectivity: [],
|
|
623
|
+
replicaCount: [],
|
|
624
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
625
|
+
})
|
|
626
|
+
);
|
|
627
|
+
b.m("POST").h(headers).b(body);
|
|
628
|
+
return b.build();
|
|
629
|
+
}, "se_RestoreGraphFromSnapshotCommand");
|
|
630
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
631
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
632
|
+
const headers = {
|
|
633
|
+
"content-type": "application/json"
|
|
634
|
+
};
|
|
635
|
+
b.bp("/tags/{resourceArn}");
|
|
636
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
637
|
+
let body;
|
|
638
|
+
body = JSON.stringify(
|
|
639
|
+
(0, import_smithy_client.take)(input, {
|
|
640
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
641
|
+
})
|
|
642
|
+
);
|
|
643
|
+
b.m("POST").h(headers).b(body);
|
|
644
|
+
return b.build();
|
|
645
|
+
}, "se_TagResourceCommand");
|
|
646
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
647
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
648
|
+
const headers = {};
|
|
649
|
+
b.bp("/tags/{resourceArn}");
|
|
650
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
651
|
+
const query = (0, import_smithy_client.map)({
|
|
652
|
+
[_tK]: [
|
|
653
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
654
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
655
|
+
]
|
|
656
|
+
});
|
|
657
|
+
let body;
|
|
658
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
659
|
+
return b.build();
|
|
660
|
+
}, "se_UntagResourceCommand");
|
|
661
|
+
var se_UpdateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
662
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
663
|
+
const headers = {
|
|
664
|
+
"content-type": "application/json"
|
|
665
|
+
};
|
|
666
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
667
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
668
|
+
let body;
|
|
669
|
+
body = JSON.stringify(
|
|
670
|
+
(0, import_smithy_client.take)(input, {
|
|
671
|
+
deletionProtection: [],
|
|
672
|
+
provisionedMemory: [],
|
|
673
|
+
publicConnectivity: []
|
|
674
|
+
})
|
|
675
|
+
);
|
|
676
|
+
b.m("PATCH").h(headers).b(body);
|
|
677
|
+
return b.build();
|
|
678
|
+
}, "se_UpdateGraphCommand");
|
|
679
|
+
var de_CancelImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
680
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
|
+
return de_CancelImportTaskCommandError(output, context);
|
|
682
|
+
}
|
|
683
|
+
const contents = (0, import_smithy_client.map)({
|
|
684
|
+
$metadata: deserializeMetadata(output)
|
|
685
|
+
});
|
|
686
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
687
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
688
|
+
format: import_smithy_client.expectString,
|
|
689
|
+
graphId: import_smithy_client.expectString,
|
|
690
|
+
roleArn: import_smithy_client.expectString,
|
|
691
|
+
source: import_smithy_client.expectString,
|
|
692
|
+
status: import_smithy_client.expectString,
|
|
693
|
+
taskId: import_smithy_client.expectString
|
|
694
|
+
});
|
|
695
|
+
Object.assign(contents, doc);
|
|
696
|
+
return contents;
|
|
697
|
+
}, "de_CancelImportTaskCommand");
|
|
698
|
+
var de_CancelImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
|
+
const parsedOutput = {
|
|
700
|
+
...output,
|
|
701
|
+
body: await parseErrorBody(output.body, context)
|
|
702
|
+
};
|
|
703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
704
|
+
switch (errorCode) {
|
|
705
|
+
case "ConflictException":
|
|
706
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
707
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
708
|
+
case "InternalServerException":
|
|
709
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
710
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
711
|
+
case "ResourceNotFoundException":
|
|
712
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
713
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
+
case "ThrottlingException":
|
|
715
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
716
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
717
|
+
case "ValidationException":
|
|
718
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
719
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
720
|
+
default:
|
|
721
|
+
const parsedBody = parsedOutput.body;
|
|
722
|
+
return throwDefaultError({
|
|
723
|
+
output,
|
|
724
|
+
parsedBody,
|
|
725
|
+
errorCode
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
}, "de_CancelImportTaskCommandError");
|
|
729
|
+
var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
731
|
+
return de_CreateGraphCommandError(output, context);
|
|
732
|
+
}
|
|
733
|
+
const contents = (0, import_smithy_client.map)({
|
|
734
|
+
$metadata: deserializeMetadata(output)
|
|
735
|
+
});
|
|
736
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
737
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
738
|
+
arn: import_smithy_client.expectString,
|
|
739
|
+
buildNumber: import_smithy_client.expectString,
|
|
740
|
+
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
741
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
742
|
+
endpoint: import_smithy_client.expectString,
|
|
743
|
+
id: import_smithy_client.expectString,
|
|
744
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
745
|
+
name: import_smithy_client.expectString,
|
|
746
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
747
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
748
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
749
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
750
|
+
status: import_smithy_client.expectString,
|
|
751
|
+
statusReason: import_smithy_client.expectString,
|
|
752
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
753
|
+
});
|
|
754
|
+
Object.assign(contents, doc);
|
|
755
|
+
return contents;
|
|
756
|
+
}, "de_CreateGraphCommand");
|
|
757
|
+
var de_CreateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
758
|
+
const parsedOutput = {
|
|
759
|
+
...output,
|
|
760
|
+
body: await parseErrorBody(output.body, context)
|
|
761
|
+
};
|
|
762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
+
switch (errorCode) {
|
|
764
|
+
case "ConflictException":
|
|
765
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
766
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
767
|
+
case "InternalServerException":
|
|
768
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
769
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
+
case "ServiceQuotaExceededException":
|
|
771
|
+
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
772
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
773
|
+
case "ThrottlingException":
|
|
774
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
775
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
776
|
+
case "ValidationException":
|
|
777
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
778
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
+
default:
|
|
780
|
+
const parsedBody = parsedOutput.body;
|
|
781
|
+
return throwDefaultError({
|
|
782
|
+
output,
|
|
783
|
+
parsedBody,
|
|
784
|
+
errorCode
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
}, "de_CreateGraphCommandError");
|
|
788
|
+
var de_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
790
|
+
return de_CreateGraphSnapshotCommandError(output, context);
|
|
791
|
+
}
|
|
792
|
+
const contents = (0, import_smithy_client.map)({
|
|
793
|
+
$metadata: deserializeMetadata(output)
|
|
794
|
+
});
|
|
795
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
796
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
+
arn: import_smithy_client.expectString,
|
|
798
|
+
id: import_smithy_client.expectString,
|
|
799
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
800
|
+
name: import_smithy_client.expectString,
|
|
801
|
+
snapshotCreateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
802
|
+
sourceGraphId: import_smithy_client.expectString,
|
|
803
|
+
status: import_smithy_client.expectString
|
|
804
|
+
});
|
|
805
|
+
Object.assign(contents, doc);
|
|
806
|
+
return contents;
|
|
807
|
+
}, "de_CreateGraphSnapshotCommand");
|
|
808
|
+
var de_CreateGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
|
+
const parsedOutput = {
|
|
810
|
+
...output,
|
|
811
|
+
body: await parseErrorBody(output.body, context)
|
|
812
|
+
};
|
|
813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
+
switch (errorCode) {
|
|
815
|
+
case "ConflictException":
|
|
816
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
817
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
818
|
+
case "InternalServerException":
|
|
819
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
821
|
+
case "ResourceNotFoundException":
|
|
822
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
824
|
+
case "ServiceQuotaExceededException":
|
|
825
|
+
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
826
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
827
|
+
case "ThrottlingException":
|
|
828
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
829
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ValidationException":
|
|
831
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
832
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
|
+
default:
|
|
834
|
+
const parsedBody = parsedOutput.body;
|
|
835
|
+
return throwDefaultError({
|
|
836
|
+
output,
|
|
837
|
+
parsedBody,
|
|
838
|
+
errorCode
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
}, "de_CreateGraphSnapshotCommandError");
|
|
842
|
+
var de_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
844
|
+
return de_CreateGraphUsingImportTaskCommandError(output, context);
|
|
845
|
+
}
|
|
846
|
+
const contents = (0, import_smithy_client.map)({
|
|
847
|
+
$metadata: deserializeMetadata(output)
|
|
848
|
+
});
|
|
849
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
850
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
851
|
+
format: import_smithy_client.expectString,
|
|
852
|
+
graphId: import_smithy_client.expectString,
|
|
853
|
+
importOptions: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
|
|
854
|
+
roleArn: import_smithy_client.expectString,
|
|
855
|
+
source: import_smithy_client.expectString,
|
|
856
|
+
status: import_smithy_client.expectString,
|
|
857
|
+
taskId: import_smithy_client.expectString
|
|
858
|
+
});
|
|
859
|
+
Object.assign(contents, doc);
|
|
860
|
+
return contents;
|
|
861
|
+
}, "de_CreateGraphUsingImportTaskCommand");
|
|
862
|
+
var de_CreateGraphUsingImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
+
const parsedOutput = {
|
|
864
|
+
...output,
|
|
865
|
+
body: await parseErrorBody(output.body, context)
|
|
866
|
+
};
|
|
867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
+
switch (errorCode) {
|
|
869
|
+
case "ConflictException":
|
|
870
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
871
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
872
|
+
case "InternalServerException":
|
|
873
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
874
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
875
|
+
case "ServiceQuotaExceededException":
|
|
876
|
+
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
877
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
878
|
+
case "ThrottlingException":
|
|
879
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
880
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
881
|
+
case "ValidationException":
|
|
882
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
883
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
884
|
+
default:
|
|
885
|
+
const parsedBody = parsedOutput.body;
|
|
886
|
+
return throwDefaultError({
|
|
887
|
+
output,
|
|
888
|
+
parsedBody,
|
|
889
|
+
errorCode
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
}, "de_CreateGraphUsingImportTaskCommandError");
|
|
893
|
+
var de_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
895
|
+
return de_CreatePrivateGraphEndpointCommandError(output, context);
|
|
896
|
+
}
|
|
897
|
+
const contents = (0, import_smithy_client.map)({
|
|
898
|
+
$metadata: deserializeMetadata(output)
|
|
899
|
+
});
|
|
900
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
901
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
902
|
+
status: import_smithy_client.expectString,
|
|
903
|
+
subnetIds: import_smithy_client._json,
|
|
904
|
+
vpcEndpointId: import_smithy_client.expectString,
|
|
905
|
+
vpcId: import_smithy_client.expectString
|
|
906
|
+
});
|
|
907
|
+
Object.assign(contents, doc);
|
|
908
|
+
return contents;
|
|
909
|
+
}, "de_CreatePrivateGraphEndpointCommand");
|
|
910
|
+
var de_CreatePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
911
|
+
const parsedOutput = {
|
|
912
|
+
...output,
|
|
913
|
+
body: await parseErrorBody(output.body, context)
|
|
914
|
+
};
|
|
915
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
+
switch (errorCode) {
|
|
917
|
+
case "ConflictException":
|
|
918
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
919
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
920
|
+
case "InternalServerException":
|
|
921
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
922
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
923
|
+
case "ResourceNotFoundException":
|
|
924
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
925
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
926
|
+
case "ServiceQuotaExceededException":
|
|
927
|
+
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
928
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
929
|
+
case "ThrottlingException":
|
|
930
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
931
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
932
|
+
case "ValidationException":
|
|
933
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
934
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
935
|
+
default:
|
|
936
|
+
const parsedBody = parsedOutput.body;
|
|
937
|
+
return throwDefaultError({
|
|
938
|
+
output,
|
|
939
|
+
parsedBody,
|
|
940
|
+
errorCode
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
}, "de_CreatePrivateGraphEndpointCommandError");
|
|
944
|
+
var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
945
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
+
return de_DeleteGraphCommandError(output, context);
|
|
947
|
+
}
|
|
948
|
+
const contents = (0, import_smithy_client.map)({
|
|
949
|
+
$metadata: deserializeMetadata(output)
|
|
950
|
+
});
|
|
951
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
952
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
953
|
+
arn: import_smithy_client.expectString,
|
|
954
|
+
buildNumber: import_smithy_client.expectString,
|
|
955
|
+
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
956
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
957
|
+
endpoint: import_smithy_client.expectString,
|
|
958
|
+
id: import_smithy_client.expectString,
|
|
959
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
960
|
+
name: import_smithy_client.expectString,
|
|
961
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
962
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
963
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
964
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
965
|
+
status: import_smithy_client.expectString,
|
|
966
|
+
statusReason: import_smithy_client.expectString,
|
|
967
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
968
|
+
});
|
|
969
|
+
Object.assign(contents, doc);
|
|
970
|
+
return contents;
|
|
971
|
+
}, "de_DeleteGraphCommand");
|
|
972
|
+
var de_DeleteGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
+
const parsedOutput = {
|
|
974
|
+
...output,
|
|
975
|
+
body: await parseErrorBody(output.body, context)
|
|
976
|
+
};
|
|
977
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
|
+
switch (errorCode) {
|
|
979
|
+
case "ConflictException":
|
|
980
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
981
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
982
|
+
case "InternalServerException":
|
|
983
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
984
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
985
|
+
case "ResourceNotFoundException":
|
|
986
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
987
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
988
|
+
case "ThrottlingException":
|
|
989
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
990
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
991
|
+
case "ValidationException":
|
|
992
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
993
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
994
|
+
default:
|
|
995
|
+
const parsedBody = parsedOutput.body;
|
|
996
|
+
return throwDefaultError({
|
|
997
|
+
output,
|
|
998
|
+
parsedBody,
|
|
999
|
+
errorCode
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
1002
|
+
}, "de_DeleteGraphCommandError");
|
|
1003
|
+
var de_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
+
return de_DeleteGraphSnapshotCommandError(output, context);
|
|
1006
|
+
}
|
|
1007
|
+
const contents = (0, import_smithy_client.map)({
|
|
1008
|
+
$metadata: deserializeMetadata(output)
|
|
1009
|
+
});
|
|
1010
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1011
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1012
|
+
arn: import_smithy_client.expectString,
|
|
1013
|
+
id: import_smithy_client.expectString,
|
|
1014
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1015
|
+
name: import_smithy_client.expectString,
|
|
1016
|
+
snapshotCreateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1017
|
+
sourceGraphId: import_smithy_client.expectString,
|
|
1018
|
+
status: import_smithy_client.expectString
|
|
1019
|
+
});
|
|
1020
|
+
Object.assign(contents, doc);
|
|
1021
|
+
return contents;
|
|
1022
|
+
}, "de_DeleteGraphSnapshotCommand");
|
|
1023
|
+
var de_DeleteGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1024
|
+
const parsedOutput = {
|
|
1025
|
+
...output,
|
|
1026
|
+
body: await parseErrorBody(output.body, context)
|
|
1027
|
+
};
|
|
1028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
switch (errorCode) {
|
|
1030
|
+
case "ConflictException":
|
|
1031
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1032
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1033
|
+
case "InternalServerException":
|
|
1034
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1035
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1036
|
+
case "ResourceNotFoundException":
|
|
1037
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1038
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1039
|
+
case "ThrottlingException":
|
|
1040
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1041
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1042
|
+
case "ValidationException":
|
|
1043
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1044
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
|
+
default:
|
|
1046
|
+
const parsedBody = parsedOutput.body;
|
|
1047
|
+
return throwDefaultError({
|
|
1048
|
+
output,
|
|
1049
|
+
parsedBody,
|
|
1050
|
+
errorCode
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
}, "de_DeleteGraphSnapshotCommandError");
|
|
1054
|
+
var de_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
+
return de_DeletePrivateGraphEndpointCommandError(output, context);
|
|
1057
|
+
}
|
|
1058
|
+
const contents = (0, import_smithy_client.map)({
|
|
1059
|
+
$metadata: deserializeMetadata(output)
|
|
1060
|
+
});
|
|
1061
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1062
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1063
|
+
status: import_smithy_client.expectString,
|
|
1064
|
+
subnetIds: import_smithy_client._json,
|
|
1065
|
+
vpcEndpointId: import_smithy_client.expectString,
|
|
1066
|
+
vpcId: import_smithy_client.expectString
|
|
1067
|
+
});
|
|
1068
|
+
Object.assign(contents, doc);
|
|
1069
|
+
return contents;
|
|
1070
|
+
}, "de_DeletePrivateGraphEndpointCommand");
|
|
1071
|
+
var de_DeletePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1072
|
+
const parsedOutput = {
|
|
1073
|
+
...output,
|
|
1074
|
+
body: await parseErrorBody(output.body, context)
|
|
1075
|
+
};
|
|
1076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
+
switch (errorCode) {
|
|
1078
|
+
case "ConflictException":
|
|
1079
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1080
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1081
|
+
case "InternalServerException":
|
|
1082
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1083
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1084
|
+
case "ResourceNotFoundException":
|
|
1085
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1086
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1087
|
+
case "ThrottlingException":
|
|
1088
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1090
|
+
case "ValidationException":
|
|
1091
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1092
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1093
|
+
default:
|
|
1094
|
+
const parsedBody = parsedOutput.body;
|
|
1095
|
+
return throwDefaultError({
|
|
1096
|
+
output,
|
|
1097
|
+
parsedBody,
|
|
1098
|
+
errorCode
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
}, "de_DeletePrivateGraphEndpointCommandError");
|
|
1102
|
+
var de_GetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
+
return de_GetGraphCommandError(output, context);
|
|
1105
|
+
}
|
|
1106
|
+
const contents = (0, import_smithy_client.map)({
|
|
1107
|
+
$metadata: deserializeMetadata(output)
|
|
1108
|
+
});
|
|
1109
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1110
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1111
|
+
arn: import_smithy_client.expectString,
|
|
1112
|
+
buildNumber: import_smithy_client.expectString,
|
|
1113
|
+
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1114
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
1115
|
+
endpoint: import_smithy_client.expectString,
|
|
1116
|
+
id: import_smithy_client.expectString,
|
|
1117
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1118
|
+
name: import_smithy_client.expectString,
|
|
1119
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
1120
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
1121
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
1122
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
1123
|
+
status: import_smithy_client.expectString,
|
|
1124
|
+
statusReason: import_smithy_client.expectString,
|
|
1125
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
1126
|
+
});
|
|
1127
|
+
Object.assign(contents, doc);
|
|
1128
|
+
return contents;
|
|
1129
|
+
}, "de_GetGraphCommand");
|
|
1130
|
+
var de_GetGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1131
|
+
const parsedOutput = {
|
|
1132
|
+
...output,
|
|
1133
|
+
body: await parseErrorBody(output.body, context)
|
|
1134
|
+
};
|
|
1135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
|
+
switch (errorCode) {
|
|
1137
|
+
case "InternalServerException":
|
|
1138
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1139
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1140
|
+
case "ResourceNotFoundException":
|
|
1141
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1142
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1143
|
+
case "ThrottlingException":
|
|
1144
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1145
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1146
|
+
case "ValidationException":
|
|
1147
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1148
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1149
|
+
default:
|
|
1150
|
+
const parsedBody = parsedOutput.body;
|
|
1151
|
+
return throwDefaultError({
|
|
1152
|
+
output,
|
|
1153
|
+
parsedBody,
|
|
1154
|
+
errorCode
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
}, "de_GetGraphCommandError");
|
|
1158
|
+
var de_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1160
|
+
return de_GetGraphSnapshotCommandError(output, context);
|
|
1161
|
+
}
|
|
1162
|
+
const contents = (0, import_smithy_client.map)({
|
|
1163
|
+
$metadata: deserializeMetadata(output)
|
|
1164
|
+
});
|
|
1165
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1166
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1167
|
+
arn: import_smithy_client.expectString,
|
|
1168
|
+
id: import_smithy_client.expectString,
|
|
1169
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1170
|
+
name: import_smithy_client.expectString,
|
|
1171
|
+
snapshotCreateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1172
|
+
sourceGraphId: import_smithy_client.expectString,
|
|
1173
|
+
status: import_smithy_client.expectString
|
|
1174
|
+
});
|
|
1175
|
+
Object.assign(contents, doc);
|
|
1176
|
+
return contents;
|
|
1177
|
+
}, "de_GetGraphSnapshotCommand");
|
|
1178
|
+
var de_GetGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1179
|
+
const parsedOutput = {
|
|
1180
|
+
...output,
|
|
1181
|
+
body: await parseErrorBody(output.body, context)
|
|
1182
|
+
};
|
|
1183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
+
switch (errorCode) {
|
|
1185
|
+
case "InternalServerException":
|
|
1186
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1187
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1188
|
+
case "ResourceNotFoundException":
|
|
1189
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1190
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1191
|
+
case "ThrottlingException":
|
|
1192
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1193
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
|
+
case "ValidationException":
|
|
1195
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1196
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1197
|
+
default:
|
|
1198
|
+
const parsedBody = parsedOutput.body;
|
|
1199
|
+
return throwDefaultError({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
errorCode
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
}, "de_GetGraphSnapshotCommandError");
|
|
1206
|
+
var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1207
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1208
|
+
return de_GetImportTaskCommandError(output, context);
|
|
1209
|
+
}
|
|
1210
|
+
const contents = (0, import_smithy_client.map)({
|
|
1211
|
+
$metadata: deserializeMetadata(output)
|
|
1212
|
+
});
|
|
1213
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1214
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1215
|
+
attemptNumber: import_smithy_client.expectInt32,
|
|
1216
|
+
format: import_smithy_client.expectString,
|
|
1217
|
+
graphId: import_smithy_client.expectString,
|
|
1218
|
+
importOptions: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
|
|
1219
|
+
importTaskDetails: (_) => de_ImportTaskDetails(_, context),
|
|
1220
|
+
roleArn: import_smithy_client.expectString,
|
|
1221
|
+
source: import_smithy_client.expectString,
|
|
1222
|
+
status: import_smithy_client.expectString,
|
|
1223
|
+
statusReason: import_smithy_client.expectString,
|
|
1224
|
+
taskId: import_smithy_client.expectString
|
|
1225
|
+
});
|
|
1226
|
+
Object.assign(contents, doc);
|
|
1227
|
+
return contents;
|
|
1228
|
+
}, "de_GetImportTaskCommand");
|
|
1229
|
+
var de_GetImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
|
+
const parsedOutput = {
|
|
1231
|
+
...output,
|
|
1232
|
+
body: await parseErrorBody(output.body, context)
|
|
1233
|
+
};
|
|
1234
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
+
switch (errorCode) {
|
|
1236
|
+
case "InternalServerException":
|
|
1237
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1238
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1239
|
+
case "ResourceNotFoundException":
|
|
1240
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1241
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1242
|
+
case "ThrottlingException":
|
|
1243
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1244
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "ValidationException":
|
|
1246
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1247
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1248
|
+
default:
|
|
1249
|
+
const parsedBody = parsedOutput.body;
|
|
1250
|
+
return throwDefaultError({
|
|
1251
|
+
output,
|
|
1252
|
+
parsedBody,
|
|
1253
|
+
errorCode
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
}, "de_GetImportTaskCommandError");
|
|
1257
|
+
var de_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1258
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
+
return de_GetPrivateGraphEndpointCommandError(output, context);
|
|
1260
|
+
}
|
|
1261
|
+
const contents = (0, import_smithy_client.map)({
|
|
1262
|
+
$metadata: deserializeMetadata(output)
|
|
1263
|
+
});
|
|
1264
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1265
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1266
|
+
status: import_smithy_client.expectString,
|
|
1267
|
+
subnetIds: import_smithy_client._json,
|
|
1268
|
+
vpcEndpointId: import_smithy_client.expectString,
|
|
1269
|
+
vpcId: import_smithy_client.expectString
|
|
1270
|
+
});
|
|
1271
|
+
Object.assign(contents, doc);
|
|
1272
|
+
return contents;
|
|
1273
|
+
}, "de_GetPrivateGraphEndpointCommand");
|
|
1274
|
+
var de_GetPrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
|
+
const parsedOutput = {
|
|
1276
|
+
...output,
|
|
1277
|
+
body: await parseErrorBody(output.body, context)
|
|
1278
|
+
};
|
|
1279
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
+
switch (errorCode) {
|
|
1281
|
+
case "InternalServerException":
|
|
1282
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1283
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1284
|
+
case "ResourceNotFoundException":
|
|
1285
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1286
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1287
|
+
case "ThrottlingException":
|
|
1288
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1289
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1290
|
+
case "ValidationException":
|
|
1291
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1292
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1293
|
+
default:
|
|
1294
|
+
const parsedBody = parsedOutput.body;
|
|
1295
|
+
return throwDefaultError({
|
|
1296
|
+
output,
|
|
1297
|
+
parsedBody,
|
|
1298
|
+
errorCode
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
}, "de_GetPrivateGraphEndpointCommandError");
|
|
1302
|
+
var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
|
+
return de_ListGraphsCommandError(output, context);
|
|
1305
|
+
}
|
|
1306
|
+
const contents = (0, import_smithy_client.map)({
|
|
1307
|
+
$metadata: deserializeMetadata(output)
|
|
1308
|
+
});
|
|
1309
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1310
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1311
|
+
graphs: import_smithy_client._json,
|
|
1312
|
+
nextToken: import_smithy_client.expectString
|
|
1313
|
+
});
|
|
1314
|
+
Object.assign(contents, doc);
|
|
1315
|
+
return contents;
|
|
1316
|
+
}, "de_ListGraphsCommand");
|
|
1317
|
+
var de_ListGraphsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1318
|
+
const parsedOutput = {
|
|
1319
|
+
...output,
|
|
1320
|
+
body: await parseErrorBody(output.body, context)
|
|
1321
|
+
};
|
|
1322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
+
switch (errorCode) {
|
|
1324
|
+
case "InternalServerException":
|
|
1325
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1326
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1327
|
+
case "ResourceNotFoundException":
|
|
1328
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1329
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
+
case "ThrottlingException":
|
|
1331
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1332
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1333
|
+
default:
|
|
1334
|
+
const parsedBody = parsedOutput.body;
|
|
1335
|
+
return throwDefaultError({
|
|
1336
|
+
output,
|
|
1337
|
+
parsedBody,
|
|
1338
|
+
errorCode
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
}, "de_ListGraphsCommandError");
|
|
1342
|
+
var de_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1343
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1344
|
+
return de_ListGraphSnapshotsCommandError(output, context);
|
|
1345
|
+
}
|
|
1346
|
+
const contents = (0, import_smithy_client.map)({
|
|
1347
|
+
$metadata: deserializeMetadata(output)
|
|
1348
|
+
});
|
|
1349
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1350
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1351
|
+
graphSnapshots: (_) => de_GraphSnapshotSummaryList(_, context),
|
|
1352
|
+
nextToken: import_smithy_client.expectString
|
|
1353
|
+
});
|
|
1354
|
+
Object.assign(contents, doc);
|
|
1355
|
+
return contents;
|
|
1356
|
+
}, "de_ListGraphSnapshotsCommand");
|
|
1357
|
+
var de_ListGraphSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1358
|
+
const parsedOutput = {
|
|
1359
|
+
...output,
|
|
1360
|
+
body: await parseErrorBody(output.body, context)
|
|
1361
|
+
};
|
|
1362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
+
switch (errorCode) {
|
|
1364
|
+
case "InternalServerException":
|
|
1365
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1366
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1367
|
+
case "ResourceNotFoundException":
|
|
1368
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1369
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1370
|
+
case "ThrottlingException":
|
|
1371
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1372
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1373
|
+
case "ValidationException":
|
|
1374
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1375
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1376
|
+
default:
|
|
1377
|
+
const parsedBody = parsedOutput.body;
|
|
1378
|
+
return throwDefaultError({
|
|
1379
|
+
output,
|
|
1380
|
+
parsedBody,
|
|
1381
|
+
errorCode
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
}, "de_ListGraphSnapshotsCommandError");
|
|
1385
|
+
var de_ListImportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1386
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1387
|
+
return de_ListImportTasksCommandError(output, context);
|
|
1388
|
+
}
|
|
1389
|
+
const contents = (0, import_smithy_client.map)({
|
|
1390
|
+
$metadata: deserializeMetadata(output)
|
|
1391
|
+
});
|
|
1392
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1393
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1394
|
+
nextToken: import_smithy_client.expectString,
|
|
1395
|
+
tasks: import_smithy_client._json
|
|
1396
|
+
});
|
|
1397
|
+
Object.assign(contents, doc);
|
|
1398
|
+
return contents;
|
|
1399
|
+
}, "de_ListImportTasksCommand");
|
|
1400
|
+
var de_ListImportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
+
const parsedOutput = {
|
|
1402
|
+
...output,
|
|
1403
|
+
body: await parseErrorBody(output.body, context)
|
|
1404
|
+
};
|
|
1405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
+
switch (errorCode) {
|
|
1407
|
+
case "InternalServerException":
|
|
1408
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1409
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1410
|
+
case "ResourceNotFoundException":
|
|
1411
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1412
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1413
|
+
case "ThrottlingException":
|
|
1414
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1415
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1416
|
+
case "ValidationException":
|
|
1417
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1418
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1419
|
+
default:
|
|
1420
|
+
const parsedBody = parsedOutput.body;
|
|
1421
|
+
return throwDefaultError({
|
|
1422
|
+
output,
|
|
1423
|
+
parsedBody,
|
|
1424
|
+
errorCode
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
}, "de_ListImportTasksCommandError");
|
|
1428
|
+
var de_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
+
return de_ListPrivateGraphEndpointsCommandError(output, context);
|
|
1431
|
+
}
|
|
1432
|
+
const contents = (0, import_smithy_client.map)({
|
|
1433
|
+
$metadata: deserializeMetadata(output)
|
|
1434
|
+
});
|
|
1435
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1436
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1437
|
+
nextToken: import_smithy_client.expectString,
|
|
1438
|
+
privateGraphEndpoints: import_smithy_client._json
|
|
1439
|
+
});
|
|
1440
|
+
Object.assign(contents, doc);
|
|
1441
|
+
return contents;
|
|
1442
|
+
}, "de_ListPrivateGraphEndpointsCommand");
|
|
1443
|
+
var de_ListPrivateGraphEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
|
+
const parsedOutput = {
|
|
1445
|
+
...output,
|
|
1446
|
+
body: await parseErrorBody(output.body, context)
|
|
1447
|
+
};
|
|
1448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
+
switch (errorCode) {
|
|
1450
|
+
case "InternalServerException":
|
|
1451
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1452
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1453
|
+
case "ResourceNotFoundException":
|
|
1454
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1455
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1456
|
+
case "ThrottlingException":
|
|
1457
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1458
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1459
|
+
case "ValidationException":
|
|
1460
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1461
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1462
|
+
default:
|
|
1463
|
+
const parsedBody = parsedOutput.body;
|
|
1464
|
+
return throwDefaultError({
|
|
1465
|
+
output,
|
|
1466
|
+
parsedBody,
|
|
1467
|
+
errorCode
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
}, "de_ListPrivateGraphEndpointsCommandError");
|
|
1471
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1474
|
+
}
|
|
1475
|
+
const contents = (0, import_smithy_client.map)({
|
|
1476
|
+
$metadata: deserializeMetadata(output)
|
|
1477
|
+
});
|
|
1478
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1479
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1480
|
+
tags: import_smithy_client._json
|
|
1481
|
+
});
|
|
1482
|
+
Object.assign(contents, doc);
|
|
1483
|
+
return contents;
|
|
1484
|
+
}, "de_ListTagsForResourceCommand");
|
|
1485
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
|
+
const parsedOutput = {
|
|
1487
|
+
...output,
|
|
1488
|
+
body: await parseErrorBody(output.body, context)
|
|
1489
|
+
};
|
|
1490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
+
switch (errorCode) {
|
|
1492
|
+
case "InternalServerException":
|
|
1493
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1494
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1495
|
+
case "ResourceNotFoundException":
|
|
1496
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1497
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
+
case "ThrottlingException":
|
|
1499
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1500
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1501
|
+
case "ValidationException":
|
|
1502
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1503
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1504
|
+
default:
|
|
1505
|
+
const parsedBody = parsedOutput.body;
|
|
1506
|
+
return throwDefaultError({
|
|
1507
|
+
output,
|
|
1508
|
+
parsedBody,
|
|
1509
|
+
errorCode
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1513
|
+
var de_ResetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
|
+
return de_ResetGraphCommandError(output, context);
|
|
1516
|
+
}
|
|
1517
|
+
const contents = (0, import_smithy_client.map)({
|
|
1518
|
+
$metadata: deserializeMetadata(output)
|
|
1519
|
+
});
|
|
1520
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1521
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1522
|
+
arn: import_smithy_client.expectString,
|
|
1523
|
+
buildNumber: import_smithy_client.expectString,
|
|
1524
|
+
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1525
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
1526
|
+
endpoint: import_smithy_client.expectString,
|
|
1527
|
+
id: import_smithy_client.expectString,
|
|
1528
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1529
|
+
name: import_smithy_client.expectString,
|
|
1530
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
1531
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
1532
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
1533
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
1534
|
+
status: import_smithy_client.expectString,
|
|
1535
|
+
statusReason: import_smithy_client.expectString,
|
|
1536
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
1537
|
+
});
|
|
1538
|
+
Object.assign(contents, doc);
|
|
1539
|
+
return contents;
|
|
1540
|
+
}, "de_ResetGraphCommand");
|
|
1541
|
+
var de_ResetGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1542
|
+
const parsedOutput = {
|
|
1543
|
+
...output,
|
|
1544
|
+
body: await parseErrorBody(output.body, context)
|
|
1545
|
+
};
|
|
1546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
+
switch (errorCode) {
|
|
1548
|
+
case "ConflictException":
|
|
1549
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1550
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1551
|
+
case "InternalServerException":
|
|
1552
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1553
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1554
|
+
case "ResourceNotFoundException":
|
|
1555
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1556
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1557
|
+
case "ThrottlingException":
|
|
1558
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1559
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1560
|
+
case "ValidationException":
|
|
1561
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1562
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1563
|
+
default:
|
|
1564
|
+
const parsedBody = parsedOutput.body;
|
|
1565
|
+
return throwDefaultError({
|
|
1566
|
+
output,
|
|
1567
|
+
parsedBody,
|
|
1568
|
+
errorCode
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
}, "de_ResetGraphCommandError");
|
|
1572
|
+
var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1573
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1574
|
+
return de_RestoreGraphFromSnapshotCommandError(output, context);
|
|
1575
|
+
}
|
|
1576
|
+
const contents = (0, import_smithy_client.map)({
|
|
1577
|
+
$metadata: deserializeMetadata(output)
|
|
1578
|
+
});
|
|
1579
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1580
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1581
|
+
arn: import_smithy_client.expectString,
|
|
1582
|
+
buildNumber: import_smithy_client.expectString,
|
|
1583
|
+
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1584
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
1585
|
+
endpoint: import_smithy_client.expectString,
|
|
1586
|
+
id: import_smithy_client.expectString,
|
|
1587
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1588
|
+
name: import_smithy_client.expectString,
|
|
1589
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
1590
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
1591
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
1592
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
1593
|
+
status: import_smithy_client.expectString,
|
|
1594
|
+
statusReason: import_smithy_client.expectString,
|
|
1595
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
1596
|
+
});
|
|
1597
|
+
Object.assign(contents, doc);
|
|
1598
|
+
return contents;
|
|
1599
|
+
}, "de_RestoreGraphFromSnapshotCommand");
|
|
1600
|
+
var de_RestoreGraphFromSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1601
|
+
const parsedOutput = {
|
|
1602
|
+
...output,
|
|
1603
|
+
body: await parseErrorBody(output.body, context)
|
|
1604
|
+
};
|
|
1605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
|
+
switch (errorCode) {
|
|
1607
|
+
case "ConflictException":
|
|
1608
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1609
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1610
|
+
case "InternalServerException":
|
|
1611
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1612
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1613
|
+
case "ResourceNotFoundException":
|
|
1614
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1615
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1616
|
+
case "ServiceQuotaExceededException":
|
|
1617
|
+
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
1618
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1619
|
+
case "ThrottlingException":
|
|
1620
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1621
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1622
|
+
case "ValidationException":
|
|
1623
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1624
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1625
|
+
default:
|
|
1626
|
+
const parsedBody = parsedOutput.body;
|
|
1627
|
+
return throwDefaultError({
|
|
1628
|
+
output,
|
|
1629
|
+
parsedBody,
|
|
1630
|
+
errorCode
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
}, "de_RestoreGraphFromSnapshotCommandError");
|
|
1634
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1635
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1636
|
+
return de_TagResourceCommandError(output, context);
|
|
1637
|
+
}
|
|
1638
|
+
const contents = (0, import_smithy_client.map)({
|
|
1639
|
+
$metadata: deserializeMetadata(output)
|
|
1640
|
+
});
|
|
1641
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1642
|
+
return contents;
|
|
1643
|
+
}, "de_TagResourceCommand");
|
|
1644
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1645
|
+
const parsedOutput = {
|
|
1646
|
+
...output,
|
|
1647
|
+
body: await parseErrorBody(output.body, context)
|
|
1648
|
+
};
|
|
1649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
|
+
switch (errorCode) {
|
|
1651
|
+
case "InternalServerException":
|
|
1652
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1653
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1654
|
+
case "ResourceNotFoundException":
|
|
1655
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1656
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1657
|
+
case "ThrottlingException":
|
|
1658
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1659
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1660
|
+
case "ValidationException":
|
|
1661
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1662
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1663
|
+
default:
|
|
1664
|
+
const parsedBody = parsedOutput.body;
|
|
1665
|
+
return throwDefaultError({
|
|
1666
|
+
output,
|
|
1667
|
+
parsedBody,
|
|
1668
|
+
errorCode
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
}, "de_TagResourceCommandError");
|
|
1672
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1673
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1674
|
+
return de_UntagResourceCommandError(output, context);
|
|
1675
|
+
}
|
|
1676
|
+
const contents = (0, import_smithy_client.map)({
|
|
1677
|
+
$metadata: deserializeMetadata(output)
|
|
1678
|
+
});
|
|
1679
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1680
|
+
return contents;
|
|
1681
|
+
}, "de_UntagResourceCommand");
|
|
1682
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
+
const parsedOutput = {
|
|
1684
|
+
...output,
|
|
1685
|
+
body: await parseErrorBody(output.body, context)
|
|
1686
|
+
};
|
|
1687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
+
switch (errorCode) {
|
|
1689
|
+
case "InternalServerException":
|
|
1690
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1691
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1692
|
+
case "ResourceNotFoundException":
|
|
1693
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1694
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1695
|
+
case "ThrottlingException":
|
|
1696
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1697
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1698
|
+
case "ValidationException":
|
|
1699
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1700
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1701
|
+
default:
|
|
1702
|
+
const parsedBody = parsedOutput.body;
|
|
1703
|
+
return throwDefaultError({
|
|
1704
|
+
output,
|
|
1705
|
+
parsedBody,
|
|
1706
|
+
errorCode
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
}, "de_UntagResourceCommandError");
|
|
1710
|
+
var de_UpdateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1712
|
+
return de_UpdateGraphCommandError(output, context);
|
|
1713
|
+
}
|
|
1714
|
+
const contents = (0, import_smithy_client.map)({
|
|
1715
|
+
$metadata: deserializeMetadata(output)
|
|
1716
|
+
});
|
|
1717
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1718
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1719
|
+
arn: import_smithy_client.expectString,
|
|
1720
|
+
buildNumber: import_smithy_client.expectString,
|
|
1721
|
+
createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1722
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
1723
|
+
endpoint: import_smithy_client.expectString,
|
|
1724
|
+
id: import_smithy_client.expectString,
|
|
1725
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1726
|
+
name: import_smithy_client.expectString,
|
|
1727
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
1728
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
1729
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
1730
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
1731
|
+
status: import_smithy_client.expectString,
|
|
1732
|
+
statusReason: import_smithy_client.expectString,
|
|
1733
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
1734
|
+
});
|
|
1735
|
+
Object.assign(contents, doc);
|
|
1736
|
+
return contents;
|
|
1737
|
+
}, "de_UpdateGraphCommand");
|
|
1738
|
+
var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
|
+
const parsedOutput = {
|
|
1740
|
+
...output,
|
|
1741
|
+
body: await parseErrorBody(output.body, context)
|
|
1742
|
+
};
|
|
1743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
+
switch (errorCode) {
|
|
1745
|
+
case "ConflictException":
|
|
1746
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1747
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1748
|
+
case "InternalServerException":
|
|
1749
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1750
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1751
|
+
case "ResourceNotFoundException":
|
|
1752
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1753
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
+
case "ThrottlingException":
|
|
1755
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1756
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1757
|
+
case "ValidationException":
|
|
1758
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1759
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1760
|
+
default:
|
|
1761
|
+
const parsedBody = parsedOutput.body;
|
|
1762
|
+
return throwDefaultError({
|
|
1763
|
+
output,
|
|
1764
|
+
parsedBody,
|
|
1765
|
+
errorCode
|
|
1766
|
+
});
|
|
1767
|
+
}
|
|
1768
|
+
}, "de_UpdateGraphCommandError");
|
|
1769
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(NeptuneGraphServiceException);
|
|
1770
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1771
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1772
|
+
const data = parsedOutput.body;
|
|
1773
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1774
|
+
message: import_smithy_client.expectString,
|
|
1775
|
+
reason: import_smithy_client.expectString
|
|
1776
|
+
});
|
|
1777
|
+
Object.assign(contents, doc);
|
|
1778
|
+
const exception = new ConflictException({
|
|
1779
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1780
|
+
...contents
|
|
1781
|
+
});
|
|
1782
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1783
|
+
}, "de_ConflictExceptionRes");
|
|
1784
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1785
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1786
|
+
const data = parsedOutput.body;
|
|
1787
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1788
|
+
message: import_smithy_client.expectString
|
|
1789
|
+
});
|
|
1790
|
+
Object.assign(contents, doc);
|
|
1791
|
+
const exception = new InternalServerException({
|
|
1792
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1793
|
+
...contents
|
|
1794
|
+
});
|
|
1795
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1796
|
+
}, "de_InternalServerExceptionRes");
|
|
1797
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1798
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1799
|
+
const data = parsedOutput.body;
|
|
1800
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1801
|
+
message: import_smithy_client.expectString
|
|
1802
|
+
});
|
|
1803
|
+
Object.assign(contents, doc);
|
|
1804
|
+
const exception = new ResourceNotFoundException({
|
|
1805
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1806
|
+
...contents
|
|
1807
|
+
});
|
|
1808
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1809
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1810
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1811
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1812
|
+
const data = parsedOutput.body;
|
|
1813
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1814
|
+
message: import_smithy_client.expectString,
|
|
1815
|
+
quotaCode: import_smithy_client.expectString,
|
|
1816
|
+
resourceId: import_smithy_client.expectString,
|
|
1817
|
+
resourceType: import_smithy_client.expectString,
|
|
1818
|
+
serviceCode: import_smithy_client.expectString
|
|
1819
|
+
});
|
|
1820
|
+
Object.assign(contents, doc);
|
|
1821
|
+
const exception = new ServiceQuotaExceededException({
|
|
1822
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1823
|
+
...contents
|
|
1824
|
+
});
|
|
1825
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1826
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1827
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1828
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1829
|
+
const data = parsedOutput.body;
|
|
1830
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1831
|
+
message: import_smithy_client.expectString
|
|
1832
|
+
});
|
|
1833
|
+
Object.assign(contents, doc);
|
|
1834
|
+
const exception = new ThrottlingException({
|
|
1835
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1836
|
+
...contents
|
|
1837
|
+
});
|
|
1838
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1839
|
+
}, "de_ThrottlingExceptionRes");
|
|
1840
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1841
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1842
|
+
const data = parsedOutput.body;
|
|
1843
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1844
|
+
message: import_smithy_client.expectString,
|
|
1845
|
+
reason: import_smithy_client.expectString
|
|
1846
|
+
});
|
|
1847
|
+
Object.assign(contents, doc);
|
|
1848
|
+
const exception = new ValidationException({
|
|
1849
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1850
|
+
...contents
|
|
1851
|
+
});
|
|
1852
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1853
|
+
}, "de_ValidationExceptionRes");
|
|
1854
|
+
var de_GraphSnapshotSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1855
|
+
return (0, import_smithy_client.take)(output, {
|
|
1856
|
+
arn: import_smithy_client.expectString,
|
|
1857
|
+
id: import_smithy_client.expectString,
|
|
1858
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1859
|
+
name: import_smithy_client.expectString,
|
|
1860
|
+
snapshotCreateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1861
|
+
sourceGraphId: import_smithy_client.expectString,
|
|
1862
|
+
status: import_smithy_client.expectString
|
|
1863
|
+
});
|
|
1864
|
+
}, "de_GraphSnapshotSummary");
|
|
1865
|
+
var de_GraphSnapshotSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
1866
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1867
|
+
return de_GraphSnapshotSummary(entry, context);
|
|
1868
|
+
});
|
|
1869
|
+
return retVal;
|
|
1870
|
+
}, "de_GraphSnapshotSummaryList");
|
|
1871
|
+
var de_ImportTaskDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1872
|
+
return (0, import_smithy_client.take)(output, {
|
|
1873
|
+
dictionaryEntryCount: import_smithy_client.expectLong,
|
|
1874
|
+
errorCount: import_smithy_client.expectInt32,
|
|
1875
|
+
errorDetails: import_smithy_client.expectString,
|
|
1876
|
+
progressPercentage: import_smithy_client.expectInt32,
|
|
1877
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1878
|
+
statementCount: import_smithy_client.expectLong,
|
|
1879
|
+
status: import_smithy_client.expectString,
|
|
1880
|
+
timeElapsedSeconds: import_smithy_client.expectLong
|
|
1881
|
+
});
|
|
1882
|
+
}, "de_ImportTaskDetails");
|
|
1883
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1884
|
+
httpStatusCode: output.statusCode,
|
|
1885
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1886
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1887
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1888
|
+
}), "deserializeMetadata");
|
|
1889
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1890
|
+
var _gI = "graphIdentifier";
|
|
1891
|
+
var _mR = "maxResults";
|
|
1892
|
+
var _nT = "nextToken";
|
|
1893
|
+
var _sS = "skipSnapshot";
|
|
1894
|
+
var _tK = "tagKeys";
|
|
1895
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1896
|
+
if (encoded.length) {
|
|
1897
|
+
return JSON.parse(encoded);
|
|
1898
|
+
}
|
|
1899
|
+
return {};
|
|
1900
|
+
}), "parseBody");
|
|
1901
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1902
|
+
const value = await parseBody(errorBody, context);
|
|
1903
|
+
value.message = value.message ?? value.Message;
|
|
1904
|
+
return value;
|
|
1905
|
+
}, "parseErrorBody");
|
|
1906
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1907
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1908
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1909
|
+
let cleanValue = rawValue;
|
|
1910
|
+
if (typeof cleanValue === "number") {
|
|
1911
|
+
cleanValue = cleanValue.toString();
|
|
1912
|
+
}
|
|
1913
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1914
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1915
|
+
}
|
|
1916
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1917
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1918
|
+
}
|
|
1919
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1920
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1921
|
+
}
|
|
1922
|
+
return cleanValue;
|
|
1923
|
+
}, "sanitizeErrorCode");
|
|
1924
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1925
|
+
if (headerKey !== void 0) {
|
|
1926
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1927
|
+
}
|
|
1928
|
+
if (data.code !== void 0) {
|
|
1929
|
+
return sanitizeErrorCode(data.code);
|
|
1930
|
+
}
|
|
1931
|
+
if (data["__type"] !== void 0) {
|
|
1932
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1933
|
+
}
|
|
1934
|
+
}, "loadRestJsonErrorCode");
|
|
1935
|
+
|
|
1936
|
+
// src/commands/CancelImportTaskCommand.ts
|
|
1937
|
+
var _CancelImportTaskCommand = class _CancelImportTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1938
|
+
...commonParams,
|
|
1939
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
1940
|
+
}).m(function(Command, cs, config, o) {
|
|
1941
|
+
return [
|
|
1942
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1943
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1944
|
+
];
|
|
1945
|
+
}).s("AmazonNeptuneGraph", "CancelImportTask", {}).n("NeptuneGraphClient", "CancelImportTaskCommand").f(void 0, void 0).ser(se_CancelImportTaskCommand).de(de_CancelImportTaskCommand).build() {
|
|
1946
|
+
};
|
|
1947
|
+
__name(_CancelImportTaskCommand, "CancelImportTaskCommand");
|
|
1948
|
+
var CancelImportTaskCommand = _CancelImportTaskCommand;
|
|
1949
|
+
|
|
1950
|
+
// src/commands/CreateGraphCommand.ts
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
|
|
1954
|
+
|
|
1955
|
+
var _CreateGraphCommand = class _CreateGraphCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1956
|
+
...commonParams,
|
|
1957
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
1958
|
+
}).m(function(Command, cs, config, o) {
|
|
1959
|
+
return [
|
|
1960
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1961
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1962
|
+
];
|
|
1963
|
+
}).s("AmazonNeptuneGraph", "CreateGraph", {}).n("NeptuneGraphClient", "CreateGraphCommand").f(void 0, void 0).ser(se_CreateGraphCommand).de(de_CreateGraphCommand).build() {
|
|
1964
|
+
};
|
|
1965
|
+
__name(_CreateGraphCommand, "CreateGraphCommand");
|
|
1966
|
+
var CreateGraphCommand = _CreateGraphCommand;
|
|
1967
|
+
|
|
1968
|
+
// src/commands/CreateGraphSnapshotCommand.ts
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
var _CreateGraphSnapshotCommand = class _CreateGraphSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1974
|
+
...commonParams,
|
|
1975
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
1976
|
+
}).m(function(Command, cs, config, o) {
|
|
1977
|
+
return [
|
|
1978
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1979
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1980
|
+
];
|
|
1981
|
+
}).s("AmazonNeptuneGraph", "CreateGraphSnapshot", {}).n("NeptuneGraphClient", "CreateGraphSnapshotCommand").f(void 0, void 0).ser(se_CreateGraphSnapshotCommand).de(de_CreateGraphSnapshotCommand).build() {
|
|
1982
|
+
};
|
|
1983
|
+
__name(_CreateGraphSnapshotCommand, "CreateGraphSnapshotCommand");
|
|
1984
|
+
var CreateGraphSnapshotCommand = _CreateGraphSnapshotCommand;
|
|
1985
|
+
|
|
1986
|
+
// src/commands/CreateGraphUsingImportTaskCommand.ts
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
var _CreateGraphUsingImportTaskCommand = class _CreateGraphUsingImportTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1992
|
+
...commonParams,
|
|
1993
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
1994
|
+
}).m(function(Command, cs, config, o) {
|
|
1995
|
+
return [
|
|
1996
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1997
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1998
|
+
];
|
|
1999
|
+
}).s("AmazonNeptuneGraph", "CreateGraphUsingImportTask", {}).n("NeptuneGraphClient", "CreateGraphUsingImportTaskCommand").f(void 0, void 0).ser(se_CreateGraphUsingImportTaskCommand).de(de_CreateGraphUsingImportTaskCommand).build() {
|
|
2000
|
+
};
|
|
2001
|
+
__name(_CreateGraphUsingImportTaskCommand, "CreateGraphUsingImportTaskCommand");
|
|
2002
|
+
var CreateGraphUsingImportTaskCommand = _CreateGraphUsingImportTaskCommand;
|
|
2003
|
+
|
|
2004
|
+
// src/commands/CreatePrivateGraphEndpointCommand.ts
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
var _CreatePrivateGraphEndpointCommand = class _CreatePrivateGraphEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2010
|
+
...commonParams,
|
|
2011
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2012
|
+
}).m(function(Command, cs, config, o) {
|
|
2013
|
+
return [
|
|
2014
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2015
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2016
|
+
];
|
|
2017
|
+
}).s("AmazonNeptuneGraph", "CreatePrivateGraphEndpoint", {}).n("NeptuneGraphClient", "CreatePrivateGraphEndpointCommand").f(void 0, void 0).ser(se_CreatePrivateGraphEndpointCommand).de(de_CreatePrivateGraphEndpointCommand).build() {
|
|
2018
|
+
};
|
|
2019
|
+
__name(_CreatePrivateGraphEndpointCommand, "CreatePrivateGraphEndpointCommand");
|
|
2020
|
+
var CreatePrivateGraphEndpointCommand = _CreatePrivateGraphEndpointCommand;
|
|
2021
|
+
|
|
2022
|
+
// src/commands/DeleteGraphCommand.ts
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
var _DeleteGraphCommand = class _DeleteGraphCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2028
|
+
...commonParams,
|
|
2029
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2030
|
+
}).m(function(Command, cs, config, o) {
|
|
2031
|
+
return [
|
|
2032
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2033
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2034
|
+
];
|
|
2035
|
+
}).s("AmazonNeptuneGraph", "DeleteGraph", {}).n("NeptuneGraphClient", "DeleteGraphCommand").f(void 0, void 0).ser(se_DeleteGraphCommand).de(de_DeleteGraphCommand).build() {
|
|
2036
|
+
};
|
|
2037
|
+
__name(_DeleteGraphCommand, "DeleteGraphCommand");
|
|
2038
|
+
var DeleteGraphCommand = _DeleteGraphCommand;
|
|
2039
|
+
|
|
2040
|
+
// src/commands/DeleteGraphSnapshotCommand.ts
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
var _DeleteGraphSnapshotCommand = class _DeleteGraphSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2046
|
+
...commonParams,
|
|
2047
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2048
|
+
}).m(function(Command, cs, config, o) {
|
|
2049
|
+
return [
|
|
2050
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2051
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2052
|
+
];
|
|
2053
|
+
}).s("AmazonNeptuneGraph", "DeleteGraphSnapshot", {}).n("NeptuneGraphClient", "DeleteGraphSnapshotCommand").f(void 0, void 0).ser(se_DeleteGraphSnapshotCommand).de(de_DeleteGraphSnapshotCommand).build() {
|
|
2054
|
+
};
|
|
2055
|
+
__name(_DeleteGraphSnapshotCommand, "DeleteGraphSnapshotCommand");
|
|
2056
|
+
var DeleteGraphSnapshotCommand = _DeleteGraphSnapshotCommand;
|
|
2057
|
+
|
|
2058
|
+
// src/commands/DeletePrivateGraphEndpointCommand.ts
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
var _DeletePrivateGraphEndpointCommand = class _DeletePrivateGraphEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2064
|
+
...commonParams,
|
|
2065
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2066
|
+
}).m(function(Command, cs, config, o) {
|
|
2067
|
+
return [
|
|
2068
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2069
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2070
|
+
];
|
|
2071
|
+
}).s("AmazonNeptuneGraph", "DeletePrivateGraphEndpoint", {}).n("NeptuneGraphClient", "DeletePrivateGraphEndpointCommand").f(void 0, void 0).ser(se_DeletePrivateGraphEndpointCommand).de(de_DeletePrivateGraphEndpointCommand).build() {
|
|
2072
|
+
};
|
|
2073
|
+
__name(_DeletePrivateGraphEndpointCommand, "DeletePrivateGraphEndpointCommand");
|
|
2074
|
+
var DeletePrivateGraphEndpointCommand = _DeletePrivateGraphEndpointCommand;
|
|
2075
|
+
|
|
2076
|
+
// src/commands/GetGraphCommand.ts
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
var _GetGraphCommand = class _GetGraphCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2082
|
+
...commonParams,
|
|
2083
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2084
|
+
}).m(function(Command, cs, config, o) {
|
|
2085
|
+
return [
|
|
2086
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2087
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2088
|
+
];
|
|
2089
|
+
}).s("AmazonNeptuneGraph", "GetGraph", {}).n("NeptuneGraphClient", "GetGraphCommand").f(void 0, void 0).ser(se_GetGraphCommand).de(de_GetGraphCommand).build() {
|
|
2090
|
+
};
|
|
2091
|
+
__name(_GetGraphCommand, "GetGraphCommand");
|
|
2092
|
+
var GetGraphCommand = _GetGraphCommand;
|
|
2093
|
+
|
|
2094
|
+
// src/commands/GetGraphSnapshotCommand.ts
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
var _GetGraphSnapshotCommand = class _GetGraphSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2100
|
+
...commonParams,
|
|
2101
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2102
|
+
}).m(function(Command, cs, config, o) {
|
|
2103
|
+
return [
|
|
2104
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2105
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2106
|
+
];
|
|
2107
|
+
}).s("AmazonNeptuneGraph", "GetGraphSnapshot", {}).n("NeptuneGraphClient", "GetGraphSnapshotCommand").f(void 0, void 0).ser(se_GetGraphSnapshotCommand).de(de_GetGraphSnapshotCommand).build() {
|
|
2108
|
+
};
|
|
2109
|
+
__name(_GetGraphSnapshotCommand, "GetGraphSnapshotCommand");
|
|
2110
|
+
var GetGraphSnapshotCommand = _GetGraphSnapshotCommand;
|
|
2111
|
+
|
|
2112
|
+
// src/commands/GetImportTaskCommand.ts
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
var _GetImportTaskCommand = class _GetImportTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2118
|
+
...commonParams,
|
|
2119
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2120
|
+
}).m(function(Command, cs, config, o) {
|
|
2121
|
+
return [
|
|
2122
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2123
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2124
|
+
];
|
|
2125
|
+
}).s("AmazonNeptuneGraph", "GetImportTask", {}).n("NeptuneGraphClient", "GetImportTaskCommand").f(void 0, void 0).ser(se_GetImportTaskCommand).de(de_GetImportTaskCommand).build() {
|
|
2126
|
+
};
|
|
2127
|
+
__name(_GetImportTaskCommand, "GetImportTaskCommand");
|
|
2128
|
+
var GetImportTaskCommand = _GetImportTaskCommand;
|
|
2129
|
+
|
|
2130
|
+
// src/commands/GetPrivateGraphEndpointCommand.ts
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
var _GetPrivateGraphEndpointCommand = class _GetPrivateGraphEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2136
|
+
...commonParams,
|
|
2137
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2138
|
+
}).m(function(Command, cs, config, o) {
|
|
2139
|
+
return [
|
|
2140
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2141
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2142
|
+
];
|
|
2143
|
+
}).s("AmazonNeptuneGraph", "GetPrivateGraphEndpoint", {}).n("NeptuneGraphClient", "GetPrivateGraphEndpointCommand").f(void 0, void 0).ser(se_GetPrivateGraphEndpointCommand).de(de_GetPrivateGraphEndpointCommand).build() {
|
|
2144
|
+
};
|
|
2145
|
+
__name(_GetPrivateGraphEndpointCommand, "GetPrivateGraphEndpointCommand");
|
|
2146
|
+
var GetPrivateGraphEndpointCommand = _GetPrivateGraphEndpointCommand;
|
|
2147
|
+
|
|
2148
|
+
// src/commands/ListGraphsCommand.ts
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
var _ListGraphsCommand = class _ListGraphsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2154
|
+
...commonParams,
|
|
2155
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2156
|
+
}).m(function(Command, cs, config, o) {
|
|
2157
|
+
return [
|
|
2158
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2159
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2160
|
+
];
|
|
2161
|
+
}).s("AmazonNeptuneGraph", "ListGraphs", {}).n("NeptuneGraphClient", "ListGraphsCommand").f(void 0, void 0).ser(se_ListGraphsCommand).de(de_ListGraphsCommand).build() {
|
|
2162
|
+
};
|
|
2163
|
+
__name(_ListGraphsCommand, "ListGraphsCommand");
|
|
2164
|
+
var ListGraphsCommand = _ListGraphsCommand;
|
|
2165
|
+
|
|
2166
|
+
// src/commands/ListGraphSnapshotsCommand.ts
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
var _ListGraphSnapshotsCommand = class _ListGraphSnapshotsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2172
|
+
...commonParams,
|
|
2173
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2174
|
+
}).m(function(Command, cs, config, o) {
|
|
2175
|
+
return [
|
|
2176
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2177
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2178
|
+
];
|
|
2179
|
+
}).s("AmazonNeptuneGraph", "ListGraphSnapshots", {}).n("NeptuneGraphClient", "ListGraphSnapshotsCommand").f(void 0, void 0).ser(se_ListGraphSnapshotsCommand).de(de_ListGraphSnapshotsCommand).build() {
|
|
2180
|
+
};
|
|
2181
|
+
__name(_ListGraphSnapshotsCommand, "ListGraphSnapshotsCommand");
|
|
2182
|
+
var ListGraphSnapshotsCommand = _ListGraphSnapshotsCommand;
|
|
2183
|
+
|
|
2184
|
+
// src/commands/ListImportTasksCommand.ts
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
|
|
2189
|
+
var _ListImportTasksCommand = class _ListImportTasksCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2190
|
+
...commonParams,
|
|
2191
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2192
|
+
}).m(function(Command, cs, config, o) {
|
|
2193
|
+
return [
|
|
2194
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2195
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2196
|
+
];
|
|
2197
|
+
}).s("AmazonNeptuneGraph", "ListImportTasks", {}).n("NeptuneGraphClient", "ListImportTasksCommand").f(void 0, void 0).ser(se_ListImportTasksCommand).de(de_ListImportTasksCommand).build() {
|
|
2198
|
+
};
|
|
2199
|
+
__name(_ListImportTasksCommand, "ListImportTasksCommand");
|
|
2200
|
+
var ListImportTasksCommand = _ListImportTasksCommand;
|
|
2201
|
+
|
|
2202
|
+
// src/commands/ListPrivateGraphEndpointsCommand.ts
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
var _ListPrivateGraphEndpointsCommand = class _ListPrivateGraphEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2208
|
+
...commonParams,
|
|
2209
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2210
|
+
}).m(function(Command, cs, config, o) {
|
|
2211
|
+
return [
|
|
2212
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2213
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2214
|
+
];
|
|
2215
|
+
}).s("AmazonNeptuneGraph", "ListPrivateGraphEndpoints", {}).n("NeptuneGraphClient", "ListPrivateGraphEndpointsCommand").f(void 0, void 0).ser(se_ListPrivateGraphEndpointsCommand).de(de_ListPrivateGraphEndpointsCommand).build() {
|
|
2216
|
+
};
|
|
2217
|
+
__name(_ListPrivateGraphEndpointsCommand, "ListPrivateGraphEndpointsCommand");
|
|
2218
|
+
var ListPrivateGraphEndpointsCommand = _ListPrivateGraphEndpointsCommand;
|
|
2219
|
+
|
|
2220
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2226
|
+
...commonParams,
|
|
2227
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2228
|
+
}).m(function(Command, cs, config, o) {
|
|
2229
|
+
return [
|
|
2230
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2231
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2232
|
+
];
|
|
2233
|
+
}).s("AmazonNeptuneGraph", "ListTagsForResource", {}).n("NeptuneGraphClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2234
|
+
};
|
|
2235
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2236
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2237
|
+
|
|
2238
|
+
// src/commands/ResetGraphCommand.ts
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
var _ResetGraphCommand = class _ResetGraphCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2244
|
+
...commonParams,
|
|
2245
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2246
|
+
}).m(function(Command, cs, config, o) {
|
|
2247
|
+
return [
|
|
2248
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2249
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2250
|
+
];
|
|
2251
|
+
}).s("AmazonNeptuneGraph", "ResetGraph", {}).n("NeptuneGraphClient", "ResetGraphCommand").f(void 0, void 0).ser(se_ResetGraphCommand).de(de_ResetGraphCommand).build() {
|
|
2252
|
+
};
|
|
2253
|
+
__name(_ResetGraphCommand, "ResetGraphCommand");
|
|
2254
|
+
var ResetGraphCommand = _ResetGraphCommand;
|
|
2255
|
+
|
|
2256
|
+
// src/commands/RestoreGraphFromSnapshotCommand.ts
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
var _RestoreGraphFromSnapshotCommand = class _RestoreGraphFromSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2262
|
+
...commonParams,
|
|
2263
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2264
|
+
}).m(function(Command, cs, config, o) {
|
|
2265
|
+
return [
|
|
2266
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2267
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2268
|
+
];
|
|
2269
|
+
}).s("AmazonNeptuneGraph", "RestoreGraphFromSnapshot", {}).n("NeptuneGraphClient", "RestoreGraphFromSnapshotCommand").f(void 0, void 0).ser(se_RestoreGraphFromSnapshotCommand).de(de_RestoreGraphFromSnapshotCommand).build() {
|
|
2270
|
+
};
|
|
2271
|
+
__name(_RestoreGraphFromSnapshotCommand, "RestoreGraphFromSnapshotCommand");
|
|
2272
|
+
var RestoreGraphFromSnapshotCommand = _RestoreGraphFromSnapshotCommand;
|
|
2273
|
+
|
|
2274
|
+
// src/commands/TagResourceCommand.ts
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2280
|
+
...commonParams,
|
|
2281
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2282
|
+
}).m(function(Command, cs, config, o) {
|
|
2283
|
+
return [
|
|
2284
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2285
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2286
|
+
];
|
|
2287
|
+
}).s("AmazonNeptuneGraph", "TagResource", {}).n("NeptuneGraphClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2288
|
+
};
|
|
2289
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2290
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2291
|
+
|
|
2292
|
+
// src/commands/UntagResourceCommand.ts
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2298
|
+
...commonParams,
|
|
2299
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2300
|
+
}).m(function(Command, cs, config, o) {
|
|
2301
|
+
return [
|
|
2302
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2303
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2304
|
+
];
|
|
2305
|
+
}).s("AmazonNeptuneGraph", "UntagResource", {}).n("NeptuneGraphClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2306
|
+
};
|
|
2307
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2308
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2309
|
+
|
|
2310
|
+
// src/commands/UpdateGraphCommand.ts
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
var _UpdateGraphCommand = class _UpdateGraphCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2316
|
+
...commonParams,
|
|
2317
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2318
|
+
}).m(function(Command, cs, config, o) {
|
|
2319
|
+
return [
|
|
2320
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2321
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2322
|
+
];
|
|
2323
|
+
}).s("AmazonNeptuneGraph", "UpdateGraph", {}).n("NeptuneGraphClient", "UpdateGraphCommand").f(void 0, void 0).ser(se_UpdateGraphCommand).de(de_UpdateGraphCommand).build() {
|
|
2324
|
+
};
|
|
2325
|
+
__name(_UpdateGraphCommand, "UpdateGraphCommand");
|
|
2326
|
+
var UpdateGraphCommand = _UpdateGraphCommand;
|
|
2327
|
+
|
|
2328
|
+
// src/NeptuneGraph.ts
|
|
2329
|
+
var commands = {
|
|
2330
|
+
CancelImportTaskCommand,
|
|
2331
|
+
CreateGraphCommand,
|
|
2332
|
+
CreateGraphSnapshotCommand,
|
|
2333
|
+
CreateGraphUsingImportTaskCommand,
|
|
2334
|
+
CreatePrivateGraphEndpointCommand,
|
|
2335
|
+
DeleteGraphCommand,
|
|
2336
|
+
DeleteGraphSnapshotCommand,
|
|
2337
|
+
DeletePrivateGraphEndpointCommand,
|
|
2338
|
+
GetGraphCommand,
|
|
2339
|
+
GetGraphSnapshotCommand,
|
|
2340
|
+
GetImportTaskCommand,
|
|
2341
|
+
GetPrivateGraphEndpointCommand,
|
|
2342
|
+
ListGraphsCommand,
|
|
2343
|
+
ListGraphSnapshotsCommand,
|
|
2344
|
+
ListImportTasksCommand,
|
|
2345
|
+
ListPrivateGraphEndpointsCommand,
|
|
2346
|
+
ListTagsForResourceCommand,
|
|
2347
|
+
ResetGraphCommand,
|
|
2348
|
+
RestoreGraphFromSnapshotCommand,
|
|
2349
|
+
TagResourceCommand,
|
|
2350
|
+
UntagResourceCommand,
|
|
2351
|
+
UpdateGraphCommand
|
|
2352
|
+
};
|
|
2353
|
+
var _NeptuneGraph = class _NeptuneGraph extends NeptuneGraphClient {
|
|
2354
|
+
};
|
|
2355
|
+
__name(_NeptuneGraph, "NeptuneGraph");
|
|
2356
|
+
var NeptuneGraph = _NeptuneGraph;
|
|
2357
|
+
(0, import_smithy_client.createAggregatedClient)(commands, NeptuneGraph);
|
|
2358
|
+
|
|
2359
|
+
// src/pagination/ListGraphSnapshotsPaginator.ts
|
|
2360
|
+
var import_core3 = require("@smithy/core");
|
|
2361
|
+
var paginateListGraphSnapshots = (0, import_core3.createPaginator)(NeptuneGraphClient, ListGraphSnapshotsCommand, "nextToken", "nextToken", "maxResults");
|
|
2362
|
+
|
|
2363
|
+
// src/pagination/ListGraphsPaginator.ts
|
|
2364
|
+
var import_core4 = require("@smithy/core");
|
|
2365
|
+
var paginateListGraphs = (0, import_core4.createPaginator)(NeptuneGraphClient, ListGraphsCommand, "nextToken", "nextToken", "maxResults");
|
|
2366
|
+
|
|
2367
|
+
// src/pagination/ListImportTasksPaginator.ts
|
|
2368
|
+
var import_core5 = require("@smithy/core");
|
|
2369
|
+
var paginateListImportTasks = (0, import_core5.createPaginator)(NeptuneGraphClient, ListImportTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
2370
|
+
|
|
2371
|
+
// src/pagination/ListPrivateGraphEndpointsPaginator.ts
|
|
2372
|
+
var import_core6 = require("@smithy/core");
|
|
2373
|
+
var paginateListPrivateGraphEndpoints = (0, import_core6.createPaginator)(NeptuneGraphClient, ListPrivateGraphEndpointsCommand, "nextToken", "nextToken", "maxResults");
|
|
2374
|
+
|
|
2375
|
+
// src/waiters/waitForGraphAvailable.ts
|
|
2376
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
2377
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
2378
|
+
let reason;
|
|
2379
|
+
try {
|
|
2380
|
+
const result = await client.send(new GetGraphCommand(input));
|
|
2381
|
+
reason = result;
|
|
2382
|
+
try {
|
|
2383
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2384
|
+
return result.status;
|
|
2385
|
+
}, "returnComparator");
|
|
2386
|
+
if (returnComparator() === "DELETING") {
|
|
2387
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2388
|
+
}
|
|
2389
|
+
} catch (e) {
|
|
2390
|
+
}
|
|
2391
|
+
try {
|
|
2392
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2393
|
+
return result.status;
|
|
2394
|
+
}, "returnComparator");
|
|
2395
|
+
if (returnComparator() === "FAILED") {
|
|
2396
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2397
|
+
}
|
|
2398
|
+
} catch (e) {
|
|
2399
|
+
}
|
|
2400
|
+
try {
|
|
2401
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2402
|
+
return result.status;
|
|
2403
|
+
}, "returnComparator");
|
|
2404
|
+
if (returnComparator() === "AVAILABLE") {
|
|
2405
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2406
|
+
}
|
|
2407
|
+
} catch (e) {
|
|
2408
|
+
}
|
|
2409
|
+
} catch (exception) {
|
|
2410
|
+
reason = exception;
|
|
2411
|
+
}
|
|
2412
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2413
|
+
}, "checkState");
|
|
2414
|
+
var waitForGraphAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2415
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
2416
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2417
|
+
}, "waitForGraphAvailable");
|
|
2418
|
+
var waitUntilGraphAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2419
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
2420
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2421
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2422
|
+
}, "waitUntilGraphAvailable");
|
|
2423
|
+
|
|
2424
|
+
// src/waiters/waitForGraphDeleted.ts
|
|
2425
|
+
|
|
2426
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2427
|
+
let reason;
|
|
2428
|
+
try {
|
|
2429
|
+
const result = await client.send(new GetGraphCommand(input));
|
|
2430
|
+
reason = result;
|
|
2431
|
+
try {
|
|
2432
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2433
|
+
return result.status != "DELETING";
|
|
2434
|
+
}, "returnComparator");
|
|
2435
|
+
if (returnComparator() == true) {
|
|
2436
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2437
|
+
}
|
|
2438
|
+
} catch (e) {
|
|
2439
|
+
}
|
|
2440
|
+
} catch (exception) {
|
|
2441
|
+
reason = exception;
|
|
2442
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
2443
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2447
|
+
}, "checkState");
|
|
2448
|
+
var waitForGraphDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
2449
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2450
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
2451
|
+
}, "waitForGraphDeleted");
|
|
2452
|
+
var waitUntilGraphDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
2453
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2454
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
2455
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2456
|
+
}, "waitUntilGraphDeleted");
|
|
2457
|
+
|
|
2458
|
+
// src/waiters/waitForGraphSnapshotAvailable.ts
|
|
2459
|
+
|
|
2460
|
+
var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2461
|
+
let reason;
|
|
2462
|
+
try {
|
|
2463
|
+
const result = await client.send(new GetGraphSnapshotCommand(input));
|
|
2464
|
+
reason = result;
|
|
2465
|
+
try {
|
|
2466
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2467
|
+
return result.status;
|
|
2468
|
+
}, "returnComparator");
|
|
2469
|
+
if (returnComparator() === "DELETING") {
|
|
2470
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2471
|
+
}
|
|
2472
|
+
} catch (e) {
|
|
2473
|
+
}
|
|
2474
|
+
try {
|
|
2475
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2476
|
+
return result.status;
|
|
2477
|
+
}, "returnComparator");
|
|
2478
|
+
if (returnComparator() === "FAILED") {
|
|
2479
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2480
|
+
}
|
|
2481
|
+
} catch (e) {
|
|
2482
|
+
}
|
|
2483
|
+
try {
|
|
2484
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2485
|
+
return result.status;
|
|
2486
|
+
}, "returnComparator");
|
|
2487
|
+
if (returnComparator() === "AVAILABLE") {
|
|
2488
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2489
|
+
}
|
|
2490
|
+
} catch (e) {
|
|
2491
|
+
}
|
|
2492
|
+
} catch (exception) {
|
|
2493
|
+
reason = exception;
|
|
2494
|
+
}
|
|
2495
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2496
|
+
}, "checkState");
|
|
2497
|
+
var waitForGraphSnapshotAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2498
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
|
|
2499
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
2500
|
+
}, "waitForGraphSnapshotAvailable");
|
|
2501
|
+
var waitUntilGraphSnapshotAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2502
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
|
|
2503
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
2504
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2505
|
+
}, "waitUntilGraphSnapshotAvailable");
|
|
2506
|
+
|
|
2507
|
+
// src/waiters/waitForGraphSnapshotDeleted.ts
|
|
2508
|
+
|
|
2509
|
+
var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2510
|
+
let reason;
|
|
2511
|
+
try {
|
|
2512
|
+
const result = await client.send(new GetGraphSnapshotCommand(input));
|
|
2513
|
+
reason = result;
|
|
2514
|
+
try {
|
|
2515
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2516
|
+
return result.status != "DELETING";
|
|
2517
|
+
}, "returnComparator");
|
|
2518
|
+
if (returnComparator() == true) {
|
|
2519
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2520
|
+
}
|
|
2521
|
+
} catch (e) {
|
|
2522
|
+
}
|
|
2523
|
+
} catch (exception) {
|
|
2524
|
+
reason = exception;
|
|
2525
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
2526
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2530
|
+
}, "checkState");
|
|
2531
|
+
var waitForGraphSnapshotDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
2532
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2533
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
|
|
2534
|
+
}, "waitForGraphSnapshotDeleted");
|
|
2535
|
+
var waitUntilGraphSnapshotDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
2536
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2537
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
|
|
2538
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2539
|
+
}, "waitUntilGraphSnapshotDeleted");
|
|
2540
|
+
|
|
2541
|
+
// src/waiters/waitForImportTaskCancelled.ts
|
|
2542
|
+
|
|
2543
|
+
var checkState5 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2544
|
+
let reason;
|
|
2545
|
+
try {
|
|
2546
|
+
const result = await client.send(new GetImportTaskCommand(input));
|
|
2547
|
+
reason = result;
|
|
2548
|
+
try {
|
|
2549
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2550
|
+
return result.status != "CANCELLING";
|
|
2551
|
+
}, "returnComparator");
|
|
2552
|
+
if (returnComparator() == true) {
|
|
2553
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2554
|
+
}
|
|
2555
|
+
} catch (e) {
|
|
2556
|
+
}
|
|
2557
|
+
try {
|
|
2558
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2559
|
+
return result.status;
|
|
2560
|
+
}, "returnComparator");
|
|
2561
|
+
if (returnComparator() === "CANCELLED") {
|
|
2562
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2563
|
+
}
|
|
2564
|
+
} catch (e) {
|
|
2565
|
+
}
|
|
2566
|
+
} catch (exception) {
|
|
2567
|
+
reason = exception;
|
|
2568
|
+
}
|
|
2569
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2570
|
+
}, "checkState");
|
|
2571
|
+
var waitForImportTaskCancelled = /* @__PURE__ */ __name(async (params, input) => {
|
|
2572
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2573
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
|
|
2574
|
+
}, "waitForImportTaskCancelled");
|
|
2575
|
+
var waitUntilImportTaskCancelled = /* @__PURE__ */ __name(async (params, input) => {
|
|
2576
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2577
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState5);
|
|
2578
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2579
|
+
}, "waitUntilImportTaskCancelled");
|
|
2580
|
+
|
|
2581
|
+
// src/waiters/waitForImportTaskSuccessful.ts
|
|
2582
|
+
|
|
2583
|
+
var checkState6 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2584
|
+
let reason;
|
|
2585
|
+
try {
|
|
2586
|
+
const result = await client.send(new GetImportTaskCommand(input));
|
|
2587
|
+
reason = result;
|
|
2588
|
+
try {
|
|
2589
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2590
|
+
return result.status;
|
|
2591
|
+
}, "returnComparator");
|
|
2592
|
+
if (returnComparator() === "CANCELLING") {
|
|
2593
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2594
|
+
}
|
|
2595
|
+
} catch (e) {
|
|
2596
|
+
}
|
|
2597
|
+
try {
|
|
2598
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2599
|
+
return result.status;
|
|
2600
|
+
}, "returnComparator");
|
|
2601
|
+
if (returnComparator() === "CANCELLED") {
|
|
2602
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2603
|
+
}
|
|
2604
|
+
} catch (e) {
|
|
2605
|
+
}
|
|
2606
|
+
try {
|
|
2607
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2608
|
+
return result.status;
|
|
2609
|
+
}, "returnComparator");
|
|
2610
|
+
if (returnComparator() === "ROLLING_BACK") {
|
|
2611
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2612
|
+
}
|
|
2613
|
+
} catch (e) {
|
|
2614
|
+
}
|
|
2615
|
+
try {
|
|
2616
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2617
|
+
return result.status;
|
|
2618
|
+
}, "returnComparator");
|
|
2619
|
+
if (returnComparator() === "FAILED") {
|
|
2620
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2621
|
+
}
|
|
2622
|
+
} catch (e) {
|
|
2623
|
+
}
|
|
2624
|
+
try {
|
|
2625
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2626
|
+
return result.status;
|
|
2627
|
+
}, "returnComparator");
|
|
2628
|
+
if (returnComparator() === "SUCCEEDED") {
|
|
2629
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2630
|
+
}
|
|
2631
|
+
} catch (e) {
|
|
2632
|
+
}
|
|
2633
|
+
} catch (exception) {
|
|
2634
|
+
reason = exception;
|
|
2635
|
+
}
|
|
2636
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2637
|
+
}, "checkState");
|
|
2638
|
+
var waitForImportTaskSuccessful = /* @__PURE__ */ __name(async (params, input) => {
|
|
2639
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
2640
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
|
|
2641
|
+
}, "waitForImportTaskSuccessful");
|
|
2642
|
+
var waitUntilImportTaskSuccessful = /* @__PURE__ */ __name(async (params, input) => {
|
|
2643
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
2644
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState6);
|
|
2645
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2646
|
+
}, "waitUntilImportTaskSuccessful");
|
|
2647
|
+
|
|
2648
|
+
// src/waiters/waitForPrivateGraphEndpointAvailable.ts
|
|
2649
|
+
|
|
2650
|
+
var checkState7 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2651
|
+
let reason;
|
|
2652
|
+
try {
|
|
2653
|
+
const result = await client.send(new GetPrivateGraphEndpointCommand(input));
|
|
2654
|
+
reason = result;
|
|
2655
|
+
try {
|
|
2656
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2657
|
+
return result.status;
|
|
2658
|
+
}, "returnComparator");
|
|
2659
|
+
if (returnComparator() === "DELETING") {
|
|
2660
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2661
|
+
}
|
|
2662
|
+
} catch (e) {
|
|
2663
|
+
}
|
|
2664
|
+
try {
|
|
2665
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2666
|
+
return result.status;
|
|
2667
|
+
}, "returnComparator");
|
|
2668
|
+
if (returnComparator() === "FAILED") {
|
|
2669
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2670
|
+
}
|
|
2671
|
+
} catch (e) {
|
|
2672
|
+
}
|
|
2673
|
+
try {
|
|
2674
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2675
|
+
return result.status;
|
|
2676
|
+
}, "returnComparator");
|
|
2677
|
+
if (returnComparator() === "AVAILABLE") {
|
|
2678
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2679
|
+
}
|
|
2680
|
+
} catch (e) {
|
|
2681
|
+
}
|
|
2682
|
+
} catch (exception) {
|
|
2683
|
+
reason = exception;
|
|
2684
|
+
}
|
|
2685
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2686
|
+
}, "checkState");
|
|
2687
|
+
var waitForPrivateGraphEndpointAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2688
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
2689
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
|
|
2690
|
+
}, "waitForPrivateGraphEndpointAvailable");
|
|
2691
|
+
var waitUntilPrivateGraphEndpointAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2692
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
2693
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
|
|
2694
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2695
|
+
}, "waitUntilPrivateGraphEndpointAvailable");
|
|
2696
|
+
|
|
2697
|
+
// src/waiters/waitForPrivateGraphEndpointDeleted.ts
|
|
2698
|
+
|
|
2699
|
+
var checkState8 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2700
|
+
let reason;
|
|
2701
|
+
try {
|
|
2702
|
+
const result = await client.send(new GetPrivateGraphEndpointCommand(input));
|
|
2703
|
+
reason = result;
|
|
2704
|
+
try {
|
|
2705
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2706
|
+
return result.status != "DELETING";
|
|
2707
|
+
}, "returnComparator");
|
|
2708
|
+
if (returnComparator() == true) {
|
|
2709
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2710
|
+
}
|
|
2711
|
+
} catch (e) {
|
|
2712
|
+
}
|
|
2713
|
+
} catch (exception) {
|
|
2714
|
+
reason = exception;
|
|
2715
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
2716
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2720
|
+
}, "checkState");
|
|
2721
|
+
var waitForPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
2722
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
2723
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
|
|
2724
|
+
}, "waitForPrivateGraphEndpointDeleted");
|
|
2725
|
+
var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
2726
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
2727
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
|
|
2728
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2729
|
+
}, "waitUntilPrivateGraphEndpointDeleted");
|
|
2730
|
+
|
|
2731
|
+
// src/index.ts
|
|
2732
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2733
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2734
|
+
0 && (module.exports = {
|
|
2735
|
+
CancelImportTaskCommand,
|
|
2736
|
+
ConflictException,
|
|
2737
|
+
ConflictExceptionReason,
|
|
2738
|
+
CreateGraphCommand,
|
|
2739
|
+
CreateGraphSnapshotCommand,
|
|
2740
|
+
CreateGraphUsingImportTaskCommand,
|
|
2741
|
+
CreatePrivateGraphEndpointCommand,
|
|
2742
|
+
DeleteGraphCommand,
|
|
2743
|
+
DeleteGraphSnapshotCommand,
|
|
2744
|
+
DeletePrivateGraphEndpointCommand,
|
|
2745
|
+
Format,
|
|
2746
|
+
GetGraphCommand,
|
|
2747
|
+
GetGraphSnapshotCommand,
|
|
2748
|
+
GetImportTaskCommand,
|
|
2749
|
+
GetPrivateGraphEndpointCommand,
|
|
2750
|
+
GraphStatus,
|
|
2751
|
+
ImportOptions,
|
|
2752
|
+
ImportTaskStatus,
|
|
2753
|
+
InternalServerException,
|
|
2754
|
+
ListGraphSnapshotsCommand,
|
|
2755
|
+
ListGraphsCommand,
|
|
2756
|
+
ListImportTasksCommand,
|
|
2757
|
+
ListPrivateGraphEndpointsCommand,
|
|
2758
|
+
ListTagsForResourceCommand,
|
|
2759
|
+
NeptuneGraph,
|
|
2760
|
+
NeptuneGraphClient,
|
|
2761
|
+
NeptuneGraphServiceException,
|
|
2762
|
+
PrivateGraphEndpointStatus,
|
|
2763
|
+
ResetGraphCommand,
|
|
2764
|
+
ResourceNotFoundException,
|
|
2765
|
+
RestoreGraphFromSnapshotCommand,
|
|
2766
|
+
ServiceQuotaExceededException,
|
|
2767
|
+
SnapshotStatus,
|
|
2768
|
+
TagResourceCommand,
|
|
2769
|
+
ThrottlingException,
|
|
2770
|
+
UntagResourceCommand,
|
|
2771
|
+
UpdateGraphCommand,
|
|
2772
|
+
ValidationException,
|
|
2773
|
+
ValidationExceptionReason,
|
|
2774
|
+
__Client,
|
|
2775
|
+
paginateListGraphSnapshots,
|
|
2776
|
+
paginateListGraphs,
|
|
2777
|
+
paginateListImportTasks,
|
|
2778
|
+
paginateListPrivateGraphEndpoints,
|
|
2779
|
+
waitForGraphAvailable,
|
|
2780
|
+
waitForGraphDeleted,
|
|
2781
|
+
waitForGraphSnapshotAvailable,
|
|
2782
|
+
waitForGraphSnapshotDeleted,
|
|
2783
|
+
waitForImportTaskCancelled,
|
|
2784
|
+
waitForImportTaskSuccessful,
|
|
2785
|
+
waitForPrivateGraphEndpointAvailable,
|
|
2786
|
+
waitForPrivateGraphEndpointDeleted,
|
|
2787
|
+
waitUntilGraphAvailable,
|
|
2788
|
+
waitUntilGraphDeleted,
|
|
2789
|
+
waitUntilGraphSnapshotAvailable,
|
|
2790
|
+
waitUntilGraphSnapshotDeleted,
|
|
2791
|
+
waitUntilImportTaskCancelled,
|
|
2792
|
+
waitUntilImportTaskSuccessful,
|
|
2793
|
+
waitUntilPrivateGraphEndpointAvailable,
|
|
2794
|
+
waitUntilPrivateGraphEndpointDeleted
|
|
2795
|
+
});
|