@aws-sdk/client-fsx 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 +195 -215
- package/dist-cjs/models/FSxServiceException.js +4 -8
- package/dist-cjs/models/errors.js +81 -124
- 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 +716 -470
- package/package.json +8 -8
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.FSxServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class FSxServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.FSxServiceException = class FSxServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, FSxServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.FSxServiceException = FSxServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ResourceNotFound = exports.ResourceDoesNotSupportTagging = exports.NotServiceResourceError = exports.S3AccessPointAttachmentNotFound = exports.InvalidDataRepositoryType = exports.SnapshotNotFound = exports.FileCacheNotFound = exports.DataRepositoryAssociationNotFound = exports.BackupRestoring = exports.BackupBeingCopied = exports.StorageVirtualMachineNotFound = exports.MissingVolumeConfiguration = exports.MissingFileSystemConfiguration = exports.InvalidImportPath = exports.InvalidExportPath = exports.MissingFileCacheConfiguration = exports.InvalidPerUnitStorageThroughput = exports.InvalidNetworkSettings = exports.DataRepositoryTaskExecuting = exports.BackupInProgress = exports.VolumeNotFound = exports.TooManyAccessPoints = exports.InvalidRequest = exports.InvalidAccessPoint = exports.SourceBackupUnavailable = exports.ServiceLimitExceeded = exports.InvalidSourceKmsKey = exports.InvalidRegion = exports.InvalidDestinationKmsKey = exports.IncompatibleRegionForMultiAZ = exports.IncompatibleParameterError = exports.BackupNotFound = exports.UnsupportedOperation = exports.DataRepositoryTaskNotFound = exports.DataRepositoryTaskEnded = exports.InternalServerError = exports.FileSystemNotFound = exports.BadRequest = exports.ActiveDirectoryError = exports.AccessPointAlreadyOwnedByYou = void 0;
|
|
4
|
-
const FSxServiceException_1 = require("./FSxServiceException");
|
|
5
|
-
class AccessPointAlreadyOwnedByYou extends FSxServiceException_1.FSxServiceException {
|
|
1
|
+
const { FSxServiceException: __BaseException } = require("./FSxServiceException");
|
|
2
|
+
exports.AccessPointAlreadyOwnedByYou = class AccessPointAlreadyOwnedByYou extends __BaseException {
|
|
6
3
|
name = "AccessPointAlreadyOwnedByYou";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
ErrorCode;
|
|
@@ -17,9 +14,8 @@ class AccessPointAlreadyOwnedByYou extends FSxServiceException_1.FSxServiceExcep
|
|
|
17
14
|
this.ErrorCode = opts.ErrorCode;
|
|
18
15
|
this.Message = opts.Message;
|
|
19
16
|
}
|
|
20
|
-
}
|
|
21
|
-
exports.
|
|
22
|
-
class ActiveDirectoryError extends FSxServiceException_1.FSxServiceException {
|
|
17
|
+
};
|
|
18
|
+
exports.ActiveDirectoryError = class ActiveDirectoryError extends __BaseException {
|
|
23
19
|
name = "ActiveDirectoryError";
|
|
24
20
|
$fault = "client";
|
|
25
21
|
ActiveDirectoryId;
|
|
@@ -36,9 +32,8 @@ class ActiveDirectoryError extends FSxServiceException_1.FSxServiceException {
|
|
|
36
32
|
this.Type = opts.Type;
|
|
37
33
|
this.Message = opts.Message;
|
|
38
34
|
}
|
|
39
|
-
}
|
|
40
|
-
exports.
|
|
41
|
-
class BadRequest extends FSxServiceException_1.FSxServiceException {
|
|
35
|
+
};
|
|
36
|
+
exports.BadRequest = class BadRequest extends __BaseException {
|
|
42
37
|
name = "BadRequest";
|
|
43
38
|
$fault = "client";
|
|
44
39
|
Message;
|
|
@@ -51,9 +46,8 @@ class BadRequest extends FSxServiceException_1.FSxServiceException {
|
|
|
51
46
|
Object.setPrototypeOf(this, BadRequest.prototype);
|
|
52
47
|
this.Message = opts.Message;
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
exports.
|
|
56
|
-
class FileSystemNotFound extends FSxServiceException_1.FSxServiceException {
|
|
49
|
+
};
|
|
50
|
+
exports.FileSystemNotFound = class FileSystemNotFound extends __BaseException {
|
|
57
51
|
name = "FileSystemNotFound";
|
|
58
52
|
$fault = "client";
|
|
59
53
|
Message;
|
|
@@ -66,9 +60,8 @@ class FileSystemNotFound extends FSxServiceException_1.FSxServiceException {
|
|
|
66
60
|
Object.setPrototypeOf(this, FileSystemNotFound.prototype);
|
|
67
61
|
this.Message = opts.Message;
|
|
68
62
|
}
|
|
69
|
-
}
|
|
70
|
-
exports.
|
|
71
|
-
class InternalServerError extends FSxServiceException_1.FSxServiceException {
|
|
63
|
+
};
|
|
64
|
+
exports.InternalServerError = class InternalServerError extends __BaseException {
|
|
72
65
|
name = "InternalServerError";
|
|
73
66
|
$fault = "server";
|
|
74
67
|
Message;
|
|
@@ -81,9 +74,8 @@ class InternalServerError extends FSxServiceException_1.FSxServiceException {
|
|
|
81
74
|
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
82
75
|
this.Message = opts.Message;
|
|
83
76
|
}
|
|
84
|
-
}
|
|
85
|
-
exports.
|
|
86
|
-
class DataRepositoryTaskEnded extends FSxServiceException_1.FSxServiceException {
|
|
77
|
+
};
|
|
78
|
+
exports.DataRepositoryTaskEnded = class DataRepositoryTaskEnded extends __BaseException {
|
|
87
79
|
name = "DataRepositoryTaskEnded";
|
|
88
80
|
$fault = "client";
|
|
89
81
|
Message;
|
|
@@ -96,9 +88,8 @@ class DataRepositoryTaskEnded extends FSxServiceException_1.FSxServiceException
|
|
|
96
88
|
Object.setPrototypeOf(this, DataRepositoryTaskEnded.prototype);
|
|
97
89
|
this.Message = opts.Message;
|
|
98
90
|
}
|
|
99
|
-
}
|
|
100
|
-
exports.
|
|
101
|
-
class DataRepositoryTaskNotFound extends FSxServiceException_1.FSxServiceException {
|
|
91
|
+
};
|
|
92
|
+
exports.DataRepositoryTaskNotFound = class DataRepositoryTaskNotFound extends __BaseException {
|
|
102
93
|
name = "DataRepositoryTaskNotFound";
|
|
103
94
|
$fault = "client";
|
|
104
95
|
Message;
|
|
@@ -111,9 +102,8 @@ class DataRepositoryTaskNotFound extends FSxServiceException_1.FSxServiceExcepti
|
|
|
111
102
|
Object.setPrototypeOf(this, DataRepositoryTaskNotFound.prototype);
|
|
112
103
|
this.Message = opts.Message;
|
|
113
104
|
}
|
|
114
|
-
}
|
|
115
|
-
exports.
|
|
116
|
-
class UnsupportedOperation extends FSxServiceException_1.FSxServiceException {
|
|
105
|
+
};
|
|
106
|
+
exports.UnsupportedOperation = class UnsupportedOperation extends __BaseException {
|
|
117
107
|
name = "UnsupportedOperation";
|
|
118
108
|
$fault = "client";
|
|
119
109
|
Message;
|
|
@@ -126,9 +116,8 @@ class UnsupportedOperation extends FSxServiceException_1.FSxServiceException {
|
|
|
126
116
|
Object.setPrototypeOf(this, UnsupportedOperation.prototype);
|
|
127
117
|
this.Message = opts.Message;
|
|
128
118
|
}
|
|
129
|
-
}
|
|
130
|
-
exports.
|
|
131
|
-
class BackupNotFound extends FSxServiceException_1.FSxServiceException {
|
|
119
|
+
};
|
|
120
|
+
exports.BackupNotFound = class BackupNotFound extends __BaseException {
|
|
132
121
|
name = "BackupNotFound";
|
|
133
122
|
$fault = "client";
|
|
134
123
|
Message;
|
|
@@ -141,9 +130,8 @@ class BackupNotFound extends FSxServiceException_1.FSxServiceException {
|
|
|
141
130
|
Object.setPrototypeOf(this, BackupNotFound.prototype);
|
|
142
131
|
this.Message = opts.Message;
|
|
143
132
|
}
|
|
144
|
-
}
|
|
145
|
-
exports.
|
|
146
|
-
class IncompatibleParameterError extends FSxServiceException_1.FSxServiceException {
|
|
133
|
+
};
|
|
134
|
+
exports.IncompatibleParameterError = class IncompatibleParameterError extends __BaseException {
|
|
147
135
|
name = "IncompatibleParameterError";
|
|
148
136
|
$fault = "client";
|
|
149
137
|
Parameter;
|
|
@@ -158,9 +146,8 @@ class IncompatibleParameterError extends FSxServiceException_1.FSxServiceExcepti
|
|
|
158
146
|
this.Parameter = opts.Parameter;
|
|
159
147
|
this.Message = opts.Message;
|
|
160
148
|
}
|
|
161
|
-
}
|
|
162
|
-
exports.
|
|
163
|
-
class IncompatibleRegionForMultiAZ extends FSxServiceException_1.FSxServiceException {
|
|
149
|
+
};
|
|
150
|
+
exports.IncompatibleRegionForMultiAZ = class IncompatibleRegionForMultiAZ extends __BaseException {
|
|
164
151
|
name = "IncompatibleRegionForMultiAZ";
|
|
165
152
|
$fault = "client";
|
|
166
153
|
Message;
|
|
@@ -173,9 +160,8 @@ class IncompatibleRegionForMultiAZ extends FSxServiceException_1.FSxServiceExcep
|
|
|
173
160
|
Object.setPrototypeOf(this, IncompatibleRegionForMultiAZ.prototype);
|
|
174
161
|
this.Message = opts.Message;
|
|
175
162
|
}
|
|
176
|
-
}
|
|
177
|
-
exports.
|
|
178
|
-
class InvalidDestinationKmsKey extends FSxServiceException_1.FSxServiceException {
|
|
163
|
+
};
|
|
164
|
+
exports.InvalidDestinationKmsKey = class InvalidDestinationKmsKey extends __BaseException {
|
|
179
165
|
name = "InvalidDestinationKmsKey";
|
|
180
166
|
$fault = "client";
|
|
181
167
|
Message;
|
|
@@ -188,9 +174,8 @@ class InvalidDestinationKmsKey extends FSxServiceException_1.FSxServiceException
|
|
|
188
174
|
Object.setPrototypeOf(this, InvalidDestinationKmsKey.prototype);
|
|
189
175
|
this.Message = opts.Message;
|
|
190
176
|
}
|
|
191
|
-
}
|
|
192
|
-
exports.
|
|
193
|
-
class InvalidRegion extends FSxServiceException_1.FSxServiceException {
|
|
177
|
+
};
|
|
178
|
+
exports.InvalidRegion = class InvalidRegion extends __BaseException {
|
|
194
179
|
name = "InvalidRegion";
|
|
195
180
|
$fault = "client";
|
|
196
181
|
Message;
|
|
@@ -203,9 +188,8 @@ class InvalidRegion extends FSxServiceException_1.FSxServiceException {
|
|
|
203
188
|
Object.setPrototypeOf(this, InvalidRegion.prototype);
|
|
204
189
|
this.Message = opts.Message;
|
|
205
190
|
}
|
|
206
|
-
}
|
|
207
|
-
exports.
|
|
208
|
-
class InvalidSourceKmsKey extends FSxServiceException_1.FSxServiceException {
|
|
191
|
+
};
|
|
192
|
+
exports.InvalidSourceKmsKey = class InvalidSourceKmsKey extends __BaseException {
|
|
209
193
|
name = "InvalidSourceKmsKey";
|
|
210
194
|
$fault = "client";
|
|
211
195
|
Message;
|
|
@@ -218,9 +202,8 @@ class InvalidSourceKmsKey extends FSxServiceException_1.FSxServiceException {
|
|
|
218
202
|
Object.setPrototypeOf(this, InvalidSourceKmsKey.prototype);
|
|
219
203
|
this.Message = opts.Message;
|
|
220
204
|
}
|
|
221
|
-
}
|
|
222
|
-
exports.
|
|
223
|
-
class ServiceLimitExceeded extends FSxServiceException_1.FSxServiceException {
|
|
205
|
+
};
|
|
206
|
+
exports.ServiceLimitExceeded = class ServiceLimitExceeded extends __BaseException {
|
|
224
207
|
name = "ServiceLimitExceeded";
|
|
225
208
|
$fault = "client";
|
|
226
209
|
Limit;
|
|
@@ -235,9 +218,8 @@ class ServiceLimitExceeded extends FSxServiceException_1.FSxServiceException {
|
|
|
235
218
|
this.Limit = opts.Limit;
|
|
236
219
|
this.Message = opts.Message;
|
|
237
220
|
}
|
|
238
|
-
}
|
|
239
|
-
exports.
|
|
240
|
-
class SourceBackupUnavailable extends FSxServiceException_1.FSxServiceException {
|
|
221
|
+
};
|
|
222
|
+
exports.SourceBackupUnavailable = class SourceBackupUnavailable extends __BaseException {
|
|
241
223
|
name = "SourceBackupUnavailable";
|
|
242
224
|
$fault = "client";
|
|
243
225
|
Message;
|
|
@@ -252,9 +234,8 @@ class SourceBackupUnavailable extends FSxServiceException_1.FSxServiceException
|
|
|
252
234
|
this.Message = opts.Message;
|
|
253
235
|
this.BackupId = opts.BackupId;
|
|
254
236
|
}
|
|
255
|
-
}
|
|
256
|
-
exports.
|
|
257
|
-
class InvalidAccessPoint extends FSxServiceException_1.FSxServiceException {
|
|
237
|
+
};
|
|
238
|
+
exports.InvalidAccessPoint = class InvalidAccessPoint extends __BaseException {
|
|
258
239
|
name = "InvalidAccessPoint";
|
|
259
240
|
$fault = "client";
|
|
260
241
|
ErrorCode;
|
|
@@ -269,9 +250,8 @@ class InvalidAccessPoint extends FSxServiceException_1.FSxServiceException {
|
|
|
269
250
|
this.ErrorCode = opts.ErrorCode;
|
|
270
251
|
this.Message = opts.Message;
|
|
271
252
|
}
|
|
272
|
-
}
|
|
273
|
-
exports.
|
|
274
|
-
class InvalidRequest extends FSxServiceException_1.FSxServiceException {
|
|
253
|
+
};
|
|
254
|
+
exports.InvalidRequest = class InvalidRequest extends __BaseException {
|
|
275
255
|
name = "InvalidRequest";
|
|
276
256
|
$fault = "client";
|
|
277
257
|
ErrorCode;
|
|
@@ -286,9 +266,8 @@ class InvalidRequest extends FSxServiceException_1.FSxServiceException {
|
|
|
286
266
|
this.ErrorCode = opts.ErrorCode;
|
|
287
267
|
this.Message = opts.Message;
|
|
288
268
|
}
|
|
289
|
-
}
|
|
290
|
-
exports.
|
|
291
|
-
class TooManyAccessPoints extends FSxServiceException_1.FSxServiceException {
|
|
269
|
+
};
|
|
270
|
+
exports.TooManyAccessPoints = class TooManyAccessPoints extends __BaseException {
|
|
292
271
|
name = "TooManyAccessPoints";
|
|
293
272
|
$fault = "client";
|
|
294
273
|
ErrorCode;
|
|
@@ -303,9 +282,8 @@ class TooManyAccessPoints extends FSxServiceException_1.FSxServiceException {
|
|
|
303
282
|
this.ErrorCode = opts.ErrorCode;
|
|
304
283
|
this.Message = opts.Message;
|
|
305
284
|
}
|
|
306
|
-
}
|
|
307
|
-
exports.
|
|
308
|
-
class VolumeNotFound extends FSxServiceException_1.FSxServiceException {
|
|
285
|
+
};
|
|
286
|
+
exports.VolumeNotFound = class VolumeNotFound extends __BaseException {
|
|
309
287
|
name = "VolumeNotFound";
|
|
310
288
|
$fault = "client";
|
|
311
289
|
Message;
|
|
@@ -318,9 +296,8 @@ class VolumeNotFound extends FSxServiceException_1.FSxServiceException {
|
|
|
318
296
|
Object.setPrototypeOf(this, VolumeNotFound.prototype);
|
|
319
297
|
this.Message = opts.Message;
|
|
320
298
|
}
|
|
321
|
-
}
|
|
322
|
-
exports.
|
|
323
|
-
class BackupInProgress extends FSxServiceException_1.FSxServiceException {
|
|
299
|
+
};
|
|
300
|
+
exports.BackupInProgress = class BackupInProgress extends __BaseException {
|
|
324
301
|
name = "BackupInProgress";
|
|
325
302
|
$fault = "client";
|
|
326
303
|
Message;
|
|
@@ -333,9 +310,8 @@ class BackupInProgress extends FSxServiceException_1.FSxServiceException {
|
|
|
333
310
|
Object.setPrototypeOf(this, BackupInProgress.prototype);
|
|
334
311
|
this.Message = opts.Message;
|
|
335
312
|
}
|
|
336
|
-
}
|
|
337
|
-
exports.
|
|
338
|
-
class DataRepositoryTaskExecuting extends FSxServiceException_1.FSxServiceException {
|
|
313
|
+
};
|
|
314
|
+
exports.DataRepositoryTaskExecuting = class DataRepositoryTaskExecuting extends __BaseException {
|
|
339
315
|
name = "DataRepositoryTaskExecuting";
|
|
340
316
|
$fault = "client";
|
|
341
317
|
Message;
|
|
@@ -348,9 +324,8 @@ class DataRepositoryTaskExecuting extends FSxServiceException_1.FSxServiceExcept
|
|
|
348
324
|
Object.setPrototypeOf(this, DataRepositoryTaskExecuting.prototype);
|
|
349
325
|
this.Message = opts.Message;
|
|
350
326
|
}
|
|
351
|
-
}
|
|
352
|
-
exports.
|
|
353
|
-
class InvalidNetworkSettings extends FSxServiceException_1.FSxServiceException {
|
|
327
|
+
};
|
|
328
|
+
exports.InvalidNetworkSettings = class InvalidNetworkSettings extends __BaseException {
|
|
354
329
|
name = "InvalidNetworkSettings";
|
|
355
330
|
$fault = "client";
|
|
356
331
|
Message;
|
|
@@ -369,9 +344,8 @@ class InvalidNetworkSettings extends FSxServiceException_1.FSxServiceException {
|
|
|
369
344
|
this.InvalidSecurityGroupId = opts.InvalidSecurityGroupId;
|
|
370
345
|
this.InvalidRouteTableId = opts.InvalidRouteTableId;
|
|
371
346
|
}
|
|
372
|
-
}
|
|
373
|
-
exports.
|
|
374
|
-
class InvalidPerUnitStorageThroughput extends FSxServiceException_1.FSxServiceException {
|
|
347
|
+
};
|
|
348
|
+
exports.InvalidPerUnitStorageThroughput = class InvalidPerUnitStorageThroughput extends __BaseException {
|
|
375
349
|
name = "InvalidPerUnitStorageThroughput";
|
|
376
350
|
$fault = "client";
|
|
377
351
|
Message;
|
|
@@ -384,9 +358,8 @@ class InvalidPerUnitStorageThroughput extends FSxServiceException_1.FSxServiceEx
|
|
|
384
358
|
Object.setPrototypeOf(this, InvalidPerUnitStorageThroughput.prototype);
|
|
385
359
|
this.Message = opts.Message;
|
|
386
360
|
}
|
|
387
|
-
}
|
|
388
|
-
exports.
|
|
389
|
-
class MissingFileCacheConfiguration extends FSxServiceException_1.FSxServiceException {
|
|
361
|
+
};
|
|
362
|
+
exports.MissingFileCacheConfiguration = class MissingFileCacheConfiguration extends __BaseException {
|
|
390
363
|
name = "MissingFileCacheConfiguration";
|
|
391
364
|
$fault = "client";
|
|
392
365
|
Message;
|
|
@@ -399,9 +372,8 @@ class MissingFileCacheConfiguration extends FSxServiceException_1.FSxServiceExce
|
|
|
399
372
|
Object.setPrototypeOf(this, MissingFileCacheConfiguration.prototype);
|
|
400
373
|
this.Message = opts.Message;
|
|
401
374
|
}
|
|
402
|
-
}
|
|
403
|
-
exports.
|
|
404
|
-
class InvalidExportPath extends FSxServiceException_1.FSxServiceException {
|
|
375
|
+
};
|
|
376
|
+
exports.InvalidExportPath = class InvalidExportPath extends __BaseException {
|
|
405
377
|
name = "InvalidExportPath";
|
|
406
378
|
$fault = "client";
|
|
407
379
|
Message;
|
|
@@ -414,9 +386,8 @@ class InvalidExportPath extends FSxServiceException_1.FSxServiceException {
|
|
|
414
386
|
Object.setPrototypeOf(this, InvalidExportPath.prototype);
|
|
415
387
|
this.Message = opts.Message;
|
|
416
388
|
}
|
|
417
|
-
}
|
|
418
|
-
exports.
|
|
419
|
-
class InvalidImportPath extends FSxServiceException_1.FSxServiceException {
|
|
389
|
+
};
|
|
390
|
+
exports.InvalidImportPath = class InvalidImportPath extends __BaseException {
|
|
420
391
|
name = "InvalidImportPath";
|
|
421
392
|
$fault = "client";
|
|
422
393
|
Message;
|
|
@@ -429,9 +400,8 @@ class InvalidImportPath extends FSxServiceException_1.FSxServiceException {
|
|
|
429
400
|
Object.setPrototypeOf(this, InvalidImportPath.prototype);
|
|
430
401
|
this.Message = opts.Message;
|
|
431
402
|
}
|
|
432
|
-
}
|
|
433
|
-
exports.
|
|
434
|
-
class MissingFileSystemConfiguration extends FSxServiceException_1.FSxServiceException {
|
|
403
|
+
};
|
|
404
|
+
exports.MissingFileSystemConfiguration = class MissingFileSystemConfiguration extends __BaseException {
|
|
435
405
|
name = "MissingFileSystemConfiguration";
|
|
436
406
|
$fault = "client";
|
|
437
407
|
Message;
|
|
@@ -444,9 +414,8 @@ class MissingFileSystemConfiguration extends FSxServiceException_1.FSxServiceExc
|
|
|
444
414
|
Object.setPrototypeOf(this, MissingFileSystemConfiguration.prototype);
|
|
445
415
|
this.Message = opts.Message;
|
|
446
416
|
}
|
|
447
|
-
}
|
|
448
|
-
exports.
|
|
449
|
-
class MissingVolumeConfiguration extends FSxServiceException_1.FSxServiceException {
|
|
417
|
+
};
|
|
418
|
+
exports.MissingVolumeConfiguration = class MissingVolumeConfiguration extends __BaseException {
|
|
450
419
|
name = "MissingVolumeConfiguration";
|
|
451
420
|
$fault = "client";
|
|
452
421
|
Message;
|
|
@@ -459,9 +428,8 @@ class MissingVolumeConfiguration extends FSxServiceException_1.FSxServiceExcepti
|
|
|
459
428
|
Object.setPrototypeOf(this, MissingVolumeConfiguration.prototype);
|
|
460
429
|
this.Message = opts.Message;
|
|
461
430
|
}
|
|
462
|
-
}
|
|
463
|
-
exports.
|
|
464
|
-
class StorageVirtualMachineNotFound extends FSxServiceException_1.FSxServiceException {
|
|
431
|
+
};
|
|
432
|
+
exports.StorageVirtualMachineNotFound = class StorageVirtualMachineNotFound extends __BaseException {
|
|
465
433
|
name = "StorageVirtualMachineNotFound";
|
|
466
434
|
$fault = "client";
|
|
467
435
|
Message;
|
|
@@ -474,9 +442,8 @@ class StorageVirtualMachineNotFound extends FSxServiceException_1.FSxServiceExce
|
|
|
474
442
|
Object.setPrototypeOf(this, StorageVirtualMachineNotFound.prototype);
|
|
475
443
|
this.Message = opts.Message;
|
|
476
444
|
}
|
|
477
|
-
}
|
|
478
|
-
exports.
|
|
479
|
-
class BackupBeingCopied extends FSxServiceException_1.FSxServiceException {
|
|
445
|
+
};
|
|
446
|
+
exports.BackupBeingCopied = class BackupBeingCopied extends __BaseException {
|
|
480
447
|
name = "BackupBeingCopied";
|
|
481
448
|
$fault = "client";
|
|
482
449
|
Message;
|
|
@@ -491,9 +458,8 @@ class BackupBeingCopied extends FSxServiceException_1.FSxServiceException {
|
|
|
491
458
|
this.Message = opts.Message;
|
|
492
459
|
this.BackupId = opts.BackupId;
|
|
493
460
|
}
|
|
494
|
-
}
|
|
495
|
-
exports.
|
|
496
|
-
class BackupRestoring extends FSxServiceException_1.FSxServiceException {
|
|
461
|
+
};
|
|
462
|
+
exports.BackupRestoring = class BackupRestoring extends __BaseException {
|
|
497
463
|
name = "BackupRestoring";
|
|
498
464
|
$fault = "client";
|
|
499
465
|
Message;
|
|
@@ -508,9 +474,8 @@ class BackupRestoring extends FSxServiceException_1.FSxServiceException {
|
|
|
508
474
|
this.Message = opts.Message;
|
|
509
475
|
this.FileSystemId = opts.FileSystemId;
|
|
510
476
|
}
|
|
511
|
-
}
|
|
512
|
-
exports.
|
|
513
|
-
class DataRepositoryAssociationNotFound extends FSxServiceException_1.FSxServiceException {
|
|
477
|
+
};
|
|
478
|
+
exports.DataRepositoryAssociationNotFound = class DataRepositoryAssociationNotFound extends __BaseException {
|
|
514
479
|
name = "DataRepositoryAssociationNotFound";
|
|
515
480
|
$fault = "client";
|
|
516
481
|
Message;
|
|
@@ -523,9 +488,8 @@ class DataRepositoryAssociationNotFound extends FSxServiceException_1.FSxService
|
|
|
523
488
|
Object.setPrototypeOf(this, DataRepositoryAssociationNotFound.prototype);
|
|
524
489
|
this.Message = opts.Message;
|
|
525
490
|
}
|
|
526
|
-
}
|
|
527
|
-
exports.
|
|
528
|
-
class FileCacheNotFound extends FSxServiceException_1.FSxServiceException {
|
|
491
|
+
};
|
|
492
|
+
exports.FileCacheNotFound = class FileCacheNotFound extends __BaseException {
|
|
529
493
|
name = "FileCacheNotFound";
|
|
530
494
|
$fault = "client";
|
|
531
495
|
Message;
|
|
@@ -538,9 +502,8 @@ class FileCacheNotFound extends FSxServiceException_1.FSxServiceException {
|
|
|
538
502
|
Object.setPrototypeOf(this, FileCacheNotFound.prototype);
|
|
539
503
|
this.Message = opts.Message;
|
|
540
504
|
}
|
|
541
|
-
}
|
|
542
|
-
exports.
|
|
543
|
-
class SnapshotNotFound extends FSxServiceException_1.FSxServiceException {
|
|
505
|
+
};
|
|
506
|
+
exports.SnapshotNotFound = class SnapshotNotFound extends __BaseException {
|
|
544
507
|
name = "SnapshotNotFound";
|
|
545
508
|
$fault = "client";
|
|
546
509
|
Message;
|
|
@@ -553,9 +516,8 @@ class SnapshotNotFound extends FSxServiceException_1.FSxServiceException {
|
|
|
553
516
|
Object.setPrototypeOf(this, SnapshotNotFound.prototype);
|
|
554
517
|
this.Message = opts.Message;
|
|
555
518
|
}
|
|
556
|
-
}
|
|
557
|
-
exports.
|
|
558
|
-
class InvalidDataRepositoryType extends FSxServiceException_1.FSxServiceException {
|
|
519
|
+
};
|
|
520
|
+
exports.InvalidDataRepositoryType = class InvalidDataRepositoryType extends __BaseException {
|
|
559
521
|
name = "InvalidDataRepositoryType";
|
|
560
522
|
$fault = "client";
|
|
561
523
|
Message;
|
|
@@ -568,9 +530,8 @@ class InvalidDataRepositoryType extends FSxServiceException_1.FSxServiceExceptio
|
|
|
568
530
|
Object.setPrototypeOf(this, InvalidDataRepositoryType.prototype);
|
|
569
531
|
this.Message = opts.Message;
|
|
570
532
|
}
|
|
571
|
-
}
|
|
572
|
-
exports.
|
|
573
|
-
class S3AccessPointAttachmentNotFound extends FSxServiceException_1.FSxServiceException {
|
|
533
|
+
};
|
|
534
|
+
exports.S3AccessPointAttachmentNotFound = class S3AccessPointAttachmentNotFound extends __BaseException {
|
|
574
535
|
name = "S3AccessPointAttachmentNotFound";
|
|
575
536
|
$fault = "client";
|
|
576
537
|
Message;
|
|
@@ -583,9 +544,8 @@ class S3AccessPointAttachmentNotFound extends FSxServiceException_1.FSxServiceEx
|
|
|
583
544
|
Object.setPrototypeOf(this, S3AccessPointAttachmentNotFound.prototype);
|
|
584
545
|
this.Message = opts.Message;
|
|
585
546
|
}
|
|
586
|
-
}
|
|
587
|
-
exports.
|
|
588
|
-
class NotServiceResourceError extends FSxServiceException_1.FSxServiceException {
|
|
547
|
+
};
|
|
548
|
+
exports.NotServiceResourceError = class NotServiceResourceError extends __BaseException {
|
|
589
549
|
name = "NotServiceResourceError";
|
|
590
550
|
$fault = "client";
|
|
591
551
|
ResourceARN;
|
|
@@ -600,9 +560,8 @@ class NotServiceResourceError extends FSxServiceException_1.FSxServiceException
|
|
|
600
560
|
this.ResourceARN = opts.ResourceARN;
|
|
601
561
|
this.Message = opts.Message;
|
|
602
562
|
}
|
|
603
|
-
}
|
|
604
|
-
exports.
|
|
605
|
-
class ResourceDoesNotSupportTagging extends FSxServiceException_1.FSxServiceException {
|
|
563
|
+
};
|
|
564
|
+
exports.ResourceDoesNotSupportTagging = class ResourceDoesNotSupportTagging extends __BaseException {
|
|
606
565
|
name = "ResourceDoesNotSupportTagging";
|
|
607
566
|
$fault = "client";
|
|
608
567
|
ResourceARN;
|
|
@@ -617,9 +576,8 @@ class ResourceDoesNotSupportTagging extends FSxServiceException_1.FSxServiceExce
|
|
|
617
576
|
this.ResourceARN = opts.ResourceARN;
|
|
618
577
|
this.Message = opts.Message;
|
|
619
578
|
}
|
|
620
|
-
}
|
|
621
|
-
exports.
|
|
622
|
-
class ResourceNotFound extends FSxServiceException_1.FSxServiceException {
|
|
579
|
+
};
|
|
580
|
+
exports.ResourceNotFound = class ResourceNotFound extends __BaseException {
|
|
623
581
|
name = "ResourceNotFound";
|
|
624
582
|
$fault = "client";
|
|
625
583
|
ResourceARN;
|
|
@@ -634,5 +592,4 @@ class ResourceNotFound extends FSxServiceException_1.FSxServiceException {
|
|
|
634
592
|
this.ResourceARN = opts.ResourceARN;
|
|
635
593
|
this.Message = opts.Message;
|
|
636
594
|
}
|
|
637
|
-
}
|
|
638
|
-
exports.ResourceNotFound = ResourceNotFound;
|
|
595
|
+
};
|
|
@@ -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;
|