@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.
@@ -1,30 +1,23 @@
1
1
  import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- 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, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { requestBuilder as rb } from "@smithy/core";
3
+ 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, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { NeptuneGraphServiceException as __BaseException } from "../models/NeptuneGraphServiceException";
6
6
  export const se_CancelImportTaskCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {};
9
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks/{taskIdentifier}";
10
- resolvedPath = __resolvedPath(resolvedPath, input, "taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
9
+ b.bp("/importtasks/{taskIdentifier}");
10
+ b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
11
11
  let body;
12
- return new __HttpRequest({
13
- protocol,
14
- hostname,
15
- port,
16
- method: "DELETE",
17
- headers,
18
- path: resolvedPath,
19
- body,
20
- });
12
+ b.m("DELETE").h(headers).b(body);
13
+ return b.build();
21
14
  };
22
15
  export const se_CreateGraphCommand = async (input, context) => {
23
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
16
+ const b = rb(input, context);
24
17
  const headers = {
25
18
  "content-type": "application/json",
26
19
  };
27
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs";
20
+ b.bp("/graphs");
28
21
  let body;
29
22
  body = JSON.stringify(take(input, {
30
23
  deletionProtection: [],
@@ -36,44 +29,30 @@ export const se_CreateGraphCommand = async (input, context) => {
36
29
  tags: (_) => _json(_),
37
30
  vectorSearchConfiguration: (_) => _json(_),
38
31
  }));
39
- return new __HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
48
34
  };
49
35
  export const se_CreateGraphSnapshotCommand = async (input, context) => {
50
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = rb(input, context);
51
37
  const headers = {
52
38
  "content-type": "application/json",
53
39
  };
54
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots";
40
+ b.bp("/snapshots");
55
41
  let body;
56
42
  body = JSON.stringify(take(input, {
57
43
  graphIdentifier: [],
58
44
  snapshotName: [],
59
45
  tags: (_) => _json(_),
60
46
  }));
61
- return new __HttpRequest({
62
- protocol,
63
- hostname,
64
- port,
65
- method: "POST",
66
- headers,
67
- path: resolvedPath,
68
- body,
69
- });
47
+ b.m("POST").h(headers).b(body);
48
+ return b.build();
70
49
  };
71
50
  export const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
72
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
+ const b = rb(input, context);
73
52
  const headers = {
74
53
  "content-type": "application/json",
75
54
  };
76
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks";
55
+ b.bp("/importtasks");
77
56
  let body;
78
57
  body = JSON.stringify(take(input, {
79
58
  deletionProtection: [],
@@ -91,285 +70,173 @@ export const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
91
70
  tags: (_) => _json(_),
92
71
  vectorSearchConfiguration: (_) => _json(_),
93
72
  }));
94
- return new __HttpRequest({
95
- protocol,
96
- hostname,
97
- port,
98
- method: "POST",
99
- headers,
100
- path: resolvedPath,
101
- body,
102
- });
73
+ b.m("POST").h(headers).b(body);
74
+ return b.build();
103
75
  };
104
76
  export const se_CreatePrivateGraphEndpointCommand = async (input, context) => {
105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = rb(input, context);
106
78
  const headers = {
107
79
  "content-type": "application/json",
108
80
  };
109
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}/endpoints";
110
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
81
+ b.bp("/graphs/{graphIdentifier}/endpoints");
82
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
111
83
  let body;
112
84
  body = JSON.stringify(take(input, {
113
85
  subnetIds: (_) => _json(_),
114
86
  vpcId: [],
115
87
  vpcSecurityGroupIds: (_) => _json(_),
116
88
  }));
117
- return new __HttpRequest({
118
- protocol,
119
- hostname,
120
- port,
121
- method: "POST",
122
- headers,
123
- path: resolvedPath,
124
- body,
125
- });
89
+ b.m("POST").h(headers).b(body);
90
+ return b.build();
126
91
  };
127
92
  export const se_DeleteGraphCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = rb(input, context);
129
94
  const headers = {};
130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}";
131
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
95
+ b.bp("/graphs/{graphIdentifier}");
96
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
132
97
  const query = map({
133
- skipSnapshot: [__expectNonNull(input.skipSnapshot, `skipSnapshot`) != null, () => input.skipSnapshot.toString()],
98
+ [_sS]: [__expectNonNull(input.skipSnapshot, `skipSnapshot`) != null, () => input[_sS].toString()],
134
99
  });
135
100
  let body;
136
- return new __HttpRequest({
137
- protocol,
138
- hostname,
139
- port,
140
- method: "DELETE",
141
- headers,
142
- path: resolvedPath,
143
- query,
144
- body,
145
- });
101
+ b.m("DELETE").h(headers).q(query).b(body);
102
+ return b.build();
146
103
  };
147
104
  export const se_DeleteGraphSnapshotCommand = async (input, context) => {
148
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = rb(input, context);
149
106
  const headers = {};
150
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{snapshotIdentifier}";
151
- resolvedPath = __resolvedPath(resolvedPath, input, "snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
107
+ b.bp("/snapshots/{snapshotIdentifier}");
108
+ b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
152
109
  let body;
153
- return new __HttpRequest({
154
- protocol,
155
- hostname,
156
- port,
157
- method: "DELETE",
158
- headers,
159
- path: resolvedPath,
160
- body,
161
- });
110
+ b.m("DELETE").h(headers).b(body);
111
+ return b.build();
162
112
  };
163
113
  export const se_DeletePrivateGraphEndpointCommand = async (input, context) => {
164
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
114
+ const b = rb(input, context);
165
115
  const headers = {};
166
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
167
- "/graphs/{graphIdentifier}/endpoints/{vpcId}";
168
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
169
- resolvedPath = __resolvedPath(resolvedPath, input, "vpcId", () => input.vpcId, "{vpcId}", false);
116
+ b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
117
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
118
+ b.p("vpcId", () => input.vpcId, "{vpcId}", false);
170
119
  let body;
171
- return new __HttpRequest({
172
- protocol,
173
- hostname,
174
- port,
175
- method: "DELETE",
176
- headers,
177
- path: resolvedPath,
178
- body,
179
- });
120
+ b.m("DELETE").h(headers).b(body);
121
+ return b.build();
180
122
  };
181
123
  export const se_GetGraphCommand = async (input, context) => {
182
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = rb(input, context);
183
125
  const headers = {};
184
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}";
185
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
126
+ b.bp("/graphs/{graphIdentifier}");
127
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
186
128
  let body;
187
- return new __HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "GET",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
129
+ b.m("GET").h(headers).b(body);
130
+ return b.build();
196
131
  };
197
132
  export const se_GetGraphSnapshotCommand = async (input, context) => {
198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = rb(input, context);
199
134
  const headers = {};
200
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{snapshotIdentifier}";
201
- resolvedPath = __resolvedPath(resolvedPath, input, "snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
135
+ b.bp("/snapshots/{snapshotIdentifier}");
136
+ b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
202
137
  let body;
203
- return new __HttpRequest({
204
- protocol,
205
- hostname,
206
- port,
207
- method: "GET",
208
- headers,
209
- path: resolvedPath,
210
- body,
211
- });
138
+ b.m("GET").h(headers).b(body);
139
+ return b.build();
212
140
  };
213
141
  export const se_GetImportTaskCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = rb(input, context);
215
143
  const headers = {};
216
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks/{taskIdentifier}";
217
- resolvedPath = __resolvedPath(resolvedPath, input, "taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
144
+ b.bp("/importtasks/{taskIdentifier}");
145
+ b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
218
146
  let body;
219
- return new __HttpRequest({
220
- protocol,
221
- hostname,
222
- port,
223
- method: "GET",
224
- headers,
225
- path: resolvedPath,
226
- body,
227
- });
147
+ b.m("GET").h(headers).b(body);
148
+ return b.build();
228
149
  };
229
150
  export const se_GetPrivateGraphEndpointCommand = async (input, context) => {
230
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = rb(input, context);
231
152
  const headers = {};
232
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
233
- "/graphs/{graphIdentifier}/endpoints/{vpcId}";
234
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
235
- resolvedPath = __resolvedPath(resolvedPath, input, "vpcId", () => input.vpcId, "{vpcId}", false);
153
+ b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
154
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
155
+ b.p("vpcId", () => input.vpcId, "{vpcId}", false);
236
156
  let body;
237
- return new __HttpRequest({
238
- protocol,
239
- hostname,
240
- port,
241
- method: "GET",
242
- headers,
243
- path: resolvedPath,
244
- body,
245
- });
157
+ b.m("GET").h(headers).b(body);
158
+ return b.build();
246
159
  };
247
160
  export const se_ListGraphsCommand = async (input, context) => {
248
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
+ const b = rb(input, context);
249
162
  const headers = {};
250
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs";
163
+ b.bp("/graphs");
251
164
  const query = map({
252
- nextToken: [, input.nextToken],
253
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
165
+ [_nT]: [, input[_nT]],
166
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
254
167
  });
255
168
  let body;
256
- return new __HttpRequest({
257
- protocol,
258
- hostname,
259
- port,
260
- method: "GET",
261
- headers,
262
- path: resolvedPath,
263
- query,
264
- body,
265
- });
169
+ b.m("GET").h(headers).q(query).b(body);
170
+ return b.build();
266
171
  };
267
172
  export const se_ListGraphSnapshotsCommand = async (input, context) => {
268
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = rb(input, context);
269
174
  const headers = {};
270
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots";
175
+ b.bp("/snapshots");
271
176
  const query = map({
272
- graphIdentifier: [, input.graphIdentifier],
273
- nextToken: [, input.nextToken],
274
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
177
+ [_gI]: [, input[_gI]],
178
+ [_nT]: [, input[_nT]],
179
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
275
180
  });
276
181
  let body;
277
- return new __HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "GET",
282
- headers,
283
- path: resolvedPath,
284
- query,
285
- body,
286
- });
182
+ b.m("GET").h(headers).q(query).b(body);
183
+ return b.build();
287
184
  };
288
185
  export const se_ListImportTasksCommand = async (input, context) => {
289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
+ const b = rb(input, context);
290
187
  const headers = {};
291
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importtasks";
188
+ b.bp("/importtasks");
292
189
  const query = map({
293
- nextToken: [, input.nextToken],
294
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
190
+ [_nT]: [, input[_nT]],
191
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
295
192
  });
296
193
  let body;
297
- return new __HttpRequest({
298
- protocol,
299
- hostname,
300
- port,
301
- method: "GET",
302
- headers,
303
- path: resolvedPath,
304
- query,
305
- body,
306
- });
194
+ b.m("GET").h(headers).q(query).b(body);
195
+ return b.build();
307
196
  };
308
197
  export const se_ListPrivateGraphEndpointsCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = rb(input, context);
310
199
  const headers = {};
311
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}/endpoints";
312
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
200
+ b.bp("/graphs/{graphIdentifier}/endpoints");
201
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
313
202
  const query = map({
314
- nextToken: [, input.nextToken],
315
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
203
+ [_nT]: [, input[_nT]],
204
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
316
205
  });
317
206
  let body;
318
- return new __HttpRequest({
319
- protocol,
320
- hostname,
321
- port,
322
- method: "GET",
323
- headers,
324
- path: resolvedPath,
325
- query,
326
- body,
327
- });
207
+ b.m("GET").h(headers).q(query).b(body);
208
+ return b.build();
328
209
  };
329
210
  export const se_ListTagsForResourceCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = rb(input, context);
331
212
  const headers = {};
332
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
333
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
213
+ b.bp("/tags/{resourceArn}");
214
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
334
215
  let body;
335
- return new __HttpRequest({
336
- protocol,
337
- hostname,
338
- port,
339
- method: "GET",
340
- headers,
341
- path: resolvedPath,
342
- body,
343
- });
216
+ b.m("GET").h(headers).b(body);
217
+ return b.build();
344
218
  };
345
219
  export const se_ResetGraphCommand = async (input, context) => {
346
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
+ const b = rb(input, context);
347
221
  const headers = {
348
222
  "content-type": "application/json",
349
223
  };
350
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}";
351
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
224
+ b.bp("/graphs/{graphIdentifier}");
225
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
352
226
  let body;
353
227
  body = JSON.stringify(take(input, {
354
228
  skipSnapshot: [],
355
229
  }));
356
- return new __HttpRequest({
357
- protocol,
358
- hostname,
359
- port,
360
- method: "PUT",
361
- headers,
362
- path: resolvedPath,
363
- body,
364
- });
230
+ b.m("PUT").h(headers).b(body);
231
+ return b.build();
365
232
  };
366
233
  export const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
367
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = rb(input, context);
368
235
  const headers = {
369
236
  "content-type": "application/json",
370
237
  };
371
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/snapshots/{snapshotIdentifier}/restore";
372
- resolvedPath = __resolvedPath(resolvedPath, input, "snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
238
+ b.bp("/snapshots/{snapshotIdentifier}/restore");
239
+ b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
373
240
  let body;
374
241
  body = JSON.stringify(take(input, {
375
242
  deletionProtection: [],
@@ -379,82 +246,53 @@ export const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
379
246
  replicaCount: [],
380
247
  tags: (_) => _json(_),
381
248
  }));
382
- return new __HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "POST",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
249
+ b.m("POST").h(headers).b(body);
250
+ return b.build();
391
251
  };
392
252
  export const se_TagResourceCommand = async (input, context) => {
393
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
394
254
  const headers = {
395
255
  "content-type": "application/json",
396
256
  };
397
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
398
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
257
+ b.bp("/tags/{resourceArn}");
258
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
399
259
  let body;
400
260
  body = JSON.stringify(take(input, {
401
261
  tags: (_) => _json(_),
402
262
  }));
403
- return new __HttpRequest({
404
- protocol,
405
- hostname,
406
- port,
407
- method: "POST",
408
- headers,
409
- path: resolvedPath,
410
- body,
411
- });
263
+ b.m("POST").h(headers).b(body);
264
+ return b.build();
412
265
  };
413
266
  export const se_UntagResourceCommand = async (input, context) => {
414
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
415
268
  const headers = {};
416
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
417
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
269
+ b.bp("/tags/{resourceArn}");
270
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
418
271
  const query = map({
419
- tagKeys: [
272
+ [_tK]: [
420
273
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
421
- () => (input.tagKeys || []).map((_entry) => _entry),
274
+ () => (input[_tK] || []).map((_entry) => _entry),
422
275
  ],
423
276
  });
424
277
  let body;
425
- return new __HttpRequest({
426
- protocol,
427
- hostname,
428
- port,
429
- method: "DELETE",
430
- headers,
431
- path: resolvedPath,
432
- query,
433
- body,
434
- });
278
+ b.m("DELETE").h(headers).q(query).b(body);
279
+ return b.build();
435
280
  };
436
281
  export const se_UpdateGraphCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
+ const b = rb(input, context);
438
283
  const headers = {
439
284
  "content-type": "application/json",
440
285
  };
441
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/{graphIdentifier}";
442
- resolvedPath = __resolvedPath(resolvedPath, input, "graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
286
+ b.bp("/graphs/{graphIdentifier}");
287
+ b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
443
288
  let body;
444
289
  body = JSON.stringify(take(input, {
445
290
  deletionProtection: [],
446
291
  provisionedMemory: [],
447
292
  publicConnectivity: [],
448
293
  }));
449
- return new __HttpRequest({
450
- protocol,
451
- hostname,
452
- port,
453
- method: "PATCH",
454
- headers,
455
- path: resolvedPath,
456
- body,
457
- });
294
+ b.m("PATCH").h(headers).b(body);
295
+ return b.build();
458
296
  };
459
297
  export const de_CancelImportTaskCommand = async (output, context) => {
460
298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1674,6 +1512,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1674
1512
  value !== "" &&
1675
1513
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1676
1514
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1515
+ const _gI = "graphIdentifier";
1516
+ const _mR = "maxResults";
1517
+ const _nT = "nextToken";
1518
+ const _sS = "skipSnapshot";
1519
+ const _tK = "tagKeys";
1677
1520
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1678
1521
  if (encoded.length) {
1679
1522
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListGraphSnapshots(config: NeptuneGraphPaginationConfiguration, input: ListGraphSnapshotsCommandInput, ...additionalArguments: any): Paginator<ListGraphSnapshotsCommandOutput>;
7
+ export declare const paginateListGraphSnapshots: (config: NeptuneGraphPaginationConfiguration, input: ListGraphSnapshotsCommandInput, ...rest: any[]) => Paginator<ListGraphSnapshotsCommandOutput>;
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListGraphs(config: NeptuneGraphPaginationConfiguration, input: ListGraphsCommandInput, ...additionalArguments: any): Paginator<ListGraphsCommandOutput>;
7
+ export declare const paginateListGraphs: (config: NeptuneGraphPaginationConfiguration, input: ListGraphsCommandInput, ...rest: any[]) => Paginator<ListGraphsCommandOutput>;
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListImportTasks(config: NeptuneGraphPaginationConfiguration, input: ListImportTasksCommandInput, ...additionalArguments: any): Paginator<ListImportTasksCommandOutput>;
7
+ export declare const paginateListImportTasks: (config: NeptuneGraphPaginationConfiguration, input: ListImportTasksCommandInput, ...rest: any[]) => Paginator<ListImportTasksCommandOutput>;
@@ -4,4 +4,4 @@ import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListPrivateGraphEndpoints(config: NeptuneGraphPaginationConfiguration, input: ListPrivateGraphEndpointsCommandInput, ...additionalArguments: any): Paginator<ListPrivateGraphEndpointsCommandOutput>;
7
+ export declare const paginateListPrivateGraphEndpoints: (config: NeptuneGraphPaginationConfiguration, input: ListPrivateGraphEndpointsCommandInput, ...rest: any[]) => Paginator<ListPrivateGraphEndpointsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListGraphSnapshotsCommandOutput,
5
5
  } from "../commands/ListGraphSnapshotsCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListGraphSnapshots(
7
+ export declare const paginateListGraphSnapshots: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListGraphSnapshotsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListGraphSnapshotsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListGraphSnapshotsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListGraphsCommandOutput,
5
5
  } from "../commands/ListGraphsCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListGraphs(
7
+ export declare const paginateListGraphs: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListGraphsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListGraphsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListGraphsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListImportTasksCommandOutput,
5
5
  } from "../commands/ListImportTasksCommand";
6
6
  import { NeptuneGraphPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListImportTasks(
7
+ export declare const paginateListImportTasks: (
8
8
  config: NeptuneGraphPaginationConfiguration,
9
9
  input: ListImportTasksCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListImportTasksCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListImportTasksCommandOutput>;