@aws-sdk/client-neptune-graph 3.693.0 → 3.699.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/README.md +32 -0
- package/dist-cjs/index.js +399 -26
- package/dist-es/NeptuneGraph.js +8 -0
- package/dist-es/commands/CancelExportTaskCommand.js +25 -0
- package/dist-es/commands/GetExportTaskCommand.js +25 -0
- package/dist-es/commands/ListExportTasksCommand.js +25 -0
- package/dist-es/commands/StartExportTaskCommand.js +25 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/pagination/ListExportTasksPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +149 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForExportTaskCancelled.js +40 -0
- package/dist-es/waiters/waitForExportTaskSuccessful.js +58 -0
- package/dist-types/NeptuneGraph.d.ts +29 -0
- package/dist-types/NeptuneGraphClient.d.ts +6 -2
- package/dist-types/commands/CancelExportTaskCommand.d.ts +94 -0
- package/dist-types/commands/CancelImportTaskCommand.d.ts +3 -2
- package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +5 -3
- package/dist-types/commands/GetExportTaskCommand.d.ts +122 -0
- package/dist-types/commands/GetImportTaskCommand.d.ts +3 -2
- package/dist-types/commands/ListExportTasksCommand.d.ts +97 -0
- package/dist-types/commands/ListImportTasksCommand.d.ts +3 -2
- package/dist-types/commands/StartExportTaskCommand.d.ts +150 -0
- package/dist-types/commands/StartImportTaskCommand.d.ts +5 -3
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +493 -1
- package/dist-types/pagination/ListExportTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/NeptuneGraph.d.ts +69 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CancelExportTaskCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetExportTaskCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListExportTasksCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartExportTaskCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +125 -0
- package/dist-types/ts3.4/pagination/ListExportTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForExportTaskCancelled.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForExportTaskSuccessful.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForExportTaskCancelled.d.ts +14 -0
- package/dist-types/waiters/waitForExportTaskSuccessful.d.ts +14 -0
- package/package.json +37 -37
package/dist-es/NeptuneGraph.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { CancelExportTaskCommand, } from "./commands/CancelExportTaskCommand";
|
|
2
3
|
import { CancelImportTaskCommand, } from "./commands/CancelImportTaskCommand";
|
|
3
4
|
import { CancelQueryCommand } from "./commands/CancelQueryCommand";
|
|
4
5
|
import { CreateGraphCommand } from "./commands/CreateGraphCommand";
|
|
@@ -9,12 +10,14 @@ import { DeleteGraphCommand } from "./commands/DeleteGraphCommand";
|
|
|
9
10
|
import { DeleteGraphSnapshotCommand, } from "./commands/DeleteGraphSnapshotCommand";
|
|
10
11
|
import { DeletePrivateGraphEndpointCommand, } from "./commands/DeletePrivateGraphEndpointCommand";
|
|
11
12
|
import { ExecuteQueryCommand, } from "./commands/ExecuteQueryCommand";
|
|
13
|
+
import { GetExportTaskCommand, } from "./commands/GetExportTaskCommand";
|
|
12
14
|
import { GetGraphCommand } from "./commands/GetGraphCommand";
|
|
13
15
|
import { GetGraphSnapshotCommand, } from "./commands/GetGraphSnapshotCommand";
|
|
14
16
|
import { GetGraphSummaryCommand, } from "./commands/GetGraphSummaryCommand";
|
|
15
17
|
import { GetImportTaskCommand, } from "./commands/GetImportTaskCommand";
|
|
16
18
|
import { GetPrivateGraphEndpointCommand, } from "./commands/GetPrivateGraphEndpointCommand";
|
|
17
19
|
import { GetQueryCommand } from "./commands/GetQueryCommand";
|
|
20
|
+
import { ListExportTasksCommand, } from "./commands/ListExportTasksCommand";
|
|
18
21
|
import { ListGraphsCommand } from "./commands/ListGraphsCommand";
|
|
19
22
|
import { ListGraphSnapshotsCommand, } from "./commands/ListGraphSnapshotsCommand";
|
|
20
23
|
import { ListImportTasksCommand, } from "./commands/ListImportTasksCommand";
|
|
@@ -23,12 +26,14 @@ import { ListQueriesCommand } from "./commands/ListQueriesCommand";
|
|
|
23
26
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
24
27
|
import { ResetGraphCommand } from "./commands/ResetGraphCommand";
|
|
25
28
|
import { RestoreGraphFromSnapshotCommand, } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
29
|
+
import { StartExportTaskCommand, } from "./commands/StartExportTaskCommand";
|
|
26
30
|
import { StartImportTaskCommand, } from "./commands/StartImportTaskCommand";
|
|
27
31
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
28
32
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
29
33
|
import { UpdateGraphCommand } from "./commands/UpdateGraphCommand";
|
|
30
34
|
import { NeptuneGraphClient } from "./NeptuneGraphClient";
|
|
31
35
|
const commands = {
|
|
36
|
+
CancelExportTaskCommand,
|
|
32
37
|
CancelImportTaskCommand,
|
|
33
38
|
CancelQueryCommand,
|
|
34
39
|
CreateGraphCommand,
|
|
@@ -39,12 +44,14 @@ const commands = {
|
|
|
39
44
|
DeleteGraphSnapshotCommand,
|
|
40
45
|
DeletePrivateGraphEndpointCommand,
|
|
41
46
|
ExecuteQueryCommand,
|
|
47
|
+
GetExportTaskCommand,
|
|
42
48
|
GetGraphCommand,
|
|
43
49
|
GetGraphSnapshotCommand,
|
|
44
50
|
GetGraphSummaryCommand,
|
|
45
51
|
GetImportTaskCommand,
|
|
46
52
|
GetPrivateGraphEndpointCommand,
|
|
47
53
|
GetQueryCommand,
|
|
54
|
+
ListExportTasksCommand,
|
|
48
55
|
ListGraphsCommand,
|
|
49
56
|
ListGraphSnapshotsCommand,
|
|
50
57
|
ListImportTasksCommand,
|
|
@@ -53,6 +60,7 @@ const commands = {
|
|
|
53
60
|
ListTagsForResourceCommand,
|
|
54
61
|
ResetGraphCommand,
|
|
55
62
|
RestoreGraphFromSnapshotCommand,
|
|
63
|
+
StartExportTaskCommand,
|
|
56
64
|
StartImportTaskCommand,
|
|
57
65
|
TagResourceCommand,
|
|
58
66
|
UntagResourceCommand,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CancelExportTaskCommand, se_CancelExportTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CancelExportTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonNeptuneGraph", "CancelExportTask", {})
|
|
20
|
+
.n("NeptuneGraphClient", "CancelExportTaskCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_CancelExportTaskCommand)
|
|
23
|
+
.de(de_CancelExportTaskCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetExportTaskCommand, se_GetExportTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetExportTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonNeptuneGraph", "GetExportTask", {})
|
|
20
|
+
.n("NeptuneGraphClient", "GetExportTaskCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_GetExportTaskCommand)
|
|
23
|
+
.de(de_GetExportTaskCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListExportTasksCommand, se_ListExportTasksCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListExportTasksCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonNeptuneGraph", "ListExportTasks", {})
|
|
20
|
+
.n("NeptuneGraphClient", "ListExportTasksCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_ListExportTasksCommand)
|
|
23
|
+
.de(de_ListExportTasksCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StartExportTaskCommand, se_StartExportTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartExportTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonNeptuneGraph", "StartExportTask", {})
|
|
20
|
+
.n("NeptuneGraphClient", "StartExportTaskCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_StartExportTaskCommand)
|
|
23
|
+
.de(de_StartExportTaskCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./CancelExportTaskCommand";
|
|
1
2
|
export * from "./CancelImportTaskCommand";
|
|
2
3
|
export * from "./CancelQueryCommand";
|
|
3
4
|
export * from "./CreateGraphCommand";
|
|
@@ -8,12 +9,14 @@ export * from "./DeleteGraphCommand";
|
|
|
8
9
|
export * from "./DeleteGraphSnapshotCommand";
|
|
9
10
|
export * from "./DeletePrivateGraphEndpointCommand";
|
|
10
11
|
export * from "./ExecuteQueryCommand";
|
|
12
|
+
export * from "./GetExportTaskCommand";
|
|
11
13
|
export * from "./GetGraphCommand";
|
|
12
14
|
export * from "./GetGraphSnapshotCommand";
|
|
13
15
|
export * from "./GetGraphSummaryCommand";
|
|
14
16
|
export * from "./GetImportTaskCommand";
|
|
15
17
|
export * from "./GetPrivateGraphEndpointCommand";
|
|
16
18
|
export * from "./GetQueryCommand";
|
|
19
|
+
export * from "./ListExportTasksCommand";
|
|
17
20
|
export * from "./ListGraphSnapshotsCommand";
|
|
18
21
|
export * from "./ListGraphsCommand";
|
|
19
22
|
export * from "./ListImportTasksCommand";
|
|
@@ -22,6 +25,7 @@ export * from "./ListQueriesCommand";
|
|
|
22
25
|
export * from "./ListTagsForResourceCommand";
|
|
23
26
|
export * from "./ResetGraphCommand";
|
|
24
27
|
export * from "./RestoreGraphFromSnapshotCommand";
|
|
28
|
+
export * from "./StartExportTaskCommand";
|
|
25
29
|
export * from "./StartImportTaskCommand";
|
|
26
30
|
export * from "./TagResourceCommand";
|
|
27
31
|
export * from "./UntagResourceCommand";
|
|
@@ -174,15 +174,33 @@ export const SnapshotStatus = {
|
|
|
174
174
|
DELETING: "DELETING",
|
|
175
175
|
FAILED: "FAILED",
|
|
176
176
|
};
|
|
177
|
+
export const ExportFormat = {
|
|
178
|
+
CSV: "CSV",
|
|
179
|
+
PARQUET: "PARQUET",
|
|
180
|
+
};
|
|
181
|
+
export const ParquetType = {
|
|
182
|
+
COLUMNAR: "COLUMNAR",
|
|
183
|
+
};
|
|
184
|
+
export const ExportTaskStatus = {
|
|
185
|
+
CANCELLED: "CANCELLED",
|
|
186
|
+
CANCELLING: "CANCELLING",
|
|
187
|
+
DELETED: "DELETED",
|
|
188
|
+
EXPORTING: "EXPORTING",
|
|
189
|
+
FAILED: "FAILED",
|
|
190
|
+
INITIALIZING: "INITIALIZING",
|
|
191
|
+
SUCCEEDED: "SUCCEEDED",
|
|
192
|
+
};
|
|
177
193
|
export const Format = {
|
|
178
194
|
CSV: "CSV",
|
|
179
195
|
NTRIPLES: "NTRIPLES",
|
|
180
196
|
OPEN_CYPHER: "OPEN_CYPHER",
|
|
197
|
+
PARQUET: "PARQUET",
|
|
181
198
|
};
|
|
182
199
|
export const ImportTaskStatus = {
|
|
183
200
|
ANALYZING_DATA: "ANALYZING_DATA",
|
|
184
201
|
CANCELLED: "CANCELLED",
|
|
185
202
|
CANCELLING: "CANCELLING",
|
|
203
|
+
DELETED: "DELETED",
|
|
186
204
|
EXPORTING: "EXPORTING",
|
|
187
205
|
FAILED: "FAILED",
|
|
188
206
|
IMPORTING: "IMPORTING",
|
|
@@ -202,6 +220,10 @@ export var ImportOptions;
|
|
|
202
220
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
203
221
|
};
|
|
204
222
|
})(ImportOptions || (ImportOptions = {}));
|
|
223
|
+
export const MultiValueHandlingType = {
|
|
224
|
+
PICK_FIRST: "PICK_FIRST",
|
|
225
|
+
TO_LIST: "TO_LIST",
|
|
226
|
+
};
|
|
205
227
|
export const ExecuteQueryOutputFilterSensitiveLog = (obj) => ({
|
|
206
228
|
...obj,
|
|
207
229
|
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListExportTasksCommand, } from "../commands/ListExportTasksCommand";
|
|
3
|
+
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
4
|
+
export const paginateListExportTasks = createPaginator(NeptuneGraphClient, ListExportTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,6 +4,15 @@ import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
|
4
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
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnprocessableException, ValidationException, } from "../models/models_0";
|
|
6
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
|
+
};
|
|
7
16
|
export const se_CancelImportTaskCommand = async (input, context) => {
|
|
8
17
|
const b = rb(input, context);
|
|
9
18
|
const headers = {};
|
|
@@ -88,6 +97,7 @@ export const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
|
|
|
88
97
|
kmsKeyIdentifier: [],
|
|
89
98
|
maxProvisionedMemory: [],
|
|
90
99
|
minProvisionedMemory: [],
|
|
100
|
+
parquetType: [],
|
|
91
101
|
publicConnectivity: [],
|
|
92
102
|
replicaCount: [],
|
|
93
103
|
roleArn: [],
|
|
@@ -176,6 +186,15 @@ export const se_ExecuteQueryCommand = async (input, context) => {
|
|
|
176
186
|
b.m("POST").h(headers).b(body);
|
|
177
187
|
return b.build();
|
|
178
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
|
+
};
|
|
179
198
|
export const se_GetGraphCommand = async (input, context) => {
|
|
180
199
|
const b = rb(input, context);
|
|
181
200
|
const headers = {};
|
|
@@ -261,6 +280,18 @@ export const se_GetQueryCommand = async (input, context) => {
|
|
|
261
280
|
b.m("GET").h(headers).b(body);
|
|
262
281
|
return b.build();
|
|
263
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
|
+
[_nT]: [, input[_nT]],
|
|
289
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
290
|
+
});
|
|
291
|
+
let body;
|
|
292
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
293
|
+
return b.build();
|
|
294
|
+
};
|
|
264
295
|
export const se_ListGraphsCommand = async (input, context) => {
|
|
265
296
|
const b = rb(input, context);
|
|
266
297
|
const headers = {};
|
|
@@ -379,6 +410,26 @@ export const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
|
|
|
379
410
|
b.m("POST").h(headers).b(body);
|
|
380
411
|
return b.build();
|
|
381
412
|
};
|
|
413
|
+
export const se_StartExportTaskCommand = async (input, context) => {
|
|
414
|
+
const b = rb(input, context);
|
|
415
|
+
const headers = {
|
|
416
|
+
"content-type": "application/json",
|
|
417
|
+
};
|
|
418
|
+
b.bp("/exporttasks");
|
|
419
|
+
let body;
|
|
420
|
+
body = JSON.stringify(take(input, {
|
|
421
|
+
destination: [],
|
|
422
|
+
exportFilter: (_) => _json(_),
|
|
423
|
+
format: [],
|
|
424
|
+
graphIdentifier: [],
|
|
425
|
+
kmsKeyIdentifier: [],
|
|
426
|
+
parquetType: [],
|
|
427
|
+
roleArn: [],
|
|
428
|
+
tags: (_) => _json(_),
|
|
429
|
+
}));
|
|
430
|
+
b.m("POST").h(headers).b(body);
|
|
431
|
+
return b.build();
|
|
432
|
+
};
|
|
382
433
|
export const se_StartImportTaskCommand = async (input, context) => {
|
|
383
434
|
const b = rb(input, context);
|
|
384
435
|
const headers = {
|
|
@@ -392,6 +443,7 @@ export const se_StartImportTaskCommand = async (input, context) => {
|
|
|
392
443
|
failOnError: [],
|
|
393
444
|
format: [],
|
|
394
445
|
importOptions: (_) => _json(_),
|
|
446
|
+
parquetType: [],
|
|
395
447
|
roleArn: [],
|
|
396
448
|
source: [],
|
|
397
449
|
}));
|
|
@@ -440,6 +492,28 @@ export const se_UpdateGraphCommand = async (input, context) => {
|
|
|
440
492
|
b.m("PATCH").h(headers).b(body);
|
|
441
493
|
return b.build();
|
|
442
494
|
};
|
|
495
|
+
export const de_CancelExportTaskCommand = async (output, context) => {
|
|
496
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
497
|
+
return de_CommandError(output, context);
|
|
498
|
+
}
|
|
499
|
+
const contents = map({
|
|
500
|
+
$metadata: deserializeMetadata(output),
|
|
501
|
+
});
|
|
502
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
503
|
+
const doc = take(data, {
|
|
504
|
+
destination: __expectString,
|
|
505
|
+
format: __expectString,
|
|
506
|
+
graphId: __expectString,
|
|
507
|
+
kmsKeyIdentifier: __expectString,
|
|
508
|
+
parquetType: __expectString,
|
|
509
|
+
roleArn: __expectString,
|
|
510
|
+
status: __expectString,
|
|
511
|
+
statusReason: __expectString,
|
|
512
|
+
taskId: __expectString,
|
|
513
|
+
});
|
|
514
|
+
Object.assign(contents, doc);
|
|
515
|
+
return contents;
|
|
516
|
+
};
|
|
443
517
|
export const de_CancelImportTaskCommand = async (output, context) => {
|
|
444
518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
519
|
return de_CommandError(output, context);
|
|
@@ -451,6 +525,7 @@ export const de_CancelImportTaskCommand = async (output, context) => {
|
|
|
451
525
|
const doc = take(data, {
|
|
452
526
|
format: __expectString,
|
|
453
527
|
graphId: __expectString,
|
|
528
|
+
parquetType: __expectString,
|
|
454
529
|
roleArn: __expectString,
|
|
455
530
|
source: __expectString,
|
|
456
531
|
status: __expectString,
|
|
@@ -529,6 +604,7 @@ export const de_CreateGraphUsingImportTaskCommand = async (output, context) => {
|
|
|
529
604
|
format: __expectString,
|
|
530
605
|
graphId: __expectString,
|
|
531
606
|
importOptions: (_) => _json(__expectUnion(_)),
|
|
607
|
+
parquetType: __expectString,
|
|
532
608
|
roleArn: __expectString,
|
|
533
609
|
source: __expectString,
|
|
534
610
|
status: __expectString,
|
|
@@ -631,6 +707,30 @@ export const de_ExecuteQueryCommand = async (output, context) => {
|
|
|
631
707
|
contents.payload = data;
|
|
632
708
|
return contents;
|
|
633
709
|
};
|
|
710
|
+
export const de_GetExportTaskCommand = async (output, context) => {
|
|
711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
+
return de_CommandError(output, context);
|
|
713
|
+
}
|
|
714
|
+
const contents = map({
|
|
715
|
+
$metadata: deserializeMetadata(output),
|
|
716
|
+
});
|
|
717
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
718
|
+
const doc = take(data, {
|
|
719
|
+
destination: __expectString,
|
|
720
|
+
exportFilter: _json,
|
|
721
|
+
exportTaskDetails: (_) => de_ExportTaskDetails(_, context),
|
|
722
|
+
format: __expectString,
|
|
723
|
+
graphId: __expectString,
|
|
724
|
+
kmsKeyIdentifier: __expectString,
|
|
725
|
+
parquetType: __expectString,
|
|
726
|
+
roleArn: __expectString,
|
|
727
|
+
status: __expectString,
|
|
728
|
+
statusReason: __expectString,
|
|
729
|
+
taskId: __expectString,
|
|
730
|
+
});
|
|
731
|
+
Object.assign(contents, doc);
|
|
732
|
+
return contents;
|
|
733
|
+
};
|
|
634
734
|
export const de_GetGraphCommand = async (output, context) => {
|
|
635
735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
736
|
return de_CommandError(output, context);
|
|
@@ -709,6 +809,7 @@ export const de_GetImportTaskCommand = async (output, context) => {
|
|
|
709
809
|
graphId: __expectString,
|
|
710
810
|
importOptions: (_) => _json(__expectUnion(_)),
|
|
711
811
|
importTaskDetails: (_) => de_ImportTaskDetails(_, context),
|
|
812
|
+
parquetType: __expectString,
|
|
712
813
|
roleArn: __expectString,
|
|
713
814
|
source: __expectString,
|
|
714
815
|
status: __expectString,
|
|
@@ -753,6 +854,21 @@ export const de_GetQueryCommand = async (output, context) => {
|
|
|
753
854
|
Object.assign(contents, doc);
|
|
754
855
|
return contents;
|
|
755
856
|
};
|
|
857
|
+
export const de_ListExportTasksCommand = async (output, context) => {
|
|
858
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
+
return de_CommandError(output, context);
|
|
860
|
+
}
|
|
861
|
+
const contents = map({
|
|
862
|
+
$metadata: deserializeMetadata(output),
|
|
863
|
+
});
|
|
864
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
865
|
+
const doc = take(data, {
|
|
866
|
+
nextToken: __expectString,
|
|
867
|
+
tasks: _json,
|
|
868
|
+
});
|
|
869
|
+
Object.assign(contents, doc);
|
|
870
|
+
return contents;
|
|
871
|
+
};
|
|
756
872
|
export const de_ListGraphsCommand = async (output, context) => {
|
|
757
873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
874
|
return de_CommandError(output, context);
|
|
@@ -897,6 +1013,29 @@ export const de_RestoreGraphFromSnapshotCommand = async (output, context) => {
|
|
|
897
1013
|
Object.assign(contents, doc);
|
|
898
1014
|
return contents;
|
|
899
1015
|
};
|
|
1016
|
+
export const de_StartExportTaskCommand = async (output, context) => {
|
|
1017
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1018
|
+
return de_CommandError(output, context);
|
|
1019
|
+
}
|
|
1020
|
+
const contents = map({
|
|
1021
|
+
$metadata: deserializeMetadata(output),
|
|
1022
|
+
});
|
|
1023
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1024
|
+
const doc = take(data, {
|
|
1025
|
+
destination: __expectString,
|
|
1026
|
+
exportFilter: _json,
|
|
1027
|
+
format: __expectString,
|
|
1028
|
+
graphId: __expectString,
|
|
1029
|
+
kmsKeyIdentifier: __expectString,
|
|
1030
|
+
parquetType: __expectString,
|
|
1031
|
+
roleArn: __expectString,
|
|
1032
|
+
status: __expectString,
|
|
1033
|
+
statusReason: __expectString,
|
|
1034
|
+
taskId: __expectString,
|
|
1035
|
+
});
|
|
1036
|
+
Object.assign(contents, doc);
|
|
1037
|
+
return contents;
|
|
1038
|
+
};
|
|
900
1039
|
export const de_StartImportTaskCommand = async (output, context) => {
|
|
901
1040
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
902
1041
|
return de_CommandError(output, context);
|
|
@@ -909,6 +1048,7 @@ export const de_StartImportTaskCommand = async (output, context) => {
|
|
|
909
1048
|
format: __expectString,
|
|
910
1049
|
graphId: __expectString,
|
|
911
1050
|
importOptions: (_) => _json(__expectUnion(_)),
|
|
1051
|
+
parquetType: __expectString,
|
|
912
1052
|
roleArn: __expectString,
|
|
913
1053
|
source: __expectString,
|
|
914
1054
|
status: __expectString,
|
|
@@ -1129,6 +1269,15 @@ const se_DocumentValuedMap = (input, context) => {
|
|
|
1129
1269
|
const se_Document = (input, context) => {
|
|
1130
1270
|
return input;
|
|
1131
1271
|
};
|
|
1272
|
+
const de_ExportTaskDetails = (output, context) => {
|
|
1273
|
+
return take(output, {
|
|
1274
|
+
numEdgesWritten: __expectLong,
|
|
1275
|
+
numVerticesWritten: __expectLong,
|
|
1276
|
+
progressPercentage: __expectInt32,
|
|
1277
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1278
|
+
timeElapsedSeconds: __expectLong,
|
|
1279
|
+
});
|
|
1280
|
+
};
|
|
1132
1281
|
const de_GraphSnapshotSummary = (output, context) => {
|
|
1133
1282
|
return take(output, {
|
|
1134
1283
|
arn: __expectString,
|
package/dist-es/waiters/index.js
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetExportTaskCommand } from "../commands/GetExportTaskCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetExportTaskCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status != "CANCELLING" && result.status != "CANCELLED";
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() == true) {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CANCELLED") {
|
|
22
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForExportTaskCancelled = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilExportTaskCancelled = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetExportTaskCommand } from "../commands/GetExportTaskCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetExportTaskCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "CANCELLING") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CANCELLED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.status;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.status;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "SUCCEEDED") {
|
|
40
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
}
|
|
45
|
+
catch (exception) {
|
|
46
|
+
reason = exception;
|
|
47
|
+
}
|
|
48
|
+
return { state: WaiterState.RETRY, reason };
|
|
49
|
+
};
|
|
50
|
+
export const waitForExportTaskSuccessful = async (params, input) => {
|
|
51
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
52
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
53
|
+
};
|
|
54
|
+
export const waitUntilExportTaskSuccessful = async (params, input) => {
|
|
55
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
56
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
+
return checkExceptions(result);
|
|
58
|
+
};
|