@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
|
@@ -1,1606 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateGraphCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreGraphFromSnapshotCommand = exports.de_ResetGraphCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPrivateGraphEndpointsCommand = exports.de_ListImportTasksCommand = exports.de_ListGraphSnapshotsCommand = exports.de_ListGraphsCommand = exports.de_GetPrivateGraphEndpointCommand = exports.de_GetImportTaskCommand = exports.de_GetGraphSnapshotCommand = exports.de_GetGraphCommand = exports.de_DeletePrivateGraphEndpointCommand = exports.de_DeleteGraphSnapshotCommand = exports.de_DeleteGraphCommand = exports.de_CreatePrivateGraphEndpointCommand = exports.de_CreateGraphUsingImportTaskCommand = exports.de_CreateGraphSnapshotCommand = exports.de_CreateGraphCommand = exports.de_CancelImportTaskCommand = exports.se_UpdateGraphCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreGraphFromSnapshotCommand = exports.se_ResetGraphCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPrivateGraphEndpointsCommand = exports.se_ListImportTasksCommand = exports.se_ListGraphSnapshotsCommand = exports.se_ListGraphsCommand = exports.se_GetPrivateGraphEndpointCommand = exports.se_GetImportTaskCommand = exports.se_GetGraphSnapshotCommand = exports.se_GetGraphCommand = exports.se_DeletePrivateGraphEndpointCommand = exports.se_DeleteGraphSnapshotCommand = exports.se_DeleteGraphCommand = exports.se_CreatePrivateGraphEndpointCommand = exports.se_CreateGraphUsingImportTaskCommand = exports.se_CreateGraphSnapshotCommand = exports.se_CreateGraphCommand = exports.se_CancelImportTaskCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const NeptuneGraphServiceException_1 = require("../models/NeptuneGraphServiceException");
|
|
9
|
-
const se_CancelImportTaskCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/importtasks/{taskIdentifier}");
|
|
13
|
-
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
14
|
-
let body;
|
|
15
|
-
b.m("DELETE").h(headers).b(body);
|
|
16
|
-
return b.build();
|
|
17
|
-
};
|
|
18
|
-
exports.se_CancelImportTaskCommand = se_CancelImportTaskCommand;
|
|
19
|
-
const se_CreateGraphCommand = async (input, context) => {
|
|
20
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
24
|
-
b.bp("/graphs");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
27
|
-
deletionProtection: [],
|
|
28
|
-
graphName: [],
|
|
29
|
-
kmsKeyIdentifier: [],
|
|
30
|
-
provisionedMemory: [],
|
|
31
|
-
publicConnectivity: [],
|
|
32
|
-
replicaCount: [],
|
|
33
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
34
|
-
vectorSearchConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
35
|
-
}));
|
|
36
|
-
b.m("POST").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
exports.se_CreateGraphCommand = se_CreateGraphCommand;
|
|
40
|
-
const se_CreateGraphSnapshotCommand = async (input, context) => {
|
|
41
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/snapshots");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
-
graphIdentifier: [],
|
|
49
|
-
snapshotName: [],
|
|
50
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
-
}));
|
|
52
|
-
b.m("POST").h(headers).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
exports.se_CreateGraphSnapshotCommand = se_CreateGraphSnapshotCommand;
|
|
56
|
-
const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
|
|
57
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
58
|
-
const headers = {
|
|
59
|
-
"content-type": "application/json",
|
|
60
|
-
};
|
|
61
|
-
b.bp("/importtasks");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
-
deletionProtection: [],
|
|
65
|
-
failOnError: [],
|
|
66
|
-
format: [],
|
|
67
|
-
graphName: [],
|
|
68
|
-
importOptions: (_) => (0, smithy_client_1._json)(_),
|
|
69
|
-
kmsKeyIdentifier: [],
|
|
70
|
-
maxProvisionedMemory: [],
|
|
71
|
-
minProvisionedMemory: [],
|
|
72
|
-
publicConnectivity: [],
|
|
73
|
-
replicaCount: [],
|
|
74
|
-
roleArn: [],
|
|
75
|
-
source: [],
|
|
76
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
77
|
-
vectorSearchConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
78
|
-
}));
|
|
79
|
-
b.m("POST").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
exports.se_CreateGraphUsingImportTaskCommand = se_CreateGraphUsingImportTaskCommand;
|
|
83
|
-
const se_CreatePrivateGraphEndpointCommand = async (input, context) => {
|
|
84
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
85
|
-
const headers = {
|
|
86
|
-
"content-type": "application/json",
|
|
87
|
-
};
|
|
88
|
-
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
89
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
92
|
-
subnetIds: (_) => (0, smithy_client_1._json)(_),
|
|
93
|
-
vpcId: [],
|
|
94
|
-
vpcSecurityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
95
|
-
}));
|
|
96
|
-
b.m("POST").h(headers).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
exports.se_CreatePrivateGraphEndpointCommand = se_CreatePrivateGraphEndpointCommand;
|
|
100
|
-
const se_DeleteGraphCommand = async (input, context) => {
|
|
101
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
102
|
-
const headers = {};
|
|
103
|
-
b.bp("/graphs/{graphIdentifier}");
|
|
104
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
105
|
-
const query = (0, smithy_client_1.map)({
|
|
106
|
-
[_sS]: [(0, smithy_client_1.expectNonNull)(input.skipSnapshot, `skipSnapshot`) != null, () => input[_sS].toString()],
|
|
107
|
-
});
|
|
108
|
-
let body;
|
|
109
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
exports.se_DeleteGraphCommand = se_DeleteGraphCommand;
|
|
113
|
-
const se_DeleteGraphSnapshotCommand = async (input, context) => {
|
|
114
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
115
|
-
const headers = {};
|
|
116
|
-
b.bp("/snapshots/{snapshotIdentifier}");
|
|
117
|
-
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
118
|
-
let body;
|
|
119
|
-
b.m("DELETE").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeleteGraphSnapshotCommand = se_DeleteGraphSnapshotCommand;
|
|
123
|
-
const se_DeletePrivateGraphEndpointCommand = async (input, context) => {
|
|
124
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
125
|
-
const headers = {};
|
|
126
|
-
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
127
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
128
|
-
b.p("vpcId", () => input.vpcId, "{vpcId}", false);
|
|
129
|
-
let body;
|
|
130
|
-
b.m("DELETE").h(headers).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
exports.se_DeletePrivateGraphEndpointCommand = se_DeletePrivateGraphEndpointCommand;
|
|
134
|
-
const se_GetGraphCommand = async (input, context) => {
|
|
135
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
136
|
-
const headers = {};
|
|
137
|
-
b.bp("/graphs/{graphIdentifier}");
|
|
138
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
139
|
-
let body;
|
|
140
|
-
b.m("GET").h(headers).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
exports.se_GetGraphCommand = se_GetGraphCommand;
|
|
144
|
-
const se_GetGraphSnapshotCommand = async (input, context) => {
|
|
145
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/snapshots/{snapshotIdentifier}");
|
|
148
|
-
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
149
|
-
let body;
|
|
150
|
-
b.m("GET").h(headers).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
exports.se_GetGraphSnapshotCommand = se_GetGraphSnapshotCommand;
|
|
154
|
-
const se_GetImportTaskCommand = async (input, context) => {
|
|
155
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
156
|
-
const headers = {};
|
|
157
|
-
b.bp("/importtasks/{taskIdentifier}");
|
|
158
|
-
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
159
|
-
let body;
|
|
160
|
-
b.m("GET").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
exports.se_GetImportTaskCommand = se_GetImportTaskCommand;
|
|
164
|
-
const se_GetPrivateGraphEndpointCommand = async (input, context) => {
|
|
165
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
166
|
-
const headers = {};
|
|
167
|
-
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
168
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
169
|
-
b.p("vpcId", () => input.vpcId, "{vpcId}", false);
|
|
170
|
-
let body;
|
|
171
|
-
b.m("GET").h(headers).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
exports.se_GetPrivateGraphEndpointCommand = se_GetPrivateGraphEndpointCommand;
|
|
175
|
-
const se_ListGraphsCommand = async (input, context) => {
|
|
176
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
177
|
-
const headers = {};
|
|
178
|
-
b.bp("/graphs");
|
|
179
|
-
const query = (0, smithy_client_1.map)({
|
|
180
|
-
[_nT]: [, input[_nT]],
|
|
181
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
182
|
-
});
|
|
183
|
-
let body;
|
|
184
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
185
|
-
return b.build();
|
|
186
|
-
};
|
|
187
|
-
exports.se_ListGraphsCommand = se_ListGraphsCommand;
|
|
188
|
-
const se_ListGraphSnapshotsCommand = async (input, context) => {
|
|
189
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
190
|
-
const headers = {};
|
|
191
|
-
b.bp("/snapshots");
|
|
192
|
-
const query = (0, smithy_client_1.map)({
|
|
193
|
-
[_gI]: [, input[_gI]],
|
|
194
|
-
[_nT]: [, input[_nT]],
|
|
195
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
196
|
-
});
|
|
197
|
-
let body;
|
|
198
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
exports.se_ListGraphSnapshotsCommand = se_ListGraphSnapshotsCommand;
|
|
202
|
-
const se_ListImportTasksCommand = async (input, context) => {
|
|
203
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
204
|
-
const headers = {};
|
|
205
|
-
b.bp("/importtasks");
|
|
206
|
-
const query = (0, smithy_client_1.map)({
|
|
207
|
-
[_nT]: [, input[_nT]],
|
|
208
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
209
|
-
});
|
|
210
|
-
let body;
|
|
211
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
exports.se_ListImportTasksCommand = se_ListImportTasksCommand;
|
|
215
|
-
const se_ListPrivateGraphEndpointsCommand = async (input, context) => {
|
|
216
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
219
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
220
|
-
const query = (0, smithy_client_1.map)({
|
|
221
|
-
[_nT]: [, input[_nT]],
|
|
222
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
223
|
-
});
|
|
224
|
-
let body;
|
|
225
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
226
|
-
return b.build();
|
|
227
|
-
};
|
|
228
|
-
exports.se_ListPrivateGraphEndpointsCommand = se_ListPrivateGraphEndpointsCommand;
|
|
229
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
230
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
231
|
-
const headers = {};
|
|
232
|
-
b.bp("/tags/{resourceArn}");
|
|
233
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
234
|
-
let body;
|
|
235
|
-
b.m("GET").h(headers).b(body);
|
|
236
|
-
return b.build();
|
|
237
|
-
};
|
|
238
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
239
|
-
const se_ResetGraphCommand = async (input, context) => {
|
|
240
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
241
|
-
const headers = {
|
|
242
|
-
"content-type": "application/json",
|
|
243
|
-
};
|
|
244
|
-
b.bp("/graphs/{graphIdentifier}");
|
|
245
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
246
|
-
let body;
|
|
247
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
248
|
-
skipSnapshot: [],
|
|
249
|
-
}));
|
|
250
|
-
b.m("PUT").h(headers).b(body);
|
|
251
|
-
return b.build();
|
|
252
|
-
};
|
|
253
|
-
exports.se_ResetGraphCommand = se_ResetGraphCommand;
|
|
254
|
-
const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
|
|
255
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
256
|
-
const headers = {
|
|
257
|
-
"content-type": "application/json",
|
|
258
|
-
};
|
|
259
|
-
b.bp("/snapshots/{snapshotIdentifier}/restore");
|
|
260
|
-
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
263
|
-
deletionProtection: [],
|
|
264
|
-
graphName: [],
|
|
265
|
-
provisionedMemory: [],
|
|
266
|
-
publicConnectivity: [],
|
|
267
|
-
replicaCount: [],
|
|
268
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
269
|
-
}));
|
|
270
|
-
b.m("POST").h(headers).b(body);
|
|
271
|
-
return b.build();
|
|
272
|
-
};
|
|
273
|
-
exports.se_RestoreGraphFromSnapshotCommand = se_RestoreGraphFromSnapshotCommand;
|
|
274
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
275
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
276
|
-
const headers = {
|
|
277
|
-
"content-type": "application/json",
|
|
278
|
-
};
|
|
279
|
-
b.bp("/tags/{resourceArn}");
|
|
280
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
281
|
-
let body;
|
|
282
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
283
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
284
|
-
}));
|
|
285
|
-
b.m("POST").h(headers).b(body);
|
|
286
|
-
return b.build();
|
|
287
|
-
};
|
|
288
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
289
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
290
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
291
|
-
const headers = {};
|
|
292
|
-
b.bp("/tags/{resourceArn}");
|
|
293
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
|
-
const query = (0, smithy_client_1.map)({
|
|
295
|
-
[_tK]: [
|
|
296
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
297
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
298
|
-
],
|
|
299
|
-
});
|
|
300
|
-
let body;
|
|
301
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
305
|
-
const se_UpdateGraphCommand = async (input, context) => {
|
|
306
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/graphs/{graphIdentifier}");
|
|
311
|
-
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
|
-
deletionProtection: [],
|
|
315
|
-
provisionedMemory: [],
|
|
316
|
-
publicConnectivity: [],
|
|
317
|
-
}));
|
|
318
|
-
b.m("PATCH").h(headers).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
exports.se_UpdateGraphCommand = se_UpdateGraphCommand;
|
|
322
|
-
const de_CancelImportTaskCommand = async (output, context) => {
|
|
323
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
|
-
return de_CancelImportTaskCommandError(output, context);
|
|
325
|
-
}
|
|
326
|
-
const contents = (0, smithy_client_1.map)({
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
});
|
|
329
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
330
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
331
|
-
format: smithy_client_1.expectString,
|
|
332
|
-
graphId: smithy_client_1.expectString,
|
|
333
|
-
roleArn: smithy_client_1.expectString,
|
|
334
|
-
source: smithy_client_1.expectString,
|
|
335
|
-
status: smithy_client_1.expectString,
|
|
336
|
-
taskId: smithy_client_1.expectString,
|
|
337
|
-
});
|
|
338
|
-
Object.assign(contents, doc);
|
|
339
|
-
return contents;
|
|
340
|
-
};
|
|
341
|
-
exports.de_CancelImportTaskCommand = de_CancelImportTaskCommand;
|
|
342
|
-
const de_CancelImportTaskCommandError = async (output, context) => {
|
|
343
|
-
const parsedOutput = {
|
|
344
|
-
...output,
|
|
345
|
-
body: await parseErrorBody(output.body, context),
|
|
346
|
-
};
|
|
347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
-
switch (errorCode) {
|
|
349
|
-
case "ConflictException":
|
|
350
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
351
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
352
|
-
case "InternalServerException":
|
|
353
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
355
|
-
case "ResourceNotFoundException":
|
|
356
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ThrottlingException":
|
|
359
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
360
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ValidationException":
|
|
362
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
364
|
-
default:
|
|
365
|
-
const parsedBody = parsedOutput.body;
|
|
366
|
-
return throwDefaultError({
|
|
367
|
-
output,
|
|
368
|
-
parsedBody,
|
|
369
|
-
errorCode,
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
const de_CreateGraphCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
375
|
-
return de_CreateGraphCommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const contents = (0, smithy_client_1.map)({
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
});
|
|
380
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
381
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
382
|
-
arn: smithy_client_1.expectString,
|
|
383
|
-
buildNumber: smithy_client_1.expectString,
|
|
384
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
385
|
-
deletionProtection: smithy_client_1.expectBoolean,
|
|
386
|
-
endpoint: smithy_client_1.expectString,
|
|
387
|
-
id: smithy_client_1.expectString,
|
|
388
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
389
|
-
name: smithy_client_1.expectString,
|
|
390
|
-
provisionedMemory: smithy_client_1.expectInt32,
|
|
391
|
-
publicConnectivity: smithy_client_1.expectBoolean,
|
|
392
|
-
replicaCount: smithy_client_1.expectInt32,
|
|
393
|
-
sourceSnapshotId: smithy_client_1.expectString,
|
|
394
|
-
status: smithy_client_1.expectString,
|
|
395
|
-
statusReason: smithy_client_1.expectString,
|
|
396
|
-
vectorSearchConfiguration: smithy_client_1._json,
|
|
397
|
-
});
|
|
398
|
-
Object.assign(contents, doc);
|
|
399
|
-
return contents;
|
|
400
|
-
};
|
|
401
|
-
exports.de_CreateGraphCommand = de_CreateGraphCommand;
|
|
402
|
-
const de_CreateGraphCommandError = async (output, context) => {
|
|
403
|
-
const parsedOutput = {
|
|
404
|
-
...output,
|
|
405
|
-
body: await parseErrorBody(output.body, context),
|
|
406
|
-
};
|
|
407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
408
|
-
switch (errorCode) {
|
|
409
|
-
case "ConflictException":
|
|
410
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
411
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
412
|
-
case "InternalServerException":
|
|
413
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
414
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
415
|
-
case "ServiceQuotaExceededException":
|
|
416
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
417
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ThrottlingException":
|
|
419
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
420
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ValidationException":
|
|
422
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
423
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
424
|
-
default:
|
|
425
|
-
const parsedBody = parsedOutput.body;
|
|
426
|
-
return throwDefaultError({
|
|
427
|
-
output,
|
|
428
|
-
parsedBody,
|
|
429
|
-
errorCode,
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
const de_CreateGraphSnapshotCommand = async (output, context) => {
|
|
434
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
435
|
-
return de_CreateGraphSnapshotCommandError(output, context);
|
|
436
|
-
}
|
|
437
|
-
const contents = (0, smithy_client_1.map)({
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
});
|
|
440
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
441
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
442
|
-
arn: smithy_client_1.expectString,
|
|
443
|
-
id: smithy_client_1.expectString,
|
|
444
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
445
|
-
name: smithy_client_1.expectString,
|
|
446
|
-
snapshotCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
447
|
-
sourceGraphId: smithy_client_1.expectString,
|
|
448
|
-
status: smithy_client_1.expectString,
|
|
449
|
-
});
|
|
450
|
-
Object.assign(contents, doc);
|
|
451
|
-
return contents;
|
|
452
|
-
};
|
|
453
|
-
exports.de_CreateGraphSnapshotCommand = de_CreateGraphSnapshotCommand;
|
|
454
|
-
const de_CreateGraphSnapshotCommandError = async (output, context) => {
|
|
455
|
-
const parsedOutput = {
|
|
456
|
-
...output,
|
|
457
|
-
body: await parseErrorBody(output.body, context),
|
|
458
|
-
};
|
|
459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
460
|
-
switch (errorCode) {
|
|
461
|
-
case "ConflictException":
|
|
462
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
463
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
464
|
-
case "InternalServerException":
|
|
465
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
466
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
467
|
-
case "ResourceNotFoundException":
|
|
468
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
470
|
-
case "ServiceQuotaExceededException":
|
|
471
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
472
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ThrottlingException":
|
|
474
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
476
|
-
case "ValidationException":
|
|
477
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
479
|
-
default:
|
|
480
|
-
const parsedBody = parsedOutput.body;
|
|
481
|
-
return throwDefaultError({
|
|
482
|
-
output,
|
|
483
|
-
parsedBody,
|
|
484
|
-
errorCode,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
const de_CreateGraphUsingImportTaskCommand = async (output, context) => {
|
|
489
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
490
|
-
return de_CreateGraphUsingImportTaskCommandError(output, context);
|
|
491
|
-
}
|
|
492
|
-
const contents = (0, smithy_client_1.map)({
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
});
|
|
495
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
496
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
497
|
-
format: smithy_client_1.expectString,
|
|
498
|
-
graphId: smithy_client_1.expectString,
|
|
499
|
-
importOptions: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
500
|
-
roleArn: smithy_client_1.expectString,
|
|
501
|
-
source: smithy_client_1.expectString,
|
|
502
|
-
status: smithy_client_1.expectString,
|
|
503
|
-
taskId: smithy_client_1.expectString,
|
|
504
|
-
});
|
|
505
|
-
Object.assign(contents, doc);
|
|
506
|
-
return contents;
|
|
507
|
-
};
|
|
508
|
-
exports.de_CreateGraphUsingImportTaskCommand = de_CreateGraphUsingImportTaskCommand;
|
|
509
|
-
const de_CreateGraphUsingImportTaskCommandError = async (output, context) => {
|
|
510
|
-
const parsedOutput = {
|
|
511
|
-
...output,
|
|
512
|
-
body: await parseErrorBody(output.body, context),
|
|
513
|
-
};
|
|
514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
|
-
switch (errorCode) {
|
|
516
|
-
case "ConflictException":
|
|
517
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
518
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
519
|
-
case "InternalServerException":
|
|
520
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ServiceQuotaExceededException":
|
|
523
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
524
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ThrottlingException":
|
|
526
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
const de_CreatePrivateGraphEndpointCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
542
|
-
return de_CreatePrivateGraphEndpointCommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const contents = (0, smithy_client_1.map)({
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
});
|
|
547
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
548
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
549
|
-
status: smithy_client_1.expectString,
|
|
550
|
-
subnetIds: smithy_client_1._json,
|
|
551
|
-
vpcEndpointId: smithy_client_1.expectString,
|
|
552
|
-
vpcId: smithy_client_1.expectString,
|
|
553
|
-
});
|
|
554
|
-
Object.assign(contents, doc);
|
|
555
|
-
return contents;
|
|
556
|
-
};
|
|
557
|
-
exports.de_CreatePrivateGraphEndpointCommand = de_CreatePrivateGraphEndpointCommand;
|
|
558
|
-
const de_CreatePrivateGraphEndpointCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "ConflictException":
|
|
566
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
567
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
568
|
-
case "InternalServerException":
|
|
569
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
570
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ResourceNotFoundException":
|
|
572
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
573
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ServiceQuotaExceededException":
|
|
575
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
576
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ThrottlingException":
|
|
578
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
579
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ValidationException":
|
|
581
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
const de_DeleteGraphCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
-
return de_DeleteGraphCommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const contents = (0, smithy_client_1.map)({
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
});
|
|
599
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
600
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
601
|
-
arn: smithy_client_1.expectString,
|
|
602
|
-
buildNumber: smithy_client_1.expectString,
|
|
603
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
604
|
-
deletionProtection: smithy_client_1.expectBoolean,
|
|
605
|
-
endpoint: smithy_client_1.expectString,
|
|
606
|
-
id: smithy_client_1.expectString,
|
|
607
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
608
|
-
name: smithy_client_1.expectString,
|
|
609
|
-
provisionedMemory: smithy_client_1.expectInt32,
|
|
610
|
-
publicConnectivity: smithy_client_1.expectBoolean,
|
|
611
|
-
replicaCount: smithy_client_1.expectInt32,
|
|
612
|
-
sourceSnapshotId: smithy_client_1.expectString,
|
|
613
|
-
status: smithy_client_1.expectString,
|
|
614
|
-
statusReason: smithy_client_1.expectString,
|
|
615
|
-
vectorSearchConfiguration: smithy_client_1._json,
|
|
616
|
-
});
|
|
617
|
-
Object.assign(contents, doc);
|
|
618
|
-
return contents;
|
|
619
|
-
};
|
|
620
|
-
exports.de_DeleteGraphCommand = de_DeleteGraphCommand;
|
|
621
|
-
const de_DeleteGraphCommandError = async (output, context) => {
|
|
622
|
-
const parsedOutput = {
|
|
623
|
-
...output,
|
|
624
|
-
body: await parseErrorBody(output.body, context),
|
|
625
|
-
};
|
|
626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
-
switch (errorCode) {
|
|
628
|
-
case "ConflictException":
|
|
629
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
630
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
631
|
-
case "InternalServerException":
|
|
632
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
633
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ResourceNotFoundException":
|
|
635
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
636
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ThrottlingException":
|
|
638
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
639
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
640
|
-
case "ValidationException":
|
|
641
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
642
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
643
|
-
default:
|
|
644
|
-
const parsedBody = parsedOutput.body;
|
|
645
|
-
return throwDefaultError({
|
|
646
|
-
output,
|
|
647
|
-
parsedBody,
|
|
648
|
-
errorCode,
|
|
649
|
-
});
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
const de_DeleteGraphSnapshotCommand = async (output, context) => {
|
|
653
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
|
-
return de_DeleteGraphSnapshotCommandError(output, context);
|
|
655
|
-
}
|
|
656
|
-
const contents = (0, smithy_client_1.map)({
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
});
|
|
659
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
660
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
661
|
-
arn: smithy_client_1.expectString,
|
|
662
|
-
id: smithy_client_1.expectString,
|
|
663
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
664
|
-
name: smithy_client_1.expectString,
|
|
665
|
-
snapshotCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
666
|
-
sourceGraphId: smithy_client_1.expectString,
|
|
667
|
-
status: smithy_client_1.expectString,
|
|
668
|
-
});
|
|
669
|
-
Object.assign(contents, doc);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
exports.de_DeleteGraphSnapshotCommand = de_DeleteGraphSnapshotCommand;
|
|
673
|
-
const de_DeleteGraphSnapshotCommandError = async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context),
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "ConflictException":
|
|
681
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalServerException":
|
|
684
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ResourceNotFoundException":
|
|
687
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ThrottlingException":
|
|
690
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
const de_DeletePrivateGraphEndpointCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
-
return de_DeletePrivateGraphEndpointCommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const contents = (0, smithy_client_1.map)({
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
});
|
|
711
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
712
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
713
|
-
status: smithy_client_1.expectString,
|
|
714
|
-
subnetIds: smithy_client_1._json,
|
|
715
|
-
vpcEndpointId: smithy_client_1.expectString,
|
|
716
|
-
vpcId: smithy_client_1.expectString,
|
|
717
|
-
});
|
|
718
|
-
Object.assign(contents, doc);
|
|
719
|
-
return contents;
|
|
720
|
-
};
|
|
721
|
-
exports.de_DeletePrivateGraphEndpointCommand = de_DeletePrivateGraphEndpointCommand;
|
|
722
|
-
const de_DeletePrivateGraphEndpointCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "ConflictException":
|
|
730
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
731
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ResourceNotFoundException":
|
|
736
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ThrottlingException":
|
|
739
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
740
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ValidationException":
|
|
742
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
const de_GetGraphCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return de_GetGraphCommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const contents = (0, smithy_client_1.map)({
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
});
|
|
760
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
761
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
762
|
-
arn: smithy_client_1.expectString,
|
|
763
|
-
buildNumber: smithy_client_1.expectString,
|
|
764
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
765
|
-
deletionProtection: smithy_client_1.expectBoolean,
|
|
766
|
-
endpoint: smithy_client_1.expectString,
|
|
767
|
-
id: smithy_client_1.expectString,
|
|
768
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
769
|
-
name: smithy_client_1.expectString,
|
|
770
|
-
provisionedMemory: smithy_client_1.expectInt32,
|
|
771
|
-
publicConnectivity: smithy_client_1.expectBoolean,
|
|
772
|
-
replicaCount: smithy_client_1.expectInt32,
|
|
773
|
-
sourceSnapshotId: smithy_client_1.expectString,
|
|
774
|
-
status: smithy_client_1.expectString,
|
|
775
|
-
statusReason: smithy_client_1.expectString,
|
|
776
|
-
vectorSearchConfiguration: smithy_client_1._json,
|
|
777
|
-
});
|
|
778
|
-
Object.assign(contents, doc);
|
|
779
|
-
return contents;
|
|
780
|
-
};
|
|
781
|
-
exports.de_GetGraphCommand = de_GetGraphCommand;
|
|
782
|
-
const de_GetGraphCommandError = async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context),
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "InternalServerException":
|
|
790
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
791
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ResourceNotFoundException":
|
|
793
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
794
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ThrottlingException":
|
|
796
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
797
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ValidationException":
|
|
799
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
800
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
801
|
-
default:
|
|
802
|
-
const parsedBody = parsedOutput.body;
|
|
803
|
-
return throwDefaultError({
|
|
804
|
-
output,
|
|
805
|
-
parsedBody,
|
|
806
|
-
errorCode,
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
const de_GetGraphSnapshotCommand = async (output, context) => {
|
|
811
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
-
return de_GetGraphSnapshotCommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const contents = (0, smithy_client_1.map)({
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
});
|
|
817
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
818
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
819
|
-
arn: smithy_client_1.expectString,
|
|
820
|
-
id: smithy_client_1.expectString,
|
|
821
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
822
|
-
name: smithy_client_1.expectString,
|
|
823
|
-
snapshotCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
824
|
-
sourceGraphId: smithy_client_1.expectString,
|
|
825
|
-
status: smithy_client_1.expectString,
|
|
826
|
-
});
|
|
827
|
-
Object.assign(contents, doc);
|
|
828
|
-
return contents;
|
|
829
|
-
};
|
|
830
|
-
exports.de_GetGraphSnapshotCommand = de_GetGraphSnapshotCommand;
|
|
831
|
-
const de_GetGraphSnapshotCommandError = async (output, context) => {
|
|
832
|
-
const parsedOutput = {
|
|
833
|
-
...output,
|
|
834
|
-
body: await parseErrorBody(output.body, context),
|
|
835
|
-
};
|
|
836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
-
switch (errorCode) {
|
|
838
|
-
case "InternalServerException":
|
|
839
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ResourceNotFoundException":
|
|
842
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ThrottlingException":
|
|
845
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
846
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ValidationException":
|
|
848
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
849
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
850
|
-
default:
|
|
851
|
-
const parsedBody = parsedOutput.body;
|
|
852
|
-
return throwDefaultError({
|
|
853
|
-
output,
|
|
854
|
-
parsedBody,
|
|
855
|
-
errorCode,
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
const de_GetImportTaskCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return de_GetImportTaskCommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const contents = (0, smithy_client_1.map)({
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
});
|
|
866
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
867
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
868
|
-
attemptNumber: smithy_client_1.expectInt32,
|
|
869
|
-
format: smithy_client_1.expectString,
|
|
870
|
-
graphId: smithy_client_1.expectString,
|
|
871
|
-
importOptions: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
872
|
-
importTaskDetails: (_) => de_ImportTaskDetails(_, context),
|
|
873
|
-
roleArn: smithy_client_1.expectString,
|
|
874
|
-
source: smithy_client_1.expectString,
|
|
875
|
-
status: smithy_client_1.expectString,
|
|
876
|
-
statusReason: smithy_client_1.expectString,
|
|
877
|
-
taskId: smithy_client_1.expectString,
|
|
878
|
-
});
|
|
879
|
-
Object.assign(contents, doc);
|
|
880
|
-
return contents;
|
|
881
|
-
};
|
|
882
|
-
exports.de_GetImportTaskCommand = de_GetImportTaskCommand;
|
|
883
|
-
const de_GetImportTaskCommandError = async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "InternalServerException":
|
|
891
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
892
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ResourceNotFoundException":
|
|
894
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ThrottlingException":
|
|
897
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ValidationException":
|
|
900
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
const de_GetPrivateGraphEndpointCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
-
return de_GetPrivateGraphEndpointCommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const contents = (0, smithy_client_1.map)({
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
});
|
|
918
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
919
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
920
|
-
status: smithy_client_1.expectString,
|
|
921
|
-
subnetIds: smithy_client_1._json,
|
|
922
|
-
vpcEndpointId: smithy_client_1.expectString,
|
|
923
|
-
vpcId: smithy_client_1.expectString,
|
|
924
|
-
});
|
|
925
|
-
Object.assign(contents, doc);
|
|
926
|
-
return contents;
|
|
927
|
-
};
|
|
928
|
-
exports.de_GetPrivateGraphEndpointCommand = de_GetPrivateGraphEndpointCommand;
|
|
929
|
-
const de_GetPrivateGraphEndpointCommandError = async (output, context) => {
|
|
930
|
-
const parsedOutput = {
|
|
931
|
-
...output,
|
|
932
|
-
body: await parseErrorBody(output.body, context),
|
|
933
|
-
};
|
|
934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
|
-
switch (errorCode) {
|
|
936
|
-
case "InternalServerException":
|
|
937
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
938
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ResourceNotFoundException":
|
|
940
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ThrottlingException":
|
|
943
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
944
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ValidationException":
|
|
946
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
948
|
-
default:
|
|
949
|
-
const parsedBody = parsedOutput.body;
|
|
950
|
-
return throwDefaultError({
|
|
951
|
-
output,
|
|
952
|
-
parsedBody,
|
|
953
|
-
errorCode,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
const de_ListGraphsCommand = async (output, context) => {
|
|
958
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
959
|
-
return de_ListGraphsCommandError(output, context);
|
|
960
|
-
}
|
|
961
|
-
const contents = (0, smithy_client_1.map)({
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
});
|
|
964
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
965
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
966
|
-
graphs: smithy_client_1._json,
|
|
967
|
-
nextToken: smithy_client_1.expectString,
|
|
968
|
-
});
|
|
969
|
-
Object.assign(contents, doc);
|
|
970
|
-
return contents;
|
|
971
|
-
};
|
|
972
|
-
exports.de_ListGraphsCommand = de_ListGraphsCommand;
|
|
973
|
-
const de_ListGraphsCommandError = async (output, context) => {
|
|
974
|
-
const parsedOutput = {
|
|
975
|
-
...output,
|
|
976
|
-
body: await parseErrorBody(output.body, context),
|
|
977
|
-
};
|
|
978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
|
-
switch (errorCode) {
|
|
980
|
-
case "InternalServerException":
|
|
981
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
982
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ResourceNotFoundException":
|
|
984
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
985
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ThrottlingException":
|
|
987
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
988
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
989
|
-
default:
|
|
990
|
-
const parsedBody = parsedOutput.body;
|
|
991
|
-
return throwDefaultError({
|
|
992
|
-
output,
|
|
993
|
-
parsedBody,
|
|
994
|
-
errorCode,
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
};
|
|
998
|
-
const de_ListGraphSnapshotsCommand = async (output, context) => {
|
|
999
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
-
return de_ListGraphSnapshotsCommandError(output, context);
|
|
1001
|
-
}
|
|
1002
|
-
const contents = (0, smithy_client_1.map)({
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
});
|
|
1005
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1006
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1007
|
-
graphSnapshots: (_) => de_GraphSnapshotSummaryList(_, context),
|
|
1008
|
-
nextToken: smithy_client_1.expectString,
|
|
1009
|
-
});
|
|
1010
|
-
Object.assign(contents, doc);
|
|
1011
|
-
return contents;
|
|
1012
|
-
};
|
|
1013
|
-
exports.de_ListGraphSnapshotsCommand = de_ListGraphSnapshotsCommand;
|
|
1014
|
-
const de_ListGraphSnapshotsCommandError = async (output, context) => {
|
|
1015
|
-
const parsedOutput = {
|
|
1016
|
-
...output,
|
|
1017
|
-
body: await parseErrorBody(output.body, context),
|
|
1018
|
-
};
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "InternalServerException":
|
|
1022
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1023
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ResourceNotFoundException":
|
|
1025
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1026
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ThrottlingException":
|
|
1028
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1029
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ValidationException":
|
|
1031
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode,
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
|
-
const de_ListImportTasksCommand = async (output, context) => {
|
|
1043
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return de_ListImportTasksCommandError(output, context);
|
|
1045
|
-
}
|
|
1046
|
-
const contents = (0, smithy_client_1.map)({
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
});
|
|
1049
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1050
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1051
|
-
nextToken: smithy_client_1.expectString,
|
|
1052
|
-
tasks: smithy_client_1._json,
|
|
1053
|
-
});
|
|
1054
|
-
Object.assign(contents, doc);
|
|
1055
|
-
return contents;
|
|
1056
|
-
};
|
|
1057
|
-
exports.de_ListImportTasksCommand = de_ListImportTasksCommand;
|
|
1058
|
-
const de_ListImportTasksCommandError = async (output, context) => {
|
|
1059
|
-
const parsedOutput = {
|
|
1060
|
-
...output,
|
|
1061
|
-
body: await parseErrorBody(output.body, context),
|
|
1062
|
-
};
|
|
1063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
-
switch (errorCode) {
|
|
1065
|
-
case "InternalServerException":
|
|
1066
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1067
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ResourceNotFoundException":
|
|
1069
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ThrottlingException":
|
|
1072
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1073
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ValidationException":
|
|
1075
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1076
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1077
|
-
default:
|
|
1078
|
-
const parsedBody = parsedOutput.body;
|
|
1079
|
-
return throwDefaultError({
|
|
1080
|
-
output,
|
|
1081
|
-
parsedBody,
|
|
1082
|
-
errorCode,
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
|
-
const de_ListPrivateGraphEndpointsCommand = async (output, context) => {
|
|
1087
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
|
-
return de_ListPrivateGraphEndpointsCommandError(output, context);
|
|
1089
|
-
}
|
|
1090
|
-
const contents = (0, smithy_client_1.map)({
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
});
|
|
1093
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1094
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1095
|
-
nextToken: smithy_client_1.expectString,
|
|
1096
|
-
privateGraphEndpoints: smithy_client_1._json,
|
|
1097
|
-
});
|
|
1098
|
-
Object.assign(contents, doc);
|
|
1099
|
-
return contents;
|
|
1100
|
-
};
|
|
1101
|
-
exports.de_ListPrivateGraphEndpointsCommand = de_ListPrivateGraphEndpointsCommand;
|
|
1102
|
-
const de_ListPrivateGraphEndpointsCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "InternalServerException":
|
|
1110
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1111
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ResourceNotFoundException":
|
|
1113
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ThrottlingException":
|
|
1116
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1117
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ValidationException":
|
|
1119
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1121
|
-
default:
|
|
1122
|
-
const parsedBody = parsedOutput.body;
|
|
1123
|
-
return throwDefaultError({
|
|
1124
|
-
output,
|
|
1125
|
-
parsedBody,
|
|
1126
|
-
errorCode,
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1131
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1133
|
-
}
|
|
1134
|
-
const contents = (0, smithy_client_1.map)({
|
|
1135
|
-
$metadata: deserializeMetadata(output),
|
|
1136
|
-
});
|
|
1137
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1138
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1139
|
-
tags: smithy_client_1._json,
|
|
1140
|
-
});
|
|
1141
|
-
Object.assign(contents, doc);
|
|
1142
|
-
return contents;
|
|
1143
|
-
};
|
|
1144
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1145
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1146
|
-
const parsedOutput = {
|
|
1147
|
-
...output,
|
|
1148
|
-
body: await parseErrorBody(output.body, context),
|
|
1149
|
-
};
|
|
1150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
-
switch (errorCode) {
|
|
1152
|
-
case "InternalServerException":
|
|
1153
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ResourceNotFoundException":
|
|
1156
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ThrottlingException":
|
|
1159
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ValidationException":
|
|
1162
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody,
|
|
1169
|
-
errorCode,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
const de_ResetGraphCommand = async (output, context) => {
|
|
1174
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return de_ResetGraphCommandError(output, context);
|
|
1176
|
-
}
|
|
1177
|
-
const contents = (0, smithy_client_1.map)({
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
});
|
|
1180
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1181
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1182
|
-
arn: smithy_client_1.expectString,
|
|
1183
|
-
buildNumber: smithy_client_1.expectString,
|
|
1184
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1185
|
-
deletionProtection: smithy_client_1.expectBoolean,
|
|
1186
|
-
endpoint: smithy_client_1.expectString,
|
|
1187
|
-
id: smithy_client_1.expectString,
|
|
1188
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
1189
|
-
name: smithy_client_1.expectString,
|
|
1190
|
-
provisionedMemory: smithy_client_1.expectInt32,
|
|
1191
|
-
publicConnectivity: smithy_client_1.expectBoolean,
|
|
1192
|
-
replicaCount: smithy_client_1.expectInt32,
|
|
1193
|
-
sourceSnapshotId: smithy_client_1.expectString,
|
|
1194
|
-
status: smithy_client_1.expectString,
|
|
1195
|
-
statusReason: smithy_client_1.expectString,
|
|
1196
|
-
vectorSearchConfiguration: smithy_client_1._json,
|
|
1197
|
-
});
|
|
1198
|
-
Object.assign(contents, doc);
|
|
1199
|
-
return contents;
|
|
1200
|
-
};
|
|
1201
|
-
exports.de_ResetGraphCommand = de_ResetGraphCommand;
|
|
1202
|
-
const de_ResetGraphCommandError = async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context),
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "ConflictException":
|
|
1210
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1211
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "InternalServerException":
|
|
1213
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ResourceNotFoundException":
|
|
1216
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ThrottlingException":
|
|
1219
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ValidationException":
|
|
1222
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
|
-
default:
|
|
1225
|
-
const parsedBody = parsedOutput.body;
|
|
1226
|
-
return throwDefaultError({
|
|
1227
|
-
output,
|
|
1228
|
-
parsedBody,
|
|
1229
|
-
errorCode,
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
const de_RestoreGraphFromSnapshotCommand = async (output, context) => {
|
|
1234
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1235
|
-
return de_RestoreGraphFromSnapshotCommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const contents = (0, smithy_client_1.map)({
|
|
1238
|
-
$metadata: deserializeMetadata(output),
|
|
1239
|
-
});
|
|
1240
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1241
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1242
|
-
arn: smithy_client_1.expectString,
|
|
1243
|
-
buildNumber: smithy_client_1.expectString,
|
|
1244
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1245
|
-
deletionProtection: smithy_client_1.expectBoolean,
|
|
1246
|
-
endpoint: smithy_client_1.expectString,
|
|
1247
|
-
id: smithy_client_1.expectString,
|
|
1248
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
1249
|
-
name: smithy_client_1.expectString,
|
|
1250
|
-
provisionedMemory: smithy_client_1.expectInt32,
|
|
1251
|
-
publicConnectivity: smithy_client_1.expectBoolean,
|
|
1252
|
-
replicaCount: smithy_client_1.expectInt32,
|
|
1253
|
-
sourceSnapshotId: smithy_client_1.expectString,
|
|
1254
|
-
status: smithy_client_1.expectString,
|
|
1255
|
-
statusReason: smithy_client_1.expectString,
|
|
1256
|
-
vectorSearchConfiguration: smithy_client_1._json,
|
|
1257
|
-
});
|
|
1258
|
-
Object.assign(contents, doc);
|
|
1259
|
-
return contents;
|
|
1260
|
-
};
|
|
1261
|
-
exports.de_RestoreGraphFromSnapshotCommand = de_RestoreGraphFromSnapshotCommand;
|
|
1262
|
-
const de_RestoreGraphFromSnapshotCommandError = async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context),
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "ConflictException":
|
|
1270
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1271
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "InternalServerException":
|
|
1273
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1274
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ResourceNotFoundException":
|
|
1276
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1277
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ServiceQuotaExceededException":
|
|
1279
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
1280
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ThrottlingException":
|
|
1282
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1283
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ValidationException":
|
|
1285
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1286
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1297
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return de_TagResourceCommandError(output, context);
|
|
1299
|
-
}
|
|
1300
|
-
const contents = (0, smithy_client_1.map)({
|
|
1301
|
-
$metadata: deserializeMetadata(output),
|
|
1302
|
-
});
|
|
1303
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1304
|
-
return contents;
|
|
1305
|
-
};
|
|
1306
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1307
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context),
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "InternalServerException":
|
|
1315
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1316
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ResourceNotFoundException":
|
|
1318
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ThrottlingException":
|
|
1321
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1322
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ValidationException":
|
|
1324
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1325
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1326
|
-
default:
|
|
1327
|
-
const parsedBody = parsedOutput.body;
|
|
1328
|
-
return throwDefaultError({
|
|
1329
|
-
output,
|
|
1330
|
-
parsedBody,
|
|
1331
|
-
errorCode,
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
};
|
|
1335
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1336
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1337
|
-
return de_UntagResourceCommandError(output, context);
|
|
1338
|
-
}
|
|
1339
|
-
const contents = (0, smithy_client_1.map)({
|
|
1340
|
-
$metadata: deserializeMetadata(output),
|
|
1341
|
-
});
|
|
1342
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1343
|
-
return contents;
|
|
1344
|
-
};
|
|
1345
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1346
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1347
|
-
const parsedOutput = {
|
|
1348
|
-
...output,
|
|
1349
|
-
body: await parseErrorBody(output.body, context),
|
|
1350
|
-
};
|
|
1351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
-
switch (errorCode) {
|
|
1353
|
-
case "InternalServerException":
|
|
1354
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ResourceNotFoundException":
|
|
1357
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ThrottlingException":
|
|
1360
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1361
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ValidationException":
|
|
1363
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1364
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1365
|
-
default:
|
|
1366
|
-
const parsedBody = parsedOutput.body;
|
|
1367
|
-
return throwDefaultError({
|
|
1368
|
-
output,
|
|
1369
|
-
parsedBody,
|
|
1370
|
-
errorCode,
|
|
1371
|
-
});
|
|
1372
|
-
}
|
|
1373
|
-
};
|
|
1374
|
-
const de_UpdateGraphCommand = async (output, context) => {
|
|
1375
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1376
|
-
return de_UpdateGraphCommandError(output, context);
|
|
1377
|
-
}
|
|
1378
|
-
const contents = (0, smithy_client_1.map)({
|
|
1379
|
-
$metadata: deserializeMetadata(output),
|
|
1380
|
-
});
|
|
1381
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1382
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1383
|
-
arn: smithy_client_1.expectString,
|
|
1384
|
-
buildNumber: smithy_client_1.expectString,
|
|
1385
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1386
|
-
deletionProtection: smithy_client_1.expectBoolean,
|
|
1387
|
-
endpoint: smithy_client_1.expectString,
|
|
1388
|
-
id: smithy_client_1.expectString,
|
|
1389
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
1390
|
-
name: smithy_client_1.expectString,
|
|
1391
|
-
provisionedMemory: smithy_client_1.expectInt32,
|
|
1392
|
-
publicConnectivity: smithy_client_1.expectBoolean,
|
|
1393
|
-
replicaCount: smithy_client_1.expectInt32,
|
|
1394
|
-
sourceSnapshotId: smithy_client_1.expectString,
|
|
1395
|
-
status: smithy_client_1.expectString,
|
|
1396
|
-
statusReason: smithy_client_1.expectString,
|
|
1397
|
-
vectorSearchConfiguration: smithy_client_1._json,
|
|
1398
|
-
});
|
|
1399
|
-
Object.assign(contents, doc);
|
|
1400
|
-
return contents;
|
|
1401
|
-
};
|
|
1402
|
-
exports.de_UpdateGraphCommand = de_UpdateGraphCommand;
|
|
1403
|
-
const de_UpdateGraphCommandError = async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context),
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "ConflictException":
|
|
1411
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1412
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "InternalServerException":
|
|
1414
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ThrottlingException":
|
|
1420
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ValidationException":
|
|
1423
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode,
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
};
|
|
1434
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(NeptuneGraphServiceException_1.NeptuneGraphServiceException);
|
|
1435
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1436
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1437
|
-
const data = parsedOutput.body;
|
|
1438
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1439
|
-
message: smithy_client_1.expectString,
|
|
1440
|
-
reason: smithy_client_1.expectString,
|
|
1441
|
-
});
|
|
1442
|
-
Object.assign(contents, doc);
|
|
1443
|
-
const exception = new models_0_1.ConflictException({
|
|
1444
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1445
|
-
...contents,
|
|
1446
|
-
});
|
|
1447
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1448
|
-
};
|
|
1449
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1450
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1451
|
-
const data = parsedOutput.body;
|
|
1452
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1453
|
-
message: smithy_client_1.expectString,
|
|
1454
|
-
});
|
|
1455
|
-
Object.assign(contents, doc);
|
|
1456
|
-
const exception = new models_0_1.InternalServerException({
|
|
1457
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1458
|
-
...contents,
|
|
1459
|
-
});
|
|
1460
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1461
|
-
};
|
|
1462
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1463
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1464
|
-
const data = parsedOutput.body;
|
|
1465
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1466
|
-
message: smithy_client_1.expectString,
|
|
1467
|
-
});
|
|
1468
|
-
Object.assign(contents, doc);
|
|
1469
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1470
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1471
|
-
...contents,
|
|
1472
|
-
});
|
|
1473
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1474
|
-
};
|
|
1475
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1476
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1477
|
-
const data = parsedOutput.body;
|
|
1478
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1479
|
-
message: smithy_client_1.expectString,
|
|
1480
|
-
quotaCode: smithy_client_1.expectString,
|
|
1481
|
-
resourceId: smithy_client_1.expectString,
|
|
1482
|
-
resourceType: smithy_client_1.expectString,
|
|
1483
|
-
serviceCode: smithy_client_1.expectString,
|
|
1484
|
-
});
|
|
1485
|
-
Object.assign(contents, doc);
|
|
1486
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1488
|
-
...contents,
|
|
1489
|
-
});
|
|
1490
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1491
|
-
};
|
|
1492
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1493
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1494
|
-
const data = parsedOutput.body;
|
|
1495
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1496
|
-
message: smithy_client_1.expectString,
|
|
1497
|
-
});
|
|
1498
|
-
Object.assign(contents, doc);
|
|
1499
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1500
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1501
|
-
...contents,
|
|
1502
|
-
});
|
|
1503
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1504
|
-
};
|
|
1505
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1506
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1507
|
-
const data = parsedOutput.body;
|
|
1508
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1509
|
-
message: smithy_client_1.expectString,
|
|
1510
|
-
reason: smithy_client_1.expectString,
|
|
1511
|
-
});
|
|
1512
|
-
Object.assign(contents, doc);
|
|
1513
|
-
const exception = new models_0_1.ValidationException({
|
|
1514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1515
|
-
...contents,
|
|
1516
|
-
});
|
|
1517
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1518
|
-
};
|
|
1519
|
-
const de_GraphSnapshotSummary = (output, context) => {
|
|
1520
|
-
return (0, smithy_client_1.take)(output, {
|
|
1521
|
-
arn: smithy_client_1.expectString,
|
|
1522
|
-
id: smithy_client_1.expectString,
|
|
1523
|
-
kmsKeyIdentifier: smithy_client_1.expectString,
|
|
1524
|
-
name: smithy_client_1.expectString,
|
|
1525
|
-
snapshotCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1526
|
-
sourceGraphId: smithy_client_1.expectString,
|
|
1527
|
-
status: smithy_client_1.expectString,
|
|
1528
|
-
});
|
|
1529
|
-
};
|
|
1530
|
-
const de_GraphSnapshotSummaryList = (output, context) => {
|
|
1531
|
-
const retVal = (output || [])
|
|
1532
|
-
.filter((e) => e != null)
|
|
1533
|
-
.map((entry) => {
|
|
1534
|
-
return de_GraphSnapshotSummary(entry, context);
|
|
1535
|
-
});
|
|
1536
|
-
return retVal;
|
|
1537
|
-
};
|
|
1538
|
-
const de_ImportTaskDetails = (output, context) => {
|
|
1539
|
-
return (0, smithy_client_1.take)(output, {
|
|
1540
|
-
dictionaryEntryCount: smithy_client_1.expectLong,
|
|
1541
|
-
errorCount: smithy_client_1.expectInt32,
|
|
1542
|
-
errorDetails: smithy_client_1.expectString,
|
|
1543
|
-
progressPercentage: smithy_client_1.expectInt32,
|
|
1544
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1545
|
-
statementCount: smithy_client_1.expectLong,
|
|
1546
|
-
status: smithy_client_1.expectString,
|
|
1547
|
-
timeElapsedSeconds: smithy_client_1.expectLong,
|
|
1548
|
-
});
|
|
1549
|
-
};
|
|
1550
|
-
const deserializeMetadata = (output) => ({
|
|
1551
|
-
httpStatusCode: output.statusCode,
|
|
1552
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1553
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1554
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1555
|
-
});
|
|
1556
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1557
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1558
|
-
value !== null &&
|
|
1559
|
-
value !== "" &&
|
|
1560
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1561
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1562
|
-
const _gI = "graphIdentifier";
|
|
1563
|
-
const _mR = "maxResults";
|
|
1564
|
-
const _nT = "nextToken";
|
|
1565
|
-
const _sS = "skipSnapshot";
|
|
1566
|
-
const _tK = "tagKeys";
|
|
1567
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1568
|
-
if (encoded.length) {
|
|
1569
|
-
return JSON.parse(encoded);
|
|
1570
|
-
}
|
|
1571
|
-
return {};
|
|
1572
|
-
});
|
|
1573
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1574
|
-
const value = await parseBody(errorBody, context);
|
|
1575
|
-
value.message = value.message ?? value.Message;
|
|
1576
|
-
return value;
|
|
1577
|
-
};
|
|
1578
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1579
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1580
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1581
|
-
let cleanValue = rawValue;
|
|
1582
|
-
if (typeof cleanValue === "number") {
|
|
1583
|
-
cleanValue = cleanValue.toString();
|
|
1584
|
-
}
|
|
1585
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1586
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1587
|
-
}
|
|
1588
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1589
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1590
|
-
}
|
|
1591
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1592
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1593
|
-
}
|
|
1594
|
-
return cleanValue;
|
|
1595
|
-
};
|
|
1596
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1597
|
-
if (headerKey !== undefined) {
|
|
1598
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1599
|
-
}
|
|
1600
|
-
if (data.code !== undefined) {
|
|
1601
|
-
return sanitizeErrorCode(data.code);
|
|
1602
|
-
}
|
|
1603
|
-
if (data["__type"] !== undefined) {
|
|
1604
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|