@aws-sdk/client-neptune-graph 3.928.0 → 3.930.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.
Files changed (58) hide show
  1. package/dist-cjs/index.js +1472 -1669
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/NeptuneGraphClient.js +2 -0
  4. package/dist-es/commands/CancelExportTaskCommand.js +3 -9
  5. package/dist-es/commands/CancelImportTaskCommand.js +3 -9
  6. package/dist-es/commands/CancelQueryCommand.js +3 -9
  7. package/dist-es/commands/CreateGraphCommand.js +3 -9
  8. package/dist-es/commands/CreateGraphSnapshotCommand.js +3 -9
  9. package/dist-es/commands/CreateGraphUsingImportTaskCommand.js +3 -9
  10. package/dist-es/commands/CreatePrivateGraphEndpointCommand.js +3 -9
  11. package/dist-es/commands/DeleteGraphCommand.js +3 -9
  12. package/dist-es/commands/DeleteGraphSnapshotCommand.js +3 -9
  13. package/dist-es/commands/DeletePrivateGraphEndpointCommand.js +3 -9
  14. package/dist-es/commands/ExecuteQueryCommand.js +3 -10
  15. package/dist-es/commands/GetExportTaskCommand.js +3 -9
  16. package/dist-es/commands/GetGraphCommand.js +3 -9
  17. package/dist-es/commands/GetGraphSnapshotCommand.js +3 -9
  18. package/dist-es/commands/GetGraphSummaryCommand.js +3 -9
  19. package/dist-es/commands/GetImportTaskCommand.js +3 -9
  20. package/dist-es/commands/GetPrivateGraphEndpointCommand.js +3 -9
  21. package/dist-es/commands/GetQueryCommand.js +3 -9
  22. package/dist-es/commands/ListExportTasksCommand.js +3 -9
  23. package/dist-es/commands/ListGraphSnapshotsCommand.js +3 -9
  24. package/dist-es/commands/ListGraphsCommand.js +3 -9
  25. package/dist-es/commands/ListImportTasksCommand.js +3 -9
  26. package/dist-es/commands/ListPrivateGraphEndpointsCommand.js +3 -9
  27. package/dist-es/commands/ListQueriesCommand.js +3 -9
  28. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  29. package/dist-es/commands/ResetGraphCommand.js +3 -9
  30. package/dist-es/commands/RestoreGraphFromSnapshotCommand.js +3 -9
  31. package/dist-es/commands/StartExportTaskCommand.js +3 -9
  32. package/dist-es/commands/StartGraphCommand.js +3 -9
  33. package/dist-es/commands/StartImportTaskCommand.js +3 -9
  34. package/dist-es/commands/StopGraphCommand.js +3 -9
  35. package/dist-es/commands/TagResourceCommand.js +3 -9
  36. package/dist-es/commands/UntagResourceCommand.js +3 -9
  37. package/dist-es/commands/UpdateGraphCommand.js +3 -9
  38. package/dist-es/models/models_0.js +0 -11
  39. package/dist-es/runtimeConfig.shared.js +2 -0
  40. package/dist-es/schemas/schemas_0.js +1394 -0
  41. package/dist-types/NeptuneGraphClient.d.ts +10 -1
  42. package/dist-types/models/models_0.d.ts +4 -5
  43. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  44. package/dist-types/runtimeConfig.d.ts +1 -0
  45. package/dist-types/runtimeConfig.native.d.ts +1 -0
  46. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  47. package/dist-types/schemas/schemas_0.d.ts +152 -0
  48. package/dist-types/ts3.4/NeptuneGraphClient.d.ts +4 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +0 -4
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  54. package/dist-types/ts3.4/schemas/schemas_0.d.ts +159 -0
  55. package/package.json +35 -35
  56. package/dist-es/protocols/Aws_restJson1.js +0 -1401
  57. package/dist-types/protocols/Aws_restJson1.d.ts +0 -308
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -416
@@ -1,1401 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
4
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnprocessableException, ValidationException, } from "../models/models_0";
6
- import { NeptuneGraphServiceException as __BaseException } from "../models/NeptuneGraphServiceException";
7
- export const se_CancelExportTaskCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {};
10
- b.bp("/exporttasks/{taskIdentifier}");
11
- b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
12
- let body;
13
- b.m("DELETE").h(headers).b(body);
14
- return b.build();
15
- };
16
- export const se_CancelImportTaskCommand = async (input, context) => {
17
- const b = rb(input, context);
18
- const headers = {};
19
- b.bp("/importtasks/{taskIdentifier}");
20
- b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
21
- let body;
22
- b.m("DELETE").h(headers).b(body);
23
- return b.build();
24
- };
25
- export const se_CancelQueryCommand = async (input, context) => {
26
- const b = rb(input, context);
27
- const headers = map({}, isSerializableHeaderValue, {
28
- [_g]: input[_gI],
29
- });
30
- b.bp("/queries/{queryId}");
31
- b.p("queryId", () => input.queryId, "{queryId}", false);
32
- let body;
33
- let { hostname: resolvedHostname } = await context.endpoint();
34
- if (context.disableHostPrefix !== true) {
35
- resolvedHostname = "{graphIdentifier}." + resolvedHostname;
36
- if (input.graphIdentifier === undefined) {
37
- throw new Error("Empty value provided for input host prefix: graphIdentifier.");
38
- }
39
- resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
40
- if (!__isValidHostname(resolvedHostname)) {
41
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
42
- }
43
- }
44
- b.hn(resolvedHostname);
45
- b.m("DELETE").h(headers).b(body);
46
- return b.build();
47
- };
48
- export const se_CreateGraphCommand = async (input, context) => {
49
- const b = rb(input, context);
50
- const headers = {
51
- "content-type": "application/json",
52
- };
53
- b.bp("/graphs");
54
- let body;
55
- body = JSON.stringify(take(input, {
56
- deletionProtection: [],
57
- graphName: [],
58
- kmsKeyIdentifier: [],
59
- provisionedMemory: [],
60
- publicConnectivity: [],
61
- replicaCount: [],
62
- tags: (_) => _json(_),
63
- vectorSearchConfiguration: (_) => _json(_),
64
- }));
65
- b.m("POST").h(headers).b(body);
66
- return b.build();
67
- };
68
- export const se_CreateGraphSnapshotCommand = async (input, context) => {
69
- const b = rb(input, context);
70
- const headers = {
71
- "content-type": "application/json",
72
- };
73
- b.bp("/snapshots");
74
- let body;
75
- body = JSON.stringify(take(input, {
76
- graphIdentifier: [],
77
- snapshotName: [],
78
- tags: (_) => _json(_),
79
- }));
80
- b.m("POST").h(headers).b(body);
81
- return b.build();
82
- };
83
- export const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
84
- const b = rb(input, context);
85
- const headers = {
86
- "content-type": "application/json",
87
- };
88
- b.bp("/importtasks");
89
- let body;
90
- body = JSON.stringify(take(input, {
91
- blankNodeHandling: [],
92
- deletionProtection: [],
93
- failOnError: [],
94
- format: [],
95
- graphName: [],
96
- importOptions: (_) => _json(_),
97
- kmsKeyIdentifier: [],
98
- maxProvisionedMemory: [],
99
- minProvisionedMemory: [],
100
- parquetType: [],
101
- publicConnectivity: [],
102
- replicaCount: [],
103
- roleArn: [],
104
- source: [],
105
- tags: (_) => _json(_),
106
- vectorSearchConfiguration: (_) => _json(_),
107
- }));
108
- b.m("POST").h(headers).b(body);
109
- return b.build();
110
- };
111
- export const se_CreatePrivateGraphEndpointCommand = async (input, context) => {
112
- const b = rb(input, context);
113
- const headers = {
114
- "content-type": "application/json",
115
- };
116
- b.bp("/graphs/{graphIdentifier}/endpoints");
117
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
118
- let body;
119
- body = JSON.stringify(take(input, {
120
- subnetIds: (_) => _json(_),
121
- vpcId: [],
122
- vpcSecurityGroupIds: (_) => _json(_),
123
- }));
124
- b.m("POST").h(headers).b(body);
125
- return b.build();
126
- };
127
- export const se_DeleteGraphCommand = async (input, context) => {
128
- const b = rb(input, context);
129
- const headers = {};
130
- b.bp("/graphs/{graphIdentifier}");
131
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
132
- const query = map({
133
- [_sS]: [__expectNonNull(input.skipSnapshot, `skipSnapshot`) != null, () => input[_sS].toString()],
134
- });
135
- let body;
136
- b.m("DELETE").h(headers).q(query).b(body);
137
- return b.build();
138
- };
139
- export const se_DeleteGraphSnapshotCommand = async (input, context) => {
140
- const b = rb(input, context);
141
- const headers = {};
142
- b.bp("/snapshots/{snapshotIdentifier}");
143
- b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
144
- let body;
145
- b.m("DELETE").h(headers).b(body);
146
- return b.build();
147
- };
148
- export const se_DeletePrivateGraphEndpointCommand = async (input, context) => {
149
- const b = rb(input, context);
150
- const headers = {};
151
- b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
152
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
153
- b.p("vpcId", () => input.vpcId, "{vpcId}", false);
154
- let body;
155
- b.m("DELETE").h(headers).b(body);
156
- return b.build();
157
- };
158
- export const se_ExecuteQueryCommand = async (input, context) => {
159
- const b = rb(input, context);
160
- const headers = map({}, isSerializableHeaderValue, {
161
- "content-type": "application/json",
162
- [_g]: input[_gI],
163
- });
164
- b.bp("/queries");
165
- let body;
166
- body = JSON.stringify(take(input, {
167
- explain: [, , `explainMode`],
168
- language: [],
169
- parameters: (_) => se_DocumentValuedMap(_, context),
170
- planCache: [],
171
- query: [, , `queryString`],
172
- queryTimeoutMilliseconds: [],
173
- }));
174
- let { hostname: resolvedHostname } = await context.endpoint();
175
- if (context.disableHostPrefix !== true) {
176
- resolvedHostname = "{graphIdentifier}." + resolvedHostname;
177
- if (input.graphIdentifier === undefined) {
178
- throw new Error("Empty value provided for input host prefix: graphIdentifier.");
179
- }
180
- resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
181
- if (!__isValidHostname(resolvedHostname)) {
182
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
183
- }
184
- }
185
- b.hn(resolvedHostname);
186
- b.m("POST").h(headers).b(body);
187
- return b.build();
188
- };
189
- export const se_GetExportTaskCommand = async (input, context) => {
190
- const b = rb(input, context);
191
- const headers = {};
192
- b.bp("/exporttasks/{taskIdentifier}");
193
- b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
194
- let body;
195
- b.m("GET").h(headers).b(body);
196
- return b.build();
197
- };
198
- export const se_GetGraphCommand = async (input, context) => {
199
- const b = rb(input, context);
200
- const headers = {};
201
- b.bp("/graphs/{graphIdentifier}");
202
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
203
- let body;
204
- b.m("GET").h(headers).b(body);
205
- return b.build();
206
- };
207
- export const se_GetGraphSnapshotCommand = async (input, context) => {
208
- const b = rb(input, context);
209
- const headers = {};
210
- b.bp("/snapshots/{snapshotIdentifier}");
211
- b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
212
- let body;
213
- b.m("GET").h(headers).b(body);
214
- return b.build();
215
- };
216
- export const se_GetGraphSummaryCommand = async (input, context) => {
217
- const b = rb(input, context);
218
- const headers = map({}, isSerializableHeaderValue, {
219
- [_g]: input[_gI],
220
- });
221
- b.bp("/summary");
222
- const query = map({
223
- [_m]: [, input[_m]],
224
- });
225
- let body;
226
- let { hostname: resolvedHostname } = await context.endpoint();
227
- if (context.disableHostPrefix !== true) {
228
- resolvedHostname = "{graphIdentifier}." + resolvedHostname;
229
- if (input.graphIdentifier === undefined) {
230
- throw new Error("Empty value provided for input host prefix: graphIdentifier.");
231
- }
232
- resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
233
- if (!__isValidHostname(resolvedHostname)) {
234
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
235
- }
236
- }
237
- b.hn(resolvedHostname);
238
- b.m("GET").h(headers).q(query).b(body);
239
- return b.build();
240
- };
241
- export const se_GetImportTaskCommand = async (input, context) => {
242
- const b = rb(input, context);
243
- const headers = {};
244
- b.bp("/importtasks/{taskIdentifier}");
245
- b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
246
- let body;
247
- b.m("GET").h(headers).b(body);
248
- return b.build();
249
- };
250
- export const se_GetPrivateGraphEndpointCommand = async (input, context) => {
251
- const b = rb(input, context);
252
- const headers = {};
253
- b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
254
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
255
- b.p("vpcId", () => input.vpcId, "{vpcId}", false);
256
- let body;
257
- b.m("GET").h(headers).b(body);
258
- return b.build();
259
- };
260
- export const se_GetQueryCommand = async (input, context) => {
261
- const b = rb(input, context);
262
- const headers = map({}, isSerializableHeaderValue, {
263
- [_g]: input[_gI],
264
- });
265
- b.bp("/queries/{queryId}");
266
- b.p("queryId", () => input.queryId, "{queryId}", false);
267
- let body;
268
- let { hostname: resolvedHostname } = await context.endpoint();
269
- if (context.disableHostPrefix !== true) {
270
- resolvedHostname = "{graphIdentifier}." + resolvedHostname;
271
- if (input.graphIdentifier === undefined) {
272
- throw new Error("Empty value provided for input host prefix: graphIdentifier.");
273
- }
274
- resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
275
- if (!__isValidHostname(resolvedHostname)) {
276
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
277
- }
278
- }
279
- b.hn(resolvedHostname);
280
- b.m("GET").h(headers).b(body);
281
- return b.build();
282
- };
283
- export const se_ListExportTasksCommand = async (input, context) => {
284
- const b = rb(input, context);
285
- const headers = {};
286
- b.bp("/exporttasks");
287
- const query = map({
288
- [_gI]: [, input[_gI]],
289
- [_nT]: [, input[_nT]],
290
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
291
- });
292
- let body;
293
- b.m("GET").h(headers).q(query).b(body);
294
- return b.build();
295
- };
296
- export const se_ListGraphsCommand = async (input, context) => {
297
- const b = rb(input, context);
298
- const headers = {};
299
- b.bp("/graphs");
300
- const query = map({
301
- [_nT]: [, input[_nT]],
302
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
303
- });
304
- let body;
305
- b.m("GET").h(headers).q(query).b(body);
306
- return b.build();
307
- };
308
- export const se_ListGraphSnapshotsCommand = async (input, context) => {
309
- const b = rb(input, context);
310
- const headers = {};
311
- b.bp("/snapshots");
312
- const query = map({
313
- [_gI]: [, input[_gI]],
314
- [_nT]: [, input[_nT]],
315
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
316
- });
317
- let body;
318
- b.m("GET").h(headers).q(query).b(body);
319
- return b.build();
320
- };
321
- export const se_ListImportTasksCommand = async (input, context) => {
322
- const b = rb(input, context);
323
- const headers = {};
324
- b.bp("/importtasks");
325
- const query = map({
326
- [_nT]: [, input[_nT]],
327
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
328
- });
329
- let body;
330
- b.m("GET").h(headers).q(query).b(body);
331
- return b.build();
332
- };
333
- export const se_ListPrivateGraphEndpointsCommand = async (input, context) => {
334
- const b = rb(input, context);
335
- const headers = {};
336
- b.bp("/graphs/{graphIdentifier}/endpoints");
337
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
338
- const query = map({
339
- [_nT]: [, input[_nT]],
340
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
341
- });
342
- let body;
343
- b.m("GET").h(headers).q(query).b(body);
344
- return b.build();
345
- };
346
- export const se_ListQueriesCommand = async (input, context) => {
347
- const b = rb(input, context);
348
- const headers = map({}, isSerializableHeaderValue, {
349
- [_g]: input[_gI],
350
- });
351
- b.bp("/queries");
352
- const query = map({
353
- [_mR]: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
354
- [_s]: [, input[_s]],
355
- });
356
- let body;
357
- let { hostname: resolvedHostname } = await context.endpoint();
358
- if (context.disableHostPrefix !== true) {
359
- resolvedHostname = "{graphIdentifier}." + resolvedHostname;
360
- if (input.graphIdentifier === undefined) {
361
- throw new Error("Empty value provided for input host prefix: graphIdentifier.");
362
- }
363
- resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
364
- if (!__isValidHostname(resolvedHostname)) {
365
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
366
- }
367
- }
368
- b.hn(resolvedHostname);
369
- b.m("GET").h(headers).q(query).b(body);
370
- return b.build();
371
- };
372
- export const se_ListTagsForResourceCommand = async (input, context) => {
373
- const b = rb(input, context);
374
- const headers = {};
375
- b.bp("/tags/{resourceArn}");
376
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
377
- let body;
378
- b.m("GET").h(headers).b(body);
379
- return b.build();
380
- };
381
- export const se_ResetGraphCommand = async (input, context) => {
382
- const b = rb(input, context);
383
- const headers = {
384
- "content-type": "application/json",
385
- };
386
- b.bp("/graphs/{graphIdentifier}");
387
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
388
- let body;
389
- body = JSON.stringify(take(input, {
390
- skipSnapshot: [],
391
- }));
392
- b.m("PUT").h(headers).b(body);
393
- return b.build();
394
- };
395
- export const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
396
- const b = rb(input, context);
397
- const headers = {
398
- "content-type": "application/json",
399
- };
400
- b.bp("/snapshots/{snapshotIdentifier}/restore");
401
- b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
402
- let body;
403
- body = JSON.stringify(take(input, {
404
- deletionProtection: [],
405
- graphName: [],
406
- provisionedMemory: [],
407
- publicConnectivity: [],
408
- replicaCount: [],
409
- tags: (_) => _json(_),
410
- }));
411
- b.m("POST").h(headers).b(body);
412
- return b.build();
413
- };
414
- export const se_StartExportTaskCommand = async (input, context) => {
415
- const b = rb(input, context);
416
- const headers = {
417
- "content-type": "application/json",
418
- };
419
- b.bp("/exporttasks");
420
- let body;
421
- body = JSON.stringify(take(input, {
422
- destination: [],
423
- exportFilter: (_) => _json(_),
424
- format: [],
425
- graphIdentifier: [],
426
- kmsKeyIdentifier: [],
427
- parquetType: [],
428
- roleArn: [],
429
- tags: (_) => _json(_),
430
- }));
431
- b.m("POST").h(headers).b(body);
432
- return b.build();
433
- };
434
- export const se_StartGraphCommand = async (input, context) => {
435
- const b = rb(input, context);
436
- const headers = {};
437
- b.bp("/graphs/{graphIdentifier}/start");
438
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
439
- let body;
440
- b.m("POST").h(headers).b(body);
441
- return b.build();
442
- };
443
- export const se_StartImportTaskCommand = async (input, context) => {
444
- const b = rb(input, context);
445
- const headers = {
446
- "content-type": "application/json",
447
- };
448
- b.bp("/graphs/{graphIdentifier}/importtasks");
449
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
450
- let body;
451
- body = JSON.stringify(take(input, {
452
- blankNodeHandling: [],
453
- failOnError: [],
454
- format: [],
455
- importOptions: (_) => _json(_),
456
- parquetType: [],
457
- roleArn: [],
458
- source: [],
459
- }));
460
- b.m("POST").h(headers).b(body);
461
- return b.build();
462
- };
463
- export const se_StopGraphCommand = async (input, context) => {
464
- const b = rb(input, context);
465
- const headers = {};
466
- b.bp("/graphs/{graphIdentifier}/stop");
467
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
468
- let body;
469
- b.m("POST").h(headers).b(body);
470
- return b.build();
471
- };
472
- export const se_TagResourceCommand = async (input, context) => {
473
- const b = rb(input, context);
474
- const headers = {
475
- "content-type": "application/json",
476
- };
477
- b.bp("/tags/{resourceArn}");
478
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
479
- let body;
480
- body = JSON.stringify(take(input, {
481
- tags: (_) => _json(_),
482
- }));
483
- b.m("POST").h(headers).b(body);
484
- return b.build();
485
- };
486
- export const se_UntagResourceCommand = async (input, context) => {
487
- const b = rb(input, context);
488
- const headers = {};
489
- b.bp("/tags/{resourceArn}");
490
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
491
- const query = map({
492
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
493
- });
494
- let body;
495
- b.m("DELETE").h(headers).q(query).b(body);
496
- return b.build();
497
- };
498
- export const se_UpdateGraphCommand = async (input, context) => {
499
- const b = rb(input, context);
500
- const headers = {
501
- "content-type": "application/json",
502
- };
503
- b.bp("/graphs/{graphIdentifier}");
504
- b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
505
- let body;
506
- body = JSON.stringify(take(input, {
507
- deletionProtection: [],
508
- provisionedMemory: [],
509
- publicConnectivity: [],
510
- }));
511
- b.m("PATCH").h(headers).b(body);
512
- return b.build();
513
- };
514
- export const de_CancelExportTaskCommand = async (output, context) => {
515
- if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_CommandError(output, context);
517
- }
518
- const contents = map({
519
- $metadata: deserializeMetadata(output),
520
- });
521
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
522
- const doc = take(data, {
523
- destination: __expectString,
524
- format: __expectString,
525
- graphId: __expectString,
526
- kmsKeyIdentifier: __expectString,
527
- parquetType: __expectString,
528
- roleArn: __expectString,
529
- status: __expectString,
530
- statusReason: __expectString,
531
- taskId: __expectString,
532
- });
533
- Object.assign(contents, doc);
534
- return contents;
535
- };
536
- export const de_CancelImportTaskCommand = async (output, context) => {
537
- if (output.statusCode !== 200 && output.statusCode >= 300) {
538
- return de_CommandError(output, context);
539
- }
540
- const contents = map({
541
- $metadata: deserializeMetadata(output),
542
- });
543
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
544
- const doc = take(data, {
545
- format: __expectString,
546
- graphId: __expectString,
547
- parquetType: __expectString,
548
- roleArn: __expectString,
549
- source: __expectString,
550
- status: __expectString,
551
- taskId: __expectString,
552
- });
553
- Object.assign(contents, doc);
554
- return contents;
555
- };
556
- export const de_CancelQueryCommand = async (output, context) => {
557
- if (output.statusCode !== 200 && output.statusCode >= 300) {
558
- return de_CommandError(output, context);
559
- }
560
- const contents = map({
561
- $metadata: deserializeMetadata(output),
562
- });
563
- await collectBody(output.body, context);
564
- return contents;
565
- };
566
- export const de_CreateGraphCommand = async (output, context) => {
567
- if (output.statusCode !== 201 && output.statusCode >= 300) {
568
- return de_CommandError(output, context);
569
- }
570
- const contents = map({
571
- $metadata: deserializeMetadata(output),
572
- });
573
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
574
- const doc = take(data, {
575
- arn: __expectString,
576
- buildNumber: __expectString,
577
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
578
- deletionProtection: __expectBoolean,
579
- endpoint: __expectString,
580
- id: __expectString,
581
- kmsKeyIdentifier: __expectString,
582
- name: __expectString,
583
- provisionedMemory: __expectInt32,
584
- publicConnectivity: __expectBoolean,
585
- replicaCount: __expectInt32,
586
- sourceSnapshotId: __expectString,
587
- status: __expectString,
588
- statusReason: __expectString,
589
- vectorSearchConfiguration: _json,
590
- });
591
- Object.assign(contents, doc);
592
- return contents;
593
- };
594
- export const de_CreateGraphSnapshotCommand = async (output, context) => {
595
- if (output.statusCode !== 201 && output.statusCode >= 300) {
596
- return de_CommandError(output, context);
597
- }
598
- const contents = map({
599
- $metadata: deserializeMetadata(output),
600
- });
601
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
602
- const doc = take(data, {
603
- arn: __expectString,
604
- id: __expectString,
605
- kmsKeyIdentifier: __expectString,
606
- name: __expectString,
607
- snapshotCreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
608
- sourceGraphId: __expectString,
609
- status: __expectString,
610
- });
611
- Object.assign(contents, doc);
612
- return contents;
613
- };
614
- export const de_CreateGraphUsingImportTaskCommand = async (output, context) => {
615
- if (output.statusCode !== 201 && output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const contents = map({
619
- $metadata: deserializeMetadata(output),
620
- });
621
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
622
- const doc = take(data, {
623
- format: __expectString,
624
- graphId: __expectString,
625
- importOptions: (_) => _json(__expectUnion(_)),
626
- parquetType: __expectString,
627
- roleArn: __expectString,
628
- source: __expectString,
629
- status: __expectString,
630
- taskId: __expectString,
631
- });
632
- Object.assign(contents, doc);
633
- return contents;
634
- };
635
- export const de_CreatePrivateGraphEndpointCommand = async (output, context) => {
636
- if (output.statusCode !== 201 && output.statusCode >= 300) {
637
- return de_CommandError(output, context);
638
- }
639
- const contents = map({
640
- $metadata: deserializeMetadata(output),
641
- });
642
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
643
- const doc = take(data, {
644
- status: __expectString,
645
- subnetIds: _json,
646
- vpcEndpointId: __expectString,
647
- vpcId: __expectString,
648
- });
649
- Object.assign(contents, doc);
650
- return contents;
651
- };
652
- export const de_DeleteGraphCommand = async (output, context) => {
653
- if (output.statusCode !== 200 && output.statusCode >= 300) {
654
- return de_CommandError(output, context);
655
- }
656
- const contents = map({
657
- $metadata: deserializeMetadata(output),
658
- });
659
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
660
- const doc = take(data, {
661
- arn: __expectString,
662
- buildNumber: __expectString,
663
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
664
- deletionProtection: __expectBoolean,
665
- endpoint: __expectString,
666
- id: __expectString,
667
- kmsKeyIdentifier: __expectString,
668
- name: __expectString,
669
- provisionedMemory: __expectInt32,
670
- publicConnectivity: __expectBoolean,
671
- replicaCount: __expectInt32,
672
- sourceSnapshotId: __expectString,
673
- status: __expectString,
674
- statusReason: __expectString,
675
- vectorSearchConfiguration: _json,
676
- });
677
- Object.assign(contents, doc);
678
- return contents;
679
- };
680
- export const de_DeleteGraphSnapshotCommand = async (output, context) => {
681
- if (output.statusCode !== 200 && output.statusCode >= 300) {
682
- return de_CommandError(output, context);
683
- }
684
- const contents = map({
685
- $metadata: deserializeMetadata(output),
686
- });
687
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
688
- const doc = take(data, {
689
- arn: __expectString,
690
- id: __expectString,
691
- kmsKeyIdentifier: __expectString,
692
- name: __expectString,
693
- snapshotCreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
694
- sourceGraphId: __expectString,
695
- status: __expectString,
696
- });
697
- Object.assign(contents, doc);
698
- return contents;
699
- };
700
- export const de_DeletePrivateGraphEndpointCommand = async (output, context) => {
701
- if (output.statusCode !== 200 && output.statusCode >= 300) {
702
- return de_CommandError(output, context);
703
- }
704
- const contents = map({
705
- $metadata: deserializeMetadata(output),
706
- });
707
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
708
- const doc = take(data, {
709
- status: __expectString,
710
- subnetIds: _json,
711
- vpcEndpointId: __expectString,
712
- vpcId: __expectString,
713
- });
714
- Object.assign(contents, doc);
715
- return contents;
716
- };
717
- export const de_ExecuteQueryCommand = async (output, context) => {
718
- if (output.statusCode !== 200 && output.statusCode >= 300) {
719
- return de_CommandError(output, context);
720
- }
721
- const contents = map({
722
- $metadata: deserializeMetadata(output),
723
- });
724
- const data = output.body;
725
- context.sdkStreamMixin(data);
726
- contents.payload = data;
727
- return contents;
728
- };
729
- export const de_GetExportTaskCommand = async (output, context) => {
730
- if (output.statusCode !== 200 && output.statusCode >= 300) {
731
- return de_CommandError(output, context);
732
- }
733
- const contents = map({
734
- $metadata: deserializeMetadata(output),
735
- });
736
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
737
- const doc = take(data, {
738
- destination: __expectString,
739
- exportFilter: _json,
740
- exportTaskDetails: (_) => de_ExportTaskDetails(_, context),
741
- format: __expectString,
742
- graphId: __expectString,
743
- kmsKeyIdentifier: __expectString,
744
- parquetType: __expectString,
745
- roleArn: __expectString,
746
- status: __expectString,
747
- statusReason: __expectString,
748
- taskId: __expectString,
749
- });
750
- Object.assign(contents, doc);
751
- return contents;
752
- };
753
- export const de_GetGraphCommand = async (output, context) => {
754
- if (output.statusCode !== 200 && output.statusCode >= 300) {
755
- return de_CommandError(output, context);
756
- }
757
- const contents = map({
758
- $metadata: deserializeMetadata(output),
759
- });
760
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
761
- const doc = take(data, {
762
- arn: __expectString,
763
- buildNumber: __expectString,
764
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
765
- deletionProtection: __expectBoolean,
766
- endpoint: __expectString,
767
- id: __expectString,
768
- kmsKeyIdentifier: __expectString,
769
- name: __expectString,
770
- provisionedMemory: __expectInt32,
771
- publicConnectivity: __expectBoolean,
772
- replicaCount: __expectInt32,
773
- sourceSnapshotId: __expectString,
774
- status: __expectString,
775
- statusReason: __expectString,
776
- vectorSearchConfiguration: _json,
777
- });
778
- Object.assign(contents, doc);
779
- return contents;
780
- };
781
- export const de_GetGraphSnapshotCommand = async (output, context) => {
782
- if (output.statusCode !== 200 && output.statusCode >= 300) {
783
- return de_CommandError(output, context);
784
- }
785
- const contents = map({
786
- $metadata: deserializeMetadata(output),
787
- });
788
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
789
- const doc = take(data, {
790
- arn: __expectString,
791
- id: __expectString,
792
- kmsKeyIdentifier: __expectString,
793
- name: __expectString,
794
- snapshotCreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
795
- sourceGraphId: __expectString,
796
- status: __expectString,
797
- });
798
- Object.assign(contents, doc);
799
- return contents;
800
- };
801
- export const de_GetGraphSummaryCommand = async (output, context) => {
802
- if (output.statusCode !== 200 && output.statusCode >= 300) {
803
- return de_CommandError(output, context);
804
- }
805
- const contents = map({
806
- $metadata: deserializeMetadata(output),
807
- });
808
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
809
- const doc = take(data, {
810
- graphSummary: _json,
811
- lastStatisticsComputationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
812
- version: __expectString,
813
- });
814
- Object.assign(contents, doc);
815
- return contents;
816
- };
817
- export const de_GetImportTaskCommand = async (output, context) => {
818
- if (output.statusCode !== 200 && output.statusCode >= 300) {
819
- return de_CommandError(output, context);
820
- }
821
- const contents = map({
822
- $metadata: deserializeMetadata(output),
823
- });
824
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
825
- const doc = take(data, {
826
- attemptNumber: __expectInt32,
827
- format: __expectString,
828
- graphId: __expectString,
829
- importOptions: (_) => _json(__expectUnion(_)),
830
- importTaskDetails: (_) => de_ImportTaskDetails(_, context),
831
- parquetType: __expectString,
832
- roleArn: __expectString,
833
- source: __expectString,
834
- status: __expectString,
835
- statusReason: __expectString,
836
- taskId: __expectString,
837
- });
838
- Object.assign(contents, doc);
839
- return contents;
840
- };
841
- export const de_GetPrivateGraphEndpointCommand = async (output, context) => {
842
- if (output.statusCode !== 200 && output.statusCode >= 300) {
843
- return de_CommandError(output, context);
844
- }
845
- const contents = map({
846
- $metadata: deserializeMetadata(output),
847
- });
848
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
849
- const doc = take(data, {
850
- status: __expectString,
851
- subnetIds: _json,
852
- vpcEndpointId: __expectString,
853
- vpcId: __expectString,
854
- });
855
- Object.assign(contents, doc);
856
- return contents;
857
- };
858
- export const de_GetQueryCommand = async (output, context) => {
859
- if (output.statusCode !== 200 && output.statusCode >= 300) {
860
- return de_CommandError(output, context);
861
- }
862
- const contents = map({
863
- $metadata: deserializeMetadata(output),
864
- });
865
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
866
- const doc = take(data, {
867
- elapsed: __expectInt32,
868
- id: __expectString,
869
- queryString: __expectString,
870
- state: __expectString,
871
- waited: __expectInt32,
872
- });
873
- Object.assign(contents, doc);
874
- return contents;
875
- };
876
- export const de_ListExportTasksCommand = async (output, context) => {
877
- if (output.statusCode !== 200 && output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const contents = map({
881
- $metadata: deserializeMetadata(output),
882
- });
883
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
884
- const doc = take(data, {
885
- nextToken: __expectString,
886
- tasks: _json,
887
- });
888
- Object.assign(contents, doc);
889
- return contents;
890
- };
891
- export const de_ListGraphsCommand = async (output, context) => {
892
- if (output.statusCode !== 200 && output.statusCode >= 300) {
893
- return de_CommandError(output, context);
894
- }
895
- const contents = map({
896
- $metadata: deserializeMetadata(output),
897
- });
898
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
899
- const doc = take(data, {
900
- graphs: _json,
901
- nextToken: __expectString,
902
- });
903
- Object.assign(contents, doc);
904
- return contents;
905
- };
906
- export const de_ListGraphSnapshotsCommand = async (output, context) => {
907
- if (output.statusCode !== 200 && output.statusCode >= 300) {
908
- return de_CommandError(output, context);
909
- }
910
- const contents = map({
911
- $metadata: deserializeMetadata(output),
912
- });
913
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
914
- const doc = take(data, {
915
- graphSnapshots: (_) => de_GraphSnapshotSummaryList(_, context),
916
- nextToken: __expectString,
917
- });
918
- Object.assign(contents, doc);
919
- return contents;
920
- };
921
- export const de_ListImportTasksCommand = async (output, context) => {
922
- if (output.statusCode !== 200 && output.statusCode >= 300) {
923
- return de_CommandError(output, context);
924
- }
925
- const contents = map({
926
- $metadata: deserializeMetadata(output),
927
- });
928
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
929
- const doc = take(data, {
930
- nextToken: __expectString,
931
- tasks: _json,
932
- });
933
- Object.assign(contents, doc);
934
- return contents;
935
- };
936
- export const de_ListPrivateGraphEndpointsCommand = async (output, context) => {
937
- if (output.statusCode !== 200 && output.statusCode >= 300) {
938
- return de_CommandError(output, context);
939
- }
940
- const contents = map({
941
- $metadata: deserializeMetadata(output),
942
- });
943
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
944
- const doc = take(data, {
945
- nextToken: __expectString,
946
- privateGraphEndpoints: _json,
947
- });
948
- Object.assign(contents, doc);
949
- return contents;
950
- };
951
- export const de_ListQueriesCommand = async (output, context) => {
952
- if (output.statusCode !== 200 && output.statusCode >= 300) {
953
- return de_CommandError(output, context);
954
- }
955
- const contents = map({
956
- $metadata: deserializeMetadata(output),
957
- });
958
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
959
- const doc = take(data, {
960
- queries: _json,
961
- });
962
- Object.assign(contents, doc);
963
- return contents;
964
- };
965
- export const de_ListTagsForResourceCommand = async (output, context) => {
966
- if (output.statusCode !== 200 && output.statusCode >= 300) {
967
- return de_CommandError(output, context);
968
- }
969
- const contents = map({
970
- $metadata: deserializeMetadata(output),
971
- });
972
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
973
- const doc = take(data, {
974
- tags: _json,
975
- });
976
- Object.assign(contents, doc);
977
- return contents;
978
- };
979
- export const de_ResetGraphCommand = async (output, context) => {
980
- if (output.statusCode !== 200 && output.statusCode >= 300) {
981
- return de_CommandError(output, context);
982
- }
983
- const contents = map({
984
- $metadata: deserializeMetadata(output),
985
- });
986
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
987
- const doc = take(data, {
988
- arn: __expectString,
989
- buildNumber: __expectString,
990
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
991
- deletionProtection: __expectBoolean,
992
- endpoint: __expectString,
993
- id: __expectString,
994
- kmsKeyIdentifier: __expectString,
995
- name: __expectString,
996
- provisionedMemory: __expectInt32,
997
- publicConnectivity: __expectBoolean,
998
- replicaCount: __expectInt32,
999
- sourceSnapshotId: __expectString,
1000
- status: __expectString,
1001
- statusReason: __expectString,
1002
- vectorSearchConfiguration: _json,
1003
- });
1004
- Object.assign(contents, doc);
1005
- return contents;
1006
- };
1007
- export const de_RestoreGraphFromSnapshotCommand = async (output, context) => {
1008
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1009
- return de_CommandError(output, context);
1010
- }
1011
- const contents = map({
1012
- $metadata: deserializeMetadata(output),
1013
- });
1014
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1015
- const doc = take(data, {
1016
- arn: __expectString,
1017
- buildNumber: __expectString,
1018
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1019
- deletionProtection: __expectBoolean,
1020
- endpoint: __expectString,
1021
- id: __expectString,
1022
- kmsKeyIdentifier: __expectString,
1023
- name: __expectString,
1024
- provisionedMemory: __expectInt32,
1025
- publicConnectivity: __expectBoolean,
1026
- replicaCount: __expectInt32,
1027
- sourceSnapshotId: __expectString,
1028
- status: __expectString,
1029
- statusReason: __expectString,
1030
- vectorSearchConfiguration: _json,
1031
- });
1032
- Object.assign(contents, doc);
1033
- return contents;
1034
- };
1035
- export const de_StartExportTaskCommand = async (output, context) => {
1036
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1037
- return de_CommandError(output, context);
1038
- }
1039
- const contents = map({
1040
- $metadata: deserializeMetadata(output),
1041
- });
1042
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1043
- const doc = take(data, {
1044
- destination: __expectString,
1045
- exportFilter: _json,
1046
- format: __expectString,
1047
- graphId: __expectString,
1048
- kmsKeyIdentifier: __expectString,
1049
- parquetType: __expectString,
1050
- roleArn: __expectString,
1051
- status: __expectString,
1052
- statusReason: __expectString,
1053
- taskId: __expectString,
1054
- });
1055
- Object.assign(contents, doc);
1056
- return contents;
1057
- };
1058
- export const de_StartGraphCommand = async (output, context) => {
1059
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1060
- return de_CommandError(output, context);
1061
- }
1062
- const contents = map({
1063
- $metadata: deserializeMetadata(output),
1064
- });
1065
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1066
- const doc = take(data, {
1067
- arn: __expectString,
1068
- buildNumber: __expectString,
1069
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1070
- deletionProtection: __expectBoolean,
1071
- endpoint: __expectString,
1072
- id: __expectString,
1073
- kmsKeyIdentifier: __expectString,
1074
- name: __expectString,
1075
- provisionedMemory: __expectInt32,
1076
- publicConnectivity: __expectBoolean,
1077
- replicaCount: __expectInt32,
1078
- sourceSnapshotId: __expectString,
1079
- status: __expectString,
1080
- statusReason: __expectString,
1081
- vectorSearchConfiguration: _json,
1082
- });
1083
- Object.assign(contents, doc);
1084
- return contents;
1085
- };
1086
- export const de_StartImportTaskCommand = async (output, context) => {
1087
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1088
- return de_CommandError(output, context);
1089
- }
1090
- const contents = map({
1091
- $metadata: deserializeMetadata(output),
1092
- });
1093
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1094
- const doc = take(data, {
1095
- format: __expectString,
1096
- graphId: __expectString,
1097
- importOptions: (_) => _json(__expectUnion(_)),
1098
- parquetType: __expectString,
1099
- roleArn: __expectString,
1100
- source: __expectString,
1101
- status: __expectString,
1102
- taskId: __expectString,
1103
- });
1104
- Object.assign(contents, doc);
1105
- return contents;
1106
- };
1107
- export const de_StopGraphCommand = async (output, context) => {
1108
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1109
- return de_CommandError(output, context);
1110
- }
1111
- const contents = map({
1112
- $metadata: deserializeMetadata(output),
1113
- });
1114
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1115
- const doc = take(data, {
1116
- arn: __expectString,
1117
- buildNumber: __expectString,
1118
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1119
- deletionProtection: __expectBoolean,
1120
- endpoint: __expectString,
1121
- id: __expectString,
1122
- kmsKeyIdentifier: __expectString,
1123
- name: __expectString,
1124
- provisionedMemory: __expectInt32,
1125
- publicConnectivity: __expectBoolean,
1126
- replicaCount: __expectInt32,
1127
- sourceSnapshotId: __expectString,
1128
- status: __expectString,
1129
- statusReason: __expectString,
1130
- vectorSearchConfiguration: _json,
1131
- });
1132
- Object.assign(contents, doc);
1133
- return contents;
1134
- };
1135
- export const de_TagResourceCommand = async (output, context) => {
1136
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
- return de_CommandError(output, context);
1138
- }
1139
- const contents = map({
1140
- $metadata: deserializeMetadata(output),
1141
- });
1142
- await collectBody(output.body, context);
1143
- return contents;
1144
- };
1145
- export const de_UntagResourceCommand = async (output, context) => {
1146
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
- return de_CommandError(output, context);
1148
- }
1149
- const contents = map({
1150
- $metadata: deserializeMetadata(output),
1151
- });
1152
- await collectBody(output.body, context);
1153
- return contents;
1154
- };
1155
- export const de_UpdateGraphCommand = async (output, context) => {
1156
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1157
- return de_CommandError(output, context);
1158
- }
1159
- const contents = map({
1160
- $metadata: deserializeMetadata(output),
1161
- });
1162
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1163
- const doc = take(data, {
1164
- arn: __expectString,
1165
- buildNumber: __expectString,
1166
- createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1167
- deletionProtection: __expectBoolean,
1168
- endpoint: __expectString,
1169
- id: __expectString,
1170
- kmsKeyIdentifier: __expectString,
1171
- name: __expectString,
1172
- provisionedMemory: __expectInt32,
1173
- publicConnectivity: __expectBoolean,
1174
- replicaCount: __expectInt32,
1175
- sourceSnapshotId: __expectString,
1176
- status: __expectString,
1177
- statusReason: __expectString,
1178
- vectorSearchConfiguration: _json,
1179
- });
1180
- Object.assign(contents, doc);
1181
- return contents;
1182
- };
1183
- const de_CommandError = async (output, context) => {
1184
- const parsedOutput = {
1185
- ...output,
1186
- body: await parseErrorBody(output.body, context),
1187
- };
1188
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
- switch (errorCode) {
1190
- case "ConflictException":
1191
- case "com.amazonaws.neptunegraph#ConflictException":
1192
- throw await de_ConflictExceptionRes(parsedOutput, context);
1193
- case "InternalServerException":
1194
- case "com.amazonaws.neptunegraph#InternalServerException":
1195
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1196
- case "ResourceNotFoundException":
1197
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1198
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1199
- case "ThrottlingException":
1200
- case "com.amazonaws.neptunegraph#ThrottlingException":
1201
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1202
- case "ValidationException":
1203
- case "com.amazonaws.neptunegraph#ValidationException":
1204
- throw await de_ValidationExceptionRes(parsedOutput, context);
1205
- case "AccessDeniedException":
1206
- case "com.amazonaws.neptunegraph#AccessDeniedException":
1207
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1208
- case "ServiceQuotaExceededException":
1209
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1210
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1211
- case "UnprocessableException":
1212
- case "com.amazonaws.neptunegraph#UnprocessableException":
1213
- throw await de_UnprocessableExceptionRes(parsedOutput, context);
1214
- default:
1215
- const parsedBody = parsedOutput.body;
1216
- return throwDefaultError({
1217
- output,
1218
- parsedBody,
1219
- errorCode,
1220
- });
1221
- }
1222
- };
1223
- const throwDefaultError = withBaseException(__BaseException);
1224
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1225
- const contents = map({});
1226
- const data = parsedOutput.body;
1227
- const doc = take(data, {
1228
- message: __expectString,
1229
- });
1230
- Object.assign(contents, doc);
1231
- const exception = new AccessDeniedException({
1232
- $metadata: deserializeMetadata(parsedOutput),
1233
- ...contents,
1234
- });
1235
- return __decorateServiceException(exception, parsedOutput.body);
1236
- };
1237
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1238
- const contents = map({});
1239
- const data = parsedOutput.body;
1240
- const doc = take(data, {
1241
- message: __expectString,
1242
- reason: __expectString,
1243
- });
1244
- Object.assign(contents, doc);
1245
- const exception = new ConflictException({
1246
- $metadata: deserializeMetadata(parsedOutput),
1247
- ...contents,
1248
- });
1249
- return __decorateServiceException(exception, parsedOutput.body);
1250
- };
1251
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1252
- const contents = map({});
1253
- const data = parsedOutput.body;
1254
- const doc = take(data, {
1255
- message: __expectString,
1256
- });
1257
- Object.assign(contents, doc);
1258
- const exception = new InternalServerException({
1259
- $metadata: deserializeMetadata(parsedOutput),
1260
- ...contents,
1261
- });
1262
- return __decorateServiceException(exception, parsedOutput.body);
1263
- };
1264
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1265
- const contents = map({});
1266
- const data = parsedOutput.body;
1267
- const doc = take(data, {
1268
- message: __expectString,
1269
- });
1270
- Object.assign(contents, doc);
1271
- const exception = new ResourceNotFoundException({
1272
- $metadata: deserializeMetadata(parsedOutput),
1273
- ...contents,
1274
- });
1275
- return __decorateServiceException(exception, parsedOutput.body);
1276
- };
1277
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1278
- const contents = map({});
1279
- const data = parsedOutput.body;
1280
- const doc = take(data, {
1281
- message: __expectString,
1282
- quotaCode: __expectString,
1283
- resourceId: __expectString,
1284
- resourceType: __expectString,
1285
- serviceCode: __expectString,
1286
- });
1287
- Object.assign(contents, doc);
1288
- const exception = new ServiceQuotaExceededException({
1289
- $metadata: deserializeMetadata(parsedOutput),
1290
- ...contents,
1291
- });
1292
- return __decorateServiceException(exception, parsedOutput.body);
1293
- };
1294
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1295
- const contents = map({});
1296
- const data = parsedOutput.body;
1297
- const doc = take(data, {
1298
- message: __expectString,
1299
- });
1300
- Object.assign(contents, doc);
1301
- const exception = new ThrottlingException({
1302
- $metadata: deserializeMetadata(parsedOutput),
1303
- ...contents,
1304
- });
1305
- return __decorateServiceException(exception, parsedOutput.body);
1306
- };
1307
- const de_UnprocessableExceptionRes = async (parsedOutput, context) => {
1308
- const contents = map({});
1309
- const data = parsedOutput.body;
1310
- const doc = take(data, {
1311
- message: __expectString,
1312
- reason: __expectString,
1313
- });
1314
- Object.assign(contents, doc);
1315
- const exception = new UnprocessableException({
1316
- $metadata: deserializeMetadata(parsedOutput),
1317
- ...contents,
1318
- });
1319
- return __decorateServiceException(exception, parsedOutput.body);
1320
- };
1321
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1322
- const contents = map({});
1323
- const data = parsedOutput.body;
1324
- const doc = take(data, {
1325
- message: __expectString,
1326
- reason: __expectString,
1327
- });
1328
- Object.assign(contents, doc);
1329
- const exception = new ValidationException({
1330
- $metadata: deserializeMetadata(parsedOutput),
1331
- ...contents,
1332
- });
1333
- return __decorateServiceException(exception, parsedOutput.body);
1334
- };
1335
- const se_DocumentValuedMap = (input, context) => {
1336
- return Object.entries(input).reduce((acc, [key, value]) => {
1337
- if (value === null) {
1338
- return acc;
1339
- }
1340
- acc[key] = se_Document(value, context);
1341
- return acc;
1342
- }, {});
1343
- };
1344
- const se_Document = (input, context) => {
1345
- return input;
1346
- };
1347
- const de_ExportTaskDetails = (output, context) => {
1348
- return take(output, {
1349
- numEdgesWritten: __expectLong,
1350
- numVerticesWritten: __expectLong,
1351
- progressPercentage: __expectInt32,
1352
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1353
- timeElapsedSeconds: __expectLong,
1354
- });
1355
- };
1356
- const de_GraphSnapshotSummary = (output, context) => {
1357
- return take(output, {
1358
- arn: __expectString,
1359
- id: __expectString,
1360
- kmsKeyIdentifier: __expectString,
1361
- name: __expectString,
1362
- snapshotCreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1363
- sourceGraphId: __expectString,
1364
- status: __expectString,
1365
- });
1366
- };
1367
- const de_GraphSnapshotSummaryList = (output, context) => {
1368
- const retVal = (output || [])
1369
- .filter((e) => e != null)
1370
- .map((entry) => {
1371
- return de_GraphSnapshotSummary(entry, context);
1372
- });
1373
- return retVal;
1374
- };
1375
- const de_ImportTaskDetails = (output, context) => {
1376
- return take(output, {
1377
- dictionaryEntryCount: __expectLong,
1378
- errorCount: __expectInt32,
1379
- errorDetails: __expectString,
1380
- progressPercentage: __expectInt32,
1381
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1382
- statementCount: __expectLong,
1383
- status: __expectString,
1384
- timeElapsedSeconds: __expectLong,
1385
- });
1386
- };
1387
- const deserializeMetadata = (output) => ({
1388
- httpStatusCode: output.statusCode,
1389
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1390
- extendedRequestId: output.headers["x-amz-id-2"],
1391
- cfId: output.headers["x-amz-cf-id"],
1392
- });
1393
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1394
- const _g = "graphidentifier";
1395
- const _gI = "graphIdentifier";
1396
- const _m = "mode";
1397
- const _mR = "maxResults";
1398
- const _nT = "nextToken";
1399
- const _s = "state";
1400
- const _sS = "skipSnapshot";
1401
- const _tK = "tagKeys";