@aws-sdk/client-directory-service 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 +303 -323
- package/dist-cjs/models/DirectoryServiceServiceException.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 +677 -436
- package/package.json +9 -9
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.DirectoryServiceServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class DirectoryServiceServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.DirectoryServiceServiceException = class DirectoryServiceServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, DirectoryServiceServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.DirectoryServiceServiceException = DirectoryServiceServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.UnsupportedSettingsException = exports.IncompatibleSettingsException = exports.DomainControllerLimitExceededException = exports.ShareLimitExceededException = exports.OrganizationsException = exports.InvalidTargetException = exports.UserDoesNotExistException = exports.InvalidPasswordException = exports.InvalidCertificateException = exports.NoAvailableCertificateException = exports.EnableAlreadyInProgressException = exports.InvalidLDAPSStatusException = exports.InvalidClientAuthStatusException = exports.DisableAlreadyInProgressException = exports.DirectoryNotSharedException = exports.DirectoryInDesiredStateException = exports.InvalidNextTokenException = exports.SnapshotLimitExceededException = exports.InsufficientPermissionsException = exports.DirectoryLimitExceededException = exports.CertificateLimitExceededException = exports.CertificateInUseException = exports.CertificateDoesNotExistException = exports.CertificateAlreadyExistsException = exports.AuthenticationFailedException = exports.TagLimitExceededException = exports.UnsupportedOperationException = exports.RegionLimitExceededException = exports.DirectoryDoesNotExistException = exports.DirectoryAlreadyInRegionException = exports.IpRouteLimitExceededException = exports.EntityAlreadyExistsException = exports.DirectoryUnavailableException = exports.ADAssessmentLimitExceededException = exports.AccessDeniedException = exports.ServiceException = exports.InvalidParameterException = exports.EntityDoesNotExistException = exports.DirectoryAlreadySharedException = exports.ClientException = void 0;
|
|
4
|
-
const DirectoryServiceServiceException_1 = require("./DirectoryServiceServiceException");
|
|
5
|
-
class ClientException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
1
|
+
const { DirectoryServiceServiceException: __BaseException } = require("./DirectoryServiceServiceException");
|
|
2
|
+
exports.ClientException = class ClientException extends __BaseException {
|
|
6
3
|
name = "ClientException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Message;
|
|
@@ -17,9 +14,8 @@ class ClientException extends DirectoryServiceServiceException_1.DirectoryServic
|
|
|
17
14
|
this.Message = opts.Message;
|
|
18
15
|
this.RequestId = opts.RequestId;
|
|
19
16
|
}
|
|
20
|
-
}
|
|
21
|
-
exports.
|
|
22
|
-
class DirectoryAlreadySharedException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
17
|
+
};
|
|
18
|
+
exports.DirectoryAlreadySharedException = class DirectoryAlreadySharedException extends __BaseException {
|
|
23
19
|
name = "DirectoryAlreadySharedException";
|
|
24
20
|
$fault = "client";
|
|
25
21
|
Message;
|
|
@@ -34,9 +30,8 @@ class DirectoryAlreadySharedException extends DirectoryServiceServiceException_1
|
|
|
34
30
|
this.Message = opts.Message;
|
|
35
31
|
this.RequestId = opts.RequestId;
|
|
36
32
|
}
|
|
37
|
-
}
|
|
38
|
-
exports.
|
|
39
|
-
class EntityDoesNotExistException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
33
|
+
};
|
|
34
|
+
exports.EntityDoesNotExistException = class EntityDoesNotExistException extends __BaseException {
|
|
40
35
|
name = "EntityDoesNotExistException";
|
|
41
36
|
$fault = "client";
|
|
42
37
|
Message;
|
|
@@ -51,9 +46,8 @@ class EntityDoesNotExistException extends DirectoryServiceServiceException_1.Dir
|
|
|
51
46
|
this.Message = opts.Message;
|
|
52
47
|
this.RequestId = opts.RequestId;
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
exports.
|
|
56
|
-
class InvalidParameterException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
49
|
+
};
|
|
50
|
+
exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
|
|
57
51
|
name = "InvalidParameterException";
|
|
58
52
|
$fault = "client";
|
|
59
53
|
Message;
|
|
@@ -68,9 +62,8 @@ class InvalidParameterException extends DirectoryServiceServiceException_1.Direc
|
|
|
68
62
|
this.Message = opts.Message;
|
|
69
63
|
this.RequestId = opts.RequestId;
|
|
70
64
|
}
|
|
71
|
-
}
|
|
72
|
-
exports.
|
|
73
|
-
class ServiceException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
65
|
+
};
|
|
66
|
+
exports.ServiceException = class ServiceException extends __BaseException {
|
|
74
67
|
name = "ServiceException";
|
|
75
68
|
$fault = "server";
|
|
76
69
|
Message;
|
|
@@ -85,9 +78,8 @@ class ServiceException extends DirectoryServiceServiceException_1.DirectoryServi
|
|
|
85
78
|
this.Message = opts.Message;
|
|
86
79
|
this.RequestId = opts.RequestId;
|
|
87
80
|
}
|
|
88
|
-
}
|
|
89
|
-
exports.
|
|
90
|
-
class AccessDeniedException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
81
|
+
};
|
|
82
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
91
83
|
name = "AccessDeniedException";
|
|
92
84
|
$fault = "client";
|
|
93
85
|
Message;
|
|
@@ -102,9 +94,8 @@ class AccessDeniedException extends DirectoryServiceServiceException_1.Directory
|
|
|
102
94
|
this.Message = opts.Message;
|
|
103
95
|
this.RequestId = opts.RequestId;
|
|
104
96
|
}
|
|
105
|
-
}
|
|
106
|
-
exports.
|
|
107
|
-
class ADAssessmentLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
97
|
+
};
|
|
98
|
+
exports.ADAssessmentLimitExceededException = class ADAssessmentLimitExceededException extends __BaseException {
|
|
108
99
|
name = "ADAssessmentLimitExceededException";
|
|
109
100
|
$fault = "client";
|
|
110
101
|
Message;
|
|
@@ -119,9 +110,8 @@ class ADAssessmentLimitExceededException extends DirectoryServiceServiceExceptio
|
|
|
119
110
|
this.Message = opts.Message;
|
|
120
111
|
this.RequestId = opts.RequestId;
|
|
121
112
|
}
|
|
122
|
-
}
|
|
123
|
-
exports.
|
|
124
|
-
class DirectoryUnavailableException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
113
|
+
};
|
|
114
|
+
exports.DirectoryUnavailableException = class DirectoryUnavailableException extends __BaseException {
|
|
125
115
|
name = "DirectoryUnavailableException";
|
|
126
116
|
$fault = "client";
|
|
127
117
|
Message;
|
|
@@ -136,9 +126,8 @@ class DirectoryUnavailableException extends DirectoryServiceServiceException_1.D
|
|
|
136
126
|
this.Message = opts.Message;
|
|
137
127
|
this.RequestId = opts.RequestId;
|
|
138
128
|
}
|
|
139
|
-
}
|
|
140
|
-
exports.
|
|
141
|
-
class EntityAlreadyExistsException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
129
|
+
};
|
|
130
|
+
exports.EntityAlreadyExistsException = class EntityAlreadyExistsException extends __BaseException {
|
|
142
131
|
name = "EntityAlreadyExistsException";
|
|
143
132
|
$fault = "client";
|
|
144
133
|
Message;
|
|
@@ -153,9 +142,8 @@ class EntityAlreadyExistsException extends DirectoryServiceServiceException_1.Di
|
|
|
153
142
|
this.Message = opts.Message;
|
|
154
143
|
this.RequestId = opts.RequestId;
|
|
155
144
|
}
|
|
156
|
-
}
|
|
157
|
-
exports.
|
|
158
|
-
class IpRouteLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
145
|
+
};
|
|
146
|
+
exports.IpRouteLimitExceededException = class IpRouteLimitExceededException extends __BaseException {
|
|
159
147
|
name = "IpRouteLimitExceededException";
|
|
160
148
|
$fault = "client";
|
|
161
149
|
Message;
|
|
@@ -170,9 +158,8 @@ class IpRouteLimitExceededException extends DirectoryServiceServiceException_1.D
|
|
|
170
158
|
this.Message = opts.Message;
|
|
171
159
|
this.RequestId = opts.RequestId;
|
|
172
160
|
}
|
|
173
|
-
}
|
|
174
|
-
exports.
|
|
175
|
-
class DirectoryAlreadyInRegionException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
161
|
+
};
|
|
162
|
+
exports.DirectoryAlreadyInRegionException = class DirectoryAlreadyInRegionException extends __BaseException {
|
|
176
163
|
name = "DirectoryAlreadyInRegionException";
|
|
177
164
|
$fault = "client";
|
|
178
165
|
Message;
|
|
@@ -187,9 +174,8 @@ class DirectoryAlreadyInRegionException extends DirectoryServiceServiceException
|
|
|
187
174
|
this.Message = opts.Message;
|
|
188
175
|
this.RequestId = opts.RequestId;
|
|
189
176
|
}
|
|
190
|
-
}
|
|
191
|
-
exports.
|
|
192
|
-
class DirectoryDoesNotExistException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
177
|
+
};
|
|
178
|
+
exports.DirectoryDoesNotExistException = class DirectoryDoesNotExistException extends __BaseException {
|
|
193
179
|
name = "DirectoryDoesNotExistException";
|
|
194
180
|
$fault = "client";
|
|
195
181
|
Message;
|
|
@@ -204,9 +190,8 @@ class DirectoryDoesNotExistException extends DirectoryServiceServiceException_1.
|
|
|
204
190
|
this.Message = opts.Message;
|
|
205
191
|
this.RequestId = opts.RequestId;
|
|
206
192
|
}
|
|
207
|
-
}
|
|
208
|
-
exports.
|
|
209
|
-
class RegionLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
193
|
+
};
|
|
194
|
+
exports.RegionLimitExceededException = class RegionLimitExceededException extends __BaseException {
|
|
210
195
|
name = "RegionLimitExceededException";
|
|
211
196
|
$fault = "client";
|
|
212
197
|
Message;
|
|
@@ -221,9 +206,8 @@ class RegionLimitExceededException extends DirectoryServiceServiceException_1.Di
|
|
|
221
206
|
this.Message = opts.Message;
|
|
222
207
|
this.RequestId = opts.RequestId;
|
|
223
208
|
}
|
|
224
|
-
}
|
|
225
|
-
exports.
|
|
226
|
-
class UnsupportedOperationException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
209
|
+
};
|
|
210
|
+
exports.UnsupportedOperationException = class UnsupportedOperationException extends __BaseException {
|
|
227
211
|
name = "UnsupportedOperationException";
|
|
228
212
|
$fault = "client";
|
|
229
213
|
Message;
|
|
@@ -238,9 +222,8 @@ class UnsupportedOperationException extends DirectoryServiceServiceException_1.D
|
|
|
238
222
|
this.Message = opts.Message;
|
|
239
223
|
this.RequestId = opts.RequestId;
|
|
240
224
|
}
|
|
241
|
-
}
|
|
242
|
-
exports.
|
|
243
|
-
class TagLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
225
|
+
};
|
|
226
|
+
exports.TagLimitExceededException = class TagLimitExceededException extends __BaseException {
|
|
244
227
|
name = "TagLimitExceededException";
|
|
245
228
|
$fault = "client";
|
|
246
229
|
Message;
|
|
@@ -255,9 +238,8 @@ class TagLimitExceededException extends DirectoryServiceServiceException_1.Direc
|
|
|
255
238
|
this.Message = opts.Message;
|
|
256
239
|
this.RequestId = opts.RequestId;
|
|
257
240
|
}
|
|
258
|
-
}
|
|
259
|
-
exports.
|
|
260
|
-
class AuthenticationFailedException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
241
|
+
};
|
|
242
|
+
exports.AuthenticationFailedException = class AuthenticationFailedException extends __BaseException {
|
|
261
243
|
name = "AuthenticationFailedException";
|
|
262
244
|
$fault = "client";
|
|
263
245
|
Message;
|
|
@@ -272,9 +254,8 @@ class AuthenticationFailedException extends DirectoryServiceServiceException_1.D
|
|
|
272
254
|
this.Message = opts.Message;
|
|
273
255
|
this.RequestId = opts.RequestId;
|
|
274
256
|
}
|
|
275
|
-
}
|
|
276
|
-
exports.
|
|
277
|
-
class CertificateAlreadyExistsException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
257
|
+
};
|
|
258
|
+
exports.CertificateAlreadyExistsException = class CertificateAlreadyExistsException extends __BaseException {
|
|
278
259
|
name = "CertificateAlreadyExistsException";
|
|
279
260
|
$fault = "client";
|
|
280
261
|
Message;
|
|
@@ -289,9 +270,8 @@ class CertificateAlreadyExistsException extends DirectoryServiceServiceException
|
|
|
289
270
|
this.Message = opts.Message;
|
|
290
271
|
this.RequestId = opts.RequestId;
|
|
291
272
|
}
|
|
292
|
-
}
|
|
293
|
-
exports.
|
|
294
|
-
class CertificateDoesNotExistException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
273
|
+
};
|
|
274
|
+
exports.CertificateDoesNotExistException = class CertificateDoesNotExistException extends __BaseException {
|
|
295
275
|
name = "CertificateDoesNotExistException";
|
|
296
276
|
$fault = "client";
|
|
297
277
|
Message;
|
|
@@ -306,9 +286,8 @@ class CertificateDoesNotExistException extends DirectoryServiceServiceException_
|
|
|
306
286
|
this.Message = opts.Message;
|
|
307
287
|
this.RequestId = opts.RequestId;
|
|
308
288
|
}
|
|
309
|
-
}
|
|
310
|
-
exports.
|
|
311
|
-
class CertificateInUseException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
289
|
+
};
|
|
290
|
+
exports.CertificateInUseException = class CertificateInUseException extends __BaseException {
|
|
312
291
|
name = "CertificateInUseException";
|
|
313
292
|
$fault = "client";
|
|
314
293
|
Message;
|
|
@@ -323,9 +302,8 @@ class CertificateInUseException extends DirectoryServiceServiceException_1.Direc
|
|
|
323
302
|
this.Message = opts.Message;
|
|
324
303
|
this.RequestId = opts.RequestId;
|
|
325
304
|
}
|
|
326
|
-
}
|
|
327
|
-
exports.
|
|
328
|
-
class CertificateLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
305
|
+
};
|
|
306
|
+
exports.CertificateLimitExceededException = class CertificateLimitExceededException extends __BaseException {
|
|
329
307
|
name = "CertificateLimitExceededException";
|
|
330
308
|
$fault = "client";
|
|
331
309
|
Message;
|
|
@@ -340,9 +318,8 @@ class CertificateLimitExceededException extends DirectoryServiceServiceException
|
|
|
340
318
|
this.Message = opts.Message;
|
|
341
319
|
this.RequestId = opts.RequestId;
|
|
342
320
|
}
|
|
343
|
-
}
|
|
344
|
-
exports.
|
|
345
|
-
class DirectoryLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
321
|
+
};
|
|
322
|
+
exports.DirectoryLimitExceededException = class DirectoryLimitExceededException extends __BaseException {
|
|
346
323
|
name = "DirectoryLimitExceededException";
|
|
347
324
|
$fault = "client";
|
|
348
325
|
Message;
|
|
@@ -357,9 +334,8 @@ class DirectoryLimitExceededException extends DirectoryServiceServiceException_1
|
|
|
357
334
|
this.Message = opts.Message;
|
|
358
335
|
this.RequestId = opts.RequestId;
|
|
359
336
|
}
|
|
360
|
-
}
|
|
361
|
-
exports.
|
|
362
|
-
class InsufficientPermissionsException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
337
|
+
};
|
|
338
|
+
exports.InsufficientPermissionsException = class InsufficientPermissionsException extends __BaseException {
|
|
363
339
|
name = "InsufficientPermissionsException";
|
|
364
340
|
$fault = "client";
|
|
365
341
|
Message;
|
|
@@ -374,9 +350,8 @@ class InsufficientPermissionsException extends DirectoryServiceServiceException_
|
|
|
374
350
|
this.Message = opts.Message;
|
|
375
351
|
this.RequestId = opts.RequestId;
|
|
376
352
|
}
|
|
377
|
-
}
|
|
378
|
-
exports.
|
|
379
|
-
class SnapshotLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
353
|
+
};
|
|
354
|
+
exports.SnapshotLimitExceededException = class SnapshotLimitExceededException extends __BaseException {
|
|
380
355
|
name = "SnapshotLimitExceededException";
|
|
381
356
|
$fault = "client";
|
|
382
357
|
Message;
|
|
@@ -391,9 +366,8 @@ class SnapshotLimitExceededException extends DirectoryServiceServiceException_1.
|
|
|
391
366
|
this.Message = opts.Message;
|
|
392
367
|
this.RequestId = opts.RequestId;
|
|
393
368
|
}
|
|
394
|
-
}
|
|
395
|
-
exports.
|
|
396
|
-
class InvalidNextTokenException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
369
|
+
};
|
|
370
|
+
exports.InvalidNextTokenException = class InvalidNextTokenException extends __BaseException {
|
|
397
371
|
name = "InvalidNextTokenException";
|
|
398
372
|
$fault = "client";
|
|
399
373
|
Message;
|
|
@@ -408,9 +382,8 @@ class InvalidNextTokenException extends DirectoryServiceServiceException_1.Direc
|
|
|
408
382
|
this.Message = opts.Message;
|
|
409
383
|
this.RequestId = opts.RequestId;
|
|
410
384
|
}
|
|
411
|
-
}
|
|
412
|
-
exports.
|
|
413
|
-
class DirectoryInDesiredStateException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
385
|
+
};
|
|
386
|
+
exports.DirectoryInDesiredStateException = class DirectoryInDesiredStateException extends __BaseException {
|
|
414
387
|
name = "DirectoryInDesiredStateException";
|
|
415
388
|
$fault = "client";
|
|
416
389
|
Message;
|
|
@@ -425,9 +398,8 @@ class DirectoryInDesiredStateException extends DirectoryServiceServiceException_
|
|
|
425
398
|
this.Message = opts.Message;
|
|
426
399
|
this.RequestId = opts.RequestId;
|
|
427
400
|
}
|
|
428
|
-
}
|
|
429
|
-
exports.
|
|
430
|
-
class DirectoryNotSharedException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
401
|
+
};
|
|
402
|
+
exports.DirectoryNotSharedException = class DirectoryNotSharedException extends __BaseException {
|
|
431
403
|
name = "DirectoryNotSharedException";
|
|
432
404
|
$fault = "client";
|
|
433
405
|
Message;
|
|
@@ -442,9 +414,8 @@ class DirectoryNotSharedException extends DirectoryServiceServiceException_1.Dir
|
|
|
442
414
|
this.Message = opts.Message;
|
|
443
415
|
this.RequestId = opts.RequestId;
|
|
444
416
|
}
|
|
445
|
-
}
|
|
446
|
-
exports.
|
|
447
|
-
class DisableAlreadyInProgressException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
417
|
+
};
|
|
418
|
+
exports.DisableAlreadyInProgressException = class DisableAlreadyInProgressException extends __BaseException {
|
|
448
419
|
name = "DisableAlreadyInProgressException";
|
|
449
420
|
$fault = "client";
|
|
450
421
|
Message;
|
|
@@ -459,9 +430,8 @@ class DisableAlreadyInProgressException extends DirectoryServiceServiceException
|
|
|
459
430
|
this.Message = opts.Message;
|
|
460
431
|
this.RequestId = opts.RequestId;
|
|
461
432
|
}
|
|
462
|
-
}
|
|
463
|
-
exports.
|
|
464
|
-
class InvalidClientAuthStatusException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
433
|
+
};
|
|
434
|
+
exports.InvalidClientAuthStatusException = class InvalidClientAuthStatusException extends __BaseException {
|
|
465
435
|
name = "InvalidClientAuthStatusException";
|
|
466
436
|
$fault = "client";
|
|
467
437
|
Message;
|
|
@@ -476,9 +446,8 @@ class InvalidClientAuthStatusException extends DirectoryServiceServiceException_
|
|
|
476
446
|
this.Message = opts.Message;
|
|
477
447
|
this.RequestId = opts.RequestId;
|
|
478
448
|
}
|
|
479
|
-
}
|
|
480
|
-
exports.
|
|
481
|
-
class InvalidLDAPSStatusException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
449
|
+
};
|
|
450
|
+
exports.InvalidLDAPSStatusException = class InvalidLDAPSStatusException extends __BaseException {
|
|
482
451
|
name = "InvalidLDAPSStatusException";
|
|
483
452
|
$fault = "client";
|
|
484
453
|
Message;
|
|
@@ -493,9 +462,8 @@ class InvalidLDAPSStatusException extends DirectoryServiceServiceException_1.Dir
|
|
|
493
462
|
this.Message = opts.Message;
|
|
494
463
|
this.RequestId = opts.RequestId;
|
|
495
464
|
}
|
|
496
|
-
}
|
|
497
|
-
exports.
|
|
498
|
-
class EnableAlreadyInProgressException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
465
|
+
};
|
|
466
|
+
exports.EnableAlreadyInProgressException = class EnableAlreadyInProgressException extends __BaseException {
|
|
499
467
|
name = "EnableAlreadyInProgressException";
|
|
500
468
|
$fault = "client";
|
|
501
469
|
Message;
|
|
@@ -510,9 +478,8 @@ class EnableAlreadyInProgressException extends DirectoryServiceServiceException_
|
|
|
510
478
|
this.Message = opts.Message;
|
|
511
479
|
this.RequestId = opts.RequestId;
|
|
512
480
|
}
|
|
513
|
-
}
|
|
514
|
-
exports.
|
|
515
|
-
class NoAvailableCertificateException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
481
|
+
};
|
|
482
|
+
exports.NoAvailableCertificateException = class NoAvailableCertificateException extends __BaseException {
|
|
516
483
|
name = "NoAvailableCertificateException";
|
|
517
484
|
$fault = "client";
|
|
518
485
|
Message;
|
|
@@ -527,9 +494,8 @@ class NoAvailableCertificateException extends DirectoryServiceServiceException_1
|
|
|
527
494
|
this.Message = opts.Message;
|
|
528
495
|
this.RequestId = opts.RequestId;
|
|
529
496
|
}
|
|
530
|
-
}
|
|
531
|
-
exports.
|
|
532
|
-
class InvalidCertificateException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
497
|
+
};
|
|
498
|
+
exports.InvalidCertificateException = class InvalidCertificateException extends __BaseException {
|
|
533
499
|
name = "InvalidCertificateException";
|
|
534
500
|
$fault = "client";
|
|
535
501
|
Message;
|
|
@@ -544,9 +510,8 @@ class InvalidCertificateException extends DirectoryServiceServiceException_1.Dir
|
|
|
544
510
|
this.Message = opts.Message;
|
|
545
511
|
this.RequestId = opts.RequestId;
|
|
546
512
|
}
|
|
547
|
-
}
|
|
548
|
-
exports.
|
|
549
|
-
class InvalidPasswordException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
513
|
+
};
|
|
514
|
+
exports.InvalidPasswordException = class InvalidPasswordException extends __BaseException {
|
|
550
515
|
name = "InvalidPasswordException";
|
|
551
516
|
$fault = "client";
|
|
552
517
|
Message;
|
|
@@ -561,9 +526,8 @@ class InvalidPasswordException extends DirectoryServiceServiceException_1.Direct
|
|
|
561
526
|
this.Message = opts.Message;
|
|
562
527
|
this.RequestId = opts.RequestId;
|
|
563
528
|
}
|
|
564
|
-
}
|
|
565
|
-
exports.
|
|
566
|
-
class UserDoesNotExistException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
529
|
+
};
|
|
530
|
+
exports.UserDoesNotExistException = class UserDoesNotExistException extends __BaseException {
|
|
567
531
|
name = "UserDoesNotExistException";
|
|
568
532
|
$fault = "client";
|
|
569
533
|
Message;
|
|
@@ -578,9 +542,8 @@ class UserDoesNotExistException extends DirectoryServiceServiceException_1.Direc
|
|
|
578
542
|
this.Message = opts.Message;
|
|
579
543
|
this.RequestId = opts.RequestId;
|
|
580
544
|
}
|
|
581
|
-
}
|
|
582
|
-
exports.
|
|
583
|
-
class InvalidTargetException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
545
|
+
};
|
|
546
|
+
exports.InvalidTargetException = class InvalidTargetException extends __BaseException {
|
|
584
547
|
name = "InvalidTargetException";
|
|
585
548
|
$fault = "client";
|
|
586
549
|
Message;
|
|
@@ -595,9 +558,8 @@ class InvalidTargetException extends DirectoryServiceServiceException_1.Director
|
|
|
595
558
|
this.Message = opts.Message;
|
|
596
559
|
this.RequestId = opts.RequestId;
|
|
597
560
|
}
|
|
598
|
-
}
|
|
599
|
-
exports.
|
|
600
|
-
class OrganizationsException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
561
|
+
};
|
|
562
|
+
exports.OrganizationsException = class OrganizationsException extends __BaseException {
|
|
601
563
|
name = "OrganizationsException";
|
|
602
564
|
$fault = "client";
|
|
603
565
|
Message;
|
|
@@ -612,9 +574,8 @@ class OrganizationsException extends DirectoryServiceServiceException_1.Director
|
|
|
612
574
|
this.Message = opts.Message;
|
|
613
575
|
this.RequestId = opts.RequestId;
|
|
614
576
|
}
|
|
615
|
-
}
|
|
616
|
-
exports.
|
|
617
|
-
class ShareLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
577
|
+
};
|
|
578
|
+
exports.ShareLimitExceededException = class ShareLimitExceededException extends __BaseException {
|
|
618
579
|
name = "ShareLimitExceededException";
|
|
619
580
|
$fault = "client";
|
|
620
581
|
Message;
|
|
@@ -629,9 +590,8 @@ class ShareLimitExceededException extends DirectoryServiceServiceException_1.Dir
|
|
|
629
590
|
this.Message = opts.Message;
|
|
630
591
|
this.RequestId = opts.RequestId;
|
|
631
592
|
}
|
|
632
|
-
}
|
|
633
|
-
exports.
|
|
634
|
-
class DomainControllerLimitExceededException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
593
|
+
};
|
|
594
|
+
exports.DomainControllerLimitExceededException = class DomainControllerLimitExceededException extends __BaseException {
|
|
635
595
|
name = "DomainControllerLimitExceededException";
|
|
636
596
|
$fault = "client";
|
|
637
597
|
Message;
|
|
@@ -646,9 +606,8 @@ class DomainControllerLimitExceededException extends DirectoryServiceServiceExce
|
|
|
646
606
|
this.Message = opts.Message;
|
|
647
607
|
this.RequestId = opts.RequestId;
|
|
648
608
|
}
|
|
649
|
-
}
|
|
650
|
-
exports.
|
|
651
|
-
class IncompatibleSettingsException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
609
|
+
};
|
|
610
|
+
exports.IncompatibleSettingsException = class IncompatibleSettingsException extends __BaseException {
|
|
652
611
|
name = "IncompatibleSettingsException";
|
|
653
612
|
$fault = "client";
|
|
654
613
|
Message;
|
|
@@ -663,9 +622,8 @@ class IncompatibleSettingsException extends DirectoryServiceServiceException_1.D
|
|
|
663
622
|
this.Message = opts.Message;
|
|
664
623
|
this.RequestId = opts.RequestId;
|
|
665
624
|
}
|
|
666
|
-
}
|
|
667
|
-
exports.
|
|
668
|
-
class UnsupportedSettingsException extends DirectoryServiceServiceException_1.DirectoryServiceServiceException {
|
|
625
|
+
};
|
|
626
|
+
exports.UnsupportedSettingsException = class UnsupportedSettingsException extends __BaseException {
|
|
669
627
|
name = "UnsupportedSettingsException";
|
|
670
628
|
$fault = "client";
|
|
671
629
|
Message;
|
|
@@ -680,5 +638,4 @@ class UnsupportedSettingsException extends DirectoryServiceServiceException_1.Di
|
|
|
680
638
|
this.Message = opts.Message;
|
|
681
639
|
this.RequestId = opts.RequestId;
|
|
682
640
|
}
|
|
683
|
-
}
|
|
684
|
-
exports.UnsupportedSettingsException = UnsupportedSettingsException;
|
|
641
|
+
};
|
|
@@ -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;
|