@aws-sdk/client-neptune-graph 3.476.0 → 3.478.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/pagination/ListGraphSnapshotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGraphsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportTasksPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrivateGraphEndpointsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +124 -281
- package/dist-es/pagination/ListGraphSnapshotsPaginator.js +2 -23
- package/dist-es/pagination/ListGraphsPaginator.js +2 -23
- package/dist-es/pagination/ListImportTasksPaginator.js +2 -23
- package/dist-es/pagination/ListPrivateGraphEndpointsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +125 -282
- package/dist-types/pagination/ListGraphSnapshotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGraphsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrivateGraphEndpointsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListGraphSnapshotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGraphsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrivateGraphEndpointsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -2,33 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const NeptuneGraphServiceException_1 = require("../models/NeptuneGraphServiceException");
|
|
9
9
|
const se_CancelImportTaskCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
11
|
const headers = {};
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
b.bp("/importtasks/{taskIdentifier}");
|
|
13
|
+
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
14
14
|
let body;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "DELETE",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
15
|
+
b.m("DELETE").h(headers).b(body);
|
|
16
|
+
return b.build();
|
|
24
17
|
};
|
|
25
18
|
exports.se_CancelImportTaskCommand = se_CancelImportTaskCommand;
|
|
26
19
|
const se_CreateGraphCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
24
|
+
b.bp("/graphs");
|
|
32
25
|
let body;
|
|
33
26
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
27
|
deletionProtection: [],
|
|
@@ -40,46 +33,32 @@ const se_CreateGraphCommand = async (input, context) => {
|
|
|
40
33
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
41
34
|
vectorSearchConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
42
35
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
36
|
+
b.m("POST").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
52
38
|
};
|
|
53
39
|
exports.se_CreateGraphCommand = se_CreateGraphCommand;
|
|
54
40
|
const se_CreateGraphSnapshotCommand = async (input, context) => {
|
|
55
|
-
const
|
|
41
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
56
42
|
const headers = {
|
|
57
43
|
"content-type": "application/json",
|
|
58
44
|
};
|
|
59
|
-
|
|
45
|
+
b.bp("/snapshots");
|
|
60
46
|
let body;
|
|
61
47
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
48
|
graphIdentifier: [],
|
|
63
49
|
snapshotName: [],
|
|
64
50
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
65
51
|
}));
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
hostname,
|
|
69
|
-
port,
|
|
70
|
-
method: "POST",
|
|
71
|
-
headers,
|
|
72
|
-
path: resolvedPath,
|
|
73
|
-
body,
|
|
74
|
-
});
|
|
52
|
+
b.m("POST").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
75
54
|
};
|
|
76
55
|
exports.se_CreateGraphSnapshotCommand = se_CreateGraphSnapshotCommand;
|
|
77
56
|
const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
|
|
78
|
-
const
|
|
57
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
79
58
|
const headers = {
|
|
80
59
|
"content-type": "application/json",
|
|
81
60
|
};
|
|
82
|
-
|
|
61
|
+
b.bp("/importtasks");
|
|
83
62
|
let body;
|
|
84
63
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
85
64
|
deletionProtection: [],
|
|
@@ -97,300 +76,188 @@ const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
|
|
|
97
76
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
98
77
|
vectorSearchConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
99
78
|
}));
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
79
|
+
b.m("POST").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
109
81
|
};
|
|
110
82
|
exports.se_CreateGraphUsingImportTaskCommand = se_CreateGraphUsingImportTaskCommand;
|
|
111
83
|
const se_CreatePrivateGraphEndpointCommand = async (input, context) => {
|
|
112
|
-
const
|
|
84
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
113
85
|
const headers = {
|
|
114
86
|
"content-type": "application/json",
|
|
115
87
|
};
|
|
116
|
-
|
|
117
|
-
|
|
88
|
+
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
89
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
118
90
|
let body;
|
|
119
91
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
92
|
subnetIds: (_) => (0, smithy_client_1._json)(_),
|
|
121
93
|
vpcId: [],
|
|
122
94
|
vpcSecurityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
123
95
|
}));
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
hostname,
|
|
127
|
-
port,
|
|
128
|
-
method: "POST",
|
|
129
|
-
headers,
|
|
130
|
-
path: resolvedPath,
|
|
131
|
-
body,
|
|
132
|
-
});
|
|
96
|
+
b.m("POST").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
133
98
|
};
|
|
134
99
|
exports.se_CreatePrivateGraphEndpointCommand = se_CreatePrivateGraphEndpointCommand;
|
|
135
100
|
const se_DeleteGraphCommand = async (input, context) => {
|
|
136
|
-
const
|
|
101
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
137
102
|
const headers = {};
|
|
138
|
-
|
|
139
|
-
|
|
103
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
104
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
140
105
|
const query = (0, smithy_client_1.map)({
|
|
141
|
-
|
|
106
|
+
[_sS]: [(0, smithy_client_1.expectNonNull)(input.skipSnapshot, `skipSnapshot`) != null, () => input[_sS].toString()],
|
|
142
107
|
});
|
|
143
108
|
let body;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
method: "DELETE",
|
|
149
|
-
headers,
|
|
150
|
-
path: resolvedPath,
|
|
151
|
-
query,
|
|
152
|
-
body,
|
|
153
|
-
});
|
|
109
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
110
|
+
return b.build();
|
|
154
111
|
};
|
|
155
112
|
exports.se_DeleteGraphCommand = se_DeleteGraphCommand;
|
|
156
113
|
const se_DeleteGraphSnapshotCommand = async (input, context) => {
|
|
157
|
-
const
|
|
114
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
158
115
|
const headers = {};
|
|
159
|
-
|
|
160
|
-
|
|
116
|
+
b.bp("/snapshots/{snapshotIdentifier}");
|
|
117
|
+
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
161
118
|
let body;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
hostname,
|
|
165
|
-
port,
|
|
166
|
-
method: "DELETE",
|
|
167
|
-
headers,
|
|
168
|
-
path: resolvedPath,
|
|
169
|
-
body,
|
|
170
|
-
});
|
|
119
|
+
b.m("DELETE").h(headers).b(body);
|
|
120
|
+
return b.build();
|
|
171
121
|
};
|
|
172
122
|
exports.se_DeleteGraphSnapshotCommand = se_DeleteGraphSnapshotCommand;
|
|
173
123
|
const se_DeletePrivateGraphEndpointCommand = async (input, context) => {
|
|
174
|
-
const
|
|
124
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
175
125
|
const headers = {};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vpcId", () => input.vpcId, "{vpcId}", false);
|
|
126
|
+
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
127
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
128
|
+
b.p("vpcId", () => input.vpcId, "{vpcId}", false);
|
|
180
129
|
let body;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hostname,
|
|
184
|
-
port,
|
|
185
|
-
method: "DELETE",
|
|
186
|
-
headers,
|
|
187
|
-
path: resolvedPath,
|
|
188
|
-
body,
|
|
189
|
-
});
|
|
130
|
+
b.m("DELETE").h(headers).b(body);
|
|
131
|
+
return b.build();
|
|
190
132
|
};
|
|
191
133
|
exports.se_DeletePrivateGraphEndpointCommand = se_DeletePrivateGraphEndpointCommand;
|
|
192
134
|
const se_GetGraphCommand = async (input, context) => {
|
|
193
|
-
const
|
|
135
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
194
136
|
const headers = {};
|
|
195
|
-
|
|
196
|
-
|
|
137
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
138
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
197
139
|
let body;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
hostname,
|
|
201
|
-
port,
|
|
202
|
-
method: "GET",
|
|
203
|
-
headers,
|
|
204
|
-
path: resolvedPath,
|
|
205
|
-
body,
|
|
206
|
-
});
|
|
140
|
+
b.m("GET").h(headers).b(body);
|
|
141
|
+
return b.build();
|
|
207
142
|
};
|
|
208
143
|
exports.se_GetGraphCommand = se_GetGraphCommand;
|
|
209
144
|
const se_GetGraphSnapshotCommand = async (input, context) => {
|
|
210
|
-
const
|
|
145
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
211
146
|
const headers = {};
|
|
212
|
-
|
|
213
|
-
|
|
147
|
+
b.bp("/snapshots/{snapshotIdentifier}");
|
|
148
|
+
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
214
149
|
let body;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
hostname,
|
|
218
|
-
port,
|
|
219
|
-
method: "GET",
|
|
220
|
-
headers,
|
|
221
|
-
path: resolvedPath,
|
|
222
|
-
body,
|
|
223
|
-
});
|
|
150
|
+
b.m("GET").h(headers).b(body);
|
|
151
|
+
return b.build();
|
|
224
152
|
};
|
|
225
153
|
exports.se_GetGraphSnapshotCommand = se_GetGraphSnapshotCommand;
|
|
226
154
|
const se_GetImportTaskCommand = async (input, context) => {
|
|
227
|
-
const
|
|
155
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
228
156
|
const headers = {};
|
|
229
|
-
|
|
230
|
-
|
|
157
|
+
b.bp("/importtasks/{taskIdentifier}");
|
|
158
|
+
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
231
159
|
let body;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
hostname,
|
|
235
|
-
port,
|
|
236
|
-
method: "GET",
|
|
237
|
-
headers,
|
|
238
|
-
path: resolvedPath,
|
|
239
|
-
body,
|
|
240
|
-
});
|
|
160
|
+
b.m("GET").h(headers).b(body);
|
|
161
|
+
return b.build();
|
|
241
162
|
};
|
|
242
163
|
exports.se_GetImportTaskCommand = se_GetImportTaskCommand;
|
|
243
164
|
const se_GetPrivateGraphEndpointCommand = async (input, context) => {
|
|
244
|
-
const
|
|
165
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
245
166
|
const headers = {};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vpcId", () => input.vpcId, "{vpcId}", false);
|
|
167
|
+
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
168
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
169
|
+
b.p("vpcId", () => input.vpcId, "{vpcId}", false);
|
|
250
170
|
let body;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
hostname,
|
|
254
|
-
port,
|
|
255
|
-
method: "GET",
|
|
256
|
-
headers,
|
|
257
|
-
path: resolvedPath,
|
|
258
|
-
body,
|
|
259
|
-
});
|
|
171
|
+
b.m("GET").h(headers).b(body);
|
|
172
|
+
return b.build();
|
|
260
173
|
};
|
|
261
174
|
exports.se_GetPrivateGraphEndpointCommand = se_GetPrivateGraphEndpointCommand;
|
|
262
175
|
const se_ListGraphsCommand = async (input, context) => {
|
|
263
|
-
const
|
|
176
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
264
177
|
const headers = {};
|
|
265
|
-
|
|
178
|
+
b.bp("/graphs");
|
|
266
179
|
const query = (0, smithy_client_1.map)({
|
|
267
|
-
|
|
268
|
-
|
|
180
|
+
[_nT]: [, input[_nT]],
|
|
181
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
269
182
|
});
|
|
270
183
|
let body;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
hostname,
|
|
274
|
-
port,
|
|
275
|
-
method: "GET",
|
|
276
|
-
headers,
|
|
277
|
-
path: resolvedPath,
|
|
278
|
-
query,
|
|
279
|
-
body,
|
|
280
|
-
});
|
|
184
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
185
|
+
return b.build();
|
|
281
186
|
};
|
|
282
187
|
exports.se_ListGraphsCommand = se_ListGraphsCommand;
|
|
283
188
|
const se_ListGraphSnapshotsCommand = async (input, context) => {
|
|
284
|
-
const
|
|
189
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
285
190
|
const headers = {};
|
|
286
|
-
|
|
191
|
+
b.bp("/snapshots");
|
|
287
192
|
const query = (0, smithy_client_1.map)({
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
193
|
+
[_gI]: [, input[_gI]],
|
|
194
|
+
[_nT]: [, input[_nT]],
|
|
195
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
291
196
|
});
|
|
292
197
|
let body;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
hostname,
|
|
296
|
-
port,
|
|
297
|
-
method: "GET",
|
|
298
|
-
headers,
|
|
299
|
-
path: resolvedPath,
|
|
300
|
-
query,
|
|
301
|
-
body,
|
|
302
|
-
});
|
|
198
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
199
|
+
return b.build();
|
|
303
200
|
};
|
|
304
201
|
exports.se_ListGraphSnapshotsCommand = se_ListGraphSnapshotsCommand;
|
|
305
202
|
const se_ListImportTasksCommand = async (input, context) => {
|
|
306
|
-
const
|
|
203
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
307
204
|
const headers = {};
|
|
308
|
-
|
|
205
|
+
b.bp("/importtasks");
|
|
309
206
|
const query = (0, smithy_client_1.map)({
|
|
310
|
-
|
|
311
|
-
|
|
207
|
+
[_nT]: [, input[_nT]],
|
|
208
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
312
209
|
});
|
|
313
210
|
let body;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
hostname,
|
|
317
|
-
port,
|
|
318
|
-
method: "GET",
|
|
319
|
-
headers,
|
|
320
|
-
path: resolvedPath,
|
|
321
|
-
query,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
211
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
+
return b.build();
|
|
324
213
|
};
|
|
325
214
|
exports.se_ListImportTasksCommand = se_ListImportTasksCommand;
|
|
326
215
|
const se_ListPrivateGraphEndpointsCommand = async (input, context) => {
|
|
327
|
-
const
|
|
216
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
328
217
|
const headers = {};
|
|
329
|
-
|
|
330
|
-
|
|
218
|
+
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
219
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
331
220
|
const query = (0, smithy_client_1.map)({
|
|
332
|
-
|
|
333
|
-
|
|
221
|
+
[_nT]: [, input[_nT]],
|
|
222
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
334
223
|
});
|
|
335
224
|
let body;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
hostname,
|
|
339
|
-
port,
|
|
340
|
-
method: "GET",
|
|
341
|
-
headers,
|
|
342
|
-
path: resolvedPath,
|
|
343
|
-
query,
|
|
344
|
-
body,
|
|
345
|
-
});
|
|
225
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
226
|
+
return b.build();
|
|
346
227
|
};
|
|
347
228
|
exports.se_ListPrivateGraphEndpointsCommand = se_ListPrivateGraphEndpointsCommand;
|
|
348
229
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
349
|
-
const
|
|
230
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
350
231
|
const headers = {};
|
|
351
|
-
|
|
352
|
-
|
|
232
|
+
b.bp("/tags/{resourceArn}");
|
|
233
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
353
234
|
let body;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
hostname,
|
|
357
|
-
port,
|
|
358
|
-
method: "GET",
|
|
359
|
-
headers,
|
|
360
|
-
path: resolvedPath,
|
|
361
|
-
body,
|
|
362
|
-
});
|
|
235
|
+
b.m("GET").h(headers).b(body);
|
|
236
|
+
return b.build();
|
|
363
237
|
};
|
|
364
238
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
365
239
|
const se_ResetGraphCommand = async (input, context) => {
|
|
366
|
-
const
|
|
240
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
367
241
|
const headers = {
|
|
368
242
|
"content-type": "application/json",
|
|
369
243
|
};
|
|
370
|
-
|
|
371
|
-
|
|
244
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
245
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
372
246
|
let body;
|
|
373
247
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
374
248
|
skipSnapshot: [],
|
|
375
249
|
}));
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
hostname,
|
|
379
|
-
port,
|
|
380
|
-
method: "PUT",
|
|
381
|
-
headers,
|
|
382
|
-
path: resolvedPath,
|
|
383
|
-
body,
|
|
384
|
-
});
|
|
250
|
+
b.m("PUT").h(headers).b(body);
|
|
251
|
+
return b.build();
|
|
385
252
|
};
|
|
386
253
|
exports.se_ResetGraphCommand = se_ResetGraphCommand;
|
|
387
254
|
const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
|
|
388
|
-
const
|
|
255
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
389
256
|
const headers = {
|
|
390
257
|
"content-type": "application/json",
|
|
391
258
|
};
|
|
392
|
-
|
|
393
|
-
|
|
259
|
+
b.bp("/snapshots/{snapshotIdentifier}/restore");
|
|
260
|
+
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
394
261
|
let body;
|
|
395
262
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
396
263
|
deletionProtection: [],
|
|
@@ -400,85 +267,56 @@ const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
|
|
|
400
267
|
replicaCount: [],
|
|
401
268
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
402
269
|
}));
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
hostname,
|
|
406
|
-
port,
|
|
407
|
-
method: "POST",
|
|
408
|
-
headers,
|
|
409
|
-
path: resolvedPath,
|
|
410
|
-
body,
|
|
411
|
-
});
|
|
270
|
+
b.m("POST").h(headers).b(body);
|
|
271
|
+
return b.build();
|
|
412
272
|
};
|
|
413
273
|
exports.se_RestoreGraphFromSnapshotCommand = se_RestoreGraphFromSnapshotCommand;
|
|
414
274
|
const se_TagResourceCommand = async (input, context) => {
|
|
415
|
-
const
|
|
275
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
416
276
|
const headers = {
|
|
417
277
|
"content-type": "application/json",
|
|
418
278
|
};
|
|
419
|
-
|
|
420
|
-
|
|
279
|
+
b.bp("/tags/{resourceArn}");
|
|
280
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
421
281
|
let body;
|
|
422
282
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
423
283
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
424
284
|
}));
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
hostname,
|
|
428
|
-
port,
|
|
429
|
-
method: "POST",
|
|
430
|
-
headers,
|
|
431
|
-
path: resolvedPath,
|
|
432
|
-
body,
|
|
433
|
-
});
|
|
285
|
+
b.m("POST").h(headers).b(body);
|
|
286
|
+
return b.build();
|
|
434
287
|
};
|
|
435
288
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
436
289
|
const se_UntagResourceCommand = async (input, context) => {
|
|
437
|
-
const
|
|
290
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
438
291
|
const headers = {};
|
|
439
|
-
|
|
440
|
-
|
|
292
|
+
b.bp("/tags/{resourceArn}");
|
|
293
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
441
294
|
const query = (0, smithy_client_1.map)({
|
|
442
|
-
|
|
295
|
+
[_tK]: [
|
|
443
296
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
444
|
-
() => (input
|
|
297
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
445
298
|
],
|
|
446
299
|
});
|
|
447
300
|
let body;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
hostname,
|
|
451
|
-
port,
|
|
452
|
-
method: "DELETE",
|
|
453
|
-
headers,
|
|
454
|
-
path: resolvedPath,
|
|
455
|
-
query,
|
|
456
|
-
body,
|
|
457
|
-
});
|
|
301
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
302
|
+
return b.build();
|
|
458
303
|
};
|
|
459
304
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
460
305
|
const se_UpdateGraphCommand = async (input, context) => {
|
|
461
|
-
const
|
|
306
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
462
307
|
const headers = {
|
|
463
308
|
"content-type": "application/json",
|
|
464
309
|
};
|
|
465
|
-
|
|
466
|
-
|
|
310
|
+
b.bp("/graphs/{graphIdentifier}");
|
|
311
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
467
312
|
let body;
|
|
468
313
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
469
314
|
deletionProtection: [],
|
|
470
315
|
provisionedMemory: [],
|
|
471
316
|
publicConnectivity: [],
|
|
472
317
|
}));
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
hostname,
|
|
476
|
-
port,
|
|
477
|
-
method: "PATCH",
|
|
478
|
-
headers,
|
|
479
|
-
path: resolvedPath,
|
|
480
|
-
body,
|
|
481
|
-
});
|
|
318
|
+
b.m("PATCH").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
482
320
|
};
|
|
483
321
|
exports.se_UpdateGraphCommand = se_UpdateGraphCommand;
|
|
484
322
|
const de_CancelImportTaskCommand = async (output, context) => {
|
|
@@ -1721,6 +1559,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1721
1559
|
value !== "" &&
|
|
1722
1560
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1723
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";
|
|
1724
1567
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1725
1568
|
if (encoded.length) {
|
|
1726
1569
|
return JSON.parse(encoded);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGraphSnapshotsCommand, } from "../commands/ListGraphSnapshotsCommand";
|
|
2
3
|
import { NeptuneGraphClient } from "../NeptuneGraphClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGraphSnapshotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGraphSnapshots(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof NeptuneGraphClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected NeptuneGraph | NeptuneGraphClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGraphSnapshots = createPaginator(NeptuneGraphClient, ListGraphSnapshotsCommand, "nextToken", "nextToken", "maxResults");
|