@aws-sdk/client-neptunedata 3.1068.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +169 -189
- package/dist-cjs/models/NeptunedataServiceException.js +4 -8
- package/dist-cjs/models/errors.js +69 -106
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +400 -265
- package/package.json +8 -8
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.NeptunedataServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class NeptunedataServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.NeptunedataServiceException = class NeptunedataServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, NeptunedataServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.NeptunedataServiceException = NeptunedataServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.S3Exception = exports.ThrottlingException = exports.StreamRecordsNotFoundException = exports.ExpiredStreamException = exports.QueryTooLargeException = exports.QueryLimitException = exports.QueryLimitExceededException = exports.MemoryLimitExceededException = exports.MalformedQueryException = exports.CancelledByUserException = exports.ServerShutdownException = exports.MethodNotAllowedException = exports.StatisticsNotAvailableException = exports.ReadOnlyViolationException = exports.InvalidNumericDataException = exports.MLResourceNotFoundException = exports.LoadUrlAccessDeniedException = exports.InternalFailureException = exports.BulkLoadIdNotFoundException = exports.UnsupportedOperationException = exports.TooManyRequestsException = exports.TimeLimitExceededException = exports.PreconditionsFailedException = exports.ParsingException = exports.MissingParameterException = exports.InvalidParameterException = exports.InvalidArgumentException = exports.IllegalArgumentException = exports.FailureByQueryException = exports.ConstraintViolationException = exports.ConcurrentModificationException = exports.ClientTimeoutException = exports.BadRequestException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const NeptunedataServiceException_1 = require("./NeptunedataServiceException");
|
|
5
|
-
class AccessDeniedException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
1
|
+
const { NeptunedataServiceException: __BaseException } = require("./NeptunedataServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
detailedMessage;
|
|
@@ -19,9 +16,8 @@ class AccessDeniedException extends NeptunedataServiceException_1.NeptunedataSer
|
|
|
19
16
|
this.requestId = opts.requestId;
|
|
20
17
|
this.code = opts.code;
|
|
21
18
|
}
|
|
22
|
-
}
|
|
23
|
-
exports.
|
|
24
|
-
class BadRequestException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
19
|
+
};
|
|
20
|
+
exports.BadRequestException = class BadRequestException extends __BaseException {
|
|
25
21
|
name = "BadRequestException";
|
|
26
22
|
$fault = "client";
|
|
27
23
|
detailedMessage;
|
|
@@ -38,9 +34,8 @@ class BadRequestException extends NeptunedataServiceException_1.NeptunedataServi
|
|
|
38
34
|
this.requestId = opts.requestId;
|
|
39
35
|
this.code = opts.code;
|
|
40
36
|
}
|
|
41
|
-
}
|
|
42
|
-
exports.
|
|
43
|
-
class ClientTimeoutException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
37
|
+
};
|
|
38
|
+
exports.ClientTimeoutException = class ClientTimeoutException extends __BaseException {
|
|
44
39
|
name = "ClientTimeoutException";
|
|
45
40
|
$fault = "client";
|
|
46
41
|
$retryable = {};
|
|
@@ -58,9 +53,8 @@ class ClientTimeoutException extends NeptunedataServiceException_1.NeptunedataSe
|
|
|
58
53
|
this.requestId = opts.requestId;
|
|
59
54
|
this.code = opts.code;
|
|
60
55
|
}
|
|
61
|
-
}
|
|
62
|
-
exports.
|
|
63
|
-
class ConcurrentModificationException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
56
|
+
};
|
|
57
|
+
exports.ConcurrentModificationException = class ConcurrentModificationException extends __BaseException {
|
|
64
58
|
name = "ConcurrentModificationException";
|
|
65
59
|
$fault = "server";
|
|
66
60
|
$retryable = {};
|
|
@@ -78,9 +72,8 @@ class ConcurrentModificationException extends NeptunedataServiceException_1.Nept
|
|
|
78
72
|
this.requestId = opts.requestId;
|
|
79
73
|
this.code = opts.code;
|
|
80
74
|
}
|
|
81
|
-
}
|
|
82
|
-
exports.
|
|
83
|
-
class ConstraintViolationException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
75
|
+
};
|
|
76
|
+
exports.ConstraintViolationException = class ConstraintViolationException extends __BaseException {
|
|
84
77
|
name = "ConstraintViolationException";
|
|
85
78
|
$fault = "client";
|
|
86
79
|
$retryable = {};
|
|
@@ -98,9 +91,8 @@ class ConstraintViolationException extends NeptunedataServiceException_1.Neptune
|
|
|
98
91
|
this.requestId = opts.requestId;
|
|
99
92
|
this.code = opts.code;
|
|
100
93
|
}
|
|
101
|
-
}
|
|
102
|
-
exports.
|
|
103
|
-
class FailureByQueryException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
94
|
+
};
|
|
95
|
+
exports.FailureByQueryException = class FailureByQueryException extends __BaseException {
|
|
104
96
|
name = "FailureByQueryException";
|
|
105
97
|
$fault = "server";
|
|
106
98
|
$retryable = {};
|
|
@@ -118,9 +110,8 @@ class FailureByQueryException extends NeptunedataServiceException_1.NeptunedataS
|
|
|
118
110
|
this.requestId = opts.requestId;
|
|
119
111
|
this.code = opts.code;
|
|
120
112
|
}
|
|
121
|
-
}
|
|
122
|
-
exports.
|
|
123
|
-
class IllegalArgumentException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
113
|
+
};
|
|
114
|
+
exports.IllegalArgumentException = class IllegalArgumentException extends __BaseException {
|
|
124
115
|
name = "IllegalArgumentException";
|
|
125
116
|
$fault = "client";
|
|
126
117
|
detailedMessage;
|
|
@@ -137,9 +128,8 @@ class IllegalArgumentException extends NeptunedataServiceException_1.Neptunedata
|
|
|
137
128
|
this.requestId = opts.requestId;
|
|
138
129
|
this.code = opts.code;
|
|
139
130
|
}
|
|
140
|
-
}
|
|
141
|
-
exports.
|
|
142
|
-
class InvalidArgumentException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
131
|
+
};
|
|
132
|
+
exports.InvalidArgumentException = class InvalidArgumentException extends __BaseException {
|
|
143
133
|
name = "InvalidArgumentException";
|
|
144
134
|
$fault = "client";
|
|
145
135
|
detailedMessage;
|
|
@@ -156,9 +146,8 @@ class InvalidArgumentException extends NeptunedataServiceException_1.Neptunedata
|
|
|
156
146
|
this.requestId = opts.requestId;
|
|
157
147
|
this.code = opts.code;
|
|
158
148
|
}
|
|
159
|
-
}
|
|
160
|
-
exports.
|
|
161
|
-
class InvalidParameterException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
149
|
+
};
|
|
150
|
+
exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
|
|
162
151
|
name = "InvalidParameterException";
|
|
163
152
|
$fault = "client";
|
|
164
153
|
detailedMessage;
|
|
@@ -175,9 +164,8 @@ class InvalidParameterException extends NeptunedataServiceException_1.Neptunedat
|
|
|
175
164
|
this.requestId = opts.requestId;
|
|
176
165
|
this.code = opts.code;
|
|
177
166
|
}
|
|
178
|
-
}
|
|
179
|
-
exports.
|
|
180
|
-
class MissingParameterException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
167
|
+
};
|
|
168
|
+
exports.MissingParameterException = class MissingParameterException extends __BaseException {
|
|
181
169
|
name = "MissingParameterException";
|
|
182
170
|
$fault = "client";
|
|
183
171
|
detailedMessage;
|
|
@@ -194,9 +182,8 @@ class MissingParameterException extends NeptunedataServiceException_1.Neptunedat
|
|
|
194
182
|
this.requestId = opts.requestId;
|
|
195
183
|
this.code = opts.code;
|
|
196
184
|
}
|
|
197
|
-
}
|
|
198
|
-
exports.
|
|
199
|
-
class ParsingException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
185
|
+
};
|
|
186
|
+
exports.ParsingException = class ParsingException extends __BaseException {
|
|
200
187
|
name = "ParsingException";
|
|
201
188
|
$fault = "client";
|
|
202
189
|
detailedMessage;
|
|
@@ -213,9 +200,8 @@ class ParsingException extends NeptunedataServiceException_1.NeptunedataServiceE
|
|
|
213
200
|
this.requestId = opts.requestId;
|
|
214
201
|
this.code = opts.code;
|
|
215
202
|
}
|
|
216
|
-
}
|
|
217
|
-
exports.
|
|
218
|
-
class PreconditionsFailedException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
203
|
+
};
|
|
204
|
+
exports.PreconditionsFailedException = class PreconditionsFailedException extends __BaseException {
|
|
219
205
|
name = "PreconditionsFailedException";
|
|
220
206
|
$fault = "client";
|
|
221
207
|
detailedMessage;
|
|
@@ -232,9 +218,8 @@ class PreconditionsFailedException extends NeptunedataServiceException_1.Neptune
|
|
|
232
218
|
this.requestId = opts.requestId;
|
|
233
219
|
this.code = opts.code;
|
|
234
220
|
}
|
|
235
|
-
}
|
|
236
|
-
exports.
|
|
237
|
-
class TimeLimitExceededException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
221
|
+
};
|
|
222
|
+
exports.TimeLimitExceededException = class TimeLimitExceededException extends __BaseException {
|
|
238
223
|
name = "TimeLimitExceededException";
|
|
239
224
|
$fault = "server";
|
|
240
225
|
$retryable = {};
|
|
@@ -252,9 +237,8 @@ class TimeLimitExceededException extends NeptunedataServiceException_1.Neptuneda
|
|
|
252
237
|
this.requestId = opts.requestId;
|
|
253
238
|
this.code = opts.code;
|
|
254
239
|
}
|
|
255
|
-
}
|
|
256
|
-
exports.
|
|
257
|
-
class TooManyRequestsException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
240
|
+
};
|
|
241
|
+
exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException {
|
|
258
242
|
name = "TooManyRequestsException";
|
|
259
243
|
$fault = "client";
|
|
260
244
|
$retryable = {};
|
|
@@ -272,9 +256,8 @@ class TooManyRequestsException extends NeptunedataServiceException_1.Neptunedata
|
|
|
272
256
|
this.requestId = opts.requestId;
|
|
273
257
|
this.code = opts.code;
|
|
274
258
|
}
|
|
275
|
-
}
|
|
276
|
-
exports.
|
|
277
|
-
class UnsupportedOperationException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
259
|
+
};
|
|
260
|
+
exports.UnsupportedOperationException = class UnsupportedOperationException extends __BaseException {
|
|
278
261
|
name = "UnsupportedOperationException";
|
|
279
262
|
$fault = "client";
|
|
280
263
|
detailedMessage;
|
|
@@ -291,9 +274,8 @@ class UnsupportedOperationException extends NeptunedataServiceException_1.Neptun
|
|
|
291
274
|
this.requestId = opts.requestId;
|
|
292
275
|
this.code = opts.code;
|
|
293
276
|
}
|
|
294
|
-
}
|
|
295
|
-
exports.
|
|
296
|
-
class BulkLoadIdNotFoundException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
277
|
+
};
|
|
278
|
+
exports.BulkLoadIdNotFoundException = class BulkLoadIdNotFoundException extends __BaseException {
|
|
297
279
|
name = "BulkLoadIdNotFoundException";
|
|
298
280
|
$fault = "client";
|
|
299
281
|
$retryable = {};
|
|
@@ -311,9 +293,8 @@ class BulkLoadIdNotFoundException extends NeptunedataServiceException_1.Neptuned
|
|
|
311
293
|
this.requestId = opts.requestId;
|
|
312
294
|
this.code = opts.code;
|
|
313
295
|
}
|
|
314
|
-
}
|
|
315
|
-
exports.
|
|
316
|
-
class InternalFailureException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
296
|
+
};
|
|
297
|
+
exports.InternalFailureException = class InternalFailureException extends __BaseException {
|
|
317
298
|
name = "InternalFailureException";
|
|
318
299
|
$fault = "server";
|
|
319
300
|
detailedMessage;
|
|
@@ -330,9 +311,8 @@ class InternalFailureException extends NeptunedataServiceException_1.Neptunedata
|
|
|
330
311
|
this.requestId = opts.requestId;
|
|
331
312
|
this.code = opts.code;
|
|
332
313
|
}
|
|
333
|
-
}
|
|
334
|
-
exports.
|
|
335
|
-
class LoadUrlAccessDeniedException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
314
|
+
};
|
|
315
|
+
exports.LoadUrlAccessDeniedException = class LoadUrlAccessDeniedException extends __BaseException {
|
|
336
316
|
name = "LoadUrlAccessDeniedException";
|
|
337
317
|
$fault = "client";
|
|
338
318
|
detailedMessage;
|
|
@@ -349,9 +329,8 @@ class LoadUrlAccessDeniedException extends NeptunedataServiceException_1.Neptune
|
|
|
349
329
|
this.requestId = opts.requestId;
|
|
350
330
|
this.code = opts.code;
|
|
351
331
|
}
|
|
352
|
-
}
|
|
353
|
-
exports.
|
|
354
|
-
class MLResourceNotFoundException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
332
|
+
};
|
|
333
|
+
exports.MLResourceNotFoundException = class MLResourceNotFoundException extends __BaseException {
|
|
355
334
|
name = "MLResourceNotFoundException";
|
|
356
335
|
$fault = "client";
|
|
357
336
|
detailedMessage;
|
|
@@ -368,9 +347,8 @@ class MLResourceNotFoundException extends NeptunedataServiceException_1.Neptuned
|
|
|
368
347
|
this.requestId = opts.requestId;
|
|
369
348
|
this.code = opts.code;
|
|
370
349
|
}
|
|
371
|
-
}
|
|
372
|
-
exports.
|
|
373
|
-
class InvalidNumericDataException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
350
|
+
};
|
|
351
|
+
exports.InvalidNumericDataException = class InvalidNumericDataException extends __BaseException {
|
|
374
352
|
name = "InvalidNumericDataException";
|
|
375
353
|
$fault = "client";
|
|
376
354
|
detailedMessage;
|
|
@@ -387,9 +365,8 @@ class InvalidNumericDataException extends NeptunedataServiceException_1.Neptuned
|
|
|
387
365
|
this.requestId = opts.requestId;
|
|
388
366
|
this.code = opts.code;
|
|
389
367
|
}
|
|
390
|
-
}
|
|
391
|
-
exports.
|
|
392
|
-
class ReadOnlyViolationException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
368
|
+
};
|
|
369
|
+
exports.ReadOnlyViolationException = class ReadOnlyViolationException extends __BaseException {
|
|
393
370
|
name = "ReadOnlyViolationException";
|
|
394
371
|
$fault = "client";
|
|
395
372
|
detailedMessage;
|
|
@@ -406,9 +383,8 @@ class ReadOnlyViolationException extends NeptunedataServiceException_1.Neptuneda
|
|
|
406
383
|
this.requestId = opts.requestId;
|
|
407
384
|
this.code = opts.code;
|
|
408
385
|
}
|
|
409
|
-
}
|
|
410
|
-
exports.
|
|
411
|
-
class StatisticsNotAvailableException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
386
|
+
};
|
|
387
|
+
exports.StatisticsNotAvailableException = class StatisticsNotAvailableException extends __BaseException {
|
|
412
388
|
name = "StatisticsNotAvailableException";
|
|
413
389
|
$fault = "client";
|
|
414
390
|
detailedMessage;
|
|
@@ -425,9 +401,8 @@ class StatisticsNotAvailableException extends NeptunedataServiceException_1.Nept
|
|
|
425
401
|
this.requestId = opts.requestId;
|
|
426
402
|
this.code = opts.code;
|
|
427
403
|
}
|
|
428
|
-
}
|
|
429
|
-
exports.
|
|
430
|
-
class MethodNotAllowedException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
404
|
+
};
|
|
405
|
+
exports.MethodNotAllowedException = class MethodNotAllowedException extends __BaseException {
|
|
431
406
|
name = "MethodNotAllowedException";
|
|
432
407
|
$fault = "client";
|
|
433
408
|
detailedMessage;
|
|
@@ -444,9 +419,8 @@ class MethodNotAllowedException extends NeptunedataServiceException_1.Neptunedat
|
|
|
444
419
|
this.requestId = opts.requestId;
|
|
445
420
|
this.code = opts.code;
|
|
446
421
|
}
|
|
447
|
-
}
|
|
448
|
-
exports.
|
|
449
|
-
class ServerShutdownException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
422
|
+
};
|
|
423
|
+
exports.ServerShutdownException = class ServerShutdownException extends __BaseException {
|
|
450
424
|
name = "ServerShutdownException";
|
|
451
425
|
$fault = "server";
|
|
452
426
|
detailedMessage;
|
|
@@ -463,9 +437,8 @@ class ServerShutdownException extends NeptunedataServiceException_1.NeptunedataS
|
|
|
463
437
|
this.requestId = opts.requestId;
|
|
464
438
|
this.code = opts.code;
|
|
465
439
|
}
|
|
466
|
-
}
|
|
467
|
-
exports.
|
|
468
|
-
class CancelledByUserException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
440
|
+
};
|
|
441
|
+
exports.CancelledByUserException = class CancelledByUserException extends __BaseException {
|
|
469
442
|
name = "CancelledByUserException";
|
|
470
443
|
$fault = "server";
|
|
471
444
|
detailedMessage;
|
|
@@ -482,9 +455,8 @@ class CancelledByUserException extends NeptunedataServiceException_1.Neptunedata
|
|
|
482
455
|
this.requestId = opts.requestId;
|
|
483
456
|
this.code = opts.code;
|
|
484
457
|
}
|
|
485
|
-
}
|
|
486
|
-
exports.
|
|
487
|
-
class MalformedQueryException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
458
|
+
};
|
|
459
|
+
exports.MalformedQueryException = class MalformedQueryException extends __BaseException {
|
|
488
460
|
name = "MalformedQueryException";
|
|
489
461
|
$fault = "client";
|
|
490
462
|
detailedMessage;
|
|
@@ -501,9 +473,8 @@ class MalformedQueryException extends NeptunedataServiceException_1.NeptunedataS
|
|
|
501
473
|
this.requestId = opts.requestId;
|
|
502
474
|
this.code = opts.code;
|
|
503
475
|
}
|
|
504
|
-
}
|
|
505
|
-
exports.
|
|
506
|
-
class MemoryLimitExceededException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
476
|
+
};
|
|
477
|
+
exports.MemoryLimitExceededException = class MemoryLimitExceededException extends __BaseException {
|
|
507
478
|
name = "MemoryLimitExceededException";
|
|
508
479
|
$fault = "server";
|
|
509
480
|
$retryable = {};
|
|
@@ -521,9 +492,8 @@ class MemoryLimitExceededException extends NeptunedataServiceException_1.Neptune
|
|
|
521
492
|
this.requestId = opts.requestId;
|
|
522
493
|
this.code = opts.code;
|
|
523
494
|
}
|
|
524
|
-
}
|
|
525
|
-
exports.
|
|
526
|
-
class QueryLimitExceededException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
495
|
+
};
|
|
496
|
+
exports.QueryLimitExceededException = class QueryLimitExceededException extends __BaseException {
|
|
527
497
|
name = "QueryLimitExceededException";
|
|
528
498
|
$fault = "server";
|
|
529
499
|
$retryable = {};
|
|
@@ -541,9 +511,8 @@ class QueryLimitExceededException extends NeptunedataServiceException_1.Neptuned
|
|
|
541
511
|
this.requestId = opts.requestId;
|
|
542
512
|
this.code = opts.code;
|
|
543
513
|
}
|
|
544
|
-
}
|
|
545
|
-
exports.
|
|
546
|
-
class QueryLimitException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
514
|
+
};
|
|
515
|
+
exports.QueryLimitException = class QueryLimitException extends __BaseException {
|
|
547
516
|
name = "QueryLimitException";
|
|
548
517
|
$fault = "client";
|
|
549
518
|
detailedMessage;
|
|
@@ -560,9 +529,8 @@ class QueryLimitException extends NeptunedataServiceException_1.NeptunedataServi
|
|
|
560
529
|
this.requestId = opts.requestId;
|
|
561
530
|
this.code = opts.code;
|
|
562
531
|
}
|
|
563
|
-
}
|
|
564
|
-
exports.
|
|
565
|
-
class QueryTooLargeException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
532
|
+
};
|
|
533
|
+
exports.QueryTooLargeException = class QueryTooLargeException extends __BaseException {
|
|
566
534
|
name = "QueryTooLargeException";
|
|
567
535
|
$fault = "client";
|
|
568
536
|
detailedMessage;
|
|
@@ -579,9 +547,8 @@ class QueryTooLargeException extends NeptunedataServiceException_1.NeptunedataSe
|
|
|
579
547
|
this.requestId = opts.requestId;
|
|
580
548
|
this.code = opts.code;
|
|
581
549
|
}
|
|
582
|
-
}
|
|
583
|
-
exports.
|
|
584
|
-
class ExpiredStreamException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
550
|
+
};
|
|
551
|
+
exports.ExpiredStreamException = class ExpiredStreamException extends __BaseException {
|
|
585
552
|
name = "ExpiredStreamException";
|
|
586
553
|
$fault = "client";
|
|
587
554
|
detailedMessage;
|
|
@@ -598,9 +565,8 @@ class ExpiredStreamException extends NeptunedataServiceException_1.NeptunedataSe
|
|
|
598
565
|
this.requestId = opts.requestId;
|
|
599
566
|
this.code = opts.code;
|
|
600
567
|
}
|
|
601
|
-
}
|
|
602
|
-
exports.
|
|
603
|
-
class StreamRecordsNotFoundException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
568
|
+
};
|
|
569
|
+
exports.StreamRecordsNotFoundException = class StreamRecordsNotFoundException extends __BaseException {
|
|
604
570
|
name = "StreamRecordsNotFoundException";
|
|
605
571
|
$fault = "client";
|
|
606
572
|
detailedMessage;
|
|
@@ -617,9 +583,8 @@ class StreamRecordsNotFoundException extends NeptunedataServiceException_1.Neptu
|
|
|
617
583
|
this.requestId = opts.requestId;
|
|
618
584
|
this.code = opts.code;
|
|
619
585
|
}
|
|
620
|
-
}
|
|
621
|
-
exports.
|
|
622
|
-
class ThrottlingException extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
586
|
+
};
|
|
587
|
+
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
623
588
|
name = "ThrottlingException";
|
|
624
589
|
$fault = "server";
|
|
625
590
|
$retryable = {};
|
|
@@ -637,9 +602,8 @@ class ThrottlingException extends NeptunedataServiceException_1.NeptunedataServi
|
|
|
637
602
|
this.requestId = opts.requestId;
|
|
638
603
|
this.code = opts.code;
|
|
639
604
|
}
|
|
640
|
-
}
|
|
641
|
-
exports.
|
|
642
|
-
class S3Exception extends NeptunedataServiceException_1.NeptunedataServiceException {
|
|
605
|
+
};
|
|
606
|
+
exports.S3Exception = class S3Exception extends __BaseException {
|
|
643
607
|
name = "S3Exception";
|
|
644
608
|
$fault = "client";
|
|
645
609
|
$retryable = {};
|
|
@@ -657,5 +621,4 @@ class S3Exception extends NeptunedataServiceException_1.NeptunedataServiceExcept
|
|
|
657
621
|
this.requestId = opts.requestId;
|
|
658
622
|
this.code = opts.code;
|
|
659
623
|
}
|
|
660
|
-
}
|
|
661
|
-
exports.S3Exception = S3Exception;
|
|
624
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultNeptunedataHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2023-08-01",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultNeptunedataHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.neptunedata",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2023-08-01",
|
|
34
31
|
serviceTarget: "AmazonNeptuneDataplane",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "neptunedata",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|